hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 65 IS NULL
----

query I rowsort
SELECT ALL + col1 + + ( + + 33 ) AS col2 FROM tab0 AS cor0
----
114
34
54

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT + - COUNT( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - + col0 < - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5
SELECT + - COUNT ( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col0 < - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 61 + - 33, col0 )
----

query I rowsort
SELECT ALL + 11 * + 88 AS col0 FROM tab1
----
968
968
968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8
SELECT DISTINCT 43 DIV - COUNT( * ) col0 FROM tab1
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8
SELECT DISTINCT 43 / - COUNT ( * ) col0 FROM tab1
----
-14

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * 91 IS NOT NULL
----

query I rowsort
SELECT - col1 * - 18 FROM tab1
----
252
846
90

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT ALL - 84 DIV + 55 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - 84 / + 55 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT col2 DIV + - col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-12
SELECT col2 / + - col0 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab1 WHERE NOT - + 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab1 WHERE NOT - + 5 IS NOT NULL
----
0

query I rowsort
SELECT + col1 * ( - + 32 ) AS col1 FROM tab0
----
-2592
-32
-672

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

query I rowsort
SELECT ALL - col2 + ( - 74 ) - - col0 FROM tab1
----
-119
-48
-51

query I rowsort
SELECT DISTINCT - 5 + col1 FROM tab0
----
-4
16
76

query I rowsort
SELECT DISTINCT - + col2 * + 83 + - - 58 + - 41 FROM tab2 AS cor0
----
-1892
-3303
-4797

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

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

query I rowsort
SELECT ALL - + col1 + col2 + - - col2 FROM tab1 AS cor0
----
113
178
89

query I rowsort
SELECT col1 + + + col1 AS col1 FROM tab1
----
10
28
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL - COUNT( * ) FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - COUNT ( * ) FROM tab2, tab1 cor0
----
-9

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

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

query I rowsort
SELECT col2 * + ( + + col1 ) AS col1 FROM tab0
----
210
3807
99

query II rowsort
SELECT DISTINCT - col2 - col1, col2 FROM tab0
----
-100
99
-128
47
-31
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-27
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + - col1 + + CAST( NULL AS DECIMAL ) * - 32 IS NULL
----

skipif mysql # not compatible
query III rowsort label-27
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + - col1 + + CAST ( NULL AS REAL ) * - 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-28
SELECT DISTINCT - - 84 AS col1, 27 + - COUNT( * ) FROM tab1 AS cor0
----
84
24

skipif mysql # not compatible
query II rowsort label-28
SELECT DISTINCT - - 84 AS col1, 27 + - COUNT ( * ) FROM tab1 AS cor0
----
84
24

query I rowsort
SELECT DISTINCT - - 70 + - - col0 * + 14 FROM tab2 AS cor0 WHERE - col0 <> + col2
----
1120
714
966

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

skipif mysql # not compatible
query I rowsort label-30
SELECT + MIN ( + + 0 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT 53 AS col0, col1 + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
53
102
53
134
53
154

onlyif mysql # DIV for integer division: 
query I rowsort label-32
SELECT + col2 DIV + 65 + col0 FROM tab0 AS cor0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-32
SELECT + col2 / + 65 + col0 FROM tab0 AS cor0
----
15
87
98

query I rowsort
SELECT ALL + 8 * - ( + 86 ) + + 8 * + 92 AS col2 FROM tab1 AS cor0 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT ALL + - 43 * 39 + - 36 AS col1 FROM tab1 AS cor0
----
-1713
-1713
-1713

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

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT - - COUNT( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-36
SELECT - - COUNT ( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT DISTINCT 40 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT 40 / col0 FROM tab2
----
0

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-39
SELECT - - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-39
SELECT - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - - ( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - + 27 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NULL )
----

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

query II rowsort
SELECT + col2, - col1 * + ( - - 87 ) FROM tab1
----
59
-435
68
-4089
96
-1218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 74 * - - col1 col0 FROM tab0
----
15
5994
87
1554
97
74

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL - MAX( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT - col1 * - - 63 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - MAX ( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT - col1 * - - 63 IS NULL
----
-77

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

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

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

skipif mysql # not compatible
query I rowsort label-48
SELECT + COUNT ( * ) + + + AVG ( + - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-49
SELECT + col2 + - 17 * - col0, CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
1489
NULL
1748
NULL
302
NULL

skipif mysql # not compatible
query II rowsort label-49
SELECT + col2 + - 17 * - col0, CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
1489
NULL
1748
NULL
302
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT + 40 + - MAX( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-52
SELECT + 40 + - MAX ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-57

query I rowsort
SELECT ALL + col0 + + - 9 AS col2 FROM tab1 cor0
----
42
76
82

query I rowsort
SELECT - ( + + 45 ) + + col2 AS col0 FROM tab1 cor0
----
14
23
51

query I rowsort
SELECT ALL + - 86 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1 + + - 65
----

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab0 WHERE col2 > + + col0
----
57

query I rowsort
SELECT DISTINCT - col2 * - 97 + - col1 AS col1 FROM tab0
----
4478
949
9602

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT DISTINCT col0 + - col0 + col2 DIV col2 DIV + + col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT col0 + - col0 + col2 / col2 / + + col1 AS col1 FROM tab2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT ALL CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT col2 + 85 AS col1 FROM tab1
----
144
153
181

query I rowsort
SELECT ALL 79 * col2 FROM tab1 cor0 WHERE NULL NOT IN ( col2, col0 )
----

query I rowsort
SELECT - + 92 * - - 6 - - col1 AS col2 FROM tab0 AS cor0
----
-471
-531
-551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-67
SELECT DISTINCT + + 44 AS col2, + COUNT( - 77 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
44
9

skipif mysql # not compatible
query II rowsort label-67
SELECT DISTINCT + + 44 AS col2, + COUNT ( - 77 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
44
9

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT 62 DIV + 19 col1 FROM tab0
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-68
SELECT 62 / + 19 col1 FROM tab0
----
3
3
3

query II rowsort
SELECT + col0, 72 AS col2 FROM tab1 AS cor0
----
51
72
85
72
91
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT + CAST( - 91 AS SIGNED ) FROM tab0 cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-70
SELECT + CAST ( - 91 AS INTEGER ) FROM tab0 cor0
----
-91
-91
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * - - ( 37 ) + - 60 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT DISTINCT - SUM( 97 ) FROM tab2 AS cor0 WHERE - col1 BETWEEN - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - SUM ( 97 ) FROM tab2 AS cor0 WHERE - col1 BETWEEN - col2 AND NULL
----
NULL

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

query II rowsort
SELECT + col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 19 * + 97 IS NULL
----

query II rowsort
SELECT ALL col1 AS col1, + 22 AS col0 FROM tab1
----
14
22
47
22
5
22

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

skipif mysql # not compatible
query I rowsort label-79
SELECT - ( MAX ( + ( col1 ) ) ) AS col2 FROM tab0
----
-81

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

query I rowsort
SELECT DISTINCT 7 * + col0 + - + col0 + + col0 AS col2 FROM tab0 AS cor0
----
105
609
679

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

query I rowsort
SELECT ALL + col1 * - col2 * - + col2 + + col0 + col0 FROM tab0 AS cor0
----
178959
2274
9995

query I rowsort
SELECT DISTINCT - 14 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + 14 - + + MIN( DISTINCT col1 ) - + + 53 FROM tab1 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-86
SELECT + 14 - + + MIN ( DISTINCT col1 ) - + + 53 FROM tab1 cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-87
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + col2
----

query I rowsort
SELECT ALL - col2 * - col0 * - 24 * - col0 FROM tab0 AS cor0 WHERE NOT col0 + + + 9 NOT BETWEEN - col0 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-89
SELECT 90 / + 19 * + 93 / - MIN( CAST( NULL AS SIGNED ) ) - + - 76 * 62 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT 90 / + 19 * + 93 / - MIN ( CAST ( NULL AS INTEGER ) ) - + - 76 * 62 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT + COUNT( * ) + - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT + COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT DISTINCT col0 AS col0, col1 + + + 29 AS col0 FROM tab0
----
15
110
87
50
97
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-92
SELECT DISTINCT + 99 + + col2 + + CAST( NULL AS DECIMAL ) + 95 + col1 * - + col0 - 73 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT + 99 + + col2 + + CAST ( NULL AS REAL ) + 95 + col1 * - + col0 - 73 AS col0 FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + col1 * - - 52 AS col1 FROM tab1
----
2444
260
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-96
SELECT ALL - 21 + col2 FROM tab1 WHERE NOT 58 * + - col0 = - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - 21 + col2 FROM tab1 WHERE NOT 58 * + - col0 = - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - col0 + + 7 AS col0 FROM tab2 cor0
----
53
71
82

query I rowsort
SELECT 4 AS col1 FROM tab2 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT + 60, - COUNT( DISTINCT + 85 ) - 95 AS col1 FROM tab2 AS cor0
----
60
-96

skipif mysql # not compatible
query II rowsort label-99
SELECT + 60, - COUNT ( DISTINCT + 85 ) - 95 AS col1 FROM tab2 AS cor0
----
60
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-100
SELECT ALL - 77 DIV + col2, - col0 col1 FROM tab2
----
-1
-64
-1
-75
-3
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-100
SELECT ALL - 77 / + col2, - col0 col1 FROM tab2
----
-1
-64
-1
-75
-3
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-101
SELECT + col1 * - - col2 * - CAST( + col2 AS SIGNED ) AS col2, 76 FROM tab0 AS cor0
----
-178929
76
-2100
76
-9801
76

skipif mysql # not compatible
query II rowsort label-101
SELECT + col1 * - - col2 * - CAST ( + col2 AS INTEGER ) AS col2, 76 FROM tab0 AS cor0
----
-178929
76
-2100
76
-9801
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 44 col1 FROM tab1 AS cor0
----
-2244
-3740
-4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT ALL CAST( + col0 AS SIGNED ) * - - 63 AS col2 FROM tab1 AS cor0 WHERE NOT 95 IS NULL
----
3213
5355
5733

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL CAST ( + col0 AS INTEGER ) * - - 63 AS col2 FROM tab1 AS cor0 WHERE NOT 95 IS NULL
----
3213
5355
5733

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT col2 DIV 38 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-104
SELECT col2 / 38 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-105
SELECT + CAST( ( + ( col1 ) ) AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-105
SELECT + CAST ( ( + ( col1 ) ) AS INTEGER ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT - ( 99 ) AS col2 FROM tab1 AS cor0
----
-99
-99
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT + MIN( ALL + 66 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT + MIN ( ALL + 66 ) FROM tab2 AS cor0
----
66

query I rowsort
SELECT ALL - col2 + + + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-110
SELECT 89 col2, CAST( NULL AS SIGNED ) + - col1 + + col0 + - - col1 * + + 88 + 79 AS col1 FROM tab0
----
89
NULL
89
NULL
89
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-110
SELECT 89 col2, CAST ( NULL AS INTEGER ) + - col1 + + col0 + - - col1 * + + 88 + 79 AS col1 FROM tab0
----
89
NULL
89
NULL
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT MAX( DISTINCT ( + col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT MAX ( DISTINCT ( + col1 ) ) FROM tab0 AS cor0
----
81

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

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT DISTINCT - MAX( ALL - 84 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - MAX ( ALL - 84 ) FROM tab2 AS cor0
----
84

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

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT ALL - 28 * + - col1 DIV col1 * - + col1 AS col2 FROM tab0 cor0
----
-2268
-28
-588

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - 28 * + - col1 / col1 * - + col1 AS col2 FROM tab0 cor0
----
-2268
-28
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT - ( COUNT( ALL - 27 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-117
SELECT - ( COUNT ( ALL - 27 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) * 84 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) * 84 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT ALL - MIN( ALL - ( - + 22 ) ) + + 81 DIV 36 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - MIN ( ALL - ( - + 22 ) ) + + 81 / 36 FROM tab0
----
-20

query I rowsort
SELECT + 15 + + 98 FROM tab1 AS cor0
----
113
113
113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT DISTINCT 90 + MAX( - - col0 ) AS col2 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT 90 + MAX ( - - col0 ) AS col2 FROM tab2 AS cor0
----
165

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

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 87 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE col1 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT ALL + col2 DIV 68 DIV + - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL + col2 / 68 / + - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-127
SELECT - CAST( + 97 AS SIGNED ) * - - ( + - col1 ) col2 FROM tab0
----
2037
7857
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-127
SELECT - CAST ( + 97 AS INTEGER ) * - - ( + - col1 ) col2 FROM tab0
----
2037
7857
97

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

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL ( - col0 ) / + + 81 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT 6 - SUM( col2 ) col2 FROM tab2
----
-115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-129
SELECT 6 - SUM ( col2 ) col2 FROM tab2
----
-115

query I rowsort
SELECT ALL + 77 * + col1 FROM tab1
----
1078
3619
385

query I rowsort
SELECT ALL 50 + + col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - 61
----

query I rowsort
SELECT DISTINCT col1 * + col1 * col2 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT - COUNT( 9 ) * + MAX( ALL - ( 41 ) ) * + COUNT( * ) AS col1 FROM tab1
----
369

skipif mysql # not compatible
query I rowsort label-133
SELECT - COUNT ( 9 ) * + MAX ( ALL - ( 41 ) ) * + COUNT ( * ) AS col1 FROM tab1
----
369

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * - col1 <= - col0 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-135
SELECT + - COUNT( ALL + ( - + CAST( col1 AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-135
SELECT + - COUNT ( ALL + ( - + CAST ( col1 AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-136
SELECT - + ( - col2 ) DIV + CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( col0 NOT BETWEEN col2 - + + 83 AND col2 + 65 )
----
1
3

skipif mysql # not compatible
query I rowsort label-136
SELECT - + ( - col2 ) / + CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( col0 NOT BETWEEN col2 - + + 83 AND col2 + 65 )
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT SUM( ALL + 63 ) AS col1 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-137
SELECT SUM ( ALL + 63 ) AS col1 FROM tab0 AS cor0
----
189

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT 7 DIV 43 * + 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-141
SELECT 7 / 43 * + 98 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-142
SELECT CAST ( + 69 AS INTEGER ) FROM tab2
----
69
69
69

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

skipif mysql # not compatible
query I rowsort label-143
SELECT + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 56 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT + col1 IS NULL
----

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

query I rowsort
SELECT - 33 + - col0 * 6 FROM tab1 AS cor0
----
-339
-543
-579

query III rowsort
SELECT * FROM tab0 WHERE + 88 NOT BETWEEN col2 - 40 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 55 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab2 WHERE + col1 + - - col1 / - 15 IS NOT NULL
----
102
134
154

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT DISTINCT - MIN( ALL - 13 ) * + 6, - 17 col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
78
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-150
SELECT DISTINCT - MIN ( ALL - 13 ) * + 6, - 17 col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
78
-17

query I rowsort
SELECT ALL - col0 + - + col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT + SUM( 75 ) + + 44 + - + SUM( ALL - col0 ) AS col0 FROM tab0 cor0
----
468

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT + SUM ( 75 ) + + 44 + - + SUM ( ALL - col0 ) AS col0 FROM tab0 cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL + 21 + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
21

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + 21 + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
21

query I rowsort
SELECT ALL - col2 - + 63 AS col2 FROM tab1 AS cor0
----
-122
-131
-159

query I rowsort
SELECT DISTINCT 68 + 58 FROM tab1 cor0
----
126

query I rowsort
SELECT 88 + ( 67 ) AS col1 FROM tab2
----
155
155
155

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT col0 + - col0 DIV - 47 FROM tab0
----
15
88
99

skipif mysql # not compatible
query I rowsort label-157
SELECT col0 + - col0 / - 47 FROM tab0
----
15
88
99

onlyif mysql # DIV for integer division: 
query II rowsort label-158
SELECT ALL 33 DIV + col1 AS col1, + 61 * + col2 FROM tab1
----
0
4148
2
5856
6
3599

skipif mysql # not compatible
query II rowsort label-158
SELECT ALL 33 / + col1 AS col1, + 61 * + col2 FROM tab1
----
0
4148
2
5856
6
3599

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

query II rowsort
SELECT DISTINCT 42, - 2 AS col0 FROM tab0
----
42
-2

query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
94

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

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

query I rowsort
SELECT 85 * + col2 AS col0 FROM tab0
----
3995
8415
850

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

query I rowsort
SELECT + - 34 FROM tab2 WHERE NOT + + 6 IS NULL
----
-34
-34
-34

query I rowsort
SELECT - 54 * col0 FROM tab1
----
-2754
-4590
-4914

query I rowsort
SELECT ALL - ( + col0 ) * + - 23 AS col2 FROM tab1 cor0
----
1173
1955
2093

query I rowsort
SELECT - 56 * + - col1 * + col0 + col1 FROM tab2 AS cor0
----
131427
276045
281467

query I rowsort
SELECT ALL + - col2 * - 28 + + + col0 FROM tab1 AS cor0
----
1737
1995
2739

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 61 * + 73, col0 col1 FROM tab2 cor0
----
4453
46
4453
64
4453
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-172
SELECT ( CAST( - + col2 AS SIGNED ) ) + + col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-172
SELECT ( CAST ( - + col2 AS INTEGER ) ) + + col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT ALL + + 86 / COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + + 86 / COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

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

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

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

query I rowsort
SELECT col2 + - col1 * - ( + + 74 ) AS col2 FROM tab0 AS cor0
----
1564
173
6041

query I rowsort
SELECT col1 + col1 + col1 * - + col0 AS col0 FROM tab0
----
-1053
-1785
-95

query I rowsort
SELECT DISTINCT + col0 + - 57 FROM tab0
----
-42
30
40

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT col2 DIV - + col1 AS col2 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-180
SELECT col2 / - + col1 AS col2 FROM tab0
----
-99
0
0

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

query I rowsort
SELECT ALL + 77 + + col1 FROM tab2
----
128
144
154

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-183
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + col1 - - + col1 + CAST( + col1 AS DECIMAL ) * 5 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + col1 - - + col1 + CAST ( + col1 AS REAL ) * 5 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT ALL 58 + SUM( - col1 ), - 62 AS col1 FROM tab0
----
-45
-62

skipif mysql # not compatible
query II rowsort label-184
SELECT ALL 58 + SUM ( - col1 ), - 62 AS col1 FROM tab0
----
-45
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-185
SELECT DISTINCT + + 74 + - col1 + + - CAST( NULL AS DECIMAL ) * - 46 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT + + 74 + - col1 + + - CAST ( NULL AS REAL ) * - 46 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-186
SELECT ALL + + col2, 91 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-186
SELECT ALL + + col2, 91 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT MIN( col1 ) DIV + + 83 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT MIN ( col1 ) / + + 83 AS col1 FROM tab0 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT ALL 81 - ( CAST( + 78 AS SIGNED ) ) FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL 81 - ( CAST ( + 78 AS INTEGER ) ) FROM tab2
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-190
SELECT ALL col1 * CAST( + 81 AS DECIMAL ) AS col2 FROM tab1 WHERE CAST( + 42 AS SIGNED ) = + 3
----

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL col1 * CAST ( + 81 AS REAL ) AS col2 FROM tab1 WHERE CAST ( + 42 AS INTEGER ) = + 3
----

query I rowsort
SELECT - 60 * 62 AS col1 FROM tab2
----
-3720
-3720
-3720

query I rowsort
SELECT ALL - 63 * col2 AS col2 FROM tab0
----
-2961
-6237
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT + col0 DIV + col0 - + ( col1 ) AS col0 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-193
SELECT + col0 / + col0 - + ( col1 ) AS col0 FROM tab0
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT DISTINCT - MIN( DISTINCT col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT - MIN ( DISTINCT col2 ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT - ( + ( - ( 30 ) ) ) AS col0 FROM tab2
----
30

query I rowsort
SELECT 96 * col1 AS col0 FROM tab0
----
2016
7776
96

query I rowsort
SELECT ALL 65 FROM tab1 WHERE NOT ( 77 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-198
SELECT - CAST( 52 AS SIGNED ) FROM tab0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-198
SELECT - CAST ( 52 AS INTEGER ) FROM tab0
----
-52
-52
-52

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND 45
----

query I rowsort
SELECT 21 AS col2 FROM tab0 WHERE col1 * col2 IN ( - 36 )
----

query I rowsort
SELECT DISTINCT + 76 * - col2 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT DISTINCT - 19 DIV + col1 AS col2 FROM tab0
----
-19
0

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - 19 / + col1 AS col2 FROM tab0
----
-19
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - col1
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col1 NOT IN ( + 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 47 AS col1 FROM tab1 WHERE ( 59 ) IS NOT NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT 54 - + MIN( + 27 ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT 54 - + MIN ( + 27 ) AS col0 FROM tab1
----
27

query I rowsort
SELECT - 60 FROM tab1 WHERE ( NULL ) IN ( - col1 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col2 - + 24 * 60 NOT BETWEEN + 61 * col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT MIN( + 71 ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-214
SELECT MIN ( + 71 ) AS col0 FROM tab1
----
71

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

skipif mysql # not compatible
query I rowsort label-215
SELECT - MAX ( + col2 ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT ALL col0 FROM tab1 WHERE col1 IN ( - ( - col1 ) )
----
51
85
91

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

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

query I rowsort
SELECT DISTINCT col1 * 3 + - col0 FROM tab2
----
107
126
167

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

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

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

query I rowsort
SELECT DISTINCT 91 * col1 FROM tab2 AS cor0
----
4641
6097
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT + MIN( ALL - col0 ) / 45 FROM tab2 AS cor0 WHERE NOT - col0 <= ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT + MIN ( ALL - col0 ) / 45 FROM tab2 AS cor0 WHERE NOT - col0 <= ( + col2 )
----
NULL

query I rowsort
SELECT 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT ALL - - 93 * CAST( + col1 + - 83 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-186
-5766
-7626

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - - 93 * CAST ( + col1 + - 83 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-186
-5766
-7626

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 96 + col0 > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-227
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 34 + + 36 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 34 + + 36 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT DISTINCT + COUNT( * ) * - MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT + COUNT ( * ) * - MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT ALL - 63 + + col2 AS col2 FROM tab0 AS cor0
----
-16
-53
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 99 col2 FROM tab2 cor0
----
4554
6336
7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-231
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - col1 BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - col1 BETWEEN NULL AND col0
----

query I rowsort
SELECT 43 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT ALL + - 15 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + - 15 / + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + 50 ) AS col1 FROM tab0
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-235
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) NOT BETWEEN ( 95 + 60 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT ( + CAST ( NULL AS REAL ) ) NOT BETWEEN ( 95 + 60 ) AND NULL
----
0

query I rowsort
SELECT - 41 * 88 AS col0 FROM tab1 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT + col0 * + - 1 AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL 95 + + 7 AS col0 FROM tab0
----
102
102
102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT - COUNT( * ) + ( + 28 ) * - COUNT( * ) FROM tab0 WHERE ( col2 ) NOT BETWEEN - 25 AND + 53 * col2
----
0

skipif mysql # not compatible
query I rowsort label-240
SELECT - COUNT ( * ) + ( + 28 ) * - COUNT ( * ) FROM tab0 WHERE ( col2 ) NOT BETWEEN - 25 AND + 53 * col2
----
0

query I rowsort
SELECT + 63 + + col1 * + col0 FROM tab0
----
1278
160
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL MIN( + col0 ) + + 0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL MIN ( + col0 ) + + 0 FROM tab1 AS cor0
----
51

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

query I rowsort
SELECT ALL - col1 + + 73 + - 75 * 49 FROM tab0 AS cor0
----
-3603
-3623
-3683

query I rowsort
SELECT - + col2 * - + col1 AS col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT + ( COUNT( * ) ) * 88 DIV + 67 + 61 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-246
SELECT + ( COUNT ( * ) ) * 88 / + 67 + 61 FROM tab0
----
64

query I rowsort
SELECT ALL + 69 - col0 * - col1 FROM tab2 AS cor0
----
2415
4997
5094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT 74 AS col0 FROM tab1 AS cor0 WHERE CAST( - 20 AS SIGNED ) NOT IN ( - col0 )
----
74
74
74

skipif mysql # not compatible
query I rowsort label-248
SELECT 74 AS col0 FROM tab1 AS cor0 WHERE CAST ( - 20 AS INTEGER ) NOT IN ( - col0 )
----
74
74
74

query I rowsort
SELECT DISTINCT + ( + col0 ) / - col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 52 )
----

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

query II rowsort
SELECT ALL - col2 AS col1, col1 - - - col2 AS col1 FROM tab1 AS cor0
----
-59
-54
-68
-21
-96
-82

query I rowsort
SELECT col1 * col1 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
103

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

skipif mysql # not compatible
query I rowsort label-254
SELECT COUNT ( ALL 47 ) FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + - col2 < col2 * 5 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-256
SELECT - CAST( 9 AS SIGNED ) FROM tab2 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-256
SELECT - CAST ( 9 AS INTEGER ) FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT + col1 * col0 * + col2 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-258
SELECT - CAST( NULL AS SIGNED ), - SUM( DISTINCT + ( 26 ) ) AS col0 FROM tab2 AS cor0
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-258
SELECT - CAST ( NULL AS INTEGER ), - SUM ( DISTINCT + ( 26 ) ) AS col0 FROM tab2 AS cor0
----
NULL
-26

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

query II rowsort
SELECT + - col2 AS col2, 49 * - col1 AS col2 FROM tab0 AS cor0
----
-10
-1029
-47
-3969
-99
-49

query I rowsort
SELECT DISTINCT + 95 + 66 FROM tab1 WHERE NULL < + col2
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + col0 <= 37
----
87
21
10

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 * 85 * + 75 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - col2 ) <> ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE - 5 + - col2 + col2 * + 68 IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE - 5 + - col2 + col2 * + 68 IN ( col2 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - 1
----

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

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

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

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

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

query I rowsort
SELECT + 58 FROM tab2 AS cor0 WHERE NOT ( - col2 + + 15 ) IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-272
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-274
SELECT - + 82 / - + CAST( NULL AS SIGNED ) AS col1, 50 * + - COUNT( * ) FROM tab2 cor0
----
NULL
-150

skipif mysql # not compatible
query II rowsort label-274
SELECT - + 82 / - + CAST ( NULL AS INTEGER ) AS col1, 50 * + - COUNT ( * ) FROM tab2 cor0
----
NULL
-150

query I rowsort
SELECT ALL col0 * - - ( - col0 ) FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 69 NOT IN ( + + col0 / col0 + - col2 ) AND - col2 NOT BETWEEN col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + 23 FROM tab1 AS cor0
----
119
82
91

query I rowsort
SELECT DISTINCT + 6 + col0 FROM tab1 AS cor0
----
57
91
97

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL COUNT( 29 ) + - 42 FROM tab0 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL COUNT ( 29 ) + - 42 FROM tab0 cor0
----
-39

query I rowsort
SELECT 54 * col1 FROM tab1 AS cor0 WHERE col2 * + + 16 + col2 IS NOT NULL
----
2538
270
756

onlyif mysql # DIV for integer division: 
query I rowsort label-281
SELECT DISTINCT + 77 DIV - 93 + + 53 AS col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT + 77 / - 93 + + 53 AS col0 FROM tab0 AS cor0
----
53

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 50 * + + 34 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-284
SELECT DISTINCT CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL MAX( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL MAX ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT ALL + COUNT( * ), 61 + - 30 col0 FROM tab1 AS cor0
----
3
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-286
SELECT ALL + COUNT ( * ), 61 + - 30 col0 FROM tab1 AS cor0
----
3
31

query I rowsort
SELECT - 6 + - col0 * + + col2 * - + 51 FROM tab0
----
35949
44364
489747

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

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT DISTINCT - COUNT( * ) + + 1 AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT - COUNT ( * ) + + 1 AS col2 FROM tab1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT + 13 / - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-290
SELECT + 13 / - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-291
SELECT - col2 col1, - col0 DIV + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-23
0
-40
0
-58
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-291
SELECT - col2 col1, - col0 / + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-23
0
-40
0
-58
-1

query I rowsort
SELECT DISTINCT col1 + col0 - + col2 FROM tab0
----
-1
49
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

skipif mysql # not compatible
query I rowsort label-295
SELECT - MAX ( DISTINCT - - 20 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT ALL col1 + ( 91 ) - + ( - col0 ) * - col0 - 8 FROM tab0 AS cor0
----
-61
-7465
-9325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT DISTINCT + + COUNT( + col2 ) + + MIN( ALL + - col2 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + + COUNT ( + col2 ) + + MIN ( ALL + - col2 ) / + COUNT ( * ) FROM tab2 AS cor0
----
-16

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

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

query I rowsort
SELECT ALL + col1 - - col2 AS col0 FROM tab2 cor0
----
117
125
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-301
SELECT DISTINCT COUNT( * ) DIV + COUNT( DISTINCT col0 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT COUNT ( * ) / + COUNT ( DISTINCT col0 ) FROM tab1
----
1

query I rowsort
SELECT - col0 * - + col2 * - 90 FROM tab2 AS cor0 WHERE NOT ( - - 84 ) / col0 * - col0 IS NULL
----
-230400
-391500
-95220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 / + col0 col1 FROM tab2 AS cor0 WHERE NOT + 59 / col1 < ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-304
SELECT - - col2 * CAST( NULL AS SIGNED ) AS col2, 19 DIV + col0 * + + 14 + - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-304
SELECT - - col2 * CAST ( NULL AS INTEGER ) AS col2, 19 / + col0 * + + 14 + - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT col0 * - col1 FROM tab1 AS cor0 WHERE NOT ( NOT col0 * - col0 NOT BETWEEN NULL AND - col0 * + 70 * - col0 - 24 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT DISTINCT + CAST( NULL AS SIGNED ) * AVG ( DISTINCT - + col2 ) + + 62 AS col2 FROM tab0 AS cor0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT MIN ( col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-309
SELECT DISTINCT 84, - SUM( ALL - 4 ) + 29 AS col1 FROM tab1
----
84
41

skipif mysql # not compatible
query II rowsort label-309
SELECT DISTINCT 84, - SUM ( ALL - 4 ) + 29 AS col1 FROM tab1
----
84
41

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 28 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - + col1, col1 AS col2 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-313
SELECT + SUM( col2 ) + - COUNT( * ), 38 AS col1 FROM tab0 AS cor0
----
153
38

skipif mysql # not compatible
query II rowsort label-313
SELECT + SUM ( col2 ) + - COUNT ( * ), 38 AS col1 FROM tab0 AS cor0
----
153
38

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

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

query I rowsort
SELECT + 49 + 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query III rowsort
SELECT * FROM tab2 WHERE - 55 IS NULL
----

query I rowsort
SELECT ALL 83 + col0 AS col0 FROM tab2 cor0
----
129
147
158

query I rowsort
SELECT - + 57 FROM tab1 AS cor0 WHERE 0 IS NULL
----

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

query I rowsort
SELECT ALL - col1 + + - 22 FROM tab1 AS cor0
----
-27
-36
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-321
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + 91 / + col2 AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-321
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + 91 / + col2 AND ( - CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT DISTINCT + 46 * 76 AS col0 FROM tab1 AS cor0
----
3496

query I rowsort
SELECT ALL col2 * + ( + col0 ) * col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT col1 + - - 88 * col0 + col0 + - col0 FROM tab1
----
4502
7485
8055

query I rowsort
SELECT DISTINCT - col2 * - + 79 AS col0 FROM tab1
----
4661
5372
7584

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT + col2 + + col0 DIV col2 + - 3 FROM tab0
----
15
44
96

skipif mysql # not compatible
query I rowsort label-328
SELECT + col2 + + col0 / col2 + - 3 FROM tab0
----
15
44
96

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

query I rowsort
SELECT + col1 * col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT ALL - 80 * + ( COUNT( * ) ) col2, MAX( ALL - - 55 ) + MIN( DISTINCT col0 ) AS col2 FROM tab0
----
-240
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-331
SELECT ALL - 80 * + ( COUNT ( * ) ) col2, MAX ( ALL - - 55 ) + MIN ( DISTINCT col0 ) AS col2 FROM tab0
----
-240
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-332
SELECT - CAST( + col0 AS SIGNED ) + + col2, + col1 FROM tab2
----
-17
67
-23
51
-24
77

skipif mysql # not compatible
query II rowsort label-332
SELECT - CAST ( + col0 AS INTEGER ) + + col2, + col1 FROM tab2
----
-17
67
-23
51
-24
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 * + col1 col0 FROM tab0
----
-1
-531441
-9261

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

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

query III rowsort
SELECT * FROM tab1 WHERE + - 0 IS NULL
----

query I rowsort
SELECT DISTINCT 63 + + + col0 AS col1 FROM tab1 AS cor0
----
114
148
154

query I rowsort
SELECT ALL + + ( 94 ) + - col0 - + col1 * + col2 * col0 FROM tab0 AS cor0
----
-18263
-57026
-9606

query I rowsort
SELECT + 36 + + col2 FROM tab2 cor0
----
59
76
94

query I rowsort
SELECT DISTINCT - 6 + - + 60 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT - 26 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 83, col0 - - + 88 * + 57 * - ( + col1 ) col2 FROM tab2
----
-83
-255770
-83
-335997
-83
-386168

query II rowsort
SELECT - 89 AS col1, + 27 FROM tab2 AS cor0
----
-89
27
-89
27
-89
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - + 83 col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
134
150
160

query II rowsort
SELECT + + 44 AS col2, + col1 * col1 AS col0 FROM tab0 cor0
----
44
1
44
441
44
6561

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

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT - 70 DIV + 25 FROM tab2 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-346
SELECT - 70 / + 25 FROM tab2 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-347
SELECT + - ( CAST( NULL AS SIGNED ) ) / + ( - 64 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-347
SELECT + - ( CAST ( NULL AS INTEGER ) ) / + ( - 64 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - ( + 89 ) * - + 72 AS col1 FROM tab1 AS cor0
----
326808
544680
583128

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + MIN( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL < col1 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT + MIN ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL < col1 + + col0
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 61 <> + col1 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT DISTINCT SUM( DISTINCT 17 ) AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT SUM ( DISTINCT 17 ) AS col2 FROM tab1
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT DISTINCT + ( + MIN( - 44 ) ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT + ( + MIN ( - 44 ) ) FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-356
SELECT DISTINCT 76 AS col1, COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
76
0

skipif mysql # not compatible
query II rowsort label-356
SELECT DISTINCT 76 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
76
0

query I rowsort
SELECT ALL - 38 * 71 FROM tab2 AS cor0
----
-2698
-2698
-2698

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT DISTINCT - col0 DIV 15 AS col2 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT - col0 / 15 AS col2 FROM tab2
----
-3
-4
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 19 col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT - 90 + - - 72 FROM tab0 AS cor0
----
-18
-18
-18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 > - col2 + + - col0
----
87
21
10
97
1
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-363
SELECT ALL col0 DIV + - col0 + + + 60 + + 28 FROM tab2 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL col0 / + - col0 + + + 60 + + 28 FROM tab2 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT MIN( - - col2 ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-364
SELECT MIN ( - - col2 ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT col0 * - - col1 >= + + col1 + + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-365
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col0 * - - col1 >= + + col1 + + col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + 72 BETWEEN ( - col2 ) AND - + 5 * + + 6
----

query I rowsort
SELECT ( 74 ) AS col0 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + 47 * - 56 FROM tab2
----
-2632
-2632
-2632

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - MIN( - 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-369
SELECT - MIN ( - 80 ) FROM tab1
----
80

query I rowsort
SELECT col2 - + col1 - + + col0 AS col2 FROM tab0
----
-49
-98
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-371
SELECT col1 / + ( CAST( NULL AS SIGNED ) ) - - + 13 + + 74 AS col1, 76 FROM tab2
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
query II rowsort label-371
SELECT col1 / + ( CAST ( NULL AS INTEGER ) ) - - + 13 + + 74 AS col1, 76 FROM tab2
----
NULL
76
NULL
76
NULL
76

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE ( NULL ) >= - - 79 + col1 + col0 + col2 * col0
----

query I rowsort
SELECT DISTINCT 1 * + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - col1 * - + col0 FROM tab0
----
1215
1827
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL - + 46 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * + - col2 * - - 66
----
0

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL - + 46 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * + - col2 * - - 66
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-381
SELECT ALL + + 90 - + + 47, col2 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( + 50 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-381
SELECT ALL + + 90 - + + 47, col2 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( + 50 AS INTEGER ) IS NOT NULL
----

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

query II rowsort
SELECT - col0 AS col2, + 93 FROM tab2
----
-46
93
-64
93
-75
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + 52 col1 FROM tab0
----
-10
52
-47
52
-99
52

query I rowsort
SELECT ALL - col2 + 42 FROM tab2
----
-16
19
2

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 * + col1 FROM tab0
----
-15
6561
-87
441
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT COUNT( * ) * 22 AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-387
SELECT COUNT ( * ) * 22 AS col2 FROM tab1
----
66

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

query I rowsort
SELECT ALL - col2 + + 17 FROM tab2
----
-23
-41
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT ALL - col1 DIV - - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL - col1 / - - col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + + col1 + col2 / col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-393
SELECT + CAST( NULL AS SIGNED ) + + 59 * + col0 + + + 2, 14 + + - col0 / - + 48 FROM tab2 AS cor0 WHERE ( NOT ( NOT 3 IS NULL ) )
----

skipif mysql # not compatible
query II rowsort label-393
SELECT + CAST ( NULL AS INTEGER ) + + 59 * + col0 + + + 2, 14 + + - col0 / - + 48 FROM tab2 AS cor0 WHERE ( NOT ( NOT 3 IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-394
SELECT DISTINCT + COUNT( * ) DIV - - 69 * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT + COUNT ( * ) / - - 69 * - COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT COUNT( * ) FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-395
SELECT COUNT ( * ) FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-397
SELECT * FROM tab2 WHERE col2 <= + CAST( - - col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-397
SELECT * FROM tab2 WHERE col2 <= + CAST ( - - col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * - col0 * - - col2 + + 78 + - col0 AS col2 FROM tab2 AS cor0
----
-197106
-291447
-53926

query I rowsort
SELECT ALL - 69 + - + col1 AS col0 FROM tab1 AS cor0
----
-116
-74
-83

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

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

query I rowsort
SELECT DISTINCT ( col0 ) - - col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL - 61 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL - 61 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-64

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - 55 col0 FROM tab0
----
-45
-8
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + 81 * col1 col0, + col2 AS col0 FROM tab0
----
1722
10
6642
47
82
99

query I rowsort
SELECT DISTINCT 42 FROM tab2 WHERE NOT - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT SUM( - + col1 ) + + 99 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT SUM ( - + col1 ) + + 99 FROM tab1
----
33

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * + - col2 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-412
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL >= col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL + 56 * + COUNT( * ) - - - MIN( - col0 ) FROM tab0 AS cor0
----
265

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL + 56 * + COUNT ( * ) - - - MIN ( - col0 ) FROM tab0 AS cor0
----
265

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + - 59 + + 76 * - col2
----

query II rowsort
SELECT col0 * + 79, + col2 FROM tab0 AS cor0
----
1185
47
6873
10
7663
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT + col2 * 65 DIV + - col2 FROM tab2 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-418
SELECT + col2 * 65 / + - col2 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - 6 * - - col0 AS col2 FROM tab0 AS cor0
----
-522
-582
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT DISTINCT - 38 DIV ( col0 ) * + col2 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-420
SELECT DISTINCT - 38 / ( col0 ) * + col2 col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT ALL - 69 + + MAX( 22 ) AS col0 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL - 69 + + MAX ( 22 ) AS col0 FROM tab0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT DISTINCT + col0 DIV col2 + + col2 AS col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT + col0 / col2 + + col2 AS col2 FROM tab2
----
25
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 82 col2 FROM tab2 AS cor0
----
4182
5494
6314

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

query II rowsort
SELECT DISTINCT col2 AS col0, 59 - + 82 AS col1 FROM tab0
----
10
-23
47
-23
99
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT + COUNT( * ) + 74 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-428
SELECT + COUNT ( * ) + 74 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-429
SELECT + 93 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT + 93 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - COUNT( * ) + - ( + MIN( - - col0 ) ) * - 77 FROM tab0 AS cor0
----
1152

skipif mysql # not compatible
query I rowsort label-430
SELECT - COUNT ( * ) + - ( + MIN ( - - col0 ) ) * - 77 FROM tab0 AS cor0
----
1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-431
SELECT ALL + - ( - col2 ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-433
SELECT - col1 * + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( ( 84 ), - col2 + - CAST( NULL AS SIGNED ) + + + 63 + 37 - + col1 )
----

skipif mysql # not compatible
query I rowsort label-433
SELECT - col1 * + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( ( 84 ), - col2 + - CAST ( NULL AS INTEGER ) + + + 63 + 37 - + col1 )
----

query I rowsort
SELECT ALL + 83 - + col2 FROM tab1 AS cor0
----
-13
15
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL 1 - - - 7 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL 1 - - - 7 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 42 * + - col1 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
-17765
-179543
-29937

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

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

query I rowsort
SELECT DISTINCT ( - col1 ) - - - 94 FROM tab0 AS cor0
----
-115
-175
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-440
SELECT ALL 64 AS col1, + MAX( col1 ) AS col1 FROM tab2 WHERE col0 * col2 IS NOT NULL
----
64
77

skipif mysql # not compatible
query II rowsort label-440
SELECT ALL 64 AS col1, + MAX ( col1 ) AS col1 FROM tab2 WHERE col0 * col2 IS NOT NULL
----
64
77

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT col2 - + 73 * + col2 DIV - col2 FROM tab1
----
132
141
169

skipif mysql # not compatible
query I rowsort label-441
SELECT col2 - + 73 * + col2 / - col2 FROM tab1
----
132
141
169

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT - COUNT( + col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-442
SELECT - COUNT ( + col0 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col2 FROM tab1
----
-51

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

skipif mysql # not compatible
query I rowsort label-444
SELECT - col2 / - 23 AS col1 FROM tab2
----
1
1
2

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 < + col0 * - 9 / - - col0 + 60 * - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 26 * + - col2 * + 20 * + col2 * + - col1 FROM tab0
----
1092000
5096520
93043080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - + 79 col0 FROM tab1 cor0
----
-4029
-6715
-7189

query I rowsort
SELECT 1 * + - 95 * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL + COUNT( * ) * + MAX( ALL + 97 ) * COUNT( * ) FROM tab2 AS cor0
----
873

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL + COUNT ( * ) * + MAX ( ALL + 97 ) * COUNT ( * ) FROM tab2 AS cor0
----
873

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

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

query I rowsort
SELECT ALL - + 8 AS col0 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT - 85 * + col1 FROM tab0 AS cor0
----
-1785
-6885
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT DISTINCT - 29 + - COUNT( * ) * + 95 FROM tab0
----
-314

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT - 29 + - COUNT ( * ) * + 95 FROM tab0
----
-314

query I rowsort
SELECT 80 * + - col0 FROM tab1
----
-4080
-6800
-7280

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 - 52 + col2 + + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT - 12 + + + COUNT( - - col0 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-457
SELECT - 12 + + + COUNT ( - - col0 ) FROM tab1
----
-9

query I rowsort
SELECT + col0 + + + col1 * + 89 FROM tab1
----
1297
4274
530

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

query I rowsort
SELECT col1 + - 58 FROM tab0 AS cor0
----
-37
-57
23

query I rowsort
SELECT ALL 59 - - col0 + - col0 / + 5 AS col0 FROM tab0 AS cor0 WHERE NOT + 22 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT 71 * COUNT( * ) col0 FROM tab0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-464
SELECT DISTINCT 71 * COUNT ( * ) col0 FROM tab0
----
213

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

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

query I rowsort
SELECT DISTINCT col0 - - + col2 AS col1 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT - 95 - - col0 + - + col0 AS col0 FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT - 11 - + col0 FROM tab2 cor0
----
-57
-75
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-470
SELECT + - 53 AS col2, - SUM( col2 ) FROM tab0 AS cor0
----
-53
-156

skipif mysql # not compatible
query II rowsort label-470
SELECT + - 53 AS col2, - SUM ( col2 ) FROM tab0 AS cor0
----
-53
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-471
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + + - col0 / + 29 IS NULL
----

skipif mysql # not compatible
query III rowsort label-471
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + + - col0 / + 29 IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT - col0 DIV - 23 AS col1 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-474
SELECT - col0 / - 23 AS col1 FROM tab0
----
0
3
4

query I rowsort
SELECT + + col2 * - col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1600
-3364
-529

query I rowsort
SELECT + col0 * - 48 AS col0 FROM tab0 AS cor0
----
-4176
-4656
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT + + COUNT( - 40 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-477
SELECT + + COUNT ( - 40 ) AS col1 FROM tab0 AS cor0
----
3

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( - col2 ) ) col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - - col1 + - col2 AS col0 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT ALL + + 81 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-484
SELECT ALL col1 DIV 90 + + col1 * + col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL col1 / 90 + + col1 * + col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT - col0 + + + 37 * + 71 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 = + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col2 + 62 + + col2 + + + 74 FROM tab1 AS cor0
----
5128
5210
6392

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col1, - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 75 * 83 AS col0 FROM tab1
----
-6225

query I rowsort
SELECT DISTINCT - 69 + - col0 FROM tab0
----
-156
-166
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT ALL COUNT( * ) * - 93 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL COUNT ( * ) * - 93 FROM tab0
----
-279

query III rowsort
SELECT * FROM tab1 WHERE - - 7 BETWEEN - 71 AND ( NULL )
----

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - + col0 NOT IN ( - col0, col2 * + + 33 * - 61 + + 76 + + 23 )
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 * + - col0 * - - 55 FROM tab2
----
116357
225240
309317

query II rowsort
SELECT DISTINCT + col2, - col2 FROM tab1 AS cor0 WHERE + col2 + ( - 98 ) * + col2 = NULL
----

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

query II rowsort
SELECT - + 84 AS col2, 22 FROM tab1 cor0
----
-84
22
-84
22
-84
22

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

query II rowsort
SELECT col0, 74 * + col0 FROM tab1 AS cor0
----
51
3774
85
6290
91
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT + 21 * - COUNT( * ) - + MIN( + 50 ) FROM tab0 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-505
SELECT + 21 * - COUNT ( * ) - + MIN ( + 50 ) FROM tab0 AS cor0
----
-113

query I rowsort
SELECT DISTINCT - + 25 + col1 FROM tab2 AS cor0
----
26
42
52

query II rowsort
SELECT ALL col0 * - col0, - col1 AS col2 FROM tab1
----
-2601
-14
-7225
-5
-8281
-47

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

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

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

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

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

query I rowsort
SELECT ALL + 16 * - - col2 + 9 AS col2 FROM tab2 AS cor0
----
377
649
937

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT ALL - - 90 DIV - 71 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL - - 90 / - 71 FROM tab1 AS cor0
----
-1
-1
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT - COUNT( 96 ) AS col1 FROM tab0 WHERE NOT NULL >= - - ( - col2 ) * - + col1 - - CAST( - - col1 AS SIGNED ) * 32 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-514
SELECT - COUNT ( 96 ) AS col1 FROM tab0 WHERE NOT NULL >= - - ( - col2 ) * - + col1 - - CAST ( - - col1 AS INTEGER ) * 32 / - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 63, 32 - 76 + 35 col0 FROM tab0 WHERE + col1 - - col1 - + col1 * - - col0 - + - col1 IS NOT NULL
----
-63
-9

query I rowsort
SELECT DISTINCT 99 * + 66 FROM tab0
----
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT 40 * - MIN( DISTINCT - + col0 ) FROM tab1
----
3640

skipif mysql # not compatible
query I rowsort label-517
SELECT 40 * - MIN ( DISTINCT - + col0 ) FROM tab1
----
3640

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 8 <= NULL
----

query I rowsort
SELECT ALL - - 14 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 15
----

query I rowsort
SELECT + 64 FROM tab2 WHERE NOT + 28 * + col1 + - col1 - col1 + col0 * col2 * + 15 NOT BETWEEN - 89 + - col0 / 43 * ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT + - 17 - - col1 * - 14 FROM tab0 WHERE NOT - 55 * - + CAST( + - 53 AS SIGNED ) IS NULL
----
-1151
-31
-311

skipif mysql # not compatible
query I rowsort label-523
SELECT + - 17 - - col1 * - 14 FROM tab0 WHERE NOT - 55 * - + CAST ( + - 53 AS INTEGER ) IS NULL
----
-1151
-31
-311

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-524
SELECT ALL + col0, CAST( + CAST( + - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
query II rowsort label-524
SELECT ALL + col0, CAST ( + CAST ( + - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - 57 + - 50 * - - COUNT( * ) * + 60 AS col2 FROM tab1
----
-9057

skipif mysql # not compatible
query I rowsort label-527
SELECT - 57 + - 50 * - - COUNT ( * ) * + 60 AS col2 FROM tab1
----
-9057

query I rowsort
SELECT + col1 * - + 85 + - + col0 + - col1 FROM tab1
----
-1255
-4133
-515

query I rowsort
SELECT col0 * col1 + + - col0 AS col2 FROM tab1
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT COUNT( DISTINCT - col2 ) FROM tab2 WHERE - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-530
SELECT COUNT ( DISTINCT - col2 ) FROM tab2 WHERE - - col2 IS NOT NULL
----
3

query I rowsort
SELECT + 93 * 48 + 51 FROM tab1
----
4515
4515
4515

query I rowsort
SELECT - 5 + - col1 * - - col2 * col1 AS col0 FROM tab0
----
-104
-308372
-4415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT DISTINCT 44 + - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-37
23
43

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT 44 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-37
23
43

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-536
SELECT ALL + col0 - ( ( 62 ) ) DIV - col1 FROM tab0 AS cor0
----
15
159
89

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL + col0 - ( ( 62 ) ) / - col1 FROM tab0 AS cor0
----
15
159
89

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

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT ALL 45 DIV + 6 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-538
SELECT ALL 45 / + 6 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 87 col2 FROM tab0 AS cor0 WHERE - ( - col0 ) * + col2 + 0 + - 22 + 93 IS NOT NULL
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT + COUNT( * ) * + 30 AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-542
SELECT + COUNT ( * ) * + 30 AS col0 FROM tab2 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 AS cor0 WHERE NOT + col1 - 90 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-544
SELECT DISTINCT col1 AS col0, + col0 - - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-544
SELECT DISTINCT col1 AS col0, + col0 - - - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-545
SELECT + MIN( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col1 * + col1 / + + CAST( - col0 AS DECIMAL ) BETWEEN + 64 AND - + CAST( NULL AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-545
SELECT + MIN ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col1 * + col1 / + + CAST ( - col0 AS REAL ) BETWEEN + 64 AND - + CAST ( NULL AS INTEGER )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT ALL - + ( + + ( 57 ) ) DIV - col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL - + ( + + ( 57 ) ) / - col2 FROM tab0 AS cor0
----
0
1
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL - col0 DIV col0 * + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - col0 / col0 * + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-549
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - col0 * + + 42 FROM tab2
----
-1932
-2688
-3150

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col0 ) * + 52 col0 FROM tab1 cor0
----
-2652
-4420
-4732

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-555
SELECT - COUNT( DISTINCT - - col0 ) * + ( - + 23 ) AS col0, COUNT( * ) col1 FROM tab2 AS cor0
----
69
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-555
SELECT - COUNT ( DISTINCT - - col0 ) * + ( - + 23 ) AS col0, COUNT ( * ) col1 FROM tab2 AS cor0
----
69
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + col0 ) col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT - MIN( + col0 ) * - 43 FROM tab2 AS cor0
----
1978

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT - MIN ( + col0 ) * - 43 FROM tab2 AS cor0
----
1978

query I rowsort
SELECT DISTINCT - ( - + col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE col2 / + + col0 * + col2 <= ( - 20 - + + ( - + col0 ) + - - 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT col2 + + col1 * col2 DIV + + 62 col0 FROM tab1 AS cor0
----
117
119
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-560
SELECT col2 + + col1 * col2 / + + 62 col0 FROM tab1 AS cor0
----
117
119
63

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT + ( MAX( ALL col1 ) ) + + 24 AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-561
SELECT + ( MAX ( ALL col1 ) ) + + 24 AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT - 85 * - - col1 * + - col1 AS col2 FROM tab2 AS cor0 WHERE 23 - + + 90 > - col2 + - - 20
----

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

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

query I rowsort
SELECT DISTINCT + + 63 + col1 FROM tab1 AS cor0
----
110
68
77

query I rowsort
SELECT + 35 + - + col1 FROM tab2 AS cor0
----
-16
-32
-42

query I rowsort
SELECT - + col2 + - - 90 AS col0 FROM tab1 AS cor0
----
-6
22
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + 19 ) * col1 + 48 * + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - 46 FROM tab2 cor0
----
-113
-123
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col1 FROM tab0 AS cor0
----
-59
-59
-59

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

query I rowsort
SELECT ALL + col1 + - - col1 - - col2 * - - col1 + col2 FROM tab0 AS cor0
----
200
262
4016

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT col0 * 47 DIV - col0 FROM tab0 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-573
SELECT col0 * 47 / - col0 FROM tab0 AS cor0
----
-47
-47
-47

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

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

query I rowsort
SELECT DISTINCT + col1 * col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-577
SELECT DISTINCT 26 AS col1, COUNT( * ) FROM tab0
----
26
3

skipif mysql # not compatible
query II rowsort label-577
SELECT DISTINCT 26 AS col1, COUNT ( * ) FROM tab0
----
26
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= + 9
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 71 <> col2
----

query I rowsort
SELECT DISTINCT col0 - - 98 AS col2 FROM tab0 AS cor0
----
113
185
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-583
SELECT ALL CAST( + MAX( col1 ) AS SIGNED ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL CAST ( + MAX ( col1 ) AS INTEGER ) FROM tab2
----
77

query II rowsort
SELECT + 7 * - + col1 AS col1, + 34 FROM tab2
----
-357
34
-469
34
-539
34

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

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

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

query I rowsort
SELECT + col2 * + col1 * - 61 AS col2 FROM tab2 AS cor0
----
-187880
-237046
-71553

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

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

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

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

query I rowsort
SELECT ALL + - 69 - col2 FROM tab0 WHERE NULL <> + - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-594
SELECT DISTINCT col1, CAST( + + col2 AS SIGNED ) DIV - + 95 AS col1 FROM tab0
----
1
-1
21
0
81
0

skipif mysql # not compatible
query II rowsort label-594
SELECT DISTINCT col1, CAST ( + + col2 AS INTEGER ) / - + 95 AS col1 FROM tab0
----
1
-1
21
0
81
0

query II rowsort
SELECT ALL 0, - 34 AS col1 FROM tab2
----
0
-34
0
-34
0
-34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + 81 IS NULL AND NOT ( col0 ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL + - MAX( ALL col2 ) * + 21 FROM tab1 cor0
----
-2016

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + - MAX ( ALL col2 ) * + 21 FROM tab1 cor0
----
-2016

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

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

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

query I rowsort
SELECT DISTINCT + 66 * + + ( 43 ) FROM tab0 AS cor0
----
2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-601
SELECT DISTINCT + COUNT( * ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-601
SELECT DISTINCT + COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 55 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT 42 DIV - 97 + - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-603
SELECT 42 / - 97 + - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-604
SELECT + 26 DIV - col2, - col1 * + col2 AS col0 FROM tab0
----
-2
-210
0
-3807
0
-99

skipif mysql # not compatible
query II rowsort label-604
SELECT + 26 / - col2, - col1 * + col2 AS col0 FROM tab0
----
-2
-210
0
-3807
0
-99

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NOT NULL = 82 )
----

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT DISTINCT - CAST( 57 AS SIGNED ) + + + col0 + col0 FROM tab0 AS cor0
----
-27
117
137

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT - CAST ( 57 AS INTEGER ) + + + col0 + col0 FROM tab0 AS cor0
----
-27
117
137

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

query I rowsort
SELECT DISTINCT + 32 - + 31 AS col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL - col0, col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-612
SELECT CAST( + - 10 AS SIGNED ) + + col2 AS col2, 36 AS col0 FROM tab2
----
13
36
30
36
48
36

skipif mysql # not compatible
query II rowsort label-612
SELECT CAST ( + - 10 AS INTEGER ) + + col2 AS col2, 36 AS col0 FROM tab2
----
13
36
30
36
48
36

query I rowsort
SELECT DISTINCT + 95 + - col2 * + col1 - + 5 + - 94 * + col1 + + + col2 * - 10 FROM tab2
----
-10628
-10674
-6107

query I rowsort
SELECT 24 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * - 3 * - - 74 AS col2 FROM tab2 AS cor0
----
-12876
-5106
-8880

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-618
SELECT - CAST( NULL AS SIGNED ) * col1 * 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT - COUNT( * ), - SUM( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-3
-156

skipif mysql # not compatible
query II rowsort label-620
SELECT - COUNT ( * ), - SUM ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-3
-156

query I rowsort
SELECT col2 * - - col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT - - col0 * + - 90 FROM tab2 cor0
----
-4140
-5760
-6750

query II rowsort
SELECT + - col0 AS col1, - 68 + - col2 FROM tab0 cor0
----
-15
-115
-87
-78
-97
-167

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-625
SELECT COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-625
SELECT COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
1

query I rowsort
SELECT ALL - 50 + + 90 FROM tab1 WHERE ( NOT NULL <= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-627
SELECT CAST( - MIN( DISTINCT - col2 ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + 64 + + 41 AND col2 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-627
SELECT CAST ( - MIN ( DISTINCT - col2 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + 64 + + 41 AND col2 + - col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT COUNT( * ) + - MAX( + 83 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-74

skipif mysql # not compatible
query I rowsort label-629
SELECT COUNT ( * ) + - MAX ( + 83 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-74

query I rowsort
SELECT + + col2 AS col0 FROM tab2 WHERE + 75 BETWEEN NULL AND - - col2
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT col1 IS NULL )
----
-51
-85
-91

query I rowsort
SELECT ALL + ( - - 5 ) - col2 * + + col0 * ( - 98 ) AS col0 FROM tab2 AS cor0
----
103689
250885
426305

query II rowsort
SELECT - col1 AS col1, col1 * - - col2 + + 44 AS col2 FROM tab0 AS cor0
----
-1
143
-21
254
-81
3851

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * - 14 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * - 14 FROM tab0
----
-126

query I rowsort
SELECT DISTINCT + ( + - 32 ) FROM tab2 WHERE NOT 96 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 BETWEEN + col2 AND - col1 * + ( + col2 ) + col2 + + col2
----

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

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

query I rowsort
SELECT ALL col2 * + col0 + 12 AS col0 FROM tab0
----
717
882
9615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-640
SELECT ALL CAST( + 15 AS SIGNED ) DIV + COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL CAST ( + 15 AS INTEGER ) / + COUNT ( * ) FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT - ( + + MIN( - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-641
SELECT - ( + + MIN ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT MAX( DISTINCT - ( col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT MAX ( DISTINCT - ( col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 4 col0 FROM tab1
----
188
20
56

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( + 99 ) IS NULL
----

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

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

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

query I rowsort
SELECT + col2 * - col2 * 41 FROM tab0 AS cor0
----
-401841
-4100
-90569

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

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT ALL col1 DIV + col1 * + col2 DIV + ( - + 58 ) AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL col1 / + col1 * + col2 / + ( - + 58 ) AS col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 75 + + ( - - col0 )
----

query II rowsort
SELECT - - 9, + col0 * + 32 AS col1 FROM tab2 AS cor0
----
9
1472
9
2048
9
2400

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1 + - 36
----

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

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

query I rowsort
SELECT ALL - col2 + - 70 FROM tab0
----
-117
-169
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT - MIN( col0 ) + + - 61 AS col0 FROM tab2
----
-107

skipif mysql # not compatible
query I rowsort label-659
SELECT - MIN ( col0 ) + + - 61 AS col0 FROM tab2
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT + col1 + - col1 + + col0 DIV col1 col2 FROM tab0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-660
SELECT + col1 + - col1 + + col0 / col1 col2 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - + 76 * + + 43 * - + 13 + + - COUNT( * ) col0 FROM tab2 AS cor0
----
42481

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-661
SELECT - + 76 * + + 43 * - + 13 + + - COUNT ( * ) col0 FROM tab2 AS cor0
----
42481

query I rowsort
SELECT ALL + - col0 + + col1 * - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

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

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

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

query I rowsort
SELECT DISTINCT + col2 * col2 * + - 99 FROM tab1
----
-344619
-457776
-912384

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT + + col2 DIV - col0 + + col1 FROM tab0 WHERE + col0 IS NOT NULL
----
0
21
78

skipif mysql # not compatible
query I rowsort label-666
SELECT + + col2 / - col0 + + col1 FROM tab0 WHERE + col0 IS NOT NULL
----
0
21
78

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-668
SELECT ALL + - CAST( NULL AS DECIMAL ) * COUNT( * ) - - 55 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + - CAST ( NULL AS REAL ) * COUNT ( * ) - - 55 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT DISTINCT - AVG ( + col0 ) - + SUM( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT - AVG ( + col0 ) - + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 62 * + col2 * col1 FROM tab1
----
-18290
-198152
-83328

query I rowsort
SELECT + col0 * - + 53 * col1 FROM tab0
----
-5141
-64395
-96831

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - col0 * + 51 * - col2 col1 FROM tab0
----
-3860190
-47506041
-539325

query I rowsort
SELECT + + col2 - - col0 AS col2 FROM tab0 WHERE NOT + col0 * + col0 / + 21 + + col2 + + + col0 IS NULL
----
196
62
97

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

query I rowsort
SELECT + 36 FROM tab0 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT SUM( DISTINCT 65 ) AS col0 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-676
SELECT SUM ( DISTINCT 65 ) AS col0 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT SUM( col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-677
SELECT SUM ( col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT 2 + + COUNT( * ) AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-678
SELECT 2 + + COUNT ( * ) AS col2 FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT 77 + - COUNT( * ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-679
SELECT 77 + - COUNT ( * ) AS col1 FROM tab1
----
74

query I rowsort
SELECT DISTINCT col0 - 96 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-11
-45
-5

query I rowsort
SELECT + 16 AS col1 FROM tab1 WHERE ( - col0 ) IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 77 col2 FROM tab0 WHERE NOT - 50 * col2 + col2 <= - col2 + 22
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 10 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - ( + col2 ) + - 60 FROM tab1
----
-119
-128
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT + CAST( NULL AS SIGNED ) + - 92 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT + CAST ( NULL AS INTEGER ) + - 92 AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col2 - col0 * 97 AS col0 FROM tab0
----
-1502
-8449
-9508

query I rowsort
SELECT DISTINCT - col2 * - col1 + col1 AS col1 FROM tab2
----
1224
3157
3953

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

query I rowsort
SELECT - col1 + 42 / + col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 86 * + ( col2 ) - + 93 AS col0 FROM tab0
----
3949
767
8421

query I rowsort
SELECT ALL + 61 * - 89 + 74 AS col0 FROM tab2
----
-5355
-5355
-5355

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * 37 - col0 col2 FROM tab2
----
1220
1231
1249

query I rowsort
SELECT col1 + + ( col2 ) * col0 AS col1 FROM tab0
----
786
891
9604

query I rowsort
SELECT DISTINCT col2 + + 60 * col0 AS col2 FROM tab1
----
3156
5159
5528

query I rowsort
SELECT 27 * + col2 + 32 FROM tab0
----
1301
2705
302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-702
SELECT DISTINCT + 27 + - 21 AS col0 FROM tab1 WHERE ( + CAST( col2 AS SIGNED ) ) BETWEEN ( - 15 ) AND 78
----
6

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + 27 + - 21 AS col0 FROM tab1 WHERE ( + CAST ( col2 AS INTEGER ) ) BETWEEN ( - 15 ) AND 78
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + col1 + - 15 / 4 AND 41
----

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

query I rowsort
SELECT ( 21 ) AS col0 FROM tab2
----
21
21
21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT ALL ( 33 ) * 1 AS col2 FROM tab1
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> 82
----

query I rowsort
SELECT ALL 66 * col2 FROM tab1
----
3894
4488
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col0 FROM tab2 WHERE ( ( + col1 ) * col0 + + 83 ) = 44 + col1
----

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

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT ALL - col1 + col2 DIV col2 col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-713
SELECT ALL - col1 + col2 / col2 col1 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT col2 DIV 86 - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-714
SELECT col2 / 86 - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 31 * col2 col2 FROM tab0
----
1472
3166
397

query I rowsort
SELECT ALL 67 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT + col2 DIV - ( + 28 ) + + ( col1 ) FROM tab0
----
-2
21
80

skipif mysql # not compatible
query I rowsort label-720
SELECT + col2 / - ( + 28 ) + + ( col1 ) FROM tab0
----
-2
21
80

query I rowsort
SELECT col2 + - 6 * col0 FROM tab1
----
-210
-451
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL - COUNT( * ) + 54 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL - COUNT ( * ) + 54 FROM tab0 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) <= ( - 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL - col1 - + col1 FROM tab1 cor0
----
-10
-28
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 - 87 IN ( + 86 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ALL - + COUNT( * ) * - 45 AS col0 FROM tab1 cor0
----
135

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - + COUNT ( * ) * - 45 AS col0 FROM tab1 cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT MAX( ALL - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 74 ) NOT IN ( + col1 * - 40 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT MAX ( ALL - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 74 ) NOT IN ( + col1 * - 40 + col1 )
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * ( + 34 / 85 ) ) NOT IN ( + 61 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT CAST( + col0 AS SIGNED ) * col0 + col0 AS col1 FROM tab0 WHERE NOT 98 < NULL
----

skipif mysql # not compatible
query I rowsort label-733
SELECT CAST ( + col0 AS INTEGER ) * col0 + col0 AS col1 FROM tab0 WHERE NOT 98 < NULL
----

query I rowsort
SELECT 46 * + ( + col0 ) AS col2 FROM tab0
----
4002
4462
690

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 + + col0 / - col0 ) IN ( 20 * + 68 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-736
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + col2 >= 34 + col2 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-736
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + col2 >= 34 + col2 / + CAST ( NULL AS INTEGER )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 - - col2 * - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 59 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - ( ( 35 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT 80 / - - ( + col1 ) = ( + col0 )
----
59
68
96

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT DISTINCT + ( - - MIN( + + ( + col0 ) ) ) DIV - ( + COUNT( * ) ) AS col1 FROM tab1 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT + ( - - MIN ( + + ( + col0 ) ) ) / - ( + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT ALL - + col2 DIV - - col0 FROM tab1 AS cor0
----
-1
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-746
SELECT + 65 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-746
SELECT + 65 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + col2 + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IN ( + - col1 * + 42 + 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-748
SELECT + - 85 col0, - CAST( NULL AS SIGNED ) + - COUNT( * ) col2 FROM tab0 AS cor0
----
-85
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-748
SELECT + - 85 col0, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-85
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-750
SELECT 96 DIV + COUNT( * ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-750
SELECT 96 / + COUNT ( * ) FROM tab0
----
32

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

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

query I rowsort
SELECT col0 + 45 * - col2 + + 98 * col2 FROM tab1
----
3212
3695
5139

query I rowsort
SELECT ALL ( + col0 ) + + col1 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL + col2 + + - col1 * col2 AS col0 FROM tab1
----
-1248
-236
-3128

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

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( col1 + 13 ) > + col1
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-757
SELECT ALL + COUNT( * ) + 21 * SUM( ALL CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( ( - col0 ) IS NOT NULL )
----
4182

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + COUNT ( * ) + 21 * SUM ( ALL CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( ( - col0 ) IS NOT NULL )
----
4182

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) * + ( + + 87 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) * + ( + + 87 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
261

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

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT - MAX( - 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-760
SELECT - MAX ( - 22 ) FROM tab2
----
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 / + col2 + + - col1 ) IN ( col2 - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + + - col0 FROM tab0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col0 FROM tab2
----
117
125
74

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + ( col0 ) FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT - col1 DIV - 64 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-768
SELECT - col1 / - 64 AS col1 FROM tab0 AS cor0
----
0
0
1

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

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

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

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

query II rowsort
SELECT DISTINCT - col2 AS col1, 54 FROM tab0
----
-10
54
-47
54
-99
54

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - - ( - ( - - 1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT - - ( - col2 ) DIV - + col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-774
SELECT - - ( - col2 ) / - + col1 FROM tab1 AS cor0
----
1
11
6

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > ( - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT DISTINCT - COUNT( DISTINCT + col2 ) + + + 41 * + COUNT( * ) * COUNT( * ) * - 84 AS col1 FROM tab1
----
-30999

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) + + + 41 * + COUNT ( * ) * COUNT ( * ) * - 84 AS col1 FROM tab1
----
-30999

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL col2 DIV + - col0 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL col2 / + - col0 FROM tab0 cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + - col2 * - + col2 col2 FROM tab1 cor0
----
3486
4629
9221

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

query II rowsort
SELECT - 92 + - 35, - col2 AS col2 FROM tab2 AS cor0
----
-127
-23
-127
-40
-127
-58

query I rowsort
SELECT + + 99 + - col1 + + col0 AS col1 FROM tab1 cor0
----
136
143
179

query II rowsort
SELECT 56 + + col1, - col1 AS col0 FROM tab2 AS cor0
----
107
-51
123
-67
133
-77

query I rowsort
SELECT - - 24 * col0 * + + col0 + col2 + col2 FROM tab2 AS cor0
----
135116
50830
98384

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + - col2 / 12, + col2 + - col2 )
----

query I rowsort
SELECT ALL 84 * 46 FROM tab2
----
3864
3864
3864

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT ALL + col1 + - col2 + + col0 DIV + 31 FROM tab1
----
-19
-52
-81

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + col1 + - col2 + + col0 / + 31 FROM tab1
----
-19
-52
-81

query I rowsort
SELECT - col1 FROM tab1 WHERE col1 IS NOT NULL OR NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - col2 + - 55 + + col2 FROM tab0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * - col1 col0 FROM tab2
----
-153
-201
-231

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-793
SELECT ALL - col2 AS col1 FROM tab0 WHERE + + 30 NOT IN ( + CAST( + col2 AS SIGNED ) * 67, - col0 )
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - col2 AS col1 FROM tab0 WHERE + + 30 NOT IN ( + CAST ( + col2 AS INTEGER ) * 67, - col0 )
----
-10
-47
-99

query I rowsort
SELECT col1 * col1 + + col0 / col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 12, col1 + - col2 * - ( - - col0 ) * - col1 - + col0 * 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT - col0 * 71 * + 59 + + 2 DIV + col2 - - - 2 * col1 AS col0 FROM tab2 cor0
----
-192796
-268250
-314309

skipif mysql # not compatible
query I rowsort label-795
SELECT - col0 * 71 * + 59 + + 2 / + col2 - - - 2 * col1 AS col0 FROM tab2 cor0
----
-192796
-268250
-314309

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT + MIN( DISTINCT col0 ) + + 24 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT + MIN ( DISTINCT col0 ) + + 24 FROM tab1 AS cor0
----
75

query I rowsort
SELECT ALL + 10 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 IN ( - 92 + - col2, 22 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - - col0 ) * - 32 FROM tab2
----
-1472
-2048
-2400

query I rowsort
SELECT col1 * + 4 AS col1 FROM tab0 AS cor0
----
324
4
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT DISTINCT + + 7 DIV + - col1 FROM tab0 cor0
----
-7
0

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT + + 7 / + - col1 FROM tab0 cor0
----
-7
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 7 * 74 + + 37 * - 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT DISTINCT - MAX( ALL + col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - MAX ( ALL + col2 ) AS col2 FROM tab1 cor0
----
-96

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 BETWEEN col2 AND + 56
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT - ( COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-811
SELECT - ( COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - 69 * 66 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4554

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

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT 64 * - + MIN( + + 77 ) FROM tab1 AS cor0 WHERE NOT col2 + - + col1 NOT BETWEEN + col0 AND col2 * col0
----
-4928

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT 64 * - + MIN ( + + 77 ) FROM tab1 AS cor0 WHERE NOT col2 + - + col1 NOT BETWEEN + col0 AND col2 * col0
----
-4928

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT ALL + col0 DIV - col0 + - 46 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-47
-47
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-815
SELECT ALL + col0 / - col0 + - 46 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-47
-47
-47

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

query I rowsort
SELECT ALL - 60 AS col0 FROM tab0 cor0
----
-60
-60
-60

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

query I rowsort
SELECT 64 - + col0 FROM tab0 AS cor0
----
-23
-33
49

query I rowsort
SELECT ALL 45 + ( + + col1 ) + + col2 FROM tab0 AS cor0
----
145
173
76

query I rowsort
SELECT ALL col1 * + - col2 * + col0 * + col1 FROM tab1
----
-125375
-13669292
-959616

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-822
SELECT + 90 * CAST( NULL AS DECIMAL ) / - CAST( NULL AS SIGNED ) + - - col1 + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT + 90 * CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) + - - col1 + - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-823
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * - ( - + 81 ) + - 17 AS col0 FROM tab1 WHERE NOT + 55 * 76 * + + CAST( NULL AS DECIMAL ) + - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * - ( - + 81 ) + - 17 AS col0 FROM tab1 WHERE NOT + 55 * 76 * + + CAST ( NULL AS REAL ) + - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT DISTINCT SUM( col2 ) * - + COUNT( * ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT SUM ( col2 ) * - + COUNT ( * ) FROM tab0
----
-468

query I rowsort
SELECT - col1 + + - 91 FROM tab0
----
-112
-172
-92

query II rowsort
SELECT ALL - col0 + 63 AS col2, + col0 AS col0 FROM tab0
----
-24
87
-34
97
48
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + 71 ) * - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + 71 ) * - + col2 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-829
SELECT DISTINCT 42 * - CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( - 72 )
----
2142
2814
3234

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT 42 * - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( - 72 )
----
2142
2814
3234

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT ALL + CAST( 28 AS SIGNED ) + - col1 * - col1 * - 26 + - col0 col1 FROM tab2 AS cor0
----
-116761
-154190
-67644

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-831
SELECT ALL + CAST ( 28 AS INTEGER ) + - col1 * - col1 * - 26 + - col0 col1 FROM tab2 AS cor0
----
-116761
-154190
-67644

query I rowsort
SELECT DISTINCT - - 38 - - - 20 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col0 * 73 AS col1 FROM tab2 AS cor0
----
-3358
-4672
-5475

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

query I rowsort
SELECT DISTINCT + 59 * col2 * - 8 FROM tab1
----
-27848
-32096
-45312

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

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

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

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

query I rowsort
SELECT DISTINCT + - 56 AS col1 FROM tab1 cor0
----
-56

query II rowsort
SELECT - 12 AS col0, - 48 FROM tab2 AS cor0
----
-12
-48
-12
-48
-12
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT + col0 DIV 73 FROM tab0 AS cor0
----
0
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT + COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT + COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
3

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

query I rowsort
SELECT + col2 * + col1 + + col1 - + col0 FROM tab2 AS cor0
----
1178
3093
3878

query II rowsort
SELECT col1 AS col0, col2 AS col2 FROM tab2 cor0
----
51
23
67
58
77
40

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

query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT 71 DIV + COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT 71 / + COUNT ( * ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT MAX( + col0 ) AS col2, 28 FROM tab1
----
91
28

skipif mysql # not compatible
query II rowsort label-849
SELECT MAX ( + col0 ) AS col2, 28 FROM tab1
----
91
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-850
SELECT ALL SUM( col0 ) DIV - 84 AS col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL SUM ( col0 ) / - 84 AS col1 FROM tab1
----
-2

query I rowsort
SELECT 25 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT - 12 + + COUNT( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - 12 + + COUNT ( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-854
SELECT ALL - 62 * + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL - 62 * + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - 33 FROM tab0 AS cor0 WHERE NOT - 58 IS NULL
----
-33
-33
-33

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-861
SELECT DISTINCT - COUNT( * ) * + 9 + + 11 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT - COUNT ( * ) * + 9 + + 11 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT - - 60 + - - col1 * col2 + - col0 * + col2 FROM tab2 AS cor0
----
-404
175
580

query I rowsort
SELECT + ( 34 ) FROM tab0 cor0
----
34
34
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT MIN( 61 ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-866
SELECT MIN ( 61 ) FROM tab0
----
61

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

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

query I rowsort
SELECT DISTINCT - col0 * + - col2 AS col1 FROM tab0
----
705
870
9603

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / col0 IN ( - 63 ) AND - col0 IS NULL
----

query I rowsort
SELECT ALL 31 + + col0 * + col0 * + + col1 FROM tab2
----
107947
315423
376906

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 + + 4 col0 FROM tab1
----
114
119
68

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

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

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab2
----
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - + col2 BETWEEN + 33 / - col2 + 71 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-879
SELECT col1 DIV 28 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-879
SELECT col1 / 28 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + col0 * + col2 * - 39 + - col0 AS col0 FROM tab2 AS cor0
----
-169725
-41308
-99904

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 * - 1 NOT BETWEEN + col0 AND ( col2 * + 12 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - 0 BETWEEN ( NULL ) AND - col2 + - col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 58 col2 FROM tab0 AS cor0
----
1218
4698
58

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

query I rowsort
SELECT + ( + + col1 ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT + 34 * COUNT( * ) AS col0 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-888
SELECT + 34 * COUNT ( * ) AS col0 FROM tab1
----
102

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 - - ( - - 54 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - 68 FROM tab0 cor0
----
-19
-29
53

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

query I rowsort
SELECT ALL + + 18 + - - 36 * col2 AS col0 FROM tab2 AS cor0
----
1458
2106
846

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT col2 DIV + 89 * + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-893
SELECT col2 / + 89 * + col1 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 * col0 col2 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL - 23 + + col0 FROM tab0 AS cor0
----
-8
64
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT COUNT( * ) + + 47 col2 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-898
SELECT COUNT ( * ) + + 47 col2 FROM tab2 AS cor0
----
50

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

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

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

query I rowsort
SELECT + 20 + + + col0 FROM tab2
----
66
84
95

query I rowsort
SELECT DISTINCT + col0 - + col1 FROM tab2
----
-13
-5
8

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

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

query II rowsort
SELECT ALL col0, col0 * - ( - 78 ) FROM tab0
----
15
1170
87
6786
97
7566

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT col2 - - 61 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( ( col1 ) AS SIGNED ) + + col0 + + ( - CAST( NULL AS SIGNED ) ) - - 48 NOT IN ( + - col0, col1 * 53 )
----

skipif mysql # not compatible
query I rowsort label-908
SELECT col2 - - 61 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( ( col1 ) AS INTEGER ) + + col0 + + ( - CAST ( NULL AS INTEGER ) ) - - 48 NOT IN ( + - col0, col1 * 53 )
----

query I rowsort
SELECT - + 45 + - 72 AS col0 FROM tab2 AS cor0
----
-117
-117
-117

query I rowsort
SELECT DISTINCT + + 46 * + 37 AS col2 FROM tab1 AS cor0
----
1702

query I rowsort
SELECT - + col2 + - ( 25 ) FROM tab2 AS cor0
----
-48
-65
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT + MAX( ALL - + col2 ) + + ( ( - COUNT( * ) ) ) * + COUNT( * ) AS col0 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-912
SELECT + MAX ( ALL - + col2 ) + + ( ( - COUNT ( * ) ) ) * + COUNT ( * ) AS col0 FROM tab0
----
-19

query III rowsort
SELECT ALL * FROM tab1 WHERE + 89 < ( NULL )
----

query I rowsort
SELECT ALL + 27 + col2 FROM tab0
----
126
37
74

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-916
SELECT ALL CAST( NULL AS SIGNED ) * - col0 + + col2 col2, + 12 FROM tab1
----
NULL
12
NULL
12
NULL
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-916
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 + + col2 col2, + 12 FROM tab1
----
NULL
12
NULL
12
NULL
12

query I rowsort
SELECT ALL + ( - ( + + col2 ) ) + ( + + col0 ) * - col1 FROM tab1 cor0
----
-4345
-484
-810

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

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + + 94 * - + COUNT ( * ) * 0 + - + COUNT ( ( - col2 ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ( - - ( + col2 ) ), col2 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - 96 AS col2 FROM tab2 cor0 WHERE NOT - 60 IS NULL
----
-96

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

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

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

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

query I rowsort
SELECT ALL + ( + col1 ) AS col0 FROM tab2
----
51
67
77

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

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

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

query I rowsort
SELECT DISTINCT - 45 + - 7 AS col0 FROM tab2 AS cor0
----
-52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 79 + - col1 col1 FROM tab0 AS cor0
----
-175
-177
-187

query I rowsort
SELECT ALL - col0 - 96 FROM tab2 AS cor0
----
-142
-160
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-930
SELECT DISTINCT MIN( + 88 ) - - 84, - 23 AS col0 FROM tab2 cor0
----
172
-23

skipif mysql # not compatible
query II rowsort label-930
SELECT DISTINCT MIN ( + 88 ) - - 84, - 23 AS col0 FROM tab2 cor0
----
172
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-931
SELECT ALL col0 - - ( - - CAST( + - col1 AS DECIMAL ) ) FROM tab1 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL col0 - - ( - - CAST ( + - col1 AS REAL ) ) FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT ALL + ( + 71 ) AS col2 FROM tab0 WHERE NOT + + ( - 70 ) > 65 * + - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT 57 * COUNT( * ) AS col2 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-934
SELECT 57 * COUNT ( * ) AS col2 FROM tab1
----
171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ALL - SUM( DISTINCT + - 46 ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - SUM ( DISTINCT + - 46 ) FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-937
SELECT - 32 + COUNT( DISTINCT col2 ) DIV - 85 col1 FROM tab1 AS cor0 WHERE NOT ( - 39 ) IS NOT NULL
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-937
SELECT - 32 + COUNT ( DISTINCT col2 ) / - 85 col1 FROM tab1 AS cor0 WHERE NOT ( - 39 ) IS NOT NULL
----
-32

query I rowsort
SELECT ALL + + 86 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + 99 * col1 * - col0 + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-232203
-487795
-497408

query I rowsort
SELECT ALL - 62 + - col1 FROM tab2 AS cor0
----
-113
-129
-139

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT COUNT( * ) * + 8 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-943
SELECT COUNT ( * ) * + 8 FROM tab0
----
24

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

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE + - 89 < + col1 * col2
----
14
47
5

query I rowsort
SELECT DISTINCT + 61 + - - col2 AS col0 FROM tab2
----
101
119
84

query II rowsort
SELECT col1 + - col0 AS col0, - col0 * - col1 * - 93 AS col0 FROM tab0
----
-66
-169911
-96
-9021
66
-112995

query II rowsort
SELECT + 8 + + 82 AS col0, + col2 * + 54 AS col1 FROM tab0
----
90
2538
90
5346
90
540

query I rowsort
SELECT 79 + - col2 AS col1 FROM tab1
----
-17
11
20

query I rowsort
SELECT col2 + col0 * - - col1 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT + 55 / - - MAX( ALL - - col0 ) AS col1 FROM tab1 WHERE + col2 + - 90 * col1 + 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT + 55 / - - MAX ( ALL - - col0 ) AS col1 FROM tab1 WHERE + col2 + - 90 * col1 + 11 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-952
SELECT ALL + COUNT( * ) * + 77 * + - 78 + + MAX( + + 66 ) DIV + - COUNT( * ), + MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
-18040
46

skipif mysql # not compatible
query II rowsort label-952
SELECT ALL + COUNT ( * ) * + 77 * + - 78 + + MAX ( + + 66 ) / + - COUNT ( * ), + MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
-18040
46

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

query I rowsort
SELECT + 12 + - 6 - - col1 AS col0 FROM tab2 AS cor0
----
57
73
83

query II rowsort
SELECT DISTINCT + - col2 + - 88, + col0 * - + 95 * - - 16 AS col1 FROM tab1 AS cor0
----
-147
-129200
-156
-138320
-184
-77520

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT - 17 IS NOT NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT - ( 0 ) - - col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT DISTINCT - col1 DIV 41 * - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-87
-97
0

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT - col1 / 41 * - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-87
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-960
SELECT COUNT( * ) + - 72 AS col0, + 48 AS col1 FROM tab2 AS cor0
----
-69
48

skipif mysql # not compatible
query II rowsort label-960
SELECT COUNT ( * ) + - 72 AS col0, + 48 AS col1 FROM tab2 AS cor0
----
-69
48

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

query I rowsort
SELECT - + col0 * col2 + - col1 AS col1 FROM tab1 cor0
----
-4910
-5020
-6235

onlyif mysql # DIV for integer division: 
query II rowsort label-963
SELECT ALL - ( - 2 ), - col0 DIV - 40 col1 FROM tab0 AS cor0
----
2
0
2
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-963
SELECT ALL - ( - 2 ), - col0 / - 40 col1 FROM tab0 AS cor0
----
2
0
2
2
2
2

query I rowsort
SELECT ALL - ( - 48 ) AS col1 FROM tab2
----
48
48
48

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-965
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, col2 + - col2 FROM tab1
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-965
SELECT ALL + CAST ( NULL AS REAL ) AS col2, col2 + - col2 FROM tab1
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) + + - col2 + col1 * - 7 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + - 70 AS col2 FROM tab2
----
-3220
-4480
-5250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + 14 FROM tab2
----
46
14
64
14
75
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-969
SELECT + col2, CAST( NULL AS SIGNED ) * + col1 * 19 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-969
SELECT + col2, CAST ( NULL AS INTEGER ) * + col1 * 19 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT + COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-970
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + ( col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NOT col1 <> + - col2
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col1 <> + - col2
----
0

query I rowsort
SELECT ALL 65 + ( - col0 ) AS col0 FROM tab1
----
-20
-26
14

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

query I rowsort
SELECT DISTINCT - col2 + ( 99 ) FROM tab2 AS cor0
----
41
59
76

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT ALL + 60 + + ( + - col2 ) + - + 17 DIV - ( 52 ) FROM tab1 AS cor0
----
-36
-8
1

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + 60 + + ( + - col2 ) + - + 17 / - ( 52 ) FROM tab1 AS cor0
----
-36
-8
1

query I rowsort
SELECT - 85 * col2 + col1 FROM tab1 cor0
----
-5010
-5733
-8146

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT ALL MAX( 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL MAX ( 0 ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL does not promote INTEGER (32-bit) results
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( 14, - 66 * - 55 / + col1 * col2 * + col0 * col0 * + col0 + + col0, + col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL + MAX( + col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-981
SELECT ALL + MAX ( + col1 ) col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT col1 + + + col1 + - 32 + col0 * - col1 * + - col0 FROM tab2
----
107986
315514
376977

query I rowsort
SELECT ALL 4 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1340
-291
-3192

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

query I rowsort
SELECT ALL + 37 + + - 32 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

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

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL - + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = + col0 * + 51
----

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 * + 98 AS col0 FROM tab1 AS cor0
----
-51
1372
-85
490
-91
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL - - COUNT( * ) * - + 75 AS col2 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - - COUNT ( * ) * - + 75 AS col2 FROM tab0 AS cor0
----
-225

query I rowsort
SELECT ALL - - 98 FROM tab0 AS cor0 WHERE - col0 * + col2 NOT BETWEEN - 4 + + col2 AND NULL
----
98
98
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT DISTINCT - col1 DIV - col0 col1 FROM tab1 AS cor0
----
0

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col0 ) = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 25 * - col1 * - + col0 FROM tab0
----
-2425
-30375
-45675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query II rowsort
SELECT ALL 42 * + col0, col0 + col2 AS col2 FROM tab0
----
3654
97
4074
196
630
62

query I rowsort
SELECT DISTINCT 91 * - col0 AS col2 FROM tab0
----
-1365
-7917
-8827

query I rowsort
SELECT ALL - col0 * - 35 AS col2 FROM tab2
----
1610
2240
2625

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1002
SELECT DISTINCT + 98 DIV 32, + SUM( 73 ) AS col2 FROM tab2
----
3
219

skipif mysql # not compatible
query II rowsort label-1002
SELECT DISTINCT + 98 / 32, + SUM ( 73 ) AS col2 FROM tab2
----
3
219

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab0
----
21

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * + + col2 col0, - col0 * - col2 FROM tab2 AS cor0
----
-1600
2560
-3364
4350
-529
1058

query II rowsort
SELECT DISTINCT 27, 55 / + col2 FROM tab0 AS cor0 WHERE NOT + 67 NOT IN ( - 98 * - + 10 + + col0 * + 19 )
----

query I rowsort
SELECT ALL + 93 * + col1 * + 96 AS col1 FROM tab0 AS cor0
----
187488
723168
8928

query I rowsort
SELECT - - ( - 45 ) + - col1 FROM tab0 AS cor0
----
-126
-46
-66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1010
SELECT col1 DIV + + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1010
SELECT col1 / + + col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1011
SELECT ALL + 9 DIV - COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + 9 / - COUNT ( * ) AS col2 FROM tab0
----
-3

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

query II rowsort
SELECT DISTINCT + col2 AS col1, + col2 - - + 58 * col2 FROM tab0 cor0
----
10
590
47
2773
99
5841

query I rowsort
SELECT DISTINCT - col0 - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - 33
----

query I rowsort
SELECT - col2 + + col0 + + col2 + 25 FROM tab0
----
112
122
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT COUNT( * ) + + - 12 AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1016
SELECT COUNT ( * ) + + - 12 AS col0 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab1 WHERE - 30 > NULL AND NOT + 22 + + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT + 65 + + COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT + 65 + + COUNT ( * ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL - + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT ALL col2 * + 35 + - 8 + + + col0 * col1 DIV - - 48 AS col2 FROM tab0
----
1662
3459
380

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL col2 * + 35 + - 8 + + + col0 * col1 / - - 48 AS col2 FROM tab0
----
1662
3459
380

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

query I rowsort
SELECT 25 * + ( + 2 ) FROM tab0
----
50
50
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL MIN( + - 99 ) AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL MIN ( + - 99 ) AS col1 FROM tab2 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 * + col1 * - ( - col2 ) / + col1 + 68 * - 20 AND - 31 + + 46 * - 71
----

query II rowsort
SELECT ALL + + col1 AS col1, ( + 50 ) FROM tab2 AS cor0
----
51
50
67
50
77
50

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 41
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1030
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col2 / + 76, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1030
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col2 / + 76, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT - - col1 * - ( col0 ) * + col1 FROM tab0 AS cor0
----
-38367
-97
-98415

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT - + 95 >= + 27
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT - - ( - 19 ) DIV - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col1 FROM tab2 AS cor0 WHERE NOT col1 * - 49 * + + 40 <= NULL
----

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

query I rowsort
SELECT + + col0 * 68 AS col2 FROM tab0 AS cor0
----
1020
5916
6596

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT DISTINCT col1 DIV - - 53 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1041
SELECT DISTINCT col1 / - - 53 col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1042
SELECT - CAST( NULL AS SIGNED ) * + 9 + 99 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT - CAST ( NULL AS INTEGER ) * + 9 + 99 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( + ( col2 ), col1, + - 88 * - col2, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * col0 col1 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT - 3 + + col0 AS col2 FROM tab2 cor0
----
43
61
72

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1050
SELECT DISTINCT + + ( - 90 ), + SUM( + col2 ) AS col0 FROM tab1 cor0
----
-90
223

skipif mysql # not compatible
query II rowsort label-1050
SELECT DISTINCT + + ( - 90 ), + SUM ( + col2 ) AS col0 FROM tab1 cor0
----
-90
223

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1051
SELECT ALL - - CAST( + col1 AS SIGNED ) DIV col2 FROM tab2 AS cor0
----
1
1
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1052
SELECT DISTINCT + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) * - + 38 + - ( + COUNT( * ) ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1052
SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) * - + 38 + - ( + COUNT ( * ) ) FROM tab0
----
3
NULL

query II rowsort
SELECT ALL 59 AS col1, col2 AS col0 FROM tab0
----
59
10
59
47
59
99

query I rowsort
SELECT - 45 - col2 AS col1 FROM tab2
----
-103
-68
-85

query I rowsort
SELECT DISTINCT - + 75 FROM tab1 WHERE NOT - + col0 IS NULL
----
-75

query I rowsort
SELECT + col2 - + - 39 AS col0 FROM tab0
----
138
49
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > - 7
----
85
5
59

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 81 AS col0, + col2 col2 FROM tab2 AS cor0
----
81
23
81
40
81
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT - ( + COUNT( * ) ) * - 37 col1 FROM tab0 AS cor0
----
111

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1063
SELECT * FROM tab0 AS cor0 WHERE NOT + 62 - - 50 NOT IN ( + - col1, 34 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1063
SELECT * FROM tab0 AS cor0 WHERE NOT + 62 - - 50 NOT IN ( + - col1, 34 - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * + - col2 * + 63 * col0 FROM tab1 AS cor0
----
-18640755
-26509392
-29611008

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT ALL - - CAST( + 83 AS SIGNED ) * - + col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - - CAST ( + 83 AS INTEGER ) * - + col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT + SUM( - ( - 59 ) ) AS col1 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-1067
SELECT + SUM ( - ( - 59 ) ) AS col1 FROM tab2
----
177

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

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

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

skipif mysql # not compatible
query I rowsort label-1069
SELECT + CAST ( + + col1 AS INTEGER ) FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT - MAX( ALL - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1070
SELECT - MAX ( ALL - col0 ) FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT + 37 = + 68 * + col0 + + 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 70 * - + col2 FROM tab2
----
-1610
-2800
-4060

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT DISTINCT + 53 + 32 * COUNT( * ) AS col2 FROM tab0
----
149

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT + 53 + 32 * COUNT ( * ) AS col2 FROM tab0
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1075
SELECT ALL col0 * + - CAST( col2 AS SIGNED ) - - + ( - - col2 ) + - ( - + col0 ) * + 1 FROM tab1 cor0
----
-4749
-4871
-6029

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL col0 * + - CAST ( col2 AS INTEGER ) - - + ( - - col2 ) + - ( - + col0 ) * + 1 FROM tab1 cor0
----
-4749
-4871
-6029

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT DISTINCT 40 + + SUM( - col1 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT 40 + + SUM ( - col1 ) FROM tab0 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 * col0 col1 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT col2 FROM tab1 WHERE NULL >= - + 63
----

query II rowsort
SELECT 16 AS col2, col2 FROM tab0 cor0
----
16
10
16
47
16
99

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

query I rowsort
SELECT 95 * - col1 * 60 * + 86 + + 37 FROM tab1 AS cor0
----
-23039363
-2450963
-6862763

query I rowsort
SELECT DISTINCT - col2 * + 13 + + col1 + col2 FROM tab1 AS cor0
----
-1138
-703
-769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1086
SELECT - 81 + + - 87 + COUNT( * ) + - - 30 DIV - + 37 + - 78 AS col2 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-1086
SELECT - 81 + + - 87 + COUNT ( * ) + - - 30 / - + 37 + - 78 AS col2 FROM tab2 AS cor0
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT ALL col1 - 90 - + 89 DIV col0 + - - col1 AS col1 FROM tab0 AS cor0
----
-49
-88
67

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL col1 - 90 - + 89 / col0 + - - col1 AS col1 FROM tab0 AS cor0
----
-49
-88
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 2 BETWEEN NULL AND - 88 AND NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 20 * + - 2 FROM tab2 AS cor0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT 59 + + - col0 DIV col1 FROM tab0 AS cor0
----
-38
55
59

skipif mysql # not compatible
query I rowsort label-1090
SELECT 59 + + - col0 / col1 FROM tab0 AS cor0
----
-38
55
59

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1092
SELECT * FROM tab1 WHERE + + CAST( - ( - + col1 ) AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1092
SELECT * FROM tab1 WHERE + + CAST ( - ( - + col1 ) AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL + + ( - + COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + + ( - + COUNT ( * ) ) FROM tab0 cor0
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col0 * + col2 * - col0 * + - col1 * + + ( - + 96 ) col0 FROM tab2
----
-46
238278528
-64
1211105280
-75
2098440000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1096
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT - COUNT( * ) * 35 * + + 85 FROM tab0 AS cor0
----
-8925

skipif mysql # not compatible
query I rowsort label-1097
SELECT - COUNT ( * ) * 35 * + + 85 FROM tab0 AS cor0
----
-8925

query I rowsort
SELECT + - 2 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-1099
SELECT ALL col0 AS col2, + col1 + col1 + + + 86 DIV - 98 * + 6 - + - 48 AS col0 FROM tab0 AS cor0
----
15
210
87
90
97
50

skipif mysql # not compatible
query II rowsort label-1099
SELECT ALL col0 AS col2, + col1 + col1 + + + 86 / - 98 * + 6 - + - 48 AS col0 FROM tab0 AS cor0
----
15
210
87
90
97
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT + 77 + - 10 * - - col2 + - + col2 / 51 + 64 + - CAST( NULL AS SIGNED ) / - 90 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT + 77 + - 10 * - - col2 + - + col2 / 51 + 64 + - CAST ( NULL AS INTEGER ) / - 90 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 37, 45 col1 FROM tab0 AS cor0
----
37
45
37
45
37
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1102
SELECT 49 DIV - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1102
SELECT 49 / - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1103
SELECT - CAST( NULL AS DECIMAL ), + 61 + + + col1 AS col2 FROM tab1 AS cor0
----
NULL
108
NULL
66
NULL
75

skipif mysql # not compatible
query II rowsort label-1103
SELECT - CAST ( NULL AS REAL ), + 61 + + + col1 AS col2 FROM tab1 AS cor0
----
NULL
108
NULL
66
NULL
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 84 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1105
SELECT + ( 37 ) FROM tab0 WHERE NOT NULL BETWEEN col1 / - col2 AND + + CAST( - + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1105
SELECT + ( 37 ) FROM tab0 WHERE NOT NULL BETWEEN col1 / - col2 AND + + CAST ( - + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1106
SELECT ALL + 87 + + col1 AS col2, + col2 * CAST( NULL AS SIGNED ) col1 FROM tab1
----
101
NULL
134
NULL
92
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1106
SELECT ALL + 87 + + col1 AS col2, + col2 * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
101
NULL
134
NULL
92
NULL

query I rowsort
SELECT DISTINCT 47 * - + 90 FROM tab0
----
-4230

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <> - 91 + + col0 + - 17
----

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

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

query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-46
-64
-75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 89 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - col1 * - col2 / - 47 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - col0 * - col0 + - ( + col1 ) + + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT DISTINCT - + 26 - COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - + 26 - COUNT ( * ) FROM tab0 AS cor0
----
-29

query I rowsort
SELECT - ( - 50 ) FROM tab1 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL - - 27 + COUNT( DISTINCT + + col0 ) - 73 AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - - 27 + COUNT ( DISTINCT + + col0 ) - 73 AS col1 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT DISTINCT - - ( + 25 ) + - col1 AS col0 FROM tab0 AS cor0
----
-56
24
4

query I rowsort
SELECT DISTINCT col2 - + 87 AS col1 FROM tab1 AS cor0
----
-19
-28
9

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

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

query I rowsort
SELECT ALL + col1 - - 35 FROM tab0
----
116
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT COUNT( * ) - + 55 * COUNT( * ) AS col1 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-1123
SELECT COUNT ( * ) - + 55 * COUNT ( * ) AS col1 FROM tab0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT 22 - - COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1124
SELECT 22 - - COUNT ( * ) FROM tab1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT DISTINCT - MAX( - col1 ) * CAST( + + ( SUM( ALL - col0 ) ) AS SIGNED ) + 71 FROM tab2
----
-9364

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT - MAX ( - col1 ) * CAST ( + + ( SUM ( ALL - col0 ) ) AS INTEGER ) + 71 FROM tab2
----
-9364

query I rowsort
SELECT - 71 - - 21 FROM tab0
----
-50
-50
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1127
SELECT + COUNT( * ) DIV + ( + 27 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1127
SELECT + COUNT ( * ) / + ( + 27 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1128
SELECT - col1 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col1 AS col1, col2 col0 FROM tab1 AS cor0 WHERE NOT ( - + ( 70 ) ) IS NULL
----
425
59
4277
68
714
96

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 WHERE - + 36 IS NULL
----

query I rowsort
SELECT + 5 * + - col1 AS col0 FROM tab0
----
-105
-405
-5

query I rowsort
SELECT DISTINCT - 37 * - col0 AS col2 FROM tab2
----
1702
2368
2775

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

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

query I rowsort
SELECT DISTINCT - + 46 AS col1 FROM tab0 AS cor0
----
-46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT ALL 61 DIV + - 9 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL 61 / + - 9 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query II rowsort
SELECT col2, + 42 FROM tab1
----
59
42
68
42
96
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT CAST( - - 29 AS SIGNED ) * - SUM( + 16 ) + - + 65 FROM tab0
----
-1457

skipif mysql # not compatible
query I rowsort label-1138
SELECT CAST ( - - 29 AS INTEGER ) * - SUM ( + 16 ) + - + 65 FROM tab0
----
-1457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab1 WHERE 47 - - + ( 72 ) IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, col0 + - - col2 FROM tab0
----
10
97
47
62
99
196

query I rowsort
SELECT 70 + + - 30 FROM tab0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - SUM( ALL + - col0 ) AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-1142
SELECT - SUM ( ALL + - col0 ) AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
199

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1146
SELECT SUM( ALL - col2 ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT SUM ( ALL - col2 ) + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1147
SELECT * FROM tab1 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1147
SELECT * FROM tab1 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 31 BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) = - 30
----

query I rowsort
SELECT col2 * + 48 FROM tab2 WHERE NOT ( NULL ) > + col2 + col0 * 37
----

query I rowsort
SELECT DISTINCT 80 + + col2 AS col2 FROM tab2
----
103
120
138

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT - 25 DIV 51 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT - 25 / 51 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE + col1 * col2 + 31 IS NULL
----

query I rowsort
SELECT - col0 * + 98 AS col1 FROM tab1
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL 31 * + COUNT( * ) FROM tab1 WHERE - col1 * + 38 - 88 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL 31 * + COUNT ( * ) FROM tab1 WHERE - col1 * + 38 - 88 IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL 4 * COUNT( * ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 4 * COUNT ( * ) AS col1 FROM tab1
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN col0 AND - 56 * col0
----

query I rowsort
SELECT AVG ( DISTINCT - col0 ) FROM tab2 WHERE ( col1 + + 89 * 88 ) <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * col1 col2 FROM tab0
----
2349
29
609

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

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - COUNT ( * ) / 61 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT DISTINCT - col1 + 58 * + 85 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( 30 )
----

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT - col1 + 58 * + 85 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( 30 )
----

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

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

query I rowsort
SELECT col1 * col0 + + 70 AS col0 FROM tab0
----
1285
167
1897

query I rowsort
SELECT DISTINCT 69 * 50 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col0 * col2 FROM tab0 WHERE + col2 * + ( - 91 ) IN ( 18 * - ( + col0 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT DISTINCT - SUM( DISTINCT col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT - SUM ( DISTINCT col0 ) FROM tab2
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1170
SELECT ALL + col2 + + col1 / col2 FROM tab1 WHERE NOT 20 + + CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND col1 + - col2
----

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + col2 + + col1 / col2 FROM tab1 WHERE NOT 20 + + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND col1 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 - + 84 col1 FROM tab0
----
-175
-175
-175

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

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

query I rowsort
SELECT DISTINCT - ( 17 ) * + 2 FROM tab2 AS cor0 WHERE NOT ( col0 + 43 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT CAST( - MAX( ALL 23 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1175
SELECT CAST ( - MAX ( ALL 23 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT + col1 DIV + 57 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + col1 / + 57 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * + col1 + col1 col2 FROM tab2 WHERE NOT col1 * + col2 IS NULL
----
2040
2680
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL - 85 * COUNT( * ) FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - 85 * COUNT ( * ) FROM tab1 AS cor0
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT DISTINCT - MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( col0 ) + 9 AS col2 FROM tab2 cor0
----
55
73
84

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

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

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT - - 52 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ( 22 ) * + MAX( col1 + 95 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT ( 22 ) * + MAX ( col1 + 95 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= col1
----
NULL

query I rowsort
SELECT DISTINCT - 12 * - 18 FROM tab2 AS cor0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT ALL - col0 DIV + 21 FROM tab0 cor0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - col0 / + 21 FROM tab0 cor0
----
-4
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT DISTINCT - col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT + COUNT( * ) * COUNT( ALL 85 ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT + COUNT ( * ) * COUNT ( ALL 85 ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT - 37 AS col2 FROM tab1
----
-37
-37
-37

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

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE + 20 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT + SUM ( + col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT + 7 * - MAX( ALL - col1 ) + + 87 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + 7 * - MAX ( ALL - col1 ) + + 87 FROM tab0
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL + - 65 + + - SUM( - col0 ) col0 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1194
SELECT ALL + - 65 + + - SUM ( - col0 ) col0 FROM tab2 AS cor0
----
120

query I rowsort
SELECT - col2 * 21 - col2 FROM tab0 AS cor0
----
-1034
-2178
-220

query I rowsort
SELECT 27 - + + col1 AS col0 FROM tab1 AS cor0
----
-20
13
22

query I rowsort
SELECT + + col2 + 56 AS col0 FROM tab1 cor0
----
115
124
152

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT ALL - ( - col0 ) DIV + col2 - col1 FROM tab0 AS cor0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - ( - col0 ) / + col2 - col1 FROM tab0 AS cor0
----
-1
-13
-81

query I rowsort
SELECT + + col2 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
203
227
243

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + - col2 ) IS NOT NULL
----

query I rowsort
SELECT - 84 * - col2 + + ( - col1 ) FROM tab0
----
3867
819
8315

query I rowsort
SELECT ALL - col2 + + - col1 * - col0 + - col2 AS col1 FROM tab1
----
307
4141
522

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT col1 DIV + 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT col1 / + 98 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE + 74 / col1 + + col0 <> col2
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1206
SELECT + 95 AS col2, CAST( + ( col2 ) AS SIGNED ) * 96 + col1 AS col2 FROM tab2 AS cor0
----
95
2259
95
3917
95
5635

skipif mysql # not compatible
query II rowsort label-1206
SELECT + 95 AS col2, CAST ( + ( col2 ) AS INTEGER ) * 96 + col1 AS col2 FROM tab2 AS cor0
----
95
2259
95
3917
95
5635

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 ) > ( + col0 * 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT DISTINCT + COUNT( * ) * - 48 + + COUNT( * ) * + 54 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + COUNT ( * ) * - 48 + + COUNT ( * ) * + 54 FROM tab1 AS cor0
----
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 3 IS NULL
----

query I rowsort
SELECT 39 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) = - col2 + col1
----

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

query II rowsort
SELECT ALL 72 AS col1, 53 - 36 * - col0 AS col2 FROM tab0 AS cor0
----
72
3185
72
3545
72
593

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1214
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col1 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1214
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col1 / CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT - 96 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-96
-96
-96

query II rowsort
SELECT ( + col2 ) AS col1, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT + + 30 IN ( + 32 )
----
1
21
81

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT + 64 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 * - col0 * - ( + 33 ) AS col1 FROM tab2
----
-143550
-34914
-84480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1221
SELECT DISTINCT CAST( - ( + col0 ) AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT CAST ( - ( + col0 ) AS INTEGER ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1222
SELECT + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1222
SELECT + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT MAX( DISTINCT col1 ) * - 40 FROM tab1
----
-1880

skipif mysql # not compatible
query I rowsort label-1223
SELECT MAX ( DISTINCT col1 ) * - 40 FROM tab1
----
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT + COUNT( * ) * 98 AS col0 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + COUNT ( * ) * 98 AS col0 FROM tab0 AS cor0
----
294

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT - - col1 AS col0 FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1227
SELECT - - col1 AS col0 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + - col0 - col2 * + 70 >= 40 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT DISTINCT - - 53 DIV + 44 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - - 53 / + 44 FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT DISTINCT + 66 * 92 + 13 AS col1 FROM tab1
----
6085

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 49 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1234
SELECT ALL - - col0 * col1 - - col2 col0, col2 DIV + - 31 + 5 AS col0 FROM tab2 cor0
----
2369
5
4968
4
5083
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1234
SELECT ALL - - col0 * col1 - - col2 col0, col2 / + - 31 + 5 AS col0 FROM tab2 cor0
----
2369
5
4968
4
5083
4

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

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

query I rowsort
SELECT ALL + 61 * ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 33 AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1237
SELECT col0 * - CAST( NULL AS SIGNED ) * col1 AS col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1237
SELECT col0 * - CAST ( NULL AS INTEGER ) * col1 AS col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL - + 97 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
4559
9603
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT - MIN( + 21 ) FROM tab1 AS cor0 WHERE 52 BETWEEN ( + + CAST( NULL AS SIGNED ) * col1 * + col2 ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT - MIN ( + 21 ) FROM tab1 AS cor0 WHERE 52 BETWEEN ( + + CAST ( NULL AS INTEGER ) * col1 * + col2 ) AND col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT DISTINCT - + col0 DIV 81 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1240
SELECT DISTINCT - + col0 / 81 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 + col0 + - + 76 FROM tab0
----
20
22
32

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

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

query I rowsort
SELECT - ( col0 ) * + + 55 + - col2 FROM tab2
----
-2553
-3560
-4183

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 >= - - col1
----

query I rowsort
SELECT + col0 + - + 59 AS col2 FROM tab0
----
-44
28
38

query I rowsort
SELECT + col1 + col1 + col0 * - col0 FROM tab2
----
-2014
-3942
-5491

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT + SUM( + col0 ) FROM tab2 WHERE 15 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT + SUM ( + col0 ) FROM tab2 WHERE 15 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL ( - COUNT( * ) ) col2 FROM tab0
----
-3

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

query I rowsort
SELECT ( - 48 ) * + col1 + - ( - col1 ) FROM tab1
----
-2209
-235
-658

query I rowsort
SELECT DISTINCT + 5 * + + col0 + - col0 FROM tab2
----
184
256
300

query I rowsort
SELECT + col0 + 70 + col0 * + 35 AS col0 FROM tab2
----
1726
2374
2770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1252
SELECT DISTINCT * FROM tab1 WHERE - col2 / - + CAST( col2 AS SIGNED ) > - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1252
SELECT DISTINCT * FROM tab1 WHERE - col2 / - + CAST ( col2 AS INTEGER ) > - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT MAX( ( col0 ) ) AS col0 FROM tab0 WHERE NULL BETWEEN - col0 AND ( + ( 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT MAX ( ( col0 ) ) AS col0 FROM tab0 WHERE NULL BETWEEN - col0 AND ( + ( 14 ) )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( + 51 )
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE ( col2 + + 84 ) BETWEEN + col1 * - - 32 AND col2
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT DISTINCT + + 45 - + - CAST( COUNT( - 63 ) AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT + + 45 - + - CAST ( COUNT ( - 63 ) AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - + col2 col2 FROM tab2
----
116
46
80

query I rowsort
SELECT + col0 / - - col0 + + col1 * + col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 31 col0 FROM tab2 AS cor0
----
-1581
-2077
-2387

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1261
SELECT ALL * FROM tab2 WHERE - - col0 NOT IN ( CAST( NULL AS SIGNED ) + - 30 + 12 + 54 * + + col0 )
----

skipif mysql # not compatible
query III rowsort label-1261
SELECT ALL * FROM tab2 WHERE - - col0 NOT IN ( CAST ( NULL AS INTEGER ) + - 30 + 12 + 54 * + + col0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + col1 / + - col2 + - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + col1 * + 46 AS col2 FROM tab1 AS cor0
----
13570
147016
61824

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT 97 * + COUNT( * ) + 8 FROM tab0 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-1265
SELECT 97 * + COUNT ( * ) + 8 FROM tab0 AS cor0
----
299

query II rowsort
SELECT + 58 AS col2, + 64 * - col0 FROM tab2 AS cor0
----
58
-2944
58
-4096
58
-4800

query I rowsort
SELECT DISTINCT 55 * - 19 AS col0 FROM tab2
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + + 31 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-1268
SELECT + + 31 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
34

query I rowsort
SELECT - - col1 + + 42 AS col0 FROM tab0 AS cor0
----
123
43
63

query II rowsort
SELECT DISTINCT - col1 * col0 * + 82 + - col2, col1 AS col1 FROM tab0 AS cor0
----
-149824
21
-8053
1
-99677
81

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

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

query I rowsort
SELECT ALL + col2 * 43 AS col1 FROM tab2 AS cor0
----
1720
2494
989

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - 9 AS col1 FROM tab2
----
46
-9
64
-9
75
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT + - 91 * - 43 + - + col1 DIV 65 FROM tab0 WHERE - col0 * + - col1 * + 58 + + col0 IS NOT NULL
----
3912
3913
3913

skipif mysql # not compatible
query I rowsort label-1275
SELECT + - 91 * - 43 + - + col1 / 65 FROM tab0 WHERE - col0 * + - col1 * + 58 + + col0 IS NOT NULL
----
3912
3913
3913

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1277
SELECT DISTINCT + AVG ( DISTINCT - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT + AVG ( DISTINCT - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT COUNT( * ) - 60 col2 FROM tab0 cor0
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT DISTINCT + 28 - - COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT + 28 - - COUNT ( * ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT + 25 * - col2 + - col1 FROM tab2 AS cor0
----
-1077
-1517
-626

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT DISTINCT + COUNT( ALL - col1 ) + - 87 AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + COUNT ( ALL - col1 ) + - 87 AS col1 FROM tab0 AS cor0
----
-84

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1284
SELECT ALL - + 69 DIV col2 * - col0 * col1 col0, col2 AS col0 FROM tab2 AS cor0
----
4928
40
5025
58
7038
23

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT MAX( DISTINCT - + col2 ) DIV + - 27 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1285
SELECT MAX ( DISTINCT - + col2 ) / + - 27 AS col0 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT DISTINCT COUNT( DISTINCT 37 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT COUNT ( DISTINCT 37 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL 79 + + 90 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

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

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

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

query II rowsort
SELECT DISTINCT + 94, 25 * - 71 AS col1 FROM tab2 AS cor0
----
94
-1775

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1292
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + 83 <> NULL
----

skipif mysql # not compatible
query III rowsort label-1292
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + 83 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1293
SELECT ALL + COUNT( * ), 97 AS col2 FROM tab1, tab0 AS cor0
----
9
97

skipif mysql # not compatible
query II rowsort label-1293
SELECT ALL + COUNT ( * ), 97 AS col2 FROM tab1, tab0 AS cor0
----
9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT DISTINCT + + MIN( - col1 ) FROM tab1 WHERE NULL IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT + + MIN ( - col1 ) FROM tab1 WHERE NULL IS NULL
----
-47

query I rowsort
SELECT + 17 * col1 AS col0 FROM tab0
----
1377
17
357

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL <> - 6 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 19 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1299
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < ( CAST( 96 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1299
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < ( CAST ( 96 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT - 5 DIV - col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 5 / - col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT DISTINCT + col1 * - col0 + CAST( NULL AS SIGNED ) * - col0 * - 87 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + col1 * - col0 + CAST ( NULL AS INTEGER ) * - col0 * - 87 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 80 <= NULL )
----

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

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

query I rowsort
SELECT ALL col0 - + + ( + col1 ) + + - 85 + + col0 * + col0 * + col0 + - - col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - col2 + - - 51 + 15 AS col0 FROM tab2 AS cor0
----
26
43
8

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL COUNT ( * ) - 43 FROM tab1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL - + col1 * - - CAST( NULL AS SIGNED ) * + - ( + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL - + col1 * - - CAST ( NULL AS INTEGER ) * + - ( + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL 90 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT DISTINCT - SUM( ALL - col1 ) * 38 - 45 AS col0 FROM tab1 AS cor0
----
2463

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT - SUM ( ALL - col1 ) * 38 - 45 AS col0 FROM tab1 AS cor0
----
2463

query I rowsort
SELECT DISTINCT ( - 78 ) AS col1 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ( + - ( - + 30 ) ) AS col0 FROM tab0
----
30
30
30

query II rowsort
SELECT - 11 AS col0, 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to e0568b9abed8d40e09377049c02b3aec

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

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0 WHERE NOT 0 + 81 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT + + col2 DIV - - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1319
SELECT + + col2 / - - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1320
SELECT col0 * + - CAST( NULL AS DECIMAL ) + - + 57, col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1320
SELECT col0 * + - CAST ( NULL AS REAL ) + - + 57, col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT col2 * - 27 * 33 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-187110
-3392037
-88209

query I rowsort
SELECT DISTINCT + col0 * + + 47 AS col0 FROM tab0 AS cor0
----
4089
4559
705

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * + ( - col1 ) col0 FROM tab0 AS cor0
----
-1782
-22
-462

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 87 ) NOT BETWEEN NULL AND ( + ( + 61 ) ) + + col1
----

query II rowsort
SELECT col2 AS col0, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT ALL - col1 AS col2, 49 FROM tab0
----
-1
49
-21
49
-81
49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1330
SELECT DISTINCT - col0 + + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT - col0 + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col0 + + - 63 AS col2 FROM tab0 AS cor0
----
-10
24
-47
-48
-99
34

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ALL - COUNT( * ) * - - MAX( DISTINCT + - col2 ) + + 44 FROM tab2 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - COUNT ( * ) * - - MAX ( DISTINCT + - col2 ) + + 44 FROM tab2 AS cor0
----
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + + col2 ) + ( ( + ( + 42 ) ) ) + + 52 col0 FROM tab1 AS cor0
----
153
162
190

query I rowsort
SELECT DISTINCT + + ( - col1 ) + - + col2 + + 29 * - col2 AS col0 FROM tab1 AS cor0
----
-1775
-2087
-2894

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT + COUNT( * ) * - + SUM( ALL - + ( - col0 ) ) AS col0 FROM tab0 cor0
----
-597

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT + COUNT ( * ) * - + SUM ( ALL - + ( - col0 ) ) AS col0 FROM tab0 cor0
----
-597

query II rowsort
SELECT ALL - 4 * - col0, col2 FROM tab0 AS cor0
----
348
10
388
99
60
47

query I rowsort
SELECT ALL + - col0 * + 3 - + col1 AS col1 FROM tab0 AS cor0
----
-126
-282
-292

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / - col1 NOT BETWEEN - + col1 * + - col1 + + 15 AND - col0 + + ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1343
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1343
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * - 78 - 95 FROM tab2
----
-4073
-5321
-6101

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

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NOT + 12 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * + col0 * - - col0 + + col0 col0 FROM tab2
----
137586
266304
365700

query I rowsort
SELECT 7 * + ( 44 ) - - 9 FROM tab0
----
317
317
317

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT + ( - SUM( ALL - 58 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT + ( - SUM ( ALL - 58 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + 74 * - - COUNT( * ) FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-1350
SELECT + 74 * - - COUNT ( * ) FROM tab2 AS cor0
----
222

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <> - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1352
SELECT DISTINCT * FROM tab0 WHERE + col0 * CAST( - 87 AS SIGNED ) * + CAST( 4 AS SIGNED ) = + CAST( NULL AS SIGNED ) / + col0
----

skipif mysql # not compatible
query III rowsort label-1352
SELECT DISTINCT * FROM tab0 WHERE + col0 * CAST ( - 87 AS INTEGER ) * + CAST ( 4 AS INTEGER ) = + CAST ( NULL AS INTEGER ) / + col0
----

query I rowsort
SELECT col2 * + col0 FROM tab0 WHERE NOT + - 19 IS NULL
----
705
870
9603

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

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

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

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

query I rowsort
SELECT ALL - 5 * - ( - 1 ) FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1358
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) BETWEEN NULL AND - 98 * col1 - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1358
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) BETWEEN NULL AND - 98 * col1 - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col2 < + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT ALL COUNT( * ) AS col0, 40 FROM tab0
----
3
40

skipif mysql # not compatible
query II rowsort label-1360
SELECT ALL COUNT ( * ) AS col0, 40 FROM tab0
----
3
40

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

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

query I rowsort
SELECT - 72 + + col2 FROM tab2
----
-14
-32
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1363
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - ( + col2 ) + + + ( - 69 ) + col0 AS col2, col2 * - 48 AS col0 FROM tab0
----
NULL
-2256
NULL
-4752
NULL
-480

skipif mysql # not compatible
query II rowsort label-1363
SELECT DISTINCT - CAST ( NULL AS REAL ) * - ( + col2 ) + + + ( - 69 ) + col0 AS col2, col2 * - 48 AS col0 FROM tab0
----
NULL
-2256
NULL
-4752
NULL
-480

onlyif mysql # aggregate syntax: 
query II rowsort label-1364
SELECT 93 col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
93
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1364
SELECT 93 col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
93
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-1365
SELECT DISTINCT + 51 - + col1 + col2, col2 + col0 DIV - + ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 57 < - 69 + + ( - col0 )
----
14
41
23
24
42
59

skipif mysql # not compatible
query II rowsort label-1365
SELECT DISTINCT + 51 - + col1 + col2, col2 + col0 / - + ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 57 < - 69 + + ( - col0 )
----
14
41
23
24
42
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT - 78 DIV + col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 78 / + col2 FROM tab0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL - MIN( - 16 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
16

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - MIN ( - 16 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col2 FROM tab0 WHERE NULL IS NULL
----
-69
-69
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT DISTINCT + col2 + - CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + col2 + - CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT ALL + - col1 - + col0 + + col2 AS col2 FROM tab2 cor0
----
-101
-74
-84

query I rowsort
SELECT - 7 AS col1 FROM tab1 AS cor0 WHERE + col2 < NULL
----

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

query I rowsort
SELECT ALL - - col1 + + col0 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + 87 + + + col2 FROM tab0 AS cor0
----
134
186
97

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - col2 * - 93 - - - col2 AS col0 FROM tab0
----
4324
9108
920

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

query I rowsort
SELECT - 77 * + + col1 AS col2 FROM tab0
----
-1617
-6237
-77

query I rowsort
SELECT DISTINCT - + 55 * 48 AS col1 FROM tab0 AS cor0
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL - MIN( DISTINCT - - col1 ) * - SUM( + + col0 ) FROM tab2 AS cor0
----
9435

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - MIN ( DISTINCT - - col1 ) * - SUM ( + + col0 ) FROM tab2 AS cor0
----
9435

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1382
SELECT ALL - col0 AS col2, CAST( - col2 AS SIGNED ) FROM tab1
----
-51
-96
-85
-59
-91
-68

skipif mysql # not compatible
query II rowsort label-1382
SELECT ALL - col0 AS col2, CAST ( - col2 AS INTEGER ) FROM tab1
----
-51
-96
-85
-59
-91
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1383
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - - col1 AS col1, - 10 * + col0 FROM tab2 AS cor0
----
51
-460
67
-750
77
-640

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col2 * - + 16
----

query I rowsort
SELECT DISTINCT + 64 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 63 IS NULL
----
-3264
-4288
-4928

query I rowsort
SELECT DISTINCT col0 * - - 78 FROM tab2 AS cor0
----
3588
4992
5850

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

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

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

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

query I rowsort
SELECT - 78 + col1 + - col0 * col1 AS col2 FROM tab1 cor0
----
-4308
-498
-778

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 97 col0, col0 AS col1 FROM tab0 AS cor0
----
-97
15
-97
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 68 + col1 AS col1, + col2 col2 FROM tab1
----
115
68
73
59
82
96

query II rowsort
SELECT ALL - ( + + col0 ), col2 * + 47 AS col0 FROM tab1
----
-51
4512
-85
2773
-91
3196

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

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

query I rowsort
SELECT ALL - - col2 * 22 + 29 + 96 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 cor0 WHERE 14 <> col1 * 58 * + col0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT 49 - COUNT( * ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1399
SELECT 49 - COUNT ( * ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

query I rowsort
SELECT - col1 + + - 72 FROM tab2 AS cor0
----
-123
-139
-149

query I rowsort
SELECT + 29 + 0 + - col2 FROM tab1 cor0
----
-30
-39
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL + 1 * - COUNT( * ) + + + 29 - - + 19 AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + 1 * - COUNT ( * ) + + + 29 - - + 19 AS col2 FROM tab0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT COUNT( ALL - + CAST( - ( 65 ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1405
SELECT COUNT ( ALL - + CAST ( - ( 65 ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 - + 42 FROM tab2 AS cor0 WHERE - 10 / - col1 + - col1 IS NOT NULL
----
22
33
4

query I rowsort
SELECT DISTINCT - col1 + - + 91 FROM tab0 AS cor0
----
-112
-172
-92

query I rowsort
SELECT ALL ( + + 6 ) FROM tab2 cor0 WHERE 1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL + 99 * CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL + 99 * CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, 39 + + + ( + col0 ) col0 FROM tab0
----
-15
54
-87
126
-97
136

query II rowsort
SELECT ALL - col1 AS col0, + col2 * col0 AS col0 FROM tab0
----
-1
9603
-21
870
-81
705

query II rowsort
SELECT + ( - col1 ), 44 AS col2 FROM tab2
----
-51
44
-67
44
-77
44

query I rowsort
SELECT + col0 * + - 78 * - col2 FROM tab1
----
381888
391170
482664

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + col1 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 4 * - + col0 AS col0 FROM tab1 AS cor0
----
-204
-340
-364

query I rowsort
SELECT ALL + col1 * + ( + col2 ) AS col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 <> 60 + - + col1 + + col2 + + - col0
----

query I rowsort
SELECT ALL - 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1420
SELECT - CAST( - - col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1420
SELECT - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1424
SELECT + 57 * - - CAST( NULL AS DECIMAL ) AS col2, col1 + + + col1 FROM tab1 AS cor0
----
NULL
10
NULL
28
NULL
94

skipif mysql # not compatible
query II rowsort label-1424
SELECT + 57 * - - CAST ( NULL AS REAL ) AS col2, col1 + + + col1 FROM tab1 AS cor0
----
NULL
10
NULL
28
NULL
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT - col2 + + ( - + CAST( + col0 AS SIGNED ) ) + + 63 - col2 FROM tab2
----
-128
-29
-81

skipif mysql # not compatible
query I rowsort label-1425
SELECT - col2 + + ( - + CAST ( + col0 AS INTEGER ) ) + + 63 - col2 FROM tab2
----
-128
-29
-81

query I rowsort
SELECT col2 + col0 * col1 + + - 33 AS col1 FROM tab2
----
2336
4935
5050

query I rowsort
SELECT - - col0 * + - 49 FROM tab1 WHERE NULL >= + 94
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT + COUNT( * ) + - 49 AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT + COUNT ( * ) + - 49 AS col1 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT - col2 AS col1, 6 AS col1 FROM tab0 AS cor0
----
-10
6
-47
6
-99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT 31 - + MAX( col2 ) AS col2 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-1431
SELECT 31 - + MAX ( col2 ) AS col2 FROM tab1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT ALL + col2 DIV + + col1 * + col2 * col2 * - col1 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + - 47 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT ALL + + ( - - col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1436
SELECT ALL + col2 / CAST( + + col2 AS DECIMAL ) / + + ( col0 ) + + 92 + 54 / - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + col2 / CAST ( + + col2 AS REAL ) / + + ( col0 ) + + 92 + 54 / - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

query I rowsort
SELECT 55 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1440
SELECT - COUNT( * ) + - - CAST( + 87 AS SIGNED ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1440
SELECT - COUNT ( * ) + - - CAST ( + 87 AS INTEGER ) FROM tab2 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT + - col1 DIV + col0 + - col1 FROM tab0 cor0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-1441
SELECT + - col1 / + col0 + - col1 FROM tab0 cor0
----
-1
-21
-86

query I rowsort
SELECT - + col2 + - 82 AS col2 FROM tab2 AS cor0
----
-105
-122
-140

query II rowsort
SELECT + 59 * - col1 * + col0 + - - col0 AS col0, col0 FROM tab0 AS cor0
----
-107706
87
-5626
97
-71670
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT ALL - - COUNT( * ) AS col1, + ( + + 10 ) * - COUNT( * ) + - 68 AS col0 FROM tab2 AS cor0
----
3
-98

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL - - COUNT ( * ) AS col1, + ( + + 10 ) * - COUNT ( * ) + - 68 AS col0 FROM tab2 AS cor0
----
3
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1445
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, SUM( 60 ) col0 FROM tab0 AS cor0
----
NULL
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1445
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, SUM ( 60 ) col0 FROM tab0 AS cor0
----
NULL
180

onlyif mysql # DIV for integer division: 
query II rowsort label-1446
SELECT DISTINCT - 74 * - col1 - + col1 DIV + col2, col0 FROM tab2 AS cor0
----
3772
46
4957
75
5697
64

skipif mysql # not compatible
query II rowsort label-1446
SELECT DISTINCT - 74 * - col1 - + col1 / + col2, col0 FROM tab2 AS cor0
----
3772
46
4957
75
5697
64

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT DISTINCT - col2 * - + CAST( - - col1 AS SIGNED ) + - col0 + - + col2 FROM tab0
----
-97
113
3745

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT - col2 * - + CAST ( - - col1 AS INTEGER ) + - col0 + - + col2 FROM tab0
----
-97
113
3745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - - - 51 - 26 + - col2 col2 FROM tab2 AS cor0
----
-53
-54
-60

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL AND NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT DISTINCT col1 DIV 78 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT col1 / 78 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT MIN ( - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > 96 * - - 68
----
0

skipif mysql # not compatible
query I rowsort label-1454
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > 96 * - - 68
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - ( + 45 ) <= NULL
----

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

query I rowsort
SELECT ALL + col1 * + col0 * + ( - - 65 ) FROM tab1 cor0
----
27625
278005
46410

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT DISTINCT + 50 * - MIN( + 85 ) FROM tab0
----
-4250

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT + 50 * - MIN ( + 85 ) FROM tab0
----
-4250

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT ALL col1 DIV col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL col1 / col0 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT ALL + ( - + col2 ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - 77 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + MIN( ALL + ( + col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1463
SELECT + MIN ( ALL + ( + col2 ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1464
SELECT + + 64 DIV - COUNT( * ) - + COUNT( * ) + COUNT( * ) AS col2, 33 AS col1 FROM tab2 AS cor0
----
-21
33

skipif mysql # not compatible
query II rowsort label-1464
SELECT + + 64 / - COUNT ( * ) - + COUNT ( * ) + COUNT ( * ) AS col2, 33 AS col1 FROM tab2 AS cor0
----
-21
33

query II rowsort
SELECT + - 13, + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-13
51
-13
85
-13
91

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

query I rowsort
SELECT DISTINCT + col0 + + 98 FROM tab0 cor0
----
113
185
195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT + SUM( DISTINCT col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT + SUM ( DISTINCT col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT ALL + col2 - - 8 + + 78 + col0 * - col2 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
296115
421029
470249

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT + + MAX( + 27 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + + MAX ( + 27 ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT + col0 + + 26 FROM tab0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - 40 + - COUNT( * ) AS col2 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-1474
SELECT - 40 + - COUNT ( * ) AS col2 FROM tab1
----
-43

query I rowsort
SELECT DISTINCT + col0 + col2 * col0 FROM tab1
----
4947
5100
6279

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

query I rowsort
SELECT 93 * 42 + 52 FROM tab0
----
3958
3958
3958

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

query I rowsort
SELECT ALL + 72 + + col2 FROM tab1
----
131
140
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL - MAX( - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - MAX ( - col2 ) FROM tab0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 84 = - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT DISTINCT col2 + col2 DIV col2 + - 65 * + 33 + + col1 FROM tab1 AS cor0 WHERE ( NOT + 7 * - col0 IS NULL )
----
-2029
-2034
-2080

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT col2 + col2 / col2 + - 65 * + 33 + + col1 FROM tab1 AS cor0 WHERE ( NOT + 7 * - col0 IS NULL )
----
-2029
-2034
-2080

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1485
SELECT - SUM( DISTINCT col0 ) AS col2, + 11 FROM tab1 cor0
----
-227
11

skipif mysql # not compatible
query II rowsort label-1485
SELECT - SUM ( DISTINCT col0 ) AS col2, + 11 FROM tab1 cor0
----
-227
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT - COUNT( * ) * - 95 AS col2 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT - COUNT ( * ) * - 95 AS col2 FROM tab2 AS cor0
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT ALL + 99 DIV col2 * - + ( - + col2 ) + - + ( - + 80 ) AS col2 FROM tab1 AS cor0
----
139
148
176

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL + 99 / col2 * - + ( - + col2 ) + - + ( - + 80 ) AS col2 FROM tab1 AS cor0
----
139
148
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT 31 * + MAX( ( - - ( - col1 ) ) ) AS col1 FROM tab1
----
-155

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT 31 * + MAX ( ( - - ( - col1 ) ) ) AS col1 FROM tab1
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1490
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT - + 7 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT - + 7 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT + COUNT( * ) + + - ( COUNT( * ) ) + 97 + - 95 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + COUNT ( * ) + + - ( COUNT ( * ) ) + 97 + - 95 FROM tab1
----
2

query I rowsort
SELECT 4 * + col1 FROM tab1 AS cor0
----
188
20
56

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10

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

query II rowsort
SELECT - col1 + + - 68, - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-119
23
-135
58
-145
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1499
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > col1 - - 11 * 3 / - - CAST( NULL AS SIGNED ) + 52
----

skipif mysql # not compatible
query III rowsort label-1499
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > col1 - - 11 * 3 / - - CAST ( NULL AS INTEGER ) + 52
----

query I rowsort
SELECT ALL 95 * - col0 AS col1 FROM tab0 AS cor0
----
-1425
-8265
-9215

query I rowsort
SELECT DISTINCT - col1 + - - col1 + + - col2 + col0 + + - col2 + - col1 FROM tab0 AS cor0
----
-102
-160
46

query I rowsort
SELECT 78 * + ( + + col0 ) AS col0 FROM tab2 AS cor0
----
3588
4992
5850

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - ( + SUM( ALL col0 ) ) * + COUNT( * ) * + - MIN( + - col0 ) AS col2 FROM tab0 AS cor0
----
-57909

skipif mysql # not compatible
query I rowsort label-1504
SELECT - ( + SUM ( ALL col0 ) ) * + COUNT ( * ) * + - MIN ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-57909

query I rowsort
SELECT DISTINCT + - 67 - 26 FROM tab1 cor0
----
-93

query I rowsort
SELECT ( col0 ) * - col0 AS col2 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab0 WHERE + - col2 + - + col1 + col2 IS NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE - 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT - MAX( DISTINCT + 79 ) AS col2 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - MAX ( DISTINCT + 79 ) AS col2 FROM tab2
----
-79

query I rowsort
SELECT DISTINCT col2 + 74 FROM tab1
----
133
142
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT COUNT( * ) - COUNT( * ) + + - COUNT( * ) - MIN( + ( + col1 ) ) AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-1512
SELECT COUNT ( * ) - COUNT ( * ) + + - COUNT ( * ) - MIN ( + ( + col1 ) ) AS col0 FROM tab0
----
-4

query I rowsort
SELECT col2 - - - 19 AS col1 FROM tab0
----
-9
28
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT DISTINCT + col1 + + + col0 * col1 DIV + ( col1 ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT + col1 + + + col0 * col1 / + ( col1 ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT + 63 + 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
125

query II rowsort
SELECT - col1 * + + col0, col2 AS col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT ALL CAST( + MAX( ALL + ( 10 ) ) AS SIGNED ) col0 FROM tab0 AS cor0
----
10

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 <= + + col0
----

query II rowsort
SELECT DISTINCT + 11 * col1, col0 FROM tab2 cor0
----
561
46
737
75
847
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT + COUNT( * ) + - 15 AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + COUNT ( * ) + - 15 AS col1 FROM tab0
----
-12

query I rowsort
SELECT ( 91 ) - + 65 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + 39 AS col1 FROM tab1
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT DISTINCT - - 11 DIV - col2 + + 52 AS col0 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - - 11 / - col2 + + 52 AS col0 FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT ALL - MAX( - + col0 ) DIV ( + COUNT( ALL col0 ) ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - MAX ( - + col0 ) / ( + COUNT ( ALL col0 ) ) FROM tab0 AS cor0
----
5

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

query I rowsort
SELECT DISTINCT - 87 * + col2 AS col0 FROM tab0 AS cor0
----
-4089
-8613
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-1532
SELECT col1 DIV 99 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT col1 / 99 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT col0 * - + col0 + + col2 - - col1 * + 87 AS col0 FROM tab2 AS cor0
----
2344
262
2643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 - - 4 * - - 70 col0 FROM tab1 AS cor0
----
326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - + col0, - col2 col2 FROM tab2
----
-8
-58
13
-40
5
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1537
SELECT DISTINCT 65 + + - COUNT( * ), MIN( - col2 ) AS col0 FROM tab1
----
62
-96

skipif mysql # not compatible
query II rowsort label-1537
SELECT DISTINCT 65 + + - COUNT ( * ), MIN ( - col2 ) AS col0 FROM tab1
----
62
-96

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

query II rowsort
SELECT DISTINCT - - 55 AS col2, - 51 FROM tab2 AS cor0
----
55
-51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 39 * col0 col1 FROM tab0 AS cor0
----
-3393
-3783
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT + MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1542
SELECT + MIN ( - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-1543
SELECT + + col2 AS col2, + col0 DIV - col0 + + + col2 FROM tab0 AS cor0
----
10
9
47
46
99
98

skipif mysql # not compatible
query II rowsort label-1543
SELECT + + col2 AS col2, + col0 / - col0 + + + col2 FROM tab0 AS cor0
----
10
9
47
46
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL SUM( DISTINCT + 1 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL SUM ( DISTINCT + 1 ) AS col0 FROM tab1 AS cor0
----
1

query II rowsort
SELECT + col2 AS col0, - col2 - + 28 AS col1 FROM tab1 AS cor0
----
59
-87
68
-96
96
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + 31 * - + COUNT( + 92 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1546
SELECT + 31 * - + COUNT ( + 92 ) FROM tab0
----
-93

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + 97 ) + + ( + - col0 ) col1, + col0 AS col1 FROM tab1
----
12
85
46
51
6
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT - col0 FROM tab1 WHERE - col1 + 65 > + ( + CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1549
SELECT - col0 FROM tab1 WHERE - col1 + 65 > + ( + CAST ( + + col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL - 53 + - col2 AS col1 FROM tab0 AS cor0
----
-100
-152
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT DISTINCT + + 40 + + COUNT( * ) col0 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1551
SELECT DISTINCT + + 40 + + COUNT ( * ) col0 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT + + SUM( ALL - ( - 56 ) ) col2 FROM tab0 AS cor0
----
168

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, - col0 col2 FROM tab0 cor0
----
15
-15
87
-87
97
-97

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

query I rowsort
SELECT ( - ( + 9 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-9
-9
-9

query I rowsort
SELECT ALL - col2 + 88 FROM tab0
----
-11
41
78

query I rowsort
SELECT ALL 71 * - col1 AS col2 FROM tab0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT CAST( NULL AS SIGNED ) + - col0 * + col2 / + - 20 col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT col1 DIV + col1 + - - 49 + - - 47 AS col0 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-1559
SELECT col1 / + col1 + - - 49 + - - 47 AS col0 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - col0 + col1 * - - col1 AS col0 FROM tab0 AS cor0
----
-96
354
6546

query I rowsort
SELECT ALL col2 + + ( col2 ) - - col2 AS col1 FROM tab2 AS cor0
----
120
174
69

onlyif mysql # DIV for integer division: 
query II rowsort label-1562
SELECT - - 1 - + 22 + 41 AS col0, + col1 DIV 16 + col0 AS col1 FROM tab2 AS cor0
----
20
49
20
68
20
79

skipif mysql # not compatible
query II rowsort label-1562
SELECT - - 1 - + 22 + 41 AS col0, + col1 / 16 + col0 AS col1 FROM tab2 AS cor0
----
20
49
20
68
20
79

query I rowsort
SELECT ALL col2 * - - col2 FROM tab2
----
1600
3364
529

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

query II rowsort
SELECT DISTINCT 95 * + ( + col2 ) * + - col0 + - + col2 + - ( + 76 ) AS col2, 1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col1 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT ALL col2 DIV - - col1 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL col2 / - - col1 AS col0 FROM tab0
----
0
0
99

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

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

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

query I rowsort
SELECT ALL + + 5 AS col2 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE col1 <= col2 - - col1
----
1
21
81

query I rowsort
SELECT ALL - col0 * + + 33 AS col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT DISTINCT - - SUM( DISTINCT 4 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - - SUM ( DISTINCT 4 ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL - col2 + col2 * col0 FROM tab2
----
1035
2520
4292

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT COUNT( + col1 ) + 1 * 18 AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT COUNT ( + col1 ) + 1 * 18 AS col2 FROM tab2
----
21

query III rowsort
SELECT * FROM tab2 WHERE + 35 IN ( + 90 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - 6 + - col1 NOT IN ( + 97 )
----

query I rowsort
SELECT DISTINCT - ( - 51 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT + COUNT( * ) + + ( - ( - MAX( col0 ) ) + 49 ) col1 FROM tab0
----
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1580
SELECT + COUNT ( * ) + + ( - ( - MAX ( col0 ) ) + 49 ) col1 FROM tab0
----
149

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( col2 + col2 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT - CAST( 20 AS SIGNED ) FROM tab0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-1582
SELECT - CAST ( 20 AS INTEGER ) FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL - 31 * + COUNT( * ) col0 FROM tab1
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1583
SELECT ALL - 31 * + COUNT ( * ) col0 FROM tab1
----
-93

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

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

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

query I rowsort
SELECT ALL - col1 * - 29 - col2 * + col1 FROM tab0
----
-1458
-70
399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT 95 - + AVG ( 51 ) * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT 95 - + AVG ( 51 ) * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 * 7 AS col1 FROM tab0
----
147
567
7

query I rowsort
SELECT col2 - 5 AS col0 FROM tab1
----
54
63
91

query I rowsort
SELECT 43 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 54 + col2 FROM tab2 AS cor0
----
112
77
94

query I rowsort
SELECT ALL - 77 * 88 + - col1 FROM tab0 AS cor0 WHERE NOT 0 BETWEEN col1 AND - 83
----
-6777
-6797
-6857

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

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

query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE col2 < NULL
----

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

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

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

query I rowsort
SELECT col2 - + col0 * - col0 AS col1 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL 41 + 99 * + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
932

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 41 + 99 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
932

query III rowsort
SELECT * FROM tab0 WHERE + col1 + - 37 IN ( + 47 )
----

query I rowsort
SELECT ALL + - col0 - - 49 AS col2 FROM tab1 AS cor0
----
-2
-36
-42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + 75 * - col0 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + 49 FROM tab2 AS cor0 WHERE ( - ( col0 ) ) >= NULL
----

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

query I rowsort
SELECT ALL + + 80 + col2 FROM tab0 cor0
----
127
179
90

query I rowsort
SELECT DISTINCT + - col2 * - 36 AS col2 FROM tab1 AS cor0
----
2124
2448
3456

query I rowsort
SELECT ALL 31 FROM tab1 AS cor0 WHERE NOT 63 BETWEEN col1 AND - col2 + + col2 * ( col1 + + 69 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1609
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + col2 AS SIGNED ) / - col0 <= col0
----

skipif mysql # not compatible
query III rowsort label-1609
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) / - col0 <= col0
----

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

query I rowsort
SELECT 99 AS col1 FROM tab0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * + + col0 * - col1 AS col0 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT - ( - col2 ) * - 43 AS col2 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT ALL 72 * col2 AS col2 FROM tab0
----
3384
7128
720

query I rowsort
SELECT + col0 + col0 AS col1 FROM tab2 WHERE NOT - col0 * + 72 NOT BETWEEN ( + ( + 53 ) * col2 ) AND ( - 59 )
----

query I rowsort
SELECT + 21 * + 75 AS col1 FROM tab1
----
1575
1575
1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT + 71 AS col0 FROM tab0 WHERE NOT ( - col1 ) NOT IN ( col0 + col0 * + 64 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT DISTINCT + 41 DIV - + MAX( col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT + 41 / - + MAX ( col2 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT 9 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT ALL ( + + CAST( 21 AS SIGNED ) ) * col1 FROM tab1
----
105
294
987

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL ( + + CAST ( 21 AS INTEGER ) ) * col1 FROM tab1
----
105
294
987

query I rowsort
SELECT DISTINCT + col2 * - + 30 * col1 FROM tab1
----
-40320
-8850
-95880

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL < ( 91 * - col0 + 19 * + col0 )
----

query I rowsort
SELECT DISTINCT 97 + 87 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IN ( + 34 + + 91 )
----

query I rowsort
SELECT - 25 AS col0 FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT + 26 IS NULL
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 10 / - col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL COUNT( * ) * - 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-108

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL COUNT ( * ) * - 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-108

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT - ( SUM( DISTINCT - - 16 ) ) DIV + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1633
SELECT - ( SUM ( DISTINCT - - 16 ) ) / + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col0 FROM tab0 AS cor0 WHERE NOT 38 IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT - - 89 + - col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
1689
3453
618

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 78 + + 64 + + col1 > col2
----
15
81
47

query I rowsort
SELECT col2 * - - ( 59 ) FROM tab2 AS cor0
----
1357
2360
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT - MAX( ALL - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1639
SELECT - MAX ( ALL - col1 ) FROM tab0 AS cor0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT - ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1642
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( - 3 ) / col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1644
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( - 3 ) / col1 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1645
SELECT 82 / + - col1 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col0 FROM tab2 WHERE - - col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1647
SELECT DISTINCT - SUM( + col1 ) AS col2 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT - SUM ( + col1 ) AS col2 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT MAX( + 42 ) AS col1 FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT MAX ( + 42 ) AS col1 FROM tab2 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col0 + col2 NOT BETWEEN + 61 AND ( col2 )
----
15
87
97

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

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

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

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

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

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

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

query I rowsort
SELECT 42 AS col1 FROM tab2 WHERE ( + - col0 ) IS NOT NULL
----
42
42
42

query I rowsort
SELECT + - col2 - - col0 * + col2 + - col2 - col1 * - col1 FROM tab2 AS cor0
----
3613
8409
8723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT ALL + - col0 FROM tab1 cor0 WHERE NOT col1 <> col0
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 12 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1659
SELECT - col1 FROM tab0 WHERE - 58 BETWEEN NULL AND ( + - CAST( NULL AS DECIMAL ) / - - col1 * col2 - 0 + 29 )
----

skipif mysql # not compatible
query I rowsort label-1659
SELECT - col1 FROM tab0 WHERE - 58 BETWEEN NULL AND ( + - CAST ( NULL AS REAL ) / - - col1 * col2 - 0 + 29 )
----

query II rowsort
SELECT DISTINCT col1 + + + 6 + col0 AS col2, col2 - col0 AS col1 FROM tab1
----
144
-23
71
45
96
-26

query II rowsort
SELECT 74, col1 * + col2 + + + col0 AS col2 FROM tab1 AS cor0
----
74
1395
74
3287
74
380

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

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

query I rowsort
SELECT DISTINCT 77 * + 97 AS col2 FROM tab0 cor0
----
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT + + 8 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT + + 8 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 13 * - col0 col1 FROM tab0 AS cor0
----
1131
1261
195

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 + - col0 + - + ( 59 ) * ( - 23 + col0 ) NOT BETWEEN ( 51 + col0 ) AND col0 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT + 3 * - ( + COUNT( * ) ) * - + COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-1668
SELECT + 3 * - ( + COUNT ( * ) ) * - + COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
27

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1670
SELECT DISTINCT - 81 DIV 24 * - col1 AS col2 FROM tab1
----
141
15
42

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT - 81 / 24 * - col1 AS col2 FROM tab1
----
141
15
42

query II rowsort
SELECT col1 * + col2 AS col2, - col0 FROM tab2
----
1173
-46
3080
-64
3886
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, - col2 + col0 col0 FROM tab0
----
-1
-2
-21
77
-81
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT COUNT( * ) * - SUM( - + col1 ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-1673
SELECT COUNT ( * ) * - SUM ( - + col1 ) FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT - SUM( col1 ) AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-1674
SELECT - SUM ( col1 ) AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-103

query II rowsort
SELECT - 27 AS col0, 51 + + + 3 - + + col1 * col2 * + - 94 AS col1 FROM tab1
----
-27
126390
-27
27784
-27
300478

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT 21 * COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-1676
SELECT 21 * COUNT ( * ) FROM tab2
----
63

query I rowsort
SELECT ALL + 8 FROM tab1 WHERE NOT col2 * + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT ALL MIN( + col2 ) col2, - 2 AS col1 FROM tab1
----
59
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1678
SELECT ALL MIN ( + col2 ) col2, - 2 AS col1 FROM tab1
----
59
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL COUNT( * ) * 40 * - 11 FROM tab0 AS cor0
----
-1320

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL COUNT ( * ) * 40 * - 11 FROM tab0 AS cor0
----
-1320

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col0 / 23 + + 33 + - col1 + col1
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - 54 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT ALL col1 DIV col0 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL col1 / col0 AS col1 FROM tab1 cor0
----
0
0
0

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

query I rowsort
SELECT + col2 * + 81 - col2 FROM tab0 cor0
----
3760
7920
800

query II rowsort
SELECT - ( - - ( - col2 ) ) AS col0, col1 + + ( col1 ) + - col2 * + col2 FROM tab1
----
59
-3471
68
-4530
96
-9188

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1687
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + col1, col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1687
SELECT DISTINCT - CAST ( NULL AS REAL ) + + + col1, col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL + col0 + - - ( + + 35 ) + + col2 * col1 FROM tab1
----
1430
3322
415

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT - 42 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

skipif mysql # not compatible
query I rowsort label-1689
SELECT - 42 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1690
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, 59 * col1 * - 32 - + col1 AS col0 FROM tab2
----
NULL
-126563
NULL
-145453
NULL
-96339

skipif mysql # not compatible
query II rowsort label-1690
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, 59 * col1 * - 32 - + col1 AS col0 FROM tab2
----
NULL
-126563
NULL
-145453
NULL
-96339

query I rowsort
SELECT + - 55 AS col2 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT DISTINCT + col0 DIV - 95 AS col1 FROM tab0 AS cor0
----
-1
0

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 24 NOT BETWEEN col2 AND - col1 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( - col1 BETWEEN - col1 * + col0 + - 88 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1694
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( - col1 BETWEEN - col1 * + col0 + - 88 AND NULL )
----
0

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

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

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

query II rowsort
SELECT DISTINCT + col0, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

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

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

query I rowsort
SELECT 20 + + col2 AS col2 FROM tab1
----
116
79
88

query I rowsort
SELECT ALL + 59 AS col0 FROM tab1 WHERE NULL >= + col0 + - col1 * - 41
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 3 + + - col2 + - col0 / + col0 * - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + - 3 AS col0 FROM tab2 AS cor0
----
-54
-70
-80

query I rowsort
SELECT ALL - col0 - + - col2 AS col0 FROM tab1 AS cor0
----
-23
-26
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL ( + - 17 ) + + COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL ( + - 17 ) + + COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT 7 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1707
SELECT 7 / col2 AS col1 FROM tab1
----
0
0
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT - - col0 DIV + - col2 AS col1 FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT - - col0 / + - col2 AS col1 FROM tab0 cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + col2 * - 99 AS col2 FROM tab2 cor0
----
-2277
-3960
-5742

query I rowsort
SELECT DISTINCT - - 37 * + 15 AS col2 FROM tab1 AS cor0
----
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col1 - - + ( - ( + 95 ) ) col1 FROM tab2
----
46
-44
64
-18
75
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT MIN( - - col2 ) * - - 61 col2 FROM tab2
----
1403

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1714
SELECT DISTINCT MIN ( - - col2 ) * - - 61 col2 FROM tab2
----
1403

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 + - - col2 BETWEEN col0 * + 51 AND ( NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT + 98 * + COUNT( * ) * - COUNT( col1 ) col2 FROM tab0 AS cor0
----
-882

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

query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) + - col2 FROM tab2
----
1035
2520
4292

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1718
SELECT * FROM tab0 cor0 WHERE 77 NOT BETWEEN + col1 - + col0 AND - - CAST( + 47 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1718
SELECT * FROM tab0 cor0 WHERE 77 NOT BETWEEN + col1 - + col0 AND - - CAST ( + 47 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query II rowsort label-1719
SELECT + COUNT ( * ) + ( - + COUNT ( * ) ) / 41 * + COUNT ( * ) * 77 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1720
SELECT ALL + 9 DIV - + COUNT( * ) + MAX( + - col2 ) + 96 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + 9 / - + COUNT ( * ) + MAX ( + - col2 ) + 96 FROM tab0 AS cor0
----
83

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

query I rowsort
SELECT 63 + - col0 AS col1 FROM tab2 AS cor0
----
-1
-12
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT + + 50 + - + 37 DIV + col0 FROM tab0 AS cor0
----
48
50
50

skipif mysql # not compatible
query I rowsort label-1723
SELECT + + 50 + - + 37 / + col0 FROM tab0 AS cor0
----
48
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1724
SELECT * FROM tab0 AS cor0 WHERE col1 <> + + col2 + + - CAST( NULL AS SIGNED ) AND NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-1724
SELECT * FROM tab0 AS cor0 WHERE col1 <> + + col2 + + - CAST ( NULL AS INTEGER ) AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1725
SELECT ALL + 20 + + col0, - ( col1 ) DIV + + col1 AS col0 FROM tab2 AS cor0
----
66
-1
84
-1
95
-1

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL + 20 + + col0, - ( col1 ) / + + col1 AS col0 FROM tab2 AS cor0
----
66
-1
84
-1
95
-1

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 67 col1 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT - col2 * ( - + 2 ) * + col2 * - col2 + - - 11 - - col0 + + col2 * + col2 * col1 FROM tab1
----
-1640386
-393257
-411434

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - 64 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - 64 FROM tab2
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( + 18 ) ) + + col2 * - 4 * - - col2 col1 FROM tab1 cor0
----
-13906
-18478
-36846

query I rowsort
SELECT col2 + - - col1 + col0 + + 54 AS col0 FROM tab0 AS cor0
----
172
197
251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 * - 69 + - col1 + + col1 * col0 + + col2 col2 FROM tab2 AS cor0
----
-994
1579
1704

query I rowsort
SELECT col1 * - ( - 11 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
11
231
891

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT DISTINCT COUNT( * ), + COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1734
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2
----
3
3

query I rowsort
SELECT - - col0 * - + 68 FROM tab1 AS cor0
----
-3468
-5780
-6188

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

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

query I rowsort
SELECT ALL - + AVG ( ALL - + col0 ) FROM tab1 AS cor0 WHERE NOT + 56 <> - - col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 48 ) IN ( - col1, - col2 / - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 54 + + 36 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 * - - col0 IS NULL )
----
90

query I rowsort
SELECT + 15 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
15
15
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1743
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 47 * + CAST( - col2 AS SIGNED ) * - col2 + 83 + - 21 - - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1743
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 47 * + CAST ( - col2 AS INTEGER ) * - col2 + 83 + - 21 - - col0 IS NULL
----
-3

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 0 + + col1 * - col0 * + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT MIN( ALL + 79 ) AS col1, COUNT( + + 97 ) FROM tab0
----
79
3

skipif mysql # not compatible
query II rowsort label-1746
SELECT MIN ( ALL + 79 ) AS col1, COUNT ( + + 97 ) FROM tab0
----
79
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1747
SELECT * FROM tab0 WHERE NOT + + 2 NOT BETWEEN col0 * - - col2 - + 68 / + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1747
SELECT * FROM tab0 WHERE NOT + + 2 NOT BETWEEN col0 * - - col2 - + 68 / + CAST ( NULL AS INTEGER ) AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + + col2 + - + 20 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col0
----

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

query I rowsort
SELECT ( - ( + 54 ) ) FROM tab1
----
-54
-54
-54

query I rowsort
SELECT + ( 3 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT DISTINCT + 80 + + - MIN( ALL + col0 ) AS col0, 52 + - + 58 AS col0 FROM tab2
----
34
-6

skipif mysql # not compatible
query II rowsort label-1754
SELECT DISTINCT + 80 + + - MIN ( ALL + col0 ) AS col0, 52 + - + 58 AS col0 FROM tab2
----
34
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = ( + - ( + col1 ) - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL + COUNT( * ) col2 FROM tab1 AS cor0 WHERE col1 = 63
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1756
SELECT ALL + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE col1 = 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT DISTINCT 61 + COUNT( * ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT 61 + COUNT ( * ) FROM tab1 AS cor0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1758
SELECT + + 64, COUNT( * ) DIV + + SUM( DISTINCT + - col0 ) AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
64
0

skipif mysql # not compatible
query II rowsort label-1758
SELECT + + 64, COUNT ( * ) / + + SUM ( DISTINCT + - col0 ) AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
64
0

query I rowsort
SELECT ALL - col0 - + + 33 AS col2 FROM tab2 AS cor0
----
-108
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT - 9 + - MIN( DISTINCT col0 ) * + 68 FROM tab0 AS cor0
----
-1029

skipif mysql # not compatible
query I rowsort label-1760
SELECT - 9 + - MIN ( DISTINCT col0 ) * + 68 FROM tab0 AS cor0
----
-1029

query II rowsort
SELECT DISTINCT col1 * + col0, col0 AS col0 FROM tab0
----
1215
15
1827
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT col0 / + 48 + - col0 + + CAST( NULL AS SIGNED ) * - col0 + ( - - 37 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT col0 / + 48 + - col0 + + CAST ( NULL AS INTEGER ) * - col0 + ( - - 37 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - + 39 * 13 * + ( + 45 ) AS col2 FROM tab0
----
-22825
-22862
-22914

query I rowsort
SELECT 51 + - col2 * 25 FROM tab1
----
-1424
-1649
-2349

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL < - col2 + - 66 + 10
----

skipif mysql # not compatible
query I rowsort label-1767
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL < - col2 + - 66 + 10
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * + - col2 - - - 39 BETWEEN col1 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 57 + - + 64 + - col1 FROM tab0 AS cor0
----
-28
-8
-88

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

query II rowsort
SELECT + col1 AS col2, col2 * + - 37 FROM tab0 AS cor0
----
1
-3663
21
-370
81
-1739

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL - 74 * - MIN( - + col1 ) * + 37 AS col2 FROM tab0
----
-221778

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - 74 * - MIN ( - + col1 ) * + 37 AS col2 FROM tab0
----
-221778

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT DISTINCT - col2 DIV - col2 col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1774
SELECT DISTINCT - col2 / - col2 col0 FROM tab2
----
1

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

query I rowsort
SELECT - + col0 * - + col0 + + col0 * + 52 FROM tab2 AS cor0
----
4508
7424
9525

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT col1 DIV + - col2 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1777
SELECT col1 / + - col2 FROM tab0 cor0
----
-1
-2
0

query I rowsort
SELECT 90 FROM tab1 WHERE NOT NULL = - col1
----

query II rowsort
SELECT DISTINCT - col0 + - 18 * + - col2 AS col0, + col1 * + 23 * - ( - col2 ) FROM tab1
----
1133
73508
1677
30912
977
6785

query I rowsort
SELECT ALL - 36 + 91 FROM tab0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT - 87 * + COUNT( * ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1781
SELECT - 87 * + COUNT ( * ) FROM tab1 AS cor0
----
-261

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
-97

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

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

query II rowsort
SELECT DISTINCT col1 + + col1 + + 46 - col2 AS col1, col2 FROM tab0
----
-51
99
161
47
78
10

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

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

query I rowsort
SELECT ALL - ( + + ( - - 61 ) ) * + 13 * col2 + - col0 FROM tab1 AS cor0
----
-46872
-54015
-76179

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1789
SELECT ALL - col1 - + col0 + - - 46 + + col0 / - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 91 - col2 AS col0 FROM tab2 AS cor0
----
33
51
68

query I rowsort
SELECT ALL - 30 * col1 * + col2 FROM tab1
----
-40320
-8850
-95880

query I rowsort
SELECT + + col1 + + col2 FROM tab0 WHERE - + col0 + col0 <= NULL
----

query I rowsort
SELECT ALL 5 * - col1 FROM tab0
----
-105
-405
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT DISTINCT 59 + - col2 * col0 DIV 17 AS col2 FROM tab1
----
-229
-236
-305

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT 59 + - col2 * col0 / 17 AS col2 FROM tab1
----
-229
-236
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT - COUNT( * ) - + + COUNT( * ) * + ( 50 ) AS col2 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-1795
SELECT - COUNT ( * ) - + + COUNT ( * ) * + ( 50 ) AS col2 FROM tab1
----
-153

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - col1 * - 35 / + - 65 * + + 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL SUM( + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL SUM ( + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 * col0 * - - col1 + col0 FROM tab0
----
159036
18240
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT + SUM( DISTINCT - 55 ) AS col2 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-1799
SELECT + SUM ( DISTINCT - 55 ) AS col2 FROM tab2
----
-55

query II rowsort
SELECT - col1, 12 AS col0 FROM tab1
----
-14
12
-47
12
-5
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT col2 * - col1 * + col2 + + 92 * 97 DIV + - col2 FROM tab2 AS cor0
----
-123423
-225541
-27367

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT col2 * - col1 * + col2 + + 92 * 97 / + - col2 FROM tab2 AS cor0
----
-123423
-225541
-27367

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 89 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 72 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL MAX( ALL + - 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL MAX ( ALL + - 59 ) FROM tab0
----
-59

query I rowsort
SELECT - col2 * - - col2 FROM tab2
----
-1600
-3364
-529

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

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - - SUM ( DISTINCT col2 ) FROM tab1 cor0
----
223

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

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

query I rowsort
SELECT + + 7 * + col2 * + - 86 + + + 81 FROM tab0 AS cor0
----
-28213
-5939
-59517

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + MAX( ALL - 96 ) * + 26 AS col2 FROM tab0 AS cor0
----
-2496

skipif mysql # not compatible
query I rowsort label-1810
SELECT + MAX ( ALL - 96 ) * + 26 AS col2 FROM tab0 AS cor0
----
-2496

query II rowsort
SELECT DISTINCT - col1, 75 AS col0 FROM tab0 AS cor0
----
-1
75
-21
75
-81
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT DISTINCT 14 DIV + col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT 14 / + col2 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 87 col1 FROM tab2 cor0
----
4002
5568
6525

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

query II rowsort
SELECT col0 + - ( + col2 ), col0 + - col1 AS col2 FROM tab2
----
17
8
23
-5
24
-13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 73 ) BETWEEN ( NULL ) AND 54
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT + CAST( NULL AS SIGNED ) / + + col0 FROM tab2 cor0 WHERE col1 <= col2 / col1
----

skipif mysql # not compatible
query I rowsort label-1820
SELECT + CAST ( NULL AS INTEGER ) / + + col0 FROM tab2 cor0 WHERE col1 <= col2 / col1
----

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

query III rowsort
SELECT * FROM tab0 WHERE - - ( + col2 ) BETWEEN - 26 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - 53 * - 84 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

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

query I rowsort
SELECT ALL col1 - + - 4 AS col0 FROM tab2 AS cor0
----
55
71
81

query II rowsort
SELECT ALL - col1 * 84 - + 21 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-4305
-23
-5649
-58
-6489
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT MIN( - col1 ) + - - COUNT( ALL + + col2 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1828
SELECT MIN ( - col1 ) + - - COUNT ( ALL + + col2 ) FROM tab2 AS cor0
----
-74

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

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

query I rowsort
SELECT DISTINCT col1 + + + ( + col2 ) + - + col0 + + + 57 FROM tab0 WHERE + 38 < + col1
----
170

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

query I rowsort
SELECT 2 * - col1 FROM tab1
----
-10
-28
-94

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

query I rowsort
SELECT ALL + ( - + col0 ) + - col0 + 10 * - col2 AS col0 FROM tab0 WHERE NOT - + ( - col2 ) * + + col1 + 14 IS NULL
----
-1184
-274
-500

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col1 IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + col0 + col1 * - col0 / col0 > NULL
----

query II rowsort
SELECT ALL + + col1 * - 58 + - col1 AS col2, 49 AS col1 FROM tab2 AS cor0
----
-3009
49
-3953
49
-4543
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL + SUM( ALL + col2 ) * 22 FROM tab1 AS cor0
----
4906

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + SUM ( ALL + col2 ) * 22 FROM tab1 AS cor0
----
4906

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 22 + - col0 + - + col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL - 61 DIV + ( 46 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - 61 / + ( 46 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT - COUNT( * ) FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1843
SELECT - COUNT ( * ) FROM tab2 WHERE + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 85 * - col1 col0 FROM tab2
----
261800
330310
99705

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT 79 * + + COUNT( * ) * - COUNT( * ) FROM tab1
----
-711

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT 79 * + + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-711

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 77 - - 63 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT ALL - col1 + + + col2 * col2 * + col2 DIV + col2 + col2 AS col1 FROM tab0 AS cor0
----
2175
89
9899

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - col1 + + + col2 * col2 * + col2 / + col2 + col2 AS col1 FROM tab0 AS cor0
----
2175
89
9899

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1850
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + ( ( - col0 ) ) - + + col0 + - col1 + 5 / + - col2 * + 80 + - col0 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1850
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + ( ( - col0 ) ) - + + col0 + - col1 + 5 / + - col2 * + 80 + - col0 = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - - col1 - - - col0 * - 31 AS col1 FROM tab0 AS cor0
----
2718
3008
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 + - 61 col1 FROM tab2 AS cor0
----
43
72
8

query II rowsort
SELECT DISTINCT col1 * - col1 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
-2601
-46
-4489
-75
-5929
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT DISTINCT 95 - - ( col2 ) + + col1 + - - col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
159
205
210

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT 95 - - ( col2 ) + + col1 + - - col1 / - col0 AS col1 FROM tab1 AS cor0
----
159
205
210

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

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

query II rowsort
SELECT DISTINCT - 1, 75 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-1
75

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + - col2 AS col0 FROM tab2
----
-1058
-2560
-4350

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 99 ) < NULL
----

query I rowsort
SELECT 51 AS col1 FROM tab0 cor0
----
51
51
51

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

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

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 69 AND - col1 * 32
----

query I rowsort
SELECT - 58 FROM tab2 AS cor0 WHERE NOT - col1 * 3 IS NULL
----
-58
-58
-58

query I rowsort
SELECT - - 2 AS col1 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT ALL col2 * col0 * - col1 FROM tab0 WHERE NOT + + col2 <> - 17
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 * col1 - + 10 = - col1 * + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 22 col0, - 26 * 36 AS col1 FROM tab0
----
-22
-936
-22
-936
-22
-936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1870
SELECT 12 DIV SUM( ALL col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT 12 / SUM ( ALL col0 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT col2 DIV + 16 AS col0 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-1871
SELECT col2 / + 16 AS col0 FROM tab1
----
3
4
6

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

skipif mysql # not compatible
query II rowsort label-1872
SELECT - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT + - 66 * + 94 FROM tab0 AS cor0
----
-6204
-6204
-6204

query I rowsort
SELECT ALL + col0 * - 69 * + 54 AS col1 FROM tab2 AS cor0
----
-171396
-238464
-279450

query II rowsort
SELECT + + col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT + col2 * - 26 * - 23 FROM tab2 AS cor0
----
13754
23920
34684

query I rowsort
SELECT ALL - - 84 FROM tab1 WHERE - col2 NOT IN ( + col0, col0, - col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 74
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 74
----
0

query I rowsort
SELECT DISTINCT ( - col2 ) * 4 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col2 * col0 * + 60 FROM tab1 AS cor0
----
293760
300900
371280

query I rowsort
SELECT + 63 * col2 + + - 68 FROM tab0 AS cor0
----
2893
562
6169

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1885
SELECT + 24 * + - CAST( - - col0 AS SIGNED ) * - 30 - col2 - col1 + + col0 + + col2 * 22 * + col2 * - + col0 AS col2, - 38 + 16 FROM tab0
----
-128704
-22
-20845497
-22
-718283
-22

skipif mysql # not compatible
query II rowsort label-1885
SELECT + 24 * + - CAST ( - - col0 AS INTEGER ) * - 30 - col2 - col1 + + col0 + + col2 * 22 * + col2 * - + col0 AS col2, - 38 + 16 FROM tab0
----
-128704
-22
-20845497
-22
-718283
-22

query I rowsort
SELECT + 37 + - 87 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT + 76 + - col1 - - - 42 AS col1 FROM tab2
----
-17
-33
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1888
SELECT - 87 DIV col0 + - col0 AS col0 FROM tab1
----
-52
-86
-91

skipif mysql # not compatible
query I rowsort label-1888
SELECT - 87 / col0 + - col0 AS col0 FROM tab1
----
-52
-86
-91

query II rowsort
SELECT ALL + - AVG ( ALL 72 ), + 79 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
NULL
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT MIN( DISTINCT col0 ) + + 9 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1891
SELECT MIN ( DISTINCT col0 ) + + 9 FROM tab2
----
55

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

query I rowsort
SELECT ALL + + ( + + col0 ) + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT + CAST( NULL AS SIGNED ) + + 71 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT + CAST ( NULL AS INTEGER ) + + 71 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1897
SELECT - col2 - + col0 + col1 * CAST ( NULL AS INTEGER ) col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT col1 DIV col2 - col2 - - + col0 * - - col0 FROM tab0
----
179
7561
9310

skipif mysql # not compatible
query I rowsort label-1898
SELECT col1 / col2 - col2 - - + col0 * - - col0 FROM tab0
----
179
7561
9310

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + col0 * 33 NOT IN ( + col2 + col2 )
----
23
40
58

query II rowsort
SELECT - col1 AS col1, 80 + 77 AS col2 FROM tab1 AS cor0
----
-14
157
-47
157
-5
157

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT - COUNT( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1903
SELECT - COUNT ( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 11 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 18 * - ( + 10 ), + 36 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + MAX( + 46 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1908
SELECT + MAX ( + 46 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT ALL ( - 25 ) AS col0 FROM tab2
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 * - col0 col0 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT + - 56 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + 18 IS NULL
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1912
SELECT - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - + col1 * + - ( - - col2 ) + + - 36 * 91 FROM tab1 AS cor0
----
-1932
-2981
-80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - - SUM( DISTINCT + 84 ) col1 FROM tab0 cor0
----
84

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

query II rowsort
SELECT + col1, + col2 * - + col0 * col0 FROM tab2 AS cor0
----
51
-48668
67
-326250
77
-163840

query I rowsort
SELECT col1 * + - col0 - - col1 + + col0 FROM tab2 AS cor0
----
-2249
-4787
-4883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 AS cor0 WHERE NOT + ( - 45 ) >= + - col1 * col0
----

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

query I rowsort
SELECT DISTINCT ( - 3 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT col2 * - 11 AS col0 FROM tab0
----
-1089
-110
-517

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

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

query I rowsort
SELECT ALL + col0 * ( + - 10 ) AS col2 FROM tab2
----
-460
-640
-750

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL - col0 - - + CAST( + col1 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
-21
24
59

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - col0 - - + CAST ( + col1 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
-21
24
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT DISTINCT - ( - col2 ) + + - CAST( NULL AS SIGNED ) * + + col1 + + col0 + - 31 + - 68 - col1 / + col2 + + - col0 + + 43 * - col0 - - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT - ( - col2 ) + + - CAST ( NULL AS INTEGER ) * + + col1 + + col0 + - 31 + - 68 - col1 / + col2 + + - col0 + + 43 * - col0 - - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT MIN( DISTINCT - col2 ) col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1930
SELECT DISTINCT MIN ( DISTINCT - col2 ) col2 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT ALL CAST( + col0 AS SIGNED ) - - + 94 FROM tab1 AS cor0
----
145
179
185

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL CAST ( + col0 AS INTEGER ) - - + 94 FROM tab1 AS cor0
----
145
179
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT - 56 + ( + 77 ) * - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1715
3024
4410

skipif mysql # not compatible
query I rowsort label-1932
SELECT - 56 + ( + 77 ) * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1715
3024
4410

query II rowsort
SELECT + 74, - 38 - col0 AS col1 FROM tab0 WHERE - col1 NOT BETWEEN 11 AND - col0 + col1 - + ( + col1 ) / col2
----
74
-125
74
-135
74
-53

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

query I rowsort
SELECT - 25 * col2 * + + 45 * 16 FROM tab1
----
-1062000
-1224000
-1728000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1936
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT SUM( 7 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1939
SELECT SUM ( 7 ) FROM tab2
----
21

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

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

query II rowsort
SELECT DISTINCT col1 AS col1, + col2 + + col0 AS col2 FROM tab1
----
14
147
47
159
5
144

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

query I rowsort
SELECT - col1 * 59 FROM tab2
----
-3009
-3953
-4543

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT + COUNT( * ) * + 10 AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1946
SELECT + COUNT ( * ) * + 10 AS col2 FROM tab2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT ALL - MIN( - - col1 ) DIV - - MIN( col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - MIN ( - - col1 ) / - - MIN ( col0 ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT DISTINCT - col0 DIV - + 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT - col0 / - + 95 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - - COUNT( * ) + + 13 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1949
SELECT - - COUNT ( * ) + + 13 FROM tab1 AS cor0
----
16

query I rowsort
SELECT + col2 * 45 + - 96 FROM tab0 AS cor0
----
2019
354
4359

query II rowsort
SELECT ALL + + col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( 38 ) IS NOT NULL
----

query I rowsort
SELECT - 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT DISTINCT + - 91 + + - ( + col1 ) FROM tab2 AS cor0
----
-142
-158
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1955
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col0 / CAST( + - col2 AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-1955
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col0 / CAST ( + - col2 AS INTEGER ) + - col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 45 < - - ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT DISTINCT - MAX( DISTINCT col1 ), 40 * + 60 AS col0 FROM tab1 cor0
----
-47
2400

skipif mysql # not compatible
query II rowsort label-1957
SELECT DISTINCT - MAX ( DISTINCT col1 ), 40 * + 60 AS col0 FROM tab1 cor0
----
-47
2400

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

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

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

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

query I rowsort
SELECT - 69 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL col1 * + 84 + col0 AS col2 FROM tab1
----
1227
4039
505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT ALL + col0 * - col0 - col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * - + 24 / + col0 + + col0 IS NOT NULL
----
-2652
-7310
-8372

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + col0 * - col0 - col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * - + 24 / + col0 + + col0 IS NOT NULL
----
-2652
-7310
-8372

query I rowsort
SELECT DISTINCT + - col1 * col1 FROM tab0 WHERE col2 IS NOT NULL
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT 77 * col1 AS col2 FROM tab1
----
1078
3619
385

query I rowsort
SELECT - 89 * - col2 + + + col2 + + col2 + - 0 + + 2 AS col0 FROM tab2
----
2095
3642
5280

query III rowsort
SELECT * FROM tab0 WHERE + - 38 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1967
SELECT - CAST( + AVG ( ALL + + 76 ) AS SIGNED ) + + MAX( + col2 ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-1967
SELECT - CAST ( + AVG ( ALL + + 76 ) AS INTEGER ) + + MAX ( + col2 ) AS col1 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT 85 * - ( - + COUNT( * ) ) * + - ( + ( 67 ) ) + + MIN( ALL - + 39 ) + + COUNT( * ) col1 FROM tab0
----
-17121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1968
SELECT 85 * - ( - + COUNT ( * ) ) * + - ( + ( 67 ) ) + + MIN ( ALL - + 39 ) + + COUNT ( * ) col1 FROM tab0
----
-17121

onlyif mysql # DIV for integer division: 
query II rowsort label-1969
SELECT ALL - col2 + col1 * - + 85 AS col0, col2 DIV col0 FROM tab2
----
-4358
0
-5753
0
-6585
0

skipif mysql # not compatible
query II rowsort label-1969
SELECT ALL - col2 + col1 * - + 85 AS col0, col2 / col0 FROM tab2
----
-4358
0
-5753
0
-6585
0

query I rowsort
SELECT DISTINCT + col1 + + ( - col1 ) - - 98 AS col0 FROM tab2
----
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1972
SELECT - CAST( CAST( + + 89 AS SIGNED ) AS SIGNED ) AS col2, 39 FROM tab0
----
-89
39
-89
39
-89
39

skipif mysql # not compatible
query II rowsort label-1972
SELECT - CAST ( CAST ( + + 89 AS INTEGER ) AS INTEGER ) AS col2, 39 FROM tab0
----
-89
39
-89
39
-89
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL 11 + + 22 * COUNT( * ) - + + COUNT( * ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL 11 + + 22 * COUNT ( * ) - + + COUNT ( * ) FROM tab1
----
74

query I rowsort
SELECT DISTINCT 47 + - + col0 FROM tab0 AS cor0
----
-40
-50
32

query I rowsort
SELECT + + col2 - col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT DISTINCT - MIN( + 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - MIN ( + 0 ) FROM tab0
----
0

query I rowsort
SELECT - 96 * - - col0 AS col0 FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT 27 AS col1 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE 5 <= 19
----
3

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE 5 <= 19
----
3

query I rowsort
SELECT ALL - ( + 7 ) * - col2 FROM tab2 AS cor0
----
161
280
406

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT ALL + col2 DIV + 29 + col2 FROM tab1 AS cor0
----
61
70
99

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL + col2 / + 29 + col2 FROM tab1 AS cor0
----
61
70
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1983
SELECT DISTINCT - ( + ( - SUM( CAST( NULL AS DECIMAL ) ) ) ) * + 21 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT - ( + ( - SUM ( CAST ( NULL AS REAL ) ) ) ) * + 21 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 93 col0 FROM tab2
----
4278
5952
6975

query I rowsort
SELECT DISTINCT + 50 AS col0 FROM tab0
----
50

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

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

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

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

query I rowsort
SELECT AVG ( 14 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1990
SELECT - COUNT ( * ) * + + 44 AS col2 FROM tab0 AS cor0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 25 col2 FROM tab0 AS cor0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + COUNT( DISTINCT + 22 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1992
SELECT + COUNT ( DISTINCT + 22 ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT DISTINCT + 75 * - 70 + - MIN( - - 39 ) + 69 AS col2 FROM tab2 AS cor0
----
-5220

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT + 75 * - 70 + - MIN ( - - 39 ) + 69 AS col2 FROM tab2 AS cor0
----
-5220

query I rowsort
SELECT DISTINCT + col1 * + + col1 + - col2 AS col2 FROM tab0
----
-98
431
6514

query I rowsort
SELECT ALL + 6 - col1 + - 61 AS col0 FROM tab0 AS cor0
----
-136
-56
-76

query I rowsort
SELECT + - 86 AS col1 FROM tab2 cor0
----
-86
-86
-86

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

query II rowsort
SELECT - 69 AS col0, col0 FROM tab2 AS cor0
----
-69
46
-69
64
-69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT + + ( SUM( ALL + col2 ) ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + + ( SUM ( ALL + col2 ) ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT + - 27 + + + COUNT( * ) FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT + - 27 + + + COUNT ( * ) FROM tab2 cor0
----
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + - col2 AND + + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2002
SELECT * FROM tab1 AS cor0 WHERE - CAST( ( + + 65 ) AS SIGNED ) * 70 + - col2 + - - CAST( - 6 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2002
SELECT * FROM tab1 AS cor0 WHERE - CAST ( ( + + 65 ) AS INTEGER ) * 70 + - col2 + - - CAST ( - 6 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 55 * col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
1265
2200
3190

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + - 33 * + 15 / col2 BETWEEN col1 + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT + 95 DIV - col1 + + col1 + + 86 * col2 + - + 39 FROM tab1
----
5021
5854
8225

skipif mysql # not compatible
query I rowsort label-2005
SELECT + 95 / - col1 + + col1 + + 86 * col2 + - + 39 FROM tab1
----
5021
5854
8225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2006
SELECT DISTINCT - col1 + + 40, ( - CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) ) + + 90 AS col1 FROM tab2 AS cor0
----
-11
39
-27
23
-37
13

skipif mysql # not compatible
query II rowsort label-2006
SELECT DISTINCT - col1 + + 40, ( - CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) ) + + 90 AS col1 FROM tab2 AS cor0
----
-11
39
-27
23
-37
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - 41 + + COUNT( * ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2007
SELECT - 41 + + COUNT ( * ) FROM tab2 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 84 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + 44 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
125
45
65

query I rowsort
SELECT ALL + + 92 * - + col0 FROM tab1 cor0
----
-4692
-7820
-8372

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT ALL - col2 DIV + - col1 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) + col2 + 42 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - col2 / + - col1 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) + col2 + 42 IS NOT NULL
----
0
0
0

query II rowsort
SELECT 91 * - 72 * - col0, col0 / - + col1 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT - - 87 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT 22, + col2 AS col2 FROM tab0
----
22
10
22
47
22
99

query I rowsort
SELECT + ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, + col1 col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT + col2 * + + 98 FROM tab2 AS cor0
----
2254
3920
5684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 66 col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT ALL col0 * 53 + - + 14 * + col1 * - 69 FROM tab2 AS cor0
----
51704
68697
77774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 / - col1 col0 FROM tab0 AS cor0 WHERE - ( - 13 ) < NULL
----

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

query I rowsort
SELECT DISTINCT + 4 * - 80 FROM tab0 cor0
----
-320

query II rowsort
SELECT - 37, col1 + + - 14 AS col1 FROM tab1 AS cor0
----
-37
-9
-37
0
-37
33

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

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

query I rowsort
SELECT DISTINCT - col2 + - - 7 FROM tab0
----
-3
-40
-92

query I rowsort
SELECT ALL + col1 + - + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT + MIN( DISTINCT 4 ) + - 12 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2030
SELECT + MIN ( DISTINCT 4 ) + - 12 FROM tab1 AS cor0
----
-8

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT ALL - CAST( + AVG ( DISTINCT + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - CAST ( + AVG ( DISTINCT + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + col1
----

query I rowsort
SELECT DISTINCT - + 6 FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT ALL - MAX( DISTINCT - + 84 ) FROM tab2, tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL - MAX ( DISTINCT - + 84 ) FROM tab2, tab1 AS cor0
----
84

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + - col2 - - col1 > ( ( + - col1 ) )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT + CAST( col1 AS SIGNED ) + + ( + 58 ) FROM tab1 AS cor0
----
105
63
72

skipif mysql # not compatible
query I rowsort label-2038
SELECT + CAST ( col1 AS INTEGER ) + + ( + 58 ) FROM tab1 AS cor0
----
105
63
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2039
SELECT + col1 * CAST( + 43 AS SIGNED ) + + - 62 + + col1 + 89 + 39 DIV - col1 - col2 AS col1 FROM tab0 cor0
----
-67
3544
940

skipif mysql # not compatible
query I rowsort label-2039
SELECT + col1 * CAST ( + 43 AS INTEGER ) + + - 62 + + col1 + 89 + 39 / - col1 - col2 AS col1 FROM tab0 cor0
----
-67
3544
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT ALL + CAST( - 32 AS SIGNED ) FROM tab2 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + CAST ( - 32 AS INTEGER ) FROM tab2 AS cor0
----
-32
-32
-32

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2042
SELECT col1 + - col1 DIV + 49, col1 col1 FROM tab0 AS cor0
----
1
1
21
21
80
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2042
SELECT col1 + - col1 / + 49, col1 col1 FROM tab0 AS cor0
----
1
1
21
21
80
81

query I rowsort
SELECT - col0 + + - 76 * + 88 AS col0 FROM tab1
----
-6739
-6773
-6779

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, col1 * 83 * + col1 FROM tab2
----
-23
215883
-40
492107
-58
372587

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2048
SELECT - col1 AS col1 FROM tab2 WHERE + col1 + CAST( NULL AS DECIMAL ) * - - 20 * - col2 = - + col0
----

skipif mysql # not compatible
query I rowsort label-2048
SELECT - col1 AS col1 FROM tab2 WHERE + col1 + CAST ( NULL AS REAL ) * - - 20 * - col2 = - + col0
----

query II rowsort
SELECT col1 AS col0, - 12 FROM tab1
----
14
-12
47
-12
5
-12

query I rowsort
SELECT DISTINCT + col0 + col0 - 82 AS col1 FROM tab1
----
100
20
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, + 77 col1 FROM tab2
----
-46
77
-64
77
-75
77

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 * + col1 AS col0 FROM tab1
----
51
196
85
25
91
2209

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN 35 AND + + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL - - MAX( - + 86 ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - - MAX ( - + 86 ) FROM tab1 AS cor0
----
-86

query II rowsort
SELECT col1, col2 * - 55 * col2 FROM tab2 cor0
----
51
-29095
67
-185020
77
-88000

query I rowsort
SELECT - + 82 * + col2 AS col0 FROM tab0 AS cor0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT - COUNT( * ) * + 55 * + + 88 FROM tab1
----
-14520

skipif mysql # not compatible
query I rowsort label-2057
SELECT - COUNT ( * ) * + 55 * + + 88 FROM tab1
----
-14520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT DISTINCT CAST( 68 AS SIGNED ) AS col2 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT CAST ( 68 AS INTEGER ) AS col2 FROM tab0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2059
SELECT - + COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) * - - 61
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) * - - 61
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2060
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( NULL AS DECIMAL ) + + 37 <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2060
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( NULL AS REAL ) + + 37 <> NULL
----

query I rowsort
SELECT - - 89 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

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

query I rowsort
SELECT 41 * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3321
-41
-861

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT DISTINCT + 37 DIV col1 FROM tab2 AS cor0
----
0

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

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

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

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

query II rowsort
SELECT DISTINCT col1, - col2 * + col2 AS col2 FROM tab2
----
51
-529
67
-3364
77
-1600

query I rowsort
SELECT DISTINCT + col2 + + 60 AS col1 FROM tab0
----
107
159
70

query I rowsort
SELECT ALL 63 + - 26 + col1 * - 37 * + + ( col2 ) AS col1 FROM tab1
----
-10878
-118215
-49691

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT DISTINCT + col0 DIV - col1 AS col1 FROM tab2
----
-1
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 65 + + + 32 col2 FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2072
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + CAST( col0 AS SIGNED ) ) NOT BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2072
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + CAST ( col0 AS INTEGER ) ) NOT BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col2 FROM tab1 WHERE + 37 IN ( + 69 )
----

query I rowsort
SELECT 26 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT ALL - CAST( - 39 AS SIGNED ) AS col2 FROM tab0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - CAST ( - 39 AS INTEGER ) AS col2 FROM tab0
----
39
39
39

query I rowsort
SELECT ALL - 11 + col2 * - col2 AS col1 FROM tab0
----
-111
-2220
-9812

query I rowsort
SELECT col0 * 58 AS col2 FROM tab1
----
2958
4930
5278

query I rowsort
SELECT DISTINCT + col2 * - 29 AS col0 FROM tab2
----
-1160
-1682
-667

query I rowsort
SELECT ALL + 26 * col2 FROM tab0
----
1222
2574
260

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) IN ( 15 )
----
87
21
10
97
1
99

query I rowsort
SELECT + 37 AS col1 FROM tab1 WHERE NOT ( + 64 / + 40 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL - SUM( ALL col2 ) * 94 col2 FROM tab0
----
-14664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2082
SELECT ALL - SUM ( ALL col2 ) * 94 col2 FROM tab0
----
-14664

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2083
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) NOT IN ( + col0 * 55 - + col2 )
----

skipif mysql # not compatible
query III rowsort label-2083
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) NOT IN ( + col0 * 55 - + col2 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2086
SELECT ALL + 75 DIV - COUNT( DISTINCT + 43 ) AS col1 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL + 75 / - COUNT ( DISTINCT + 43 ) AS col1 FROM tab1
----
-75

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL >= ( - 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT CAST( NULL AS SIGNED ) - - col0 * col0 FROM tab2
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2089
SELECT + COUNT ( * ) + + ( CAST ( - 67 AS INTEGER ) ) AS col1 FROM tab1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT ALL 78 DIV col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL 78 / col0 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - col0 * + ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + col2 / 62 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT ALL 51 DIV + col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL 51 / + col0 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col1 + - ( col0 + 38 ) AS col1 FROM tab2
----
-25
-33
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ( + 30 ) * COUNT( DISTINCT - col2 ) FROM tab2 WHERE NOT NULL NOT IN ( - ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT ( + 30 ) * COUNT ( DISTINCT - col2 ) FROM tab2 WHERE NOT NULL NOT IN ( - ( col0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT + 13 DIV col2 col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2096
SELECT + 13 / col2 col2 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT DISTINCT 41 * - MIN( - 4 ) + COUNT( * ) FROM tab0
----
167

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT 41 * - MIN ( - 4 ) + COUNT ( * ) FROM tab0
----
167

query I rowsort
SELECT + 65 * col0 + col1 FROM tab0 WHERE NOT + col1 IS NULL
----
1056
5676
6306

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT - MIN( ALL - 41 ) * + SUM( DISTINCT + 34 * col1 ) - - COUNT( * ) FROM tab1
----
92007

skipif mysql # not compatible
query I rowsort label-2101
SELECT - MIN ( ALL - 41 ) * + SUM ( DISTINCT + 34 * col1 ) - - COUNT ( * ) FROM tab1
----
92007

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

query I rowsort
SELECT col1 * col2 AS col0 FROM tab2 WHERE ( col2 ) + col1 * 70 >= + 93
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( col1 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT - 34 - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( - 10 )
----
-37

skipif mysql # not compatible
query I rowsort label-2105
SELECT - 34 - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( - 10 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT + MIN( - 52 ) AS col0 FROM tab2 AS cor0 WHERE - col1 * + col0 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + MIN ( - 52 ) AS col0 FROM tab2 AS cor0 WHERE - col1 * + col0 = ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - 96 < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * col1 col1 FROM tab1
----
-1218
-4089
-435

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

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( - col2 ) / col0 )
----

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

query I rowsort
SELECT - + ( + col2 ) * col2 FROM tab0 AS cor0
----
-100
-2209
-9801

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 54 + - 48 / col0 BETWEEN NULL AND col0 + + 96 * - col2
----

query I rowsort
SELECT ALL + col0 - 90 AS col1 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) + col0 <> + 44
----

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

query I rowsort
SELECT - col2 * - - col1 + - col0 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT - 36 * - col1 AS col1 FROM tab1 WHERE col0 * + col0 < ( + col0 + 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2119
SELECT DISTINCT * FROM tab1 WHERE NOT 94 + - 35 NOT IN ( 41 - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2119
SELECT DISTINCT * FROM tab1 WHERE NOT 94 + - 35 NOT IN ( 41 - CAST ( col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT COUNT( * ) + - + 59 AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-2120
SELECT COUNT ( * ) + - + 59 AS col0 FROM tab2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT col2 + col2 + col1 * 33 AS col0 FROM tab2
----
1729
2327
2621

query I rowsort
SELECT col0 + 63 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 99 + col0 AS col1 FROM tab2
----
145
163
174

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + col2 NOT IN ( col0 )
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT 59 + - + col1 FROM tab1
----
12
45
54

query I rowsort
SELECT DISTINCT + col1 + + - ( - 82 ) FROM tab1
----
129
87
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2128
SELECT * FROM tab2 AS cor0 WHERE ( 82 ) NOT BETWEEN ( NULL ) AND CAST( + col0 AS SIGNED ) + + 66
----

skipif mysql # not compatible
query III rowsort label-2128
SELECT * FROM tab2 AS cor0 WHERE ( 82 ) NOT BETWEEN ( NULL ) AND CAST ( + col0 AS INTEGER ) + + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT MIN( DISTINCT + 70 ) - - 17 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2129
SELECT MIN ( DISTINCT + 70 ) - - 17 FROM tab0
----
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col1 * - - 7 - col0 col0 FROM tab0 AS cor0
----
-90
3000
45912

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT 8 - - MIN( + ( col2 ) ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT 8 - - MIN ( + ( col2 ) ) FROM tab2 AS cor0
----
31

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

query I rowsort
SELECT 5 * + col0 FROM tab2 cor0
----
230
320
375

query I rowsort
SELECT DISTINCT 64 * + + 90 FROM tab1
----
5760

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT ALL + col1 DIV - col0 AS col2 FROM tab2
----
-1
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT DISTINCT 91 * CAST( + col1 AS SIGNED ) * - 41 FROM tab0
----
-302211
-3731
-78351

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT 91 * CAST ( + col1 AS INTEGER ) * - 41 FROM tab0
----
-302211
-3731
-78351

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT DISTINCT SUM( + col1 ), COUNT( * ) AS col1 FROM tab1
----
66
3

skipif mysql # not compatible
query II rowsort label-2138
SELECT DISTINCT SUM ( + col1 ), COUNT ( * ) AS col1 FROM tab1
----
66
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT ALL col1 FROM tab2 WHERE + col0 + - CAST( 42 AS SIGNED ) NOT BETWEEN col1 AND ( ( col1 ) )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL col1 FROM tab2 WHERE + col0 + - CAST ( 42 AS INTEGER ) NOT BETWEEN col1 AND ( ( col1 ) )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL COUNT( * ) * 42 AS col1 FROM tab1 WHERE NOT + + 15 BETWEEN ( col2 ) AND col0
----
126

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL COUNT ( * ) * 42 AS col1 FROM tab1 WHERE NOT + + 15 BETWEEN ( col2 ) AND col0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT ALL + col0 AS col2 FROM tab1 WHERE col1 * CAST( NULL AS SIGNED ) / ( - col0 ) < ( - col2 + - 24 )
----

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL + col0 AS col2 FROM tab1 WHERE col1 * CAST ( NULL AS INTEGER ) / ( - col0 ) < ( - col2 + - 24 )
----

query I rowsort
SELECT DISTINCT - ( - + 60 ) * - + col0 + col1 FROM tab1
----
-3046
-5095
-5413

query I rowsort
SELECT DISTINCT 76 FROM tab0 WHERE NOT ( - 56 ) NOT IN ( col1 )
----

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

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

skipif mysql # not compatible
query I rowsort label-2145
SELECT COUNT ( * ) FROM tab0 WHERE NOT - ( + + col1 ) * + col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + 2 - 51 IN ( - 76 * + 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 44 * 99 * - 68 FROM tab1 AS cor0
----
-296208

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ( + MAX( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2148
SELECT ( + MAX ( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT ALL + + col0 * + col1, - 26 + col0 AS col2 FROM tab1 AS cor0
----
425
59
4277
65
714
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + - + 52 + 26 AS col0 FROM tab0 cor0
----
-25
-5
55

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

skipif mysql # not compatible
query I rowsort label-2152
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 5 IS NOT NULL
----
-3

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

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

query I rowsort
SELECT + col0 * + 3 FROM tab2 AS cor0
----
138
192
225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT - MAX( ALL + 0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - MAX ( ALL + 0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 + + 6 FROM tab2 WHERE ( - col1 + + 60 NOT IN ( 87 ) )
----
52
70
81

query I rowsort
SELECT ALL 1 * + + col1 + 12 AS col2 FROM tab0
----
13
33
93

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 66 + col2 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT + - 43 * - MAX( DISTINCT - ( - col0 ) * 54 ) AS col1 FROM tab0 WHERE ( - 45 ) + + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT + - 43 * - MAX ( DISTINCT - ( - col0 ) * 54 ) AS col1 FROM tab0 WHERE ( - 45 ) + + - col0 IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + COUNT ( * ) + ( - 49 ) FROM tab0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 29 - 67 col1 FROM tab1
----
13
47
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 WHERE 5 * - col1 / + col1 NOT BETWEEN NULL AND + - col0 * + col2
----
3

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 WHERE 5 * - col1 / + col1 NOT BETWEEN NULL AND + - col0 * + col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT DISTINCT + col2 * - col2 DIV - + col2 + + col2 - + 16 AS col0 FROM tab1 AS cor0
----
102
120
176

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT + col2 * - col2 / - + col2 + + col2 - + 16 AS col0 FROM tab1 AS cor0
----
102
120
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT + COUNT( * ) + + ( CAST( + MAX( col0 ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2166
SELECT + COUNT ( * ) + + ( CAST ( + MAX ( col0 ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 12 * + col0 IN ( + 13 )
----
-3

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 12 * + col0 IN ( + 13 )
----
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2168
SELECT - 35 + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-32

query III rowsort
SELECT * FROM tab0 WHERE - + 40 * + 78 * + 19 + - - col0 * - - 27 * col1 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - - ( + col0 ) col2, - col0 * col2 AS col1 FROM tab2
----
2346
-1058
4928
-2560
5025
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL 78 * MIN( DISTINCT CAST( NULL AS SIGNED ) ) + + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL 78 * MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + + - ( - - col2 ) * - 86 col0 FROM tab2
----
2019
3481
5029

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 * - - col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( col2 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT ALL - SUM( col2 ) AS col0, 53 AS col2 FROM tab2 AS cor0
----
-121
53

skipif mysql # not compatible
query II rowsort label-2174
SELECT ALL - SUM ( col2 ) AS col0, 53 AS col2 FROM tab2 AS cor0
----
-121
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - COUNT( DISTINCT - - col1 ) * + - COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - COUNT ( DISTINCT - - col1 ) * + - COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
9

query II rowsort
SELECT - 26, - col0 + - col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / col1 > + col0
----
-26
-2652
-26
-7310
-26
-8372

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT + 83 + 21 + col2 <= NULL ) )
----

query I rowsort
SELECT - 61 * 56 FROM tab0
----
-3416
-3416
-3416

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

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

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT COUNT ( * ) * 40 FROM tab1
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-2182
SELECT + col0, - col1 DIV 4 + 19 FROM tab0 WHERE NOT 84 + - col0 + + col2 IS NULL
----
15
-1
87
14
97
19

skipif mysql # not compatible
query II rowsort label-2182
SELECT + col0, - col1 / 4 + 19 FROM tab0 WHERE NOT 84 + - col0 + + col2 IS NULL
----
15
-1
87
14
97
19

query II rowsort
SELECT ALL col1, + 1 * - 66 * - col0 FROM tab2
----
51
3036
67
4950
77
4224

onlyif mysql # aggregate syntax: 
query II rowsort label-2184
SELECT - 59 AS col0, COUNT( * ) FROM tab1
----
-59
3

skipif mysql # not compatible
query II rowsort label-2184
SELECT - 59 AS col0, COUNT ( * ) FROM tab1
----
-59
3

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

query I rowsort
SELECT - 59 * col1 / - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL > + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( - col0 ) + - + 51 * 27 - col1 ) < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 * - - col2 col0 FROM tab0 cor0
----
329
693
70

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE col0 * - 89 NOT IN ( 97 + col1 + col0 * + 13 )
----
-51
-85
-91

query I rowsort
SELECT ALL col1 + - + 24 - - + 77 * - + 23 FROM tab2
----
-1718
-1728
-1744

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

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

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

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

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NULL = col0
----

query I rowsort
SELECT DISTINCT + 79 + col1 + col2 FROM tab1 AS cor0
----
143
189
194

query II rowsort
SELECT DISTINCT - + ( + + 45 ) AS col0, - 44 FROM tab2 AS cor0
----
-45
-44

query I rowsort
SELECT ALL + + 53 AS col2 FROM tab1 cor0
----
53
53
53

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE col1 NOT IN ( 92 * + 27 * + col0 * - col2 + + col1 + - 94 )
----
51
85
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT DISTINCT - col0 DIV + - 29 AS col2 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT - col0 / + - 29 AS col2 FROM tab0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT - 66 + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - 74
----

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

skipif mysql # not compatible
query I rowsort label-2204
SELECT 76 + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT ALL + CAST( NULL AS SIGNED ) * 14 + + AVG ( 50 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + CAST ( NULL AS INTEGER ) * 14 + + AVG ( 50 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2207
SELECT DISTINCT COUNT( * ) / 68 + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2207
SELECT DISTINCT COUNT ( * ) / 68 + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT + col0 DIV - + col2 AS col0 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT + col0 / - + col2 AS col0 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT COUNT( ALL - 71 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2209
SELECT COUNT ( ALL - 71 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL + + 29 - COUNT( - col0 ) AS col0 FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL + + 29 - COUNT ( - col0 ) AS col0 FROM tab2 cor0
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col0 / 95 * 44 + + - 26
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT COUNT( * ), + MIN( + + col2 ) AS col0 FROM tab2 cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-2214
SELECT COUNT ( * ), + MIN ( + + col2 ) AS col0 FROM tab2 cor0
----
3
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 9 col1, 54 - - 94 + - col0 + + + 75 FROM tab1 cor0
----
-9
132
-9
138
-9
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2216
SELECT + COUNT( * ) AS col1, - 38 DIV - 56 FROM tab2 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-2216
SELECT + COUNT ( * ) AS col1, - 38 / - 56 FROM tab2 cor0
----
3
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE + - col0 IS NULL
----
0

query I rowsort
SELECT - 52 * col0 AS col2 FROM tab2
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT - + MIN( DISTINCT 14 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT - + MIN ( DISTINCT 14 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + 8
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 4 + + col2 - col1 + - 70 col1 FROM tab0 cor0
----
-93
121
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - SUM( - 44 ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-2226
SELECT - SUM ( - 44 ) FROM tab1 AS cor0
----
132

query I rowsort
SELECT - 32 * + - 92 AS col1 FROM tab2 AS cor0
----
2944
2944
2944

query II rowsort
SELECT ALL - + col1 + - 90 + + + col0 - - col1 + - 87 * - 67 + - + 89 + - + 82, - col0 AS col0 FROM tab1 AS cor0
----
5619
-51
5653
-85
5659
-91

query II rowsort
SELECT ALL + 42 AS col1, - col2 FROM tab0 AS cor0
----
42
-10
42
-47
42
-99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL - MAX( ALL col1 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 78 * 48 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - MAX ( ALL col1 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 78 * 48 AND NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 36 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT COUNT( ALL - ( + 68 ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2235
SELECT DISTINCT COUNT ( ALL - ( + 68 ) ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + 94 * + COUNT( * ) col0 FROM tab0 WHERE ( + col2 ) >= col1 * col1 + 93 + col2 / + + col0 * + col2 + col2 * + - col2 * - col2 + + + 84 * + col1 + - 70
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2236
SELECT + 94 * + COUNT ( * ) col0 FROM tab0 WHERE ( + col2 ) >= col1 * col1 + 93 + col2 / + + col0 * + col2 + col2 * + - col2 * - col2 + + + 84 * + col1 + - 70
----
0

query II rowsort
SELECT ALL + 44 + - + col2 AS col2, - col0 FROM tab2
----
-14
-75
21
-46
4
-64

query I rowsort
SELECT 37 + col2 FROM tab1
----
105
133
96

query I rowsort
SELECT + ( + 80 ) + - col0 FROM tab2 AS cor0
----
16
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT COUNT( * ) * ( + - 71 ) AS col0 FROM tab1, tab1 AS cor0
----
-639

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT COUNT ( * ) * ( + - 71 ) AS col0 FROM tab1, tab1 AS cor0
----
-639

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

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - col2 * - 16 FROM tab0 AS cor0
----
1584
160
752

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT + SUM( ALL 27 ) AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2243
SELECT + SUM ( ALL 27 ) AS col0 FROM tab2 AS cor0
----
81

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2247
SELECT DISTINCT - col2 AS col2, col0 * + - ( - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-2247
SELECT DISTINCT - col2 AS col2, col0 * + - ( - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2248
SELECT ALL col0, + ( - col1 ) DIV col2 + - col0 - col1 FROM tab0
----
15
-97
87
-110
97
-98

skipif mysql # not compatible
query II rowsort label-2248
SELECT ALL col0, + ( - col1 ) / col2 + - col0 - col1 FROM tab0
----
15
-97
87
-110
97
-98

query II rowsort
SELECT + col2, + ( + + col0 ) FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 31 * - col0 < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT - 35 + + CAST( 2 AS SIGNED ) AS col0 FROM tab0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2252
SELECT - 35 + + CAST ( 2 AS INTEGER ) AS col0 FROM tab0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT - MIN( - + 21 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - MIN ( - + 21 ) FROM tab1
----
21

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

query I rowsort
SELECT ( col1 ) + 84 + - 74 FROM tab2 AS cor0
----
61
77
87

query I rowsort
SELECT ALL + col1 * - - col0 + - ( - col2 ) AS col1 FROM tab2 cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - COUNT( + 58 ) * + 28 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-2257
SELECT - COUNT ( + 58 ) * + 28 AS col2 FROM tab2
----
-84

query I rowsort
SELECT DISTINCT + col0 + 82 AS col2 FROM tab1
----
133
167
173

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT + - COUNT( * ) + - 60 AS col0 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2259
SELECT + - COUNT ( * ) + - 60 AS col0 FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2260
SELECT ALL 24 + 87 * - 28 + COUNT( * ) + - - 56 DIV - 98 FROM tab0 AS cor0
----
-2409

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL 24 + 87 * - 28 + COUNT ( * ) + - - 56 / - 98 FROM tab0 AS cor0
----
-2409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 37 + - + col1 + + + ( col2 ) - col1 * - ( + col1 ) col2 FROM tab2 AS cor0
----
2633
4575
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT - 25 + - 60 + - COUNT( * ) + - 25 * MIN( col0 ) * COUNT( DISTINCT - ( - col1 ) ) FROM tab0 cor0
----
-1213

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - 25 + - 60 + - COUNT ( * ) + - 25 * MIN ( col0 ) * COUNT ( DISTINCT - ( - col1 ) ) FROM tab0 cor0
----
-1213

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT AVG ( col0 ) - COUNT( * ) + 97 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 * + ( + 40 ) * + col2 * col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT AVG ( col0 ) - COUNT ( * ) + 97 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 * + ( + 40 ) * + col2 * col1 ) AND NULL
----
NULL

query I rowsort
SELECT 19 + + 71 + - + col2 * + ( - col1 ) * - col2 * col0 + 23 * col0 FROM tab1
----
-1477380
-19774665
-6578961

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

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

query I rowsort
SELECT 27 * + col0 FROM tab0
----
2349
2619
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - 60 col2 FROM tab1
----
3060
5100
5460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * + col1 col1 FROM tab2
----
3468
4556
5236

query I rowsort
SELECT DISTINCT + col2 * + col0 * 36 AS col2 FROM tab0
----
25380
31320
345708

query I rowsort
SELECT DISTINCT + col0 - + - 93 FROM tab1 AS cor0
----
144
178
184

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + 63 IS NULL
----

query II rowsort
SELECT ALL - ( col2 ), - col0 + - 75 * - col1 AS col1 FROM tab1
----
-59
290
-68
3434
-96
999

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 12 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT + ( COUNT( * ) ) AS col1, - 99 FROM tab0 cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-2278
SELECT + ( COUNT ( * ) ) AS col1, - 99 FROM tab0 cor0
----
3
-99

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT 52 + - + 18 IS NULL
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL - COUNT( ALL + col0 ) * 7 * - MAX( - - col2 ) AS col0 FROM tab2 WHERE + col0 / - - col0 IS NOT NULL
----
1218

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - COUNT ( ALL + col0 ) * 7 * - MAX ( - - col2 ) AS col0 FROM tab2 WHERE + col0 / - - col0 IS NOT NULL
----
1218

query I rowsort
SELECT col2 * + 32 FROM tab2
----
1280
1856
736

query II rowsort
SELECT + - col0, + ( - - col2 ) AS col0 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL + + col2 + - + col1 * + col2 + + col0 + + col1 + + col0 FROM tab0 cor0
----
-3649
-5
195

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

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

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

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

query I rowsort
SELECT + - col2 * 47 + - - 10 FROM tab1 cor0
----
-2763
-3186
-4502

query I rowsort
SELECT + 44 + - col1 FROM tab1 AS cor0
----
-3
30
39

onlyif mysql # DIV for integer division: 
query II rowsort label-2290
SELECT + col0 + + 38 DIV col2 DIV - - col0 AS col0, 34 FROM tab2
----
46
34
64
34
75
34

skipif mysql # not compatible
query II rowsort label-2290
SELECT + col0 + + 38 / col2 / - - col0 AS col0, 34 FROM tab2
----
46
34
64
34
75
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT + SUM( col0 ) - 63 FROM tab1 WHERE NULL IS NULL
----
164

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + SUM ( col0 ) - 63 FROM tab1 WHERE NULL IS NULL
----
164

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

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

query I rowsort
SELECT + 85 + + 98 FROM tab0
----
183
183
183

query I rowsort
SELECT 80 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2296
SELECT - CAST( + SUM( - col0 ) AS SIGNED ) FROM tab2 cor0
----
185

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL MIN( DISTINCT + 27 ) - - COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL MIN ( DISTINCT + 27 ) - - COUNT ( * ) FROM tab2 AS cor0
----
30

query II rowsort
SELECT ALL 97 * 72, col2 FROM tab1
----
6984
59
6984
68
6984
96

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

query I rowsort
SELECT 88 - + 30 FROM tab2
----
58
58
58

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

skipif mysql # not compatible
query III rowsort label-2303
SELECT * FROM tab2 WHERE + - CAST ( col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col0 * - 40 FROM tab1
----
-2040
-3400
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT DISTINCT 70 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-3220
-4480
-5250

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT 70 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-3220
-4480
-5250

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT col2 DIV 8 FROM tab1
----
12
7
8

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT col2 / 8 FROM tab1
----
12
7
8

query II rowsort
SELECT ALL + 71 * col2 * + + col2, + col1 FROM tab2
----
113600
77
238844
67
37559
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 22 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT 45 * - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
-2115
-225
-630

skipif mysql # not compatible
query I rowsort label-2310
SELECT 45 * - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
-2115
-225
-630

query I rowsort
SELECT ALL col2 + + ( - - col1 ) * + 45 * - 39 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-142108
-1656
-36845

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - - 59
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + + 65 NOT BETWEEN NULL AND + col0
----

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

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

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

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL CAST ( NULL AS INTEGER ) + - 18 * - - 75 * + 36 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - SUM( ALL + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2318
SELECT - SUM ( ALL + col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT 97 - - + col2 * + 98 + col1 AS col1 FROM tab2
----
2402
4094
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT COUNT( * ) * SUM( col1 ) + - COUNT( * ) FROM tab2
----
582

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT COUNT ( * ) * SUM ( col1 ) + - COUNT ( * ) FROM tab2
----
582

query I rowsort
SELECT ALL - + 74 - + + 85 FROM tab2 AS cor0
----
-159
-159
-159

query I rowsort
SELECT DISTINCT + 36 + 43 * - col2 FROM tab0 cor0
----
-1985
-394
-4221

query II rowsort
SELECT DISTINCT + col0 + - col2 AS col0, col1 / col0 FROM tab1 AS cor0 WHERE NULL < + 30 + + - 25
----

query I rowsort
SELECT ALL + col0 * + col0 FROM tab1 AS cor0 WHERE + ( + + col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT ALL 83 * ( ( + CAST( col0 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
1245
7221
8051

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL 83 * ( ( + CAST ( col0 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
1245
7221
8051

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - - col0 * - + col0 < - + 19 * + 42 + 19
----

query I rowsort
SELECT DISTINCT + col2 - 19 * + ( - 66 ) AS col2 FROM tab2 AS cor0
----
1277
1294
1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT - CAST( col0 AS SIGNED ) * + - 16 AS col0 FROM tab1
----
1360
1456
816

skipif mysql # not compatible
query I rowsort label-2328
SELECT - CAST ( col0 AS INTEGER ) * + - 16 AS col0 FROM tab1
----
1360
1456
816

query I rowsort
SELECT + col1 * - ( + - col1 ) AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT - 65 * + ( - col0 ) * - col0 FROM tab1
----
-169065
-469625
-538265

query II rowsort
SELECT DISTINCT col0, + col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL MIN( + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL MIN ( + - col1 ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE NOT - - 47 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE NOT - - 47 IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 * 50 FROM tab0
----
-2350
-4950
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL + COUNT( * ) * - + 80 * - COUNT( * ) FROM tab0 cor0
----
720

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + COUNT ( * ) * - + 80 * - COUNT ( * ) FROM tab0 cor0
----
720

query I rowsort
SELECT - ( - + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL + + COUNT( * ) * + COUNT( * ) col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2337
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - ( - - 25 ) FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT MAX( - 32 ) * 9 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT MAX ( - 32 ) * 9 FROM tab1 AS cor0
----
-288

query I rowsort
SELECT + AVG ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND ( 66 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT ALL + col1 DIV - + 56 + - col1 * - col0 col2 FROM tab0 AS cor0
----
1214
1827
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2341
SELECT ALL + col1 / - + 56 + - col1 * - col0 col2 FROM tab0 AS cor0
----
1214
1827
97

query I rowsort
SELECT ( - + ( - 17 ) ) FROM tab0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT ALL CAST( 4 AS SIGNED ) AS col0 FROM tab1 WHERE NULL < + 6
----

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL CAST ( 4 AS INTEGER ) AS col0 FROM tab1 WHERE NULL < + 6
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT - - MIN( DISTINCT col1 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2345
SELECT - - MIN ( DISTINCT col1 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT + 22 + - - 62 + - col2 AS col1 FROM tab1 AS cor0
----
-12
16
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT 69 DIV - ( - col0 ) AS col1 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2347
SELECT 69 / - ( - col0 ) AS col1 FROM tab2 cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT DISTINCT + 93 * 39 * + MAX( - - ( + CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + 93 * 39 * + MAX ( - - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2349
SELECT DISTINCT + - col1 DIV - col0 - 68 DIV CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT + - col1 / - col0 - 68 / CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT + - col1 * + col1 DIV - col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2350
SELECT + - col1 * + col1 / - col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT 30 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT + - MAX( ALL + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2352
SELECT + - MAX ( ALL + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT COUNT( ALL + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2353
SELECT COUNT ( ALL + col0 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 < NULL
----

query I rowsort
SELECT DISTINCT 52 + - + 34 + col0 FROM tab2
----
64
82
93

query I rowsort
SELECT - col1 FROM tab1 WHERE - + col1 + - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT - - CAST( col1 AS SIGNED ) + - 1 + - 91 * 93 - - - 67 FROM tab2 AS cor0
----
-8454
-8464
-8480

skipif mysql # not compatible
query I rowsort label-2358
SELECT - - CAST ( col1 AS INTEGER ) + - 1 + - 91 * 93 - - - 67 FROM tab2 AS cor0
----
-8454
-8464
-8480

query I rowsort
SELECT DISTINCT col1 - 14 AS col1 FROM tab1 AS cor0
----
-9
0
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 4 <= - - 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 12 * + 93 + - col2 + - col1 * + col0 AS col0 FROM tab2 cor0
----
-1253
-3852
-3967

query I rowsort
SELECT ALL 6 - - 76 FROM tab0 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col0 FROM tab2 AS cor0
----
20

query I rowsort
SELECT + 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2367
SELECT ALL col0 + + + 20 - - CAST( - col1 AS SIGNED ) DIV - col1 FROM tab2
----
67
85
96

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL col0 + + + 20 - - CAST ( - col1 AS INTEGER ) / - col1 FROM tab2
----
67
85
96

query I rowsort
SELECT ALL - col0 * - col0 + - + 58 FROM tab0 AS cor0
----
167
7511
9351

query I rowsort
SELECT + - col2 - + + col2 AS col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT MIN( ALL + - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2370
SELECT MIN ( ALL + - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + 72 * + + COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + 72 * + + COUNT ( * ) FROM tab0
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2373
SELECT col1 * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT col1 * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( - 53 ) <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT SUM( ALL + + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2375
SELECT SUM ( ALL + + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - col1 * + - col2 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - + 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - col2
----

query II rowsort
SELECT DISTINCT - 88, col1 FROM tab1 AS cor0
----
-88
14
-88
47
-88
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 BETWEEN - 65 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT - + COUNT( * ) * - - COUNT( - - CAST( + - 55 AS SIGNED ) ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2381
SELECT - + COUNT ( * ) * - - COUNT ( - - CAST ( + - 55 AS INTEGER ) ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

query II rowsort
SELECT DISTINCT + col1 AS col0, + 70 AS col0 FROM tab2 AS cor0
----
51
70
67
70
77
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT - col1 + - col0 DIV + + ( - 74 ) col2 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2383
SELECT - col1 + - col0 / + + ( - 74 ) col2 FROM tab1
----
-14
-4
-46

query I rowsort
SELECT DISTINCT + 33 + + 48 AS col1 FROM tab1
----
81

query I rowsort
SELECT DISTINCT + ( + col2 ) * - 95 + + - col1 AS col2 FROM tab0
----
-4546
-9406
-971

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT MAX( - ( + col1 ) ) + - + 10 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2386
SELECT MAX ( - ( + col1 ) ) + - + 10 FROM tab2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT + COUNT( * ) + MIN( ALL + ( - + 27 ) ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-2387
SELECT + COUNT ( * ) + MIN ( ALL + ( - + 27 ) ) FROM tab0
----
-24

query I rowsort
SELECT col0 * + 44 * - + 57 + - 34 AS col1 FROM tab1
----
-127942
-213214
-228262

query I rowsort
SELECT col1 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + col0 * 60 + + col2 AS col1 FROM tab2
----
2783
3880
4558

query III rowsort
SELECT * FROM tab0 WHERE - 64 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL + col0 * - - CAST( col2 AS SIGNED ) + + + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + col0 * - - CAST ( col2 AS INTEGER ) + + + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( + col0 ) AS col2, + col2 col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT + 44 + + 43 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
87

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2396
SELECT - ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - 78 AS col2 FROM tab2 cor0
----
-78
-78
-78

query I rowsort
SELECT ALL + 67 AS col1 FROM tab1 cor0
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT DISTINCT - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT - col2 / - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT - ( + ( + - 14 ) ) FROM tab0 AS cor0
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col2 FROM tab1 AS cor0
----
56
56
56

query II rowsort
SELECT + col0, col2 + + 88 - - - 74 AS col2 FROM tab2 AS cor0
----
46
37
64
54
75
72

query I rowsort
SELECT ALL + ( + + col0 ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2405
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL + 87 * - col0 AS col2 FROM tab0 WHERE NOT - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 53 * + 4 + + - ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE NOT - 83 * - col0 * col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2409
SELECT ALL + 19 * + - col2 * - - 1 * + 76, + col0 - col1 FROM tab0 WHERE + + col0 * + + ( - CAST( NULL AS SIGNED ) ) * col0 BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query II rowsort label-2409
SELECT ALL + 19 * + - col2 * - - 1 * + 76, + col0 - col1 FROM tab0 WHERE + + col0 * + + ( - CAST ( NULL AS INTEGER ) ) * col0 BETWEEN NULL AND + col2
----

query II rowsort
SELECT + 41 AS col1, + ( col0 ) * 83 AS col0 FROM tab0 AS cor0
----
41
1245
41
7221
41
8051

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT - + col2 DIV - + col1 + - 90 FROM tab1 AS cor0
----
-79
-84
-89

skipif mysql # not compatible
query I rowsort label-2411
SELECT - + col2 / - + col1 + - 90 FROM tab1 AS cor0
----
-79
-84
-89

query I rowsort
SELECT ALL col1 * - + col2 + + col2 + col0 FROM tab0 AS cor0
----
-113
-3745
97

query I rowsort
SELECT DISTINCT + + 15 AS col2 FROM tab2 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL + COUNT( * ) + - COUNT( DISTINCT + + 85 ) AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL + COUNT ( * ) + - COUNT ( DISTINCT + + 85 ) AS col2 FROM tab2
----
2

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 45 + + col2 - + + 52 AS col2 FROM tab1
----
52
61
89

query I rowsort
SELECT DISTINCT 63 + + 76 FROM tab0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT 82 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT 82 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 + col0 * 37 FROM tab0
----
3393
3783
585

query I rowsort
SELECT DISTINCT - 77 + + col2 FROM tab0
----
-30
-67
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - 71 + + - COUNT( * ) - - 24 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2422
SELECT - 71 + + - COUNT ( * ) - - 24 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ALL - - col1 - - + ( - col2 ) FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - - col0 + + + ( col0 ) AS col2 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - MIN( DISTINCT + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2428
SELECT - MIN ( DISTINCT + col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + + COUNT( col1 ) * COUNT( DISTINCT + col1 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2429
SELECT + + COUNT ( col1 ) * COUNT ( DISTINCT + col1 ) FROM tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 18 col1 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - col2 * + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT ( COUNT( * ) ) DIV + ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2432
SELECT ( COUNT ( * ) ) / + ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - + 9 * - col0, + col2 FROM tab0 AS cor0
----
135
47
783
10
873
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL - 72 * COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - 72 * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= col2
----
0

query I rowsort
SELECT DISTINCT + 71 * - - col0 * + - col2 FROM tab1
----
-347616
-356065
-439348

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT ALL 36 DIV col0 col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2436
SELECT ALL 36 / col0 col1 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2437
SELECT DISTINCT + COUNT( * ) DIV + 79 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT + COUNT ( * ) / + 79 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) DIV - - ( - 64 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2439
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) / - - ( - 64 ) col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col2 FROM tab2
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL ( + - MAX( ALL col0 ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL ( + - MAX ( ALL col0 ) ) AS col0 FROM tab2
----
-75

query II rowsort
SELECT 74 + - col2 - col0, col2 FROM tab0 cor0
----
-122
99
-23
10
12
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL + + MAX( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + + MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL MAX( DISTINCT ( - - 10 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
10

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL MAX ( DISTINCT ( - - 10 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query I rowsort
SELECT ALL + 85 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
10
21
39

query I rowsort
SELECT DISTINCT - - 94 AS col2 FROM tab1 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT ALL - - col1 + + col1 DIV + 68 + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2295
-4850
-4958

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - - col1 + + col1 / + 68 + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2295
-4850
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL - MIN( DISTINCT + ( 69 ) ) FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - MIN ( DISTINCT + ( 69 ) ) FROM tab0 cor0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2450
SELECT 97 + + - COUNT( * ), COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
94
3

skipif mysql # not compatible
query II rowsort label-2450
SELECT 97 + + - COUNT ( * ), COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
94
3

query I rowsort
SELECT ALL 69 * + col0 * col1 * + + 43 AS col2 FROM tab1
----
1260975
12689859
2118438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT + 8 + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 8 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + - 77 AS col2 FROM tab2
----
-19
-37
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT ALL - MAX( + ( - CAST( + + CAST( + 34 AS SIGNED ) AS SIGNED ) ) ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL - MAX ( + ( - CAST ( + + CAST ( + 34 AS INTEGER ) AS INTEGER ) ) ) AS col1 FROM tab1
----
34

query I rowsort
SELECT ALL col2 * + - 21 + + col2 FROM tab0
----
-1980
-200
-940

query II rowsort
SELECT 9, col1 AS col0 FROM tab2
----
9
51
9
67
9
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT CAST( NULL AS SIGNED ) * 54 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT CAST ( NULL AS INTEGER ) * 54 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL - ( - COUNT( 13 ) ) * - 48 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - ( - COUNT ( 13 ) ) * - 48 FROM tab0
----
-144

query I rowsort
SELECT ALL col2 * + + col2 AS col2 FROM tab2
----
1600
3364
529

query II rowsort
SELECT 52, col0 AS col2 FROM tab2
----
52
46
52
64
52
75

query I rowsort
SELECT ALL + - col2 + - + 60 FROM tab0 AS cor0
----
-107
-159
-70

query II rowsort
SELECT + col1, col2 FROM tab1 AS cor0 WHERE 20 IS NOT NULL
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT col0 DIV + col2 + + - col2 - + 8 FROM tab1 cor0
----
-104
-66
-75

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT col0 / + col2 + + - col2 - + 8 FROM tab1 cor0
----
-104
-66
-75

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col0 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 54 ) col1 FROM tab1
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT SUM( ALL + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2468
SELECT SUM ( ALL + col2 ) AS col2 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2470
SELECT ALL 60 DIV COUNT( * ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL 60 / COUNT ( * ) FROM tab1
----
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2471
SELECT - ( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) * AVG ( ALL col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT - ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) * AVG ( ALL col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + 40 * + + COUNT( * ) * - + COUNT( * ) FROM tab2
----
-360

skipif mysql # not compatible
query I rowsort label-2472
SELECT + 40 * + + COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
-360

query II rowsort
SELECT - col1, col1 * + - 77 AS col0 FROM tab2 AS cor0
----
-51
-3927
-67
-5159
-77
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT - 75 / - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT - 75 / - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 45 * - col2 * + - col1 FROM tab2 AS cor0
----
138600
174870
52785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8, 16 * col1 + + - 73 col1 FROM tab0 AS cor0
----
8
-57
8
1223
8
263

query II rowsort
SELECT + col1, + col1 * - col2 AS col2 FROM tab2 cor0
----
51
-1173
67
-3886
77
-3080

query II rowsort
SELECT 16 AS col1, 74 FROM tab0 AS cor0
----
16
74
16
74
16
74

query I rowsort
SELECT DISTINCT + col1 * + col2 * + 86 AS col0 FROM tab1
----
115584
25370
274856

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT MAX( - - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2482
SELECT MAX ( - - col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT 52 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT + + col0 + 46 = col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT + + col0 + 46 = col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + col2 + - ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + + col2 ) IS NOT NULL
----

query I rowsort
SELECT + 97 * + - 64 + - 76 AS col2 FROM tab2 AS cor0
----
-6284
-6284
-6284

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - + ( + + 10 ) * + - 2 + - COUNT( * ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2487
SELECT - + ( + + 10 ) * + - 2 + - COUNT ( * ) FROM tab1 AS cor0
----
17

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( - 77 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 15 * + - col2 + + + col0 FROM tab0
----
-1388
-63
-690

query I rowsort
SELECT + ( - - col1 ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT 61 * + - col2 - + col1 - - col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - + 85 FROM tab2 cor0
----
-85
-85
-85

query II rowsort
SELECT - + 86, col2 * - col0 + - 46 AS col0 FROM tab1 cor0
----
-86
-4942
-86
-5061
-86
-6234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2494
SELECT ALL - - 66 AS col0, CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-2494
SELECT ALL - - 66 AS col0, CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
66
NULL
66
NULL
66
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2495
SELECT ALL col0 - + + CAST( - col2 AS SIGNED ) AS col1, - 96 FROM tab2 AS cor0
----
104
-96
133
-96
69
-96

skipif mysql # not compatible
query II rowsort label-2495
SELECT ALL col0 - + + CAST ( - col2 AS INTEGER ) AS col1, - 96 FROM tab2 AS cor0
----
104
-96
133
-96
69
-96

query I rowsort
SELECT col2 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

query I rowsort
SELECT + ( - 48 ) AS col0 FROM tab2 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL MAX( + 66 ) AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL MAX ( + 66 ) AS col1 FROM tab0
----
66

query I rowsort
SELECT col1 * - + col2 - col2 FROM tab0
----
-198
-220
-3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT 41 - CAST( col2 AS SIGNED ) FROM tab1
----
-18
-27
-55

skipif mysql # not compatible
query I rowsort label-2500
SELECT 41 - CAST ( col2 AS INTEGER ) FROM tab1
----
-18
-27
-55

query I rowsort
SELECT 56 * + col2 + - - col1 + - - col1 + + - 11 AS col1 FROM tab0
----
2783
5535
591

query I rowsort
SELECT + 18 + + + 70 + col0 AS col1 FROM tab0
----
103
175
185

query I rowsort
SELECT DISTINCT + 19 + + - col2 AS col0 FROM tab1 AS cor0
----
-40
-49
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ( - - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2504
SELECT ( - - COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2505
SELECT + - col1 DIV + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2505
SELECT + - col1 / + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - ( - ( + 45 ) ) FROM tab1 AS cor0
----
45
45
45

query II rowsort
SELECT DISTINCT - + ( + col0 ) AS col1, col2 * + col1 - - col0 FROM tab2 AS cor0
----
-46
1219
-64
3144
-75
3961

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - 81 + + + 79 * - - col1 + + col0
----

query I rowsort
SELECT - 57 * - - 43 FROM tab2
----
-2451
-2451
-2451

query I rowsort
SELECT + - 56 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2511
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - 99 * CAST( NULL AS SIGNED ) BETWEEN + - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2511
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - 99 * CAST ( NULL AS INTEGER ) BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT ALL - ( - - col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + col2 * 2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT AVG ( - col2 ) FROM tab2 WHERE NOT ( - col2 * col2 * ( - + col1 ) ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 70 * 21 * + 9 FROM tab1
----
13230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2516
SELECT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2516
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL col1 + 85 * - 38 FROM tab0
----
-3149
-3209
-3229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT + CAST( + - 67 AS SIGNED ) col1 FROM tab0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2518
SELECT DISTINCT + CAST ( + - 67 AS INTEGER ) col1 FROM tab0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2519
SELECT COUNT( * ) DIV 8 + + + SUM( ALL - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2519
SELECT COUNT ( * ) / 8 + + + SUM ( ALL - col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT col1 + - 23 * - + 80 FROM tab2
----
1891
1907
1917

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT 93 + col0 DIV col1 col1 FROM tab1
----
110
94
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2521
SELECT 93 + col0 / col1 col1 FROM tab1
----
110
94
96

query I rowsort
SELECT - col2 + - 57 FROM tab2
----
-115
-80
-97

query I rowsort
SELECT DISTINCT - col2 * - 81 + - 11 FROM tab2
----
1852
3229
4687

query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 AS col2 FROM tab1
----
1358
300
3243

query I rowsort
SELECT ALL + col0 + - col0 + - + col1 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT 81 / - col0 + + 57 + + col1 * + col1 / + + col2 * + col2 + + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 * + 32 * - - 40 * 1, 80 AS col1 FROM tab0 WHERE - + col2 + + - col1 * col2 IN ( ( + col1 ), + col0, - + 65 * 87 + col0 )
----

query I rowsort
SELECT - + 68 FROM tab2 WHERE + col2 - - 77 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 35 - - col1 - 82 FROM tab0 cor0
----
-26
-46
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL BETWEEN + col0 AND col2
----

skipif mysql # not compatible
query I rowsort label-2530
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL BETWEEN + col0 AND col2
----

query I rowsort
SELECT ALL + + ( + col1 ) + + 62 FROM tab0 AS cor0
----
143
63
83

query I rowsort
SELECT 18 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
-1139
-1309
-867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col2 FROM tab2
----
98
98
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2534
SELECT col2 * ( CAST( NULL AS DECIMAL ) ) * ( - col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT col2 * ( CAST ( NULL AS REAL ) ) * ( - col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col0 col2 FROM tab0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * col2 col1 FROM tab1
----
205379
314432
884736

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ALL + MAX( DISTINCT + 18 ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL + MAX ( DISTINCT + 18 ) AS col0 FROM tab0 AS cor0
----
18

query II rowsort
SELECT DISTINCT 41 AS col2, - 17 AS col2 FROM tab1 AS cor0
----
41
-17

query I rowsort
SELECT ALL - col2 * col1 FROM tab1 WHERE NOT + col1 BETWEEN ( + 90 ) AND ( + col1 )
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 54 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT - col2 + 28 FROM tab1 WHERE + 0 + + col2 IS NOT NULL
----
-31
-40
-68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col1 AND - col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT - MIN( - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT - MIN ( - col0 ) FROM tab2
----
75

query I rowsort
SELECT 27 * + 70 + 41 AS col1 FROM tab2
----
1931
1931
1931

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT SUM( DISTINCT - ( - 43 ) ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2546
SELECT SUM ( DISTINCT - ( - 43 ) ) AS col2 FROM tab1
----
43

query I rowsort
SELECT ALL col1 * - 83 AS col0 FROM tab1 WHERE 98 IS NOT NULL
----
-1162
-3901
-415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT ALL ( col0 ) + - CAST( col1 AS SIGNED ) * - col0 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL ( col0 ) + - CAST ( col1 AS INTEGER ) * - col0 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
1230
1914
194

query I rowsort
SELECT 29 * - col0 + col1 FROM tab0 WHERE col1 IS NOT NULL
----
-2502
-2812
-354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT NULL <= + 25
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2551
SELECT ALL * FROM tab2 WHERE ( + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2551
SELECT ALL * FROM tab2 WHERE ( + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) ) > ( NULL )
----

query I rowsort
SELECT - 44 - col2 * - col2 AS col2 FROM tab0
----
2165
56
9757

query I rowsort
SELECT DISTINCT 89 * col0 AS col1 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col0 * col2 NOT BETWEEN - 14 AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + col1 * col1 )
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL NOT IN ( col2 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT - col1 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) NOT IN ( col2 + 15 )
----

skipif mysql # not compatible
query I rowsort label-2557
SELECT - col1 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( col2 + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT COUNT( DISTINCT + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2558
SELECT COUNT ( DISTINCT + col0 ) FROM tab2
----
3

query I rowsort
SELECT ALL - 37 * + col1 FROM tab2 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT DISTINCT + 6 * 69 FROM tab2
----
414

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( 74 ) AND 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT ALL col0 * + col0 + 82 DIV - 52 AS col0 FROM tab1 AS cor0
----
2600
7224
8280

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL col0 * + col0 + 82 / - 52 AS col0 FROM tab1 AS cor0
----
2600
7224
8280

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( 67 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 61 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - col0 * 22
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT CAST( + COUNT( * ) AS SIGNED ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2566
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 )
----
9

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col1 FROM tab0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 34 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - 31 FROM tab2 AS cor0
----
20
36
46

query I rowsort
SELECT - col1 * + 62 FROM tab0 AS cor0
----
-1302
-5022
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2573
SELECT ALL - - 12 * + col0 + + col0 DIV - 64 AS col0 FROM tab2 AS cor0
----
552
767
899

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL - - 12 * + col0 + + col0 / - 64 AS col0 FROM tab2 AS cor0
----
552
767
899

query I rowsort
SELECT ( + 86 ) FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT - 27 FROM tab1 AS cor0 WHERE NULL IN ( ( + 54 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT + 90 DIV 2 - - 82 AS col0 FROM tab2 AS cor0
----
127
127
127

skipif mysql # not compatible
query I rowsort label-2576
SELECT + 90 / 2 - - 82 AS col0 FROM tab2 AS cor0
----
127
127
127

query I rowsort
SELECT DISTINCT - - col2 - + 72 * col0 FROM tab1 AS cor0
----
-3576
-6061
-6484

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT ALL - 40 + + col2 DIV 89 AS col2 FROM tab1 AS cor0
----
-39
-40
-40

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - 40 + + col2 / 89 AS col2 FROM tab1 AS cor0
----
-39
-40
-40

query I rowsort
SELECT ALL + col2 - col0 * - col1 AS col1 FROM tab0 AS cor0
----
1262
1837
196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 2 ) AND col0 * + ( 33 / + 13 )
----

query I rowsort
SELECT - 87 - ( col0 ) FROM tab2 AS cor0
----
-133
-151
-162

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 * col1 - col0 AS col2 FROM tab0 AS cor0
----
0
1200
1740

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 AS col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2586
SELECT ALL + COUNT( * ) DIV + 68 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + COUNT ( * ) / + 68 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 44 * - col2 * col2 AS col1 FROM tab2
----
-148016
-23276
-70400

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL MIN( + 7 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL MIN ( + 7 ) FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT ALL col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 + col0 / + col1 BETWEEN ( 17 ) AND + col0 * 87 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 + col0 / + col1 BETWEEN ( 17 ) AND + col0 * 87 + 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT ALL - CAST( 91 AS SIGNED ) * - 31 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c2fc2f2802fb3ffe6f0273eae47c2e85

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - CAST ( 91 AS INTEGER ) * - 31 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c2fc2f2802fb3ffe6f0273eae47c2e85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT DISTINCT + MIN( ALL + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT + MIN ( ALL + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL - + SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - + SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL + AVG ( + col2 ) / COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN 26 AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + AVG ( + col2 ) / COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN 26 AND ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NOT 51 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2595
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT 51 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT - - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2596
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 < - col2
----

query II rowsort
SELECT ALL col2 AS col1, 7 FROM tab2 cor0
----
23
7
40
7
58
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 22 + - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT 37 + + COUNT( * ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2600
SELECT 37 + + COUNT ( * ) AS col0 FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL MIN( col0 ) col0 FROM tab0 WHERE + 15 + - - col2 * col2 IS NOT NULL
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2601
SELECT ALL MIN ( col0 ) col0 FROM tab0 WHERE + 15 + - - col2 * col2 IS NOT NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE ( + 57 + - col2 - + col0 ) BETWEEN 8 AND 48 + + 71
----
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE ( + 57 + - col2 - + col0 ) BETWEEN 8 AND 48 + + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT 44 + - + COUNT( + ( 51 ) ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-2603
SELECT 44 + - + COUNT ( + ( 51 ) ) FROM tab2
----
41

query I rowsort
SELECT col0 + + 38 * + col0 AS col2 FROM tab0 WHERE 49 NOT IN ( - 11 )
----
3393
3783
585

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT + col1 ) + COUNT( * ) * + COUNT( * ) FROM tab2
----
594

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT + col1 ) + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
594

query I rowsort
SELECT ( ( + 30 ) ) + col0 FROM tab2
----
105
76
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT ALL 78 + - col1 + - - col2 + col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 78 + - col1 + - - col2 + col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 85 + 80 AS col1 FROM tab2
----
165
165
165

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT col0 + 83 + - 39 + - col1 DIV col1 AS col2 FROM tab0
----
130
140
58

skipif mysql # not compatible
query I rowsort label-2610
SELECT col0 + 83 + - 39 + - col1 / col1 AS col2 FROM tab0
----
130
140
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL 41 * - MAX( col2 ) + - + COUNT( * ) AS col1 FROM tab1
----
-3939

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL 41 * - MAX ( col2 ) + - + COUNT ( * ) AS col1 FROM tab1
----
-3939

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ( ( + 34 ) ) + + 1 + MAX( DISTINCT + 23 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2612
SELECT ( ( + 34 ) ) + + 1 + MAX ( DISTINCT + 23 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT - + COUNT( * ) AS col1, - 22 - - - 63 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9
-85

skipif mysql # not compatible
query II rowsort label-2613
SELECT - + COUNT ( * ) AS col1, - 22 - - - 63 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + COUNT( * ) - - 55 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-2614
SELECT + COUNT ( * ) - - 55 FROM tab0
----
58

query I rowsort
SELECT + col1 + - - 33 FROM tab0
----
114
34
54

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT + - 21 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( + 36 )
----

query I rowsort
SELECT + 89 + + col1 AS col0 FROM tab2 cor0
----
140
156
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL + + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 < + 39 * - - 81 + - + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT MAX( - - col1 ) * COUNT( * ) AS col1 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-2623
SELECT MAX ( - - col1 ) * COUNT ( * ) AS col1 FROM tab1
----
141

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( - 33 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL + CAST( NULL AS SIGNED ) * ( - MAX( ALL + col0 ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - MAX ( ALL + col0 ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT + 12 DIV col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + 12 / col2 AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < col0
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - CAST( NULL AS SIGNED ) + - 52 + - 73 + - 55 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-2629
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - CAST ( NULL AS INTEGER ) + - 52 + - 73 + - 55 + - col2 )
----

query II rowsort
SELECT ALL + col1 AS col2, 63 * + col1 AS col0 FROM tab0 cor0
----
1
63
21
1323
81
5103

onlyif mysql # DIV for integer division: 
query II rowsort label-2631
SELECT ALL col0, - 37 DIV - 78 * col2 col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2631
SELECT ALL col0, - 37 / - 78 * col2 col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT - 91 AS col1 FROM tab1 cor0
----
-91
-91
-91

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT DISTINCT COUNT( * ) - + MIN( - col0 ) * 92 AS col1 FROM tab0 WHERE NULL >= - col2 - - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT COUNT ( * ) - + MIN ( - col0 ) * 92 AS col1 FROM tab0 WHERE NULL >= - col2 - - + 99
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = ( + 61 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT - CAST( - COUNT( + 13 ) AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT - CAST ( - COUNT ( + 13 ) AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT DISTINCT SUM( - col1 ) DIV - - 10 col1 FROM tab2
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT DISTINCT SUM ( - col1 ) / - - 10 col1 FROM tab2
----
-19

query I rowsort
SELECT ALL 58 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE ( - 25 - + col2 + + col2 + + col1 * ( 54 ) + + col0 * col2 ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2640
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT IN ( col2 * col1 )
----

skipif mysql # not compatible
query III rowsort label-2640
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col2 * col1 )
----

query I rowsort
SELECT - - 28 FROM tab0 cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT + col0 DIV - col1 col2 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2642
SELECT + col0 / - col1 col2 FROM tab2 cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT 64 DIV 55 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2643
SELECT 64 / 55 AS col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 50 AS col2, - ( + 39 ) * + + col2 AS col2 FROM tab2
----
50
-1560
50
-2262
50
-897

query I rowsort
SELECT DISTINCT + col0 + - 8 AS col0 FROM tab0
----
7
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT MAX( DISTINCT + - 81 ) AS col1 FROM tab2 WHERE + + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT MAX ( DISTINCT + - 81 ) AS col1 FROM tab2 WHERE + + col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 19 IS NULL
----

query I rowsort
SELECT ALL col2 + 95 FROM tab2
----
118
135
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT 54 - - CAST( - AVG ( + col1 ) AS SIGNED ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2650
SELECT 54 - - CAST ( - AVG ( + col1 ) AS INTEGER ) FROM tab2
----
-11

query I rowsort
SELECT 72 + - col2 AS col1 FROM tab0
----
-27
25
62

query I rowsort
SELECT ALL ( - col2 ) + + - col2 FROM tab0 cor0
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT 84 + - col1 DIV ( + 29 ) FROM tab0 AS cor0
----
82
84
84

skipif mysql # not compatible
query I rowsort label-2653
SELECT 84 + - col1 / ( + 29 ) FROM tab0 AS cor0
----
82
84
84

query I rowsort
SELECT DISTINCT 4 + - col0 + - 85 FROM tab2 AS cor0 WHERE NULL < ( 55 ) + + 15
----

query I rowsort
SELECT - 2 + - - 74 AS col2 FROM tab0 AS cor0
----
72
72
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT 3 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * - col1 col1 FROM tab0 AS cor0
----
-2997
-37
-777

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT + MAX( + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + MAX ( + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - - 47 * 23 FROM tab2 AS cor0
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT DISTINCT - COUNT( * ) * 44 AS col0 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - COUNT ( * ) * 44 AS col0 FROM tab1 AS cor0
----
-132

query I rowsort
SELECT DISTINCT + col2 * + 4 FROM tab1
----
236
272
384

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL BETWEEN + 49 + col1 AND - 52
----

query I rowsort
SELECT - - col1 * - 77 FROM tab1 WHERE NOT + - col2 * - + 49 IS NULL
----
-1078
-3619
-385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 * col0 col1 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col0 + col1 + - 94 * + + col2 + - 4 + - - col1 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT ALL - col1 DIV + 71 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - col1 / + 71 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2669
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + - col1 AS DECIMAL ) NOT BETWEEN - + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2669
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + - col1 AS REAL ) NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT MAX( col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2670
SELECT MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0, col0 col1 FROM tab1 WHERE NOT - + 62 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 15 AS col0 FROM tab2 WHERE - + col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 83 + - col2 - 42 FROM tab0
----
-58
-6
31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 23 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT + - 27 + - + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2676
SELECT + - 27 + - + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-183

query I rowsort
SELECT DISTINCT - - 61 * + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-2867
-305
-854

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + col0 BETWEEN - col2 - + col0 AND ( NULL )
----

query I rowsort
SELECT - col2 + - col0 * 42 * + col1 + + col1 FROM tab1 AS cor0
----
-17904
-179655
-30070

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT + 1 + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-2680
SELECT + 1 + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT - COUNT( * ), + 51 col1 FROM tab2, tab1 AS cor0
----
-9
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2681
SELECT - COUNT ( * ), + 51 col1 FROM tab2, tab1 AS cor0
----
-9
51

query I rowsort
SELECT DISTINCT - 35 + col1 FROM tab0
----
-14
-34
46

query II rowsort
SELECT + col0 * + + 5, + col0 FROM tab2
----
230
46
320
64
375
75

query I rowsort
SELECT col0 + - col1 * col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1200
-1740
0

query I rowsort
SELECT - ( + - col2 ) - - 21 FROM tab2 AS cor0
----
44
61
79

query I rowsort
SELECT 91 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 73 / + 37 + + 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT DISTINCT CAST( - + col1 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT DISTINCT + 79 * - + col1 AS col2 FROM tab1 AS cor0
----
-1106
-3713
-395

query I rowsort
SELECT + ( + ( col2 ) ) AS col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT + COUNT( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2692
SELECT + COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2693
SELECT ALL + + 29 * - col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + + 29 * - col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 76 * - col0 col2, col1 FROM tab2
----
-3496
51
-4864
77
-5700
67

query I rowsort
SELECT col0 * - 19 FROM tab1
----
-1615
-1729
-969

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT SUM( - 81 ) AS col1 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2697
SELECT SUM ( - 81 ) AS col1 FROM tab0 AS cor0
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT + + 65 DIV col0 + - - 68 FROM tab1 AS cor0
----
68
68
69

skipif mysql # not compatible
query I rowsort label-2698
SELECT + + 65 / col0 + - - 68 FROM tab1 AS cor0
----
68
68
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT ALL 94 DIV - - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL 94 / - - col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 = - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE col0 * + CAST( 44 AS SIGNED ) * - 91 NOT IN ( col2 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE col0 * + CAST ( 44 AS INTEGER ) * - 91 NOT IN ( col2 )
----
-15
-87
-97

query I rowsort
SELECT ALL 82 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT ALL - + SUM( - + 97 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
873

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2703
SELECT ALL - + SUM ( - + 97 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
873

query I rowsort
SELECT DISTINCT - 50 + + - 51 AS col1 FROM tab1
----
-101

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - + col0 <> - 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL + - 20 + - + MIN( + + col0 ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL + - 20 + - + MIN ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT + 25 AS col0 FROM tab0 cor0
----
25
25
25

query I rowsort
SELECT + + col1 * - - col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT ALL SUM( DISTINCT - + col1 ) DIV COUNT( * ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL SUM ( DISTINCT - + col1 ) / COUNT ( * ) FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 72 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 72 AND NULL
----
0

query I rowsort
SELECT - + col2 * - 52 FROM tab1 cor0
----
3068
3536
4992

query I rowsort
SELECT ALL - col1 * + - col2 + - 40 - 90 FROM tab0 AS cor0
----
-31
3677
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL - COUNT( + + 51 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL - COUNT ( + + 51 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2714
SELECT DISTINCT + - 89 DIV - CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + - 89 / - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT - - 32 DIV - - 92 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT - - 32 / - - 92 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT + COUNT( col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2716
SELECT + COUNT ( col2 ) FROM tab1
----
3

query II rowsort
SELECT ALL + col2 AS col0, - 41 AS col1 FROM tab0
----
10
-41
47
-41
99
-41

query I rowsort
SELECT + col0 + - - col2 FROM tab0
----
196
62
97

query I rowsort
SELECT + - 91 + - + 61 FROM tab1 AS cor0
----
-152
-152
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT ALL - + 83 + col2 DIV + col1 FROM tab2 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - + 83 + col2 / + col1 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT - 35 * - - col0 + - + col2 FROM tab0 AS cor0
----
-3055
-3494
-572

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT - 2 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2723
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT - COUNT( DISTINCT - col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - - 44 FROM tab2 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT ALL + 97 AS col1 FROM tab2
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 11 AS col2 FROM tab2 AS cor0 WHERE NOT + 35 IS NULL
----
-11
-11
-11

query I rowsort
SELECT col1 * col1 - 48 AS col1 FROM tab0 AS cor0
----
-47
393
6513

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + MIN( + col1 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-2732
SELECT + MIN ( + col1 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - - col0
----
51
14
96

query I rowsort
SELECT DISTINCT col1 + - 87 AS col2 FROM tab1
----
-40
-73
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2735
SELECT + 25 + col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT + 25 + col2 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / + col2 IS NOT NULL
----

query II rowsort
SELECT - ( 75 ) AS col2, + 24 * + col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col0 FROM tab0 AS cor0 WHERE + col1 - - 70 NOT IN ( - - 78, col2, - col2 + - col2 )
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL + MAX( - 98 ) AS col0 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + MAX ( - 98 ) AS col0 FROM tab1
----
-98

query I rowsort
SELECT 91 * col1 * + col2 FROM tab1
----
122304
26845
290836

query I rowsort
SELECT DISTINCT + + 8 FROM tab1 AS cor0 WHERE ( NOT + ( col0 ) + - + 29 BETWEEN + ( + 91 ) + - 79 - + 37 * col0 * + ( + col0 ) AND col2 )
----

query I rowsort
SELECT DISTINCT + + 95 + - col2 FROM tab0 AS cor0
----
-4
48
85

query I rowsort
SELECT 23 * - + col1 * col2 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-30926
-6790
-73555

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + col1 + - 80 / - + 19 * + col0 IN ( col1 * 6 + 84, col2 + col2 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2746
SELECT * FROM tab1 AS cor0 WHERE col1 + - col0 * + + 84 + ( - col1 ) / + CAST( NULL AS SIGNED ) + - + 94 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2746
SELECT * FROM tab1 AS cor0 WHERE col1 + - col0 * + + 84 + ( - col1 ) / + CAST ( NULL AS INTEGER ) + - + 94 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT + SUM( DISTINCT + 91 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2747
SELECT + SUM ( DISTINCT + 91 ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL + ( - ( - MAX( 1 ) ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + ( - ( - MAX ( 1 ) ) ) FROM tab1
----
1

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT + COUNT( * ) * - - CAST( ( - SUM( DISTINCT - + col0 ) ) AS SIGNED ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-2750
SELECT + COUNT ( * ) * - - CAST ( ( - SUM ( DISTINCT - + col0 ) ) AS INTEGER ) FROM tab1
----
681

query I rowsort
SELECT ALL col2 + - col2 * col2 AS col2 FROM tab2
----
-1560
-3306
-506

query I rowsort
SELECT - + 26 - - 59 * col0 * + col0 + - + 30 + - - col1 - + col2 * col2 AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE - 50 + + col1 = NULL
----

query I rowsort
SELECT ALL - 34 AS col0 FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - col2 * - 65 * col2 * - ( col0 ) FROM tab1
----
-19232525
-27350960
-30551040

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT DISTINCT - 61 DIV - - col1 FROM tab0
----
-2
-61
0

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT - 61 / - - col1 FROM tab0
----
-2
-61
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2758
SELECT ALL + 5 AS col0, + MIN( ALL col0 ) AS col1 FROM tab2 cor0
----
5
46

skipif mysql # not compatible
query II rowsort label-2758
SELECT ALL + 5 AS col0, + MIN ( ALL col0 ) AS col1 FROM tab2 cor0
----
5
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT + MIN( col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2759
SELECT DISTINCT + MIN ( col2 ) col2 FROM tab0 AS cor0
----
10

query II rowsort
SELECT - col0 AS col2, - 33 AS col1 FROM tab1 AS cor0
----
-51
-33
-85
-33
-91
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL MAX( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL MAX ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - + 28 - + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-33
-42
-75

query I rowsort
SELECT ALL + ( - 38 ) + - 19 AS col1 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - col0 + - 2 FROM tab0
----
-17
-89
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 < ( - col1 * col1 - + col1 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 24 * col2 + - col1 AS col2 FROM tab2
----
1325
501
883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT col2 BETWEEN ( NULL ) AND 21 + - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - 6 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + 51
----

query I rowsort
SELECT 29 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT 11 + 16 FROM tab2
----
27
27
27

query I rowsort
SELECT ALL col1 + + 4 AS col2 FROM tab1 AS cor0
----
18
51
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 21 + 85 * - 2 col1, col1 AS col0 FROM tab1 AS cor0
----
-149
14
-149
47
-149
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + ( - + col2 ) - 27
----

query I rowsort
SELECT DISTINCT ( + col2 ) - - col1 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT + 77 - + - COUNT( * ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2776
SELECT + 77 - + - COUNT ( * ) FROM tab0 AS cor0
----
80

query III rowsort
SELECT * FROM tab1 cor0 WHERE 14 + - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2778
SELECT * FROM tab0 cor0 WHERE ( 74 + + - CAST( + col1 AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2778
SELECT * FROM tab0 cor0 WHERE ( 74 + + - CAST ( + col1 AS INTEGER ) ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 41 + + - ( col0 ) * + col0 BETWEEN - 96 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - ( col1 ) AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT DISTINCT CAST( col0 AS SIGNED ) * col2 * col0 FROM tab2
----
163840
326250
48668

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col2 * col0 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2782
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - - col1 + 49 + - + 71 * ( + - CAST( - - 99 AS SIGNED ) ) < - col1 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2782
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - - col1 + 49 + - + 71 * ( + - CAST ( - - 99 AS INTEGER ) ) < - col1 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * 26 AS col1 FROM tab0 AS cor0
----
2106
26
546

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT NULL < - 88
----

onlyif mysql # aggregate syntax: 
query III rowsort label-2785
SELECT 32 AS col1, COUNT( DISTINCT - + 40 ) col2, + 35 FROM tab0
----
32
1
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2785
SELECT 32 AS col1, COUNT ( DISTINCT - + 40 ) col2, + 35 FROM tab0
----
32
1
35

query I rowsort
SELECT - 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT 19 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT + COUNT( * ) * MAX( DISTINCT + 30 ) AS col1, COUNT( * ) FROM tab2
----
90
3

skipif mysql # not compatible
query II rowsort label-2788
SELECT + COUNT ( * ) * MAX ( DISTINCT + 30 ) AS col1, COUNT ( * ) FROM tab2
----
90
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL SUM( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT + col0 * 96 DIV ( + 2 ) AS col2 FROM tab2
----
2208
3072
3600

skipif mysql # not compatible
query I rowsort label-2790
SELECT + col0 * 96 / ( + 2 ) AS col2 FROM tab2
----
2208
3072
3600

query I rowsort
SELECT DISTINCT + col0 * - - col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - MAX( DISTINCT col2 ) col2 FROM tab0 AS cor0 WHERE NOT 34 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2792
SELECT - MAX ( DISTINCT col2 ) col2 FROM tab0 AS cor0 WHERE NOT 34 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT MIN( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2793
SELECT MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL COUNT( * ) * 45 AS col0 FROM tab0 cor0
----
135

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL COUNT ( * ) * 45 AS col0 FROM tab0 cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT DISTINCT + col0 * + 90 * - - col0 * + - col1 + CAST( + + 73 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-14305337
-1640177
-846737

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + col0 * + 90 * - - col0 * + - col1 + CAST ( + + 73 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-14305337
-1640177
-846737

query II rowsort
SELECT + col0 + - col1 AS col2, 75 + - - col1 AS col0 FROM tab0
----
-66
156
66
96
96
76

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 38 / - col2 AND 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - MIN( ALL + + col1 ) + + - 43 AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-2798
SELECT - MIN ( ALL + + col1 ) + + - 43 AS col1 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT - 94 * MIN( + 69 ) + COUNT( - col0 ) AS col2 FROM tab2
----
-6483

skipif mysql # not compatible
query I rowsort label-2799
SELECT - 94 * MIN ( + 69 ) + COUNT ( - col0 ) AS col2 FROM tab2
----
-6483

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2800
SELECT * FROM tab0 WHERE + 78 - - CAST( + - 12 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2800
SELECT * FROM tab0 WHERE + 78 - - CAST ( + - 12 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - - ( col1 ) FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL COUNT( * ) + - 90 AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL COUNT ( * ) + - 90 AS col0 FROM tab2 AS cor0
----
-87

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col2 - + 10 FROM tab0 AS cor0
----
0
37
89

query I rowsort
SELECT + + 68 AS col1 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT DISTINCT - 90 * ( + - ( - 1 ) ) FROM tab1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, + col0 col2 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT col2 * + - 12 * - ( + 10 ) FROM tab1
----
11520
7080
8160

query I rowsort
SELECT ALL - col2 * + ( - + col2 ) AS col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL + ( 26 ) FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT - ( + col1 ) * - - 34 FROM tab1 AS cor0
----
-1598
-170
-476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * - col0 + + col0 col1 FROM tab2 WHERE NOT + col0 * + - 89 IS NULL
----
2852
3968
4650

query I rowsort
SELECT DISTINCT 90 * col0 * + - 66 * + 76 AS col2 FROM tab2
----
-20766240
-28892160
-33858000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + 51, col2 col1 FROM tab2
----
115
40
126
58
97
23

query I rowsort
SELECT DISTINCT - - 31 FROM tab1 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT - - MAX( - 7 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT - - MAX ( - 7 ) FROM tab0 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 44 ) * - col0 + - col0 col0 FROM tab1 AS cor0
----
2193
3655
3913

query I rowsort
SELECT ALL - 51 * + 56 AS col1 FROM tab2 AS cor0
----
-2856
-2856
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT DISTINCT col2 * + 61 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT col2 * + 61 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + - 61 * - - 72 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-4389

skipif mysql # not compatible
query I rowsort label-2823
SELECT + - 61 * - - 72 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL + SUM( DISTINCT - col2 ) * + + 14 AS col1 FROM tab2 AS cor0
----
-1694

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + SUM ( DISTINCT - col2 ) * + + 14 AS col1 FROM tab2 AS cor0
----
-1694

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT + 23 DIV + col2 + - - col0 AS col0 FROM tab0 AS cor0
----
15
89
97

skipif mysql # not compatible
query I rowsort label-2825
SELECT + 23 / + col2 + - - col0 AS col0 FROM tab0 AS cor0
----
15
89
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2826
SELECT + + col2 + - - col0 * col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col1 + - 93 + + col0 AND - CAST( + 43 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2826
SELECT + + col2 + - - col0 * col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col1 + - 93 + + col0 AND - CAST ( + 43 AS INTEGER )
----

query I rowsort
SELECT col0 * - - 37 FROM tab0
----
3219
3589
555

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT DISTINCT - col2 DIV + 77 + + - col0 AS col2 FROM tab0 cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - col2 / + 77 + + - col0 AS col2 FROM tab0 cor0
----
-15
-87
-98

query I rowsort
SELECT + 82 + - col2 AS col1 FROM tab0 AS cor0
----
-17
35
72

query I rowsort
SELECT col0 + 43 FROM tab1 cor0
----
128
134
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2831
SELECT * FROM tab0 AS cor0 WHERE CAST( + + 49 AS SIGNED ) = - col2
----

skipif mysql # not compatible
query III rowsort label-2831
SELECT * FROM tab0 AS cor0 WHERE CAST ( + + 49 AS INTEGER ) = - col2
----

query I rowsort
SELECT - + col1 + + 21 + + + col1 + - + col0 * - col1 AS col2 FROM tab0 AS cor0
----
118
1236
1848

query I rowsort
SELECT + col2 * + ( 27 ) AS col0 FROM tab2
----
1080
1566
621

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 AS col1, - 51 + - col0 AS col2 FROM tab2
----
23
-97
40
-115
58
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT + SUM( + + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2836
SELECT + SUM ( + + col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT - col1 - ( - col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( + col0 )
----

query II rowsort
SELECT col1, - col2 AS col0 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ALL + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2841
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + col2 NOT IN ( - - CAST( ( + col0 ) AS SIGNED ), col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2841
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + col2 NOT IN ( - - CAST ( ( + col0 ) AS INTEGER ), col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 88 AS col0 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab0 cor0
----
23

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2845
SELECT * FROM tab0 WHERE NOT - ( + + 7 ) * ( col1 ) * - - 31 + + ( - - ( + ( - CAST( - col2 AS SIGNED ) ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2845
SELECT * FROM tab0 WHERE NOT - ( + + 7 ) * ( col1 ) * - - 31 + + ( - - ( + ( - CAST ( - col2 AS INTEGER ) ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL + MAX( 93 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + MAX ( 93 ) FROM tab0
----
93

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT col2 DIV + ( + col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2848
SELECT col2 / + ( + col2 ) FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2849
SELECT - - MAX( ALL - + CAST( NULL AS SIGNED ) ) AS col0, MAX( - + col0 ) + + - 46 FROM tab1 AS cor0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-2849
SELECT - - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0, MAX ( - + col0 ) + + - 46 FROM tab1 AS cor0
----
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT + + 47 * COUNT( * ) FROM tab0 cor0
----
141

skipif mysql # not compatible
query I rowsort label-2850
SELECT + + 47 * COUNT ( * ) FROM tab0 cor0
----
141

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - MAX( - + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2852
SELECT - MAX ( - + col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT - col0 * - 67 * + + 81 AS col1 FROM tab0 AS cor0
----
472149
526419
81405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT ALL COUNT( DISTINCT ( + CAST( NULL AS SIGNED ) ) ) * COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL COUNT ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT DISTINCT + SUM( DISTINCT 96 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT + SUM ( DISTINCT 96 ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 2, col0 col1 FROM tab2 AS cor0
----
2
46
2
64
2
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT DISTINCT + - 0 DIV + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + - 0 / + COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - + col0 + 17 FROM tab1 AS cor0
----
-34
-68
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT - 71 + CAST( - + col0 AS SIGNED ) * col1 FROM tab2
----
-2417
-4999
-5096

skipif mysql # not compatible
query I rowsort label-2860
SELECT - 71 + CAST ( - + col0 AS INTEGER ) * col1 FROM tab2
----
-2417
-4999
-5096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col0 FROM tab0
----
24

query I rowsort
SELECT DISTINCT - 90 + col2 * 56 * + 4 * + col0 AS col0 FROM tab2
----
236902
573350
974310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT ALL CAST( + + 58 AS SIGNED ) + + - 30 + - col1 - - + col1 * + - col1 FROM tab2
----
-2624
-4528
-5978

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL CAST ( + + 58 AS INTEGER ) + + - 30 + - col1 - - + col1 * + - col1 FROM tab2
----
-2624
-4528
-5978

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT COUNT( * ) FROM tab1 WHERE col1 / 2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT COUNT ( * ) FROM tab1 WHERE col1 / 2 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT + COUNT( * ) + 85 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT + COUNT ( * ) + 85 FROM tab2
----
88

query III rowsort
SELECT * FROM tab1 WHERE + - 99 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL - col2 + + 77 FROM tab1
----
-19
18
9

query I rowsort
SELECT col2 * - 91 FROM tab0 AS cor0 WHERE NULL BETWEEN 14 * - col0 AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2869
SELECT ALL + MIN( ALL - col0 ) AS col0, - 96 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-97
-96

skipif mysql # not compatible
query II rowsort label-2869
SELECT ALL + MIN ( ALL - col0 ) AS col0, - 96 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-97
-96

query I rowsort
SELECT ( + col1 ) - ( col0 ) AS col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL - col2 + + col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2873
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col0 = NULL
----

skipif mysql # not compatible
query III rowsort label-2873
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + + 47 BETWEEN NULL AND + 8
----
-3

skipif mysql # not compatible
query I rowsort label-2874
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + + 47 BETWEEN NULL AND + 8
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT MIN( DISTINCT + 21 ) FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT MIN ( DISTINCT + 21 ) FROM tab0 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT COUNT( + + 96 ) + + MAX( ( + col2 ) ) FROM tab0 AS cor0 WHERE + 65 IS NOT NULL
----
102

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT COUNT ( + + 96 ) + + MAX ( ( + col2 ) ) FROM tab0 AS cor0 WHERE + 65 IS NOT NULL
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL - + MIN( ALL - 42 ) col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2877
SELECT ALL - + MIN ( ALL - 42 ) col0 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT + CAST( 98 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-2878
SELECT + CAST ( 98 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT - 92 * - 42 * - ( 64 ) FROM tab0
----
-247296
-247296
-247296

query II rowsort
SELECT col2, col2 * - 91 AS col2 FROM tab0
----
10
-910
47
-4277
99
-9009

query II rowsort
SELECT ALL col2, 0 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT COUNT( * ), - 40 + MIN( DISTINCT + col2 ) AS col1 FROM tab0
----
3
-30

skipif mysql # not compatible
query II rowsort label-2882
SELECT COUNT ( * ), - 40 + MIN ( DISTINCT + col2 ) AS col1 FROM tab0
----
3
-30

query I rowsort
SELECT ALL + col0 * - + 46 FROM tab2 AS cor0
----
-2116
-2944
-3450

query I rowsort
SELECT + 23 * + col0 AS col1 FROM tab1 AS cor0
----
1173
1955
2093

onlyif mysql # aggregate syntax: 
query II rowsort label-2885
SELECT + 89 col0, COUNT( * ) * + 28 * + - 91 AS col0 FROM tab0 cor0
----
89
-7644

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2885
SELECT + 89 col0, COUNT ( * ) * + 28 * + - 91 AS col0 FROM tab0 cor0
----
89
-7644

query II rowsort
SELECT - 32 AS col0, 16 * + - 53 FROM tab1 AS cor0
----
-32
-848
-32
-848
-32
-848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2887
SELECT DISTINCT 64 + COUNT( * ) AS col1, - COUNT( col1 ) + - CAST( + 35 AS SIGNED ) FROM tab1
----
67
-38

skipif mysql # not compatible
query II rowsort label-2887
SELECT DISTINCT 64 + COUNT ( * ) AS col1, - COUNT ( col1 ) + - CAST ( + 35 AS INTEGER ) FROM tab1
----
67
-38

query II rowsort
SELECT DISTINCT - col1 + + col1 AS col1, + col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2889
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) AS col2, - col0 AS col2 FROM tab1 WHERE 55 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2889
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) AS col2, - col0 AS col2 FROM tab1 WHERE 55 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( 48 * - 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL - MIN( + + col2 ) col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2891
SELECT ALL - MIN ( + + col2 ) col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT DISTINCT + MIN( ALL + ( col1 ) ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + MIN ( ALL + ( col1 ) ) FROM tab1 cor0
----
5

query I rowsort
SELECT + - col0 * col2 + + col0 + - 59 FROM tab1 AS cor0
----
-4904
-4989
-6156

query I rowsort
SELECT DISTINCT - + 78 AS col0 FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT - ( - + COUNT( ALL CAST( NULL AS SIGNED ) ) ) * - + 4 + - 4 AS col2 FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2895
SELECT - ( - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) * - + 4 + - 4 AS col2 FROM tab1 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + MIN( ALL col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-2896
SELECT + MIN ( ALL col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
5

query I rowsort
SELECT + 71 AS col2 FROM tab0 cor0
----
71
71
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2898
SELECT 22 DIV + 57 * - - MIN( ALL col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT 22 / + 57 * - - MIN ( ALL col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2899
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - - col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2899
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - - col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query II rowsort
SELECT + ( - col0 ) * + col2 + + col0, - col2 AS col1 FROM tab2
----
-1012
-23
-2496
-40
-4275
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT - COUNT( + col2 ) + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - COUNT ( + col2 ) + + COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 35 * + 88 FROM tab0
----
-3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - 97 col0 FROM tab1
----
1
29
38

query I rowsort
SELECT ALL 37 AS col1 FROM tab0 WHERE NULL < - ( - - col0 )
----

query I rowsort
SELECT + 88 + + col1 FROM tab0
----
109
169
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT ALL + - COUNT( * ) + 11 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL + - COUNT ( * ) + 11 FROM tab1 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * - col1 + - col2 + - + col2 * - col1 * - col0 col0 FROM tab1 AS cor0
----
-25234
-291844
-68920

query I rowsort
SELECT ALL + - 10 FROM tab0 cor0 WHERE ( NULL ) <= + col1
----

query II rowsort
SELECT DISTINCT 16, + col1 FROM tab1 AS cor0
----
16
14
16
47
16
5

query I rowsort
SELECT DISTINCT - col2 * - 12 FROM tab0
----
1188
120
564

query I rowsort
SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT MIN( ALL - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2914
SELECT MIN ( ALL - col0 ) FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT DISTINCT + col2 DIV + + col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + col2 / + + col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 * - col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT ALL + 52 DIV + - ( + - 72 ) + + MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL + 52 / + - ( + - 72 ) + + MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE ( + 89 ) NOT BETWEEN - col0 AND + 9 + + 75 + col1
----

query I rowsort
SELECT - - 31 AS col1 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT + ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + - ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 32 IS NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT 84 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + + - 42 AS col2 FROM tab2
----
-100
-65
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT - COUNT( + + col0 ) + - ( - + 92 ) col0 FROM tab1
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2926
SELECT - COUNT ( + + col0 ) + - ( - + 92 ) col0 FROM tab1
----
89

query I rowsort
SELECT col0 + 94 FROM tab0
----
109
181
191

query I rowsort
SELECT ALL 86 AS col1 FROM tab2 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT + SUM( + + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + SUM ( + + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT SUM( ALL col1 ) * - 11 FROM tab2 AS cor0 WHERE col2 BETWEEN - - col1 + - - col0 AND - ( 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT SUM ( ALL col1 ) * - 11 FROM tab2 AS cor0 WHERE col2 BETWEEN - - col1 + - - col0 AND - ( 34 )
----
NULL

query II rowsort
SELECT col2 AS col2, + col2 * + col2 AS col1 FROM tab0
----
10
100
47
2209
99
9801

query II rowsort
SELECT + col0 AS col1, + col2 * + col2 FROM tab2
----
46
529
64
1600
75
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT + ( - - COUNT( * ) ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT + ( - - COUNT ( * ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - - col0 <> col2 AND col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + ( - col0 ) + col2 AS col1 FROM tab0 cor0
----
-164
-95
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT + CAST( + col0 AS SIGNED ) + - 10 AS col1 FROM tab2 AS cor0
----
36
54
65

skipif mysql # not compatible
query I rowsort label-2936
SELECT + CAST ( + col0 AS INTEGER ) + - 10 AS col1 FROM tab2 AS cor0
----
36
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + - COUNT( * ) + SUM( DISTINCT - + 55 ) AS col2 FROM tab0 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2938
SELECT + - COUNT ( * ) + SUM ( DISTINCT - + 55 ) AS col2 FROM tab0 cor0
----
-58

query I rowsort
SELECT - 66 + col0 + col0 * - col0 AS col2 FROM tab2
----
-2136
-4098
-5616

query I rowsort
SELECT + col0 * + col1 * 98 FROM tab2
----
229908
482944
492450

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE ( NOT ( col0 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE ( NOT ( col0 IS NOT NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL 79 * - ( SUM( DISTINCT - col2 ) ) FROM tab1
----
17617

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL 79 * - ( SUM ( DISTINCT - col2 ) ) FROM tab1
----
17617

query I rowsort
SELECT DISTINCT 95 * - 65 + - - 73 AS col2 FROM tab1 AS cor0
----
-6102

query I rowsort
SELECT DISTINCT + 25 * + col2 FROM tab0 cor0
----
1175
2475
250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2945
SELECT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL - 36 * ( + COUNT( * ) ) FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - 36 * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-108

query I rowsort
SELECT ALL - + col0 * - 69 AS col0 FROM tab2 AS cor0
----
3174
4416
5175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col0 FROM tab2 AS cor0 WHERE NOT - col1 > 77
----
-56
-56
-56

query I rowsort
SELECT ALL - - 27 FROM tab1 WHERE NOT + 51 * - 96 / - + col2 < - col2
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT - col1 - + + col2 / + 67 FROM tab2 AS cor0 WHERE NOT ( NOT CAST( + + 22 AS SIGNED ) / 55 + - col1 * - col1 + 45 = - col1 )
----

skipif mysql # not compatible
query I rowsort label-2950
SELECT - col1 - + + col2 / + 67 FROM tab2 AS cor0 WHERE NOT ( NOT CAST ( + + 22 AS INTEGER ) / 55 + - col1 * - col1 + 45 = - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT + MIN( + 83 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2951
SELECT + MIN ( + 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-2952
SELECT + 80, col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
80
0
80
0
80
0

skipif mysql # not compatible
query II rowsort label-2952
SELECT + 80, col2 / + col1 AS col2 FROM tab2 AS cor0
----
80
0
80
0
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT - 34 * + 5 - col0 <= 60
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT - 34 * + 5 - col0 <= 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT MIN( DISTINCT 88 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2954
SELECT MIN ( DISTINCT 88 ) FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT 0 * + + MIN( - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT 0 * + + MIN ( - col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2956
SELECT ALL COUNT( + - col1 ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL COUNT ( + - col1 ) / + COUNT ( * ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2957
SELECT COUNT( * ) * - - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NOT - 51 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT COUNT ( * ) * - - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1 WHERE NOT - 51 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2958
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + 46 IS NULL
----

query I rowsort
SELECT + col2 + + col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL COUNT( DISTINCT + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL COUNT ( DISTINCT + col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT DISTINCT 70 + - COUNT( * ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT 70 + - COUNT ( * ) FROM tab0
----
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / 40 + + + col2 IS NOT NULL
----

query II rowsort
SELECT col1 * col1 AS col0, - col2 * 70 * + 3 AS col0 FROM tab1 AS cor0
----
196
-20160
2209
-14280
25
-12390

query I rowsort
SELECT ALL + - 98 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT MIN( DISTINCT ( 87 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + - col0 ) AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT MIN ( DISTINCT ( 87 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + - col0 ) AND + col1
----
NULL

query I rowsort
SELECT 13 + - + ( col2 ) FROM tab2 AS cor0
----
-10
-27
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT MAX( + 30 ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT MAX ( + 30 ) FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL - COUNT( * ) * + 74 AS col1 FROM tab2, tab0 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - COUNT ( * ) * + 74 AS col1 FROM tab2, tab0 AS cor0
----
-666

query I rowsort
SELECT 41 * + - col2 + - 5 FROM tab1 WHERE + col1 IS NOT NULL
----
-2424
-2793
-3941

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT + + SUM( DISTINCT + + 63 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
63

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + + SUM ( DISTINCT + + 63 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
63

query I rowsort
SELECT ALL + - col0 - - - col1 * col1 FROM tab1 AS cor0
----
-110
-2300
-247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 - - col1 col0 FROM tab1 AS cor0
----
22
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT + - SUM( - 9 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + - SUM ( - 9 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL + col0 - - + 5 AS col0 FROM tab0 AS cor0
----
102
20
92

query I rowsort
SELECT - - 48 - + + 60 AS col2 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT + col2 - + - col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT + 32 FROM tab2 WHERE NULL IS NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col1 + + - col0 + - col0 FROM tab0
----
-153
-193
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT ALL ( COUNT( * ) ) AS col1, + COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2981
SELECT ALL ( COUNT ( * ) ) AS col1, + COUNT ( * ) AS col0 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2983
SELECT DISTINCT + 86, CAST( + ( - - col0 ) AS SIGNED ) AS col2 FROM tab2
----
86
46
86
64
86
75

skipif mysql # not compatible
query II rowsort label-2983
SELECT DISTINCT + 86, CAST ( + ( - - col0 ) AS INTEGER ) AS col2 FROM tab2
----
86
46
86
64
86
75

query II rowsort
SELECT DISTINCT - 29, 52 AS col2 FROM tab1
----
-29
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT + col2 * col2 + + 87 FROM tab2 AS cor0
----
1687
3451
616

query I rowsort
SELECT DISTINCT - + 24 * 99 FROM tab2 cor0
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT + MAX( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2988
SELECT + MAX ( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT ( + 42 ) * - - 96 AS col1 FROM tab1 AS cor0
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2990
SELECT ALL 46 * CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab1 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2990
SELECT ALL 46 * CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2991
SELECT - col1 DIV - 53 col0, col2 AS col2 FROM tab2 AS cor0
----
0
23
1
40
1
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2991
SELECT - col1 / - 53 col0, col2 AS col2 FROM tab2 AS cor0
----
0
23
1
40
1
58

query I rowsort
SELECT col1 * - col0 * - - col1 AS col2 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT ALL - 98 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-5782
-6664
-9408

query I rowsort
SELECT - + col0 * + + 33 FROM tab0 AS cor0
----
-2871
-3201
-495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col0 FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT DISTINCT + - 74 * - col1, col1 FROM tab0 AS cor0
----
1554
21
5994
81
74
1

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 * - 50 + - ( - ( - + col1 ) ) - + - col2 FROM tab2 AS cor0 WHERE + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2999
SELECT DISTINCT 80 DIV + 52 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT 80 / + 52 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT + 13 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT + 13 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT 18 * - + ( + col1 ) AS col0 FROM tab2
----
-1206
-1386
-918

query I rowsort
SELECT - col2 * + 24 + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
-1392
-552
-960

query I rowsort
SELECT DISTINCT - 13 * + - col2 + - col0 * 30 AS col1 FROM tab0 AS cor0
----
-1623
-2480
161

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT ALL col2 DIV - - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL col2 / - - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT + MIN( - CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3006
SELECT + MIN ( - CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3007
SELECT * FROM tab0 WHERE NOT CAST( 66 AS SIGNED ) + 59 / - 85 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3007
SELECT * FROM tab0 WHERE NOT CAST ( 66 AS INTEGER ) + 59 / - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT 34 + - COUNT( * ) AS col1 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-3008
SELECT 34 + - COUNT ( * ) AS col1 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT DISTINCT SUM( DISTINCT + col0 ) FROM tab2 WHERE NOT NULL IN ( col1 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT SUM ( DISTINCT + col0 ) FROM tab2 WHERE NOT NULL IN ( col1 * col2 )
----
NULL

query I rowsort
SELECT DISTINCT + 81 - - 17 FROM tab1
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * + 38 col1 FROM tab0
----
3306
3686
570

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE + 44 * col1 <= 2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT ( + col0 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 64 <= ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) BETWEEN ( col2 ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 21 * ( + col1 ) AS col0 FROM tab0
----
1701
21
441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT col1 + + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT col1 + + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - col1 AS col1 FROM tab1 WHERE ( - ( + col2 ) ) BETWEEN ( - 42 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3020
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( - col0 / + 26 + + CAST( - col0 AS SIGNED ) * 12 )
----

skipif mysql # not compatible
query III rowsort label-3020
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( - col0 / + 26 + + CAST ( - col0 AS INTEGER ) * 12 )
----

query I rowsort
SELECT + 43 - + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) > + 6
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN - ( + 18 ) AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN - ( + 18 ) AND ( col1 )
----
0

query I rowsort
SELECT - 7 * + 5 FROM tab2
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - + col2 * - 54 AS col0 FROM tab2
----
1288
2224
3207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 26 col2 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT col0 FROM tab2 WHERE col1 + 19 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 82 col0 FROM tab2
----
128
146
157

query I rowsort
SELECT + ( + col0 ) + 18 FROM tab0 WHERE NOT ( col0 + 69 / + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT + col1 DIV - col1 - 25 FROM tab2
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-3031
SELECT + col1 / - col1 - 25 FROM tab2
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT ALL - 81 DIV col0 FROM tab1 WHERE col0 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - 81 / col0 FROM tab1 WHERE col0 IS NOT NULL
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 31 + 67 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 5 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab2 cor0 WHERE NOT + 77 NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT 6 DIV 43 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT 6 / 43 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 + + ( 71 ) * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 + 13 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3039
SELECT + COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 87 * 65 AS col1 FROM tab0 cor0
----
5655
5655
5655

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - SUM( col1 ) AS col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - SUM ( col1 ) AS col2 FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT + COUNT( * ) * - COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3043
SELECT + COUNT ( * ) * - COUNT ( * ) col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3044
SELECT - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col0 NOT BETWEEN NULL AND + col2 + + col0
----

query I rowsort
SELECT ALL - 76 * + col1 AS col1 FROM tab2 AS cor0
----
-3876
-5092
-5852

query I rowsort
SELECT DISTINCT + + 3 * 27 FROM tab1 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + ( - 47 ) NOT BETWEEN NULL AND - col1
----
15
81
47

query I rowsort
SELECT + + 7 * col0 AS col0 FROM tab1 AS cor0
----
357
595
637

query I rowsort
SELECT DISTINCT col0 + - - col1 * ( ( - col1 ) ) FROM tab1
----
-145
-2118
60

query I rowsort
SELECT ALL 51 * col1 AS col1 FROM tab0 WHERE - 12 >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT + 28 FROM tab2 WHERE NULL BETWEEN - col1 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3052
SELECT + 28 FROM tab2 WHERE NULL BETWEEN - col1 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT + + ( - COUNT( + col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT + + ( - COUNT ( + col2 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN ( - ( 26 ) ) AND - col1 AND NULL IS NOT NULL
----

query I rowsort
SELECT + 13 + - col0 FROM tab0 AS cor0
----
-2
-74
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3057
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL ( col1 ) * col2 + 38 * - col2 + + col2 FROM tab0
----
-160
-3564
2068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 70 * - CAST( NULL AS SIGNED ) + + 96 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 70 * - CAST ( NULL AS INTEGER ) + + 96 IS NOT NULL
----
0

query I rowsort
SELECT - ( - 33 ) FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + + col1 - + col0 + - + 20 AS col2 FROM tab1 AS cor0
----
-100
-57
-64

query I rowsort
SELECT + - 32 - - col0 AS col1 FROM tab0 AS cor0
----
-17
55
65

query I rowsort
SELECT DISTINCT 98 + + col0 FROM tab2 AS cor0
----
144
162
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 * col0 * + col0 col0 FROM tab1 AS cor0
----
132600
614040
753480

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 41 NOT IN ( + - col1 )
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 85 ) BETWEEN ( - col2 * + col1 - ( + col2 + - 46 / - col1 ) * + col0 ) AND - ( - col2 )
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT 63 DIV - + COUNT( * ) - + 25 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3067
SELECT 63 / - + COUNT ( * ) - + 25 FROM tab0 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT DISTINCT col1 DIV + + col1 - - - 29 * col2 FROM tab0 AS cor0
----
-1362
-2870
-289

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT col1 / + + col1 - - - 29 * col2 FROM tab0 AS cor0
----
-1362
-2870
-289

query I rowsort
SELECT + 18 * + col0 - + 45 AS col1 FROM tab2 AS cor0
----
1107
1305
783

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT COUNT( * ) - + + 44 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-41

skipif mysql # not compatible
query I rowsort label-3070
SELECT COUNT ( * ) - + + 44 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-41

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 87 <> ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + MIN( DISTINCT - 16 ) FROM tab2 WHERE NOT ( - col0 ) <> 39 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT + MIN ( DISTINCT - 16 ) FROM tab2 WHERE NOT ( - col0 ) <> 39 * col0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - 70 ) AS col0 FROM tab1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab1 WHERE NOT 19 > - + 42 / + col2
----
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 WHERE NOT 19 > - + 42 / + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - col1 ) + - col1 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 44 + col0 / 8 = ( NULL )
----

query I rowsort
SELECT col1 * col1 * + col1 * col2 AS col2 FROM tab1
----
263424
7059964
7375

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + SUM( ALL - col0 ) AS col2 FROM tab1 WHERE NOT col0 + + 66 NOT BETWEEN col1 + - 31 AND col1 * col0
----
-227

skipif mysql # not compatible
query I rowsort label-3079
SELECT + SUM ( ALL - col0 ) AS col2 FROM tab1 WHERE NOT col0 + + 66 NOT BETWEEN col1 + - 31 AND col1 * col0
----
-227

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT + + col2 DIV + ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3081
SELECT + + col2 / + ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( + col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT COUNT( - 23 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3083
SELECT COUNT ( - 23 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / - col0 IN ( + col2 / + - 38 - - col0 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 18 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 47 / + + col2 / col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT MAX( ( - col0 ) ) + - + COUNT( * ) + + COUNT( * ) + + 33 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-3089
SELECT MAX ( ( - col0 ) ) + - + COUNT ( * ) + + COUNT ( * ) + + 33 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE ( NOT NULL IN ( + 62 * + col0 * - - col1 * + col2 - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE ( NOT NULL IN ( + 62 * + col0 * - - col1 * + col2 - col1 ) )
----
0

query I rowsort
SELECT + col1 + col0 * - col2 + - - 29 + - 66 AS col1 FROM tab0
----
-661
-886
-9639

query I rowsort
SELECT - 87 + col1 AS col2 FROM tab1
----
-40
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT 69 + - COUNT( * ) + + MAX( ALL - + col1 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3093
SELECT 69 + - COUNT ( * ) + + MAX ( ALL - + col1 ) FROM tab2
----
15

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col1 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 23 + 79 col1 FROM tab0
----
-1002
-151
-2198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 44 AS col2 FROM tab0 AS cor0 WHERE 78 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3099
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) + + 98 + col1 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3099
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + + 98 + col1 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - + 4 + - col2 + + - 67 * + col0 col2 FROM tab2
----
-3058
-4255
-5020

query II rowsort
SELECT ALL + 93 * 75, + col0 FROM tab1
----
6975
51
6975
85
6975
91

query III rowsort
SELECT * FROM tab1 WHERE + 55 + + col0 + 69 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3103
SELECT ( - + col1 ) + CAST( NULL AS DECIMAL ) AS col1, + col0 + - 96 * + col1 FROM tab0
----
NULL
-1929
NULL
-7761
NULL
1

skipif mysql # not compatible
query II rowsort label-3103
SELECT ( - + col1 ) + CAST ( NULL AS REAL ) AS col1, + col0 + - 96 * + col1 FROM tab0
----
NULL
-1929
NULL
-7761
NULL
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + + col1 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT ALL - - ( col0 ) DIV + + col2 col2 FROM tab0 cor0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3105
SELECT ALL - - ( col0 ) / + + col2 col2 FROM tab0 cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE 94 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL 82 + - col2 * 23 AS col2 FROM tab2 AS cor0 WHERE ( 46 * + + CAST( NULL AS SIGNED ) ) <= col2 * - 72 * - col1 - - - col1
----

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL 82 + - col2 * 23 AS col2 FROM tab2 AS cor0 WHERE ( 46 * + + CAST ( NULL AS INTEGER ) ) <= col2 * - 72 * - col1 - - - col1
----

query I rowsort
SELECT DISTINCT - 48 * + col0 * + 38 + ( col0 ) FROM tab1 AS cor0 WHERE ( NULL ) <= + + 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * - - ( - - col1 ) col2 FROM tab1 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT DISTINCT + + col1 * + - col1 * CAST( - ( - + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-38367
-97
-98415

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT + + col1 * + - col1 * CAST ( - ( - + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 < NULL
----

query I rowsort
SELECT ALL + col1 * - 18 FROM tab2
----
-1206
-1386
-918

onlyif mysql # aggregate syntax: 
query II rowsort label-3113
SELECT + 98 AS col2, COUNT( * ) FROM tab0
----
98
3

skipif mysql # not compatible
query II rowsort label-3113
SELECT + 98 AS col2, COUNT ( * ) FROM tab0
----
98
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 88 NOT IN ( 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT 6 * - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( col1 + - - col2 + - col2 ) IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-3115
SELECT 6 * - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( col1 + - - col2 + - col2 ) IS NULL
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT CAST( NULL AS SIGNED ) * - + col1 col2 FROM tab0 cor0 WHERE NOT + 27 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3116
SELECT CAST ( NULL AS INTEGER ) * - + col1 col2 FROM tab0 cor0 WHERE NOT + 27 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 * + 49 col1 FROM tab2 AS cor0
----
-3969
-3969
-3969

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + col0 - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 42 + + + col0 AS col1 FROM tab2 AS cor0
----
106
117
88

query I rowsort
SELECT DISTINCT col0 + 22 FROM tab2 cor0
----
68
86
97

query I rowsort
SELECT + - 91 AS col0 FROM tab1 AS cor0
----
-91
-91
-91

query II rowsort
SELECT + 72 * - + col0 AS col1, col2 AS col2 FROM tab0 cor0
----
-1080
47
-6264
10
-6984
99

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 79 * - - col0 / - 75 NOT IN ( + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3125
SELECT - 65 DIV CAST( - + col2 AS SIGNED ) * col0 FROM tab1
----
0
0
85

skipif mysql # not compatible
query I rowsort label-3125
SELECT - 65 / CAST ( - + col2 AS INTEGER ) * col0 FROM tab1
----
0
0
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - col1 AND + 6 * + - col0
----

query I rowsort
SELECT ALL ( + col0 ) * 37 * + col0 AS col0 FROM tab0
----
280053
348133
8325

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT DISTINCT 51 * col1 DIV - 23 AS col2 FROM tab2
----
-113
-148
-170

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT 51 * col1 / - 23 AS col2 FROM tab2
----
-113
-148
-170

query II rowsort
SELECT col1 * - col2 + - + col2 AS col0, - 49 * + + col0 FROM tab2
----
-1196
-2254
-3120
-3136
-3944
-3675

query I rowsort
SELECT DISTINCT 12 + + 20 AS col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT + col2 + - + ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - + MIN( + 18 ) + + - COUNT( * ) * 35 * - ( 33 ) AS col1 FROM tab2 AS cor0
----
3447

skipif mysql # not compatible
query I rowsort label-3132
SELECT - + MIN ( + 18 ) + + - COUNT ( * ) * 35 * - ( 33 ) AS col1 FROM tab2 AS cor0
----
3447

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE 3 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT COUNT( DISTINCT + - col2 ) * + 54 AS col1 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) * + 54 AS col1 FROM tab1
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT + COUNT( + - col1 ) AS col1, 97 FROM tab1
----
3
97

skipif mysql # not compatible
query II rowsort label-3137
SELECT + COUNT ( + - col1 ) AS col1, 97 FROM tab1
----
3
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3138
SELECT DISTINCT - col0 AS col0 FROM tab1 cor0 WHERE NULL < col0 + + 87 * - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + - ( - col2 ) * col1 * - ( + 15 )
----

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - col0 AS col0 FROM tab1 cor0 WHERE NULL < col0 + + 87 * - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + - ( - col2 ) * col1 * - ( + 15 )
----

query II rowsort
SELECT - col1 AS col0, + col2 + + 48 AS col2 FROM tab0 cor0
----
-1
147
-21
58
-81
95

query I rowsort
SELECT + ( - + 13 ) FROM tab2 AS cor0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - col2 + + 36 + 67 + col0
----

query I rowsort
SELECT AVG ( DISTINCT + col1 ) AS col0 FROM tab1 cor0 WHERE NOT 76 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( NOT + col1 NOT IN ( + - 50 * - + 16 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( NOT + col1 NOT IN ( + - 50 * - + 16 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT DISTINCT - 20 DIV - 25 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - 20 / - 25 FROM tab0
----
0

query I rowsort
SELECT + 95 * + 28 FROM tab1
----
2660
2660
2660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col2 FROM tab0
----
-52
-52
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3148
SELECT - CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT - CAST ( NULL AS REAL ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 41 FROM tab1 cor0 WHERE NOT + col1 < col1 + + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT DISTINCT 2 * - ( - col2 ) * CAST( NULL AS SIGNED ) - col2 + ( + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT 2 * - ( - col2 ) * CAST ( NULL AS INTEGER ) - col2 + ( + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 90 col2 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3153
SELECT ALL * FROM tab2 AS cor0 WHERE 75 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3153
SELECT ALL * FROM tab2 AS cor0 WHERE 75 >= - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - col2 AS col1, - col0 FROM tab2
----
-23
-46
-40
-64
-58
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 * + + col0 * - ( - col0 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT + - 21 AS col0 FROM tab1 AS cor0 WHERE - ( - - 16 ) IS NULL
----

query II rowsort
SELECT ALL - col2 AS col1, 72 FROM tab2 AS cor0
----
-23
72
-40
72
-58
72

query I rowsort
SELECT - 39 + col1 AS col0 FROM tab0 AS cor0
----
-18
-38
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + - 62 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE - 26 / col1 * - ( - 98 ) + - - col0 >= col0 + + col1 / + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - 47 + + ( - COUNT( * ) ) col0 FROM tab1
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3161
SELECT - 47 + + ( - COUNT ( * ) ) col0 FROM tab1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3162
SELECT + 14 DIV COUNT( DISTINCT 28 ) col0 FROM tab2
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3162
SELECT + 14 / COUNT ( DISTINCT 28 ) col0 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL - COUNT( * ) * + SUM( + 78 ) AS col2 FROM tab1
----
-702

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - COUNT ( * ) * + SUM ( + 78 ) AS col2 FROM tab1
----
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 71 AS col2, - ( - 14 ) * + + col1 col1 FROM tab2 WHERE - 38 IS NOT NULL
----
71
1078
71
714
71
938

onlyif mysql # aggregate syntax: 
query II rowsort label-3165
SELECT ALL + COUNT( * ) - + 9 AS col1, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-3165
SELECT ALL + COUNT ( * ) - + 9 AS col1, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT 89 + - CAST( 8 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif mysql # not compatible
query I rowsort label-3166
SELECT 89 + - CAST ( 8 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query II rowsort
SELECT ALL col0 AS col2, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - col2 * - 23 / + 75 ) < ( NULL ) )
----

query I rowsort
SELECT ALL + 40 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ( - col1 ) + - + col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - 58 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - col1 * - + col1 AS col2 FROM tab0 cor0
----
1
441
6561

query II rowsort
SELECT ALL + col1, col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 18 * - - 46 + - col0 FROM tab0 AS cor0
----
731
741
813

query II rowsort
SELECT DISTINCT + 9, + col0 FROM tab1
----
9
51
9
85
9
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT ALL + col0 col0 FROM tab1 WHERE + col2 + - col2 / - col1 - - + CAST( NULL AS SIGNED ) <= - + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3176
SELECT ALL + col0 col0 FROM tab1 WHERE + col2 + - col2 / - col1 - - + CAST ( NULL AS INTEGER ) <= - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col0 * + 7 AS col2 FROM tab0
----
15
-105
87
-609
97
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL 52 * - COUNT( + col1 ) col0 FROM tab2
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3178
SELECT ALL 52 * - COUNT ( + col1 ) col0 FROM tab2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL - ( - + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - ( - + COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT 66 - MIN( ALL + 88 ) FROM tab0 WHERE NULL >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT 66 - MIN ( ALL + 88 ) FROM tab0 WHERE NULL >= col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col1 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT - + 73 + + - 28 * col0 AS col1 FROM tab1 AS cor0
----
-1501
-2453
-2621

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE - 47 IS NULL
----

query I rowsort
SELECT + col2 + + col2 - col0 * + + col1 * - col0 + + col2 * - - col2 FROM tab1 cor0
----
393967
39724
45822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3186
SELECT + 43 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT + 43 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * - 31 + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 21 + - col2 - - col0 / col2 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT ALL col0 DIV col2 DIV - col0 + - col1 + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL col0 / col2 / - col0 + - col1 + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - + MAX( ALL - col0 ) * COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3190
SELECT - + MAX ( ALL - col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-3191
SELECT ALL MAX( col1 ) + COUNT( * ) AS col0, COUNT( ALL - - 10 ) col2 FROM tab1 AS cor0
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3191
SELECT ALL MAX ( col1 ) + COUNT ( * ) AS col0, COUNT ( ALL - - 10 ) col2 FROM tab1 AS cor0
----
50
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL CAST( NULL AS SIGNED ) / - - 4 * - SUM( ALL + - 73 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL CAST ( NULL AS INTEGER ) / - - 4 * - SUM ( ALL + - 73 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT MAX( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-3193
SELECT MAX ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT + 18 * 74 * + 73 * + - 62 * + COUNT( * ) FROM tab0 AS cor0
----
-18085896

skipif mysql # not compatible
query I rowsort label-3194
SELECT + 18 * 74 * + 73 * + - 62 * + COUNT ( * ) FROM tab0 AS cor0
----
-18085896

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - ( + COUNT( * ) ) - + 21 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-3195
SELECT - ( + COUNT ( * ) ) - + 21 FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL - COUNT( * ) col2 FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3196
SELECT ALL - COUNT ( * ) col2 FROM tab0, tab1 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab2, tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL + 27 * - + 4 * + COUNT( * ) FROM tab1 WHERE - col2 <> + col1
----
-324

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + 27 * - + 4 * + COUNT ( * ) FROM tab1 WHERE - col2 <> + col1
----
-324

onlyif mysql # aggregate syntax: 
query II rowsort label-3199
SELECT ALL + COUNT( * ) AS col0, + 75 AS col2 FROM tab0 WHERE NULL IS NULL
----
3
75

skipif mysql # not compatible
query II rowsort label-3199
SELECT ALL + COUNT ( * ) AS col0, + 75 AS col2 FROM tab0 WHERE NULL IS NULL
----
3
75

query I rowsort
SELECT - col1 / - col2 FROM tab2 WHERE col0 < col1 / - col0
----

query I rowsort
SELECT ALL - + 46 + - - col1 * + col0 FROM tab0 AS cor0
----
1169
1781
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL COUNT( * ) - - 25 col1 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3202
SELECT ALL COUNT ( * ) - - 25 col1 FROM tab1 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT + 22, + 76 - - 65 + - COUNT( * ) AS col2 FROM tab0 cor0
----
22
138

skipif mysql # not compatible
query II rowsort label-3203
SELECT + 22, + 76 - - 65 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
22
138

query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 * - ( - - col1 ) AS col0 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT col2 + - - col0 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 / - - 69 * - 11 BETWEEN - + col2 AND - + col1
----
1081
2600
4408

query I rowsort
SELECT - + col0 * - + 10 * - col1 FROM tab2 AS cor0
----
-23460
-49280
-50250

query I rowsort
SELECT ALL 80 * - 90 FROM tab2 AS cor0
----
-7200
-7200
-7200

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3210
SELECT ALL - + COUNT( * ) * 71 AS col2, + MIN( + col2 ) DIV COUNT( * ) FROM tab1 AS cor0
----
-213
19

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL - + COUNT ( * ) * 71 AS col2, + MIN ( + col2 ) / COUNT ( * ) FROM tab1 AS cor0
----
-213
19

query I rowsort
SELECT - + 7 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT ( + 80 ) FROM tab0 cor0
----
80

query II rowsort
SELECT ALL col0 AS col1, - col0 AS col0 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT - 64 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-64
-64
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3215
SELECT + COUNT( * ), CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3215
SELECT + COUNT ( * ), CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT CAST( NULL AS SIGNED ) * - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT CAST ( NULL AS INTEGER ) * - + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + - col1 * - - col0 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT col2 + - + col1 + + - col0 FROM tab1
----
-31
-70
31

query I rowsort
SELECT + 30 + + 20 FROM tab0
----
50
50
50

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL <> ( - - col2 )
----

query II rowsort
SELECT col0, col2 AS col0 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ALL + + 5 * col1 + col0 FROM tab1 AS cor0
----
110
121
326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT CAST( - + col2 AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3223
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 * - + col2 AS col1 FROM tab0 cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT COUNT( * ) + - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3226
SELECT COUNT ( * ) + - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT ALL col0 DIV col1 + col2 + + + 67 FROM tab0
----
114
263
81

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL col0 / col1 + col2 + + + 67 FROM tab0
----
114
263
81

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 70 <> NULL
----

query I rowsort
SELECT col2 + + col1 * + - 10 AS col1 FROM tab0 AS cor0
----
-200
-763
89

query I rowsort
SELECT DISTINCT - col2 + - - 40 AS col1 FROM tab2 cor0
----
-18
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL - ( + + MIN( + - col2 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - ( + + MIN ( + - col2 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 90 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 54 col1 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - + 62 AS col2 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + 35 * - COUNT( * ) FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-3235
SELECT + 35 * - COUNT ( * ) FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - 42 * + COUNT( * ) * SUM( DISTINCT + - col1 ) FROM tab0
----
12978

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - 42 * + COUNT ( * ) * SUM ( DISTINCT + - col1 ) FROM tab0
----
12978

query I rowsort
SELECT 92 * + col1 FROM tab2
----
4692
6164
7084

query I rowsort
SELECT DISTINCT + col2 * - 13 FROM tab0
----
-1287
-130
-611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 56 FROM tab1 cor0
----
-56
-56
-56

query I rowsort
SELECT ALL 96 + 85 * - col1 * + - 87 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, 44 col2 FROM tab0
----
10
44
47
44
99
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT ALL - col2 DIV - col0 AS col2 FROM tab2 WHERE NOT - + 35 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - col2 / - col0 AS col2 FROM tab2 WHERE NOT - + 35 IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col0 FROM tab2 cor0
----
94

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT - 81 * 70 * col1 * + 43 * + + 35 + - 92 + + col1 + 16 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-119466962
14
-401067479
47
-42666821
5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT DISTINCT col0 * - col1 + + CAST( NULL AS SIGNED ) + col1 + + + 69 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT col0 * - col1 + + CAST ( NULL AS INTEGER ) + col1 + + + 69 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 BETWEEN NULL AND - ( - + col2 )
----

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 BETWEEN NULL AND - ( - + col2 )
----

query I rowsort
SELECT DISTINCT - ( - 50 ) FROM tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1 + + col1 + + - col1
----

query I rowsort
SELECT ALL + + ( - 88 ) AS col1 FROM tab0 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + 18 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3255
SELECT - 49 DIV - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
5

skipif mysql # not compatible
query I rowsort label-3255
SELECT - 49 / - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT - ( - COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 col1 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT + - col0 - + - ( - + col1 ) + - + col2 DIV 58 AS col0 FROM tab2 AS cor0
----
-141
-143
-97

skipif mysql # not compatible
query I rowsort label-3258
SELECT + - col0 - + - ( - + col1 ) + - + col2 / 58 AS col0 FROM tab2 AS cor0
----
-141
-143
-97

query I rowsort
SELECT + 48 - + - col2 FROM tab1 AS cor0
----
107
116
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT COUNT( * ) - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + col0 * + + col1 + - col0 AS col1 FROM tab0
----
1
1281
1761

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN - + col1 + - 72 AND NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT + col2 NOT BETWEEN - + 92 AND NULL
----

query II rowsort
SELECT DISTINCT col1, + col1 AS col0 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3266
SELECT DISTINCT SUM( + col1 ), - ( 19 ) AS col2 FROM tab2
----
195
-19

skipif mysql # not compatible
query II rowsort label-3266
SELECT DISTINCT SUM ( + col1 ), - ( 19 ) AS col2 FROM tab2
----
195
-19

query II rowsort
SELECT ALL + col2 AS col2, - ( - - 35 ) * + 73 FROM tab0
----
10
-2555
47
-2555
99
-2555

query I rowsort
SELECT - 36 * col0 * col0 FROM tab0
----
-272484
-338724
-8100

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - + SUM( - col2 ) col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3269
SELECT - + SUM ( - col2 ) col0 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3270
SELECT - CAST( NULL AS DECIMAL ) AS col2, col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3270
SELECT - CAST ( NULL AS REAL ) AS col2, col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 IN ( + 33 * + col2 * - + col2, + col2 * + ( col1 ) + - 41 - - col2 / - 92 * + col1, - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + COUNT( * ) * - + 4 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-3272
SELECT + COUNT ( * ) * - + 4 FROM tab2
----
-12

query I rowsort
SELECT + 59 * col1 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
17410
188611
79310

query II rowsort
SELECT - ( - 57 ) * + col0 AS col0, 57 FROM tab2 AS cor0
----
2622
57
3648
57
4275
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT ALL + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * + 71 * + 57 - col1, - col0 + - 57, col2, col1, - + col0 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * + 71 * + 57 - col1, - col0 + - 57, col2, col1, - + col0 * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 85, 94 AS col0 FROM tab2
----
-85
94
-85
94
-85
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * col1 + + 22 AS col2 FROM tab2
----
2368
4950
5047

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL + - COUNT( + - 45 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + - COUNT ( + - 45 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + col2 - - + 78 AS col2, col1 + + col1 FROM tab1
----
137
10
146
94
174
28

query I rowsort
SELECT 28 + + + 46 - - 88 * - col0 * + - col1 FROM tab0
----
106994
160850
8610

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ( - - 44 ) + COUNT( * ) - - 59 AS col2 FROM tab2
----
106

skipif mysql # not compatible
query I rowsort label-3283
SELECT ( - - 44 ) + COUNT ( * ) - - 59 AS col2 FROM tab2
----
106

query III rowsort
SELECT * FROM tab0 WHERE + 85 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col0 - - 25 + + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3286
SELECT DISTINCT - + col1 / - + 40 - - CAST( NULL AS SIGNED ) / + 96 AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3286
SELECT DISTINCT - + col1 / - + 40 - - CAST ( NULL AS INTEGER ) / + 96 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT DISTINCT col2 * + col0 * col1 - + col1 DIV col1 FROM tab1 cor0
----
25074
290835
68543

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT col2 * + col0 * col1 - + col1 / col1 FROM tab1 cor0
----
25074
290835
68543

query I rowsort
SELECT DISTINCT col2 + - col0 * + - col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT + 57 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * - col2 < ( - 52 / 90 )
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0 * + col1
----

query I rowsort
SELECT ALL - 84 AS col2 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT - col2 * ( - + col2 ) AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL 63 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL 63 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
189

query II rowsort
SELECT col2, + 30 * 53 * - col2 AS col0 FROM tab1
----
59
-93810
68
-108120
96
-152640

query II rowsort
SELECT 95 AS col1, col1 FROM tab0
----
95
1
95
21
95
81

query I rowsort
SELECT - 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3298
SELECT ALL - 92 DIV - COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL - 92 / - COUNT ( * ) FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT 63 * - 2 + - - COUNT( * ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-3299
SELECT 63 * - 2 + - - COUNT ( * ) FROM tab1
----
-123

query I rowsort
SELECT ALL + col0 + - col2 + - 75 FROM tab0 AS cor0
----
-107
-77
2

query I rowsort
SELECT DISTINCT - 74 * 91 * - 84 AS col0 FROM tab2 AS cor0
----
565656

query I rowsort
SELECT + 18 * col2 + - + col1 AS col2 FROM tab2 AS cor0
----
363
643
977

query I rowsort
SELECT - col0 * + - 4 * + - col2 FROM tab1 cor0
----
-19584
-20060
-24752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT + col0 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-3304
SELECT + col0 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT ( - col1 ) AS col1, + 39 AS col1 FROM tab2
----
-51
39
-67
39
-77
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL COUNT( * ) * + - COUNT( * ) + + - 53 AS col1 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + + - 53 AS col1 FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT - COUNT( ALL 47 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT - COUNT ( ALL 47 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 + + ( - + col0 ) AS col2 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3309
SELECT DISTINCT col1 DIV + - CAST( - + 31 AS SIGNED ) + - ( - ( 16 ) ) * - - col1 AS col1 FROM tab2
----
1074
1234
817

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT col1 / + - CAST ( - + 31 AS INTEGER ) + - ( - ( 16 ) ) * - - col1 AS col1 FROM tab2
----
1074
1234
817

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT + 87 + col2 DIV + 88 AS col1 FROM tab0
----
87
88

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT + 87 + col2 / + 88 AS col1 FROM tab0
----
87
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3311
SELECT DISTINCT + 85 * - + 35 - + + CAST( col1 AS SIGNED ) + - + col2 DIV - + col2 col1 FROM tab0 AS cor0
----
-2975
-2995
-3055

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3311
SELECT DISTINCT + 85 * - + 35 - + + CAST ( col1 AS INTEGER ) + - + col2 / - + col2 col1 FROM tab0 AS cor0
----
-2975
-2995
-3055

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * 95 + - col0 * - - col0 col2 FROM tab0 AS cor0
----
-11844
-13684
-4500

query I rowsort
SELECT ALL - 56 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query III rowsort
SELECT * FROM tab2 WHERE ( - 64 * + 3 + 57 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - COUNT( * ) + 94 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - COUNT ( * ) + 94 FROM tab2
----
91

query I rowsort
SELECT DISTINCT + - 46 - + 53 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - + 77 col2 FROM tab0 AS cor0
----
-62
10
20

query II rowsort
SELECT 55 AS col2, + col1 * + 38 AS col2 FROM tab2 AS cor0
----
55
1938
55
2546
55
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL 57 + - ( - - MIN( - - col2 ) ) FROM tab0 AS cor0 WHERE NOT + 46 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL 57 + - ( - - MIN ( - - col2 ) ) FROM tab0 AS cor0 WHERE NOT + 46 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + col2 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col0 FROM tab0 AS cor0
----
-48
-48
-48

query II rowsort
SELECT 67 AS col0, + col1 FROM tab0 cor0
----
67
1
67
21
67
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT - SUM( col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3323
SELECT - SUM ( col2 ) FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT ALL + 61 * - 81 * + 59 AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-291519
3

skipif mysql # not compatible
query II rowsort label-3324
SELECT ALL + 61 * - 81 * + 59 AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-291519
3

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3326
SELECT - col1 DIV 51, col1 + + - 17 AS col2 FROM tab2
----
-1
34
-1
50
-1
60

skipif mysql # not compatible
query II rowsort label-3326
SELECT - col1 / 51, col1 + + - 17 AS col2 FROM tab2
----
-1
34
-1
50
-1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 53 * + COUNT( * ) * - - COUNT( * ) * COUNT( col1 ) AS col1 FROM tab2
----
1431

skipif mysql # not compatible
query I rowsort label-3327
SELECT 53 * + COUNT ( * ) * - - COUNT ( * ) * COUNT ( col1 ) AS col1 FROM tab2
----
1431

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3328
SELECT ALL + - MAX( + + ( - - col2 ) ) * - CAST( NULL AS DECIMAL ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + - MAX ( + + ( - - col2 ) ) * - CAST ( NULL AS REAL ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * + col2 - + - col2 AS col2 FROM tab2 cor0
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT + COUNT( * ) * - + 50 * + - 56 AS col0 FROM tab2 AS cor0
----
8400

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT + COUNT ( * ) * - + 50 * + - 56 AS col0 FROM tab2 AS cor0
----
8400

query I rowsort
SELECT ALL 41 * 67 + - + 46 FROM tab1 AS cor0
----
2701
2701
2701

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 + + - 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + - 57 AS col2 FROM tab0
----
-1197
-4617
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + MAX( ALL col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3334
SELECT + MAX ( ALL col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT DISTINCT - 75 * col1 FROM tab2
----
-3825
-5025
-5775

query I rowsort
SELECT ALL - 65 + col0 AS col1 FROM tab2 AS cor0
----
-1
-19
10

query I rowsort
SELECT ALL + col2 * col2 + 64 AS col2 FROM tab1 AS cor0
----
3545
4688
9280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT + 94 * - - col1 / + CAST( NULL AS SIGNED ) + - + 55 + - col1 + + ( - 36 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + 94 * - - col1 / + CAST ( NULL AS INTEGER ) + - + 55 + - col1 + + ( - 36 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 + + 64 FROM tab1 AS cor0
----
17
50
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT DISTINCT - - col1 DIV - - 6 col1 FROM tab0 AS cor0
----
0
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3340
SELECT DISTINCT - - col1 / - - 6 col1 FROM tab0 AS cor0
----
0
13
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 28 BETWEEN + col2 AND col1 + col2
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT + MAX( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - col2 * - + 25 + + + col2 AS col1 FROM tab1
----
1534
1768
2496

query II rowsort
SELECT ALL col2, + col2 * + col1 - + - col1 AS col2 FROM tab0
----
10
231
47
3888
99
100

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT DISTINCT + 8 AS col1, - MAX( - col2 ) AS col2 FROM tab0
----
8
10

skipif mysql # not compatible
query II rowsort label-3345
SELECT DISTINCT + 8 AS col1, - MAX ( - col2 ) AS col2 FROM tab0
----
8
10

query I rowsort
SELECT ALL - ( - col1 ) + + - col2 + - 48 + + col0 AS col1 FROM tab2
----
26
36
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT SUM( ALL 79 ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-3347
SELECT SUM ( ALL 79 ) FROM tab0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT COUNT( ALL 41 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3348
SELECT COUNT ( ALL 41 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT ALL - col2 * + + ( - 75 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - col2 * + + ( - 75 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, + 82 + - col0 * + - 69 AS col2 FROM tab1
----
14
3601
47
6361
5
5947

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL + MAX( + col1 ) - + 30 + COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + MAX ( + col1 ) - + 30 + COUNT ( * ) FROM tab0
----
54

query I rowsort
SELECT ALL + + col0 - + + 65 FROM tab1 AS cor0
----
-14
20
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 - 20 col1 FROM tab0 cor0
----
-57
-57
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT - CAST( + col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) + + - col2 + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - CAST ( + col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + - col2 + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

query I rowsort
SELECT ALL + - 78 AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ( - 12 ) AS col2 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - 17 AS col1 FROM tab2 cor0
----
-17
-17
-17

query I rowsort
SELECT ALL ( + 77 ) AS col2 FROM tab0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - MIN( - - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3361
SELECT - MIN ( - - col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3362
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 >= + CAST( - + col0 AS SIGNED ) * + 99
----

skipif mysql # not compatible
query III rowsort label-3362
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 >= + CAST ( - + col0 AS INTEGER ) * + 99
----

query I rowsort
SELECT 66 * - + 60 FROM tab2
----
-3960
-3960
-3960

query II rowsort
SELECT ALL col1 AS col1, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + + ( + col0 ) + col2 AS col2 FROM tab2 AS cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT DISTINCT - - col2 * + 44 + + col1 AS col0 FROM tab0 cor0
----
2149
4357
461

query I rowsort
SELECT col0 * + col1 + - ( - 55 ) FROM tab0 AS cor0
----
1270
152
1882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 92 * - col2 + col1 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT + COUNT( * ) + + 92 col0 FROM tab2
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3370
SELECT DISTINCT + COUNT ( * ) + + 92 col0 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + COUNT( * ) - 3 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3371
SELECT + COUNT ( * ) - 3 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
6

query I rowsort
SELECT DISTINCT - col0 + - 98 * col0 * - + col2 + + col2 AS col2 FROM tab0 AS cor0
----
69122
85183
941096

query I rowsort
SELECT DISTINCT + ( + 14 ) AS col1 FROM tab2 AS cor0
----
14

query I rowsort
SELECT ALL + 88 + 40 AS col0 FROM tab0 AS cor0
----
128
128
128

query I rowsort
SELECT ( + - 76 ) AS col2 FROM tab2 AS cor0 WHERE col2 IN ( ( 85 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT - col2 DIV + ( - col1 ) + col2 - - col2 col2 FROM tab1 cor0
----
129
137
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3376
SELECT - col2 / + ( - col1 ) + col2 - - col2 col2 FROM tab1 cor0
----
129
137
198

query I rowsort
SELECT - - col1 * + + 78 AS col0 FROM tab2 cor0
----
3978
5226
6006

query I rowsort
SELECT ALL + 80 - - col2 + + col2 * 43 FROM tab1 AS cor0
----
2676
3072
4304

query I rowsort
SELECT + - col2 * ( - - col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT DISTINCT col1 DIV + ( ( col0 ) ) + + - col1 col2 FROM tab2
----
-50
-67
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3380
SELECT DISTINCT col1 / + ( ( col0 ) ) + + - col1 col2 FROM tab2
----
-50
-67
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3381
SELECT DISTINCT + 6 * AVG ( ALL + - CAST( NULL AS SIGNED ) ) / COUNT( * ) - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + 6 * AVG ( ALL + - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) - - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - COUNT( * ) + + - 2 + - 71 FROM tab1 cor0 WHERE col1 + - col2 + col1 IS NULL
----
-73

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - COUNT ( * ) + + - 2 + - 71 FROM tab1 cor0 WHERE col1 + - col2 + col1 IS NULL
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 13 > - 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 53 AS col1 FROM tab2 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT - COUNT( * ) * + 40 + + 6 FROM tab0 AS cor0 WHERE 0 IS NOT NULL
----
-114

skipif mysql # not compatible
query I rowsort label-3385
SELECT - COUNT ( * ) * + 40 + + 6 FROM tab0 AS cor0 WHERE 0 IS NOT NULL
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-3386
SELECT + 8 * + - col2 + + col0 DIV - 12 FROM tab2 AS cor0
----
-187
-325
-470

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 8 * + - col2 + + col0 / - 12 FROM tab2 AS cor0
----
-187
-325
-470

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN - - col2 AND + 26 * 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT DISTINCT col1 DIV 68 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT col1 / 68 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL + COUNT( + 86 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + COUNT ( + 86 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + + col2 * + + 46 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 75 + - col0 * - + 91 FROM tab1 AS cor0 WHERE NOT - 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - + MAX( - 34 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3392
SELECT - + MAX ( - 34 ) FROM tab2 AS cor0
----
34

query I rowsort
SELECT ALL - ( 0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT col2 DIV - + 19 FROM tab1 AS cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-3394
SELECT col2 / - + 19 FROM tab1 AS cor0
----
-3
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL MIN( - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL MIN ( - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - + 46 AS col1 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT 91 DIV col1 AS col2 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-3397
SELECT 91 / col1 AS col2 FROM tab1 AS cor0
----
1
18
6

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT ALL + + COUNT( * ), 52 AS col2 FROM tab2 WHERE NULL IS NULL
----
3
52

skipif mysql # not compatible
query II rowsort label-3399
SELECT ALL + + COUNT ( * ), 52 AS col2 FROM tab2 WHERE NULL IS NULL
----
3
52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + 84 * - col1 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT + MIN( DISTINCT - + 98 ) AS col0 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + MIN ( DISTINCT - + 98 ) AS col0 FROM tab0
----
-98

query I rowsort
SELECT DISTINCT - col2 + + col1 * - + ( ( col1 ) ) + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2573
-4480
-5892

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL - COUNT( - + ( + - col1 ) ) + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - COUNT ( - + ( + - col1 ) ) + COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - ( - 6 ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT DISTINCT - col0, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL - + 65 + - col0 * + + col2 * - + col0 FROM tab2 cor0
----
163775
326185
48603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3408
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= col1 * - 86
----

query I rowsort
SELECT DISTINCT - 8 - + col2 * + 49 FROM tab2 AS cor0
----
-1135
-1968
-2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77 * + 90, 19 col2 FROM tab1
----
6930
19
6930
19
6930
19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col2 - col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ( 62 ) * 95 * + - COUNT( * ) + + 58 * + SUM( col2 ) + + COUNT( * ) FROM tab1
----
-4733

skipif mysql # not compatible
query I rowsort label-3413
SELECT ( 62 ) * 95 * + - COUNT ( * ) + + 58 * + SUM ( col2 ) + + COUNT ( * ) FROM tab1
----
-4733

query I rowsort
SELECT DISTINCT col2 * 34 FROM tab2
----
1360
1972
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col1 col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT + 40 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 40 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT - col0 DIV + - col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3417
SELECT - col0 / + - col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 71 * + + 48 FROM tab2
----
3408
3408
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL COUNT( * ) + MAX( + + col1 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL COUNT ( * ) + MAX ( + + col1 ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT 89 + COUNT( * ) col2 FROM tab1
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3420
SELECT DISTINCT 89 + COUNT ( * ) col2 FROM tab1
----
92

query III rowsort
SELECT * FROM tab2 WHERE ( - 6 ) IS NULL
----

query I rowsort
SELECT col0 * - + 25 * + - 96 FROM tab0
----
208800
232800
36000

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3423
SELECT ALL * FROM tab0 WHERE NOT + + CAST( NULL AS DECIMAL ) * - - col2 - - col2 + col0 + + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3423
SELECT ALL * FROM tab0 WHERE NOT + + CAST ( NULL AS REAL ) * - - col2 - - col2 + col0 + + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT + SUM( col1 ) * + + 45 FROM tab0
----
4635

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT + SUM ( col1 ) * + + 45 FROM tab0
----
4635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT COUNT( * ) * + SUM( + col1 ) AS col1 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-3427
SELECT COUNT ( * ) * + SUM ( + col1 ) AS col1 FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT + MAX( - ( + 1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT + MAX ( - ( + 1 ) ) FROM tab0
----
-1

query I rowsort
SELECT + 22 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + 64 * + + col0 * - + 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT COUNT( DISTINCT - + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT COUNT ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 51 * + col0 + col2 < col0
----

query II rowsort
SELECT + col2, + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 73 * + - 9 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL MIN( - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL MIN ( - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + - + 92 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + - + 92 FROM tab1
----
-89

query I rowsort
SELECT ALL - 42 FROM tab0 WHERE + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
9

query II rowsort
SELECT - col0 AS col0, - col2 + + + col2 AS col2 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query I rowsort
SELECT - 79 * - 66 FROM tab2 AS cor0
----
5214
5214
5214

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 68 >= + 32 + + + ( col0 ) / + col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT - col1 + 12 / + - col2 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT - col1 + 12 / + - col2 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----

query I rowsort
SELECT ( + col2 ) + + col2 AS col2 FROM tab2
----
116
46
80

query II rowsort
SELECT DISTINCT 24 + - col1, col2 FROM tab2 cor0
----
-27
23
-43
58
-53
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3444
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) = col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3444
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) = col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - + col2 AS col2 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( 27 / - col0 * col0 + - 60 < NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 81 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + + + col1 < + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3449
SELECT - COUNT( DISTINCT + CAST( + ( + - CAST( - col2 AS SIGNED ) ) AS DECIMAL ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3449
SELECT - COUNT ( DISTINCT + CAST ( + ( + - CAST ( - col2 AS INTEGER ) ) AS REAL ) ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT ALL + CAST( - + 38 AS SIGNED ) FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + CAST ( - + 38 AS INTEGER ) FROM tab1 AS cor0
----
-38
-38
-38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 55 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col0 * col0 BETWEEN NULL AND - 50
----

query I rowsort
SELECT + ( 43 ) + 4 AS col2 FROM tab2
----
47
47
47

query III rowsort
SELECT * FROM tab1 WHERE ( col2 + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 7 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - AVG ( - 57 ) + 35 AS col0 FROM tab1 WHERE ( - 88 * col0 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 84 IN ( col1 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + 11 FROM tab1
----
-40
-74
-80

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 69 ) NOT IN ( + col2 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT + col2 DIV col2 + - col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3461
SELECT + col2 / col2 + - col1 FROM tab1
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT + MAX( ALL - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3462
SELECT + MAX ( ALL - col2 ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT - MIN( 27 ) col1 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3463
SELECT DISTINCT - MIN ( 27 ) col1 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL - SUM( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - SUM ( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT CAST( NULL AS SIGNED ) + - col0 * + 23 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT CAST ( NULL AS INTEGER ) + - col0 * + 23 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL COUNT( * ) FROM tab1 WHERE + 73 * - col0 + CAST( col1 - 76 AS SIGNED ) NOT BETWEEN - col1 + - col0 AND - 9 + col2
----
3

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL COUNT ( * ) FROM tab1 WHERE + 73 * - col0 + CAST ( col1 - 76 AS INTEGER ) NOT BETWEEN - col1 + - col0 AND - 9 + col2
----
3

query I rowsort
SELECT + 8 * 83 AS col0 FROM tab1
----
664
664
664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3469
SELECT DISTINCT - 76 + MIN( DISTINCT + CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2
----
-134

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT - 76 + MIN ( DISTINCT + CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2
----
-134

query I rowsort
SELECT col2 * 85 FROM tab1
----
5015
5780
8160

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 13 + col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT MAX( 24 ) + - COUNT( * ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT MAX ( 24 ) + - COUNT ( * ) AS col0 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT MAX( 55 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3473
SELECT MAX ( 55 ) FROM tab1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT + 91 + ( - 45 + + SUM( col1 ) ) * COUNT( * ) AS col1 FROM tab2
----
541

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + 91 + ( - 45 + + SUM ( col1 ) ) * COUNT ( * ) AS col1 FROM tab2
----
541

query I rowsort
SELECT - col0 + + col1 FROM tab2 AS cor0 WHERE ( - col1 + col2 ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT + MAX( col0 ) * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT + MAX ( col0 ) * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * col1 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT ALL CAST( NULL AS SIGNED ) * + col2 FROM tab2 WHERE NOT ( 37 ) BETWEEN - 95 AND - 73 * + 16
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 FROM tab2 WHERE NOT ( 37 ) BETWEEN - 95 AND - 73 * + 16
----
NULL
NULL
NULL

query I rowsort
SELECT 89 + - 48 FROM tab1 WHERE 74 IS NULL
----

query I rowsort
SELECT ALL + 27 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - col1 * col2 + 50 FROM tab2
----
-1123
-3030
-3836

query I rowsort
SELECT + 23 + col0 FROM tab0
----
110
120
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT ALL - - CAST( col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - - CAST ( col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - col0 + 8 FROM tab0 AS cor0
----
-7
-79
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT - + COUNT( * ) + - 76 AS col1 FROM tab2 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - + COUNT ( * ) + - 76 AS col1 FROM tab2 cor0
----
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN ( - col0 * 37 - col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 * ( + col1 ) IN ( col1 )
----

query I rowsort
SELECT ( + col1 ) FROM tab0 WHERE NOT ( col0 + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 25 FROM tab2 WHERE 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL MIN( DISTINCT + col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3491
SELECT ALL MIN ( DISTINCT + col2 ) col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL COUNT( + + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL COUNT ( + + col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - col1 * - - col1 * col0 AS col0 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3494
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - 51 )
----

skipif mysql # not compatible
query III rowsort label-3494
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - 51 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 + - 80 col2 FROM tab2 WHERE NOT 13 = + 81
----
-167
-167
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT - ( - - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 + col0 * + 61 ) IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT COUNT( * ) DIV + 77 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT COUNT ( * ) / + 77 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT + - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3499
SELECT + - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 18 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
59

query I rowsort
SELECT 28 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 91 ) + + col2 col0 FROM tab0 AS cor0
----
-44
-81
8

query I rowsort
SELECT + - 68 * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
209440
264248
79764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col2 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL 65 * + ( + col1 ) * - 53 FROM tab1 AS cor0
----
-161915
-17225
-48230

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col2 AND ( col1 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3509
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - 61 AS SIGNED ) + col2 * 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3509
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - 61 AS INTEGER ) + col2 * 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 58 col2, - col1 * col2 col2 FROM tab1 AS cor0
----
58
-1344
58
-295
58
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT DISTINCT + SUM( - 19 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + SUM ( - 19 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 58 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT ALL - - COUNT( * ) col0, 41 FROM tab2 AS cor0
----
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3513
SELECT ALL - - COUNT ( * ) col0, 41 FROM tab2 AS cor0
----
3
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3514
SELECT ALL + - 82 DIV - col0 - + col2 + 81 * 78 col2 FROM tab0 AS cor0
----
6219
6276
6308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3514
SELECT ALL + - 82 / - col0 - + col2 + 81 * 78 col2 FROM tab0 AS cor0
----
6219
6276
6308

query I rowsort
SELECT 52 FROM tab0 AS cor0 WHERE NULL IS NULL
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT - - CAST( + - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3516
SELECT - - CAST ( + - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * col2 col0 FROM tab1
----
2360
2720
3840

query I rowsort
SELECT ALL col2 + + + col1 + col2 FROM tab1
----
123
183
206

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + 89 * - + col2 AS col2 FROM tab0
----
-4136
-8712
-880

query II rowsort
SELECT DISTINCT 54 + col1, col1 AS col2 FROM tab0
----
135
81
55
1
75
21

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - - 1 > 22
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 18 AND 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col2 col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT 79 + + 51 + + col1 FROM tab1 AS cor0
----
135
144
177

query I rowsort
SELECT + col2 * 87 + - + 35 AS col2 FROM tab1 cor0
----
5098
5881
8317

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + SUM( ALL + col0 ) + 91 / - 34 col2 FROM tab2 AS cor0 WHERE ( + - 99 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3527
SELECT + SUM ( ALL + col0 ) + 91 / - 34 col2 FROM tab2 AS cor0 WHERE ( + - 99 ) IS NULL
----
NULL

query I rowsort
SELECT ALL col0 + - col1 FROM tab1 cor0 WHERE NOT - col0 + - - 21 NOT BETWEEN NULL AND ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT COUNT( - - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT COUNT ( - - col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT 50 AS col1, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
50
9

skipif mysql # not compatible
query II rowsort label-3530
SELECT 50 AS col1, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
50
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT SUM( ALL + 20 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3531
SELECT SUM ( ALL + 20 ) FROM tab0
----
60

query I rowsort
SELECT ALL - col2 + 79 AS col0 FROM tab2
----
21
39
56

query I rowsort
SELECT - col2 - - + 22 FROM tab0
----
-25
-77
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL 22 * + COUNT( + + ( - col0 ) ) + - COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL 22 * + COUNT ( + + ( - col0 ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT col0 - - col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + - ( col0 ) - ( + 51 ) FROM tab1 AS cor0
----
-102
-136
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT - + 26 + - MAX( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - + 26 + - MAX ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT ALL + ( + 6 ) - - ( ( + CAST( NULL AS SIGNED ) ) ) * + ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL + ( + 6 ) - - ( ( + CAST ( NULL AS INTEGER ) ) ) * + ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT - col0 DIV - col2 + - col2 AS col1 FROM tab2 AS cor0 WHERE ( - 6 ) IS NOT NULL
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-3539
SELECT - col0 / - col2 + - col2 AS col1 FROM tab2 AS cor0 WHERE ( - 6 ) IS NOT NULL
----
-21
-39
-57

query I rowsort
SELECT - + 26 - - - col0 AS col1 FROM tab2 AS cor0
----
-101
-72
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL + + ( ( - COUNT( * ) ) ) - + COUNT( * ) - 93 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL + + ( ( - COUNT ( * ) ) ) - + COUNT ( * ) - 93 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT + 54 * + + col1 FROM tab0 AS cor0
----
1134
4374
54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3543
SELECT DISTINCT CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) + + col0 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3543
SELECT DISTINCT CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) + + col0 FROM tab2 AS cor0
----
NULL
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, 30 FROM tab1
----
59
30
68
30
96
30

query I rowsort
SELECT ALL - 9 FROM tab1 WHERE NOT + 94 - 72 - - 88 NOT BETWEEN + 34 AND ( + 64 * 71 )
----
-9
-9
-9

query I rowsort
SELECT ALL 74 - 77 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT 93 AS col1, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
93
3

skipif mysql # not compatible
query II rowsort label-3548
SELECT 93 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
93
3

query I rowsort
SELECT - - ( - col0 ) FROM tab2 AS cor0 WHERE NOT + 4 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3550
SELECT + CAST( NULL AS SIGNED ) AS col2, col1 * col2 * - - 44 AS col1 FROM tab0 AS cor0
----
NULL
167508
NULL
4356
NULL
9240

skipif mysql # not compatible
query II rowsort label-3550
SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 * col2 * - - 44 AS col1 FROM tab0 AS cor0
----
NULL
167508
NULL
4356
NULL
9240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3551
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3551
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3552
SELECT ALL CAST( NULL AS DECIMAL ), + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3552
SELECT ALL CAST ( NULL AS REAL ), + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col0, + 42 FROM tab1 AS cor0
----
-14
42
-47
42
-5
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 21 + + + 83 * + col2 AS col1 FROM tab2 AS cor0
----
-51
1930
-67
4835
-77
3341

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3555
SELECT ALL * FROM tab1 WHERE + col0 * + - col1 + - + CAST( NULL AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3555
SELECT ALL * FROM tab1 WHERE + col0 * + - col1 + - + CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 / - col0 - + col0 > + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT + + CAST( NULL AS SIGNED ) * - + 95 + 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT + + CAST ( NULL AS INTEGER ) * - + 95 + 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT - - 1 * - col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT - - 1 * - col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query II rowsort
SELECT DISTINCT col0, - col1 * - - col1 FROM tab0
----
15
-6561
87
-441
97
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT IN ( 18, col2 / - - col0 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + - col1 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT DISTINCT + COUNT( * ) DIV + + 38 FROM tab2 WHERE NOT ( - - col1 * - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + COUNT ( * ) / + + 38 FROM tab2 WHERE NOT ( - - col1 * - col2 ) IS NULL
----
0

query I rowsort
SELECT ALL 64 + + col0 AS col2 FROM tab0
----
151
161
79

query I rowsort
SELECT ALL - col1 - + 11 FROM tab1 AS cor0
----
-16
-25
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3566
SELECT + - 84 col2, COUNT( * ) AS col2 FROM tab0 cor0
----
-84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3566
SELECT + - 84 col2, COUNT ( * ) AS col2 FROM tab0 cor0
----
-84
3

query I rowsort
SELECT 20 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-144500
-165620
-52020

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT + col0 DIV 43 DIV - col2 - - + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3568
SELECT + col0 / 43 / - col2 - - + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + - col0 col1 FROM tab1
----
-20
-54
-60

query II rowsort
SELECT ALL + col1 * + col1, col2 * + 0 AS col1 FROM tab2
----
2601
0
4489
0
5929
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + - - col0 col1 FROM tab2
----
-22
-33
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - COUNT( + + 73 ) + - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3572
SELECT - COUNT ( + + 73 ) + - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3573
SELECT ALL - 7 DIV + COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - 7 / + COUNT ( * ) FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT MAX( + ( - 60 ) ) AS col2 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT MAX ( + ( - 60 ) ) AS col2 FROM tab0 cor0
----
-60

query I rowsort
SELECT ALL + col1 + + col0 FROM tab0 AS cor0 WHERE ( NULL ) <= - 7 * + col0
----

query I rowsort
SELECT DISTINCT - + ( - - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT - COUNT( - - 63 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - COUNT ( - - 63 ) FROM tab0 cor0
----
-3

query II rowsort
SELECT - col1, 88 AS col2 FROM tab1
----
-14
88
-47
88
-5
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL MAX( - col2 ) col1 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3579
SELECT ALL MAX ( - col2 ) col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT - + MIN( - col0 ) AS col1 FROM tab1 WHERE - 94 - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - + MIN ( - col0 ) AS col1 FROM tab1 WHERE - 94 - col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 47 col1 FROM tab1
----
2397
3995
4277

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 34 IN ( + col1 + - ( + col0 ), col1 * col0 * col0 + + - col2 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT DISTINCT - MIN( + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT - MIN ( + col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 89 >= + - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL SUM( DISTINCT 34 ) AS col2 FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL SUM ( DISTINCT 34 ) AS col2 FROM tab0 cor0
----
34

query II rowsort
SELECT + - col1 * - 33 * - + col2 AS col1, - 13 AS col2 FROM tab0 AS cor0
----
-125631
-13
-3267
-13
-6930
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT + COUNT( * ) + CAST( - MIN( - 37 ) AS SIGNED ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3588
SELECT + COUNT ( * ) + CAST ( - MIN ( - 37 ) AS INTEGER ) FROM tab1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT ALL - + col1 + - col1 DIV + 86 FROM tab1 WHERE - 73 * + 73 + col0 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - + col1 + - col1 / + 86 FROM tab1 WHERE - 73 * + 73 + col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT + col1 + + 38 AS col2 FROM tab2
----
105
115
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT - ( + SUM( ALL 31 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-279

skipif mysql # not compatible
query I rowsort label-3591
SELECT - ( + SUM ( ALL 31 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-279

query I rowsort
SELECT DISTINCT + ( ( 10 ) ) + - + ( - + 47 ) AS col2 FROM tab2 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 + + col0 NOT IN ( + 54 * - col2 - - + ( - + col0 ), - col0 * + + col0 * - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT - MIN( + 32 ) col1 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3594
SELECT - MIN ( + 32 ) col1 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL IN ( + 51 * - col1 )
----

query I rowsort
SELECT DISTINCT - - 67 + 1 AS col2 FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - SUM( ALL 23 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3597
SELECT - SUM ( ALL 23 ) FROM tab1 AS cor0
----
-69

query II rowsort
SELECT ALL 27 AS col2, 1 FROM tab0 AS cor0
----
27
1
27
1
27
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT 39 AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-3599
SELECT 39 AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT 22 - - ( + + COUNT( * ) ) * + COUNT( * ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-3600
SELECT 22 - - ( + + COUNT ( * ) ) * + COUNT ( * ) FROM tab1
----
31

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE 18 < - + col1
----

query III rowsort
SELECT 57 + + col0 AS col0, col0 AS col1, - - 78 AS col1 FROM tab0 AS cor0
----
9 values hashing to a5ef6e39bb1ea9d200080d35f59e7b6f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3603
SELECT + - COUNT( * ) + + COUNT( * ) DIV + 46 AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3603
SELECT + - COUNT ( * ) + + COUNT ( * ) / + 46 AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * + col1 + + 36 AS col1 FROM tab2 AS cor0
----
2382
4964
5061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT + CAST( 13 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif mysql # not compatible
query I rowsort label-3605
SELECT + CAST ( 13 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL + 9 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT col2 DIV - 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT col2 / - 84 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col1, + 91 FROM tab1 AS cor0
----
14
91
47
91
5
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT + col0 DIV - 12 col1 FROM tab2 AS cor0
----
-3
-5
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT + col0 / - 12 col1 FROM tab2 AS cor0
----
-3
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT + ( + MAX( DISTINCT + col1 ) ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3610
SELECT + ( + MAX ( DISTINCT + col1 ) ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + MAX( + col2 ) * + + COUNT( * ) FROM tab1 cor0
----
288

skipif mysql # not compatible
query I rowsort label-3611
SELECT + MAX ( + col2 ) * + + COUNT ( * ) FROM tab1 cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT - COUNT( + 28 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3612
SELECT - COUNT ( + 28 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT - COUNT( - col0 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3613
SELECT - COUNT ( - col0 ) col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col2 FROM tab2 AS cor0
----
-61
-61
-61

query II rowsort
SELECT - col0, + 23 AS col0 FROM tab0 AS cor0
----
-15
23
-87
23
-97
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT ALL CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 10 * 27 AS col2 FROM tab1
----
-270
-270
-270

query I rowsort
SELECT ALL + 95 AS col2 FROM tab0
----
95
95
95

query I rowsort
SELECT col2 * - 28 AS col1 FROM tab2
----
-1120
-1624
-644

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT ALL + 83 DIV col1 FROM tab0
----
1
3
83

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + 83 / col1 FROM tab0
----
1
3
83

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3623
SELECT - + MIN( - col0 ) AS col1, COUNT( ALL - ( - col2 ) ) FROM tab0 cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-3623
SELECT - + MIN ( - col0 ) AS col1, COUNT ( ALL - ( - col2 ) ) FROM tab0 cor0
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT COUNT( + col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3624
SELECT COUNT ( + col1 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * - col0 + 74 FROM tab1 AS cor0
----
2675
7299
8355

query I rowsort
SELECT DISTINCT col2 + + ( - 89 ) FROM tab1
----
-21
-30
7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 = + col1
----

query I rowsort
SELECT - col1 + - 61 * 15 * - col0 * + + col1 + + col2 * - col1 FROM tab2 AS cor0
----
2145366
4505963
4593922

query I rowsort
SELECT + + 8 FROM tab1 AS cor0 WHERE 45 <= NULL
----

query I rowsort
SELECT ALL + 25 AS col2 FROM tab0 AS cor0
----
25
25
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 52 * + + 34 * ( - - col0 ) AND + + 48
----

query II rowsort
SELECT ALL 18 AS col1, + col2 FROM tab2
----
18
23
18
40
18
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3633
SELECT * FROM tab1 WHERE col2 + col1 NOT IN ( + + col0 + 98 - - col0 - CAST( NULL AS SIGNED ), - 98, CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-3633
SELECT * FROM tab1 WHERE col2 + col1 NOT IN ( + + col0 + 98 - - col0 - CAST ( NULL AS INTEGER ), - 98, CAST ( NULL AS INTEGER ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3634
SELECT + COUNT( * ), 69 * 60 AS col2 FROM tab2
----
3
4140

skipif mysql # not compatible
query II rowsort label-3634
SELECT + COUNT ( * ), 69 * 60 AS col2 FROM tab2
----
3
4140

query I rowsort
SELECT ALL + 50 + - 26 FROM tab2
----
24
24
24

query I rowsort
SELECT DISTINCT col0 - + 63 AS col2 FROM tab1
----
-12
22
28

query I rowsort
SELECT DISTINCT + + col1 - - + col1 + - 94 AS col0 FROM tab1 AS cor0
----
-66
-84
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL COUNT( DISTINCT + 53 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL COUNT ( DISTINCT + 53 ) AS col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 + col1 AND ( + 73 * ( 60 ) / 27 )
----

query I rowsort
SELECT col1 * col2 + - col1 + + + col0 FROM tab1 AS cor0
----
1381
3240
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT ALL - CAST( NULL AS SIGNED ) * - 3 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL - CAST ( NULL AS INTEGER ) * - 3 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 41 * - 30 FROM tab2 AS cor0
----
-1230
-1230
-1230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 96 col1 FROM tab1 cor0
----
-96
-96
-96

query II rowsort
SELECT ALL col0, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT - CAST( COUNT( ALL - + 53 ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT - CAST ( COUNT ( ALL - + 53 ) AS INTEGER ) FROM tab0
----
-3

query I rowsort
SELECT ALL col2 * + 52 FROM tab0 WHERE ( NOT ( NOT ( 66 * col1 + + + col0 * col0 ) IS NULL ) )
----

query II rowsort
SELECT DISTINCT 32, 0 AS col1 FROM tab1
----
32
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col1 ) NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3651
SELECT ALL - CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3651
SELECT ALL - CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT + col1 + - + col1 FROM tab2 AS cor0 WHERE NOT + col0 + + 16 NOT BETWEEN NULL AND - ( - 86 ) * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT MAX( ALL col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT MAX ( ALL col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT 76 + + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT 76 + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 >= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col0 + + 17 FROM tab1 AS cor0
----
-34
-68
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3657
SELECT - SUM( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE - 70 > + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT - SUM ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE - 70 > + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL - MIN( ALL - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - MIN ( ALL - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0 WHERE - 91 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - 91 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + - col2 - col0 - 6 AS col1 FROM tab1 AS cor0
----
-150
-153
-165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3661
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST( + 24 AS SIGNED ) * + 78 + + col2 + + 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3661
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST ( + 24 AS INTEGER ) * + 78 + + col2 + + 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 12 AS col2 FROM tab2
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL 23 * - COUNT( * ) + 92 + - 33 - 78 AS col2 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL 23 * - COUNT ( * ) + 92 + - 33 - 78 AS col2 FROM tab1
----
-88

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE + col1 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + col0 + - ( - ( col1 ) ) AS col2, 69 * - - 67 col1 FROM tab0
----
1296
4623
1848
4623
98
4623

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + 41 + + + ( - COUNT( col0 ) ) col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3666
SELECT + 41 + + + ( - COUNT ( col0 ) ) col1 FROM tab0 AS cor0
----
38

query I rowsort
SELECT ALL - - col2 + + col1 AS col0 FROM tab0 cor0 WHERE + col2 IS NOT NULL
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3668
SELECT DISTINCT 88 col2, col2 + + ( + CAST( col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
88
196
88
62
88
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3668
SELECT DISTINCT 88 col2, col2 + + ( + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
88
196
88
62
88
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3669
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3669
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-55

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > + col0 - - - 64 + col0 * - + col2
----

query I rowsort
SELECT + - ( 19 ) FROM tab1 cor0
----
-19
-19
-19

query I rowsort
SELECT ALL + col1 * - + 74 - col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT - - ( + + CAST( NULL AS SIGNED ) ) * col2 / col2 - - + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT - - ( + + CAST ( NULL AS INTEGER ) ) * col2 / col2 - - + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3675
SELECT ALL + col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3675
SELECT ALL + col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT col1 * + + ( - - col1 ) FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE 34 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3678
SELECT DISTINCT COUNT( * ) + 72 - - + COUNT( ALL - col1 ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 36 ) = + - col0 + - - 84
----
74

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT COUNT ( * ) + 72 - - + COUNT ( ALL - col1 ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 36 ) = + - col0 + - - 84
----
74

query I rowsort
SELECT ALL 38 * col1 FROM tab1 AS cor0 WHERE NOT + 86 NOT IN ( - ( - - 36 ) + 52 )
----

query II rowsort
SELECT - + 5 AS col0, 95 * + + ( + + 7 ) * col2 + + + col2 + + - col0 + - 43 * + + 65 AS col1 FROM tab1 cor0
----
-5
36414
-5
42402
-5
61090

query I rowsort
SELECT DISTINCT + - col0 * - col1 + - col1 / - 55 AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) + + col2 IS NULL
----

query I rowsort
SELECT + col2 + 23 + + + 10 FROM tab0
----
132
43
80

query I rowsort
SELECT ALL col1 + + 27 AS col2 FROM tab1
----
32
41
74

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 74 < - 7 + - + col0 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 32 * - col1 col0 FROM tab2
----
-1609
-2086
-2424

query I rowsort
SELECT - col1 * + 11 + - col1 FROM tab0 AS cor0
----
-12
-252
-972

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( 47 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT + MAX( - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + MAX ( - col1 ) FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + 80 col0 FROM tab2 cor0
----
126
144
155

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 68 col0 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT DISTINCT + col1 DIV col1 - + col0 + + 7 AS col1 FROM tab2 AS cor0
----
-38
-56
-67

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT + col1 / col1 - + col0 + + 7 AS col1 FROM tab2 AS cor0
----
-38
-56
-67

query I rowsort
SELECT - 45 * + 87 FROM tab0
----
-3915
-3915
-3915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3695
SELECT - MAX( 59 ) DIV - COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-3695
SELECT - MAX ( 59 ) / - COUNT ( * ) FROM tab2
----
19

query II rowsort
SELECT ( - + col1 ) AS col1, - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT - SUM( - + col2 ) AS col0, MIN( + - ( + col0 ) ) AS col0 FROM tab0
----
156
-97

skipif mysql # not compatible
query II rowsort label-3697
SELECT - SUM ( - + col2 ) AS col0, MIN ( + - ( + col0 ) ) AS col0 FROM tab0
----
156
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3698
SELECT - col1 - + CAST( + CAST( 33 AS SIGNED ) AS SIGNED ) + - + col0 DIV - col0 + + 73 AS col1, col1 * col0 * col2 AS col2 FROM tab2
----
-10
53958
-26
291450
-36
197120

skipif mysql # not compatible
query II rowsort label-3698
SELECT - col1 - + CAST ( + CAST ( 33 AS INTEGER ) AS INTEGER ) + - + col0 / - col0 + + 73 AS col1, col1 * col0 * col2 AS col2 FROM tab2
----
-10
53958
-26
291450
-36
197120

query I rowsort
SELECT - ( + + col2 ) - - col0 AS col1 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3700
SELECT col0 * - 2 AS col2, - CAST( NULL AS SIGNED ) * - - col2 + 93 AS col2 FROM tab2
----
-128
NULL
-150
NULL
-92
NULL

skipif mysql # not compatible
query II rowsort label-3700
SELECT col0 * - 2 AS col2, - CAST ( NULL AS INTEGER ) * - - col2 + 93 AS col2 FROM tab2
----
-128
NULL
-150
NULL
-92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3701
SELECT DISTINCT SUM( DISTINCT + - col2 ) DIV + - CAST( - 12 AS SIGNED ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT SUM ( DISTINCT + - col2 ) / + - CAST ( - 12 AS INTEGER ) FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT COUNT( * ) * + 40 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT COUNT ( * ) * + 40 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT ( MAX( ALL - col0 ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT ( MAX ( ALL - col0 ) ) FROM tab1 cor0
----
-51

query II rowsort
SELECT - col2, col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT - COUNT( DISTINCT + ( - col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3706
SELECT - COUNT ( DISTINCT + ( - col1 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - - 77 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL + col1 * - col2 + + 76 FROM tab1 AS cor0
----
-1268
-219
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + 17 * COUNT( ALL + 13 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 17 * COUNT ( ALL + 13 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL + CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - 29 / + col0 - - + col2 * + col2 * col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + - 36 * - 5 FROM tab2 AS cor0
----
180
180
180

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 40 AND + - col0
----

query II rowsort
SELECT - - col1 AS col1, 0 AS col1 FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 col1, col2 AS col2, - 53 AS col0 FROM tab0
----
9 values hashing to 4a62d1c9ca9b94ef2323bf969e3e11a4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT DISTINCT 51 + CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-13
-24
5

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT 51 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-13
-24
5

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1, + ( + col1 ) AS col2 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + col1 * + + col0 * 36 - - + 1 + - - ( + 31 ) * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL - COUNT( DISTINCT - 75 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - COUNT ( DISTINCT - 75 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( + + 64 ) + col2 - + 84 AS col2, + ( - - ( + - col2 ) ) + - 29 + col2 col2 FROM tab2 AS cor0
----
-108
-29
-125
-29
-90
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + COUNT( * ) + + + 91 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3723
SELECT + COUNT ( * ) + + + 91 FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT 25 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT DISTINCT col2 DIV - 61 + col0 FROM tab0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT col2 / - 61 + col0 FROM tab0
----
15
87
96

query I rowsort
SELECT - - 51 - col2 FROM tab0 AS cor0
----
-48
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT + COUNT( * ) - - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3728
SELECT + COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - - col1 * - 12 * - col1 + + ( col0 ) + - 76 - + - 62 * - - 6 AS col1 FROM tab0 AS cor0
----
405
5675
79043

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL - 46 - + + COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL - 46 - + + COUNT ( * ) FROM tab2 AS cor0
----
-49

query I rowsort
SELECT DISTINCT - + col2 * + + col2 + - + 91 + + col1 FROM tab2 AS cor0
----
-1614
-3388
-569

query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 99 AS col0 FROM tab1 cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT + - MIN( - 55 ) FROM tab1 WHERE NOT NULL < - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT + - MIN ( - 55 ) FROM tab1 WHERE NOT NULL < - col1
----
NULL

query I rowsort
SELECT ALL 61 * + ( + - col1 ) * + col2 AS col0 FROM tab1
----
-17995
-194956
-81984

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3736
SELECT * FROM tab0 WHERE NOT - CAST( 2 AS SIGNED ) IN ( CAST( NULL AS SIGNED ), col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-3736
SELECT * FROM tab0 WHERE NOT - CAST ( 2 AS INTEGER ) IN ( CAST ( NULL AS INTEGER ), col0 * col1 )
----

query I rowsort
SELECT 52 * col0 AS col0 FROM tab1
----
2652
4420
4732

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT DISTINCT + col2 DIV - + col2 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT + col2 / - + col2 AS col0 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 48 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + - 89 ) FROM tab1 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3742
SELECT ALL + 89 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query II rowsort label-3742
SELECT ALL + 89 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + - MIN( + - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3743
SELECT + - MIN ( + - col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col1 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 * + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3745
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 * + + col1 IS NULL
----
3

query I rowsort
SELECT ALL + col2 + - - ( + col1 ) + col0 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT + + col1 DIV + 4 AS col1 FROM tab2 AS cor0
----
12
16
19

skipif mysql # not compatible
query I rowsort label-3747
SELECT + + col1 / + 4 AS col1 FROM tab2 AS cor0
----
12
16
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 37 col1 FROM tab1 cor0
----
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 59 >= + - col0 * + col2 - col1 + col2 + + col1 * + col1
----

query I rowsort
SELECT + - 11 * ( + - ( - col2 ) ) + - col1 AS col0 FROM tab1 cor0
----
-1070
-654
-795

query II rowsort
SELECT - + ( - + 22 ) + ( col1 ) AS col0, ( + + col1 ) FROM tab0 AS cor0
----
103
81
23
1
43
21

query I rowsort
SELECT + 16 + - col2 AS col1 FROM tab1 AS cor0
----
-43
-52
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 * 52 <= col2
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 * 52 <= col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - + 27 + - 72 <> col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT DISTINCT ( MIN( ALL col0 ) ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT ( MIN ( ALL col0 ) ) AS col2 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 * - col2 IS NULL
----

query I rowsort
SELECT + ( - + 67 ) FROM tab1
----
-67
-67
-67

query I rowsort
SELECT ALL - 11 + + col0 AS col2 FROM tab2
----
35
53
64

query I rowsort
SELECT ALL + col0 + + 79 AS col1 FROM tab1
----
130
164
170

query III rowsort
SELECT ALL * FROM tab1 WHERE 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT col0 * col2 DIV - + col1 AS col2 FROM tab0 AS cor0 WHERE col2 > col0
----
-8
-9603

skipif mysql # not compatible
query I rowsort label-3761
SELECT col0 * col2 / - + col1 AS col2 FROM tab0 AS cor0 WHERE col2 > col0
----
-8
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + 48 - - COUNT( * ) FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3762
SELECT + 48 - - COUNT ( * ) FROM tab0 cor0
----
51

query I rowsort
SELECT col1 + + + 99 * - col2 AS col2 FROM tab0
----
-4572
-969
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT SUM( + col0 ) + - COUNT( * ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3764
SELECT DISTINCT SUM ( + col0 ) + - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + - 68 + - col1 AS col1 FROM tab2 AS cor0
----
-119
-135
-145

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 17 <= - col1
----
97
1
99

query I rowsort
SELECT DISTINCT + 49 + - + col2 AS col1 FROM tab0 AS cor0
----
-50
2
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - + 32 col0 FROM tab2 AS cor0
----
-109
-83
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT + 37 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3770
SELECT + 37 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL + + SUM( - col2 ) * - - 74 + + + 80 - - MAX( DISTINCT + CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-16331

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + + SUM ( - col2 ) * - - 74 + + + 80 - - MAX ( DISTINCT + CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-16331

query I rowsort
SELECT ALL 98 * - col2 * + col0 FROM tab1 AS cor0
----
-479808
-491470
-606424

query II rowsort
SELECT DISTINCT + col0 * - 26 AS col2, - col0 FROM tab1
----
-1326
-51
-2210
-85
-2366
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + + col1 col1, col1 - 28 AS col2 FROM tab0
----
210
-7
3807
53
99
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT 42 DIV + COUNT( * ) AS col1 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3775
SELECT 42 / + COUNT ( * ) AS col1 FROM tab0
----
14

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * - + col1 + - 25 - col0 + + ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 87 - - - col0 + + col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - SUM( DISTINCT - + col1 ) * SUM( - col1 ) AS col1 FROM tab1
----
-4356

skipif mysql # not compatible
query I rowsort label-3778
SELECT - SUM ( DISTINCT - + col1 ) * SUM ( - col1 ) AS col1 FROM tab1
----
-4356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * + col1 col2 FROM tab2
----
2703
3551
4081

query I rowsort
SELECT ( + - ( - 34 ) ) FROM tab1
----
34
34
34

query I rowsort
SELECT ALL col0 * col2 * + col1 * + ( - col1 ) AS col1 FROM tab2
----
-15178240
-19527150
-2751858

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT col0 NOT BETWEEN + 52 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3783
SELECT 91 * + 32 AS col1, - CAST( NULL AS SIGNED ) FROM tab1
----
2912
NULL
2912
NULL
2912
NULL

skipif mysql # not compatible
query II rowsort label-3783
SELECT 91 * + 32 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
2912
NULL
2912
NULL
2912
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = col2 + + - col1
----
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = col2 + + - col1
----
0

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - 55 * - - 50 AS col2 FROM tab2 cor0
----
-2750

query I rowsort
SELECT + col1 * + - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col0 * + ( + + col1 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + col1 * + ( + col2 ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT - COUNT( * ) * 80 * 26, - SUM( ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-6240
-227

skipif mysql # not compatible
query II rowsort label-3791
SELECT - COUNT ( * ) * 80 * 26, - SUM ( ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-6240
-227

query II rowsort
SELECT DISTINCT 60 AS col0, ( + + col1 ) FROM tab2 AS cor0
----
60
51
60
67
60
77

query II rowsort
SELECT DISTINCT col0 AS col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - 90 * + 98 * - col0 + col1 - - col2 FROM tab1 cor0
----
449930
749764
802735

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT ALL - col0 DIV - + 53 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - col0 / - + 53 AS col0 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT + COUNT( * ) col0 FROM tab2 WHERE 66 + col1 + 38 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3796
SELECT + COUNT ( * ) col0 FROM tab2 WHERE 66 + col1 + 38 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3797
SELECT ALL col2 DIV + col0 col1, col0 AS col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3797
SELECT ALL col2 / + col0 col1, col0 AS col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT DISTINCT + ( 78 ) + - col0 FROM tab0
----
-19
-9
63

query I rowsort
SELECT ALL - col1 * + - col0 + 62 FROM tab0 AS cor0
----
1277
159
1889

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3800
SELECT - col2 * col2 AS col2, CAST( + 25 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1600
25
-3364
25
-529
25

skipif mysql # not compatible
query II rowsort label-3800
SELECT - col2 * col2 AS col2, CAST ( + 25 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1600
25
-3364
25
-529
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3801
SELECT ( CAST( 14 AS SIGNED ) ), 1 AS col0 FROM tab1 AS cor0
----
14
1
14
1
14
1

skipif mysql # not compatible
query II rowsort label-3801
SELECT ( CAST ( 14 AS INTEGER ) ), 1 AS col0 FROM tab1 AS cor0
----
14
1
14
1
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT + SUM( - 70 ) AS col1 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-3802
SELECT + SUM ( - 70 ) AS col1 FROM tab2 AS cor0
----
-210

query I rowsort
SELECT + - col0 * - 71 FROM tab0 cor0
----
1065
6177
6887

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 15 > + + col0 / - + 74
----

query I rowsort
SELECT DISTINCT - + 45 + + 58 FROM tab2 AS cor0 WHERE NOT 15 > + + 48 * - 6
----

query I rowsort
SELECT ALL - + 67 * + col2 FROM tab0 AS cor0
----
-3149
-6633
-670

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3807
SELECT DISTINCT + + col2 * + ( + + col0 ) * + - CAST( NULL AS DECIMAL ) * + + col2 col2, col1 * - + 11 FROM tab1 AS cor0
----
NULL
-154
NULL
-517
NULL
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3807
SELECT DISTINCT + + col2 * + ( + + col0 ) * + - CAST ( NULL AS REAL ) * + + col2 col2, col1 * - + 11 FROM tab1 AS cor0
----
NULL
-154
NULL
-517
NULL
-55

query II rowsort
SELECT 86 AS col0, col2 + + - col0 AS col2 FROM tab2 AS cor0
----
86
-17
86
-23
86
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3809
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL - col1 * - CAST ( NULL AS REAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + 71 / - 74 - 95 AS col1, 23 * + col2 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + col0, + col0, - col0 + + - col1, + col0 )
----

query I rowsort
SELECT DISTINCT ( + col0 ) * + 40 AS col0 FROM tab2 AS cor0
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT - MAX( + 53 ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT - MAX ( + 53 ) FROM tab2 AS cor0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3813
SELECT + CAST( - + ( - 45 ) AS SIGNED ), COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
45
3

skipif mysql # not compatible
query II rowsort label-3813
SELECT + CAST ( - + ( - 45 ) AS INTEGER ), COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
45
3

query I rowsort
SELECT ALL col1 * 26 * - col0 AS col1 FROM tab1
----
-11050
-111202
-18564

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT COUNT( * ) col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3815
SELECT DISTINCT COUNT ( * ) col1 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3816
SELECT - COUNT( * ), - COUNT( DISTINCT col0 ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3816
SELECT - COUNT ( * ), - COUNT ( DISTINCT col0 ) FROM tab1
----
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3818
SELECT + 69 col0, CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
69
NULL
69
NULL
69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3818
SELECT + 69 col0, CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
69
NULL
69
NULL
69
NULL

query II rowsort
SELECT DISTINCT + col2 AS col1, 30 * + - 6 AS col1 FROM tab2 AS cor0
----
23
-180
40
-180
58
-180

query II rowsort
SELECT + 32 AS col2, - 8 FROM tab2 AS cor0
----
32
-8
32
-8
32
-8

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 + + + col1 NOT IN ( - 66, 65 + col1 + - + col0 )
----

query I rowsort
SELECT ALL - col1 + - col0 * - col1 * + - col0 + col0 FROM tab1
----
-36045
-36377
-389163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT ( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT DISTINCT ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 38 * + ( - - col0 ) + - col1 AS col0 FROM tab2 AS cor0
----
1697
2355
2783

query I rowsort
SELECT - 0 + - 76 + - col2 + + 90 AS col2 FROM tab0 AS cor0
----
-33
-85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL SUM( 16 ) + 25 AS col1 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL SUM ( 16 ) + 25 AS col1 FROM tab1 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT + CAST( NULL AS SIGNED ) + + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT + CAST ( NULL AS INTEGER ) + + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL + COUNT( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3830
SELECT ALL + COUNT ( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 - - - ( + 86 ) AS col0 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT ALL + 11 DIV + 2 AS col1 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + 11 / + 2 AS col1 FROM tab1
----
5
5
5

query I rowsort
SELECT ALL - 47 FROM tab0 WHERE NOT + col0 >= + 83
----
-47

query II rowsort
SELECT - 91, col2 AS col1 FROM tab1
----
-91
59
-91
68
-91
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3835
SELECT CAST( + - col2 AS SIGNED ) * + ( col2 ) * col0 + - CAST( - + col2 AS DECIMAL ) AS col0 FROM tab2 WHERE + col1 + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3835
SELECT CAST ( + - col2 AS INTEGER ) * + ( col2 ) * col0 + - CAST ( - + col2 AS REAL ) AS col0 FROM tab2 WHERE + col1 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col1 col0 FROM tab0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + + col2 AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3838
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 91 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT CAST ( NULL AS REAL ) + - 91 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT - 8, - col1 AS col2 FROM tab2
----
-8
-51
-8
-67
-8
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 49 FROM tab2
----
23
49
40
49
58
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT MIN( + 22 ) + 48 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT MIN ( + 22 ) + 48 FROM tab2
----
70

query I rowsort
SELECT ( - + 68 ) AS col2 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT + col1 + + 82 FROM tab0 AS cor0 WHERE NULL IS NULL
----
103
163
83

query I rowsort
SELECT DISTINCT + 48 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
48

query I rowsort
SELECT - + ( 74 ) - + col2 FROM tab0 WHERE ( NULL = + col0 )
----

query I rowsort
SELECT ALL + 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 99 < NULL
----

query I rowsort
SELECT col2 * + 98 * - ( + 65 ) FROM tab1
----
-375830
-433160
-611520

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL SUM( DISTINCT + - 92 ) col0 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3849
SELECT ALL SUM ( DISTINCT + - 92 ) col0 FROM tab0 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT + MAX( - + 44 ) col1 FROM tab0 cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3850
SELECT DISTINCT + MAX ( - + 44 ) col1 FROM tab0 cor0
----
-44

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 48 - - col0 * - col1 BETWEEN ( + 37 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT DISTINCT + col1 DIV + 48 FROM tab0 AS cor0 WHERE - 23 IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + col1 / + 48 FROM tab0 AS cor0 WHERE - 23 IS NOT NULL
----
0
1

query I rowsort
SELECT - col0 * - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3854
SELECT ALL * FROM tab1 AS cor0 WHERE 38 * - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3854
SELECT ALL * FROM tab1 AS cor0 WHERE 38 * - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT ALL SUM( DISTINCT col2 ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
156
3

skipif mysql # not compatible
query II rowsort label-3855
SELECT ALL SUM ( DISTINCT col2 ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
156
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0 WHERE NOT - 66 / - ( + 97 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0 WHERE NOT - 66 / - ( + 97 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 11 ) AS col0 FROM tab0
----
11
11
11

query I rowsort
SELECT + 57 * col2 AS col0 FROM tab0
----
2679
5643
570

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + SUM( + - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3859
SELECT + SUM ( + - col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 BETWEEN ( - col0 ) AND - ( + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 BETWEEN ( - col0 ) AND - ( + col0 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL + MAX( - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + MAX ( - col0 ) AS col1 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT - 48 > NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 0 AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + 61 + - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
61

skipif mysql # not compatible
query I rowsort label-3864
SELECT + 61 + - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
61

query II rowsort
SELECT ALL col0 AS col1, - 5 AS col0 FROM tab1 AS cor0
----
51
-5
85
-5
91
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT col1 * + col1 + - + col2 + col1 DIV 74 AS col0 FROM tab2
----
2578
4431
5890

skipif mysql # not compatible
query I rowsort label-3866
SELECT col1 * + col1 + - + col2 + col1 / 74 AS col0 FROM tab2
----
2578
4431
5890

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 11 ) BETWEEN + ( + + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL + 11 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + 11 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 54 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + - 27 * COUNT( + - col2 ) AS col2 FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3872
SELECT + - 27 * COUNT ( + - col2 ) AS col2 FROM tab2 cor0
----
-81

query I rowsort
SELECT + ( + - col0 ) * + + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT DISTINCT col0 AS col0, - 52 * + + col2 AS col0 FROM tab2 AS cor0
----
46
-1196
64
-2080
75
-3016

query I rowsort
SELECT + col0 + + ( + col0 ) AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT - + ( + - col2 ) FROM tab1 WHERE NOT - 76 + + 14 IS NULL
----
59
68
96

query I rowsort
SELECT ALL + 50 + 63 * - 70 FROM tab2
----
-4360
-4360
-4360

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL MIN( + 80 ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL MIN ( + 80 ) FROM tab0 AS cor0
----
80

query II rowsort
SELECT ALL + col1 AS col1, + col0 * + col0 AS col2 FROM tab1 AS cor0
----
14
2601
47
8281
5
7225

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL - COUNT( ALL 67 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - COUNT ( ALL 67 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + - MAX( + 74 ) AS col0 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3882
SELECT + - MAX ( + 74 ) AS col0 FROM tab0 AS cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3883
SELECT - CAST( NULL AS SIGNED ) col2, SUM( + + col1 ) col2 FROM tab0 AS cor0
----
NULL
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3883
SELECT - CAST ( NULL AS INTEGER ) col2, SUM ( + + col1 ) col2 FROM tab0 AS cor0
----
NULL
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3884
SELECT + col1, col1 * CAST( NULL AS SIGNED ) * - + col1 * - col2 + - + col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3884
SELECT + col1, col1 * CAST ( NULL AS INTEGER ) * - + col1 * - col2 + - + col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT ALL - - col1 AS col1, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL 24 - 93 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - + COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3887
SELECT - + COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT ALL + CAST( - ( - - col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE 81 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + CAST ( - ( - - col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3889
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3889
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3890
SELECT MIN( DISTINCT + col2 ), 82 AS col1 FROM tab0
----
10
82

skipif mysql # not compatible
query II rowsort label-3890
SELECT MIN ( DISTINCT + col2 ), 82 AS col1 FROM tab0
----
10
82

query I rowsort
SELECT DISTINCT col1 * col2 * + 30 FROM tab2
----
116580
35190
92400

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + ( + col0 ) NOT IN ( + - 61, col2, - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT DISTINCT + col0 + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT + col0 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT - col2 DIV - - 27 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT - col2 / - - 27 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - - col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + 36 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - col2 + + + 85 + - 78 * - 79 AS col0 FROM tab0
----
6148
6200
6237

query I rowsort
SELECT - - 69 + - + ( + 36 ) AS col0 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL - 29 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - 29 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT - col0 * + 64 + - 33 + - col0 AS col1 FROM tab1 AS cor0
----
-3348
-5558
-5948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT DISTINCT + - ( CAST( + COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT + - ( CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ( - - col1 ), + col1 + - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT DISTINCT - + col0 + + CAST( NULL AS SIGNED ) + + - 15 * 50 * + 32 + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - + col0 + + CAST ( NULL AS INTEGER ) + + - 15 * 50 * + 32 + col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 19 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 51 * 88 AS col2 FROM tab0 cor0
----
-4488
-4488
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - MAX( ALL 14 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - MAX ( ALL 14 ) FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT - SUM( + col2 ) * + - 21 FROM tab2
----
2541

skipif mysql # not compatible
query I rowsort label-3907
SELECT - SUM ( + col2 ) * + - 21 FROM tab2
----
2541

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + col0 >= col1
----
87
21
10

query I rowsort
SELECT ALL - col1 + + 4 AS col0 FROM tab1
----
-1
-10
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT ( + COUNT( * ) ) * + 19 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT ( + COUNT ( * ) ) * + 19 FROM tab2
----
57

query II rowsort
SELECT col1 AS col0, - 26 FROM tab1
----
14
-26
47
-26
5
-26

query II rowsort
SELECT DISTINCT + col1 AS col1, 15 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + + col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT ALL 60 * - CAST( - 53 AS SIGNED ) AS col1 FROM tab1
----
3180
3180
3180

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL 60 * - CAST ( - 53 AS INTEGER ) AS col1 FROM tab1
----
3180
3180
3180

query I rowsort
SELECT ALL col2 * 4 + + 92 FROM tab2
----
184
252
324

query II rowsort
SELECT + col1 * - 15 - ( - 32 ) * + 98 + col0 AS col1, - col1 AS col1 FROM tab1
----
2522
-47
2977
-14
3146
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT 78 + COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT 78 + COUNT ( * ) FROM tab0
----
81

query II rowsort
SELECT ALL - col1 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3918
SELECT COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 91 > - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3920
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE 28 <> + CAST( col0 AS DECIMAL )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE 28 <> + CAST ( col0 AS REAL )
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3921
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 4 AS col2, col0 AS col1 FROM tab0
----
4
15
4
87
4
97

query I rowsort
SELECT col2 * - + col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL col2 + - 83 + col0 - + 44 * - col1 * - + 60 - - col2 AS col2 FROM tab1
----
-123936
-13080
-36800

query I rowsort
SELECT - - col0 + - col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1 AS col0, - col2 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT + col1 * - - col0 + col2 + - + col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT + + CAST( NULL AS SIGNED ) + - - COUNT( * ) / - 83 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT + + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) / - 83 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT COUNT( * ) + 51 DIV - 42 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3929
SELECT COUNT ( * ) + 51 / - 42 FROM tab0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3930
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 BETWEEN + col1 - CAST( + 89 AS SIGNED ) AND ( col0 )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-3930
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 BETWEEN + col1 - CAST ( + 89 AS INTEGER ) AND ( col0 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT COUNT( * ) * 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT COUNT ( * ) * 72 FROM tab1
----
216

query I rowsort
SELECT col2 FROM tab1 WHERE col1 = col2
----

query I rowsort
SELECT 87 * 63 AS col0 FROM tab2 WHERE - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT COUNT( * ) * CAST( 32 AS SIGNED ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT COUNT ( * ) * CAST ( 32 AS INTEGER ) AS col1 FROM tab2
----
96

query I rowsort
SELECT - col2 + 47 * - 29 FROM tab1
----
-1422
-1431
-1459

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT - 29 + ( col0 ) DIV + col1 FROM tab0
----
-25
-29
68

skipif mysql # not compatible
query I rowsort label-3937
SELECT - 29 + ( col0 ) / + col1 FROM tab0
----
-25
-29
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT SUM( 32 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-3938
SELECT SUM ( 32 ) FROM tab0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3939
SELECT ALL - CAST( 52 AS SIGNED ) + + col1 FROM tab1
----
-38
-47
-5

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - CAST ( 52 AS INTEGER ) + + col1 FROM tab1
----
-38
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT COUNT( * ) * - COUNT( * ) FROM tab2 WHERE 76 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3940
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE 76 IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + 58 * + col0 FROM tab2 WHERE NOT NULL IN ( col0 + + 2 / col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3943
SELECT - CAST( NULL AS DECIMAL ) - 59 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT - CAST ( NULL AS REAL ) - 59 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 90 * - col1 AS col1 FROM tab1
----
-1260
-4230
-450

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT DISTINCT + col2 DIV - 86 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT + col2 / - 86 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL MIN( ALL col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL MIN ( ALL col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - COUNT( * ) * + 24 col2 FROM tab2
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3948
SELECT - COUNT ( * ) * + 24 col2 FROM tab2
----
-72

query III rowsort
SELECT * FROM tab1 WHERE 86 + col0 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + SUM( 40 ) AS col1 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-3950
SELECT + SUM ( 40 ) AS col1 FROM tab0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + 24 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 24 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL ( 88 ) FROM tab1 cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT DISTINCT - 29 * - CAST( + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
1479
1943
2233

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3953
SELECT DISTINCT - 29 * - CAST ( + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
1479
1943
2233

query I rowsort
SELECT 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT 64 * 75 FROM tab0
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT COUNT( * ) * ( - 85 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-765

skipif mysql # not compatible
query I rowsort label-3956
SELECT COUNT ( * ) * ( - 85 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-765

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 * - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 91 AS col2 FROM tab0 cor0
----
91
91
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 62
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 / + 34 + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 * - 35 FROM tab0 AS cor0
----
-3045
-3395
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT col2 DIV + 56 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3965
SELECT col2 / + 56 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - col2 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT - + SUM( 10 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - + SUM ( 10 ) FROM tab1 AS cor0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL 15 * MIN( DISTINCT - 49 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL 15 * MIN ( DISTINCT - 49 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 + + ( col1 + col2 ) ) < ( NULL )
----

query I rowsort
SELECT - ( col2 ) * 8 AS col1 FROM tab0 WHERE NOT ( - 64 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - + 53 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - + 53 FROM tab2
----
NULL

query I rowsort
SELECT 81 + + col2 FROM tab1 WHERE + 84 IS NOT NULL
----
140
149
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col1 FROM tab0
----
3
3
3

query I rowsort
SELECT ALL + col0 * + col0 * + ( - 69 ) + col0 * 32 FROM tab2 AS cor0
----
-144532
-280576
-385725

query I rowsort
SELECT DISTINCT - 84 * + + 41 AS col1 FROM tab1 AS cor0
----
-3444

query II rowsort
SELECT ALL 73 AS col1, 90 - col2 + col1 AS col1 FROM tab1
----
73
36
73
69
73
8

query I rowsort
SELECT + 51 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL - col2 + col2 + + col2 * + col1 FROM tab2
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 2 col2 FROM tab0
----
1
-2
21
-2
81
-2

query I rowsort
SELECT ALL + 27 * 28 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 266b6f374bc9527dd03bf34e2ceeea8b

query I rowsort
SELECT - 95 * - - 26 + + 86 FROM tab2
----
-2384
-2384
-2384

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT SUM( ALL - 47 ) + + 22 + ( + 62 ) col0 FROM tab1
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3984
SELECT SUM ( ALL - 47 ) + + 22 + ( + 62 ) col0 FROM tab1
----
-57

query I rowsort
SELECT DISTINCT + + 68 * col0 + 47 - - 47 FROM tab0 AS cor0
----
1114
6010
6690

query I rowsort
SELECT col0 + + ( 4 ) + + 63 AS col1 FROM tab2 AS cor0
----
113
131
142

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - - col0 ) * + + 9 - + 39 AS col0 FROM tab2 cor0
----
-453
-615
-714

query I rowsort
SELECT ALL + col1 - + - 6 + - - 90 FROM tab0 AS cor0
----
117
177
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3990
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 - CAST( col1 AS DECIMAL ) + + col0 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3990
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 - CAST ( col1 AS REAL ) + + col0 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( col2 - - 5 + + col0 * - col1 / + 8 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) <> 86 / col0
----

query I rowsort
SELECT + col2 * + col2 - + - col1 AS col1 FROM tab0 AS cor0
----
121
2290
9802

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3994
SELECT ALL - CAST( - col0 AS SIGNED ) AS col0, col1 * 53 AS col0 FROM tab1
----
51
742
85
265
91
2491

skipif mysql # not compatible
query II rowsort label-3994
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0, col1 * 53 AS col0 FROM tab1
----
51
742
85
265
91
2491

query I rowsort
SELECT + 34 * - ( 96 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + col0 + - col0 FROM tab0 WHERE NOT NULL <= - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT + col0 DIV - 32 AS col1 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT + col0 / - 32 AS col1 FROM tab0
----
-2
-3
0

query II rowsort
SELECT 56 * + 35 AS col0, + col1 AS col0 FROM tab0
----
1960
1
1960
21
1960
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / + col2 col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT 74 * - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4000
SELECT 74 * - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
74

query I rowsort
SELECT DISTINCT - 64 * - col0 FROM tab1
----
3264
5440
5824

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + - col2 * + col1 ) IN ( + 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 40 * - col1 + - col0 AS col0 FROM tab2 cor0
----
-2086
-2755
-3144

query I rowsort
SELECT DISTINCT - ( - 2 ) * col2 * col0 + col2 FROM tab2 AS cor0 WHERE NOT ( + 25 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT + - COUNT( * ) * + + 12 AS col0 FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + - COUNT ( * ) * + + 12 AS col0 FROM tab2 cor0
----
-36

query I rowsort
SELECT ALL 70 * + col1 FROM tab1 AS cor0
----
3290
350
980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT - COUNT( * ) DIV - ( - - MIN( col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4007
SELECT - COUNT ( * ) / - ( - - MIN ( col1 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + col1 * ( + col2 ) FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL - + col2 * col0 * - - 40 AS col2 FROM tab0 AS cor0
----
-28200
-34800
-384120

query I rowsort
SELECT + + col0 * - 73 AS col0 FROM tab1 AS cor0
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + ( - COUNT( * ) ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4011
SELECT + ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT + MAX( ALL - 72 ) AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT + MAX ( ALL - 72 ) AS col2 FROM tab1 AS cor0
----
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - 2 IS NULL
----

query I rowsort
SELECT ALL + col1 * 25 * + + col1 * + + ( + 28 ) FROM tab2
----
1820700
3142300
4150300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col2 col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - MAX( ALL + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4016
SELECT - MAX ( ALL + col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT + - col0 + - + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-4017
SELECT + - col0 + - + col2 / - col2 AS col1 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT col1 - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
162
2
42

query II rowsort
SELECT + - 47 + + col0 * + col0 * + 7, + ( + col2 ) FROM tab1 AS cor0
----
18160
96
50528
59
57920
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT + 25 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT + 25 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, 54 AS col2 FROM tab0 AS cor0
----
15
54
87
54
97
54

query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 * - col1 ) BETWEEN 71 AND ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( NOT 30 IS NOT NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 - col0, col0 col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT + col0 - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4028
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4029
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / + col2 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4029
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 16 ) AS col1 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + MAX( DISTINCT col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab0
----
99

query I rowsort
SELECT ( - 11 ) FROM tab2
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + COUNT( + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4033
SELECT + COUNT ( + col1 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( 43 ) col2 FROM tab0 AS cor0
----
-43

query II rowsort
SELECT + 59 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
59
-1
59
-21
59
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4036
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - + 25 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4036
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - + 25 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + - col1 * - 55 FROM tab2 AS cor0
----
2805
3685
4235

query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT ALL 55 * col1 DIV + 30 FROM tab1
----
25
86
9

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL 55 * col1 / + 30 FROM tab1
----
25
86
9

query I rowsort
SELECT 19 * + 50 * - col1 FROM tab2
----
-48450
-63650
-73150

query I rowsort
SELECT ALL - 14 * + + col1 + - col0 FROM tab0 AS cor0
----
-111
-1149
-381

query I rowsort
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL OR NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4044
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 76 + - + 2 + - - CAST( NULL AS SIGNED ) + + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4044
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 76 + - + 2 + - - CAST ( NULL AS INTEGER ) + + - col2 IS NULL
----

query I rowsort
SELECT - - 56 + - - col2 * + 10 FROM tab2 AS cor0
----
286
456
636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT DISTINCT - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col0 )
----
NULL

query I rowsort
SELECT - col1 + - 9 AS col2 FROM tab1 AS cor0
----
-14
-23
-56

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + + 71 NOT BETWEEN NULL AND - 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT 34 DIV + - 40 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4049
SELECT 34 / + - 40 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab0 WHERE - + 50 * + col1 * - - col2 IN ( - - col1, - 76 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT ALL - 86 DIV - COUNT( * ) + - MIN( - col2 ) col2 FROM tab2
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4051
SELECT ALL - 86 / - COUNT ( * ) + - MIN ( - col2 ) col2 FROM tab2
----
86

query I rowsort
SELECT ALL 58 * col2 - + col1 AS col1 FROM tab1
----
3417
3897
5554

query II rowsort
SELECT DISTINCT + ( + - col2 ) - + 0 * + 63 * + ( + col1 ) AS col2, - col2 AS col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT + 54 + col2 + + - 38 AS col1 FROM tab1
----
112
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + 21 * + COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 21 * + COUNT ( * ) FROM tab1
----
63

query I rowsort
SELECT ALL + ( + + col2 ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT + col1 * + 10 * + 61 AS col0 FROM tab1 AS cor0
----
28670
3050
8540

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 < - col2 / col1 + col0
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT ALL 94, COUNT( * ) AS col0 FROM tab0 cor0
----
94
3

skipif mysql # not compatible
query II rowsort label-4060
SELECT ALL 94, COUNT ( * ) AS col0 FROM tab0 cor0
----
94
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT ALL - 16 AS col1, - ( - COUNT( * ) ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-16
6

skipif mysql # not compatible
query II rowsort label-4061
SELECT ALL - 16 AS col1, - ( - COUNT ( * ) ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-16
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT + ( + 7 ) AS col1 FROM tab1
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT 15 * SUM( 51 ) col1 FROM tab2
----
2295

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4064
SELECT 15 * SUM ( 51 ) col1 FROM tab2
----
2295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT - col0 * - CAST( - + col0 AS SIGNED ) FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - col0 * - CAST ( - + col0 AS INTEGER ) FROM tab0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query II rowsort label-4066
SELECT DISTINCT + col2 DIV + col0 AS col2, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-4066
SELECT DISTINCT + col2 / + col0 AS col2, col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT ( - SUM( 39 ) ) AS col1 FROM tab2 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT ( - SUM ( 39 ) ) AS col1 FROM tab2 cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT COUNT( * ) + + 90 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4068
SELECT COUNT ( * ) + + 90 FROM tab0
----
93

query I rowsort
SELECT + 72 - - col1 FROM tab0 WHERE NOT col1 + + col2 + - col1 * + 25 / - col1 <= col1
----
153
73
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4070
SELECT ALL - + col2 AS col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-4070
SELECT ALL - + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT ALL + - col1 + + - col2 FROM tab1 AS cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 col0 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT - ( col2 ) + - col1 * + 16 / col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + ( + + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + + 15 FROM tab2 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 64 - 94 AS col0 FROM tab1 AS cor0
----
-158
-158
-158

query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab2 WHERE + 8 <> ( - - 66 )
----
-2346
-4928
-5025

query I rowsort
SELECT 77 + - col0 FROM tab2
----
13
2
31

query I rowsort
SELECT + - col1 AS col0 FROM tab2 WHERE col0 * + col0 IS NULL
----

query I rowsort
SELECT + col1 * - col0 + - - 58 FROM tab0 cor0
----
-1157
-1769
-39

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col1 - + 31 FROM tab2
----
20
36
46

query I rowsort
SELECT ALL 96 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT + 64 * 25 AS col1 FROM tab0
----
1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4086
SELECT - + CAST( + - MIN( ALL + 93 ) AS SIGNED ) AS col0, SUM( DISTINCT + 19 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
93
19

skipif mysql # not compatible
query II rowsort label-4086
SELECT - + CAST ( + - MIN ( ALL + 93 ) AS INTEGER ) AS col0, SUM ( DISTINCT + 19 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
93
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL 57 * + - ( - + COUNT( DISTINCT + - col0 ) ) FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL 57 * + - ( - + COUNT ( DISTINCT + - col0 ) ) FROM tab1
----
171

query I rowsort
SELECT DISTINCT + col0 + 3 FROM tab2 cor0 WHERE NULL IS NULL
----
49
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT + - MAX( col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4089
SELECT + - MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT - col1 DIV 23 DIV - col0 * + 89 - 75 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-4090
SELECT - col1 / 23 / - col0 * + 89 - 75 / - col1 AS col0 FROM tab1 AS cor0
----
1
15
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4091
SELECT - + COUNT( * ) AS col2, 15 col2 FROM tab0 AS cor0
----
-3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4091
SELECT - + COUNT ( * ) AS col2, 15 col2 FROM tab0 AS cor0
----
-3
15

query II rowsort
SELECT + col1, 50 * - col0 FROM tab1 AS cor0
----
14
-2550
47
-4550
5
-4250

query I rowsort
SELECT DISTINCT + 68 * + - col2 * + col2 FROM tab2
----
-108800
-228752
-35972

onlyif mysql # aggregate syntax: 
query II rowsort label-4094
SELECT ALL + COUNT( * ) AS col0, ( - - 82 ) FROM tab2
----
3
82

skipif mysql # not compatible
query II rowsort label-4094
SELECT ALL + COUNT ( * ) AS col0, ( - - 82 ) FROM tab2
----
3
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + col1 + + col1 + + - 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col0, col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT + 65 * + col1 + - 55 * col0 FROM tab0 AS cor0
----
-3420
-5270
4440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT DISTINCT CAST( ( - + col1 ) AS SIGNED ) * col1 + 4 * col1 * + + col2 + - col1 AS col0 FROM tab0
----
378
394
8586

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT CAST ( ( - + col1 ) AS INTEGER ) * col1 + 4 * col1 * + + col2 + - col1 AS col0 FROM tab0
----
378
394
8586

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4099
SELECT 11 + + + 70 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
81
NULL
81
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4099
SELECT 11 + + + 70 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
81
NULL
81
NULL
81
NULL

query I rowsort
SELECT - col0 * 47 + + - col1 FROM tab0 AS cor0
----
-4110
-4560
-786

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 94 = 53
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 54 - - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4103
SELECT - 97 + - 30, + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-127
NULL
-127
NULL
-127
NULL

skipif mysql # not compatible
query II rowsort label-4103
SELECT - 97 + - 30, + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-127
NULL
-127
NULL
-127
NULL

query I rowsort
SELECT - col1 * ( + - col2 ) + - + col2 AS col0 FROM tab1 AS cor0
----
1248
236
3128

query I rowsort
SELECT - 11 + col2 + + + 29 FROM tab0 AS cor0
----
117
28
65

query I rowsort
SELECT DISTINCT - - 79 AS col0 FROM tab1 cor0
----
79

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND 95
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT - CAST( + 52 AS SIGNED ) FROM tab0 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-4108
SELECT - CAST ( + 52 AS INTEGER ) FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT 64 * + COUNT( * ) AS col2 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-4109
SELECT 64 * + COUNT ( * ) AS col2 FROM tab1
----
192

query II rowsort
SELECT + col2, ( col0 ) AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT + 25 + COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + 25 + COUNT ( * ) FROM tab1
----
28

query I rowsort
SELECT 60 * ( - - 80 ) * col2 * - col1 + - - 70 + + ( - 60 ) + - - col0 * col1 + + - col2 - - 21 AS col1 FROM tab1 AS cor0
----
-1415603
-15336560
-6450551

query I rowsort
SELECT - col0 - + 40 FROM tab2 AS cor0
----
-104
-115
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT + SUM( - - ( - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + SUM ( - - ( - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT - col1 DIV + + 33 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4115
SELECT - col1 / + + 33 FROM tab2
----
-1
-2
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col0 <= - 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 48 AS col1 FROM tab0 AS cor0 WHERE NOT 9 + - col0 + + col2 >= ( + - col1 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL + col0 * - 6 AS col2 FROM tab0
----
-522
-582
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT - 13 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT ALL ( - col0 ) DIV + + 57 AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL ( - col0 ) / + + 57 AS col2 FROM tab0
----
-1
-1
0

query I rowsort
SELECT ALL - col2 + + + col0 AS col1 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT DISTINCT 14 + + - 72 * + + COUNT( * ) * + MIN( + - col1 ), + 80 AS col2 FROM tab1
----
10166
80

skipif mysql # not compatible
query II rowsort label-4123
SELECT DISTINCT 14 + + - 72 * + + COUNT ( * ) * + MIN ( + - col1 ), + 80 AS col2 FROM tab1
----
10166
80

query II rowsort
SELECT ALL 21 AS col1, col2 FROM tab1
----
21
59
21
68
21
96

query II rowsort
SELECT ALL col1 AS col0, col1 * + col2 FROM tab1
----
14
1344
47
3196
5
295

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 42 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 6 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT + + 78 + - col1 AS col2 FROM tab0 AS cor0
----
-3
57
77

query I rowsort
SELECT DISTINCT - col2 - - col0 * - - col0 * - + col0 FROM tab0 AS cor0
----
-3422
-658513
-912772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4131
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + CAST( 65 AS SIGNED ) BETWEEN NULL AND - - 13
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + CAST ( 65 AS INTEGER ) BETWEEN NULL AND - - 13
----
0

query I rowsort
SELECT ALL - - col2 - + 20 FROM tab2 AS cor0
----
20
3
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT - CAST( - 8 AS SIGNED ) - col0 FROM tab1 cor0
----
-43
-77
-83

skipif mysql # not compatible
query I rowsort label-4133
SELECT - CAST ( - 8 AS INTEGER ) - col0 FROM tab1 cor0
----
-43
-77
-83

query I rowsort
SELECT 89 - - 85 - - col2 * col2 FROM tab0 cor0
----
2383
274
9975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4135
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 25 - col0 FROM tab1 AS cor0
----
-26
-60
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - COUNT( * ) + 59 * - COUNT( * ) * + - 39 FROM tab0 AS cor0
----
6900

skipif mysql # not compatible
query I rowsort label-4137
SELECT - COUNT ( * ) + 59 * - COUNT ( * ) * + - 39 FROM tab0 AS cor0
----
6900

query I rowsort
SELECT DISTINCT - + col1 - - - col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4139
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - col0, - col0 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-4139
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - col0, - col0 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 72 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + ( col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT COUNT( + 47 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4142
SELECT COUNT ( + 47 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + - 49 * 20 + - - SUM( ALL - + col0 ) FROM tab2 AS cor0
----
-1165

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + - 49 * 20 + - - SUM ( ALL - + col0 ) FROM tab2 AS cor0
----
-1165

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - + col1 AND 49 + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4145
SELECT ALL MIN( 39 ) DIV + - 84 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL MIN ( 39 ) / + - 84 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT + ( + 13 ) AS col0 FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - 85 * - - 45 col1 FROM tab2 AS cor0
----
-195075
-256275
-294525

query I rowsort
SELECT - 71 * - col1 AS col0 FROM tab2 AS cor0
----
3621
4757
5467

query I rowsort
SELECT DISTINCT - col2 * - 1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + - MIN( - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4150
SELECT + - MIN ( - - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4151
SELECT ALL 78 AS col0, 14 + - COUNT( * ) * + 70 * - ( + - COUNT( - col2 ) ) AS col0 FROM tab0 AS cor0
----
78
-616

skipif mysql # not compatible
query II rowsort label-4151
SELECT ALL 78 AS col0, 14 + - COUNT ( * ) * + 70 * - ( + - COUNT ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
78
-616

query I rowsort
SELECT 14 * + 30 FROM tab0 cor0
----
420
420
420

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - + col1 + + + col1 IS NULL
----

query I rowsort
SELECT - ( - + 83 ) FROM tab0 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT - MIN( DISTINCT - 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - MIN ( DISTINCT - 82 ) FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT COUNT( * ) * - 53 FROM tab1, tab2 AS cor0
----
-477

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT COUNT ( * ) * - 53 FROM tab1, tab2 AS cor0
----
-477

query I rowsort
SELECT ALL - col2 - col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4158
SELECT * FROM tab1 WHERE NOT - col0 * 59 * + + 50 * + col2 * - col1 * - col2 + - - 85 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4158
SELECT * FROM tab1 WHERE NOT - col0 * 59 * + + 50 * + col2 * - col1 * - col2 + - - 85 < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 + + + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL col2 + - - 44 + + 66 AS col2 FROM tab1 AS cor0
----
169
178
206

query II rowsort
SELECT DISTINCT - + col2 * col2 * - - 87 * - - col2, 93 AS col0 FROM tab0 AS cor0
----
-84416013
93
-87000
93
-9032601
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - + COUNT( * ) + + + 99 FROM tab2 AS cor0 WHERE - col1 + col1 + 74 / col1 * + + 63 NOT IN ( - col1, + col0 )
----
96

skipif mysql # not compatible
query I rowsort label-4162
SELECT - + COUNT ( * ) + + + 99 FROM tab2 AS cor0 WHERE - col1 + col1 + 74 / col1 * + + 63 NOT IN ( - col1, + col0 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4163
SELECT COUNT( * ) * + - CAST( NULL AS DECIMAL ) + - + 22 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT COUNT ( * ) * + - CAST ( NULL AS REAL ) + - + 22 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL + 35 + - MIN( col1 ) * + - ( - COUNT( * ) ) AS col2 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + 35 + - MIN ( col1 ) * + - ( - COUNT ( * ) ) AS col2 FROM tab1
----
20

query I rowsort
SELECT DISTINCT col0 * - col1 + + col1 FROM tab0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4166
SELECT ALL col2 + + CAST( col1 AS SIGNED ) AS col2, - col0 AS col0 FROM tab2
----
117
-64
125
-75
74
-46

skipif mysql # not compatible
query II rowsort label-4166
SELECT ALL col2 + + CAST ( col1 AS INTEGER ) AS col2, - col0 AS col0 FROM tab2
----
117
-64
125
-75
74
-46

query I rowsort
SELECT DISTINCT 59 + - col1 AS col2 FROM tab2 AS cor0
----
-18
-8
8

query II rowsort
SELECT - col0, + col1 * 28 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL - ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE ( + col0 >= + - 43 )
----
-3

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE ( + col0 >= + - 43 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL - CAST( + 21 AS SIGNED ) AS col2 FROM tab0 cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - CAST ( + 21 AS INTEGER ) AS col2 FROM tab0 cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT col0 - 35 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
1660
3562
437

query I rowsort
SELECT ALL + + col2 - - col0 AS col1 FROM tab2 cor0
----
104
133
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE 27 IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL ( + 40 ) AS col1 FROM tab0
----
40
40
40

query I rowsort
SELECT - 1 * - col0 AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + COUNT( * ) * + 18 * + 93 AS col2 FROM tab2
----
5022

skipif mysql # not compatible
query I rowsort label-4178
SELECT + COUNT ( * ) * + 18 * + 93 AS col2 FROM tab2
----
5022

query II rowsort
SELECT col2 AS col1, + col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4180
SELECT 46 DIV COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-4180
SELECT 46 / COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
45

query I rowsort
SELECT - 69 * col2 FROM tab0
----
-3243
-6831
-690

query II rowsort
SELECT DISTINCT + col1 AS col2, - 58 FROM tab0
----
1
-58
21
-58
81
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 * col2 IS NOT NULL
----

query II rowsort
SELECT + + col0 AS col2, + 14 AS col0 FROM tab2 cor0
----
46
14
64
14
75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - ( MAX( ALL col2 ) ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4185
SELECT - ( MAX ( ALL col2 ) ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT ( + ( COUNT( * ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT ( + ( COUNT ( * ) ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT MIN( ALL ( - ( 86 ) ) ) col2 FROM tab1
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4187
SELECT MIN ( ALL ( - ( 86 ) ) ) col2 FROM tab1
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 60 col1 FROM tab1 WHERE NOT ( NOT NULL BETWEEN col0 AND + 96 )
----

query I rowsort
SELECT + 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT - + ( + 92 ) FROM tab0 AS cor0
----
-92

query I rowsort
SELECT - 90 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 > - + col2
----

query I rowsort
SELECT - col1 * - + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col2 + - col1 - + 99 * - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT - COUNT( + - col1 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4196
SELECT - COUNT ( + - col1 ) col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT + ( - col0 ) DIV - + 14 AS col1 FROM tab2 WHERE NOT - - col1 IS NULL
----
3
4
5

skipif mysql # not compatible
query I rowsort label-4197
SELECT + ( - col0 ) / - + 14 AS col1 FROM tab2 WHERE NOT - - col1 IS NULL
----
3
4
5

query I rowsort
SELECT 30 * + 16 FROM tab1
----
480
480
480

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL + MIN( + - ( + + ( + 20 ) ) ) AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + MIN ( + - ( + + ( + 20 ) ) ) AS col2 FROM tab2
----
-20

query I rowsort
SELECT + col0 + col1 FROM tab2 WHERE NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + - - 45 * - + COUNT( * ) AS col0 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + - - 45 * - + COUNT ( * ) AS col0 FROM tab0
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT + col1 * col0 * + - CAST( - col1 AS SIGNED ) * + + col1 + - - col2 FROM tab1
----
10684
140040
9447961

skipif mysql # not compatible
query I rowsort label-4202
SELECT + col1 * col0 * + - CAST ( - col1 AS INTEGER ) * + + col1 + - - col2 FROM tab1
----
10684
140040
9447961

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT SUM( DISTINCT col1 ) + + 81 FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT SUM ( DISTINCT col1 ) + + 81 FROM tab0
----
184

query II rowsort
SELECT DISTINCT + - col0 AS col1, 97 AS col0 FROM tab0 AS cor0
----
-15
97
-87
97
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 + + - 9 NOT BETWEEN col0 + - col1 AND + + 34
----

query I rowsort
SELECT - 46 * + 55 FROM tab1 AS cor0
----
-2530
-2530
-2530

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT MIN( - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT MIN ( - col0 ) AS col2 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - + ( + 84 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT + 18 - + COUNT( * ) + + SUM( + col1 ) * + 18 * - + 57 FROM tab2
----
-200055

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT + 18 - + COUNT ( * ) + + SUM ( + col1 ) * + 18 * - + 57 FROM tab2
----
-200055

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - + SUM( col1 ) - + + COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4212
SELECT - + SUM ( col1 ) - + + COUNT ( * ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL + 8 + - 83 AS col1 FROM tab0 AS cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4215
SELECT MAX( DISTINCT - col2 ) + + - COUNT( * ) FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - col0 IS NULL
----
-26

skipif mysql # not compatible
query I rowsort label-4215
SELECT MAX ( DISTINCT - col2 ) + + - COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col0 IS NULL
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT 97 * - COUNT( * ) FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT 97 * - COUNT ( * ) FROM tab2 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - SUM( ALL - 44 ) AS col0 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-4217
SELECT - SUM ( ALL - 44 ) AS col0 FROM tab1
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT - col2 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4218
SELECT - col2 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col0 * col0 IS NOT NULL
----

query I rowsort
SELECT + 86 * - + 59 AS col0 FROM tab0
----
-5074
-5074
-5074

query I rowsort
SELECT ALL 65 * - - col2 FROM tab2
----
1495
2600
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL + MAX( ALL + + 17 ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + MAX ( ALL + + 17 ) AS col1 FROM tab1
----
17

query I rowsort
SELECT ALL 14 FROM tab2 WHERE NOT col2 IS NULL
----
14
14
14

query I rowsort
SELECT DISTINCT + 71 + + + 41 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
112

query II rowsort
SELECT DISTINCT - col1 AS col1, - 83 * - col2 - - - 13 AS col1 FROM tab0 cor0
----
-1
8204
-21
817
-81
3888

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 0 * - col1 ) IS NOT NULL
----

query II rowsort
SELECT + 26 * - 74 AS col2, ( + 71 ) AS col2 FROM tab2 AS cor0
----
-1924
71
-1924
71
-1924
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT DISTINCT + 57 AS col2, MAX( col0 ) AS col2 FROM tab1 AS cor0
----
57
91

skipif mysql # not compatible
query II rowsort label-4228
SELECT DISTINCT + 57 AS col2, MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
57
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT - SUM( ALL - col0 ) + + + MAX( ALL col0 ) FROM tab2 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-4229
SELECT - SUM ( ALL - col0 ) + + + MAX ( ALL col0 ) FROM tab2 AS cor0
----
260

query I rowsort
SELECT DISTINCT + col0 + + col1 + col1 + 59 FROM tab0 AS cor0 WHERE NOT col0 + col2 + + col2 + - 1 = - 64
----
158
188
236

query I rowsort
SELECT - - col2 + + + col1 + - col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col1 + - col0 AS col0, col0 FROM tab1
----
-138
91
-65
51
-90
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4235
SELECT ALL CAST( - col1 AS SIGNED ) + col1 DIV + col2 AS col2 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL CAST ( - col1 AS INTEGER ) + col1 / + col2 AS col2 FROM tab2
----
-49
-66
-76

query I rowsort
SELECT - 88 + + 88 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT + col1 DIV - 43 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4237
SELECT + col1 / - 43 AS col2 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - - - 57 + - col2 - - col2 col2 FROM tab0 AS cor0
----
-42
30
40

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 - + col0 - col0 + + 18 * + col2 + - 65 AS col0 FROM tab0 AS cor0
----
-49
1622
798

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4241
SELECT ALL - 1 AS col0, - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-4241
SELECT ALL - 1 AS col0, - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query II rowsort
SELECT DISTINCT col1 * + col2, + col2 FROM tab2
----
1173
23
3080
40
3886
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + - col1
----

query II rowsort
SELECT ALL col1 * + + col2 AS col1, - col0 FROM tab1
----
1344
-51
295
-85
3196
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT MIN( + - col2 ) * - COUNT( * ) col0 FROM tab2
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4246
SELECT MIN ( + - col2 ) * - COUNT ( * ) col0 FROM tab2
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-4247
SELECT ALL - 36 DIV - col0 * + 15 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - 36 / - col0 * + 15 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT 31 * + COUNT( * ) col2 FROM tab0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4248
SELECT 31 * + COUNT ( * ) col2 FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( - 1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( - 1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL - MAX( - 21 ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - MAX ( - 21 ) AS col2 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - COUNT( * ) - + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * col2 / + - 83
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT - COUNT ( * ) - + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * col2 / + - 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT DISTINCT - + CAST( + + col2 AS SIGNED ) * + 93 + + 68 + - - 17 FROM tab0 AS cor0
----
-4286
-845
-9122

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - + CAST ( + + col2 AS INTEGER ) * + 93 + + 68 + - - 17 FROM tab0 AS cor0
----
-4286
-845
-9122

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT - 18 * + + COUNT( ALL 60 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - 18 * + + COUNT ( ALL 60 ) FROM tab0 AS cor0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL + SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - MIN( 94 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4256
SELECT - MIN ( 94 ) FROM tab2 AS cor0
----
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + 31
----

query II rowsort
SELECT + - col2 * col0 * 6 AS col2, + col0 AS col1 FROM tab2 AS cor0
----
-15360
64
-26100
75
-6348
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL ( + CAST( + + MIN( col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL ( + CAST ( + + MIN ( col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT + ( + CAST( + 9 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-4260
SELECT + ( + CAST ( + 9 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT ALL - ( + - col1 ) * + ( + - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT col1 DIV 72 + + col0 FROM tab0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-4263
SELECT col1 / 72 + + col0 FROM tab0
----
16
87
97

query I rowsort
SELECT ALL - col1 + ( + + col1 ) - + + col1 AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + ( + col0 ) FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT ALL + col2 + - - col0 + col1 DIV - 16 FROM tab1 AS cor0
----
144
147
157

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + col2 + - - col0 + col1 / - 16 FROM tab1 AS cor0
----
144
147
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4267
SELECT DISTINCT + 74 * - MAX( ALL col0 ) AS col0, + 27 / CAST( NULL AS SIGNED ) + MIN( ALL + - col1 ) FROM tab2 cor0 WHERE ( + - 49 ) IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT + 74 * - MAX ( ALL col0 ) AS col0, + 27 / CAST ( NULL AS INTEGER ) + MIN ( ALL + - col1 ) FROM tab2 cor0 WHERE ( + - 49 ) IS NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT 18 * COUNT( * ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-4268
SELECT 18 * COUNT ( * ) FROM tab2 cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT ALL - - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 * + 36 AS col0 FROM tab0 AS cor0
----
-2952
-2952
-2952

query I rowsort
SELECT + + 15 + 30 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col2 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + COUNT( DISTINCT + + 94 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4273
SELECT + COUNT ( DISTINCT + + 94 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT + MAX( ALL - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + MAX ( ALL - - col0 ) FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 14 ) col1 FROM tab2 AS cor0
----
-14
-14
-14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 3 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 26, + col0 + 60, - col0, col0 - 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT - - 43 FROM tab1 WHERE NOT 2 + + CAST( + ( + col1 ) AS SIGNED ) IS NULL
----
43
43
43

skipif mysql # not compatible
query I rowsort label-4278
SELECT - - 43 FROM tab1 WHERE NOT 2 + + CAST ( + ( + col1 ) AS INTEGER ) IS NULL
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL 59 DIV col1 DIV + ( col2 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL 59 / col1 / + ( col2 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT ALL MIN( DISTINCT 50 ) AS col1, - 94 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-4280
SELECT ALL MIN ( DISTINCT 50 ) AS col1, - 94 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
-94

query III rowsort
SELECT * FROM tab1 WHERE NOT + 26 * col2 + 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT COUNT( * ) * + 75 AS col1 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-4282
SELECT COUNT ( * ) * + 75 AS col1 FROM tab1
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4283
SELECT + COUNT( * ) DIV - - 84 * 7 AS col0, + COUNT( * ) AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-4283
SELECT + COUNT ( * ) / - - 84 * 7 AS col0, + COUNT ( * ) AS col1 FROM tab0
----
0
3

query II rowsort
SELECT DISTINCT + 81, 88 AS col0 FROM tab0 AS cor0
----
81
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL MIN( - col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL MIN ( - col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 > + col0 - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT - 16 * + MAX( ALL 20 ) FROM tab1 WHERE col1 IS NOT NULL
----
-320

skipif mysql # not compatible
query I rowsort label-4287
SELECT - 16 * + MAX ( ALL 20 ) FROM tab1 WHERE col1 IS NOT NULL
----
-320

query I rowsort
SELECT - ( + 37 ) FROM tab2
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + COUNT( * ) * SUM( ALL - - col2 ) + - COUNT( * ) FROM tab0
----
465

skipif mysql # not compatible
query I rowsort label-4289
SELECT + COUNT ( * ) * SUM ( ALL - - col2 ) + - COUNT ( * ) FROM tab0
----
465

query I rowsort
SELECT 12 + col1 + - col0 AS col1 FROM tab1
----
-25
-32
-68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + 63 + - MIN( + 59 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4292
SELECT + 63 + - MIN ( + 59 ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT ALL + - 89 + - + 13 * 5 AS col0 FROM tab1 AS cor0
----
-154
-154
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT ALL - - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT 44 BETWEEN + 71 AND + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4294
SELECT ALL - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT 44 BETWEEN + 71 AND + col1
----
NULL
NULL
NULL

query I rowsort
SELECT - + 77 + - col0 FROM tab1 AS cor0
----
-128
-162
-168

query I rowsort
SELECT ALL col1 * col1 * - - col2 + - 99 - - col2 FROM tab2 AS cor0
----
237101
260321
59747

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + + SUM( DISTINCT + 0 ) * - 42 - - 64 col2 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4297
SELECT ALL + + SUM ( DISTINCT + 0 ) * - 42 - - 64 col2 FROM tab2 AS cor0
----
64

query I rowsort
SELECT DISTINCT - - 57 AS col2 FROM tab1 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT DISTINCT - 18 DIV - - 78 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT - 18 / - - 78 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4300
SELECT - col2 AS col0, - col0 DIV - 67 + + col0 AS col2 FROM tab0
----
-10
88
-47
15
-99
98

skipif mysql # not compatible
query II rowsort label-4300
SELECT - col2 AS col0, - col0 / - 67 + + col0 AS col2 FROM tab0
----
-10
88
-47
15
-99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT COUNT( ( - - 5 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT COUNT ( ( - - 5 ) ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT col1 + + 28 DIV + col2 col0 FROM tab0 WHERE NOT - ( col0 ) + + col2 - - - 38 IS NULL
----
1
23
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4302
SELECT DISTINCT col1 + + 28 / + col2 col0 FROM tab0 WHERE NOT - ( col0 ) + + col2 - - - 38 IS NULL
----
1
23
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT + MIN( ALL - - 4 ) col1 FROM tab2
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4303
SELECT DISTINCT + MIN ( ALL - - 4 ) col1 FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4304
SELECT * FROM tab2 WHERE col1 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4304
SELECT * FROM tab2 WHERE col1 >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT ALL col2 DIV + col2 + col2 - - col1 FROM tab0
----
101
129
32

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL col2 / + col2 + col2 - - col1 FROM tab0
----
101
129
32

query I rowsort
SELECT ALL - col0 - + + 34 FROM tab2
----
-109
-80
-98

query I rowsort
SELECT ALL 13 + 40 + + - col1 FROM tab2 AS cor0
----
-14
-24
2

query I rowsort
SELECT + col1 - - + col1 * + - 85 + col2 FROM tab0 cor0
----
-1754
-6757
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + - col0 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76 * - 32 AS col1, 79 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f4ed9558b2e73654ceb4ea3314a304b4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + - COUNT( col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4314
SELECT + - COUNT ( col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 13 * - - 51 + - 80 FROM tab1 AS cor0 WHERE NOT - 7 IS NULL
----
583
583
583

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - MIN( + col0 ) col2 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4316
SELECT - MIN ( + col0 ) col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT DISTINCT - SUM( col0 ) FROM tab2 WHERE col2 IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - SUM ( col0 ) FROM tab2 WHERE col2 IS NOT NULL
----
-185

query I rowsort
SELECT + ( + + 8 ) AS col1 FROM tab0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 + - + 77 col2, - 34 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-13
54400
-2
114376
-31
17986

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + 51
----

query II rowsort
SELECT - - col1 + + col0 AS col1, col1 FROM tab0 AS cor0
----
108
21
96
81
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT COUNT( * ) + - 99 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4322
SELECT COUNT ( * ) + - 99 FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4323
SELECT DISTINCT + 70 AS col1, + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
70
NULL

skipif mysql # not compatible
query II rowsort label-4323
SELECT DISTINCT + 70 AS col1, + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
70
NULL

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - - col1 - 9 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL = + col2 + + col1 )
----

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 59 IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL <= - col2 - 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + MAX( ALL 71 ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4328
SELECT + MAX ( ALL 71 ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4329
SELECT - CAST( NULL AS SIGNED ) + - 13 * - COUNT( * ) col0, - 74 FROM tab2 AS cor0
----
NULL
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4329
SELECT - CAST ( NULL AS INTEGER ) + - 13 * - COUNT ( * ) col0, - 74 FROM tab2 AS cor0
----
NULL
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT CAST( NULL AS SIGNED ) * 93 + + COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4330
SELECT CAST ( NULL AS INTEGER ) * 93 + + COUNT ( * ) col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT - col0 DIV 19 + - + 95 AS col0 FROM tab1
----
-97
-99
-99

skipif mysql # not compatible
query I rowsort label-4331
SELECT - col0 / 19 + - + 95 AS col0 FROM tab1
----
-97
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT SUM( + + 29 ) + - COUNT( * ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4332
SELECT SUM ( + + 29 ) + - COUNT ( * ) AS col2 FROM tab2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4333
SELECT DISTINCT ( + + MAX( ALL ( - col0 ) ) ) DIV MAX( DISTINCT col2 ) * + 91 - + + 69 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT ( + + MAX ( ALL ( - col0 ) ) ) / MAX ( DISTINCT col2 ) * + 91 - + + 69 FROM tab0
----
-69

query III rowsort
SELECT ALL * FROM tab0 WHERE + 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - - + col2 * - col0 * col0 + - col1 FROM tab0 AS cor0
----
-10671
-75798
-931589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT ALL + ( - CAST( - - col1 AS SIGNED ) ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL + ( - CAST ( - - col1 AS INTEGER ) ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4337
SELECT COUNT( * ) DIV - - 12 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT COUNT ( * ) / - - 12 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL - 65 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - 65 / + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - + COUNT( 40 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4339
SELECT - + COUNT ( 40 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + ( + col0 ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4341
SELECT - col0 AS col1, + ( - col0 ) + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-4341
SELECT - col0 AS col1, + ( - col0 ) + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT - 12 FROM tab0 AS cor0 WHERE NOT 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - - MIN( 32 ) AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4343
SELECT - - MIN ( 32 ) AS col1 FROM tab1 AS cor0
----
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + - 60 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4346
SELECT COUNT( - - col1 ) DIV - ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4346
SELECT COUNT ( - - col1 ) / - ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL COUNT( DISTINCT + + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL COUNT ( DISTINCT + + col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL + MIN( DISTINCT + 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + MIN ( DISTINCT + 71 ) FROM tab0
----
71

query II rowsort
SELECT 54 AS col2, - col2 FROM tab1
----
54
-59
54
-68
54
-96

query I rowsort
SELECT DISTINCT + 30 * col0 + - + col0 - - col2 FROM tab0
----
2533
2912
482

query II rowsort
SELECT ALL - col0 * + + col0 AS col0, - 56 FROM tab0
----
-225
-56
-7569
-56
-9409
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT + - col2 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT + - col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT + - COUNT( * ) * - - SUM( DISTINCT 31 ) + + 37 * - ( - 85 ) FROM tab1 AS cor0
----
3052

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + - COUNT ( * ) * - - SUM ( DISTINCT 31 ) + + 37 * - ( - 85 ) FROM tab1 AS cor0
----
3052

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT DISTINCT - - COUNT( * ) AS col2, + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4354
SELECT DISTINCT - - COUNT ( * ) AS col2, + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 27 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT COUNT( * ) + + - COUNT( ALL + col1 ) + - ( - - 50 ) AS col1 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-4356
SELECT COUNT ( * ) + + - COUNT ( ALL + col1 ) + - ( - - 50 ) AS col1 FROM tab1
----
-50

query I rowsort
SELECT col2 * + col2 + - 91 AS col1 FROM tab0
----
2118
9
9710

query I rowsort
SELECT ALL col2 * - col2 + - col0 AS col1 FROM tab1
----
-3566
-4715
-9267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE - 53 - CAST( - - 32 AS SIGNED ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE - 53 - CAST ( - - 32 AS INTEGER ) <> NULL
----
0

query I rowsort
SELECT 62 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col1 * - col1 * - + col0 AS col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT - col0 * - - col1 - + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1428
-850
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT 32 * - COUNT( * ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4363
SELECT 32 * - COUNT ( * ) AS col1 FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 10 col2 FROM tab1
----
590
680
960

query I rowsort
SELECT 50 * + + 42 FROM tab2
----
2100
2100
2100

query I rowsort
SELECT ALL col2 + 77 FROM tab0
----
124
176
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT + ( + + col2 ) - + + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-4367
SELECT + ( + + col2 ) - + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT + 36 - + - col2 FROM tab1
----
104
132
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT - 85 DIV + - col2 AS col0 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4369
SELECT - 85 / + - col2 AS col0 FROM tab2
----
1
2
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col1 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT ( col0 ) * + + col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab0 WHERE col2 * + 16 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4374
SELECT * FROM tab1 WHERE NOT - CAST( + col0 AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4374
SELECT * FROM tab1 WHERE NOT - CAST ( + col0 AS INTEGER ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT 98 + + COUNT( 54 ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-4375
SELECT 98 + + COUNT ( 54 ) FROM tab1
----
101

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4377
SELECT ALL * FROM tab1 WHERE ( + col2 * - col2 + - col2 ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4377
SELECT ALL * FROM tab1 WHERE ( + col2 * - col2 + - col2 ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col2 - col2 * 74 AS col0 FROM tab0
----
-3525
-7425
-750

query I rowsort
SELECT - 28 * - col1 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL - SUM( col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - SUM ( col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT col2 + col0 * col2 AS col1 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL + MAX( ALL col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + MAX ( ALL col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( * ) + 21 AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( * ) + 21 AS col2 FROM tab2
----
24

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 >= NULL
----

query I rowsort
SELECT ALL 57 FROM tab0 WHERE NOT + col1 * - 33 + - col2 * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 66 < 99
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT ALL - ( MAX( + CAST( NULL AS SIGNED ) ) ) FROM tab0 WHERE NOT - 16 * col1 < col0 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - ( MAX ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 WHERE NOT - 16 * col1 < col0 + col0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> col0 + - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT DISTINCT 10 * COUNT( * ) AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT 10 * COUNT ( * ) AS col2 FROM tab2
----
30

query I rowsort
SELECT col2 - + 12 * - 50 FROM tab1
----
659
668
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4395
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - 84 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - 84 FROM tab2
----
-252

query I rowsort
SELECT col2 * 60 AS col1 FROM tab2
----
1380
2400
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL 16 - + COUNT( * ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL 16 - + COUNT ( * ) FROM tab2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT ALL - CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4398
SELECT ALL - CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT col0 DIV 45 + - 78 FROM tab1 cor0
----
-76
-77
-77

skipif mysql # not compatible
query I rowsort label-4399
SELECT col0 / 45 + - 78 FROM tab1 cor0
----
-76
-77
-77

query III rowsort
SELECT * FROM tab1 WHERE - col0 + 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT + SUM( - col1 ) + COUNT( * ) AS col2 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + SUM ( - col1 ) + COUNT ( * ) AS col2 FROM tab0
----
-100

query I rowsort
SELECT DISTINCT - + col0 + - 82 AS col0 FROM tab2 cor0
----
-128
-146
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + SUM( + ( - col1 ) ) - COUNT( * ) * - COUNT( + 7 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4403
SELECT + SUM ( + ( - col1 ) ) - COUNT ( * ) * - COUNT ( + 7 ) FROM tab0 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4404
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4404
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) <= - 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > ( + ( col0 ) )
----

query I rowsort
SELECT DISTINCT col1 + col0 AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN - col1 AND + 37 - col0
----

query I rowsort
SELECT + col2 + ( + ( + 87 ) - + col0 * 86 ) FROM tab0 AS cor0
----
-1156
-7385
-8156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4409
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - CAST( + col0 AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4409
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - CAST ( + col0 AS INTEGER ) ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT 47 + col2 DIV col0 FROM tab2 cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-4410
SELECT 47 + col2 / col0 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT ALL + + ( col0 ) * - col2 - + 78 FROM tab2 AS cor0
----
-1136
-2638
-4428

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT ALL 67 * + col0 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT + 28 + - - ( - col0 ) + col0 AS col2 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT COUNT( DISTINCT - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT COUNT ( DISTINCT - col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT - 95 + - + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT - 95 + - + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col0 FROM tab1
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL + col1 / - 68 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + col1 / - 68 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 / + 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col0 FROM tab0
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) * col1 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT - 47 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4422
SELECT - 47 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 60 AS col2 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT + SUM( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) * + 6 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT + SUM ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) * + 6 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT col1 * + 46 AS col0 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT - + 64 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT 36 * - col2 / - CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT 36 * - col2 / - CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + 97 * - col0 * col2 + col2 FROM tab1
----
-2432216
-28211024
-6648672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT + 82 + + 35 - - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT + 82 + + 35 - - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 * + col2 ) AND + 85 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT DISTINCT - + col1 DIV 57 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - + col1 / 57 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + + col0 + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 0 IS NULL
----
102
170
182

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IS NULL AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 6 AS col2 FROM tab0 WHERE - + 11 IS NOT NULL
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT SUM( DISTINCT - + col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4436
SELECT SUM ( DISTINCT - + col1 ) AS col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL IN ( + + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-4437
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL IN ( + + 71 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - + 33 col2, col0 AS col2 FROM tab0
----
-132
97
-43
87
-80
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 41 + - col1 * + col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4440
SELECT - CAST( - 83 AS SIGNED ) col2, + col2 AS col0 FROM tab2
----
83
23
83
40
83
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4440
SELECT - CAST ( - 83 AS INTEGER ) col2, + col2 AS col0 FROM tab2
----
83
23
83
40
83
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4441
SELECT + MIN( ALL - col2 ) AS col1, CAST( 14 AS SIGNED ) * COUNT( * ) AS col0 FROM tab1
----
-96
42

skipif mysql # not compatible
query II rowsort label-4441
SELECT + MIN ( ALL - col2 ) AS col1, CAST ( 14 AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1
----
-96
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL SUM( DISTINCT - + col2 ) + - 56 AS col2 FROM tab0
----
-212

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL SUM ( DISTINCT - + col2 ) + - 56 AS col2 FROM tab0
----
-212

query I rowsort
SELECT ALL 59 * - - col0 * + 6 AS col2 FROM tab2
----
16284
22656
26550

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 72 AND - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - ( MIN( ALL + col1 ) ) AS col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4445
SELECT - ( MIN ( ALL + col1 ) ) AS col0 FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab2 cor0 WHERE NOT + 89 <= - + 54
----
9

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab2 cor0 WHERE NOT + 89 <= - + 54
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT - SUM( col2 ) + + - 91 FROM tab2
----
-212

skipif mysql # not compatible
query I rowsort label-4447
SELECT - SUM ( col2 ) + + - 91 FROM tab2
----
-212

query I rowsort
SELECT ALL col1 + 92 FROM tab0
----
113
173
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT - + 37 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4449
SELECT - + 37 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-111

query I rowsort
SELECT DISTINCT - + 50 FROM tab2 AS cor0 WHERE 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - MIN( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - MIN ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4452
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - CAST( 19 AS SIGNED ) + - COUNT( * ) + + 87 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + CAST ( NULL AS REAL ) - CAST ( 19 AS INTEGER ) + - COUNT ( * ) + + 87 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN col1 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL - - 0 - + + COUNT( * ) - - 99 AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - - 0 - + + COUNT ( * ) - - 99 AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + 74 - + col1 AS col0 FROM tab0 AS cor0
----
-7
53
73

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
23
40
58

query I rowsort
SELECT ALL - - col0 * + 27 AS col0 FROM tab2 AS cor0
----
1242
1728
2025

query I rowsort
SELECT - col1 * + - col2 AS col2 FROM tab1
----
1344
295
3196

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 I rowsort
SELECT ALL ( + 25 ) * + - col2 * - + col0 + - col1 AS col2 FROM tab2
----
108683
26399
63923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) * 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4462
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * 89 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - 31 * - COUNT( * ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-4463
SELECT - 31 * - COUNT ( * ) AS col1 FROM tab1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT CAST( NULL AS SIGNED ) / - COUNT( + CAST( col0 AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( + CAST ( col0 AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL 41 FROM tab2 AS cor0 WHERE - ( + CAST( NULL AS SIGNED ) ) + + - col2 - + 96 * + col1 NOT BETWEEN ( col2 ) AND ( 69 )
----

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL 41 FROM tab2 AS cor0 WHERE - ( + CAST ( NULL AS INTEGER ) ) + + - col2 - + 96 * + col1 NOT BETWEEN ( col2 ) AND ( 69 )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 1 BETWEEN - ( - col2 ) + - 40 AND ( NULL )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT + COUNT( * ) * 14 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + COUNT ( * ) * 14 FROM tab1 AS cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN - - ( col2 ) + + col1 + col0 + 45 * + ( 14 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 17 + 95 col2 FROM tab1 AS cor0
----
180
333
894

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT ALL col0 DIV + 77 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL col0 / + 77 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL 83 + + COUNT( * ) AS col2 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL 83 + + COUNT ( * ) AS col2 FROM tab0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col1 AS col2, col0 col2 FROM tab1 AS cor0
----
-196
51
-2209
91
-25
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT + SUM( DISTINCT col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT - + COUNT( * ) col0 FROM tab2 AS cor0 WHERE ( NOT - col2 <= NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT - + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( NOT - col2 <= NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4476
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = 29 + - - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4476
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = 29 + - - CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 45 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT DISTINCT COUNT( * ) * + 9, 40 AS col1 FROM tab0 AS cor0
----
27
40

skipif mysql # not compatible
query II rowsort label-4478
SELECT DISTINCT COUNT ( * ) * + 9, 40 AS col1 FROM tab0 AS cor0
----
27
40

query I rowsort
SELECT DISTINCT - 81 + + 56 * col2 * - col1 FROM tab1 AS cor0
----
-16601
-179057
-75345

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT - + col0 DIV - - 69 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4480
SELECT - + col0 / - - 69 AS col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE ( + col0 * + - col1 + + + 61 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE ( + col0 * + - col1 + + + 61 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT col0 DIV - + col1 col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4482
SELECT col0 / - + col1 col2 FROM tab0
----
-4
-97
0

query II rowsort
SELECT - col0, - 68 + col2 + + + col1 AS col2 FROM tab0
----
-15
60
-87
-37
-97
32

query I rowsort
SELECT 95 + 68 FROM tab0
----
163
163
163

query I rowsort
SELECT ALL - ( + 19 ) AS col0 FROM tab2
----
-19
-19
-19

query III rowsort
SELECT ALL * FROM tab2 WHERE - 78 <= ( col2 * + + col2 * + - 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL MAX( + col1 ) + - COUNT( * ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL MAX ( + col1 ) + - COUNT ( * ) AS col2 FROM tab2
----
74

query I rowsort
SELECT DISTINCT col1 + - 44 AS col0 FROM tab1
----
-30
-39
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT + + ( 26 ) col0 FROM tab0 AS cor0 WHERE ( + col0 ) BETWEEN col0 + + ( + col2 ) AND + CAST( NULL AS SIGNED ) - + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4489
SELECT + + ( 26 ) col0 FROM tab0 AS cor0 WHERE ( + col0 ) BETWEEN col0 + + ( + col2 ) AND + CAST ( NULL AS INTEGER ) - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 69 + col0 - + col2 * + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT col2 DIV - - 6 + - 88 FROM tab2 AS cor0
----
-79
-82
-85

skipif mysql # not compatible
query I rowsort label-4491
SELECT col2 / - - 6 + - 88 FROM tab2 AS cor0
----
-79
-82
-85

query I rowsort
SELECT - 92 + + 65 FROM tab2 AS cor0
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 <= + ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab1 cor0 WHERE - col0 IN ( - - col2 )
----

query I rowsort
SELECT ALL + col1 - + 98 * col0 * 32 FROM tab0 AS cor0
----
-272811
-304191
-46959

query I rowsort
SELECT + ( + - 60 ) AS col0 FROM tab2 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + + MIN( DISTINCT - 49 ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4497
SELECT + + MIN ( DISTINCT - 49 ) FROM tab1 AS cor0
----
-49

query I rowsort
SELECT + col1 - - 79 AS col2 FROM tab0 cor0
----
100
160
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4499
SELECT - COUNT( * ) DIV - 22 + - 13 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4499
SELECT - COUNT ( * ) / - 22 + - 13 FROM tab2 AS cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4501
SELECT + MIN ( + col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT + COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ( - + col2 ) AS col0 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 cor0 WHERE col0 * - 98 * - ( 72 ) IS NULL
----

query II rowsort
SELECT - col2 AS col1, col1 + - col0 AS col1 FROM tab0
----
-10
-66
-47
66
-99
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT 22 >= NULL
----

query I rowsort
SELECT ALL + ( - - col2 ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - - 26 * col1 * col1 FROM tab1 AS cor0
----
5096
57434
650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT + CAST( NULL AS SIGNED ) / - + CAST( - + ( + 94 ) AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT + CAST ( NULL AS INTEGER ) / - + CAST ( - + ( + 94 ) AS INTEGER ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT 99 DIV - 64 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4511
SELECT 99 / - 64 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4513
SELECT ALL col2, 93 DIV + + 53 AS col2 FROM tab1
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-4513
SELECT ALL col2, 93 / + + 53 AS col2 FROM tab1
----
59
1
68
1
96
1

query I rowsort
SELECT ALL - 82 + col0 AS col2 FROM tab1
----
-31
3
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT + + 8 + COUNT( * ) col0, + 16 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4515
SELECT + + 8 + COUNT ( * ) col0, + 16 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17
16

query I rowsort
SELECT 35 + + 56 AS col1 FROM tab0 AS cor0
----
91
91
91

query II rowsort
SELECT ALL + col0 AS col0, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT - - col0 + - col2, - 97 + col2 AS col2 FROM tab2 AS cor0
----
17
-39
23
-74
24
-57

query I rowsort
SELECT DISTINCT 43 * 94 + + col2 + + 33 * + col0 FROM tab2 AS cor0
----
5583
6194
6575

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 / - - col2 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT - COUNT( * ) * - 59 + - 68 FROM tab0 cor0
----
109

skipif mysql # not compatible
query I rowsort label-4521
SELECT - COUNT ( * ) * - 59 + - 68 FROM tab0 cor0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT + + ( - + col2 ) + 59 * - CAST( NULL AS SIGNED ) * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT + + ( - + col2 ) + 59 * - CAST ( NULL AS INTEGER ) * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT - 22 + + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT - 22 + + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 47 + + col1 AS col0 FROM tab1
----
52
61
94

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 93 + - 95 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL - col2 + + - col0 AS col0 FROM tab2
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT col1 DIV + + ( 26 ) AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT col1 / + + ( 26 ) AS col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col0 FROM tab0
----
12
12
12

query I rowsort
SELECT ALL col1 + - - col1 - + + col1 AS col0 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT MIN( DISTINCT - col1 ) col0 FROM tab0 WHERE NULL NOT BETWEEN + 82 AND col1 + + - CAST( + 56 AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4532
SELECT MIN ( DISTINCT - col1 ) col0 FROM tab0 WHERE NULL NOT BETWEEN + 82 AND col1 + + - CAST ( + 56 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT + 49 - - + col0 DIV - - col2 col2 FROM tab1 AS cor0
----
49
50
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4533
SELECT + 49 - - + col0 / - - col2 col2 FROM tab1 AS cor0
----
49
50
50

query I rowsort
SELECT + 33 + col2 AS col1 FROM tab0
----
132
43
80

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 58 * - col2 AS col2 FROM tab0
----
-2726
-5742
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - - COUNT( * ) * - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-549

skipif mysql # not compatible
query I rowsort label-4537
SELECT - - COUNT ( * ) * - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-549

query I rowsort
SELECT ALL 85 * + col0 AS col1 FROM tab0
----
1275
7395
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - col2 * + - col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - col2 * + - col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT 21 + + + col1 IS NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 / - col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 59 * + 33 AS col0 FROM tab0
----
-1947

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 88 * - col1 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT + CAST( - 94 AS SIGNED ) + + col2 * - col1 FROM tab2 cor0
----
-1267
-3174
-3980

skipif mysql # not compatible
query I rowsort label-4547
SELECT + CAST ( - 94 AS INTEGER ) + + col2 * - col1 FROM tab2 cor0
----
-1267
-3174
-3980

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + ( - + COUNT( ALL + + ( - - 19 ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4548
SELECT + ( - + COUNT ( ALL + + ( - - 19 ) ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 74 * + 63 BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - col2 + - 0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT - + COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - + COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL - - ( + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 75, col1 * - col0 col2 FROM tab0 AS cor0
----
-75
-1215
-75
-1827
-75
-97

query II rowsort
SELECT DISTINCT + + 66, 79 * + - col0 AS col0 FROM tab1 AS cor0
----
66
-4029
66
-6715
66
-7189

query I rowsort
SELECT ALL col2 + - - 68 FROM tab2
----
108
126
91

query I rowsort
SELECT col0 + - 31 * 5 AS col1 FROM tab2
----
-109
-80
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ( - COUNT( * ) ) + + 93 * - - MIN( + col0 ) col1 FROM tab0
----
1392

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT ( - COUNT ( * ) ) + + 93 * - - MIN ( + col0 ) col1 FROM tab0
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + MAX( + 86 ) + + + 81 * + ( MIN( 97 ) ) FROM tab1
----
7943

skipif mysql # not compatible
query I rowsort label-4559
SELECT + MAX ( + 86 ) + + + 81 * + ( MIN ( 97 ) ) FROM tab1
----
7943

query I rowsort
SELECT DISTINCT 31 * + col0 + - - col1 FROM tab0
----
2718
3008
546

query I rowsort
SELECT DISTINCT col1 + + 56 FROM tab0
----
137
57
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4562
SELECT DISTINCT * FROM tab2 WHERE - - CAST( col2 AS SIGNED ) * 83 * col2 <= col1
----

skipif mysql # not compatible
query III rowsort label-4562
SELECT DISTINCT * FROM tab2 WHERE - - CAST ( col2 AS INTEGER ) * 83 * col2 <= col1
----

query II rowsort
SELECT ALL - + col0 AS col2, col2 FROM tab2 WHERE 18 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( + + col1 ) + - 73 FROM tab2 cor0
----
-22
-6
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - 37 * + COUNT( * ) * - 93 + - SUM( ALL - - 26 ) FROM tab2 AS cor0
----
10245

skipif mysql # not compatible
query I rowsort label-4566
SELECT - 37 * + COUNT ( * ) * - 93 + - SUM ( ALL - - 26 ) FROM tab2 AS cor0
----
10245

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - COUNT( ALL + - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4567
SELECT - COUNT ( ALL + - col2 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE 40 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4570
SELECT ALL - col1 * + CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4570
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + COUNT( * ) * ( - - COUNT( * ) ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4571
SELECT + COUNT ( * ) * ( - - COUNT ( * ) ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT - 81 + + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( - - col1 ) col1, - 31 * + col1 FROM tab1 AS cor0
----
-14
-434
-47
-1457
-5
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - - MIN( + + ( + 85 ) ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4574
SELECT - - MIN ( + + ( + 85 ) ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT ALL 15 * - - col2 + - col2 - - 23 AS col2 FROM tab1 cor0 WHERE NOT col0 < - + col1
----
1367
849
975

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + MIN( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4576
SELECT + MIN ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - + 36 * - col2 * - ( - - col1 ) FROM tab2 AS cor0
----
-110880
-139896
-42228

query I rowsort
SELECT 78 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query II rowsort label-4579
SELECT DISTINCT COUNT( * ), + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4579
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT + col2 + + + col0 AS col1 FROM tab1 WHERE NOT + col0 - col2 - - col0 IS NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT MAX( ALL - 1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4581
SELECT MAX ( ALL - 1 ) FROM tab1
----
-1

query I rowsort
SELECT - ( - + 36 ) FROM tab1
----
36
36
36

query I rowsort
SELECT DISTINCT - 97 + - ( 34 ) AS col2 FROM tab2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT SUM( + 93 ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT SUM ( + 93 ) FROM tab1 AS cor0
----
279

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) + col1 + - - 56 IS NULL
----

query I rowsort
SELECT ALL + 75 AS col0 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + col0 <= - 64 * + 41
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT col2 + + - col1 * + 26 * - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2673
5470
99029

skipif mysql # not compatible
query I rowsort label-4588
SELECT col2 + + - col1 * + 26 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2673
5470
99029

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE NULL >= 18
----

query I rowsort
SELECT + ( + - col2 ) + - ( + 38 ) FROM tab2 cor0
----
-61
-78
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4592
SELECT ALL SUM( col0 ) AS col0, 36 DIV - COUNT( DISTINCT - 30 ) AS col0 FROM tab0 AS cor0
----
199
-36

skipif mysql # not compatible
query II rowsort label-4592
SELECT ALL SUM ( col0 ) AS col0, 36 / - COUNT ( DISTINCT - 30 ) AS col0 FROM tab0 AS cor0
----
199
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT + COUNT( * ) DIV - - 93 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT + COUNT ( * ) / - - 93 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT 23 DIV - COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4595
SELECT 23 / - COUNT ( * ) FROM tab0
----
-7

query I rowsort
SELECT DISTINCT 67 + 99 * + col1 FROM tab2
----
5116
6700
7690

query II rowsort
SELECT col2 AS col2, 77 AS col1 FROM tab0
----
10
77
47
77
99
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + - 30 FROM tab1
----
-16
-25
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col2 FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT DISTINCT - ( - SUM( DISTINCT col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 / + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - ( - SUM ( DISTINCT col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 / + col2 )
----
NULL

query I rowsort
SELECT DISTINCT 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
33

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col1 col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + col1 * + - 77 AS col2 FROM tab0 AS cor0
----
-1617
-6237
-77

query I rowsort
SELECT ALL col0 * col1 * - col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 * + col2 col0 FROM tab2 cor0
----
1200
1740
690

query I rowsort
SELECT col0 * 22 FROM tab2 AS cor0
----
1012
1408
1650

query I rowsort
SELECT DISTINCT 56 * + col1 AS col0 FROM tab1 AS cor0
----
2632
280
784

query I rowsort
SELECT + 73 + col1 FROM tab0 cor0 WHERE NOT + col1 NOT IN ( - col2 + + - col0, + col2 )
----

query I rowsort
SELECT ALL - col1 * - 79 - - col1 * col2 FROM tab2 AS cor0
----
5202
9163
9179

query I rowsort
SELECT ( - 11 ) FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col1 * + + col2 FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL col0 + - col0, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT + col0 * - col0 * - 59 AS col1 FROM tab2
----
124844
241664
331875

query I rowsort
SELECT DISTINCT + col0 * + 89 FROM tab2 AS cor0
----
4094
5696
6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 + col2 col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 75 FROM tab1 AS cor0 WHERE col0 / + + col1 * + + col0 = NULL
----

query I rowsort
SELECT - col0 + 76 + - col2 FROM tab0 AS cor0
----
-120
-21
14

query I rowsort
SELECT ALL col1 * + ( - - col0 ) FROM tab2 cor0 WHERE NOT - col1 + - + col0 * 77 - + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + COUNT( + col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4622
SELECT + COUNT ( + col0 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL COUNT( col2 ) + - - 55 AS col1 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL COUNT ( col2 ) + - - 55 AS col1 FROM tab0
----
58

query III rowsort
SELECT * FROM tab1 WHERE + - 43 + + + col0 = - - col1
----

query I rowsort
SELECT DISTINCT col2 + + - 45 + + - col0 + - - 16 * - + 61 AS col2 FROM tab0 AS cor0
----
-1019
-1098
-989

query I rowsort
SELECT ALL - + col1 + - - col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT + 13 = + 80 AND NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4627
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT + 13 = + 80 AND NOT NULL IS NULL
----

query I rowsort
SELECT - 38 - + col2 * - - 54 AS col0 FROM tab0 AS cor0
----
-2576
-5384
-578

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT + 6 DIV SUM( + - col1 ) - + - 10 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4629
SELECT + 6 / SUM ( + - col1 ) - + - 10 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - - 56 - - COUNT( * ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4630
SELECT - - 56 - - COUNT ( * ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT col2 - + + col0 AS col1 FROM tab1 cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) - - col0 + - 5 IS NOT NULL AND NOT + 94 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 * + + col2 - + col0 FROM tab1 AS cor0
----
4845
4930
6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 17 col0, - 45 AS col2 FROM tab0 AS cor0
----
17
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - 37
----

query I rowsort
SELECT + col2 + + - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL + SUM( ALL col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL + SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT COUNT( * ) + - + 71 AS col1 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-4638
SELECT COUNT ( * ) + - + 71 AS col1 FROM tab0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT col1 * - 99 + - 42 DIV col0 FROM tab2
----
-5049
-6633
-7623

skipif mysql # not compatible
query I rowsort label-4639
SELECT col1 * - 99 + - 42 / col0 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # DIV for integer division: 
query II rowsort label-4640
SELECT DISTINCT 41 DIV + 96 + + - ( - 80 ) + - 47 * - col1 * col1 AS col0, + col0 AS col1 FROM tab0
----
127
97
20807
87
308447
15

skipif mysql # not compatible
query II rowsort label-4640
SELECT DISTINCT 41 / + 96 + + - ( - 80 ) + - 47 * - col1 * col1 AS col0, + col0 AS col1 FROM tab0
----
127
97
20807
87
308447
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4641
SELECT + 29 FROM tab0 WHERE NULL < - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 29 FROM tab0 WHERE NULL < - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + col2 - + + 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - - COUNT( * ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4644
SELECT - - COUNT ( * ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 = NULL
----
0

query I rowsort
SELECT DISTINCT ( 94 ) FROM tab0
----
94

query I rowsort
SELECT DISTINCT 90 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 5 <> - 97 + - col0
----

query I rowsort
SELECT - 34 * - 45 * - col0 AS col2 FROM tab0 AS cor0
----
-133110
-148410
-22950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT MAX( DISTINCT ( - + col2 ) ) + + + MAX( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > + 12 * + + CAST( - col1 AS SIGNED ) / - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT MAX ( DISTINCT ( - + col2 ) ) + + + MAX ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > + 12 * + + CAST ( - col1 AS INTEGER ) / - + 98
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT DISTINCT - - 75 * 80 * + + col0 - + + CAST( - + col0 AS SIGNED ) * CAST( NULL AS SIGNED ) / + - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT - - 75 * 80 * + + col0 - + + CAST ( - + col0 AS INTEGER ) * CAST ( NULL AS INTEGER ) / + - col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 99 + + col0 AS col1 FROM tab2 AS cor0
----
-24
-35
-53

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4655
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4655
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT - col1 IS NULL
----
-3

query III rowsort
SELECT - 22, col1, + col2 FROM tab2
----
9 values hashing to 2ab196dcc0a9a9daaaeccc627accdf54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT col1 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4657
SELECT col1 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 12 AS col0 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4659
SELECT DISTINCT col0 DIV - - col0 FROM tab2 WHERE 32 DIV - col1 + + 98 NOT IN ( + - col2 * col2 + + - col2 * - 72 DIV CAST( - 45 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT col0 / - - col0 FROM tab2 WHERE 32 / - col1 + + 98 NOT IN ( + - col2 * col2 + + - col2 * - 72 / CAST ( - 45 AS INTEGER ) )
----
1

query II rowsort
SELECT - col1, col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT - col1 * - + 52 * - + ( - - 49 ) AS col2 FROM tab1
----
-119756
-12740
-35672

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 21 + + col0 AS col2 FROM tab1
----
106
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - MIN( 51 ) col0 FROM tab0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4664
SELECT - MIN ( 51 ) col0 FROM tab0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT ALL + - 69 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + - 69 / col1 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col0 * + + col1 * col2 * col2 FROM tab1 AS cor0
----
-1479425
-19776848
-6580224

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 37 * - + 22 IN ( - col0, col0 * + - 88, col0 )
----

query I rowsort
SELECT ALL + 79 * + 41 AS col0 FROM tab1 AS cor0
----
3239
3239
3239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT col1 * + col0 * - col0 + - CAST( col1 AS SIGNED ) * 5 AS col0 FROM tab1
----
-36150
-36484
-389442

skipif mysql # not compatible
query I rowsort label-4669
SELECT col1 * + col0 * - col0 + - CAST ( col1 AS INTEGER ) * 5 AS col0 FROM tab1
----
-36150
-36484
-389442

query I rowsort
SELECT 69 + + 30 FROM tab1
----
99
99
99

query I rowsort
SELECT + col0 + col0 + + 75 * + ( - ( col0 ) ) * + col2 AS col1 FROM tab0
----
-52845
-65076
-720031

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT + MIN( - col2 ) AS col0, 88 AS col2 FROM tab1 AS cor0
----
-96
88

skipif mysql # not compatible
query II rowsort label-4673
SELECT + MIN ( - col2 ) AS col0, 88 AS col2 FROM tab1 AS cor0
----
-96
88

query II rowsort
SELECT ALL col2 + + col2 + + col0 AS col0, col2 AS col2 FROM tab1 AS cor0
----
203
59
227
68
243
96

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col0 + - ( 22 ) + - - col2 FROM tab0 cor0
----
-120
-21
-71

query I rowsort
SELECT DISTINCT - 33 FROM tab0 AS cor0 WHERE + col0 <> 14
----
-33

query I rowsort
SELECT ALL - col1 - + + col0 FROM tab0 AS cor0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col1 * - - col2 - - col1 - col0 col1 FROM tab2 AS cor0
----
237173
260354
59828

query I rowsort
SELECT DISTINCT - 74 AS col0 FROM tab1 AS cor0 WHERE NOT - 48 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4680
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 62 NOT BETWEEN NULL AND + + CAST( NULL AS SIGNED ) / + 60 - - 16 + - col0
----

skipif mysql # not compatible
query III rowsort label-4680
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 62 NOT BETWEEN NULL AND + + CAST ( NULL AS INTEGER ) / + 60 - - 16 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + SUM( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4681
SELECT + SUM ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL 29 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT - col2 - CAST( - col1 AS SIGNED ) FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-4683
SELECT - col2 - CAST ( - col1 AS INTEGER ) FROM tab2
----
28
37
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 < ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT 15 * COUNT( * ) col0 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4685
SELECT 15 * COUNT ( * ) col0 FROM tab2
----
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 65
----

query II rowsort
SELECT + col2, - 54 + - col0 FROM tab0
----
10
-141
47
-69
99
-151

query II rowsort
SELECT 46 AS col2, - col1 AS col2 FROM tab0
----
46
-1
46
-21
46
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col0 ) BETWEEN ( + + col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT 56 * + COUNT( * ) AS col1 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-4690
SELECT 56 * + COUNT ( * ) AS col1 FROM tab2
----
168

query I rowsort
SELECT DISTINCT - col1 + + + 24 + + - col1 * - + col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT ALL + 39 * - COUNT( * ) FROM tab1 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + 39 * - COUNT ( * ) FROM tab1 cor0
----
-117

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT CAST( NULL AS SIGNED ) + + 68 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4695
SELECT CAST ( NULL AS INTEGER ) + + 68 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT MIN( ALL + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4696
SELECT MIN ( ALL + col0 ) FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col1 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ( - 80 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( + col0 ) ) IS NULL
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT - MIN( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4700
SELECT - MIN ( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4701
SELECT ALL + col2 * + 49 + - ( + col1 ) + + CAST( - CAST( + col1 AS SIGNED ) AS SIGNED ) AS col1, col1 * + col1 FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) * - 0 + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4701
SELECT ALL + col2 * + 49 + - ( + col1 ) + + CAST ( - CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col1, col1 * + col1 FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) * - 0 + col1 IS NOT NULL
----

query I rowsort
SELECT - + col0 * - 58 + + + col1 FROM tab2 AS cor0
----
2719
3789
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT + ( - + 97 ) * + COUNT( * ) FROM tab1 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + ( - + 97 ) * + COUNT ( * ) FROM tab1 cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4704
SELECT - COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL ( - - 73 ), 20 AS col2 FROM tab2 AS cor0
----
73
20
73
20
73
20

query II rowsort
SELECT - 36, col0 FROM tab2
----
-36
46
-36
64
-36
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT MAX( DISTINCT - 37 ) AS col0 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT MAX ( DISTINCT - 37 ) AS col0 FROM tab2
----
-37

query I rowsort
SELECT DISTINCT - 82 + 55 FROM tab1
----
-27

query I rowsort
SELECT - ( - ( + - ( 61 ) ) ) AS col1 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT ALL 90 * + col1 + - col1 * - - col0 FROM tab0
----
-7
6075
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT ( col0 ) + CAST( + ( - + 14 ) AS SIGNED ) AS col1 FROM tab2
----
32
50
61

skipif mysql # not compatible
query I rowsort label-4711
SELECT ( col0 ) + CAST ( + ( - + 14 ) AS INTEGER ) AS col1 FROM tab2
----
32
50
61

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT ALL + col1 DIV + 1 + col0 AS col2 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + col1 / + 1 + col0 AS col2 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL col2 * - CAST( NULL AS SIGNED ) + + + col0 + + 23 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) + + + col0 + + 23 * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 46 FROM tab2
----
104
69
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4716
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4716
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT + MIN( + - col0 ) AS col0 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4717
SELECT + MIN ( + - col0 ) AS col0 FROM tab2 cor0
----
-75

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - + 71 - - col0 AS col1 FROM tab1 AS cor0
----
-20
14
20

query I rowsort
SELECT + 48 * - - col1 * - col1 - col1 + - 29 + ( + 15 ) + + col2 AS col1 FROM tab1 AS cor0
----
-106025
-1160
-9340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT + CAST( NULL AS SIGNED ) + - + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT + CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 34 + - col2 / ( 32 ) + + - 46 AS col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + COUNT( col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4723
SELECT + COUNT ( col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 88 * + 52 FROM tab2 AS cor0
----
4576
4576
4576

query I rowsort
SELECT - 96 FROM tab0 AS cor0 WHERE NOT 15 <> col1 / + - col0
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * 86 AS col1 FROM tab1
----
5074
5848
8256

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT DISTINCT + col1 DIV 74 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT + col1 / 74 AS col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL MIN( ALL col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL MIN ( ALL col2 ) AS col1 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT 84 * - col2 / - + 84 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT 84 * - col2 / - + 84 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT DISTINCT + - CAST( 27 AS SIGNED ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + - CAST ( 27 AS INTEGER ) FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT DISTINCT col0 * - - CAST( 32 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT col0 * - - CAST ( 32 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - ( + ( 83 ) ) FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4736
SELECT + + CAST( - COUNT( * ) AS SIGNED ) AS col1, 89 * COUNT( * ) col1 FROM tab1 cor0
----
-3
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4736
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, 89 * COUNT ( * ) col1 FROM tab1 cor0
----
-3
267

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 93 NOT IN ( + col0, 53 / 90, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4738
SELECT * FROM tab1 WHERE NOT - 93 NOT IN ( - - col0, col0 * + 47 + ( + + col1 ) + + - col1 / + ( + + col2 ) * + + 25, - - col0 + + CAST( + col1 AS SIGNED ) * - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4738
SELECT * FROM tab1 WHERE NOT - 93 NOT IN ( - - col0, col0 * + 47 + ( + + col1 ) + + - col1 / + ( + + col2 ) * + + 25, - - col0 + + CAST ( + col1 AS INTEGER ) * - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT - - COUNT( * ) DIV 9 * + + 84 * + MIN( 14 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1176

skipif mysql # not compatible
query I rowsort label-4739
SELECT - - COUNT ( * ) / 9 * + + 84 * + MIN ( 14 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + SUM( + 56 ) col0 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4740
SELECT DISTINCT + SUM ( + 56 ) col0 FROM tab0 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT SUM( + 21 ) + + - 54 AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4741
SELECT SUM ( + 21 ) + + - 54 AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT - col1 + + + 99 AS col2 FROM tab2 AS cor0
----
22
32
48

query I rowsort
SELECT ALL + - col0 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NULL >= NULL
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT + + col1 * 34 DIV col0 + + - 83 + + col0 * + 85 FROM tab1 AS cor0
----
4261
7144
7669

skipif mysql # not compatible
query I rowsort label-4744
SELECT + + col1 * 34 / col0 + + - 83 + + col0 * + 85 FROM tab1 AS cor0
----
4261
7144
7669

query II rowsort
SELECT ALL + 84 + col2 + - col0 AS col2, col0 AS col0 FROM tab1 AS cor0
----
129
51
58
85
61
91

query II rowsort
SELECT DISTINCT + - 64, col1 AS col2 FROM tab1 cor0
----
-64
14
-64
47
-64
5

query I rowsort
SELECT DISTINCT col1 + - + 93 AS col0 FROM tab1
----
-46
-79
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT ALL + CAST( NULL AS SIGNED ) + - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + CAST ( NULL AS INTEGER ) + - - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + ( + col0 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 - - - 68 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 - - - 68 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col2 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 11 + - col0 AS col1 FROM tab2 AS cor0
----
-35
-53
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - SUM( DISTINCT - col2 ) + - + 93 AS col0 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4753
SELECT - SUM ( DISTINCT - col2 ) + - + 93 AS col0 FROM tab2 AS cor0
----
28

query I rowsort
SELECT ALL col2 * - - col0 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + 40 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4756
SELECT ALL - CAST( - ( + + 57 ) AS SIGNED ) AS col2, 87 * 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to b22eefb67b09018aec8c1cd8ce5caa95

skipif mysql # not compatible
query II rowsort label-4756
SELECT ALL - CAST ( - ( + + 57 ) AS INTEGER ) AS col2, 87 * 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to b22eefb67b09018aec8c1cd8ce5caa95

query I rowsort
SELECT DISTINCT - col2 + 43 AS col2 FROM tab2 cor0 WHERE - col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL - MAX( + + 55 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - MAX ( + + 55 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL 54 * - MAX( + - col2 ) FROM tab2
----
1242

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL 54 * - MAX ( + - col2 ) FROM tab2
----
1242

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT DISTINCT 72 DIV 30 AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT 72 / 30 AS col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT DISTINCT COUNT( * ) DIV + + 97 * - 31 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT COUNT ( * ) / + + 97 * - 31 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT + col2 NOT BETWEEN - - 64 AND - + 24 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT col2 DIV - col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4765
SELECT col2 / - col0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 67 * + 40 AS col0 FROM tab2
----
-2680
-2680
-2680

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + 93 * + COUNT( * ) AS col1 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + 93 * + COUNT ( * ) AS col1 FROM tab0
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, 13 FROM tab2 AS cor0
----
23
13
40
13
58
13

query I rowsort
SELECT DISTINCT + col2 * + 96 * col0 - - - col1 FROM tab0 AS cor0
----
67599
83499
921887

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < + col2 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < + col2 * + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT ( + CAST( + + 52 AS SIGNED ) ) FROM tab1
----
52
52
52

skipif mysql # not compatible
query I rowsort label-4772
SELECT ( + CAST ( + + 52 AS INTEGER ) ) FROM tab1
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT DISTINCT col2 DIV - 69 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT col2 / - 69 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 22 / + 82 * 89 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - + 72 FROM tab2 cor0
----
-72

onlyif mysql # DIV for integer division: 
query III rowsort label-4777
SELECT * FROM tab0 cor0 WHERE - 31 < ( - col2 + - 2 DIV 87 * + col1 * + - 51 )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-4777
SELECT * FROM tab0 cor0 WHERE - 31 < ( - col2 + - 2 / 87 * + col1 * + - 51 )
----
87
21
10

query I rowsort
SELECT 24 * col2 AS col1 FROM tab2 AS cor0
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL + + COUNT( * ) col2 FROM tab0 cor0 WHERE NOT ( NOT NULL >= NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4779
SELECT ALL + + COUNT ( * ) col2 FROM tab0 cor0 WHERE NOT ( NOT NULL >= NULL )
----
0

query I rowsort
SELECT DISTINCT - col0 * + - 34 FROM tab2 AS cor0 WHERE NOT - 31 * col1 = NULL
----

query I rowsort
SELECT DISTINCT - + 28 AS col1 FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-4782
SELECT DISTINCT + + 5 + col0 DIV - - 75, 9 * + + col1 AS col1 FROM tab2 AS cor0
----
5
459
5
693
6
603

skipif mysql # not compatible
query II rowsort label-4782
SELECT DISTINCT + + 5 + col0 / - - 75, 9 * + + col1 AS col1 FROM tab2 AS cor0
----
5
459
5
693
6
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT MIN( + CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT MIN ( + CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + ( COUNT( * ) ) + - 12 + + 49 * + COUNT( * ) AS col2 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-4784
SELECT + ( COUNT ( * ) ) + - 12 + + 49 * + COUNT ( * ) AS col2 FROM tab1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + COUNT( * ) + + - COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4785
SELECT + COUNT ( * ) + + - COUNT ( * ) col1 FROM tab2
----
0

query I rowsort
SELECT + col0 * + - col1 + col0 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT SUM( - col2 ) + + - COUNT( * ) FROM tab2
----
-124

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT SUM ( - col2 ) + + - COUNT ( * ) FROM tab2
----
-124

query I rowsort
SELECT DISTINCT 46 + + 96 AS col1 FROM tab1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL + COUNT( * ) + + - ( COUNT( * ) ) * - - 72 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + COUNT ( * ) + + - ( COUNT ( * ) ) * - - 72 FROM tab1
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT + SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4790
SELECT + SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT - MIN( DISTINCT col0 ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4792
SELECT - MIN ( DISTINCT col0 ) AS col1 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + MAX( 68 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-4793
SELECT + MAX ( 68 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col1 FROM tab2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + 46 * + 43 * + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-17802

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + 46 * + 43 * + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-17802

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = 57
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = 57
----
0

query I rowsort
SELECT DISTINCT - - col1 * - col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4799
SELECT ALL - COUNT( * ) * - CAST( - ( + + CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - COUNT ( * ) * - CAST ( - ( + + CAST ( NULL AS REAL ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 56 * + 81 + + 11 AS col1 FROM tab1 AS cor0
----
4547

query I rowsort
SELECT DISTINCT - col1 * - 53 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT + 47 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT ALL col2 DIV 76 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL col2 / 76 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT + 17 * - col0 * - + ( + + col1 ) AS col0 FROM tab1
----
12138
7225
72709

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4806
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT - + col2 * + col0 > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT - + col2 * + col0 > CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - 77 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL COUNT( DISTINCT + - ( col2 ) ) AS col1 FROM tab1 WHERE NOT + - 72 * - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL COUNT ( DISTINCT + - ( col2 ) ) AS col1 FROM tab1 WHERE NOT + - 72 * - - col0 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col0, + 20 FROM tab1
----
51
20
85
20
91
20

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - col0 / + + 31 NOT BETWEEN + col2 + + 88 AND + col2 + + ( - col0 )
----

query I rowsort
SELECT + 15 * + col1 AS col1 FROM tab0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + COUNT( * ) * + SUM( ALL + 34 ) * 70 FROM tab2
----
21420

skipif mysql # not compatible
query I rowsort label-4812
SELECT + COUNT ( * ) * + SUM ( ALL + 34 ) * 70 FROM tab2
----
21420

query I rowsort
SELECT + 58 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 * - - col1 * 90 NOT IN ( + col1 - - - col1, col0 ) )
----
58
58
58

query I rowsort
SELECT ALL col2 * col0 + + col1 + - - ( + + col0 ) AS col2 FROM tab0
----
801
9701
978

query II rowsort
SELECT + col2, col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 < 92
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 69 + - 79 + + col0 + + 48 AS col1 FROM tab2
----
102
113
84

query I rowsort
SELECT + + 8 + + 22 AS col2 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT ALL + col0 * col2 * - + ( - + col0 ) - + col1 * + 42 + - - 58 * - 52 FROM tab0 AS cor0
----
4157
71792
928433

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + - 39 + + COUNT( * ) FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4820
SELECT + - 39 + + COUNT ( * ) FROM tab0 cor0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT DISTINCT + + 21 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT + + 21 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 44 * - SUM( DISTINCT ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
6864

skipif mysql # not compatible
query I rowsort label-4822
SELECT 44 * - SUM ( DISTINCT ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
6864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT ALL + + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - col1 + - col0 * - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - COUNT( ALL 22 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4825
SELECT - COUNT ( ALL 22 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT - CAST( - + col0 AS SIGNED ) * + 64 * + col2 col0 FROM tab1
----
313344
320960
396032

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4826
SELECT - CAST ( - + col0 AS INTEGER ) * + 64 * + col2 col0 FROM tab1
----
313344
320960
396032

query I rowsort
SELECT ALL - col2 + - 81 AS col0 FROM tab0
----
-128
-180
-91

query I rowsort
SELECT + col1 - col0 * + col0 FROM tab0
----
-144
-7548
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT ALL + CAST( NULL AS SIGNED ) - 89 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + CAST ( NULL AS INTEGER ) - 89 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL + 40 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + 40 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
43

query I rowsort
SELECT col2 + - ( 70 ) * + col0 FROM tab2 cor0
----
-3197
-4440
-5192

query I rowsort
SELECT DISTINCT col1 * - 12 FROM tab0 AS cor0 WHERE NOT + 48 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) NOT IN ( - 52, - col2 - col1, - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT DISTINCT - - 0 + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL = - col0 * + 32 - - - col1 + 8
----
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT - - 0 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = - col0 * + 32 - - - col1 + 8
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 >= + + col0 / + 53
----

query II rowsort
SELECT - col2, + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ( + + 17 ) AS col1 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - ( + + col2 ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( + ( + col1 ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL - ( - + COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - ( - + COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT DISTINCT - col0 DIV + 38 + + - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - col0 / + 38 + + - col1 FROM tab2
----
-52
-68
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > + 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 81 * col1 FROM tab1 cor0
----
1134
3807
405

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4845
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4845
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT SUM( DISTINCT - 42 ) + + 51 AS col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4846
SELECT SUM ( DISTINCT - 42 ) + + 51 AS col0 FROM tab0 cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE - 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT - 45 + col0 FROM tab1
----
40
46
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 <= + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * col0 col2 FROM tab0 AS cor0
----
348
388
60

query I rowsort
SELECT - - 82 - + col0 + + col0 AS col2 FROM tab1 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + - col1 - - - col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL - col1 DIV 6 AS col1 FROM tab2 AS cor0
----
-11
-12
-8

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - col1 / 6 AS col1 FROM tab2 AS cor0
----
-11
-12
-8

query I rowsort
SELECT + col0 * - 11 + - - 40 + - 30 + - col1 + + 27 FROM tab0
----
-1031
-209
-941

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT DISTINCT - col2 + - 1 DIV - col2 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT - col2 + - 1 / - col2 AS col0 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT - - 48 AS col0, col1 * + 54 AS col2 FROM tab0 AS cor0
----
48
1134
48
4374
48
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - ( + 0 ) col2, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL - - SUM( ALL - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - - SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + COUNT( 15 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4861
SELECT + COUNT ( 15 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT + + MIN( col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4862
SELECT + + MIN ( col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + + 66 + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE - 4 IS NULL
----

query I rowsort
SELECT ALL 34 AS col1 FROM tab2
----
34
34
34

query I rowsort
SELECT ALL + col2 + - 61 + - ( - col2 ) FROM tab0
----
-41
137
33

query II rowsort
SELECT DISTINCT - col1 * - 72 * col1, col2 + + - col0 AS col2 FROM tab0
----
31752
-77
472392
32
72
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4868
SELECT + COUNT( * ) FROM tab2 WHERE - - 6 * - col0 * + col1 + col0 NOT BETWEEN NULL AND - CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT + COUNT ( * ) FROM tab2 WHERE - - 6 * - col0 * + col1 + col0 NOT BETWEEN NULL AND - CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT DISTINCT 49 + - + 29 * - col1 * col0 AS col1 FROM tab2 AS cor0
----
142961
145774
68083

query I rowsort
SELECT + + ( 80 ) AS col0 FROM tab1 cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT MAX( ALL - ( + - col0 ) ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4871
SELECT MAX ( ALL - ( + - col0 ) ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT - 59 AS col1, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-59
3

skipif mysql # not compatible
query II rowsort label-4872
SELECT - 59 AS col1, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-59
3

query I rowsort
SELECT DISTINCT + + col1 * + - ( - + col1 ) AS col2 FROM tab0 cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT + 29 + + col2 FROM tab0
----
128
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT COUNT( col0 ) FROM tab1 WHERE col1 BETWEEN + col2 * ( + 15 * - col0 ) AND ( 73 )
----
3

skipif mysql # not compatible
query I rowsort label-4875
SELECT COUNT ( col0 ) FROM tab1 WHERE col1 BETWEEN + col2 * ( + 15 * - col0 ) AND ( 73 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( col2 ) AND ( NULL )
----

query I rowsort
SELECT ALL 6 + - ( - col2 ) AS col1 FROM tab1
----
102
65
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT col0 + col0 DIV - 21 col1 FROM tab1
----
49
81
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT col0 + col0 / - 21 col1 FROM tab1
----
49
81
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) NOT BETWEEN 34 + 57 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 70 AS col0 FROM tab2
----
3220
4480
5250

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 - col1 ) > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL MIN( DISTINCT 53 ) * 92 FROM tab0
----
4876

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL MIN ( DISTINCT 53 ) * 92 FROM tab0
----
4876

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 67 / + 93
----

query I rowsort
SELECT + 20 * - col1 AS col1 FROM tab1
----
-100
-280
-940

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT - COUNT( ( col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT - COUNT ( ( col1 ) ) FROM tab1
----
-3

query I rowsort
SELECT col2 * 62 + ( 91 ) AS col1 FROM tab1
----
3749
4307
6043

query III rowsort
SELECT * FROM tab0 WHERE ( 71 + 35 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT col0 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-4892
SELECT col0 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT - SUM( + CAST( col0 AS SIGNED ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4893
SELECT - SUM ( + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT ALL + 6 * 46 FROM tab1
----
276
276
276

query I rowsort
SELECT + 24 + - col0 AS col0 FROM tab2
----
-22
-40
-51

query I rowsort
SELECT ALL 71 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4897
SELECT 30 DIV col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4897
SELECT 30 / col2 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT - 69 - CAST( ( 34 ) AS SIGNED ) AS col2 FROM tab0
----
-103
-103
-103

skipif mysql # not compatible
query I rowsort label-4898
SELECT - 69 - CAST ( ( 34 ) AS INTEGER ) AS col2 FROM tab0
----
-103
-103
-103

query I rowsort
SELECT - col2 * - 35 - - col2 FROM tab2
----
1440
2088
828

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + MIN( - col0 ) * + 36 + + COUNT( * ) AS col1 FROM tab0
----
-3489

skipif mysql # not compatible
query I rowsort label-4900
SELECT + MIN ( - col0 ) * + 36 + + COUNT ( * ) AS col1 FROM tab0
----
-3489

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <> col0
----

query I rowsort
SELECT + col1 + - 41 FROM tab2
----
10
26
36

query I rowsort
SELECT DISTINCT 62 * 24 AS col1 FROM tab1 AS cor0
----
1488

query I rowsort
SELECT DISTINCT 8 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - 68 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT ALL 1 AS col0 FROM tab1 AS cor0 WHERE col1 * + 16 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT COUNT( DISTINCT 11 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
1

skipif mysql # not compatible
query I rowsort label-4907
SELECT COUNT ( DISTINCT 11 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4908
SELECT 33 DIV 33 col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4908
SELECT 33 / 33 col0 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col0 * - col1 NOT IN ( col1 )
----

query I rowsort
SELECT ALL 86 + + 3 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col0 + col0 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( + 81 ) AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 15 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 95 ) NOT IN ( col1 * - col1 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( 60 / 49 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 > ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 80 + + - col1 AS col1 FROM tab2
----
13
29
3

query I rowsort
SELECT 31 * col0 + col2 AS col1 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 IN ( 4 + + col2 )
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 - + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4925
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN - CAST( col1 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4925
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN - CAST ( col1 AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT col1 * - col1 + + col1 + + CAST( col0 AS SIGNED ) * - 93 AS col0 FROM tab2 AS cor0
----
-11397
-11804
-6828

skipif mysql # not compatible
query I rowsort label-4926
SELECT col1 * - col1 + + col1 + + CAST ( col0 AS INTEGER ) * - 93 AS col0 FROM tab2 AS cor0
----
-11397
-11804
-6828

query I rowsort
SELECT DISTINCT 87 + - col2 AS col2 FROM tab2
----
29
47
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT - 17 * - 48 + - ( + col1 ) FROM tab0 WHERE + + col0 / col1 + CAST( NULL AS SIGNED ) IS NULL
----
735
795
815

skipif mysql # not compatible
query I rowsort label-4928
SELECT - 17 * - 48 + - ( + col1 ) FROM tab0 WHERE + + col0 / col1 + CAST ( NULL AS INTEGER ) IS NULL
----
735
795
815

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL + ( ( + COUNT( * ) ) ) + 73 FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + ( ( + COUNT ( * ) ) ) + 73 FROM tab1 cor0
----
76

query I rowsort
SELECT ALL + + 82 - + col2 FROM tab0 AS cor0
----
-17
35
72

query I rowsort
SELECT 76 + - 62 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT ALL + col0 + - 14 AS col0 FROM tab1 cor0 WHERE NOT col1 = - - CAST( col2 AS SIGNED ) + - col2
----
37
71
77

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + col0 + - 14 AS col0 FROM tab1 cor0 WHERE NOT col1 = - - CAST ( col2 AS INTEGER ) + - col2
----
37
71
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL + - COUNT( * ) - + SUM( DISTINCT col0 ) * + ( - 46 ) col1 FROM tab2 AS cor0
----
8507

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4933
SELECT ALL + - COUNT ( * ) - + SUM ( DISTINCT col0 ) * + ( - 46 ) col1 FROM tab2 AS cor0
----
8507

query I rowsort
SELECT DISTINCT + 54 - - + col2 FROM tab2 AS cor0
----
112
77
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 75
----

query I rowsort
SELECT - ( col1 ) + + ( 9 ) FROM tab2 AS cor0
----
-42
-58
-68

query I rowsort
SELECT ALL col1 - - 87 AS col2 FROM tab1 AS cor0
----
101
134
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 + + col0 ) >= NULL
----

query I rowsort
SELECT + + col1 + - 88 FROM tab0 AS cor0
----
-67
-7
-87

query I rowsort
SELECT 27 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-24
-40
-50

query I rowsort
SELECT DISTINCT + - col1 * + + 44 FROM tab0 AS cor0
----
-3564
-44
-924

query I rowsort
SELECT col1 + - 25 AS col1 FROM tab0
----
-24
-4
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT ALL + col2 * ( - - col2 ) DIV - 37 FROM tab0
----
-2
-264
-59

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + col2 * ( - - col2 ) / - 37 FROM tab0
----
-2
-264
-59

query I rowsort
SELECT ALL + 29 * - col0 AS col1 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT - col2 * - + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - col2 * - + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 + + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * col2 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 25 * - col1 + col2 FROM tab1 WHERE NOT 4 BETWEEN col0 AND 90
----
1243
184
446

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 94 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col1 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL - - MAX( ALL col2 ) FROM tab2 AS cor0 WHERE NOT - col2 * - - col0 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL - - MAX ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT - col2 * - - col0 IS NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4953
SELECT * FROM tab2 AS cor0 WHERE NOT + 39 * - CAST( - + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4953
SELECT * FROM tab2 AS cor0 WHERE NOT + 39 * - CAST ( - + col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4954
SELECT col2 * + col1 - col0 col0 FROM tab1 AS cor0 WHERE NOT - CAST( col0 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4954
SELECT col2 * + col1 - col0 col0 FROM tab1 AS cor0 WHERE NOT - CAST ( col0 AS REAL ) <> NULL
----

query I rowsort
SELECT DISTINCT 94 * col0 * - + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-21150
-711486
-884446

query I rowsort
SELECT DISTINCT - + col1 + - 19 * col0 FROM tab1 cor0 WHERE NOT ( + + 35 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT DISTINCT - - 88 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT - - 88 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 8 * - col0 ) NOT BETWEEN ( - col1 ) AND + 87
----

query I rowsort
SELECT - 64 * col1 FROM tab2
----
-3264
-4288
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4961
SELECT col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT + col1 DIV + col1 + - 71 + - 66 FROM tab1 AS cor0
----
-136
-136
-136

skipif mysql # not compatible
query I rowsort label-4962
SELECT + col1 / + col1 + - 71 + - 66 FROM tab1 AS cor0
----
-136
-136
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT + SUM( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
195

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
195

query I rowsort
SELECT - - 64 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) <> ( NULL )
----

query I rowsort
SELECT - 48 + + + col0 FROM tab2 AS cor0
----
-2
16
27

query I rowsort
SELECT + 53 + - col0 AS col2 FROM tab2 cor0
----
-11
-22
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 49 <= - + col0 + col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT DISTINCT + 40 + ( - + CAST( + col0 AS SIGNED ) ) * 48 AS col2 FROM tab1
----
-2408
-4040
-4328

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT + 40 + ( - + CAST ( + col0 AS INTEGER ) ) * 48 AS col2 FROM tab1
----
-2408
-4040
-4328

query I rowsort
SELECT DISTINCT 29 FROM tab1 WHERE + + col1 >= + + col0 + - 81 + - col0 * col0
----
29

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4971
SELECT col0 DIV - + col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4971
SELECT col0 / - + col2 AS col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4972
SELECT DISTINCT 63 DIV - - COUNT( - + 96 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT 63 / - - COUNT ( - + 96 ) FROM tab1
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4973
SELECT DISTINCT COUNT( * ) + - ( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT COUNT ( * ) + - ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT + 30 * col1 AS col2 FROM tab2
----
1530
2010
2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT DISTINCT + CAST( + 43 AS SIGNED ) + - 17 + - 52 * - 63 - - + 58 FROM tab2
----
3360

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT + CAST ( + 43 AS INTEGER ) + - 17 + - 52 * - 63 - - + 58 FROM tab2
----
3360

query II rowsort
SELECT + 35 AS col0, col0 - - col2 FROM tab1
----
35
144
35
147
35
159

query II rowsort
SELECT + col2, + col1 * + + col1 AS col0 FROM tab2
----
23
2601
40
5929
58
4489

query I rowsort
SELECT 95 AS col2 FROM tab0 AS cor0 WHERE NULL <> col1 / col2 * - 83 + + 0 - - 85
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4979
SELECT DISTINCT COUNT( * ) DIV - - ( 96 ) + - 17 AS col0 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT COUNT ( * ) / - - ( 96 ) + - 17 AS col0 FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT - - 10 - - ( - COUNT( * ) ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - - 10 - - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4981
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( - ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4981
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( - ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT 36 FROM tab1 WHERE NULL NOT BETWEEN 42 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT COUNT( * ) col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4983
SELECT COUNT ( * ) col2 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - 45 + + col2 + - col1 FROM tab2 AS cor0
----
-54
-73
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4985
SELECT * FROM tab2 cor0 WHERE NOT ( - + 35 ) / + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) > + 36
----

skipif mysql # not compatible
query III rowsort label-4985
SELECT * FROM tab2 cor0 WHERE NOT ( - + 35 ) / + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) > + 36
----

query II rowsort
SELECT ALL - ( - col2 ), col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL + 67 * - SUM( ALL + - col1 ) AS col2 FROM tab2 cor0
----
13065

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + 67 * - SUM ( ALL + - col1 ) AS col2 FROM tab2 cor0
----
13065

query I rowsort
SELECT col0 * - + 42 FROM tab0
----
-3654
-4074
-630

query II rowsort
SELECT ALL col2 AS col2, + col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 - - - 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 AS col2, 50 AS col2 FROM tab0
----
-10
50
-47
50
-99
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + COUNT( 59 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4994
SELECT + COUNT ( 59 ) FROM tab1
----
3

query II rowsort
SELECT ALL - col0 AS col1, - col0 - col2 AS col1 FROM tab2
----
-46
-69
-64
-104
-75
-133

query III rowsort
SELECT * FROM tab1 WHERE NOT + 29 IN ( col0 * - col2 * + 22 * + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT + 16 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4997
SELECT + 16 / - col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT COUNT( * ) * COUNT( ALL + col0 ) AS col0, + COUNT( - col1 ) AS col0 FROM tab0
----
9
3

skipif mysql # not compatible
query II rowsort label-4998
SELECT COUNT ( * ) * COUNT ( ALL + col0 ) AS col0, + COUNT ( - col1 ) AS col0 FROM tab0
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT + MIN( - 0 ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4999
SELECT DISTINCT + MIN ( - 0 ) col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT ALL + 90 AS col1 FROM tab1 AS cor0 WHERE NOT 79 NOT IN ( + + 55 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND ( + + col0 ) + 59 * ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 23 * - - col1 AS col0, + col1 col0 FROM tab0 AS cor0
----
1863
81
23
1
483
21

query I rowsort
SELECT DISTINCT 42 * col0 AS col0 FROM tab0 AS cor0
----
3654
4074
630

query I rowsort
SELECT ALL - - 28 * - ( + col0 ) * - col0 + col2 FROM tab2 AS cor0
----
114728
157558
59271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT ALL - CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-5007
SELECT col2 DIV col0, - col0 AS col1 FROM tab0 AS cor0
----
0
-87
1
-97
3
-15

skipif mysql # not compatible
query II rowsort label-5007
SELECT col2 / col0, - col0 AS col1 FROM tab0 AS cor0
----
0
-87
1
-97
3
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 25 + 38
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL IS NULL OR - col2 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + MAX( ALL - col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-5010
SELECT + MAX ( ALL - col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
153

query II rowsort
SELECT - 74 * col2 + + + col2, + col1 FROM tab2
----
-1679
51
-2920
77
-4234
67

query III rowsort
SELECT * FROM tab2 WHERE 35 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT 58 * - col1 DIV - 1 + + col1 AS col1 FROM tab0
----
1239
4779
59

skipif mysql # not compatible
query I rowsort label-5013
SELECT 58 * - col1 / - 1 + + col1 AS col1 FROM tab0
----
1239
4779
59

query I rowsort
SELECT DISTINCT - 51 + - ( + col1 ) + + 60 AS col1 FROM tab0
----
-12
-72
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - col0 - + + col2 col1 FROM tab0 AS cor0
----
-1
-196
-21
-97
-81
-62

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE 47 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5017
SELECT + col1 AS col2, - CAST( NULL AS SIGNED ) * + 17 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5017
SELECT + col1 AS col2, - CAST ( NULL AS INTEGER ) * + 17 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL + 99 * - - col2 AS col1 FROM tab0 AS cor0
----
4653
9801
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL + COUNT( * ) * 8 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL + COUNT ( * ) * 8 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - SUM( col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5020
SELECT - SUM ( col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL - MIN( + - CAST( + - 38 AS SIGNED ) ) FROM tab2 WHERE NULL IS NULL
----
-38

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - MIN ( + - CAST ( + - 38 AS INTEGER ) ) FROM tab2 WHERE NULL IS NULL
----
-38

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5023
SELECT - col2 DIV - col1, col0 * col0 * - col1 AS col1 FROM tab0
----
0
-158949
0
-18225
99
-9409

skipif mysql # not compatible
query II rowsort label-5023
SELECT - col2 / - col1, col0 * col0 * - col1 AS col1 FROM tab0
----
0
-158949
0
-18225
99
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) * + + ( + 79 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + + ( + 79 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * + + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5027
SELECT SUM( DISTINCT CAST( - + col0 AS DECIMAL ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT SUM ( DISTINCT CAST ( - + col0 AS REAL ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5028
SELECT ALL col2 AS col1, 60 * 21 DIV col0 + 77 AS col0 FROM tab0
----
10
91
47
161
99
89

skipif mysql # not compatible
query II rowsort label-5028
SELECT ALL col2 AS col1, 60 * 21 / col0 + 77 AS col0 FROM tab0
----
10
91
47
161
99
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT col0 * + - 27 * + - ( - CAST( NULL AS SIGNED ) ) * + 72 * - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT col0 * + - 27 * + - ( - CAST ( NULL AS INTEGER ) ) * + 72 * - + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - + 7 FROM tab0
----
-6
14
74

query I rowsort
SELECT ALL - ( - 68 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - 92 ) < NULL
----

query I rowsort
SELECT + col1 + + col2 + col2 * col1 - - 12 FROM tab2 AS cor0
----
1259
3209
4023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT - col1 * + - col2 + - col2 + + col1 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col1, - CAST( + + col1 AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query I rowsort label-5034
SELECT - col1 * + - col2 + - col2 + + col1 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col1, - CAST ( + + col1 AS INTEGER ) + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + MAX( + + col2 ) + - + 18 col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5035
SELECT + MAX ( + + col2 ) + - + 18 col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT + 1 * col1 + - - ( + col2 ) + + col2 - + col1 + 59 FROM tab0 cor0
----
153
257
79

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT ( - 46 IS NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT - 85 + - + 95 + - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5038
SELECT - 85 + - + 95 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5039
SELECT - 94 DIV + - MAX( 60 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5039
SELECT - 94 / + - MAX ( 60 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL - + COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - + COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5042
SELECT + ( MIN( ALL + col0 ) ) DIV - 13 - + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5042
SELECT + ( MIN ( ALL + col0 ) ) / - 13 - + COUNT ( * ) FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 / - - col1 / col0 col1 FROM tab2 WHERE - 68 * + 81 + - col2 BETWEEN 64 AND - 0
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 <= + - 28
----

query I rowsort
SELECT 81 - + + col2 AS col0 FROM tab2
----
23
41
58

query I rowsort
SELECT DISTINCT col2 * 25 + 23 AS col0 FROM tab1
----
1498
1723
2423

query III rowsort
SELECT * FROM tab0 WHERE - 70 * col2 BETWEEN + 47 / - + 23 + - + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 35 col2 FROM tab1 WHERE NULL IS NULL
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL 45 - + MIN( - col0 ) col2 FROM tab0 AS cor0
----
142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5049
SELECT ALL 45 - + MIN ( - col0 ) col2 FROM tab0 AS cor0
----
142

query II rowsort
SELECT DISTINCT + col2 - + - 78 AS col1, col1 AS col2 FROM tab1 AS cor0
----
137
5
146
47
174
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT COUNT( * ) + - 59 AS col2 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5051
SELECT COUNT ( * ) + - 59 AS col2 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT ALL 42 - - col2 FROM tab0
----
141
52
89

query I rowsort
SELECT - - col0 * + - 90 * + col2 * - + col1 AS col0 FROM tab1 AS cor0
----
2256750
26175240
6168960

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, - 93, 34 )
----

query I rowsort
SELECT + col1 * - 50 AS col1 FROM tab1 cor0
----
-2350
-250
-700

query I rowsort
SELECT + + 88 * + col1 AS col0 FROM tab1 AS cor0
----
1232
4136
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5057
SELECT DISTINCT - MAX( + + CAST( - 73 AS SIGNED ) ) col1, - 84 * - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) col2, 5 FROM tab0 cor0
----
73
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5057
SELECT DISTINCT - MAX ( + + CAST ( - 73 AS INTEGER ) ) col1, - 84 * - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) col2, 5 FROM tab0 cor0
----
73
NULL
5

query II rowsort
SELECT ALL 79 AS col0, + 29 AS col2 FROM tab1
----
79
29
79
29
79
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL MIN( + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL MIN ( + - col1 ) FROM tab2
----
-77

query I rowsort
SELECT + col0 * + ( col0 ) AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5062
SELECT DISTINCT COUNT( * ) AS col0, - 39 DIV COUNT( * ) AS col1 FROM tab2
----
3
-13

skipif mysql # not compatible
query II rowsort label-5062
SELECT DISTINCT COUNT ( * ) AS col0, - 39 / COUNT ( * ) AS col1 FROM tab2
----
3
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT DISTINCT COUNT( * ) AS col0, 72 - - - MIN( col1 ) AS col1 FROM tab1
----
3
67

skipif mysql # not compatible
query II rowsort label-5063
SELECT DISTINCT COUNT ( * ) AS col0, 72 - - - MIN ( col1 ) AS col1 FROM tab1
----
3
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT + CAST( - col2 AS SIGNED ) * + col1 + + col2 + + + 61 FROM tab0 WHERE NOT + col2 < ( + 2 )
----
-139
-3699
61

skipif mysql # not compatible
query I rowsort label-5064
SELECT + CAST ( - col2 AS INTEGER ) * + col1 + + col2 + + + 61 FROM tab0 WHERE NOT + col2 < ( + 2 )
----
-139
-3699
61

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT 1 < + - 37
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5066
SELECT col1, CAST( + col0 AS SIGNED ) FROM tab2
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-5066
SELECT col1, CAST ( + col0 AS INTEGER ) FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + 93 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( 0 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - 47 AS col1 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT col0 + 34 FROM tab0 AS cor0
----
121
131
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5071
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 91 NOT IN ( col0, CAST( NULL AS SIGNED ) / - col1, - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5071
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 91 NOT IN ( col0, CAST ( NULL AS INTEGER ) / - col1, - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 70 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 70 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5073
SELECT CAST( col1 AS SIGNED ) * + - ( - col1 ) + + + 41, 1 * + 49 AS col0 FROM tab0
----
42
49
482
49
6602
49

skipif mysql # not compatible
query II rowsort label-5073
SELECT CAST ( col1 AS INTEGER ) * + - ( - col1 ) + + + 41, 1 * + 49 AS col0 FROM tab0
----
42
49
482
49
6602
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5074
SELECT ALL 95 + - 1, CAST( + - ( - col0 ) AS SIGNED ) * - + 81 AS col2 FROM tab1
----
94
-4131
94
-6885
94
-7371

skipif mysql # not compatible
query II rowsort label-5074
SELECT ALL 95 + - 1, CAST ( + - ( - col0 ) AS INTEGER ) * - + 81 AS col2 FROM tab1
----
94
-4131
94
-6885
94
-7371

query III rowsort
SELECT * FROM tab2 WHERE + + 97 IS NULL
----

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT + 63 + - + 97 DIV + col0 - - col1 col1 FROM tab0 cor0
----
138
63
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5077
SELECT + 63 + - + 97 / + col0 - - col1 col1 FROM tab0 cor0
----
138
63
83

query I rowsort
SELECT - 67 + - 40 * - + 7 AS col0 FROM tab2 AS cor0
----
213
213
213

query I rowsort
SELECT DISTINCT + col2 * + 80 + - col1 FROM tab2
----
1789
3123
4573

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT MIN( DISTINCT + col1 ) + + - 66 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-5080
SELECT MIN ( DISTINCT + col1 ) + + - 66 FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT + col1 + + col2 AS col2 FROM tab0 WHERE ( ( NOT + col2 + + + col1 / 48 - + - 26 + + CAST( NULL AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-5081
SELECT + col1 + + col2 AS col2 FROM tab0 WHERE ( ( NOT + col2 + + + col1 / 48 - + - 26 + + CAST ( NULL AS INTEGER ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT - 57 * - COUNT( * ) AS col1 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT - 57 * - COUNT ( * ) AS col1 FROM tab1
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5083
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col2, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT - COUNT( col2 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5086
SELECT - COUNT ( col2 ) col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT DISTINCT - col2 * ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - col2 * ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 / col1 + - - col1 + - 78 + col0 / 84 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT ALL + 52 DIV - 17 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + 52 / - 17 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT - col0 * 75 * - col0 FROM tab2 AS cor0
----
158700
307200
421875

query I rowsort
SELECT ( - ( + + 19 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-19
-19
-19

query I rowsort
SELECT DISTINCT col2 - - - col0 FROM tab1 cor0 WHERE NOT - ( + col2 ) = col1 * - 61
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT DISTINCT - COUNT( + 88 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - COUNT ( + 88 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + COUNT( * ) * - COUNT( ALL + 97 ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5095
SELECT + COUNT ( * ) * - COUNT ( ALL + 97 ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + + ( 74 ) * col0 FROM tab2 AS cor0
----
3404
4736
5550

query I rowsort
SELECT ( 0 ) AS col0 FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN col1 * 84 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5098
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) > + col0 * - + 30
----

skipif mysql # not compatible
query III rowsort label-5098
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) > + col0 * - + 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT DISTINCT - col2 * - + CAST( NULL AS SIGNED ) * + + col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT - col2 * - + CAST ( NULL AS INTEGER ) * + + col1 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 + + 28 col1 FROM tab2
----
83
83
83

query II rowsort
SELECT + col1, + col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT col1 DIV + + 91 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5102
SELECT col1 / + + 91 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5103
SELECT DISTINCT - 21 AS col0, MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-5103
SELECT DISTINCT - 21 AS col0, MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
-21
NULL

query I rowsort
SELECT ALL 42 + + col1 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL - - 61 + col1 / + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5105
SELECT ALL - - 61 + col1 / + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 78 + col2 AS col0 FROM tab1
----
-10
-19
18

query I rowsort
SELECT DISTINCT + 13 * + 21 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - 78 + + - COUNT( * ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5108
SELECT - 78 + + - COUNT ( * ) AS col2 FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + 64 + COUNT( * ) col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5109
SELECT + 64 + COUNT ( * ) col1 FROM tab1 AS cor0
----
67

query I rowsort
SELECT DISTINCT + + ( - col2 ) - + col2 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL col1 * 66 + + CAST( - - col0 AS SIGNED ) * + ( + 99 ) FROM tab1 AS cor0
----
12111
5973
8745

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL col1 * 66 + + CAST ( - - col0 AS INTEGER ) * + ( + 99 ) FROM tab1 AS cor0
----
12111
5973
8745

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT ALL + COUNT( * ) AS col1, 40 AS col1 FROM tab2 AS cor0
----
3
40

skipif mysql # not compatible
query II rowsort label-5113
SELECT ALL + COUNT ( * ) AS col1, 40 AS col1 FROM tab2 AS cor0
----
3
40

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 11 - - 11 BETWEEN - - col2 / + col2 + 74 AND NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT ALL - + COUNT( * ) AS col1, + 26 AS col0 FROM tab1 AS cor0
----
-3
26

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL - + COUNT ( * ) AS col1, + 26 AS col0 FROM tab1 AS cor0
----
-3
26

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + - 67 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - 30 AS col1 FROM tab0 WHERE NOT NULL IN ( + col2, - 19 + - + col2 + + col1, - + col0 * - + col2 / - + 48 + + 26 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NOT NULL AND col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT 32 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT 32 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - - ( - col2 ) AS col0 FROM tab2
----
-116
-46
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - - 93 * + col0 + col1 col1 FROM tab0
----
-1299
-7983
-8923

query I rowsort
SELECT DISTINCT + 82 FROM tab0 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT + 80 AS col1 FROM tab1 AS cor0 WHERE NOT + 44 >= col2 + + CAST( NULL AS SIGNED ) + + col2 + col0
----

skipif mysql # not compatible
query I rowsort label-5123
SELECT + 80 AS col1 FROM tab1 AS cor0 WHERE NOT + 44 >= col2 + + CAST ( NULL AS INTEGER ) + + col2 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5124
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT + COUNT( * ) * + 12 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-5125
SELECT + COUNT ( * ) * + 12 FROM tab0
----
36

query II rowsort
SELECT DISTINCT col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT - ( - 48 ) AS col2 FROM tab2 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 54 / - 41 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col0 AS col1, 56 * + 74 FROM tab0 AS cor0
----
-15
4144
-87
4144
-97
4144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 45 >= + ( - col0 ) * ( - - 11 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 = + col2 + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT 69 * - - COUNT( - - col1 ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT 69 * - - COUNT ( - - col1 ) FROM tab2
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab0, tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab0, tab1 cor0
----
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT 79 + - + COUNT( * ) col2 FROM tab2
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5136
SELECT 79 + - + COUNT ( * ) col2 FROM tab2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT - col2 + + col2 DIV + col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5137
SELECT - col2 + + col2 / + col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT - ( - col2 ) DIV 16 AS col1 FROM tab0 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5138
SELECT - ( - col2 ) / 16 AS col1 FROM tab0 AS cor0
----
0
2
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5139
SELECT - + COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT - + COUNT ( * ) + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT DISTINCT + 65 * - col1 + + - col0 AS col2 FROM tab2
----
-3361
-4430
-5069

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL - MIN( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0 WHERE - ( 43 ) NOT BETWEEN 11 AND - - col1
----
75

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - MIN ( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0 WHERE - ( 43 ) NOT BETWEEN 11 AND - - col1
----
75

query I rowsort
SELECT - - 65 + - - col1 AS col0 FROM tab1 AS cor0
----
112
70
79

query I rowsort
SELECT col0 + + col0 + + + col1 * - + 58 AS col0 FROM tab2 cor0
----
-2866
-3736
-4338

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - COUNT( * ) + 43 col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5144
SELECT - COUNT ( * ) + 43 col2 FROM tab1 AS cor0
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5145
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( - + col2 AS DECIMAL ) >= - col1
----

skipif mysql # not compatible
query III rowsort label-5145
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( - + col2 AS REAL ) >= - col1
----

query I rowsort
SELECT col2 / - 50 + - + col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * - 99 + + 0 + - 59 + - + 0 + + 13 * col0 - col0 FROM tab1
----
-3620
-833
466

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 WHERE + 7 + 88 IS NULL
----

query I rowsort
SELECT - 59 * + col2 AS col1 FROM tab2
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL - 89 * - 3 * - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-798

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - 89 * - 3 * - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-798

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 IN ( + 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 + - 67 FROM tab0 AS cor0 WHERE NOT + col0 * - 37 BETWEEN - col1 - - - col1 AND NULL
----
-114
-166
-77

query II rowsort
SELECT - - col2 AS col0, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT 76 AS col1, col2 AS col0 FROM tab2 AS cor0
----
76
23
76
40
76
58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT COUNT( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT COUNT ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE 30 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE 30 IS NOT NULL
----
3

query I rowsort
SELECT 27 FROM tab0 cor0 WHERE NOT col0 >= + + col1
----
27

query I rowsort
SELECT + - col1 + - + col2 * - 31 AS col0 FROM tab1 AS cor0
----
1824
2061
2962

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT SUM( + col2 ) * COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1404

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT SUM ( + col2 ) * COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1404

query II rowsort
SELECT col1 + + col0, col2 FROM tab2 AS cor0
----
141
40
142
58
97
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT + 19 + - CAST( 2 AS SIGNED ) FROM tab2 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 19 + - CAST ( 2 AS INTEGER ) FROM tab2 AS cor0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT DISTINCT + - 53 DIV + - col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + - 53 / + - col2 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL - ( - MAX( ALL - ( + col0 ) ) ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - ( - MAX ( ALL - ( + col0 ) ) ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT ALL 78 + + col2 FROM tab2
----
101
118
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT COUNT( DISTINCT - 20 ) * - 9 AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5168
SELECT COUNT ( DISTINCT - 20 ) * - 9 AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5169
SELECT * FROM tab2 WHERE - 34 + CAST( - ( col1 ) AS SIGNED ) * + ( - col0 ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5169
SELECT * FROM tab2 WHERE - 34 + CAST ( - ( col1 ) AS INTEGER ) * + ( - col0 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL 60 * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL 60 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
180

query II rowsort
SELECT ALL - col2 AS col2, + col1 + ( col1 ) FROM tab0 AS cor0
----
-10
42
-47
162
-99
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5172
SELECT ALL - + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - + col0 / + col2 AS col1 FROM tab0 AS cor0
----
-8
0
0

query II rowsort
SELECT 76 + + 90 AS col1, - col2 AS col1 FROM tab2
----
166
-23
166
-40
166
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT ALL - + 91 - - col2 + ( + + CAST( col1 AS SIGNED ) ) / 84 + CAST( NULL AS SIGNED ) * - 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL - + 91 - - col2 + ( + + CAST ( col1 AS INTEGER ) ) / 84 + CAST ( NULL AS INTEGER ) * - 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + MIN( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5175
SELECT + MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - 51 - 3 + - ( - 28 ) FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT ( - - col0 ) - + col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 84 / + col1 - 25 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 5 NOT IN ( - col0 * + 15, + col2 / + col2 * - col0 * col1, + col2 - + - 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 85 AS col0, col0 * 69 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-85
1035
-85
6003
-85
6693

query I rowsort
SELECT ALL + - 86 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + - col2
----

query I rowsort
SELECT - - col0 + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - 9 + - - col2 AND NULL
----

query I rowsort
SELECT - 50 AS col2 FROM tab2 cor0 WHERE ( 66 ) IS NULL
----

query I rowsort
SELECT col2 * + + col0 - - col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT + 3 * + + 72 FROM tab2
----
216
216
216

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 < ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - COUNT( + - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5187
SELECT - COUNT ( + - col2 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5188
SELECT - CAST( - + 19 AS SIGNED ) * 16, + col2 * + - ( - col0 ) AS col0 FROM tab2
----
304
1058
304
2560
304
4350

skipif mysql # not compatible
query II rowsort label-5188
SELECT - CAST ( - + 19 AS INTEGER ) * 16, + col2 * + - ( - col0 ) AS col0 FROM tab2
----
304
1058
304
2560
304
4350

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - + 0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5190
SELECT - 70 DIV - - MAX( DISTINCT + + 79 ) * + 27 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT - 70 / - - MAX ( DISTINCT + + 79 ) * + 27 FROM tab2
----
0

query I rowsort
SELECT ALL + ( - 40 ) AS col2 FROM tab1
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT - + col2 * - CAST( - + ( 52 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3068
-3536
-4992

skipif mysql # not compatible
query I rowsort label-5192
SELECT - + col2 * - CAST ( - + ( 52 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3068
-3536
-4992

query III rowsort
SELECT ALL * FROM tab1 WHERE 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-5194
SELECT 45 AS col0, + 56, COUNT( * ) * + COUNT( - col1 ) AS col0 FROM tab1
----
45
56
9

skipif mysql # not compatible
query III rowsort label-5194
SELECT 45 AS col0, + 56, COUNT ( * ) * + COUNT ( - col1 ) AS col0 FROM tab1
----
45
56
9

query I rowsort
SELECT + ( 5 ) FROM tab0
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + - + col1 * - col0 + - + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT + ( COUNT( * ) ) * - - SUM( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5197
SELECT + ( COUNT ( * ) ) * - - SUM ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
309

query II rowsort
SELECT DISTINCT - col0 AS col1, 38 + - col2 FROM tab0 AS cor0
----
-15
-9
-87
28
-97
-61

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT - 89 IS NULL
----
1
21
81

query III rowsort
SELECT - + col1, + col1 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
9 values hashing to 35b9b8ab4b291781afa3715dbf1c1395

query I rowsort
SELECT + - ( + 78 ) AS col2 FROM tab0 AS cor0
----
-78
-78
-78

query III rowsort
SELECT - 42 * 33, col2 AS col0, + col1 AS col2 FROM tab1
----
9 values hashing to f7b495e60c1ba531d97af4db9860411f

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - 51 * - - COUNT( DISTINCT - col2 ) + + 79 + + - ( - - ( + 88 ) ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-5203
SELECT - 51 * - - COUNT ( DISTINCT - col2 ) + + 79 + + - ( - - ( + 88 ) ) FROM tab0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 48 col0 FROM tab2
----
-2
16
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 16 + - 28 + - 12 col0 FROM tab1
----
184
40
712

query I rowsort
SELECT - ( + + ( - 27 ) ) + + - col1 FROM tab1
----
-20
13
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL 75 + + 81 * - ( - COUNT( * ) ) FROM tab0
----
318

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL 75 + + 81 * - ( - COUNT ( * ) ) FROM tab0
----
318

query I rowsort
SELECT + 23 + col1 AS col0 FROM tab0
----
104
24
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + CAST( NULL AS SIGNED ) / + - 84 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) / + - 84 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 63 * - col1 FROM tab2
----
-3213
-4221
-4851

query I rowsort
SELECT DISTINCT + + col0 + - ( - - 30 ) AS col1 FROM tab1 cor0
----
21
55
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5212
SELECT + + CAST( - + col1 AS SIGNED ) + + - 3, 4 * col1 AS col2 FROM tab1 AS cor0
----
-17
56
-50
188
-8
20

skipif mysql # not compatible
query II rowsort label-5212
SELECT + + CAST ( - + col1 AS INTEGER ) + + - 3, 4 * col1 AS col2 FROM tab1 AS cor0
----
-17
56
-50
188
-8
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT + + col1 DIV 25 * + col2 * - col1 * + + 61 FROM tab2 AS cor0
----
-143106
-474092
-563640

skipif mysql # not compatible
query I rowsort label-5213
SELECT + + col1 / 25 * + col2 * - col1 * + + 61 FROM tab2 AS cor0
----
-143106
-474092
-563640

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 40 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT COUNT( * ) * 63 AS col2 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-5215
SELECT COUNT ( * ) * 63 AS col2 FROM tab1
----
189

query I rowsort
SELECT 99 * + + 52 AS col0 FROM tab2
----
5148
5148
5148

query I rowsort
SELECT DISTINCT 69 * + col1 * + col1 + + col0 FROM tab1
----
13575
152512
1810

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT MAX( DISTINCT - - ( + - col1 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-5219
SELECT MAX ( DISTINCT - - ( + - col1 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1

query I rowsort
SELECT - col2 + - col2 + + ( - 79 ) AS col2 FROM tab0 AS cor0
----
-173
-277
-99

query I rowsort
SELECT DISTINCT - 44 * + - col2 + - col1 * + + col0 - ( col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
-1423
2081
3445

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5222
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT CAST( NULL AS SIGNED ) * - 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT CAST ( NULL AS INTEGER ) * - 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * + col0 * - + col0 - - col2 FROM tab1 AS cor0
----
249792
426334
563176

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT - SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5226
SELECT - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - + col1 AS col1, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> col1 + col2 + 89
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5229
SELECT + COUNT( * ) / - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 94 * 29 / + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ( MIN( DISTINCT + col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5231
SELECT ( MIN ( DISTINCT + col1 ) ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT - COUNT( - 57 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - COUNT ( - 57 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - - 29 AS col2, 16 col1 FROM tab1
----
1363
16
145
16
406
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5235
SELECT ALL CAST( col0 AS SIGNED ) DIV + - col0 - - 32 + col0 * + col0 AS col1 FROM tab0
----
256
7600
9440

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL CAST ( col0 AS INTEGER ) / + - col0 - - 32 + col0 * + col0 AS col1 FROM tab0
----
256
7600
9440

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT DISTINCT + MIN( + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT + MIN ( + col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL 18 - col1 + + + col1 * - 69 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1452
-52
-5652

query I rowsort
SELECT ALL - + 71 AS col1 FROM tab0 AS cor0
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 = - - col1 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT ( 23 ) AS col1 FROM tab0 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + - 98 * col0 + + col0 AS col2 FROM tab2 WHERE ( NOT col0 IS NOT NULL )
----

query II rowsort
SELECT 43 AS col1, col2 - + col2 + + col1 AS col2 FROM tab2
----
43
51
43
67
43
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT DISTINCT col1 FROM tab0 WHERE ( ( + col2 * + col0 - 75 + CAST( - col1 AS SIGNED ) + col1 IS NOT NULL ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT col1 FROM tab0 WHERE ( ( + col2 * + col0 - 75 + CAST ( - col1 AS INTEGER ) + col1 IS NOT NULL ) )
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5245
SELECT - + CAST( 16 AS DECIMAL ) * + - 21 AS col1 FROM tab1 WHERE NULL BETWEEN + 29 AND 67 - - col1
----

skipif mysql # not compatible
query I rowsort label-5245
SELECT - + CAST ( 16 AS REAL ) * + - 21 AS col1 FROM tab1 WHERE NULL BETWEEN + 29 AND 67 - - col1
----

query II rowsort
SELECT - 74 AS col2, 77 AS col1 FROM tab0
----
-74
77
-74
77
-74
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5247
SELECT 50 DIV - - COUNT( * ) - - 95 * 69 col1 FROM tab1 WHERE col2 IS NOT NULL
----
6571

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5247
SELECT 50 / - - COUNT ( * ) - - 95 * 69 col1 FROM tab1 WHERE col2 IS NOT NULL
----
6571

query I rowsort
SELECT col2 * col0 - ( col0 ) AS col1 FROM tab2
----
1012
2496
4275

query I rowsort
SELECT col0 + + - 60 FROM tab1 AS cor0
----
-9
25
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT - + col2 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-5250
SELECT - + col2 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT col2 + + + 90 DIV 37 AS col1 FROM tab2
----
25
42
60

skipif mysql # not compatible
query I rowsort label-5251
SELECT col2 + + + 90 / 37 AS col1 FROM tab2
----
25
42
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5252
SELECT 68 * 62 * + + MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT 68 * 62 * + + MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT ALL - ( - col0 ) DIV + col2 + + - 65 FROM tab0 AS cor0
----
-57
-65
-65

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - ( - col0 ) / + col2 + + - 65 FROM tab0 AS cor0
----
-57
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT COUNT( ALL + col0 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT COUNT ( ALL + col0 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT - MAX( col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT - MAX ( col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - 85 + + COUNT( * ) FROM tab1 WHERE NOT - col2 <> NULL
----
-85

skipif mysql # not compatible
query I rowsort label-5256
SELECT - 85 + + COUNT ( * ) FROM tab1 WHERE NOT - col2 <> NULL
----
-85

query II rowsort
SELECT DISTINCT col1, + col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5258
SELECT ALL 7 AS col1, + COUNT( ALL 85 ) / + CAST( NULL AS SIGNED ) FROM tab0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-5258
SELECT ALL 7 AS col1, + COUNT ( ALL 85 ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
7
NULL

query II rowsort
SELECT ALL + 81 AS col2, col1 AS col0 FROM tab1
----
81
14
81
47
81
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + + col0 ) AS col1 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 81 NOT IN ( - col0 * + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT 45 * + COUNT( * ) AS col1 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-5263
SELECT 45 * + COUNT ( * ) AS col1 FROM tab0
----
135

query III rowsort
SELECT * FROM tab0 WHERE NOT - 14 + col0 * 39 * + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT 86 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT 86 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( + ( + col0 ) / + col0 + + col1 + + - col0 / + 22 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5268
SELECT 4 * 54 + + - COUNT( * ), + COUNT( * ) - 68 AS col0 FROM tab1 AS cor0
----
213
-65

skipif mysql # not compatible
query II rowsort label-5268
SELECT 4 * 54 + + - COUNT ( * ), + COUNT ( * ) - 68 AS col0 FROM tab1 AS cor0
----
213
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT SUM( + + 95 ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-5269
SELECT SUM ( + + 95 ) FROM tab1
----
285

query I rowsort
SELECT + - 76 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT + MIN( - 29 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-29

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT + MIN ( - 29 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-29

query I rowsort
SELECT ALL 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT DISTINCT - + ( - + 68 ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT - + ( - + 68 ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL - + COUNT( col2 ) + - 23 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL - + COUNT ( col2 ) + - 23 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL + - 43 AS col1 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + 29 + + - 71 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT + 28 + - 8 + col0 AS col1 FROM tab1 AS cor0
----
105
111
71

query I rowsort
SELECT col2 + col1 * 28 AS col1 FROM tab2 AS cor0
----
1451
1934
2196

query I rowsort
SELECT + - 20 + col0 - - + 91 * + col0 * col2 + 63 FROM tab0 cor0
----
64213
79300
874013

query I rowsort
SELECT col2 + - 55 AS col0 FROM tab0
----
-45
-8
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT SUM( DISTINCT 72 ) + + - 75 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5282
SELECT SUM ( DISTINCT 72 ) + + - 75 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL - MIN( 84 ) FROM tab1 WHERE - col2 * 47 IS NOT NULL
----
-84

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - MIN ( 84 ) FROM tab1 WHERE - col2 * 47 IS NOT NULL
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT - MAX( - ( col2 ) ) + - 80 AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - MAX ( - ( col2 ) ) + - 80 AS col2 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5285
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col2 ) + + col0 col1, 20 - - col2 FROM tab2
----
17
78
23
43
24
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT 88 * CAST( - col2 AS SIGNED ) + - col1 FROM tab1
----
-5197
-6031
-8462

skipif mysql # not compatible
query I rowsort label-5287
SELECT 88 * CAST ( - col2 AS INTEGER ) + - col1 FROM tab1
----
-5197
-6031
-8462

query I rowsort
SELECT DISTINCT - col0 + - 41 * - - 60 AS col1 FROM tab1
----
-2511
-2545
-2551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT DISTINCT - COUNT( * ) * + - ( COUNT( col1 ) ) DIV 64 - + SUM( 31 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT - COUNT ( * ) * + - ( COUNT ( col1 ) ) / 64 - + SUM ( 31 ) FROM tab0 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 25 col1 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + ( col2 ) * 53 FROM tab0 AS cor0
----
2491
5247
530

query I rowsort
SELECT - col2 - - 39 - col2 * col2 + - col0 + - + 67 * - - col2 FROM tab0
----
-16591
-5381
-828

query I rowsort
SELECT 61 FROM tab2 WHERE NULL >= - + col2 - + 64 * 52 / - 89
----

query I rowsort
SELECT - - 38 FROM tab2 WHERE NOT + 59 * - col0 IS NULL
----
38
38
38

query I rowsort
SELECT + 87 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * col0 * + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + MAX( 85 ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + MAX ( 85 ) AS col0 FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL + ( + + col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL 50, col2, col2 FROM tab0 AS cor0
----
9 values hashing to 55ca67142f09f4339df3eed9716dddab

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= col0 * - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5300
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( - - 65 AS DECIMAL ) AND col0
----

skipif mysql # not compatible
query III rowsort label-5300
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( - - 65 AS REAL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT + 14 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5301
SELECT + 14 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ( - MIN( - + col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5302
SELECT ( - MIN ( - + col1 ) ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT col1 * - + 53 * col0 FROM tab2 AS cor0
----
-124338
-261184
-266325

query I rowsort
SELECT ALL + col1 * col0 * + col1 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT - + 32 * - ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - + 32 * - ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
96

query II rowsort
SELECT + col2 AS col1, + col0 FROM tab1 cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT col0 * - col1 / - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= col0
----

query II rowsort
SELECT 24 AS col0, 90 * - - col1 FROM tab0 cor0
----
24
1890
24
7290
24
90

query I rowsort
SELECT col1 - - 9 AS col2 FROM tab2 WHERE NOT col0 NOT BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 66 AS col1 FROM tab1 WHERE NOT + 0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT 75 DIV col0 DIV + - 35 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT 75 / col0 / + - 35 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT COUNT( col2 ) * + - 52 col1 FROM tab1
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5313
SELECT COUNT ( col2 ) * + - 52 col1 FROM tab1
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5314
SELECT 69 * COUNT( * ) * + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-5314
SELECT 69 * COUNT ( * ) * + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-207

query I rowsort
SELECT - - 49 AS col1 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT 28 <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT 28 <> - col2
----
0

query I rowsort
SELECT ALL - 66 FROM tab0 AS cor0 WHERE NOT col1 - - 14 + - - ( + 0 ) IS NOT NULL
----

query II rowsort
SELECT + ( col0 ) AS col2, col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5319
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT col2 * - col1 + + + col1 + - + col2 FROM tab1
----
-1426
-3217
-349

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT DISTINCT + 1 DIV - col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT + 1 / - col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 + + - 49 AS col0 FROM tab0 AS cor0
----
-28
-48
32

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + + ( 0 ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT - + ( + + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - + ( + + COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - col0 * - col1 + col2 FROM tab0 cor0
----
1262
1837
196

query I rowsort
SELECT ALL + 19 + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
65
83
94

query I rowsort
SELECT + 72 AS col1 FROM tab2 WHERE - 37 IS NULL
----

query I rowsort
SELECT - 60 - - col2 FROM tab2
----
-2
-20
-37

query I rowsort
SELECT - 47 * - col0 - - 58 + col0 FROM tab0
----
4234
4714
778

query II rowsort
SELECT DISTINCT - col0 - - + col1 AS col1, ( col0 ) FROM tab1
----
-37
51
-44
91
-80
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT ALL - ( + col1 ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - ( + col1 ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT + 61 + + + COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5334
SELECT + 61 + + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT 37 - - col0 FROM tab2 AS cor0
----
101
112
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5336
SELECT + ( col2 ) * - CAST( NULL AS SIGNED ) AS col1, - col0 + + col0 AS col0 FROM tab1
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-5336
SELECT + ( col2 ) * - CAST ( NULL AS INTEGER ) AS col1, - col0 + + col0 AS col0 FROM tab1
----
NULL
0
NULL
0
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - ( - - 19 ) * COUNT( * ) col0 FROM tab2
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5337
SELECT - ( - - 19 ) * COUNT ( * ) col0 FROM tab2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT - CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT - CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL - ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5342
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 49, col0 + + 73 - + + col0 * + col1 + - col0 * + CAST( col0 AS SIGNED ), - 11 * 7 - col1 + + + 89 )
----

skipif mysql # not compatible
query III rowsort label-5342
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 49, col0 + + 73 - + + col0 * + col1 + - col0 * + CAST ( col0 AS INTEGER ), - 11 * 7 - col1 + + + 89 )
----

query II rowsort
SELECT - col0 AS col1, + col2 * + + col1 * + col1 FROM tab2
----
-46
59823
-64
237160
-75
260362

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT - 57, + COUNT( * ) col0 FROM tab1
----
-57
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5344
SELECT - 57, + COUNT ( * ) col0 FROM tab1
----
-57
3

query I rowsort
SELECT - ( 24 ) AS col1 FROM tab2
----
-24
-24
-24

query II rowsort
SELECT DISTINCT col2, 33 FROM tab0
----
10
33
47
33
99
33

query I rowsort
SELECT ALL - col2 + - + col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL - col2 * 76 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT 52 * + - MAX( ALL + col1 ) FROM tab2
----
-4004

skipif mysql # not compatible
query I rowsort label-5349
SELECT 52 * + - MAX ( ALL + col1 ) FROM tab2
----
-4004

query I rowsort
SELECT ALL 71 * col1 AS col0 FROM tab0
----
1491
5751
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5351
SELECT - CAST( - COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5351
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - col0 * - 28 AS col1 FROM tab1 AS cor0
----
-1428
-2380
-2548

query I rowsort
SELECT ALL 56 AS col0 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - SUM( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5354
SELECT - SUM ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT + SUM( ALL + 17 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5355
SELECT + SUM ( ALL + 17 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT SUM( - + 43 ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT SUM ( - + 43 ) FROM tab2
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT - col2 DIV - ( + 49 ) FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5357
SELECT - col2 / - ( + 49 ) FROM tab0
----
0
0
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 82 / + 98 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 29 AS col2 FROM tab2 AS cor0 WHERE - col1 * + col2 + col2 <> NULL
----

query I rowsort
SELECT + 4 - - col2 AS col2 FROM tab2 cor0
----
27
44
62

query I rowsort
SELECT DISTINCT - ( - 0 ) - - + col0 FROM tab0 cor0
----
15
87
97

query II rowsort
SELECT - col0 - - + col1, col2 FROM tab1 AS cor0
----
-37
96
-44
68
-80
59

query I rowsort
SELECT DISTINCT col0 - 21 AS col0 FROM tab2 AS cor0
----
25
43
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL + 81 - - + COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL + 81 - - + COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
90

query I rowsort
SELECT + col1 + - col0 * + - col2 * + col0 + col2 FROM tab1 AS cor0 WHERE + col2 * - + col2 - col0 * - 51 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT DISTINCT - col2 DIV + 34 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - col2 / + 34 FROM tab1 AS cor0
----
-1
-2

query II rowsort
SELECT + 69 + - col1, + col1 FROM tab1 cor0
----
22
47
55
14
64
5

query I rowsort
SELECT + 18 * 55 + + - col1 * - 16 * col2 AS col0 FROM tab1
----
22494
52126
5710

query I rowsort
SELECT + 33 * 51 FROM tab0 WHERE + col1 < NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, 34 + col1 FROM tab0
----
-1
35
-21
55
-81
115

query II rowsort
SELECT DISTINCT - col1 + + col1 - + col2 AS col1, col1 * + col0 * + col0 + + + col1 * + + 55 FROM tab2
----
-23
110721
-40
319627
-58
380560

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT - MAX( + - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5372
SELECT - MAX ( + - col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col1 AS col0, ( + + 73 ) AS col1 FROM tab0 AS cor0
----
-1
73
-21
73
-81
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT - - COUNT( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - - COUNT ( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * 23 + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT DISTINCT AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT col0 NOT BETWEEN 18 * + 38 + 27 AND ( 43 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT col0 NOT BETWEEN 18 * + 38 + 27 AND ( 43 * + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 75 - - col2 AS col0 FROM tab1
----
134
143
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT + col2 + + col2 * - CAST( - col0 + - col1 AS SIGNED ) AS col0 FROM tab1
----
5369
6336
9452

skipif mysql # not compatible
query I rowsort label-5383
SELECT + col2 + + col2 * - CAST ( - col0 + - col1 AS INTEGER ) AS col0 FROM tab1
----
5369
6336
9452

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - 5 + 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + ( - col1 ) + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT 42 + COUNT( * ) * 5 col0 FROM tab0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5386
SELECT DISTINCT 42 + COUNT ( * ) * 5 col0 FROM tab0
----
57

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( ( 0 ) ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL 60 * - COUNT( col1 * + 55 ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL 60 * - COUNT ( col1 * + 55 ) FROM tab1
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 WHERE + col1 + + col2 <= ( 36 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5390
SELECT ALL col2 + CAST( 19 AS SIGNED ) DIV - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL col2 + CAST ( 19 AS INTEGER ) / - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col2 * - 74 FROM tab0 WHERE NOT ( + col0 ) BETWEEN col0 + col2 AND col1 + - 74 / + 12
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL SUM( col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL SUM ( col0 ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + SUM( ALL 42 ) FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-5393
SELECT + SUM ( ALL 42 ) FROM tab2 cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT DISTINCT - SUM( col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5394
SELECT DISTINCT - SUM ( col1 ) col1 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT - 31 DIV col2 + col1 FROM tab0
----
1
18
81

skipif mysql # not compatible
query I rowsort label-5396
SELECT - 31 / col2 + col1 FROM tab0
----
1
18
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 4 col0 FROM tab0
----
103
14
51

query I rowsort
SELECT col2 * col0 + + 77 AS col1 FROM tab0
----
782
947
9680

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 * - col0 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( 98 ) + 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 29 IN ( - 26 )
----

query I rowsort
SELECT + col2 * 17 AS col2 FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT + COUNT( * ) * 72 FROM tab0 AS cor0 WHERE - 61 NOT IN ( 9 )
----
216

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT + COUNT ( * ) * 72 FROM tab0 AS cor0 WHERE - 61 NOT IN ( 9 )
----
216

query I rowsort
SELECT DISTINCT + - col2 - + ( - col1 ) FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT ALL col0 DIV col0 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 + - 77 IS NULL
----
47
65
76

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL col0 / col0 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 + - 77 IS NULL
----
47
65
76

query I rowsort
SELECT DISTINCT col2 - 88 FROM tab0 AS cor0
----
-41
-78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL + COUNT( * ) - - 52 AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL + COUNT ( * ) - - 52 AS col1 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + 44 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + 44 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 AS cor0 WHERE NOT - 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT MIN( - col1 ) * 45 FROM tab0
----
-3645

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT MIN ( - col1 ) * 45 FROM tab0
----
-3645

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN - col2 AND + 41
----

query I rowsort
SELECT - col1 - + - col2 * - col2 FROM tab2
----
-1677
-3431
-580

query I rowsort
SELECT col2 * - col0 * + 86 AS col0 FROM tab2
----
-220160
-374100
-90988

query I rowsort
SELECT col2 * ( 12 ) FROM tab2
----
276
480
696

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5416
SELECT * FROM tab1 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) / col1 AND col0
----

skipif mysql # not compatible
query III rowsort label-5416
SELECT * FROM tab1 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) / col1 AND col0
----

query I rowsort
SELECT DISTINCT - col1 * - col0 + col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL - - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT ALL 18 DIV 24 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-5419
SELECT ALL 18 / 24 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT - COUNT( DISTINCT + + 94 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - COUNT ( DISTINCT + + 94 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - col1 * 0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 89 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - 28 + + col0 AND 17
----
3

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - 28 + + col0 AND 17
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT 94 * - COUNT( * ) AS col2 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-5425
SELECT 94 * - COUNT ( * ) AS col2 FROM tab1
----
-282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + ( - 51 ) col2 FROM tab1
----
51
-51
85
-51
91
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + 44 col0 FROM tab2
----
1848
1848
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - COUNT( + - col0 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5430
SELECT - COUNT ( + - col0 ) col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT - MAX( - - ( col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - MAX ( - - ( col2 ) ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5432
SELECT col0, + CAST( NULL AS SIGNED ) + col0 * - ( 45 * 72 ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5432
SELECT col0, + CAST ( NULL AS INTEGER ) + col0 * - ( 45 * 72 ) FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT + col2 + 22 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( + - 95 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5433
SELECT + col2 + 22 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( + - 95 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) * col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 75 / + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 27 <= 44 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT - COUNT( * ), + COUNT( * ) * + ( MAX( - 68 ) ) AS col0 FROM tab2 AS cor0
----
-3
-204

skipif mysql # not compatible
query II rowsort label-5438
SELECT - COUNT ( * ), + COUNT ( * ) * + ( MAX ( - 68 ) ) AS col0 FROM tab2 AS cor0
----
-3
-204

query I rowsort
SELECT 99 AS col0 FROM tab1 cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT - MAX( - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5440
SELECT - MAX ( - col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT CAST( - CAST( - 56 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
56
56
56

skipif mysql # not compatible
query I rowsort label-5441
SELECT CAST ( - CAST ( - 56 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
56
56
56

query I rowsort
SELECT + 52 FROM tab1 WHERE - col2 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5443
SELECT MIN( + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) / 79 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT MIN ( + CAST ( NULL AS REAL ) ) + - COUNT ( * ) / 79 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL - COUNT( * ) + + 21 AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - COUNT ( * ) + + 21 AS col0 FROM tab2
----
18

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT COUNT( * ) FROM tab2 WHERE ( + + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT COUNT ( * ) FROM tab2 WHERE ( + + col0 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * + 10 NOT BETWEEN NULL AND - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 89 + - - 17 FROM tab0
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT DISTINCT col2 + + 28 * + + 52 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT col2 + + 28 * + + 52 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT 3 * - col2 AS col1 FROM tab0 AS cor0
----
-141
-297
-30

query I rowsort
SELECT + + 40 * - - col0 + 72 AS col1 FROM tab2 cor0
----
1912
2632
3072

query I rowsort
SELECT col2 * + 67 + - 19 + col0 FROM tab0 AS cor0
----
3145
6711
738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT ( - SUM( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0 WHERE col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ( - SUM ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0 WHERE col0 > NULL
----
NULL

query I rowsort
SELECT + col0 * + - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT MAX( DISTINCT + 87 ) col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5455
SELECT MAX ( DISTINCT + 87 ) col2 FROM tab2 AS cor0
----
87

query II rowsort
SELECT ALL + col0 + 37 * + col0, + col0 FROM tab1
----
1938
51
3230
85
3458
91

query I rowsort
SELECT DISTINCT col2 * 6 AS col0 FROM tab0
----
282
594
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT CAST( + 45 AS SIGNED ) * - ( - 10 ) + - COUNT( * ) * - 21 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT CAST ( + 45 AS INTEGER ) * - ( - 10 ) + - COUNT ( * ) * - 21 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + col0 + + 57 FROM tab0 cor0
----
144
154
72

onlyif mysql # DIV for integer division: 
query II rowsort label-5461
SELECT DISTINCT - col2 DIV col1 + + 62 AS col2, 42 FROM tab0 AS cor0
----
-37
42
62
42

skipif mysql # not compatible
query II rowsort label-5461
SELECT DISTINCT - col2 / col1 + + 62 AS col2, 42 FROM tab0 AS cor0
----
-37
42
62
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT + - COUNT( * ) + + - 60 col1 FROM tab0 cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5462
SELECT + - COUNT ( * ) + + - 60 col1 FROM tab0 cor0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT ALL + col1 - + col1 - + col2 DIV + + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL + col1 - + col1 - + col2 / + + col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT + CAST( CAST( + 47 AS SIGNED ) AS SIGNED ) + col1 FROM tab0 AS cor0
----
128
48
68

skipif mysql # not compatible
query I rowsort label-5464
SELECT + CAST ( CAST ( + 47 AS INTEGER ) AS INTEGER ) + col1 FROM tab0 AS cor0
----
128
48
68

query I rowsort
SELECT DISTINCT - col1 * - - col0 * - 48 - + col0 FROM tab1 AS cor0
----
20315
205205
34221

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT - - 77 + + + COUNT( * ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5466
SELECT - - 77 + + + COUNT ( * ) FROM tab2 AS cor0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col2 col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL + 97 * COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL + 97 * COUNT ( * ) FROM tab0 AS cor0
----
291

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( ( + + ( + col2 ) ) ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT DISTINCT - 98 / + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - 98 / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT + COUNT( * ) * + 97 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-5471
SELECT + COUNT ( * ) * + 97 FROM tab0
----
291

query I rowsort
SELECT ALL col1 * col2 * - + 17 * + - 68 FROM tab1
----
1553664
341020
3694576

query I rowsort
SELECT DISTINCT 82 * col1 FROM tab1
----
1148
3854
410

query II rowsort
SELECT DISTINCT + 99 AS col1, + col0 * - - col2 FROM tab0
----
99
705
99
870
99
9603

query I rowsort
SELECT ALL - col2 * - + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5476
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN ( - 30 ) AND 21
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 45 AS col0 FROM tab0 WHERE NOT ( + + 50 ) NOT IN ( + - 41 )
----

query II rowsort
SELECT + col1, ( - 93 ) + + col1 AS col2 FROM tab2
----
51
-42
67
-26
77
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT - col0 DIV - + ( + - col1 ) FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT - col0 / - + ( + - col1 ) FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT + 93 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 39 ) < + col2 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5485
SELECT col0 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT col0 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 + + col0 col2, + 26 * - 36 AS col2 FROM tab2 cor0
----
17
-936
23
-936
24
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL 75 + - + col1 FROM tab2 AS cor0 WHERE ( ( NULL ) < NULL )
----

query I rowsort
SELECT ALL - 3 FROM tab2 AS cor0 WHERE ( ( ( - 31 ) <> ( NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT + col1 DIV - 61 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT + col1 / - 61 FROM tab2
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 + + 70 ) BETWEEN ( - col2 ) AND col1
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT - SUM( - 85 ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-5493
SELECT - SUM ( - 85 ) FROM tab2
----
255

query I rowsort
SELECT - 81 * + col1 AS col2 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5495
SELECT - COUNT( * ) + COUNT( + ( col2 ) ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5495
SELECT - COUNT ( * ) + COUNT ( + ( col2 ) ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-4

query II rowsort
SELECT ALL col0 - + col1, col2 FROM tab0 WHERE NOT + 56 + col0 > - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT + COUNT( * ) + + 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + COUNT ( * ) + + 52 FROM tab1
----
55

query I rowsort
SELECT - col2 * 34 * ( - col1 ) AS col0 FROM tab0
----
129438
3366
7140

query III rowsort
SELECT * FROM tab1 WHERE + 92 * - col2 + - - col2 * + + 16 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5501
SELECT + CAST( 21 AS SIGNED ) col1, - col1 AS col2 FROM tab0
----
21
-1
21
-21
21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5501
SELECT + CAST ( 21 AS INTEGER ) col1, - col1 AS col2 FROM tab0
----
21
-1
21
-21
21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT - - 52 DIV - + 37 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5502
SELECT - - 52 / - + 37 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 49 * + col0 + 67 FROM tab2 AS cor0
----
-2187
-3069
-3608

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 45 * + col0 / col0 / + 17 AS col2, + 41 + col0 col0 FROM tab2 AS cor0 WHERE + col0 IN ( + 98 )
----

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT + + col2 IN ( 33 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT col1 DIV - ( + 45 ) AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT col1 / - ( + 45 ) AS col1 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * - 1 col0 FROM tab2
----
79
79
79

onlyif mysql # DIV for integer division: 
query III rowsort label-5509
SELECT - col0 col1, - col0 DIV - + col1, + + 89 AS col1 FROM tab1
----
9 values hashing to d2ee58b0af26e93410f180b0d729877b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5509
SELECT - col0 col1, - col0 / - + col1, + + 89 AS col1 FROM tab1
----
9 values hashing to d2ee58b0af26e93410f180b0d729877b

query II rowsort
SELECT DISTINCT col0, 57 AS col1 FROM tab0
----
15
57
87
57
97
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5511
SELECT * FROM tab0 WHERE NOT - col1 * - CAST( + col1 AS SIGNED ) + - - 56 / + 40 * col0 + + ( - col2 ) < ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5511
SELECT * FROM tab0 WHERE NOT - col1 * - CAST ( + col1 AS INTEGER ) + - - 56 / + 40 * col0 + + ( - col2 ) < ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5512
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) > - col2 * - + col0 / 9 + + + col1
----

skipif mysql # not compatible
query III rowsort label-5512
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) > - col2 * - + col0 / 9 + + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT DISTINCT - COUNT( * ) DIV MAX( DISTINCT - ( + - col1 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - COUNT ( * ) / MAX ( DISTINCT - ( + - col1 ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 3 * - col0 - 11 - + col0 * + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5515
SELECT DISTINCT + 14 DIV + + col1 AS col1, + col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-5515
SELECT DISTINCT + 14 / + + col1 AS col1, + col2 FROM tab2
----
0
23
0
40
0
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 97 col2, - 38 FROM tab2
----
97
-38
97
-38
97
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT ALL + col0 * col0 DIV col1 FROM tab1
----
1445
176
185

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + col0 * col0 / col1 FROM tab1
----
1445
176
185

query II rowsort
SELECT + col1 AS col1, col2 AS col0 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT col1 + - CAST( + 6 AS SIGNED ) FROM tab0 AS cor0
----
-5
15
75

skipif mysql # not compatible
query I rowsort label-5519
SELECT col1 + - CAST ( + 6 AS INTEGER ) FROM tab0 AS cor0
----
-5
15
75

query I rowsort
SELECT + col1 * + 20 + + col1 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT ALL - col1 DIV - 64 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - col1 / - 64 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5522
SELECT DISTINCT + 69 DIV - COUNT( * ) AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + 69 / - COUNT ( * ) AS col0 FROM tab0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT - ( + col2 ) + + ( - 62 ) + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT - ( + col2 ) + + ( - 62 ) + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5524
SELECT DISTINCT * FROM tab2 WHERE NOT - 0 >= col2 / col2 + + + col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5524
SELECT DISTINCT * FROM tab2 WHERE NOT - 0 >= col2 / col2 + + + col2 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) <> col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT CAST( NULL AS SIGNED ) + + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT CAST ( NULL AS INTEGER ) + + - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT - 42 + COUNT( * ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - 42 + COUNT ( * ) FROM tab1
----
-39

query I rowsort
SELECT DISTINCT - col1 + - ( + - col2 ) + - col0 FROM tab0
----
-49
-98
1

query I rowsort
SELECT - 69 * - + col1 FROM tab2 AS cor0
----
3519
4623
5313

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( + + 66 ) * - col0 + - 56 NOT BETWEEN + + col2 * - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT 96 - COUNT( * ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5531
SELECT 96 - COUNT ( * ) FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT + MIN( - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + MIN ( - col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT - COUNT( * ), + AVG ( ALL + + col0 ) + - 52 + - COUNT( * ) * + - AVG ( DISTINCT - 78 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5533
SELECT - COUNT ( * ), + AVG ( ALL + + col0 ) + - 52 + - COUNT ( * ) * + - AVG ( DISTINCT - 78 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL 56 + COUNT( * ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL 56 + COUNT ( * ) FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 3 + + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT - MIN( - 58 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5537
SELECT - MIN ( - 58 ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT DISTINCT + - col1 * 22 AS col1 FROM tab1 AS cor0
----
-1034
-110
-308

query II rowsort
SELECT + col0, + col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL - col2 * + + col2 * + col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

query II rowsort
SELECT ALL + col0 AS col2, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 18 col0, col0 FROM tab1 AS cor0
----
-18
51
-18
85
-18
91

query I rowsort
SELECT col2 * + - ( - col1 ) + col2 AS col0 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT ALL ( - 82 ), + COUNT( DISTINCT + ( col0 ) ) AS col2 FROM tab2
----
-82
3

skipif mysql # not compatible
query II rowsort label-5545
SELECT ALL ( - 82 ), + COUNT ( DISTINCT + ( col0 ) ) AS col2 FROM tab2
----
-82
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT + MAX( DISTINCT - 4 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + MAX ( DISTINCT - 4 ) FROM tab2
----
-4

query II rowsort
SELECT ALL 36 * 43 AS col1, 97 * + col1 AS col2 FROM tab2 AS cor0
----
1548
4947
1548
6499
1548
7469

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT + COUNT( * ) * 90 * 74 AS col0 FROM tab2 AS cor0
----
19980

skipif mysql # not compatible
query I rowsort label-5549
SELECT + COUNT ( * ) * 90 * 74 AS col0 FROM tab2 AS cor0
----
19980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5550
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + 34 + - col2 AS col0 FROM tab0
----
-66
-94
3

query I rowsort
SELECT + col1 + - 56 FROM tab1 AS cor0
----
-42
-51
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - col0
----

query II rowsort
SELECT ALL + col1 + - - col0 + - + 49 + - ( - - col2 ) AS col1, col0 AS col1 FROM tab2 AS cor0
----
25
46
35
75
52
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - + COUNT( * ) + + 3 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5555
SELECT - + COUNT ( * ) + + 3 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT DISTINCT - + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - + col0 / + col2 AS col1 FROM tab0 AS cor0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT - - MIN( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE - col1 + + + col2 * - col1 IN ( + 97 * + - 46 * - col1 - + col1, col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT - - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE - col1 + + + col2 * - col1 IN ( + 97 * + - 46 * - col1 - + col1, col0 )
----
NULL

query I rowsort
SELECT ALL + + col2 * - col0 * - col2 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

query II rowsort
SELECT DISTINCT + 9, 69 AS col1 FROM tab2 AS cor0
----
9
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 46 * + col1 + + ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 46 * + col1 + + ( + col1 ) IS NULL
----
0

query I rowsort
SELECT ALL ( + 39 ) FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
39
39
39

query II rowsort
SELECT 16, - col1 AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
16
-51
16
-67
16
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT + 43 + + + COUNT( * ) col0 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5563
SELECT DISTINCT + 43 + + + COUNT ( * ) col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT - MAX( ALL + col0 ) + COUNT( * ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - MAX ( ALL + col0 ) + COUNT ( * ) FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT COUNT( DISTINCT + col2 ) - + 46 AS col2 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-5565
SELECT COUNT ( DISTINCT + col2 ) - + 46 AS col2 FROM tab1
----
-43

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - col1 * - col1 + - col2 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL - MAX( 30 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - MAX ( 30 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + col1 + + 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5570
SELECT ALL * FROM tab0 WHERE NOT + CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5570
SELECT ALL * FROM tab0 WHERE NOT + CAST ( - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT + 96 DIV - + 96 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5571
SELECT + 96 / - + 96 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + 73 AS col2 FROM tab0 AS cor0
----
73
73
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 54 + - + col1 + + 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT DISTINCT - COUNT( ALL col0 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5575
SELECT DISTINCT - COUNT ( ALL col0 ) col0 FROM tab2
----
-3

query II rowsort
SELECT + col0, col2 FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col1 FROM tab2 WHERE + 87 * + - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT MIN( ALL - + ( + - col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5578
SELECT MIN ( ALL - + ( + - col0 ) ) FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT + 69 + COUNT( - - col0 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + 69 + COUNT ( - - col0 ) FROM tab0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT DISTINCT col2 FROM tab1 WHERE + + CAST( 89 AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT col2 FROM tab1 WHERE + + CAST ( 89 AS INTEGER ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT - col2 + - col1 + col1 NOT IN ( - 20, + col0 + + + ( col1 ), + col0 )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-5584
SELECT - - col0 DIV - col0 + 13 DIV col2 col2, col0 AS col0 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5584
SELECT - - col0 / - col0 + 13 / col2 col2, col0 AS col0 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL - COUNT( col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - COUNT ( col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 1 + + col2 * col1 * + + 19 AS col0 FROM tab1
----
25537
5606
60725

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT ALL 3 DIV + col0 + + + 54 * + col2 FROM tab1
----
3186
3672
5184

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL 3 / + col0 + + + 54 * + col2 FROM tab1
----
3186
3672
5184

query II rowsort
SELECT DISTINCT col2, col1 * col2 AS col0 FROM tab0 WHERE + col2 + 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT - MAX( - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - MAX ( - col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT - 14 + col0 AS col2 FROM tab0
----
1
73
83

query I rowsort
SELECT col2 FROM tab2 WHERE - col2 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5592
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + 54, 13, + + 96 * - 3 - - - col1 / + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5592
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + 54, 13, + + 96 * - 3 - - - col1 / + CAST ( + col2 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 1, 16 + - 25, ( + col0 ) * col2 * + 61 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT DISTINCT + 86 - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT + 86 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL - SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL - SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - - ( + 3 ) AS col2 FROM tab2 AS cor0
----
3
3
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT 88 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col1 FROM tab0
----
31

query I rowsort
SELECT - 65 * + col2 + + 57 * + col0 * - col1 FROM tab0 AS cor0
----
-104789
-11964
-72310

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT 71 * 54 * + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
11502

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT 71 * 54 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
11502

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT col2 DIV - 8 AS col1 FROM tab2 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5604
SELECT col2 / - 8 AS col1 FROM tab2 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT 19 FROM tab0 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT + + 45, + col2 AS col2 FROM tab1 AS cor0
----
45
59
45
68
45
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5607
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query II rowsort
SELECT - 55, - col0 AS col2 FROM tab2 AS cor0
----
-55
-46
-55
-64
-55
-75

query I rowsort
SELECT + - col0 AS col2 FROM tab2 cor0 WHERE NOT - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL ( - - MAX( DISTINCT + ( + col2 ) ) ) + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 < 71
----
61

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL ( - - MAX ( DISTINCT + ( + col2 ) ) ) + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 < 71
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL - - MAX( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - - MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 4 IN ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL - ( + - MIN( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - ( + - MIN ( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL IS NULL AND NOT NULL BETWEEN 72 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT DISTINCT 96 * 7 * 16 * 95 DIV - col0 FROM tab0
----
-10530
-11740
-68096

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT 96 * 7 * 16 * 95 / - col0 FROM tab0
----
-10530
-11740
-68096

query I rowsort
SELECT DISTINCT - 80 + - col0 AS col0 FROM tab2
----
-126
-144
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT - ( - 12 ) * + MAX( ALL + - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT - ( - 12 ) * + MAX ( ALL + - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5618
SELECT ALL - ( - CAST( NULL AS SIGNED ) ), COUNT( * ) * + 92 AS col2 FROM tab2 AS cor0
----
NULL
276

skipif mysql # not compatible
query II rowsort label-5618
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ), COUNT ( * ) * + 92 AS col2 FROM tab2 AS cor0
----
NULL
276

query II rowsort
SELECT DISTINCT + col0, + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL - SUM( ALL + ( - 86 ) ) AS col1 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL - SUM ( ALL + ( - 86 ) ) AS col1 FROM tab0 AS cor0
----
258

query I rowsort
SELECT 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT col0 * - 10 + - 19 AS col2 FROM tab2
----
-479
-659
-769

query II rowsort
SELECT ALL - col1 AS col0, col0 * col2 AS col0 FROM tab1
----
-14
4896
-47
6188
-5
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + 31 + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5624
SELECT + 31 + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT + col0 + + 52 - + + col1 FROM tab1 AS cor0
----
132
89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - + MAX( ALL col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5626
SELECT - + MAX ( ALL col1 ) FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + - col2 col0 FROM tab0 AS cor0
----
198
20
94

query II rowsort
SELECT - + col2 AS col1, + 13 AS col2 FROM tab2 AS cor0
----
-23
13
-40
13
-58
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT ALL + 73 DIV - 90 - - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + 73 / - 90 - - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col0 + + 96
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND 26 * + col1 - + col1
----

query I rowsort
SELECT ALL 56 * - 32 FROM tab0
----
-1792
-1792
-1792

query I rowsort
SELECT + col0 - + - 12 FROM tab0
----
109
27
99

query I rowsort
SELECT ALL - col2 * + + col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + 57 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT + col0 + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT + col0 + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 50 + + col0 * + col0 * - 68 FROM tab0
----
-12950
-514192
-634862

query I rowsort
SELECT - 31 FROM tab2 AS cor0 WHERE NOT NULL < ( + 96 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT - MAX( ALL - - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5641
SELECT - MAX ( ALL - - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 60 + - col2 * + col1 col0, - ( + col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - - 94 * - SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-18706

skipif mysql # not compatible
query I rowsort label-5644
SELECT - - 94 * - SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-18706

query II rowsort
SELECT ALL col1 AS col2, col0 FROM tab2 cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + ( 99 ) FROM tab0 AS cor0
----
99
99
99

query II rowsort
SELECT ALL - col1, - col0 AS col0 FROM tab2 cor0
----
-51
-46
-67
-75
-77
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 13 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL - SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT ALL + col0 + + col1 DIV + 4 - - 22 FROM tab1
----
108
124
76

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + col0 + + col1 / + 4 - - 22 FROM tab1
----
108
124
76

query I rowsort
SELECT + col0 * + - col1 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT - 89 AS col1, - col2 * - col0 AS col2 FROM tab0 WHERE NOT + + col0 * - col0 * + 16 * - + col1 / + col0 * col0 IS NULL
----
-89
705
-89
870
-89
9603

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 87 - - 38 * + + col1 + + col0 < NULL
----

query I rowsort
SELECT col2 + - ( - col1 ) * + 65 * + col2 FROM tab0
----
13660
247502
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL 79 + + + COUNT( DISTINCT - 10 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 79 + + + COUNT ( DISTINCT - 10 ) FROM tab1
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 60 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT SUM( ALL 72 ) AS col1 FROM tab0, tab0 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT SUM ( ALL 72 ) AS col1 FROM tab0, tab0 AS cor0
----
648

query I rowsort
SELECT DISTINCT - 10 - - col0 + col0 + + col0 AS col2 FROM tab2 AS cor0
----
128
182
215

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5659
SELECT + ( + CAST( NULL AS DECIMAL ) ) + - - 23 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5659
SELECT + ( + CAST ( NULL AS REAL ) ) + - - 23 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 < - + col2
----

query II rowsort
SELECT DISTINCT 22 - + col0 AS col2, + 17 AS col2 FROM tab0 AS cor0
----
-65
17
-75
17
7
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT DISTINCT + 72 * + + col2 + + CAST( + 90 AS SIGNED ) - - col2 * - ( - CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
2275
4570
7630

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + 72 * + + col2 + + CAST ( + 90 AS INTEGER ) - - col2 * - ( - CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
2275
4570
7630

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL 95 * + COUNT( * ) * - + COUNT( ALL + + col2 ) FROM tab2 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL 95 * + COUNT ( * ) * - + COUNT ( ALL + + col2 ) FROM tab2 AS cor0
----
-855

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 7 > + col1 + col0
----

query I rowsort
SELECT col0 + - 35 FROM tab2
----
11
29
40

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col1 AND - - col0 + + col0
----

query I rowsort
SELECT 93 * + + col2 AS col2 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ( + ( - COUNT( * ) ) ) * - 61 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-5670
SELECT ( + ( - COUNT ( * ) ) ) * - 61 FROM tab0
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5671
SELECT COUNT( * ) col1 FROM tab0 WHERE NOT + - ( CAST( + + col2 AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5671
SELECT COUNT ( * ) col1 FROM tab0 WHERE NOT + - ( CAST ( + + col2 AS INTEGER ) ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1 * 84
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 65 - - ( - 69 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5674
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1, + col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5674
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1, + col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL - col2 * 13 - - - 56 - - 58 FROM tab0 AS cor0
----
-128
-1285
-609

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT - 6 + - 96, + COUNT( * ) AS col0 FROM tab0 cor0
----
-102
3

skipif mysql # not compatible
query II rowsort label-5676
SELECT - 6 + - 96, + COUNT ( * ) AS col0 FROM tab0 cor0
----
-102
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT DISTINCT COUNT( + ( - + 34 ) ) * 19 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT COUNT ( + ( - + 34 ) ) * 19 FROM tab2 AS cor0
----
57

query I rowsort
SELECT + - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL + 32 + - + COUNT( * ) FROM tab0, tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL + 32 + - + COUNT ( * ) FROM tab0, tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 WHERE 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL + COUNT( * ) + + ( MIN( DISTINCT col0 ) ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + COUNT ( * ) + + ( MIN ( DISTINCT col0 ) ) AS col2 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT - 9 AS col0, + COUNT( * ) col0 FROM tab2 AS cor0
----
-9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5682
SELECT - 9 AS col0, + COUNT ( * ) col0 FROM tab2 AS cor0
----
-9
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT ALL + + col1 DIV - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + + col1 / - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - col2 * + col0 * - - col0 + col1 FROM tab0 AS cor0
----
-10494
-75669
-931490

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL + SUM( DISTINCT 4 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL + SUM ( DISTINCT 4 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4

query I rowsort
SELECT DISTINCT - + 28 + + + 50 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
22

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 + + - 25 + + col1 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5689
SELECT ALL - + SUM( ALL - - 78 ) + - 18 + + + COUNT( * ) / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - + SUM ( ALL - - 78 ) + - 18 + + + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( + 35 ) * - + col1 * - 40 ) < NULL
----

query I rowsort
SELECT 44 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
44
44
44

query I rowsort
SELECT col1 - - col0 AS col1 FROM tab0 cor0
----
108
96
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + 40 NOT IN ( + col2 + col0, + 77 * - col1 + - + ( + col0 ), + 51, - - col0, - col1, - col2 + col2 + - + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - - 87 ) - col1 * + + col2 * - + ( col1 ) * col2 + col1 + + col0 + - - col0 FROM tab1 cor0
----
10214558
1806365
87113

query I rowsort
SELECT + ( 2 ) FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT 21 * ( + col1 ) AS col0 FROM tab0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT DISTINCT ( - + COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT ( - + COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT COUNT( * ) * - SUM( ALL 97 ) AS col2 FROM tab1
----
-873

skipif mysql # not compatible
query I rowsort label-5699
SELECT COUNT ( * ) * - SUM ( ALL 97 ) AS col2 FROM tab1
----
-873

onlyif mysql # DIV for integer division: 
query I rowsort label-5700
SELECT 62 DIV + col0 AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5700
SELECT 62 / + col0 AS col1 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT COUNT( * ) * + SUM( - 85 ) AS col1 FROM tab2
----
-765

skipif mysql # not compatible
query I rowsort label-5701
SELECT COUNT ( * ) * + SUM ( - 85 ) AS col1 FROM tab2
----
-765

query I rowsort
SELECT DISTINCT - ( + + 32 ) AS col1 FROM tab0
----
-32

query I rowsort
SELECT 69 * + + col2 FROM tab2
----
1587
2760
4002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT + ( - MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT + ( - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT ALL - 51 * + col0 AS col0, 80 * col1 AS col2 FROM tab2 AS cor0
----
-2346
4080
-3264
6160
-3825
5360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5706
SELECT - CAST( - ( 31 ) AS SIGNED ) AS col1, + 98 + - + COUNT( * ) FROM tab1 AS cor0
----
31
95

skipif mysql # not compatible
query II rowsort label-5706
SELECT - CAST ( - ( 31 ) AS INTEGER ) AS col1, + 98 + - + COUNT ( * ) FROM tab1 AS cor0
----
31
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5708
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON CAST( NULL AS SIGNED ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-5708
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON CAST ( NULL AS INTEGER ) = - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT ALL - + 96 DIV 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - + 96 / 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL + 22 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL - - col0 * - - col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT + ( - 91 ) AS col1 FROM tab2 cor0
----
-91
-91
-91

query I rowsort
SELECT - 31 * + col0 AS col2 FROM tab1 cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT DISTINCT - COUNT( * ), 81 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
243

skipif mysql # not compatible
query II rowsort label-5714
SELECT DISTINCT - COUNT ( * ), 81 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
243

query I rowsort
SELECT ( col0 ) * - + col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - + 91 * col2 FROM tab0 AS cor0
----
-4277
-9009
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col1, - col2 + + 62 * 74 * + 82 AS col0 FROM tab1 AS cor0
----
-14
376120
-47
376148
-5
376157

query II rowsort
SELECT DISTINCT - col2 AS col0, + col1 * - + col0 * + 71 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + - 94 * + 55 + + - 24 + - - col0 FROM tab0 AS cor0
----
-5097
-5107
-5179

query I rowsort
SELECT DISTINCT - col0 + + - 8 AS col0 FROM tab1
----
-59
-93
-99

query I rowsort
SELECT ALL + col0 + - col1 * + - 73 FROM tab2
----
3769
4966
5685

query I rowsort
SELECT ALL col1 * + + 30 + + col0 + - col0 * 53 FROM tab0
----
-3894
-5014
1650

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col0 * col0 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT + COUNT( * ) * COUNT( * ) + + 84 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-5724
SELECT + COUNT ( * ) * COUNT ( * ) + + 84 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL 65 + + ( COUNT( * ) ) * - 22 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL 65 + + ( COUNT ( * ) ) * - 22 AS col2 FROM tab2
----
-1

query I rowsort
SELECT col1 + - 78 FROM tab0
----
-57
-77
3

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col1 AND + - 22 + - + col2
----

query I rowsort
SELECT ALL - col0 * - col0 * + col0 * + 9 + + col0 AS col1 FROM tab1
----
1193910
5527210
6782230

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5730
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - ( col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - CAST ( NULL AS REAL ) - ( col1 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL NOT IN ( - - 77 + + col0 * + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 91 col2 FROM tab0 cor0
----
91
91
91

query II rowsort
SELECT + 17, - 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + + col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - MIN( col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5735
SELECT - MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT SUM( - + 13 ) AS col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT SUM ( - + 13 ) AS col2 FROM tab2 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 65 col1 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: 
query II rowsort label-5738
SELECT - + 48 AS col0, + SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
-48
195

skipif mysql # not compatible
query II rowsort label-5738
SELECT - + 48 AS col0, + SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
-48
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT + col0 col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5739
SELECT + col0 col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - 72 * + col1 FROM tab1 AS cor0
----
59
-360
68
-3384
96
-1008

query II rowsort
SELECT DISTINCT - 49 AS col2, 17 FROM tab2
----
-49
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL - MAX( ALL - + 93 ) * - COUNT( * ) col1 FROM tab2
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5743
SELECT ALL - MAX ( ALL - + 93 ) * - COUNT ( * ) col1 FROM tab2
----
-279

query I rowsort
SELECT ALL col2 * 12 AS col1 FROM tab1
----
1152
708
816

query I rowsort
SELECT col1 * + 95 * + + 43 FROM tab2
----
208335
273695
314545

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT + COUNT( - 78 ) col0, - 37 AS col1 FROM tab1
----
3
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5746
SELECT + COUNT ( - 78 ) col0, - 37 AS col1 FROM tab1
----
3
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col1 ) col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT - 16 * - 31 / + CAST( NULL AS SIGNED ) * - 72 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT - 16 * - 31 / + CAST ( NULL AS INTEGER ) * - 72 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 55 AS col1, - col0 col1 FROM tab2 AS cor0
----
55
-46
55
-64
55
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT + SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 47 IS NULL
----
195

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 47 IS NULL
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT ALL - COUNT( DISTINCT - + 72 ), COUNT( ALL col2 ) AS col2 FROM tab1 cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-5751
SELECT ALL - COUNT ( DISTINCT - + 72 ), COUNT ( ALL col2 ) AS col2 FROM tab1 cor0
----
-1
3

query II rowsort
SELECT 56 AS col0, 99 FROM tab2 AS cor0
----
56
99
56
99
56
99

query II rowsort
SELECT ALL col1 AS col0, 40 FROM tab2 cor0
----
51
40
67
40
77
40

query I rowsort
SELECT ALL col1 + 85 * - - col2 AS col0 FROM tab2
----
2006
3477
4997

query I rowsort
SELECT - 42 * - - 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 047b133ea2c3b1525535584ea4279511

query I rowsort
SELECT 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + + col1 + + 42 FROM tab1 AS cor0
----
47
56
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 98 - + col1 * + + col0
----

query I rowsort
SELECT - col0 * + 75 + + + col0 FROM tab2 AS cor0
----
-3404
-4736
-5550

query II rowsort
SELECT - - col1 * + col1 + + - 23, col1 AS col0 FROM tab2 AS cor0
----
2578
51
4466
67
5906
77

query II rowsort
SELECT 94 * 70 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
6580
-51
6580
-85
6580
-91

query I rowsort
SELECT + col1 * ( + ( 94 ) ) AS col1 FROM tab1 cor0
----
1316
4418
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 41 col0 FROM tab0 AS cor0 WHERE - col1 * - - col2 * + col1 IS NOT NULL
----
122
42
62

query I rowsort
SELECT DISTINCT - col1 * + - col1 + - - col1 + + 50 AS col0 FROM tab1
----
2306
260
80

query III rowsort
SELECT * FROM tab2 WHERE col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT MIN( - 49 ) AS col1 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-5766
SELECT MIN ( - 49 ) AS col1 FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5767
SELECT col0 - col2 * + col1 AS col0, - col2 - - col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-1127
NULL
-3016
NULL
-3811
NULL

skipif mysql # not compatible
query II rowsort label-5767
SELECT col0 - col2 * + col1 AS col0, - col2 - - col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-1127
NULL
-3016
NULL
-3811
NULL

query I rowsort
SELECT ALL col2 + - - ( + col1 ) FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT DISTINCT 49 + - COUNT( * ) DIV - MAX( 21 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT 49 + - COUNT ( * ) / - MAX ( 21 ) AS col1 FROM tab2
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5770
SELECT ALL - - col2 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - - col2 - - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab1 cor0
----
1

query III rowsort
SELECT * FROM tab1 WHERE - 23 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT - MIN( DISTINCT + - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5774
SELECT - MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + + 38 FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL - + COUNT( ALL + - 23 ) * 12 col1 FROM tab0 cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT ALL - + COUNT ( ALL + - 23 ) * 12 col1 FROM tab0 cor0
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5777
SELECT col2, + col1 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> CAST( col1 AS DECIMAL ) * - 7
----

skipif mysql # not compatible
query II rowsort label-5777
SELECT col2, + col1 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> CAST ( col1 AS REAL ) * - 7
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col2 * + + 31 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + 44
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 * - 35 AS col1 FROM tab1
----
1645
175
490

query I rowsort
SELECT DISTINCT - col0 * col0 * + - col2 AS col2 FROM tab0
----
10575
75690
931491

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( + + col1 / col2, 30 + 90, + 55 * - col2 + + - col0 + 84, - 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 68 * - col1 AS col0 FROM tab0
----
1428
5508
68

query I rowsort
SELECT + col0 * + - 99 AS col0 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT ALL - col0 DIV col1 DIV col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - col0 / col1 / col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT 69 DIV + 53 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5787
SELECT 69 / + 53 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + 2 AS col2 FROM tab0 cor0 WHERE NOT + 24 * + col1 + - - 29 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col1 AND + + 63
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL BETWEEN - + 97 AND NULL )
----

query I rowsort
SELECT DISTINCT + - 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE - col2 IS NULL
----

query II rowsort
SELECT 27 AS col2, col0 * col2 + col0 + - 2 AS col0 FROM tab0
----
27
718
27
955
27
9698

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 49 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL - ( MAX( - + col2 ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL - ( MAX ( - + col2 ) ) FROM tab1 cor0
----
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - + col0 col2 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT DISTINCT MAX( ALL - 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT MAX ( ALL - 91 ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT - col0 + + 20 * col2 FROM tab2 AS cor0
----
1085
414
736

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT COUNT( * ) + 40 AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5800
SELECT COUNT ( * ) + 40 AS col1 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT DISTINCT - COUNT( * ), COUNT( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5801
SELECT DISTINCT - COUNT ( * ), COUNT ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT MIN( DISTINCT col2 ) + - - 31 col0 FROM tab0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5802
SELECT MIN ( DISTINCT col2 ) + - - 31 col0 FROM tab0
----
41

query I rowsort
SELECT - + 96 FROM tab2 WHERE NULL IS NULL
----
-96
-96
-96

query I rowsort
SELECT ALL col2 + 13 * - col2 * - col1 AS col2 FROM tab0
----
1386
2740
49538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5805
SELECT DISTINCT + CAST( - SUM( ALL + col2 ) AS SIGNED ) - + COUNT( * ) FROM tab2 cor0
----
-124

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + CAST ( - SUM ( ALL + col2 ) AS INTEGER ) - + COUNT ( * ) FROM tab2 cor0
----
-124

query I rowsort
SELECT ALL + col0 + - + col0 - - col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - - 34 AS col1 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + col2 * - ( + + col0 ) - + col1 + - col2 FROM tab1 AS cor0
----
-5006
-5079
-6303

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL + COUNT( * ) * - - COUNT( ALL 37 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL + COUNT ( * ) * - - COUNT ( ALL 37 ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5810
SELECT ALL - col2 DIV - ( 12 ) AS col0 FROM tab0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL - col2 / - ( 12 ) AS col0 FROM tab0
----
0
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 38 IS NOT NULL
----

query I rowsort
SELECT ALL 14 * + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1386
140
658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1, 89 + + col2 col0 FROM tab2 AS cor0
----
51
112
67
147
77
129

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT MIN( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5816
SELECT MIN ( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
5

query II rowsort
SELECT + col0 AS col0, - 33 FROM tab1 cor0
----
51
-33
85
-33
91
-33

query I rowsort
SELECT + col2 * - + col2 + - 4 FROM tab1 AS cor0 WHERE NOT ( - col0 <> NULL )
----

query II rowsort
SELECT ALL col1 AS col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT + MAX( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - ( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT + MAX ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - ( + 37 )
----
NULL

query II rowsort
SELECT - 7 AS col0, - col2 * + 13 FROM tab2 WHERE NOT - col1 IS NULL
----
-7
-299
-7
-520
-7
-754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL - CAST( 32 AS SIGNED ) AS col2 FROM tab0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - CAST ( 32 AS INTEGER ) AS col2 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT 23 * 58 AS col0 FROM tab0
----
1334
1334
1334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col0 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT - + col0 * - col2 * + - col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT + ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + - 59 * + col2 FROM tab2 AS cor0
----
-1357
-2360
-3422

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT ALL 47 DIV col2 * - 21 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL 47 / col2 * - 21 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + - - col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT - col1 + 7 FROM tab0
----
-14
-74
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT + 60 DIV + 48 + + 6 * - col1 col0 FROM tab2
----
-305
-401
-461

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5832
SELECT + 60 / + 48 + + 6 * - col1 col0 FROM tab2
----
-305
-401
-461

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT COUNT( * ) + + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5833
SELECT COUNT ( * ) + + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL - 13 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT + + col0 + + col1 + 79 DIV col0 FROM tab0 AS cor0
----
101
108
98

skipif mysql # not compatible
query I rowsort label-5835
SELECT + + col0 + + col1 + 79 / col0 FROM tab0 AS cor0
----
101
108
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT + - MAX( ALL + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5836
SELECT + - MAX ( ALL + col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - ( + ( - 89 ) ) FROM tab2 AS cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 87 col2, - ( - 70 ) FROM tab2 AS cor0
----
-87
70
-87
70
-87
70

query II rowsort
SELECT - 92 * - + 41 * - col0 AS col0, - col2 FROM tab0 cor0
----
-328164
-10
-365884
-99
-56580
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT DISTINCT col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT col0 / col0 AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT ALL + - ( col0 ) FROM tab2 WHERE NOT - 54 <> - CAST( - + col1 AS SIGNED ) * 39
----

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + - ( col0 ) FROM tab2 WHERE NOT - 54 <> - CAST ( - + col1 AS INTEGER ) * 39
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col0 * + col1 * - - col1 + + 21 + 79 * - ( + col0 )
----

query I rowsort
SELECT - col1 - - 7 AS col0 FROM tab2
----
-44
-60
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT ALL COUNT( * ) AS col0, COUNT( * ) col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5844
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab1
----
3
3

query I rowsort
SELECT ALL col2 + + col0 + - col1 * + col2 AS col1 FROM tab2
----
-1104
-2976
-3753

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT DISTINCT - COUNT( * ), - COUNT( * ) AS col2 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5846
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0
----
-3
-3

query I rowsort
SELECT col0 - + - col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT col1 DIV - col2 + col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-5848
SELECT col1 / - col2 + col2 FROM tab2
----
21
39
57

query I rowsort
SELECT col1 * - col0 + + + ( + col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
-10857
-4947
-9514

query I rowsort
SELECT ALL - 12 * - col1 * col2 + + 18 + + 54 * + col0 * + + 55 FROM tab0 AS cor0
----
260928
289296
90252

query II rowsort
SELECT ALL - col2 * 77 AS col1, - col2 FROM tab1 AS cor0
----
-4543
-59
-5236
-68
-7392
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 25 * + + col1
----

query I rowsort
SELECT ( + - 68 ) FROM tab2 AS cor0
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT + CAST( - + 84 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-5854
SELECT + CAST ( - + 84 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-84
-84
-84

query II rowsort
SELECT + + 31 * + + col0 * col1 AS col0, + ( - - 81 ) * col1 * - + 33 + - ( 29 ) AS col0 FROM tab2 WHERE NOT - ( - - 5 ) * - 66 IS NOT NULL
----

query I rowsort
SELECT ALL - 43 * 41 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3a849964875624b0c6fcbe6b9da6782c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5857
SELECT - CAST( NULL AS SIGNED ) AS col1, 67 AS col2 FROM tab0
----
NULL
67
NULL
67
NULL
67

skipif mysql # not compatible
query II rowsort label-5857
SELECT - CAST ( NULL AS INTEGER ) AS col1, 67 AS col2 FROM tab0
----
NULL
67
NULL
67
NULL
67

query I rowsort
SELECT DISTINCT col1 * + 23 AS col0 FROM tab1
----
1081
115
322

query I rowsort
SELECT ALL 53 * - 61 FROM tab2 cor0
----
-3233
-3233
-3233

query I rowsort
SELECT DISTINCT + col0 * - + col0 FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT - col2 * col0 + col0 * + col1 FROM tab0
----
-9506
510
957

query I rowsort
SELECT DISTINCT 61 * col2 + col0 AS col2 FROM tab2
----
1449
2504
3613

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col2 <= + col2 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 > + 34 + col0
----
85
5
59
91
47
68

query I rowsort
SELECT 7 FROM tab2 WHERE ( NULL ) <= - col1 * - col2
----

query I rowsort
SELECT DISTINCT 13 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT + COUNT( * ) * 64 AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + COUNT ( * ) * 64 AS col0 FROM tab1
----
192

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND col2 + 84 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - ( COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5870
SELECT - ( COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT - 97 * COUNT( * ) AS col0 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT - 97 * COUNT ( * ) AS col0 FROM tab2
----
-291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 60 col1 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
107
65
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT + COUNT( ALL col2 ) + 53 FROM tab0 WHERE CAST( NULL AS SIGNED ) * 40 + 53 / - 26 BETWEEN - col0 AND NULL
----
53

skipif mysql # not compatible
query I rowsort label-5874
SELECT + COUNT ( ALL col2 ) + 53 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * 40 + 53 / - 26 BETWEEN - col0 AND NULL
----
53

query I rowsort
SELECT ALL - col0 * 76 + col1 FROM tab0
----
-1059
-6591
-7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * 24 col0 FROM tab0
----
1128
2376
240

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT ALL - col1 DIV - 40 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL - col1 / - 40 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL ( + 89 ) AS col1 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT MAX( + 13 ) * COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-5879
SELECT MAX ( + 13 ) * COUNT ( * ) FROM tab0
----
39

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + 17 * - 57 + 14 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT + ( 69 ) / - col0 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * col1 - 92 FROM tab2
----
2254
4836
4933

query I rowsort
SELECT - col1 * + ( col1 ) + + 32 AS col2 FROM tab1
----
-164
-2177
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5885
SELECT ALL * FROM tab1 WHERE NOT - 43 * + 21 BETWEEN NULL AND ( CAST( + col1 AS SIGNED ) + ( ( + col1 ) ) )
----

skipif mysql # not compatible
query III rowsort label-5885
SELECT ALL * FROM tab1 WHERE NOT - 43 * + 21 BETWEEN NULL AND ( CAST ( + col1 AS INTEGER ) + ( ( + col1 ) ) )
----

query I rowsort
SELECT DISTINCT + 9 * + col1 AS col2 FROM tab0
----
189
729
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL MAX( 72 ) * COUNT( * ) col1 FROM tab0
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5887
SELECT ALL MAX ( 72 ) * COUNT ( * ) col1 FROM tab0
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT ALL 88 DIV + COUNT( DISTINCT col2 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL 88 / + COUNT ( DISTINCT col2 ) FROM tab2
----
29

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL < ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 cor0 WHERE - 79 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT ( ( - ( - 63 ) ) ) AS col1 FROM tab0
----
63

query I rowsort
SELECT - 70 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT + 32 * 95 AS col1 FROM tab2
----
3040
3040
3040

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT + col1 * col2 = ( - ( - col2 ) )
----
46
64
75

query I rowsort
SELECT 79 FROM tab2 AS cor0 WHERE NOT ( col1 / col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5896
SELECT 53 * CAST( - ( 14 ) * + col2 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5896
SELECT 53 * CAST ( - ( 14 ) * + col2 AS REAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT col0 DIV 70 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5897
SELECT col0 / 70 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL col2 * + 71 AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - ( col2 ) * - 61 AS col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

query I rowsort
SELECT col1 * col0 + 40 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1255
137
1867

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT DISTINCT + 5 + + COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT + 5 + + COUNT ( * ) FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL 43 + COUNT( * ) FROM tab1 WHERE 52 BETWEEN + 58 - ( col1 ) * + col1 AND - ( + col0 )
----
43

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL 43 + COUNT ( * ) FROM tab1 WHERE 52 BETWEEN + 58 - ( col1 ) * + col1 AND - ( + col0 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5903
SELECT DISTINCT * FROM tab2 WHERE NOT + 3 + + col2 IN ( CAST( 45 AS SIGNED ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5903
SELECT DISTINCT * FROM tab2 WHERE NOT + 3 + + col2 IN ( CAST ( 45 AS INTEGER ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT SUM( DISTINCT + col1 ) + ( - 40 ) AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT SUM ( DISTINCT + col1 ) + ( - 40 ) AS col1 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT - MIN( ALL - + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT - MIN ( ALL - + col2 ) FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 = - col0 * - col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5907
SELECT col0 AS col2 FROM tab0 WHERE NULL BETWEEN - ( CAST( NULL AS DECIMAL ) ) / ( + 57 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5907
SELECT col0 AS col2 FROM tab0 WHERE NULL BETWEEN - ( CAST ( NULL AS REAL ) ) / ( + 57 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT + 2 * COUNT( * ) + 47 FROM tab1 WHERE ( - col1 * col1 ) > - ( + ( col0 ) ) / - 90
----
47

skipif mysql # not compatible
query I rowsort label-5908
SELECT + 2 * COUNT ( * ) + 47 FROM tab1 WHERE ( - col1 * col1 ) > - ( + ( col0 ) ) / - 90
----
47

query I rowsort
SELECT col1 * - + 77 * + 77 FROM tab2
----
-302379
-397243
-456533

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT 73 + ( COUNT( * ) ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT 73 + ( COUNT ( * ) ) FROM tab2
----
76

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * 35 BETWEEN + col2 AND NULL
----
15
87
97

query I rowsort
SELECT + 6 + + col1 AS col2 FROM tab2 AS cor0
----
57
73
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 2 / - 45 ) IN ( col2 )
----

query II rowsort
SELECT - col1 AS col2, col0 * ( + 6 ) FROM tab2 AS cor0
----
-51
276
-67
450
-77
384

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - - ( + col1 ) <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT DISTINCT ( - col0 ) - col0 DIV - ( - col2 + + 74 ) col1 FROM tab1 AS cor0
----
-53
-76
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT DISTINCT ( - col0 ) - col0 / - ( - col2 + + 74 ) col1 FROM tab1 AS cor0
----
-53
-76
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5917
SELECT 29, + COUNT( * ) + MAX( + ( - col0 ) ) DIV + 87 AS col1 FROM tab1 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-5917
SELECT 29, + COUNT ( * ) + MAX ( + ( - col0 ) ) / + 87 AS col1 FROM tab1 AS cor0
----
29
3

query I rowsort
SELECT 12 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col2 - col2 )
----

query I rowsort
SELECT DISTINCT 47 + 92 * col1 AS col2 FROM tab1 AS cor0
----
1335
4371
507

query II rowsort
SELECT DISTINCT + - col0 AS col1, 67 - - col2 FROM tab0 AS cor0
----
-15
114
-87
77
-97
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL - COUNT( * ) - - - 67 AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - COUNT ( * ) - - - 67 AS col1 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT 26 * + + 17 FROM tab0 AS cor0
----
442
442
442

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col2 FROM tab1 cor0
----
86

query I rowsort
SELECT - 20 + 17 FROM tab2 cor0 WHERE col2 <> - col0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT DISTINCT - COUNT( * ) AS col2, 75 FROM tab1 AS cor0
----
-3
75

skipif mysql # not compatible
query II rowsort label-5927
SELECT DISTINCT - COUNT ( * ) AS col2, 75 FROM tab1 AS cor0
----
-3
75

query I rowsort
SELECT DISTINCT + col2 - - + col2 FROM tab1
----
118
136
192

query III rowsort
SELECT * FROM tab2 WHERE NOT + 64 IS NULL AND NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 * 84 AS col0 FROM tab2
----
-4284
-5628
-6468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5932
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * 96 AS col1 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT ALL - 97 AS col0 FROM tab2 WHERE NOT ( 74 ) IN ( + col0 )
----
-97
-97
-97

query I rowsort
SELECT - 11 - col2 FROM tab0 WHERE NOT NULL >= 42 - - col1
----

query I rowsort
SELECT DISTINCT + col2 * - - col1 * col1 AS col0 FROM tab2
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT DISTINCT - 21 / + - CAST( NULL AS SIGNED ) * - - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT - 21 / + - CAST ( NULL AS INTEGER ) * - - col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT col0 DIV - 86 AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5938
SELECT col0 / - 86 AS col1 FROM tab0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT ALL 64 DIV col2 * - - col1 AS col1 FROM tab1
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL 64 / col2 * - - col1 AS col1 FROM tab1
----
0
0
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 NOT IN ( 32 + - col0 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 93 col0 FROM tab1 AS cor0
----
-93

query II rowsort
SELECT ALL - ( col0 ) AS col1, 9 AS col0 FROM tab0 cor0
----
-15
9
-87
9
-97
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 91 = col0
----
51
14
96
85
5
59

query I rowsort
SELECT + 51 * + col2 * + 78 - - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
159184
230799
91540

query III rowsort
SELECT * FROM tab1 WHERE NOT + 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT ALL + 76 + + - CAST( 20 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
56
56
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5946
SELECT ALL + 76 + + - CAST ( 20 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
56
56
56

query I rowsort
SELECT ALL - + 20 AS col2 FROM tab2 cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - 4 ) ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - 4 ) ) < ( NULL )
----
0

query I rowsort
SELECT ALL + 21 + + AVG ( ALL 60 ) AS col2 FROM tab0 AS cor0 WHERE 65 BETWEEN - - col1 * col0 + + col2 AND NULL
----
NULL

query II rowsort
SELECT - 81 + 48, - 84 * ( + - col2 ) * - 87 * - 45 - 64 AS col2 FROM tab0
----
-33
15456356
-33
32557076
-33
3288536

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 86 AND NULL
----

query I rowsort
SELECT - ( col1 ) + - col1 * - col1 * col0 AS col2 FROM tab0
----
38346
96
98334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT COUNT( * ) + 65 AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-5954
SELECT COUNT ( * ) + 65 AS col1 FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT + 98 * + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 98 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 - + col0 + + - 76 col2 FROM tab1 AS cor0
----
-35
-69
-75

query II rowsort
SELECT - col2, col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + 39 IN ( + 48 - + 56 ) AND NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 - - col0 AS col2 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 + + 57 col2 FROM tab2 AS cor0
----
-1001
-2503
-4293

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE col2 - - 22 <= + 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT + col1 + + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT + col1 + + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 3 * col1 FROM tab1
----
1275
12831
2142

query II rowsort
SELECT ALL col1, + col2 + + - col1 + + - col2 AS col1 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT ALL - 83 AS col2, - 58 AS col0 FROM tab0
----
-83
-58
-83
-58
-83
-58

query II rowsort
SELECT col0, 51 + 82 FROM tab0 AS cor0
----
15
133
87
133
97
133

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT ALL 66 * col2 * ( + col1 ) * + 13 + - 22 DIV + 59 + + col1 + + 23 * + 32 + + 25 FROM tab2 AS cor0
----
1007246
2643478
3335016

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL 66 * col2 * ( + col1 ) * + 13 + - 22 / + 59 + + col1 + + 23 * + 32 + + 25 FROM tab2 AS cor0
----
1007246
2643478
3335016

query I rowsort
SELECT - 79 * + - col2 AS col2 FROM tab1 AS cor0
----
4661
5372
7584

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5970
SELECT - - CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5970
SELECT - - CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT ALL - CAST( + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT 79 + - COUNT( - 21 ) FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-5972
SELECT 79 + - COUNT ( - 21 ) FROM tab1 cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT MAX( ALL + 93 ) + + 5 FROM tab0 AS cor0 WHERE - col0 + col1 + 98 >= + col0
----
98

skipif mysql # not compatible
query I rowsort label-5973
SELECT MAX ( ALL + 93 ) + + 5 FROM tab0 AS cor0 WHERE - col0 + col1 + 98 >= + col0
----
98

query II rowsort
SELECT ( - col2 ) AS col0, 15 AS col2 FROM tab2 AS cor0
----
-23
15
-40
15
-58
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5975
SELECT + - ( - - COUNT( * ) ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT + - ( - - COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5976
SELECT ALL 98 * - - ( CAST( - + col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-4508
-6272
-7350

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL 98 * - - ( CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-4508
-6272
-7350

query I rowsort
SELECT col0 / - col1 / - col2 AS col2 FROM tab1 AS cor0 WHERE + col0 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5978
SELECT col0 DIV - - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5978
SELECT col0 / - - col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT DISTINCT - col1 * 64 + 23 AS col0 FROM tab2 AS cor0
----
-3241
-4265
-4905

query I rowsort
SELECT ALL - 54 + col2 AS col2 FROM tab0
----
-44
-7
45

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT + MIN( + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5982
SELECT + MIN ( + col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5983
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5983
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + 61 AS col2 FROM tab1
----
120
129
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT - + MIN( DISTINCT 34 ) + + 63 AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5985
SELECT - + MIN ( DISTINCT 34 ) + + 63 AS col0 FROM tab0 AS cor0
----
29

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, 29 * + col0 * col1 col1 FROM tab0
----
15
35235
87
52983
97
2813

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE - + col0 + - 79 < col1 * + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT - ( + AVG ( + - col2 ) ) * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT - ( + AVG ( + - col2 ) ) * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT - - 63 * + - ( - + COUNT( DISTINCT - ( + col1 ) ) ) - - MIN( - ( - col2 ) ) FROM tab1 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - - 63 * + - ( - + COUNT ( DISTINCT - ( + col1 ) ) ) - - MIN ( - ( - col2 ) ) FROM tab1 AS cor0
----
248

query II rowsort
SELECT + + 23 AS col2, - 53 AS col2 FROM tab1 AS cor0
----
23
-53
23
-53
23
-53

query II rowsort
SELECT ALL col0 AS col1, - 16 * - - col0 * 34 FROM tab2 AS cor0
----
46
-25024
64
-34816
75
-40800

query II rowsort
SELECT DISTINCT col1, col0 AS col1 FROM tab1 cor0
----
14
51
47
91
5
85

query II rowsort
SELECT ALL - col2, + ( - ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - + col1 FROM tab1 cor0 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT COUNT( + 74 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT COUNT ( + 74 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT - 54 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5999
SELECT * FROM tab1, tab0 cor0 WHERE CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5999
SELECT * FROM tab1, tab0 cor0 WHERE CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT ( NOT + ( - + col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT - 49 DIV - SUM( ALL - 9 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6001
SELECT - 49 / - SUM ( ALL - 9 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 27 / - 2 IS NULL
----

query I rowsort
SELECT ALL col2 * - 26 FROM tab0 cor0
----
-1222
-2574
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT DISTINCT - 18 DIV + 11 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - 18 / + 11 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6005
SELECT DISTINCT - 48 DIV - - col0 + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - 48 / - - col0 + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT + 4 * + - COUNT( - col0 ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT + 4 * + - COUNT ( - col0 ) AS col2 FROM tab1
----
-12

query I rowsort
SELECT ALL - col2 * 78 FROM tab0
----
-3666
-7722
-780

query I rowsort
SELECT ALL - + 58 * + col0 FROM tab2 AS cor0
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT + + 88 * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT + + 88 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= col2 * - col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6010
SELECT + col0 col2, col1 DIV col0 FROM tab2 AS cor0
----
46
1
64
1
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6010
SELECT + col0 col2, col1 / col0 FROM tab2 AS cor0
----
46
1
64
1
75
0

query I rowsort
SELECT DISTINCT + ( col1 ) * + 45 / - 25 + 27 FROM tab0 AS cor0 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - col2 + + col0 + - col0 >= ( + - 62 - + 0 )
----
23
40
58

query I rowsort
SELECT - 94 + + + ( - - 30 ) AS col0 FROM tab0 AS cor0
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - ( - COUNT( * ) ) + + + 50 AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-6015
SELECT - ( - COUNT ( * ) ) + + + 50 AS col0 FROM tab1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6016
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) + 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6016
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - 64 AS col1, col2 + col1 col2 FROM tab0
----
-43
31
-63
100
17
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6018
SELECT ALL - col2 + - col2 col2, - CAST( col1 AS SIGNED ) + 62 FROM tab0
----
-198
61
-20
41
-94
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6018
SELECT ALL - col2 + - col2 col2, - CAST ( col1 AS INTEGER ) + 62 FROM tab0
----
-198
61
-20
41
-94
-19

query III rowsort
SELECT * FROM tab2 WHERE col2 * + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * 92 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ( MIN( - 24 ) ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6021
SELECT ( MIN ( - 24 ) ) AS col1 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT ALL + - col0 * - col2 + col2 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL - - ( + CAST( 27 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL - - ( + CAST ( 27 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT ALL - + ( + 21 ) FROM tab1 cor0
----
-21
-21
-21

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 50 * + ( + + col0 ) IS NULL
----

query I rowsort
SELECT + + 85 * 84 FROM tab1 AS cor0
----
7140
7140
7140

query II rowsort
SELECT ALL + + 65 AS col0, 92 - col1 + col2 * + col2 * + + col1 FROM tab0 AS cor0
----
65
178940
65
2171
65
9892

onlyif mysql # aggregate syntax: 
query II rowsort label-6028
SELECT ALL + - COUNT( * ) col1, - 36 col1 FROM tab2 AS cor0
----
-3
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6028
SELECT ALL + - COUNT ( * ) col1, - 36 col1 FROM tab2 AS cor0
----
-3
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT + SUM( - + 58 ) AS col1 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-6029
SELECT + SUM ( - + 58 ) AS col1 FROM tab2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6030
SELECT ALL - ( - CAST( - - col2 AS SIGNED ) ) col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6030
SELECT ALL - ( - CAST ( - - col2 AS INTEGER ) ) col2 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 1, col2 col1 FROM tab2
----
1
23
1
40
1
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + 74 + + col0 AS col0 FROM tab1
----
-14
125
-47
165
-5
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6033
SELECT - col0 AS col0 FROM tab1 WHERE NOT col2 / - CAST( NULL AS SIGNED ) > - 63 + + 57
----

skipif mysql # not compatible
query I rowsort label-6033
SELECT - col0 AS col0 FROM tab1 WHERE NOT col2 / - CAST ( NULL AS INTEGER ) > - 63 + + 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT col2 DIV + 89 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6034
SELECT col2 / + 89 FROM tab1
----
0
0
1

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 AS col0 FROM tab0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ( - ( - - 13 ) ) * - SUM( DISTINCT + 5 ) * 10 AS col0 FROM tab2 AS cor0
----
650

skipif mysql # not compatible
query I rowsort label-6037
SELECT ( - ( - - 13 ) ) * - SUM ( DISTINCT + 5 ) * 10 AS col0 FROM tab2 AS cor0
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT - COUNT( + - ( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6038
SELECT - COUNT ( + - ( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT DISTINCT + col2 DIV + ( col2 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + col2 / + ( col2 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - col2 + - 3 + col2 * - - 67 AS col2 FROM tab2 AS cor0
----
1561
2717
3941

query I rowsort
SELECT 11 * - 54 FROM tab1
----
-594
-594
-594

query III rowsort
SELECT ALL * FROM tab1 WHERE - 33 <= + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT COUNT( * ) - COUNT( * ) * + 57 FROM tab1 AS cor0 WHERE NOT NULL <= col2 - 1
----
0

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * + 57 FROM tab1 AS cor0 WHERE NOT NULL <= col2 - 1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6044
SELECT DISTINCT - COUNT( + col1 ) DIV - 47 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT - COUNT ( + col1 ) / - 47 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - col1 * - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - 30 = + col0 + 32
----
0

skipif mysql # not compatible
query I rowsort label-6046
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - 30 = + col0 + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT MIN( - - col0 ) * - 99 col2 FROM tab0 cor0
----
-1485

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT MIN ( - - col0 ) * - 99 col2 FROM tab0 cor0
----
-1485

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE - col0 / + col0 IS NULL
----

query I rowsort
SELECT ALL 34 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + 21
----

query I rowsort
SELECT DISTINCT - + col1 * - 65 AS col2 FROM tab2 AS cor0
----
3315
4355
5005

onlyif mysql # DIV for integer division: 
query I rowsort label-6051
SELECT ALL + 6 DIV + col1 + - - 8 AS col2 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + 6 / + col1 + - - 8 AS col2 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL + MAX( DISTINCT - 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + MAX ( DISTINCT - 62 ) FROM tab0 AS cor0
----
-62

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + ( - col1 ) + 72 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT ( + + COUNT( * ) ) + + 36 AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT ( + + COUNT ( * ) ) + + 36 AS col1 FROM tab1
----
39

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6056
SELECT ALL col2 DIV col2 + col0 AS col1 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL col2 / col2 + col0 AS col1 FROM tab0
----
16
88
98

query I rowsort
SELECT - + col1 + - col2 * - 50 * + 7 FROM tab1 AS cor0
----
20645
23753
33586

query I rowsort
SELECT ALL - col0 + 6 FROM tab1 AS cor0
----
-45
-79
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT + SUM( col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + SUM ( col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT - + col0 * col0 + - col1 FROM tab2 cor0
----
-2167
-4173
-5692

query I rowsort
SELECT - col0 * + col0 * - + 46 AS col0 FROM tab2 AS cor0
----
188416
258750
97336

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6064
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-6065
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT + - 8 * + - COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6066
SELECT + - 8 * + - COUNT ( * ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( col2 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6068
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6068
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 77 * + col0 AS col2 FROM tab0
----
-1155
-6699
-7469

query II rowsort
SELECT DISTINCT 52 AS col2, col0 FROM tab2
----
52
46
52
64
52
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT COUNT( + - 59 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT COUNT ( + - 59 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT DISTINCT - col1 FROM tab2 WHERE NOT + col0 - - 17 + - col1 * - ( - col2 ) <> - CAST( 71 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT - col1 FROM tab2 WHERE NOT + col0 - - 17 + - col1 * - ( - col2 ) <> - CAST ( 71 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - 90 ) AS col2 FROM tab2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) * 5 * + AVG ( DISTINCT col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) * 5 * + AVG ( DISTINCT col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 0 * 21 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL MIN( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL MIN ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL - SUM( + + col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - SUM ( + + col1 ) FROM tab1 cor0
----
-66

query II rowsort
SELECT ALL - 39, col0 FROM tab2 AS cor0
----
-39
46
-39
64
-39
75

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE - col1 + + 9 + + 23 + + col1 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6080
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6080
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6081
SELECT + MAX( + 43 ) AS col1, + COUNT( * ) FROM tab0
----
43
3

skipif mysql # not compatible
query II rowsort label-6081
SELECT + MAX ( + 43 ) AS col1, + COUNT ( * ) FROM tab0
----
43
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * col2 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT - 98 + COUNT( * ) * - MAX( - - col2 ) AS col1 FROM tab0 AS cor0
----
-395

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT - 98 + COUNT ( * ) * - MAX ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * col1 col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT + col2 * col1 + + - col0 - 9 + - - 50 FROM tab0 AS cor0
----
164
3833
43

query II rowsort
SELECT ALL + col0 * + col2 AS col0, 21 AS col0 FROM tab1
----
4896
21
5015
21
6188
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT ( col1 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6088
SELECT - CAST( + col0 AS SIGNED ) + - - col0 AS col2, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-6088
SELECT - CAST ( + col0 AS INTEGER ) + - - col0 AS col2, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6089
SELECT 43 DIV - + COUNT( * ) + - + COUNT( * ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-6089
SELECT 43 / - + COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT ALL + MAX( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL + MAX ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab0
----
-15

query II rowsort
SELECT DISTINCT col1 + col0, col1 AS col2 FROM tab2
----
141
77
142
67
97
51

query I rowsort
SELECT DISTINCT col2 + + ( + - col1 ) FROM tab1
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 + - - 21 col0 FROM tab1
----
57
57
57

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 = + - col0 * - + col2 + col2 + col1
----

query II rowsort
SELECT DISTINCT + col0 - + - col0 AS col0, col2 FROM tab0
----
174
10
194
99
30
47

query I rowsort
SELECT ALL - col2 + + + 12 + + col1 FROM tab0 AS cor0
----
-86
23
46

query I rowsort
SELECT ALL ( + col1 ) FROM tab2 AS cor0 WHERE ( 74 ) < ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 22 * + col0 / - + col2 * + + 48 IN ( 41, 59, + + 77 * + col0 )
----

query I rowsort
SELECT + - 34 FROM tab1 AS cor0 WHERE NOT + 65 + - 31 > + + col0
----
-34
-34
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT CAST( NULL AS SIGNED ) + 23 * + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT CAST ( NULL AS INTEGER ) + 23 * + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( + col0 * + col1, - 30 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 77 * 58
----

query I rowsort
SELECT 35 * 82 FROM tab2 AS cor0
----
2870
2870
2870

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT - - COUNT( * ), 89 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
89

skipif mysql # not compatible
query II rowsort label-6104
SELECT - - COUNT ( * ), 89 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
89

query II rowsort
SELECT + col0 AS col0, col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT ALL 21 AS col0, COUNT( * ) col1 FROM tab0 AS cor0
----
21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6106
SELECT ALL 21 AS col0, COUNT ( * ) col1 FROM tab0 AS cor0
----
21
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + col0 + - + col2 + - col0 / 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL + MIN( + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + MIN ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + + col0 - - col2 > NULL
----

query II rowsort
SELECT + col2, col0 + + - col0 + - + col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT - MIN( DISTINCT + ( - col0 ) ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6112
SELECT - MIN ( DISTINCT + ( - col0 ) ) AS col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL COUNT( * ) + + COUNT( * ) + - 30 AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - 30 AS col0 FROM tab1
----
-24

query I rowsort
SELECT - 15 FROM tab1 AS cor0 WHERE 30 IS NULL
----

query I rowsort
SELECT + ( + - ( - + col1 ) ) + - - 21 AS col2 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( + ( - col2 ) ) = NULL
----

query I rowsort
SELECT + col0 - - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - - COUNT( DISTINCT - 46 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6119
SELECT - - COUNT ( DISTINCT - 46 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + 22 - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6121
SELECT ALL + + ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL + + ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * - 48 col2 FROM tab1 AS cor0
----
-2496

query I rowsort
SELECT DISTINCT + + ( 47 ) - 33 + + + col0 - - 40 * + 37 AS col0 FROM tab1 AS cor0
----
1545
1579
1585

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT DISTINCT - - COUNT( * ) + - + SUM( - col0 ) FROM tab2 WHERE NOT NULL >= + - ( + 55 ) / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT - - COUNT ( * ) + - + SUM ( - col0 ) FROM tab2 WHERE NOT NULL >= + - ( + 55 ) / - col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6125
SELECT ALL 94, COUNT( * ) * - SUM( + CAST( NULL AS SIGNED ) ) + + CAST( + + COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-6125
SELECT ALL 94, COUNT ( * ) * - SUM ( + CAST ( NULL AS INTEGER ) ) + + CAST ( + + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2
----
94
NULL

query I rowsort
SELECT 46 - + + 60 FROM tab2
----
-14
-14
-14

query III rowsort
SELECT * FROM tab0 WHERE + col2 + 30 NOT BETWEEN NULL AND - + 65 + + 34 + - 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - ( - + 27 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - 4 col1 FROM tab2
----
204
268
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT COUNT( * ) - - - SUM( + - col0 ) AS col1 FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-6130
SELECT COUNT ( * ) - - - SUM ( + - col0 ) AS col1 FROM tab0
----
202

query I rowsort
SELECT 75 * col1 + - col0 FROM tab2
----
3779
4950
5711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT 87 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT 87 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT DISTINCT - col1 * - col1 * + 37 + + col1 * CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-60
14490
241542

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT - col1 * - col1 * + 37 + + col1 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-60
14490
241542

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT - - MAX( DISTINCT + ( + - col1 ) ) col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6135
SELECT - - MAX ( DISTINCT + ( + - col1 ) ) col0 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT - ( - 42 ) AS col0, + 59 * - COUNT( * ) AS col2 FROM tab0 cor0
----
42
-177

skipif mysql # not compatible
query II rowsort label-6136
SELECT - ( - 42 ) AS col0, + 59 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
42
-177

query I rowsort
SELECT DISTINCT - col0 / - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 68 AND NULL
----

query I rowsort
SELECT ALL - col2 * + - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT - 64 DIV COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-6139
SELECT - 64 / COUNT ( * ) FROM tab2
----
-21

query I rowsort
SELECT ALL + - col1 * - + 74 AS col1 FROM tab2 AS cor0
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT DISTINCT - + MIN( ALL 61 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT - + MIN ( ALL 61 ) FROM tab1 AS cor0
----
-61

query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + + 13 * + col0 AS col1 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT ALL col2 DIV 28 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL col2 / 28 FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6145
SELECT DISTINCT 97 + + CAST( - col2 AS SIGNED ) + - - 84 DIV - 99 FROM tab1
----
1
29
38

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT 97 + + CAST ( - col2 AS INTEGER ) + - - 84 / - 99 FROM tab1
----
1
29
38

query I rowsort
SELECT ALL + ( - 62 ) FROM tab1
----
-62
-62
-62

query II rowsort
SELECT ALL col1 * col2 + col0 AS col1, + 81 FROM tab0
----
196
81
297
81
3822
81

query I rowsort
SELECT + col1 + - 1 AS col1 FROM tab2
----
50
66
76

query I rowsort
SELECT 42 * - 79 + + - 46 AS col1 FROM tab0
----
-3364
-3364
-3364

query I rowsort
SELECT - col1 + col0 + 48 + - - col1 + + + col2 + + 16 FROM tab1
----
208
211
223

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT + 21 * + COUNT( * ) AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + 21 * + COUNT ( * ) AS col0 FROM tab0
----
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 27 AS col1, 91 + - col0 + + 43 AS col2 FROM tab2 AS cor0
----
27
59
27
70
27
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ALL - - SUM( - - col2 ) + AVG ( - 50 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 10 * + ( 68 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL - - SUM ( - - col2 ) + AVG ( - 50 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 10 * + ( 68 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + - 40 * - 29 + + col2 AS col0 FROM tab1 AS cor0
----
1219
1228
1256

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6156
SELECT * FROM tab1 WHERE - col2 * - - 53 / + col0 - - 30 - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6156
SELECT * FROM tab1 WHERE - col2 * - - 53 / + col0 - - 30 - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + 67 AS col1 FROM tab0
----
114
166
77

query I rowsort
SELECT DISTINCT + 43 + + ( 51 ) FROM tab2 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6159
SELECT + CAST( NULL AS SIGNED ) + + 87 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT + CAST ( NULL AS INTEGER ) + + 87 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - ( col0 )
----

query I rowsort
SELECT + col0 + 30 * + 57 + - - col0 AS col0 FROM tab2 AS cor0
----
1802
1838
1860

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT - - 45 + - 24 AS col0 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT ALL 88 + + 6 FROM tab0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6165
SELECT * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) NOT IN ( ( 49 ), col2, - - col2 )
----

skipif mysql # not compatible
query III rowsort label-6165
SELECT * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) NOT IN ( ( 49 ), col2, - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6166
SELECT - CAST( NULL AS DECIMAL ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT - CAST ( NULL AS REAL ) * + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + 10 AS col2 FROM tab2
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS cor0 WHERE col1 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6168
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE col1 >= NULL
----
0

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab1 cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6170
SELECT ALL + col1 DIV - - CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + col1 / - - CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT DISTINCT - MAX( - col0 ) * - + 22 FROM tab1 AS cor0
----
-1122

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT - MAX ( - col0 ) * - + 22 FROM tab1 AS cor0
----
-1122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6173
SELECT + ( SUM( DISTINCT - CAST( 85 AS SIGNED ) ) ) FROM tab1 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6173
SELECT + ( SUM ( DISTINCT - CAST ( 85 AS INTEGER ) ) ) FROM tab1 cor0
----
-85

query I rowsort
SELECT ALL + col0 + + 79 + + + 98 AS col0 FROM tab2
----
223
241
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6175
SELECT ALL CAST( NULL AS SIGNED ) * + SUM( ALL col1 ) + ( - COUNT( * ) ) AS col1, COUNT( * ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6175
SELECT ALL CAST ( NULL AS INTEGER ) * + SUM ( ALL col1 ) + ( - COUNT ( * ) ) AS col1, COUNT ( * ) AS col0 FROM tab0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6176
SELECT DISTINCT 86 DIV 34 + CAST( col2 AS SIGNED ) * + col0 FROM tab1
----
4898
5017
6190

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT 86 / 34 + CAST ( col2 AS INTEGER ) * + col0 FROM tab1
----
4898
5017
6190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT ALL col1 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL col1 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - col2 + + ( + col2 ) + - col0 - - - col0 * - col0 * 63 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT + 43 AS col0, 96 AS col1 FROM tab1 AS cor0
----
43
96
43
96
43
96

query II rowsort
SELECT - 21 AS col2, + col2 * col1 AS col1 FROM tab2 AS cor0
----
-21
1173
-21
3080
-21
3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6182
SELECT DISTINCT - col1 - + 14 * - 62 AS col0, - CAST( NULL AS SIGNED ) * + col0 * - + col2 * col2 AS col1 FROM tab1 AS cor0
----
821
NULL
854
NULL
863
NULL

skipif mysql # not compatible
query II rowsort label-6182
SELECT DISTINCT - col1 - + 14 * - 62 AS col0, - CAST ( NULL AS INTEGER ) * + col0 * - + col2 * col2 AS col1 FROM tab1 AS cor0
----
821
NULL
854
NULL
863
NULL

query I rowsort
SELECT + + col2 - + - 33 AS col1 FROM tab1 AS cor0
----
101
129
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col0 FROM tab1 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6186
SELECT DISTINCT SUM( ( + + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT SUM ( ( + + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 51 FROM tab0 WHERE NOT NULL = - + ( col0 )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT ( - - ( - + 67 ) ) * 84 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + MAX( + ( - - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6189
SELECT + MAX ( + ( - - col0 ) ) FROM tab1
----
91

query I rowsort
SELECT + 18 * - col0 AS col2 FROM tab0
----
-1566
-1746
-270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6191
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = col1 * col0 * + col0
----

skipif mysql # not compatible
query III rowsort label-6191
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = col1 * col0 * + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col1 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + SUM( - + 80 ) FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-6193
SELECT + SUM ( - + 80 ) FROM tab2
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL + SUM( ALL - - col0 ) col1 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6194
SELECT ALL + SUM ( ALL - - col0 ) col1 FROM tab1
----
227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 51 = NULL
----

query I rowsort
SELECT ALL + col1 * - + 21 AS col2 FROM tab0 cor0
----
-1701
-21
-441

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE + 0 * - col1 >= NULL
----

query I rowsort
SELECT + col2 * - 77 AS col1 FROM tab1 AS cor0
----
-4543
-5236
-7392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT ALL + COUNT( * ) DIV - + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + COUNT ( * ) / - + COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT col2 * - 72 - + - col2 + - ( col2 ) FROM tab0 cor0
----
-3384
-7128
-720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6201
SELECT ALL col2, CAST( + ( + 68 ) AS SIGNED ) DIV - col0 AS col0 FROM tab0
----
10
0
47
-4
99
0

skipif mysql # not compatible
query II rowsort label-6201
SELECT ALL col2, CAST ( + ( + 68 ) AS INTEGER ) / - col0 AS col0 FROM tab0
----
10
0
47
-4
99
0

query I rowsort
SELECT 1 + + - col2 + + 57 AS col0 FROM tab1
----
-1
-10
-38

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN + col0 + 75 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - col0 + + ( - col1 ) + + col0 * 6 FROM tab2
----
-2253
-3967
-833

query I rowsort
SELECT DISTINCT 44 + - - col2 * col1 AS col2 FROM tab1
----
1388
3240
339

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + ( + col0 )
----

query I rowsort
SELECT + 23 + - - col1 FROM tab1
----
28
37
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * - - 94 col2 FROM tab1
----
5551
6439
9038

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT - + 20, COUNT( DISTINCT + 16 ) AS col0 FROM tab2 AS cor0
----
-20
1

skipif mysql # not compatible
query II rowsort label-6209
SELECT - + 20, COUNT ( DISTINCT + 16 ) AS col0 FROM tab2 AS cor0
----
-20
1

query I rowsort
SELECT DISTINCT + + col1 - + col2 * 33 * + 47 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + 17 - - 88 AS col1 FROM tab1 AS cor0
----
105
105
105

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 40 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6213
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col1, 66, + - col2 - - col1, col1 * + 49 + - 36, - col2, - + col2 * ( + ( - col1 ) ) - - CAST( NULL AS SIGNED ) * - 53 )
----

skipif mysql # not compatible
query III rowsort label-6213
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col1, 66, + - col2 - - col1, col1 * + 49 + - 36, - col2, - + col2 * ( + ( - col1 ) ) - - CAST ( NULL AS INTEGER ) * - 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT COUNT( * ) * + - SUM( ALL + 20 ) - - - COUNT( * ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-6214
SELECT COUNT ( * ) * + - SUM ( ALL + 20 ) - - - COUNT ( * ) FROM tab1
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT - 79 * + - SUM( - col0 ) - 26 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 79 * + - SUM ( - col0 ) - 26 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT ALL - 54 DIV - + col1 + 29 AS col1 FROM tab2
----
29
29
30

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - 54 / - + col1 + 29 AS col1 FROM tab2
----
29
29
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * - col1 col2 FROM tab1
----
-1050
-3525
-375

query II rowsort
SELECT ALL + ( + col2 ) AS col0, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT + 18 AS col0 FROM tab1 cor0
----
18
18
18

query I rowsort
SELECT ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT COUNT( - col0 ) AS col0, - 2 AS col2 FROM tab2 AS cor0
----
3
-2

skipif mysql # not compatible
query II rowsort label-6221
SELECT COUNT ( - col0 ) AS col0, - 2 AS col2 FROM tab2 AS cor0
----
3
-2

query I rowsort
SELECT 95 * - - 42 * col1 FROM tab1 AS cor0
----
187530
19950
55860

query I rowsort
SELECT ALL 81 * - - col0 AS col0 FROM tab2
----
3726
5184
6075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, + 60 + - col0 AS col2 FROM tab1
----
-51
9
-85
-25
-91
-31

query I rowsort
SELECT ALL 13 AS col2 FROM tab2 WHERE NULL < - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6226
SELECT ALL COUNT( * ) AS col1, - COUNT( - + col2 ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-6226
SELECT ALL COUNT ( * ) AS col1, - COUNT ( - + col2 ) FROM tab2
----
3
-3

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6227
SELECT + CAST( NULL AS DECIMAL ) AS col0, 85 DIV + col1 AS col1 FROM tab1 cor0
----
NULL
1
NULL
17
NULL
6

skipif mysql # not compatible
query II rowsort label-6227
SELECT + CAST ( NULL AS REAL ) AS col0, 85 / + col1 AS col1 FROM tab1 cor0
----
NULL
1
NULL
17
NULL
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / + 17 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 84 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + COUNT( * ) * + + COUNT( * ) + - + COUNT( * ) + + - COUNT( * ) + 21 AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6231
SELECT + COUNT ( * ) * + + COUNT ( * ) + - + COUNT ( * ) + + - COUNT ( * ) + 21 AS col1 FROM tab1 AS cor0
----
24

query I rowsort
SELECT - col2 + - 12 + - col0 FROM tab0 AS cor0
----
-109
-208
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 col0 FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6234
SELECT ALL + CAST( NULL AS SIGNED ) * col1, + 78 * 70 AS col0 FROM tab2 AS cor0
----
NULL
5460
NULL
5460
NULL
5460

skipif mysql # not compatible
query II rowsort label-6234
SELECT ALL + CAST ( NULL AS INTEGER ) * col1, + 78 * 70 AS col0 FROM tab2 AS cor0
----
NULL
5460
NULL
5460
NULL
5460

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + + ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT DISTINCT SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT ALL 88 DIV + col1 + - col1 col1 FROM tab0
----
-17
-80
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6240
SELECT ALL 88 / + col1 + - col1 col1 FROM tab0
----
-17
-80
87

query I rowsort
SELECT col2 - - + col0 * col0 + + col1 AS col1 FROM tab2
----
2190
4213
5750

query I rowsort
SELECT ALL - col2 + + col0 * + col0 AS col2 FROM tab0
----
178
7559
9310

query I rowsort
SELECT 39 - - col0 AS col2 FROM tab2
----
103
114
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT MAX( - 86 ) - + SUM( - - col1 ) FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-6244
SELECT MAX ( - 86 ) - + SUM ( - - col1 ) FROM tab0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT - col0 * col2 * col2 * col0 - col1 DIV - 68 col2 FROM tab1
----
-23970816
-25150225
-38291344

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6245
SELECT - col0 * col2 * col2 * col0 - col1 / - 68 col2 FROM tab1
----
-23970816
-25150225
-38291344

query III rowsort
SELECT * FROM tab2 WHERE + + 36 - 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6247
SELECT - 84 + col2 DIV ( col1 ) AS col2 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-6247
SELECT - 84 + col2 / ( col1 ) AS col2 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6248
SELECT - 88 + CAST( COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6248
SELECT - 88 + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-85

query I rowsort
SELECT - 38 * + col2 + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT DISTINCT + CAST( 96 AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT + CAST ( 96 AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
288

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col1 AND + 21
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 77 BETWEEN + 10 + col0 * - col1 + col2 / + col2 + - col2 AND + + 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2, 70 FROM tab2
----
23
70
40
70
58
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6254
SELECT ALL - - COUNT( * ) DIV + 62 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - - COUNT ( * ) / + 62 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6255
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - col1 - col1 - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6255
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - col1 - col1 - col0 IS NOT NULL
----

query I rowsort
SELECT + + 82 AS col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT DISTINCT - - COUNT( * ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6257
SELECT DISTINCT - - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6258
SELECT - - 17 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-6258
SELECT - - 17 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
17
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + - 20
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT ALL COUNT( DISTINCT - col0 ) AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 92 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6260
SELECT ALL COUNT ( DISTINCT - col0 ) AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 92 IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT DISTINCT - + COUNT( * ) + - ( 62 ) FROM tab1 WHERE NULL IS NULL
----
-65

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT - + COUNT ( * ) + - ( 62 ) FROM tab1 WHERE NULL IS NULL
----
-65

query I rowsort
SELECT col1 * - col0 * - 28 FROM tab1
----
11900
119756
19992

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT + col1 * 7 * - - col0 DIV + col0 FROM tab1
----
329
35
98

skipif mysql # not compatible
query I rowsort label-6264
SELECT + col1 * 7 * - - col0 / + col0 FROM tab1
----
329
35
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT + + col1 DIV - 13 AS col1 FROM tab0 WHERE NOT 73 BETWEEN 37 AND - col0 DIV + 69 * - - 45
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6265
SELECT + + col1 / - 13 AS col1 FROM tab0 WHERE NOT 73 BETWEEN 37 AND - col0 / + 69 * - - 45
----
-1
-6
0

query I rowsort
SELECT DISTINCT + + 41 AS col0 FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6267
SELECT ALL + SUM( - 38 ) AS col0, + COUNT( * ) AS col1 FROM tab1 cor0
----
-114
3

skipif mysql # not compatible
query II rowsort label-6267
SELECT ALL + SUM ( - 38 ) AS col0, + COUNT ( * ) AS col1 FROM tab1 cor0
----
-114
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6268
SELECT DISTINCT - CAST( - 34 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE - 2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT - CAST ( - 34 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE - 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT col2 + col2 * col2 * + 39 AS col1 FROM tab2 cor0
----
131254
20654
62440

query I rowsort
SELECT + + 55 + col0 AS col0 FROM tab2 AS cor0
----
101
119
130

query I rowsort
SELECT + col0 + + + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - 36 BETWEEN + col0 AND 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL + - SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT + ( - 33 ) + ( + + col2 ) + - ( CAST( - col2 AS SIGNED ) ) FROM tab1
----
103
159
85

skipif mysql # not compatible
query I rowsort label-6275
SELECT + ( - 33 ) + ( + + col2 ) + - ( CAST ( - col2 AS INTEGER ) ) FROM tab1
----
103
159
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT COUNT( * ) + 59 AS col0 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-6277
SELECT COUNT ( * ) + 59 AS col0 FROM tab0
----
62

query I rowsort
SELECT ALL ( + col0 ) - + + 79 AS col0 FROM tab1 cor0
----
-28
12
6

query I rowsort
SELECT - 23 AS col1 FROM tab1 cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + - col1 - - + col0 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT DISTINCT + + ( + col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6282
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NOT ( ( + col1 IS NOT NULL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NOT ( ( + col1 IS NOT NULL ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT col0 DIV 20 AS col0 FROM tab0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-6283
SELECT col0 / 20 AS col0 FROM tab0
----
0
4
4

query I rowsort
SELECT ALL 48 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - 31 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 + - + col0 + 71 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + + col1 * 79 * - 84 * - col2 FROM tab2 cor0
----
20438880
25787496
7784028

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT + SUM( DISTINCT 84 ) AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6289
SELECT + SUM ( DISTINCT 84 ) AS col2 FROM tab2 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) / - col0 * 96 * - + 37 + + 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6291
SELECT + 68 AS col2, + COUNT( * ) FROM tab0 AS cor0
----
68
3

skipif mysql # not compatible
query II rowsort label-6291
SELECT + 68 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
68
3

query II rowsort
SELECT + col1, col1 * - - 8 FROM tab0 AS cor0
----
1
8
21
168
81
648

query I rowsort
SELECT ALL + 37 * + col1 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6294
SELECT ALL 89, + CAST( + - col1 AS SIGNED ) AS col0, - - col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to fcbb08e90f4b4761acf5c423389a6e7e

skipif mysql # not compatible
query III rowsort label-6294
SELECT ALL 89, + CAST ( + - col1 AS INTEGER ) AS col0, - - col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to fcbb08e90f4b4761acf5c423389a6e7e

query I rowsort
SELECT + ( - 87 ) AS col1 FROM tab0 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 50 * + col0 col1 FROM tab2
----
-117300
-246400
-251250

query III rowsort
SELECT * FROM tab2 WHERE NOT + 70 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 94 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT ALL + col2 DIV - - col0 + - + col0 + - + col1 + + - col2 AS col2 FROM tab0
----
-118
-140
-196

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + col2 / - - col0 + - + col0 + - + col1 + + - col2 AS col2 FROM tab0
----
-118
-140
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL ( - COUNT( + - col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL ( - COUNT ( + - col0 ) ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT + - 94 AS col1, col2 - + col2 + + col2 + + + col2 + + 40 + - 26 AS col1 FROM tab0 cor0
----
-94
108
-94
212
-94
34

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE 59 + + 68 NOT BETWEEN NULL AND - 6
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT - SUM( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6305
SELECT - SUM ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT MAX( - + 43 ) + + COUNT( * ) * + COUNT( * ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-6306
SELECT MAX ( - + 43 ) + + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-34

query I rowsort
SELECT ALL + 8 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT - - MIN( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6308
SELECT - - MIN ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6309
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL - CAST ( NULL AS REAL ) * col1 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT + 58 * - 20 FROM tab0 cor0
----
-1160
-1160
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT SUM( + ( - + col2 ) ) * - 70 AS col0 FROM tab2 AS cor0
----
8470

skipif mysql # not compatible
query I rowsort label-6311
SELECT SUM ( + ( - + col2 ) ) * - 70 AS col0 FROM tab2 AS cor0
----
8470

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 * + col2, + 65, col1, col0, col0, col2 * - + col1 )
----

query I rowsort
SELECT ALL + col0 + + + col2 FROM tab2
----
104
133
69

query I rowsort
SELECT + col0 - - + col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 < + - col2 * + col2
----
3

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 < + - col2 * + col2
----
3

query I rowsort
SELECT ALL + col0 - + 38 AS col1 FROM tab0
----
-23
49
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6317
SELECT - ( - + CAST( NULL AS DECIMAL ) ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6317
SELECT - ( - + CAST ( NULL AS REAL ) ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT + - COUNT( * ), COUNT( * ) col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6318
SELECT + - COUNT ( * ), COUNT ( * ) col1 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT - - ( + + 83 ) FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT + 64 * - col2 FROM tab0 AS cor0
----
-3008
-6336
-640

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6321
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> CAST( 2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6321
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> CAST ( 2 AS REAL )
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - col0 + + + col2 FROM tab0 AS cor0
----
10
-77
47
32
99
2

query I rowsort
SELECT ALL col0 - - col0 * 59 AS col2 FROM tab1
----
3060
5100
5460

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 / - col2 IN ( 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT DISTINCT - MAX( col2 ) - 8 col1 FROM tab1
----
-104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6325
SELECT DISTINCT - MAX ( col2 ) - 8 col1 FROM tab1
----
-104

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col1 + 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - 68 * col0 FROM tab2
----
-3077
-4275
-5033

query III rowsort
SELECT ALL * FROM tab0 WHERE - 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT - 46 + COUNT( * ) * 49 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-6330
SELECT - 46 + COUNT ( * ) * 49 FROM tab0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6331
SELECT DISTINCT col1 FROM tab2 WHERE NULL BETWEEN ( - 38 ) AND - CAST( col2 AS SIGNED ) * col0 + - 48
----

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT col1 FROM tab2 WHERE NULL BETWEEN ( - 38 ) AND - CAST ( col2 AS INTEGER ) * col0 + - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT - 35 + COUNT( ALL - col0 + + col2 ) AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6332
SELECT - 35 + COUNT ( ALL - col0 + + col2 ) AS col2 FROM tab2
----
-32

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN - col1 * - col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL + SUM( 87 ) + 85 FROM tab1
----
346

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL + SUM ( 87 ) + 85 FROM tab1
----
346

query I rowsort
SELECT 53 - - col2 AS col1 FROM tab0
----
100
152
63

query I rowsort
SELECT ALL + ( ( - 35 ) ) AS col1 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE ( + col1 ) NOT IN ( - 55 + - col0 * + 96 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 BETWEEN + col0 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN col1 + + col2 AND 59
----

query I rowsort
SELECT + col2 + 26 * 13 FROM tab1
----
397
406
434

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT + ( COUNT( * ) ) * 69 AS col0 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT + ( COUNT ( * ) ) * 69 AS col0 FROM tab2
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT + col2 * + col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT + col2 * + col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 / - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 68 * 73 AS col2 FROM tab0
----
-4964
-4964
-4964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6345
SELECT DISTINCT 38 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - col2 * - 89 - - col2 * 41 <> + 56 / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT 38 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - col2 * - 89 - - col2 * 41 <> + 56 / - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT - COUNT( * ) + ( - 22 ) AS col0 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-6346
SELECT - COUNT ( * ) + ( - 22 ) AS col0 FROM tab2
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 + col0 col2 FROM tab2
----
104
75
93

query I rowsort
SELECT ALL + ( col0 ) - ( + col2 + - col0 ) * - col1 FROM tab1
----
-45
-990
681

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 > ( 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 WHERE col2 * - col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6351
SELECT * FROM tab2 WHERE col0 * + CAST( col2 * 76 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6351
SELECT * FROM tab2 WHERE col0 * + CAST ( col2 * 76 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL MAX( DISTINCT + col2 ) + - COUNT( * ) AS col2 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL MAX ( DISTINCT + col2 ) + - COUNT ( * ) AS col2 FROM tab2
----
55

query I rowsort
SELECT ALL - col2 * - 89 FROM tab1 AS cor0
----
5251
6052
8544

query I rowsort
SELECT ALL ( - col0 ) * + ( + 50 ) FROM tab1 cor0
----
-2550
-4250
-4550

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IN ( 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - MIN( col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6356
SELECT - MIN ( col1 ) AS col1 FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - ( col1 ) ) = col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 ) <> 0 - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + - COUNT( * ) + 55 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-6360
SELECT + - COUNT ( * ) + 55 FROM tab0 AS cor0
----
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IN ( - 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6362
SELECT DISTINCT + col2 * - 89 - + CAST( + 52 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-5303
-6104
-8596

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT + col2 * - 89 - + CAST ( + 52 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-5303
-6104
-8596

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 * col0 IN ( col1 )
----

query I rowsort
SELECT ALL - 86 - col1 FROM tab1 AS cor0
----
-100
-133
-91

query I rowsort
SELECT + + col0 + 61 * - col0 FROM tab1 AS cor0
----
-3060
-5100
-5460

query I rowsort
SELECT col0 * - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL - ( - COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL - ( - COUNT ( * ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - 66 FROM tab1 WHERE NOT col0 BETWEEN - 14 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 39 * - col2 + 92 AS col1 FROM tab1
----
-2209
-2560
-3652

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT COUNT( * ) * - 85 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-6370
SELECT COUNT ( * ) * - 85 FROM tab1
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT + CAST( NULL AS SIGNED ) / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT + CAST ( NULL AS INTEGER ) / col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT + MAX( + 99 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6372
SELECT + MAX ( + 99 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6373
SELECT * FROM tab2 WHERE NOT col2 BETWEEN ( + CAST( + 70 AS SIGNED ) ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6373
SELECT * FROM tab2 WHERE NOT col2 BETWEEN ( + CAST ( + 70 AS INTEGER ) ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= 77
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT - 75 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + col2 + - col0 AND + 88
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT - 75 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + col2 + - col0 AND + 88
----
NULL
NULL

query I rowsort
SELECT ALL col1 * col0 * + col0 FROM tab2 AS cor0
----
107916
315392
376875

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 * col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT 40 * COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT 40 * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
369

query I rowsort
SELECT DISTINCT 2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT - - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6382
SELECT - - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6384
SELECT ALL + + COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6384
SELECT ALL + + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - SUM( DISTINCT - 9 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6385
SELECT - SUM ( DISTINCT - 9 ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT col0 * + + col1 + - col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE + col1 * + + col2 NOT BETWEEN ( 66 * 52 ) AND col2
----
15
87
97

query II rowsort
SELECT + + 10 AS col0, + col0 + - + col1 * + 81 AS col0 FROM tab2 AS cor0
----
10
-4085
10
-5352
10
-6173

query I rowsort
SELECT ALL - - 24 AS col0 FROM tab2 cor0
----
24
24
24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - - 82 OR NOT 58 * 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + - SUM( ALL + - 14 ) * + 75 AS col0 FROM tab0 AS cor0
----
3150

skipif mysql # not compatible
query I rowsort label-6391
SELECT + - SUM ( ALL + - 14 ) * + 75 AS col0 FROM tab0 AS cor0
----
3150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 col1 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL + SUM( - 3 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL + SUM ( - 3 ) AS col0 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - ( col0 ) ) IS NULL
----

query II rowsort
SELECT DISTINCT + + col2, ( + col0 ) AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 68 / - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL > col1 * + col0 + - col1
----

query I rowsort
SELECT ALL - col0 + - col1 * + col2 FROM tab2
----
-1219
-3144
-3961

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND ( + 85 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6400
SELECT DISTINCT - COUNT( * ) DIV + ( 31 ) FROM tab1 WHERE ( + ( - col1 ) ) <= col1
----
0

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - COUNT ( * ) / + ( 31 ) FROM tab1 WHERE ( + ( - col1 ) ) <= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - - COUNT( col0 ) AS col2 FROM tab1 WHERE NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-6401
SELECT - - COUNT ( col0 ) AS col2 FROM tab1 WHERE NULL < + col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT DISTINCT - ( ( + col1 ) ) * col1 DIV 79 AS col1 FROM tab0 cor0
----
-5
-83
0

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT - ( ( + col1 ) ) * col1 / 79 AS col1 FROM tab0 cor0
----
-5
-83
0

query I rowsort
SELECT - + col1 * - + col2 + - col1 * - 35 AS col0 FROM tab1 cor0
----
1834
470
4841

query I rowsort
SELECT ALL + 57 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT 34 + - ( + COUNT( * ) ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-6405
SELECT 34 + - ( + COUNT ( * ) ) FROM tab2
----
31

query I rowsort
SELECT ALL ( - ( - ( 79 ) ) ) FROM tab1
----
79
79
79

query I rowsort
SELECT DISTINCT + 53 * - col2 + + 64 AS col2 FROM tab1 AS cor0
----
-3063
-3540
-5024

query I rowsort
SELECT DISTINCT + + col0 - - + col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6409
SELECT ALL * FROM tab0 cor0 WHERE NULL >= CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6409
SELECT ALL * FROM tab0 cor0 WHERE NULL >= CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 - col0 - + ( - col2 ) FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT + - ( + + COUNT( * ) ) * + + 4 FROM tab0 AS cor0 WHERE + 7 IS NOT NULL
----
-12

skipif mysql # not compatible
query I rowsort label-6411
SELECT + - ( + + COUNT ( * ) ) * + + 4 FROM tab0 AS cor0 WHERE + 7 IS NOT NULL
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - - MAX( ( - 24 ) ) - + COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6412
SELECT - - MAX ( ( - 24 ) ) - + COUNT ( * ) FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL + - col0 - - col1 AS col0 FROM tab2 cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL + ( + COUNT( * ) ) - + 2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + ( + COUNT ( * ) ) - + 2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6416
SELECT ALL - col1 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL AND + - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL - col1 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL AND + - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 11 * - col1 FROM tab0 cor0 WHERE ( + ( + + col2 ) ) IS NOT NULL AND NOT ( + 78 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6418
SELECT DISTINCT - - 92 * CAST( NULL AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - - 92 * CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 53 * - col0 * col1 AS col1 FROM tab0
----
-5141
-64395
-96831

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 98 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL = 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT col2 DIV - - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6422
SELECT col2 / - - col0 FROM tab1
----
0
0
1

query I rowsort
SELECT - 72 * + col0 * + col0 AS col0 FROM tab2
----
-152352
-294912
-405000

query I rowsort
SELECT col2 * + col2 * - - ( + 60 ) AS col1 FROM tab0
----
132540
588060
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT MIN( - + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6425
SELECT MIN ( - + col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT - COUNT( 52 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT - COUNT ( 52 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6427
SELECT * FROM tab2 WHERE NOT ( NOT - 83 - CAST( + + col0 AS DECIMAL ) * + 8 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6427
SELECT * FROM tab2 WHERE NOT ( NOT - 83 - CAST ( + + col0 AS REAL ) * + 8 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 83 * - 39 + + col0 + + 66 * col1 IN ( 54 - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 37 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1739
185
518

query I rowsort
SELECT DISTINCT + + ( 14 ) FROM tab0 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT - MIN( + - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT - MIN ( + - col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT ( + 91 ) FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL + COUNT( * ) - - 3 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL + COUNT ( * ) - - 3 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
12

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = + 28 * - 17 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT 81 * - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-6435
SELECT 81 * - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
729

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6436
SELECT ALL * FROM tab1 WHERE NOT NULL >= - col2 - + CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-6436
SELECT ALL * FROM tab1 WHERE NOT NULL >= - col2 - + CAST ( NULL AS INTEGER ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL MIN( + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL MIN ( + col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT + + col0 + ( + 33 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( 95, - col2 )
----
118
124
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT + - SUM( ALL ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT + - SUM ( ALL ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL MAX( ALL - 9 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL MAX ( ALL - 9 ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT - + 98 + + 29 * + COUNT( * ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT - + 98 + + 29 * + COUNT ( * ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT SUM( col1 ) + - 77 col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6443
SELECT SUM ( col1 ) + - 77 col2 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT ALL + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL ( + - 71 ) AS col0 FROM tab2
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT IN ( + - col0 * 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 41 + - col2 AS col0 FROM tab1
----
-18
-27
-55

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 36 NOT BETWEEN - col0 AND col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT col1 + - - CAST( + - col2 AS SIGNED ) + + col0 FROM tab0
----
-1
49
98

skipif mysql # not compatible
query I rowsort label-6449
SELECT col1 + - - CAST ( + - col2 AS INTEGER ) + + col0 FROM tab0
----
-1
49
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + 46 * + col0 col2, - col0 + - 38 FROM tab1
----
2250
-89
3851
-123
4118
-129

query I rowsort
SELECT DISTINCT + + 60 AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT - COUNT( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6452
SELECT - COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT + - MAX( ALL + 81 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6454
SELECT + - MAX ( ALL + 81 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - - 91 AS col0 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT 46 + SUM( ALL - col1 ) AS col2 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT 46 + SUM ( ALL - col1 ) AS col2 FROM tab0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 27 NOT IN ( - 8 * - ( - 54 ) + 60 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT ALL + 3 * + col1 * + 64 * + - col0 DIV - + col0 + - 73 AS col0 FROM tab2
----
12791
14711
9719

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + 3 * + col1 * + 64 * + - col0 / - + col0 + - 73 AS col0 FROM tab2
----
12791
14711
9719

query I rowsort
SELECT 99 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + 18 * - 33 AND + col1
----

query II rowsort
SELECT DISTINCT - + col1 + - col0, col0 FROM tab2 AS cor0
----
-141
64
-142
75
-97
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT DISTINCT + CAST( + 88 AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT + CAST ( + 88 AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * 99 col1, + 19 FROM tab0 cor0
----
2079
19
8019
19
99
19

onlyif mysql # DIV for integer division: 
query II rowsort label-6464
SELECT ALL - ( 89 ) AS col0, - col2 * 75 * + col0 + + + 85 DIV + - 76 AS col1 FROM tab1 cor0
----
-89
-367201
-89
-376126
-89
-464101

skipif mysql # not compatible
query II rowsort label-6464
SELECT ALL - ( 89 ) AS col0, - col2 * 75 * + col0 + + + 85 / + - 76 AS col1 FROM tab1 cor0
----
-89
-367201
-89
-376126
-89
-464101

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 25 + + col0 IS NOT NULL
----

query I rowsort
SELECT + ( + - col2 ) * ( col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) + + + 15 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 34 > NULL
----

query I rowsort
SELECT + ( - + 1 ) * - col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + 1 * + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT - COUNT( * ), COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-6471
SELECT - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT ALL COUNT( * ), ( + - COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6472
SELECT ALL COUNT ( * ), ( + - COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0
0

query I rowsort
SELECT DISTINCT 11 * - col2 AS col0 FROM tab0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT ALL - 19 DIV - - COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - 19 / - - COUNT ( * ) AS col0 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT ( 38 ) AS col1 FROM tab2
----
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 84
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( + 17, col2 )
----

query II rowsort
SELECT + - col2 * - col0 * + col2 * + - ( - + col0 ), 5 * + 89 * - - col1 + 86 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
1119364
26702
18922500
36332
6553600
39846

query II rowsort
SELECT - col1 AS col1, 75 FROM tab1 AS cor0
----
-14
75
-47
75
-5
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - + col2 BETWEEN col2 AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 96 * - + col1, + 90 col2 FROM tab1
----
1344
90
4512
90
480
90

query I rowsort
SELECT ALL ( - - 56 ) * - + 0 - - - col1 - col0 AS col1 FROM tab2
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6485
SELECT ALL 35, - 28 DIV col1 * + col0 AS col2 FROM tab2 AS cor0
----
35
0
35
0
35
0

skipif mysql # not compatible
query II rowsort label-6485
SELECT ALL 35, - 28 / col1 * + col0 AS col2 FROM tab2 AS cor0
----
35
0
35
0
35
0

query I rowsort
SELECT - - ( + col0 ) + + 18 * + - col0 FROM tab2 cor0
----
-1088
-1275
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT DISTINCT - - MAX( - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - - MAX ( - + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6488
SELECT + CAST( NULL AS SIGNED ) AS col0, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6488
SELECT + CAST ( NULL AS INTEGER ) AS col0, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT + 3 * + - col0 AS col2 FROM tab2 AS cor0
----
-138
-192
-225

query II rowsort
SELECT ALL - + col1 AS col0, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT - + MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6491
SELECT - + MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT col2 + + 2 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
61
70
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT CAST( + + ( - col0 ) AS SIGNED ) FROM tab2 WHERE NULL BETWEEN + col0 / - - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6493
SELECT CAST ( + + ( - col0 ) AS INTEGER ) FROM tab2 WHERE NULL BETWEEN + col0 / - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE + ( + - 50 ) * 1 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 + - col2 + col0 col2 FROM tab2
----
85
91
92

query II rowsort
SELECT DISTINCT - 52 + - + 77, col0 FROM tab1
----
-129
51
-129
85
-129
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6498
SELECT 22 * - col1, + 47 DIV col0 col1 FROM tab2
----
-1122
1
-1474
0
-1694
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6498
SELECT 22 * - col1, + 47 / col0 col1 FROM tab2
----
-1122
1
-1474
0
-1694
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col2 * - col2 * + col0 + 16 * - col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6500
SELECT ALL + 84 - + - 4 AS col0, + COUNT( * ) * 48 FROM tab0
----
88
144

skipif mysql # not compatible
query II rowsort label-6500
SELECT ALL + 84 - + - 4 AS col0, + COUNT ( * ) * 48 FROM tab0
----
88
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT - 62 + + CAST( NULL AS SIGNED ) + - - 41 * - col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6501
SELECT - 62 + + CAST ( NULL AS INTEGER ) + - - 41 * - col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL MAX( col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT + col0 + + + 41 AS col2 FROM tab0 AS cor0
----
128
138
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 > col2
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 > col2
----
0

query I rowsort
SELECT DISTINCT - 63 + - + 56 AS col0 FROM tab2
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT DISTINCT + AVG ( - CAST( NULL AS SIGNED ) ) - + + 46 - + 25 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT + AVG ( - CAST ( NULL AS INTEGER ) ) - + + 46 - + 25 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT + MIN( + 26 ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6507
SELECT + MIN ( + 26 ) FROM tab0 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 88 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - ( 96 ) FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL - - MAX( - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - - MAX ( - col0 ) FROM tab2 cor0
----
-46

query II rowsort
SELECT DISTINCT 25 AS col0, col2 FROM tab2 AS cor0
----
25
23
25
40
25
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 IN ( + + 86 - 79 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6513
SELECT - 8 DIV + + COUNT( * ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6513
SELECT - 8 / + + COUNT ( * ) AS col0 FROM tab1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT col0 DIV + 94 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT col0 / + 94 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 54 * - - col0 * - - col1 > - col2 + ( col0 )
----

query I rowsort
SELECT DISTINCT - - col1 * - 76 * col0 FROM tab0 cor0
----
-138852
-7372
-92340

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6518
SELECT ALL 62 FROM tab0 AS cor0 WHERE NOT CAST( - 81 AS DECIMAL ) IS NULL
----
62
62
62

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL 62 FROM tab0 AS cor0 WHERE NOT CAST ( - 81 AS REAL ) IS NULL
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL + 80 * + MIN( - 25 ) FROM tab0 AS cor0
----
-2000

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL + 80 * + MIN ( - 25 ) FROM tab0 AS cor0
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT - MAX( DISTINCT + col1 ) + - SUM( ALL + - col1 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT - MAX ( DISTINCT + col1 ) + - SUM ( ALL + - col1 ) FROM tab0
----
22

query I rowsort
SELECT - - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query II rowsort label-6522
SELECT DISTINCT COUNT( * ) * - - 18 + + COUNT( * ), + COUNT( + + ( + col2 ) ) AS col0 FROM tab0
----
57
3

skipif mysql # not compatible
query II rowsort label-6522
SELECT DISTINCT COUNT ( * ) * - - 18 + + COUNT ( * ), + COUNT ( + + ( + col2 ) ) AS col0 FROM tab0
----
57
3

query I rowsort
SELECT - col1 * + col2 * 24 AS col1 FROM tab2
----
-28152
-73920
-93264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6524
SELECT CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT - COUNT( - 61 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6525
SELECT - COUNT ( - 61 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col0 + - 66 FROM tab0 AS cor0
----
-153
-163
-81

query II rowsort
SELECT ALL col2 * col2 + + col0, col0 AS col1 FROM tab0 cor0
----
187
87
2224
15
9898
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT DISTINCT - COUNT( * ) * + ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT - COUNT ( * ) * + ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + 70 * col1 + - ( - + col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL >= 28 / col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( col1 ) * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col1, + col1 * col2 * - col2 * - - 1 FROM tab0 cor0 WHERE + col0 + ( + - col1 ) < - ( + - col0 ) * - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6532
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 - + - CAST( NULL AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-6532
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 - + - CAST ( NULL AS INTEGER ), + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6533
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED ) * 19 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * 19 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + 36 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT 12 FROM tab0 AS cor0 WHERE NOT + 48 IS NULL
----
12

query I rowsort
SELECT 94 + + 57 FROM tab2
----
151
151
151

query I rowsort
SELECT 30 * col1 + - 21 AS col2 FROM tab1
----
129
1389
399

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT 2 + + col1 DIV + 27 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-6538
SELECT 2 + + col1 / + 27 FROM tab1
----
2
2
3

query III rowsort
SELECT * FROM tab0 WHERE ( + - 83 ) * 68 / - 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 56 + - - 75 FROM tab0
----
131
131
131

query I rowsort
SELECT 60 * 59 * + + col0 AS col2 FROM tab2
----
162840
226560
265500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT DISTINCT COUNT( * ) col0 FROM tab2 WHERE NULL > - - CAST( NULL AS SIGNED ) - + col2 * 27
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6542
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 WHERE NULL > - - CAST ( NULL AS INTEGER ) - + col2 * 27
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, + col1 + + + col2 FROM tab2
----
-23
74
-40
117
-58
125

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT ALL - 15 + - col0 DIV 77 * 84 FROM tab1 AS cor0
----
-15
-99
-99

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - 15 + - col0 / 77 * 84 FROM tab1 AS cor0
----
-15
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - + SUM( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6545
SELECT - + SUM ( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL 55 * col1 - - - col1 FROM tab1 AS cor0
----
2538
270
756

query I rowsort
SELECT - - col2 - - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 88 - + 88 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 70 - col2 FROM tab0
----
-29
23
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT COUNT( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6550
SELECT COUNT ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT SUM( col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-6551
SELECT SUM ( col1 ) FROM tab2 cor0
----
195

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 54 BETWEEN NULL AND + - col2 * - col0
----

query I rowsort
SELECT DISTINCT + 92 * + - col0 AS col2 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT + ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, + 18 - + - ( col2 ), col1 )
----

query II rowsort
SELECT ALL - - ( - col1 ), 68 * col1 AS col0 FROM tab1 AS cor0
----
-14
952
-47
3196
-5
340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col2 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT - ( + col1 ) FROM tab1 WHERE NOT ( + col1 ) + 46 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT - COUNT( + - col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6558
SELECT - COUNT ( + - col1 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT 20 / - ( + - col0 ) >= ( - ( col1 ) )
----

query II rowsort
SELECT ALL + col2, + 67 + + col2 FROM tab0
----
10
77
47
114
99
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6561
SELECT + 35 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 91 < + CAST( 37 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-6561
SELECT + 35 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 91 < + CAST ( 37 AS INTEGER )
----
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - 78 + + 28, col0 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + col0 - - col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6564
SELECT ALL - 87 * CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - 87 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - ( + 90 ) FROM tab0
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 29 * 19 + - - col2 + - + 26, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT + 8 * - COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT + 8 * - COUNT ( * ) FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6568
SELECT ALL 44 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL 44 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 - col1 col1 FROM tab0 cor0
----
1134
1806
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6570
SELECT DISTINCT + - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT + - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - COUNT( * ) * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6571
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6573
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) DIV - 76 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) / - 76 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6574
SELECT 32 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT 32 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 38 ) AS col2 FROM tab1 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT 11 * + col2 + - 5 + - ( + col1 ) FROM tab1 cor0 WHERE ( NOT NULL <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT - CAST( + - col1 AS SIGNED ) - + col0 AS col1 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-6578
SELECT - CAST ( + - col1 AS INTEGER ) - + col0 AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT ( + 94 ) + + + 31 FROM tab1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6580
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6581
SELECT + - CAST( - 71 AS SIGNED ) + ( + COUNT( * ) ) FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-6581
SELECT + - CAST ( - 71 AS INTEGER ) + ( + COUNT ( * ) ) FROM tab2 cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT - + 24 + - - CAST( NULL AS SIGNED ) * + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6582
SELECT - + 24 + - - CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + 79 AS col1, col1 FROM tab2 AS cor0
----
79
51
79
67
79
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT COUNT( DISTINCT 96 ) FROM tab0, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6584
SELECT COUNT ( DISTINCT 96 ) FROM tab0, tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6585
SELECT + CAST( - 52 AS SIGNED ) AS col2 FROM tab2
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-6585
SELECT + CAST ( - 52 AS INTEGER ) AS col2 FROM tab2
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT + MAX( col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT + MAX ( col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT DISTINCT MIN( - 71 ) FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT MIN ( - 71 ) FROM tab2 AS cor0
----
-71

query II rowsort
SELECT col0 AS col2, 47 FROM tab1 AS cor0
----
51
47
85
47
91
47

query II rowsort
SELECT ALL col0 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - MAX( 36 ) AS col0 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6590
SELECT - MAX ( 36 ) AS col0 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL + - col2 * - col0 * 62 FROM tab1 AS cor0
----
303552
310930
383656

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT + COUNT( ALL - 80 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6592
SELECT + COUNT ( ALL - 80 ) FROM tab2
----
3

query I rowsort
SELECT + col1 + 20 * + - col1 AS col0 FROM tab1
----
-266
-893
-95

query I rowsort
SELECT + col0 + + col1 + + col1 * + col0 FROM tab2
----
2443
5069
5167

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6595
SELECT 74 + - CAST( CAST( - + col0 AS DECIMAL ) AS SIGNED ) * - 4 FROM tab2
----
-110
-182
-226

skipif mysql # not compatible
query I rowsort label-6595
SELECT 74 + - CAST ( CAST ( - + col0 AS REAL ) AS INTEGER ) * - 4 FROM tab2
----
-110
-182
-226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT - AVG ( ALL + col1 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT - AVG ( ALL + col1 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL 54 + - col0 AS col0, 49 FROM tab2
----
-10
49
-21
49
8
49

query I rowsort
SELECT - col2 + + 99 FROM tab2
----
41
59
76

query II rowsort
SELECT + + col0 + - col2 AS col0, + col2 + + col2 AS col1 FROM tab2 cor0
----
17
116
23
46
24
80

query III rowsort
SELECT ALL 76, + col2 * - + col0 * + 72, - col1 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 20 )
----

query I rowsort
SELECT + 52 * - - col1 + - col1 * + + col2 + - col0 + + 21 + + - col0 + col0 * col0 FROM tab0 AS cor0
----
621
8298
9189

query I rowsort
SELECT ALL col2 * + + 63 * - col2 + - 80 FROM tab1
----
-219383
-291392
-580688

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT - MAX( 18 ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6604
SELECT - MAX ( 18 ) AS col1 FROM tab0
----
-18

query I rowsort
SELECT + - col0 + 96 FROM tab2 AS cor0
----
21
32
50

query II rowsort
SELECT ALL 60 AS col1, + ( col2 ) FROM tab0 AS cor0
----
60
10
60
47
60
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT + + MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT + + MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
77

query II rowsort
SELECT - + col2 + - ( col2 ) AS col0, - col0 FROM tab0 cor0
----
-198
-97
-20
-87
-94
-15

query I rowsort
SELECT + - col0 + - 23 * col0 + + col1 FROM tab1 AS cor0
----
-1210
-2035
-2137

query I rowsort
SELECT ALL ( - + col2 ) * - col0 + - col2 / + + 79 FROM tab0 WHERE NOT + 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col2 ) AND - col1 * 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6612
SELECT + 53 * + - col1 AS col0, ( - - CAST( NULL AS SIGNED ) ) * - - col1 FROM tab1
----
-2491
NULL
-265
NULL
-742
NULL

skipif mysql # not compatible
query II rowsort label-6612
SELECT + 53 * + - col1 AS col0, ( - - CAST ( NULL AS INTEGER ) ) * - - col1 FROM tab1
----
-2491
NULL
-265
NULL
-742
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 >= + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN + col1 * + + col1 * - ( + col1 ) / - col1 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT 49 DIV 36 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6617
SELECT 49 / 36 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( 52 ) AS col0 FROM tab0 AS cor0 WHERE NOT 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT + COUNT( DISTINCT + 96 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6619
SELECT + COUNT ( DISTINCT + 96 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT 31 DIV - 84 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT 31 / - 84 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT - - 66 AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
66
-3

skipif mysql # not compatible
query II rowsort label-6621
SELECT - - 66 AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
66
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT DISTINCT + SUM( - 36 ) AS col0 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT + SUM ( - 36 ) AS col0 FROM tab2 AS cor0
----
-108

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 43 * 8 * - 12 IS NULL
----

query I rowsort
SELECT DISTINCT - 16 + + col1 + - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-7
12
21

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + ( - ( col2 ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + 95 * + - 87 + - + 79 + + 26 * + - MIN( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NOT NULL < - col0 + 94 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT + 95 * + - 87 + - + 79 + + 26 * + - MIN ( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NOT NULL < - col0 + 94 + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL + COUNT( - 18 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + COUNT ( - 18 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6628
SELECT CAST( NULL AS SIGNED ) AS col1, 23 * 14 * - 59 col2 FROM tab0
----
NULL
-18998
NULL
-18998
NULL
-18998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6628
SELECT CAST ( NULL AS INTEGER ) AS col1, 23 * 14 * - 59 col2 FROM tab0
----
NULL
-18998
NULL
-18998
NULL
-18998

query III rowsort
SELECT * FROM tab0 WHERE - - col2 BETWEEN + + 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT + + MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6630
SELECT + + MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT 53 + - 95 FROM tab1 cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT + + 58 + CAST( ( + 42 ) AS SIGNED ) + - col2 + - - col0 AS col1 FROM tab0 AS cor0
----
177
68
98

skipif mysql # not compatible
query I rowsort label-6632
SELECT + + 58 + CAST ( ( + 42 ) AS INTEGER ) + - col2 + - - col0 AS col1 FROM tab0 AS cor0
----
177
68
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT + COUNT( * ) + + 72 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6633
SELECT + COUNT ( * ) + + 72 FROM tab2 AS cor0
----
75

query I rowsort
SELECT 74 * - col0 * - col1 + 21 AS col1 FROM tab2 AS cor0
----
173625
364693
371871

query II rowsort
SELECT ALL - + col1, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6636
SELECT ALL - COUNT( * ) * + + ( - - SUM( - col2 ) ), 83 AS col0 FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----
NULL
83

skipif mysql # not compatible
query II rowsort label-6636
SELECT ALL - COUNT ( * ) * + + ( - - SUM ( - col2 ) ), 83 AS col0 FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----
NULL
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( + col1 ) col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - - 15 < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - - 15 < NULL )
----
0

query I rowsort
SELECT 93 * + 4 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 8a39652bc919cfd52006ae9423cf53ca

query I rowsort
SELECT DISTINCT - col0 + + 6 * 59 * + + col1 AS col2 FROM tab0 AS cor0
----
257
28659
7347

query I rowsort
SELECT - + col2 * - - 88 * + col1 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-18480
-335016
-8712

query I rowsort
SELECT DISTINCT + + col0 * - - col1 - - col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6643
SELECT DISTINCT ( CAST( + + 39 AS SIGNED ) ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT ( CAST ( + + 39 AS INTEGER ) ) FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 90 - col2, - 64 col0 FROM tab1 AS cor0
----
-6
-64
22
-64
31
-64

query I rowsort
SELECT + 4 - + col0 FROM tab1
----
-47
-81
-87

query I rowsort
SELECT DISTINCT 82 * - 50 * col1 AS col0 FROM tab1
----
-192700
-20500
-57400

query I rowsort
SELECT DISTINCT ( + col2 ) + - col2 * - + col1 * - col2 AS col0 FROM tab0
----
-178882
-2090
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL COUNT( * ) * + COUNT( * ) col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6648
SELECT ALL COUNT ( * ) * + COUNT ( * ) col0 FROM tab0
----
9

query I rowsort
SELECT - 70 + - 26 + col0 FROM tab1
----
-11
-45
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 72 col1, col0 AS col2 FROM tab0
----
-72
15
-72
87
-72
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6651
SELECT + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6651
SELECT + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT - + COUNT( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6652
SELECT - + COUNT ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT DISTINCT MIN( ALL - 65 ) FROM tab1 AS cor0 WHERE - 39 >= - - CAST( + + 88 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT MIN ( ALL - 65 ) FROM tab1 AS cor0 WHERE - 39 >= - - CAST ( + + 88 AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT DISTINCT - col0 + - 44 FROM tab0 WHERE + col0 * col1 <= col0 - - col2
----
-141

query I rowsort
SELECT DISTINCT col2 * - - 3 FROM tab2
----
120
174
69

query I rowsort
SELECT ALL 89 * col0 AS col1 FROM tab2
----
4094
5696
6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col0 FROM tab2 AS cor0 WHERE NOT - col2 - + col1 IS NULL
----
9

query I rowsort
SELECT DISTINCT + - 86 AS col0 FROM tab0 cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT DISTINCT - col2 + - - col0 * + 84 DIV + 3 + + col1 + + 53 FROM tab1 cor0
----
1399
2379
2580

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - col2 + - - col0 * + 84 / + 3 + + col1 + + 53 FROM tab1 cor0
----
1399
2379
2580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT - CAST( NULL AS SIGNED ) + 9 + SUM( - 87 ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT - CAST ( NULL AS INTEGER ) + 9 + SUM ( - 87 ) * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT + - col0 + - - col1 * + col2 * - col0 FROM tab2 WHERE + col0 * + col0 IS NOT NULL
----
-197184
-291525
-54004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 + + col1 col2 FROM tab0
----
-40
-60
20

query I rowsort
SELECT - col2 + + - 95 AS col0 FROM tab2
----
-118
-135
-153

query I rowsort
SELECT col2 + 93 FROM tab0
----
103
140
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT COUNT( * ) + - 52 AS col2 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-6666
SELECT COUNT ( * ) + - 52 AS col2 FROM tab1
----
-49

query I rowsort
SELECT + 77 * - col1 + 24 - - - col0 * col2 + - + 57 * + - 42 * 32 * - col1 FROM tab0
----
-1611231
-6212166
-86264

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL + + COUNT( * ) * - 78 + + ( 75 ) + 41 FROM tab0 cor0
----
-118

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + + COUNT ( * ) * - 78 + + ( 75 ) + 41 FROM tab0 cor0
----
-118

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + + + 98 NOT BETWEEN NULL AND + + 7
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6670
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - 46 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 46 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6671
SELECT col1 AS col1, - CAST( + - 80 AS SIGNED ) FROM tab1
----
14
80
47
80
5
80

skipif mysql # not compatible
query II rowsort label-6671
SELECT col1 AS col1, - CAST ( + - 80 AS INTEGER ) FROM tab1
----
14
80
47
80
5
80

query I rowsort
SELECT col2 * + col2 - - + col0 FROM tab0
----
187
2224
9898

query II rowsort
SELECT DISTINCT 74 AS col0, - 5 * - col1 FROM tab1
----
74
235
74
25
74
70

query I rowsort
SELECT ALL - 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) * + 16 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) * + 16 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 - - col0 + col1 AS col2 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT DISTINCT - col2 * - col1 - + + col1 AS col2 FROM tab0 AS cor0
----
189
3726
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, 17 AS col1 FROM tab0 AS cor0 WHERE NOT ( + + 84 ) IS NULL
----
-10
17
-47
17
-99
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT - col2 + + - col0 + - col0 * - 85 + - + col1 DIV + - col2 AS col1 FROM tab0 AS cor0
----
1214
7300
8049

skipif mysql # not compatible
query I rowsort label-6680
SELECT - col2 + + - col0 + - col0 * - 85 + - + col1 / + - col2 AS col1 FROM tab0 AS cor0
----
1214
7300
8049

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT MAX( - 39 ) * - + 39 col2 FROM tab2 AS cor0
----
1521

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6681
SELECT MAX ( - 39 ) * - + 39 col2 FROM tab2 AS cor0
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT + 53 * MAX( ALL + + 23 ) FROM tab0 AS cor0
----
1219

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + 53 * MAX ( ALL + + 23 ) FROM tab0 AS cor0
----
1219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col2 col2, 18 FROM tab0
----
-705
18
-870
18
-9603
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) >= - col1
----

query I rowsort
SELECT ALL + col1 * + col1 * - - col2 AS col0 FROM tab2
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6686
SELECT DISTINCT - col2 * 61, + ( - col0 ) - + CAST( NULL AS SIGNED ) * - ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-3599
NULL
-4148
NULL
-5856
NULL

skipif mysql # not compatible
query II rowsort label-6686
SELECT DISTINCT - col2 * 61, + ( - col0 ) - + CAST ( NULL AS INTEGER ) * - ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-3599
NULL
-4148
NULL
-5856
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * - col1 col0 FROM tab1 AS cor0
----
168
564
60

query I rowsort
SELECT ALL + 1 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT DISTINCT COUNT( - + col1 ) * MAX( ALL + col2 ) AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT COUNT ( - + col1 ) * MAX ( ALL + col2 ) AS col2 FROM tab2
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT DISTINCT CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT ALL + - col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT - + CAST( NULL AS SIGNED ) * + - MAX( col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT - + CAST ( NULL AS INTEGER ) * + - MAX ( col0 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 66 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 58 * - - 25 + + + col0 + + col2 + + + col0 AS col2 FROM tab1 AS cor0
----
1648
1679
1700

query I rowsort
SELECT - + 95 * + col1 FROM tab2 AS cor0
----
-4845
-6365
-7315

query I rowsort
SELECT col1 FROM tab2 WHERE - col0 / - 39 IS NULL
----

query I rowsort
SELECT + ( - ( col2 ) ) FROM tab0 WHERE - + 57 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - col0 * + - col2 AS col1 FROM tab1 WHERE - col2 + + col2 + 67 + - + col0 * + - 38 / - + 99 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + - col0 col1 FROM tab0
----
0
1200
1740

query II rowsort
SELECT + 42 AS col1, col2 + + col2 + - + ( + col2 ) FROM tab0 WHERE - - col0 * col1 IS NOT NULL
----
42
10
42
47
42
99

query I rowsort
SELECT - col2 + - + ( col0 ) AS col1 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT - MIN( DISTINCT col2 ) + - 68 FROM tab1 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-6702
SELECT - MIN ( DISTINCT col2 ) + - 68 FROM tab1 AS cor0
----
-127

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = - col2 * + - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL BETWEEN - 62 AND + + col0 + 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6705
SELECT + CAST( + 48 AS SIGNED ) AS col1 FROM tab2
----
48
48
48

skipif mysql # not compatible
query I rowsort label-6705
SELECT + CAST ( + 48 AS INTEGER ) AS col1 FROM tab2
----
48
48
48

query I rowsort
SELECT DISTINCT 56 + - col1 FROM tab1
----
42
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT + 10 * CAST( col1 AS SIGNED ) col1 FROM tab2
----
510
670
770

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6707
SELECT + 10 * CAST ( col1 AS INTEGER ) col1 FROM tab2
----
510
670
770

query I rowsort
SELECT ALL - 88 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6709
SELECT ALL + col0 + + col1 * col0 + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL + col0 + + col1 * col0 + + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6710
SELECT COUNT( 18 ), MIN( + ( 48 ) ) DIV MIN( ALL + 71 ) * 79 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
0

skipif mysql # not compatible
query II rowsort label-6710
SELECT COUNT ( 18 ), MIN ( + ( 48 ) ) / MIN ( ALL + 71 ) * 79 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
0

query II rowsort
SELECT + 15, col0 FROM tab0 AS cor0
----
15
15
15
87
15
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL - SUM( - + col0 ) * MAX( col0 ) col1 FROM tab2 AS cor0
----
13875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6712
SELECT ALL - SUM ( - + col0 ) * MAX ( col0 ) col1 FROM tab2 AS cor0
----
13875

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT MAX( + - col1 ) * COUNT( * ) * + - COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6713
SELECT MAX ( + - col1 ) * COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT col2 * + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT col2 * + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( 93, col1 * + - col2, - col0 * ( + col0 ) * + col2 )
----

query I rowsort
SELECT col1 * col1 * + 45 + + col0 FROM tab2 AS cor0
----
117091
202080
266869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6717
SELECT + - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2 * - - col0, + 58 )
----

skipif mysql # not compatible
query I rowsort label-6717
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2 * - - col0, + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT - - COUNT( * ) FROM tab2 cor0 WHERE NOT + 8 NOT IN ( 14 * - - col0, col2 / col0 - + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT - - COUNT ( * ) FROM tab2 cor0 WHERE NOT + 8 NOT IN ( 14 * - - col0, col2 / col0 - + + col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT + + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6720
SELECT + + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT ( + CAST( NULL AS SIGNED ) ) * - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT ( + CAST ( NULL AS INTEGER ) ) * - - col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 89 = - - ( + col0 ) + - col2 * + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - col2 < - 49 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * col2 * + 49 FROM tab0 AS cor0
----
-34545
-42630
-470547

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT ALL - 62 * col0 DIV - 88 + col1 FROM tab0 cor0
----
69
82
91

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - 62 * col0 / - 88 + col1 FROM tab0 cor0
----
69
82
91

query I rowsort
SELECT ALL - 72 + + + col2 AS col1 FROM tab1 AS cor0
----
-13
-4
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 37 * col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT ALL 32 DIV - col0 * + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL 32 / - col0 * + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + + + col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL - 62 + + MIN( + col0 ) FROM tab0 WHERE col2 IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - 62 + + MIN ( + col0 ) FROM tab0 WHERE col2 IS NOT NULL
----
-47

query II rowsort
SELECT DISTINCT 23 AS col2, col1 FROM tab0
----
23
1
23
21
23
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6732
SELECT - CAST( + col0 AS SIGNED ) + 82 AS col0, 94 col1 FROM tab2
----
18
94
36
94
7
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6732
SELECT - CAST ( + col0 AS INTEGER ) + 82 AS col0, 94 col1 FROM tab2
----
18
94
36
94
7
94

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE - - 46 / - col1 + - col2 + + + col2 * - 98 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6734
SELECT ALL MAX( DISTINCT + 20 ) + + CAST( + 80 AS SIGNED ) - + 0 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL MAX ( DISTINCT + 20 ) + + CAST ( + 80 AS INTEGER ) - + 0 FROM tab2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6735
SELECT + col0 + 83 * CAST( col0 AS SIGNED ) FROM tab1
----
4284
7140
7644

skipif mysql # not compatible
query I rowsort label-6735
SELECT + col0 + 83 * CAST ( col0 AS INTEGER ) FROM tab1
----
4284
7140
7644

query I rowsort
SELECT col0 + + 18 - ( - 76 ) AS col2 FROM tab1
----
145
179
185

query I rowsort
SELECT ALL - 4 * - col2 + + - col0 FROM tab0
----
-47
173
299

query I rowsort
SELECT DISTINCT + col0 - - col2 * + col2 * + 70 FROM tab2
----
112064
235555
37076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, + col2 * - col2 * - col0 FROM tab0 AS cor0
----
-10
8700
-47
33135
-99
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL + ( - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + ( - COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT DISTINCT + ( + COUNT( col1 ) ) col0, 28 * - 2 AS col1 FROM tab1 AS cor0
----
3
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6741
SELECT DISTINCT + ( + COUNT ( col1 ) ) col0, 28 * - 2 AS col1 FROM tab1 AS cor0
----
3
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 WHERE - 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT + - COUNT( ALL + 5 ) + - 11 FROM tab0 cor0 WHERE NOT - col1 BETWEEN + 68 AND NULL
----
-14

skipif mysql # not compatible
query I rowsort label-6743
SELECT + - COUNT ( ALL + 5 ) + - 11 FROM tab0 cor0 WHERE NOT - col1 BETWEEN + 68 AND NULL
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL - COUNT( + - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL - COUNT ( + - col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 * - + col0 FROM tab1 AS cor0 WHERE NOT + col0 + col2 * + col0 * + col1 * 83 IS NOT NULL
----

query I rowsort
SELECT + + 57 FROM tab1 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT - CAST( NULL AS SIGNED ) * + - 73 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT - CAST ( NULL AS INTEGER ) * + - 73 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 5 ) AS col1, - col2 * + + 51 col1 FROM tab2 AS cor0
----
-5
-1173
-5
-2040
-5
-2958

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 98 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT + COUNT( ALL + + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT + COUNT ( ALL + + col1 ) FROM tab2
----
3

query I rowsort
SELECT + 68 * + 27 FROM tab0
----
1836
1836
1836

query I rowsort
SELECT + ( + col0 ) * - + 73 * - 63 FROM tab0
----
400113
446103
68985

query I rowsort
SELECT - 26 * + 84 AS col1 FROM tab2
----
-2184
-2184
-2184

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT MAX( DISTINCT - 68 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT MAX ( DISTINCT - 68 ) FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ALL COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT DISTINCT + MAX( DISTINCT - - 30 ) AS col2 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT + MAX ( DISTINCT - - 30 ) AS col2 FROM tab1 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT ALL 60 * - - 31 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL 60 * - - 31 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT DISTINCT 38 + + - COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT 38 + + - COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT + col2 * - + col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL + MIN( ALL + 38 ) * + COUNT( * ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + MIN ( ALL + 38 ) * + COUNT ( * ) FROM tab2 AS cor0
----
114

query I rowsort
SELECT ALL + ( + ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6764
SELECT DISTINCT col0, + CAST( + col1 AS SIGNED ) * + col1 + - - col0 AS col0 FROM tab0 AS cor0
----
15
6576
87
528
97
98

skipif mysql # not compatible
query II rowsort label-6764
SELECT DISTINCT col0, + CAST ( + col1 AS INTEGER ) * + col1 + - - col0 AS col0 FROM tab0 AS cor0
----
15
6576
87
528
97
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT CAST( + col2 AS SIGNED ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6765
SELECT CAST ( + col2 AS INTEGER ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 71 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + + 98 AS col2 FROM tab0 cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ALL + COUNT( DISTINCT + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL + COUNT ( DISTINCT + col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6769
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + - col2 IS NULL ) )
----

query I rowsort
SELECT - col1 + 70 + 44 + 89 AS col2 FROM tab2
----
126
136
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL COUNT( * ) - - - ( 34 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL COUNT ( * ) - - - ( 34 ) FROM tab0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - 50 + - + 19 * + MIN( DISTINCT col2 ) FROM tab1 cor0
----
-1171

skipif mysql # not compatible
query I rowsort label-6773
SELECT - 50 + - + 19 * + MIN ( DISTINCT col2 ) FROM tab1 cor0
----
-1171

query I rowsort
SELECT DISTINCT + 50 - - col1 + col2 FROM tab2 AS cor0
----
124
167
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT - + ( col2 ) FROM tab0 AS cor0 WHERE - CAST( + - 63 AS SIGNED ) + 49 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6775
SELECT - + ( col2 ) FROM tab0 AS cor0 WHERE - CAST ( + - 63 AS INTEGER ) + 49 IS NULL
----

query I rowsort
SELECT ALL col2 * + + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT + + MAX( + + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6777
SELECT + + MAX ( + + col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT - 69 FROM tab0 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT - + COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6780
SELECT - + COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6782
SELECT DISTINCT + col2, col1 DIV - + 29 FROM tab2 AS cor0
----
23
-1
40
-2
58
-2

skipif mysql # not compatible
query II rowsort label-6782
SELECT DISTINCT + col2, col1 / - + 29 FROM tab2 AS cor0
----
23
-1
40
-2
58
-2

query II rowsort
SELECT ALL + - col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 5 col2 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT MAX( ALL + + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6785
SELECT MAX ( ALL + + col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT + 50 * - col0 FROM tab1
----
-2550
-4250
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT SUM( ALL + + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6787
SELECT SUM ( ALL + + col1 ) AS col0 FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT ALL - col2 DIV col2 * - col0 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - col2 / col2 * - col0 AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT - 54 AS col1 FROM tab0 WHERE NOT + col2 + 84 * - col1 IS NOT NULL
----

query I rowsort
SELECT + col1 * - - col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col0 FROM tab1 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col0 FROM tab2 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 16 * + col0 col0 FROM tab0
----
1552
19440
29232

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN + - 51 * + 49 * + col2 AND NULL
----

query I rowsort
SELECT + col1 * + 60 AS col2 FROM tab2
----
3060
4020
4620

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT DISTINCT col1 DIV - 67 + - - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT col1 / - 67 + - - col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6798
SELECT DISTINCT 0 * COUNT( * ) + + + COUNT( * ) DIV - ( - - 98 ) + - 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT 0 * COUNT ( * ) + + + COUNT ( * ) / - ( - - 98 ) + - 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - ( col0 ) = + - col2 * + 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - 30 >= - col2 - - col1 + 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 + + ( + - col0 ) col0 FROM tab1
----
-36
-70
-76

query I rowsort
SELECT DISTINCT 42 + + 76 AS col2 FROM tab0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-6803
SELECT ALL - col2 DIV col2 + - col1 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - col2 / col2 + - col1 FROM tab0
----
-2
-22
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT - 87 DIV + col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT - 87 / + col0 FROM tab0
----
-1
-5
0

query I rowsort
SELECT DISTINCT - col2 - 1 + + 81 AS col1 FROM tab2 AS cor0
----
22
40
57

query I rowsort
SELECT DISTINCT - col1 * 53 FROM tab1 cor0
----
-2491
-265
-742

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 * - 81 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - - ( col0 ) AS col2 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + + 46 * + col0 * - 66 AND + col1 / + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT - MIN( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6810
SELECT - MIN ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6811
SELECT col0 * CAST( - col2 AS DECIMAL ) + col2 + + - 95 AS col0 FROM tab0 cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-6811
SELECT col0 * CAST ( - col2 AS REAL ) + col2 + + - 95 AS col0 FROM tab0 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + col2 * 39 * + - col2 * col1 + - 74 + - col2 * + + 51 AS col1 FROM tab2 AS cor0
----
-1053428
-4806914
-8793164

query I rowsort
SELECT DISTINCT - col0 + - col0 + - 29 AS col1 FROM tab0
----
-203
-223
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT COUNT( * ) * - - 87 * - - COUNT( * ) AS col1 FROM tab2
----
783

skipif mysql # not compatible
query I rowsort label-6814
SELECT COUNT ( * ) * - - 87 * - - COUNT ( * ) AS col1 FROM tab2
----
783

query I rowsort
SELECT ALL ( 20 ) * + ( col0 ) AS col0 FROM tab0
----
1740
1940
300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col1 FROM tab1 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-6817
SELECT + + col2, + 8 DIV col0 AS col0 FROM tab0 cor0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-6817
SELECT + + col2, + 8 / col0 AS col0 FROM tab0 cor0
----
10
0
47
0
99
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6818
SELECT ALL - col0, + 73 DIV + col1 AS col2 FROM tab0 AS cor0
----
-15
0
-87
3
-97
73

skipif mysql # not compatible
query II rowsort label-6818
SELECT ALL - col0, + 73 / + col1 AS col2 FROM tab0 AS cor0
----
-15
0
-87
3
-97
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + - 35 + MAX( - col1 ) * + + 40 AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6819
SELECT + - 35 + MAX ( - col1 ) * + + 40 AS col1 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT + col1 + + col1 * + 38 AS col1 FROM tab2 AS cor0
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT 19 * 63 + - MIN( DISTINCT + col1 ) + - 19 FROM tab0 AS cor0
----
1177

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT 19 * 63 + - MIN ( DISTINCT + col1 ) + - 19 FROM tab0 AS cor0
----
1177

query I rowsort
SELECT ALL - col0 + + 18 FROM tab2 AS cor0
----
-28
-46
-57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 76 > col2 * 45 + - 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + col0 * col0 col1 FROM tab0
----
230
7574
9414

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 14 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NULL >= - 7
----

query I rowsort
SELECT - col0 * 58 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT MIN( + 72 ) FROM tab1 WHERE NULL NOT BETWEEN 81 AND col0 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT MIN ( + 72 ) FROM tab1 WHERE NULL NOT BETWEEN 81 AND col0 * 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT + 33 + - MIN( DISTINCT col0 - + col2 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-6829
SELECT + 33 + - MIN ( DISTINCT col0 - + col2 ) FROM tab0
----
65

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( - col1 )
----

query I rowsort
SELECT - col2 + + 64 FROM tab2
----
24
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT DISTINCT 78 * + COUNT( * ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT 78 * + COUNT ( * ) FROM tab2
----
234

query I rowsort
SELECT 18 AS col2 FROM tab1 WHERE 69 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + 40 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + 40 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 + + col2 * col2 col0 FROM tab0
----
123
2232
9824

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT DISTINCT SUM( ALL col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT SUM ( ALL col0 ) FROM tab0
----
199

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 * col1 ) = ( NULL )
----

query I rowsort
SELECT 6 * - 72 + col1 * + 70 FROM tab0 WHERE NULL IS NULL
----
-362
1038
5238

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT DISTINCT - col1 DIV + 41 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT - col1 / + 41 AS col1 FROM tab1
----
-1
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col2 / + col1 - 75
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT DISTINCT - COUNT( * ) DIV - 42 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6841
SELECT DISTINCT - COUNT ( * ) / - 42 col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT MAX( ALL 44 ) + 68 * + 96 AS col1 FROM tab2
----
6572

skipif mysql # not compatible
query I rowsort label-6842
SELECT MAX ( ALL 44 ) + 68 * + 96 AS col1 FROM tab2
----
6572

query I rowsort
SELECT ALL + col2 * 85 + ( + 37 ) FROM tab0 WHERE ( NULL ) > ( 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6844
SELECT DISTINCT * FROM tab0 WHERE ( + col1 + - ( CAST( NULL AS SIGNED ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6844
SELECT DISTINCT * FROM tab0 WHERE ( + col1 + - ( CAST ( NULL AS INTEGER ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6845
SELECT - col0 DIV + 9 FROM tab0
----
-1
-10
-9

skipif mysql # not compatible
query I rowsort label-6845
SELECT - col0 / + 9 FROM tab0
----
-1
-10
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT ALL + 61 DIV - col0 + - 76 * + col2 AS col0 FROM tab2
----
-1749
-3040
-4408

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + 61 / - col0 + - 76 * + col2 AS col0 FROM tab2
----
-1749
-3040
-4408

query III rowsort
SELECT * FROM tab1 WHERE ( 37 ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 27 + 62 / 59 IN ( - col2 + + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( 62 )
----

query I rowsort
SELECT 80 * 92 FROM tab1
----
7360
7360
7360

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT MIN( ALL col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6851
SELECT MIN ( ALL col0 ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL MAX( col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL MAX ( col1 ) FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6853
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * 95 NOT IN ( CAST( NULL AS SIGNED ) - col0 )
----

skipif mysql # not compatible
query III rowsort label-6853
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * 95 NOT IN ( CAST ( NULL AS INTEGER ) - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN col2 / - col0 AND col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT MIN( ALL ( + 20 ) ) FROM tab0 WHERE NOT + col0 + - col2 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-6855
SELECT MIN ( ALL ( + 20 ) ) FROM tab0 WHERE NOT + col0 + - col2 IS NULL
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT BETWEEN col1 * - 93 AND ( + col1 / col1 )
----

query I rowsort
SELECT DISTINCT ( ( col1 ) ) FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6859
SELECT COUNT( ALL + 96 ) DIV + 58 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6859
SELECT COUNT ( ALL + 96 ) / + 58 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT - 69 DIV col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT - 69 / col2 FROM tab1 cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 7 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL - - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 75 col2 FROM tab1 AS cor0
----
-3825
-6375
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT DISTINCT - - col0 DIV - ( + 90 ) FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT - - col0 / - ( + 90 ) FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT col1 * - 59 DIV ( - ( col0 ) * + 96 ) + 55 AS col1 FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-6866
SELECT col1 * - 59 / ( - ( col0 ) * + 96 ) + 55 AS col1 FROM tab1
----
55
55
55

query III rowsort
SELECT * FROM tab0 WHERE NOT + 60 / col1 IS NOT NULL
----

query I rowsort
SELECT ALL 90 * + col2 FROM tab2
----
2070
3600
5220

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 + 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 68 + - col1 AS col0 FROM tab1
----
21
54
63

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> ( - 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT ALL col1 FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT IN ( - ( - 30 ) - col0 * + 69 )
----

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL col1 FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT IN ( - ( - 30 ) - col0 * + 69 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT col0 + - col2 DIV col2 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-6873
SELECT col0 + - col2 / col2 FROM tab0
----
14
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT - 54 DIV ( + ( col0 ) ) + - col2 * col0 AS col1 FROM tab1
----
-4897
-5015
-6188

skipif mysql # not compatible
query I rowsort label-6874
SELECT - 54 / ( + ( col0 ) ) + - col2 * col0 AS col1 FROM tab1
----
-4897
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT DISTINCT - 57 DIV col2 + ( + col2 ) FROM tab0
----
46
5
99

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - 57 / col2 + ( + col2 ) FROM tab0
----
46
5
99

query I rowsort
SELECT ALL - col2 + 99 * - 42 AS col1 FROM tab0 WHERE col1 <= ( + col0 )
----
-4168
-4257

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( - 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT + + MIN( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT + + MIN ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL 73 * 7 FROM tab0 cor0
----
511
511
511

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT DISTINCT - + 72 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT - + 72 / + col0 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6882
SELECT DISTINCT - SUM( col0 ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - SUM ( col0 ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT - COUNT( DISTINCT + - col2 ) DIV 37 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT - COUNT ( DISTINCT + - col2 ) / 37 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, ( - ( col1 ) ) + 66 col0 FROM tab1
----
14
52
47
19
5
61

query I rowsort
SELECT DISTINCT + col2 + + 54 FROM tab1
----
113
122
150

query I rowsort
SELECT ALL + 22 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6887
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 91 / + - ( + COUNT( - 55 ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 91 / + - ( + COUNT ( - 55 ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6888
SELECT DISTINCT CAST( + COUNT( DISTINCT + 2 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT CAST ( + COUNT ( DISTINCT + 2 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6889
SELECT * FROM tab0 AS cor0 WHERE + col2 + col0 / - CAST( NULL AS SIGNED ) = col1
----

skipif mysql # not compatible
query III rowsort label-6889
SELECT * FROM tab0 AS cor0 WHERE + col2 + col0 / - CAST ( NULL AS INTEGER ) = col1
----

query II rowsort
SELECT ALL + col0, - 40 FROM tab1 AS cor0
----
51
-40
85
-40
91
-40

query I rowsort
SELECT - ( + 66 ) + + col0 AS col1 FROM tab0 AS cor0
----
-51
21
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT ALL CAST( + - 58 AS SIGNED ) - - - COUNT( DISTINCT - col1 ) + MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL CAST ( + - 58 AS INTEGER ) - - - COUNT ( DISTINCT - col1 ) + MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
-120

query I rowsort
SELECT ALL - col2 - 61 FROM tab0 AS cor0
----
-108
-160
-71

query I rowsort
SELECT + col2 * + col2 * - ( - - col1 ) AS col2 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT - COUNT( + col1 ) + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - COUNT ( + col1 ) + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT ALL col1 DIV - 68 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL col1 / - 68 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 1 * + ( + - col2 ) col0 FROM tab0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - - col1
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT - 71 = - 19
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + 54 BETWEEN ( NULL ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6902
SELECT DISTINCT + - ( - CAST( NULL AS SIGNED ) ), 0 * + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6902
SELECT DISTINCT + - ( - CAST ( NULL AS INTEGER ) ), 0 * + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6903
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + col1 AS SIGNED ) - + col0 IN ( 76 )
----

skipif mysql # not compatible
query III rowsort label-6903
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + col1 AS INTEGER ) - + col0 IN ( 76 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 49 * - col2 AND - ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 72 ) BETWEEN col0 + - col2 AND + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 13 * - + col0 AS col1 FROM tab0
----
1131
1261
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT MIN( ALL + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6907
SELECT MIN ( ALL + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6908
SELECT 38 DIV + COUNT( * ) + + + 53 col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6908
SELECT 38 / + COUNT ( * ) + + + 53 col2 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL + MIN( 38 ) FROM tab1 AS cor0 WHERE NOT - ( + + 20 ) NOT BETWEEN + 33 AND col1 / col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + MIN ( 38 ) FROM tab1 AS cor0 WHERE NOT - ( + + 20 ) NOT BETWEEN + 33 AND col1 / col2
----
NULL

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + col2
----

query I rowsort
SELECT col2 * 22 AS col2 FROM tab0 AS cor0
----
1034
2178
220

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT + + COUNT( * ) * ( - MAX( - col2 ) ) * + 93 FROM tab0 AS cor0
----
2790

skipif mysql # not compatible
query I rowsort label-6912
SELECT + + COUNT ( * ) * ( - MAX ( - col2 ) ) * + 93 FROM tab0 AS cor0
----
2790

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 24 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - - col0 > ( - col0 / col2 + 37 - - col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT - MIN( DISTINCT col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6915
SELECT - MIN ( DISTINCT col0 ) FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - SUM( + ( - - col0 ) ) * 49 + - 14 FROM tab1 cor0
----
-11137

skipif mysql # not compatible
query I rowsort label-6916
SELECT - SUM ( + ( - - col0 ) ) * 49 + - 14 FROM tab1 cor0
----
-11137

query I rowsort
SELECT + + 44 AS col0 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT 89 DIV + 30 AS col0 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6918
SELECT 89 / + 30 AS col0 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL SUM( DISTINCT + + 34 ) col1 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6919
SELECT ALL SUM ( DISTINCT + + 34 ) col1 FROM tab2 AS cor0
----
34

query I rowsort
SELECT ALL col1 + 0 + + col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 20 + - col0 * col1 AS col0 FROM tab0
----
-117
-1235
-1847

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 + + col2 col1 FROM tab2
----
114
132
97

query I rowsort
SELECT + ( + - col1 ) * col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT + col2 * - 91 AS col2 FROM tab2
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL - SUM( ALL col0 ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - SUM ( ALL col0 ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-202

query I rowsort
SELECT - col2 * + - col1 * - + col1 + - col1 + 21 AS col1 FROM tab0 AS cor0
----
-308427
-4410
-79

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - ( + - COUNT( * ) ) FROM tab2 AS cor0 WHERE + 58 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6930
SELECT - ( + - COUNT ( * ) ) FROM tab2 AS cor0 WHERE + 58 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT DISTINCT ( + + 47 ) AS col1, COUNT( * ) AS col2 FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-6931
SELECT DISTINCT ( + + 47 ) AS col1, COUNT ( * ) AS col2 FROM tab1
----
47
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 20 + col1 col0, - col0 - + + col0 * - col0 FROM tab0
----
101
210
21
9312
41
7482

query I rowsort
SELECT ALL - 81 - - col1 FROM tab1
----
-34
-67
-76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 36 NOT IN ( + + col0 / col2, col2 / + + 82 + - - ( 80 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6935
SELECT - CAST( NULL AS DECIMAL ) - 7 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT - CAST ( NULL AS REAL ) - 7 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 10 - + - col1 AS col0 FROM tab2 AS cor0
----
41
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT - + 92 - + COUNT( * ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT - + 92 - + COUNT ( * ) FROM tab0 AS cor0
----
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - + + 83 + col0 NOT BETWEEN NULL AND ( + ( + - 9 ) - 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 - + 70 + - 92 AS col1 FROM tab2 cor0
----
-104
-122
-139

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) + + col2 IN ( - col0 / - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 > 35 - + - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6942
SELECT ALL - 57 DIV - CAST( + - col0 AS SIGNED ) - - + 10 AS col1 FROM tab1 AS cor0
----
10
10
9

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - 57 / - CAST ( + - col0 AS INTEGER ) - - + 10 AS col1 FROM tab1 AS cor0
----
10
10
9

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col0 + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT DISTINCT - + ( - CAST( + col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - + ( - CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT DISTINCT + + col0 + + col0 + col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) + - col0 IS NULL
----
261
291
45

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT + + col0 + + col0 + col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + - col0 IS NULL
----
261
291
45

query II rowsort
SELECT + col0 AS col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT COUNT( * ), - 56 AS col1 FROM tab2
----
3
-56

skipif mysql # not compatible
query II rowsort label-6949
SELECT COUNT ( * ), - 56 AS col1 FROM tab2
----
3
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6950
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) < 91 / CAST( 74 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6950
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) < 91 / CAST ( 74 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 col2 FROM tab1
----
2
2
2

query II rowsort
SELECT col1 AS col1, - col2 AS col1 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL ( 65 ) AS col2 FROM tab0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6954
SELECT col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6954
SELECT col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT ALL - 36 DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL - 36 / col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + ( + COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + ( + COUNT ( * ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6957
SELECT - COUNT( * ) DIV - + 3 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6957
SELECT - COUNT ( * ) / - + 3 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL MAX( + - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL MAX ( + - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT 59 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - ( MAX( + col1 ) ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT - ( MAX ( + col1 ) ) col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT - col2 FROM tab0 cor0 WHERE NOT col2 BETWEEN - - 52 AND CAST( NULL AS SIGNED )
----
-10
-47

skipif mysql # not compatible
query I rowsort label-6962
SELECT - col2 FROM tab0 cor0 WHERE NOT col2 BETWEEN - - 52 AND CAST ( NULL AS INTEGER )
----
-10
-47

query II rowsort
SELECT + col1, + 85 AS col2 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT 19 + 58 FROM tab1
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + - - col1 col2 FROM tab0
----
-43
-63
17

query I rowsort
SELECT + col0 * col0 * 79 + + col2 AS col2 FROM tab1
----
205575
570834
654267

query I rowsort
SELECT DISTINCT 96 + col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT MAX( ALL + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6968
SELECT MAX ( ALL + - col0 ) FROM tab0
----
-15

query I rowsort
SELECT ALL 44 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + - ( + 71 ) AS col0 FROM tab1
----
-12
-3
25

query I rowsort
SELECT + + col2 + + col2 AS col0 FROM tab1 AS cor0 WHERE + col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL - ( + COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL - ( + COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT - SUM( + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6973
SELECT - SUM ( + col1 ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 96 ) col0 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT + - 30 - COUNT( * ) AS col2 FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6975
SELECT + - 30 - COUNT ( * ) AS col2 FROM tab2 cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT 87 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT 87 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * col0 + + - col2 col2 FROM tab2
----
2323
3224
3767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + + col2 col0 FROM tab2
----
59
76
94

query I rowsort
SELECT DISTINCT col1 + 74 AS col2 FROM tab0
----
155
75
95

query III rowsort
SELECT * FROM tab1 WHERE - + 91 - - + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 97 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL - - MIN( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - - MIN ( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - - 80 AS col2 FROM tab0 cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - col2 * - + 99 AS col1 FROM tab2 AS cor0
----
2277
3960
5742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col1, + 95 FROM tab0 AS cor0
----
-10
95
-47
95
-99
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - - 71 ) * + col2 col2 FROM tab1 AS cor0
----
-4189
-4828
-6816

query I rowsort
SELECT ALL 2 * col0 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT - col2 * + 98 FROM tab0
----
-4606
-9702
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL COUNT( * ) * + 72 * - 99 FROM tab2
----
-21384

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL COUNT ( * ) * + 72 * - 99 FROM tab2
----
-21384

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - COUNT( - col1 ) FROM tab0 WHERE NOT - col1 = - 16
----
-3

skipif mysql # not compatible
query I rowsort label-6991
SELECT - COUNT ( - col1 ) FROM tab0 WHERE NOT - col1 = - 16
----
-3

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + - 74 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 31 NOT IN ( - + 55 / - 90, col1 / - 28 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT - 42 DIV col0 * + + ( 94 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6995
SELECT - 42 / col0 * + + ( 94 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab0 cor0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT ALL COUNT( DISTINCT - 75 ) AS col1, 95 AS col0 FROM tab2 AS cor0
----
1
95

skipif mysql # not compatible
query II rowsort label-6997
SELECT ALL COUNT ( DISTINCT - 75 ) AS col1, 95 AS col0 FROM tab2 AS cor0
----
1
95

query I rowsort
SELECT ALL + col1 + - ( - + col1 ) - + col0 FROM tab1
----
-23
-75
3

query II rowsort
SELECT ALL col1 AS col1, 32 + - + col1 AS col0 FROM tab2
----
51
-19
67
-35
77
-45

query I rowsort
SELECT - + col0 AS col2 FROM tab2 AS cor0 WHERE + col1 * - col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7001
SELECT + COUNT( * ) DIV 76 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7001
SELECT + COUNT ( * ) / 76 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT COUNT( DISTINCT - 82 ) * + 55 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7002
SELECT COUNT ( DISTINCT - 82 ) * + 55 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT - + COUNT( + - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7003
SELECT - + COUNT ( + - col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + 31 * - + col0 AS col0 FROM tab0 AS cor0
----
-2697
-3007
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT - 43 AS col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) - + + col2 > - ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-7005
SELECT - 43 AS col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) - + + col2 > - ( - col1 )
----

query I rowsort
SELECT ALL col2 + + - ( - 55 ) FROM tab2
----
113
78
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 * - col0 + - col1 + col0 col2, - ( 86 ) AS col1 FROM tab1
----
-2360
-86
-3915
-86
-4233
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7009
SELECT ALL - 42 + SUM( CAST( - col0 AS SIGNED ) ) AS col2 FROM tab0
----
-241

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - 42 + SUM ( CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab0
----
-241

query I rowsort
SELECT col1 * col1 + 53 AS col0 FROM tab1
----
2262
249
78

query I rowsort
SELECT DISTINCT + 49 * - 2 * + col0 + - col2 + + 80 FROM tab2 AS cor0
----
-4451
-6232
-7328

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - col0 / + - col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT - MAX( - 37 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7014
SELECT - MAX ( - 37 ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT col2 + - + col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT col1 * 37 AS col1 FROM tab1
----
1739
185
518

query I rowsort
SELECT - ( - 96 ) AS col2 FROM tab0
----
96
96
96

query II rowsort
SELECT ALL + - col2, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL - - ( + 14 ) FROM tab0 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT - COUNT( * ) * - COUNT( + - col2 ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT - COUNT ( * ) * - COUNT ( + - col2 ) FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7021
SELECT DISTINCT - 33 DIV + COUNT( DISTINCT + 47 ) col2, + COUNT( * ) + + 5 * + MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
-33
-372

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7021
SELECT DISTINCT - 33 / + COUNT ( DISTINCT + 47 ) col2, + COUNT ( * ) + + 5 * + MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
-33
-372

query I rowsort
SELECT ALL + - ( + - col0 ) * + 67 FROM tab0 AS cor0
----
1005
5829
6499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7023
SELECT DISTINCT COUNT( ALL - - col2 ) DIV - - 87 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT COUNT ( ALL - - col2 ) / - - 87 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col0 * - 80 FROM tab2 WHERE NOT - ( 72 ) + 72 IS NULL
----
3680
5120
6000

query I rowsort
SELECT DISTINCT - 48 * + col1 FROM tab1
----
-2256
-240
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT ALL - 14 * - col2 * - col0 * + + CAST( + ( + col0 ) AS SIGNED ) FROM tab0
----
-1059660
-13040874
-148050

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL - 14 * - col2 * - col0 * + + CAST ( + ( + col0 ) AS INTEGER ) FROM tab0
----
-1059660
-13040874
-148050

query II rowsort
SELECT col2 AS col1, 30 AS col1 FROM tab0
----
10
30
47
30
99
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7028
SELECT 20 DIV + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7028
SELECT 20 / + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT + + col1 FROM tab0 WHERE NOT + col2 * + col0 / + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7029
SELECT + + col1 FROM tab0 WHERE NOT + col2 * + col0 / + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col0 FROM tab2
----
43
43
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 59 * + + ( - + col0 ) ) <= col2 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7032
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * - col1 * + + 43 * 87 * 7 = NULL
----

skipif mysql # not compatible
query III rowsort label-7032
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * - col1 * + + 43 * 87 * 7 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT - + MIN( DISTINCT - 29 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7033
SELECT DISTINCT - + MIN ( DISTINCT - 29 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE - - col1 + + 88 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE - - col1 + + 88 IS NULL
----
0

query I rowsort
SELECT + + col1 + - - ( col0 ) * - 98 AS col0 FROM tab2 AS cor0
----
-4457
-6195
-7283

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 BETWEEN + + 96 AND + 61 - + + col2
----

query I rowsort
SELECT - 66 + ( - 19 ) AS col1 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL MAX( col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT col1 + - - col1 AS col1 FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT + col0 + col0 DIV - col2 col2 FROM tab0
----
15
79
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7040
SELECT + col0 + col0 / - col2 col2 FROM tab0
----
15
79
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT ALL 4 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL 4 / - col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT 19 + COUNT( * ) AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-7042
SELECT 19 + COUNT ( * ) AS col1 FROM tab0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 + - col2 col0 FROM tab0
----
-113
-24
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT + - col1 + + col1 + - col1 - - col0 + + col0 * col1 FROM tab2 WHERE - + col0 / - - 86 * CAST( NULL AS SIGNED ) + + col0 IS NULL
----
2341
4915
5033

skipif mysql # not compatible
query I rowsort label-7044
SELECT + - col1 + + col1 + - col1 - - col0 + + col0 * col1 FROM tab2 WHERE - + col0 / - - 86 * CAST ( NULL AS INTEGER ) + + col0 IS NULL
----
2341
4915
5033

query I rowsort
SELECT + 23 * - col2 * - - 15 AS col0 FROM tab2
----
-13800
-20010
-7935

query II rowsort
SELECT - col0 AS col2, - 39 * + col1 * col1 FROM tab1
----
-51
-7644
-85
-975
-91
-86151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 77 ) + - col0, col1 col1 FROM tab0 AS cor0
----
-164
21
-174
1
-92
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT DISTINCT SUM( ALL 98 ) AS col1 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT SUM ( ALL 98 ) AS col1 FROM tab1 AS cor0
----
294

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + 89 - - - ( + col1 ) FROM tab1 AS cor0
----
42
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT - 91 - ( - COUNT( * ) ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7051
SELECT - 91 - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT - COUNT( * ) * MAX( + + col0 ) + + + 8 FROM tab2 AS cor0
----
-217

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT - COUNT ( * ) * MAX ( + + col0 ) + + + 8 FROM tab2 AS cor0
----
-217

query I rowsort
SELECT ALL col2 * - + col2 * + col1 * 1 FROM tab0 AS cor0
----
-178929
-2100
-9801

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT DISTINCT + - col0 / - - CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT + - col0 / - - CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 23 + + + col2 - + col0 * 86 * - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( + + col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT - MAX( - - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT - MAX ( - - col0 ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT col0 + + + col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col2 * - 88 AS col0 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT + + 60 * + col0 AS col2 FROM tab1 AS cor0
----
3060
5100
5460

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT 79 < + 35
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT MIN( col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT MIN ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7064
SELECT DISTINCT col0 * CAST( + col2 AS SIGNED ), + 9 AS col0 FROM tab0 cor0
----
705
9
870
9
9603
9

skipif mysql # not compatible
query II rowsort label-7064
SELECT DISTINCT col0 * CAST ( + col2 AS INTEGER ), + 9 AS col0 FROM tab0 cor0
----
705
9
870
9
9603
9

query I rowsort
SELECT + + col1 + - - 24 FROM tab2 AS cor0
----
101
75
91

query III rowsort
SELECT * FROM tab0 WHERE col1 >= col0
----
15
81
47

query I rowsort
SELECT DISTINCT + 70 + - 81 + col2 + + + col0 * col0 FROM tab1 AS cor0
----
2686
7273
8338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - col0 col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col2 * + 37 * - + col2 * + col0 * col1 FROM tab2 AS cor0
----
-291737600
-45918258
-625451700

query I rowsort
SELECT DISTINCT - - col2 * - + col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT DISTINCT - + CAST( + 70 AS SIGNED ) col0 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7071
SELECT DISTINCT - + CAST ( + 70 AS INTEGER ) col0 FROM tab1 AS cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7073
SELECT DISTINCT 58 AS col2, col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-7073
SELECT DISTINCT 58 AS col2, col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
58
NULL

query I rowsort
SELECT DISTINCT - + col1 * - - col2 + + col1 + + col0 FROM tab0 AS cor0
----
-1
-102
-3711

query I rowsort
SELECT DISTINCT - + 44 + - + col1 - + + col2 FROM tab2 cor0
----
-118
-161
-169

query I rowsort
SELECT + 25 AS col1 FROM tab2 cor0 WHERE 44 IS NOT NULL
----
25
25
25

query I rowsort
SELECT + 10 - col0 FROM tab0 WHERE NULL IS NULL
----
-5
-77
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7078
SELECT ALL - 54 DIV + MIN( 83 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - 54 / + MIN ( 83 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 + - 63 FROM tab1
----
-110
-68
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT MAX( + col2 ) + - COUNT( * ) + + - 20 * - COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-7080
SELECT MAX ( + col2 ) + - COUNT ( * ) + + - 20 * - COUNT ( * ) FROM tab1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7081
SELECT * FROM tab0 WHERE + col0 >= CAST( col2 AS SIGNED ) * - - col2 + col1
----

skipif mysql # not compatible
query III rowsort label-7081
SELECT * FROM tab0 WHERE + col0 >= CAST ( col2 AS INTEGER ) * - - col2 + col1
----

query I rowsort
SELECT ALL 62 * - + col2 + col2 + + 50 AS col1 FROM tab2
----
-1353
-2390
-3488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT CAST( 43 AS SIGNED ) + - 27 FROM tab1
----
16
16
16

skipif mysql # not compatible
query I rowsort label-7083
SELECT CAST ( 43 AS INTEGER ) + - 27 FROM tab1
----
16
16
16

query I rowsort
SELECT DISTINCT col2 + - 18 FROM tab0
----
-8
29
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7085
SELECT - col2 AS col1, CAST( NULL AS SIGNED ) * ( + col0 ) * - col0 * + - 38, 92 + - col2 AS col1 FROM tab1
----
9 values hashing to 7f7cddec838d4fd9afef2a1f9a3b8420

skipif mysql # not compatible
query III rowsort label-7085
SELECT - col2 AS col1, CAST ( NULL AS INTEGER ) * ( + col0 ) * - col0 * + - 38, 92 + - col2 AS col1 FROM tab1
----
9 values hashing to 7f7cddec838d4fd9afef2a1f9a3b8420

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 90 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7087
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE CAST( col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE CAST ( col1 AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 98 * col1 * + - col2 FROM tab1 AS cor0
----
-131712
-28910
-313208

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + + COUNT( DISTINCT + - col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7089
SELECT + + COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - + 6 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - AVG ( + 59 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 78 * - col0 * + 91 FROM tab2
----
-326508
-454272
-532350

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT MAX( ALL + col1 ) + MIN( ALL - + col2 ) + + 44 AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-7094
SELECT MAX ( ALL + col1 ) + MIN ( ALL - + col2 ) + + 44 AS col0 FROM tab2
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 73 * - col2 * col2 AS col1 FROM tab1
----
-254113
-337552
-672768

query I rowsort
SELECT ALL ( + 19 ) AS col1 FROM tab1
----
19
19
19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 > - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT COUNT( * ) * 90 * COUNT( * ) FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
810

skipif mysql # not compatible
query I rowsort label-7099
SELECT COUNT ( * ) * 90 * COUNT ( * ) FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT - COUNT( * ) DIV - COUNT( + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7100
SELECT - COUNT ( * ) / - COUNT ( + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT + SUM( - + col2 ) AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-121
-3

skipif mysql # not compatible
query II rowsort label-7101
SELECT + SUM ( - + col2 ) AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-121
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT DISTINCT - col1 DIV - + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - col1 / - + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7103
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 70 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 72 * col2 + - col0 + - col0 + 2 col2, - 33 AS col2 FROM tab0 AS cor0
----
3356
-33
548
-33
6936
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT MAX( DISTINCT + - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7107
SELECT MAX ( DISTINCT + - col2 ) AS col1 FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + - 38 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 90 col2, 50 - - col1 + - 33 FROM tab2 WHERE + + 71 > col0 / + - col1
----
-90
68
-90
84
-90
94

query I rowsort
SELECT DISTINCT + col0 + + - col0 * - ( 17 ) * col2 AS col0 FROM tab1
----
105287
83283
85340

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - + col0 * + 5 * - col2 + - col1, + col1 )
----

query II rowsort
SELECT DISTINCT + col1, - 98 * - + 89 FROM tab1 AS cor0
----
14
8722
47
8722
5
8722

query I rowsort
SELECT ALL + - 38 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 2, - 38, + col1, + col2 )
----

query I rowsort
SELECT ALL + 9 * + - col2 AS col1 FROM tab1
----
-531
-612
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT COUNT( * ) * 55 * + 86 FROM tab0 AS cor0
----
14190

skipif mysql # not compatible
query I rowsort label-7117
SELECT COUNT ( * ) * 55 * + 86 FROM tab0 AS cor0
----
14190

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT + COUNT( 56 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7118
SELECT + COUNT ( 56 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 * - + col0 * - col1 AS col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7120
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - col0 + + col1 / - CAST( NULL AS SIGNED ) * + - col2
----

skipif mysql # not compatible
query III rowsort label-7120
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - col0 + + col1 / - CAST ( NULL AS INTEGER ) * + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 17 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT - - MIN( + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7122
SELECT - - MIN ( + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col0 FROM tab1 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT col0 + + 5 FROM tab0
----
102
20
92

query I rowsort
SELECT ALL + col0 + - - col2 AS col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7127
SELECT + col0 col1, - CAST( col2 AS SIGNED ) DIV + col0 AS col0 FROM tab0
----
15
-3
87
0
97
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7127
SELECT + col0 col1, - CAST ( col2 AS INTEGER ) / + col0 AS col0 FROM tab0
----
15
-3
87
0
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7128
SELECT 16 * col1 + col0, + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1147
-75
1296
-64
862
-46

skipif mysql # not compatible
query II rowsort label-7128
SELECT 16 * col1 + col0, + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1147
-75
1296
-64
862
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + - + 48 - 63 + col1 FROM tab2 AS cor0
----
-9
23
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT DISTINCT + + ( - + COUNT( * ) ) col2 FROM tab0 WHERE - + 80 + - + 24 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7131
SELECT DISTINCT + + ( - + COUNT ( * ) ) col2 FROM tab0 WHERE - + 80 + - + 24 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - col1 * + col2 + + 30 FROM tab1
----
-1314
-265
-3166

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7133
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-7133
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT + COUNT( * ) + ( + + 10 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT + COUNT ( * ) + ( + + 10 ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT - col2 * + 84 - col1 FROM tab0 AS cor0
----
-4029
-8317
-861

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 56 - + + col0 AS col1 FROM tab1 AS cor0
----
-29
-35
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col2 FROM tab0 AS cor0
----
35

query I rowsort
SELECT - 65 - - col1 * + 41 FROM tab2 AS cor0
----
2026
2682
3092

query I rowsort
SELECT DISTINCT 74 * + 65 * + 86 AS col2 FROM tab2
----
413660

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT 33 AS col2, COUNT( * ) AS col0 FROM tab1, tab2 AS cor0 WHERE - - 46 < - - 72
----
33
9

skipif mysql # not compatible
query II rowsort label-7141
SELECT 33 AS col2, COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0 WHERE - - 46 < - - 72
----
33
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - col2 col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT - 94 * + + COUNT( * ) AS col2 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-7143
SELECT - 94 * + + COUNT ( * ) AS col2 FROM tab1
----
-282

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + 67 ) + 87 BETWEEN + - col1 - col1 AND - ( + - col2 ) / - col2 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 36 AS col1 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT SUM( ALL + 88 ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-7146
SELECT SUM ( ALL + 88 ) FROM tab2
----
264

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL ( + MIN( ALL 34 ) ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL ( + MIN ( ALL 34 ) ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT ALL + + 16 AS col1 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT + COUNT( ALL col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT + COUNT ( ALL col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT + - col0 * - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT 33 * MAX( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
3003

skipif mysql # not compatible
query I rowsort label-7152
SELECT 33 * MAX ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 79, - col1 * + col2 col2 FROM tab1 AS cor0
----
-79
-1344
-79
-295
-79
-3196

query I rowsort
SELECT - AVG ( ALL - 14 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 >= + col0 / + - ( + col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - col0 + col1 + - col0 < + 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7157
SELECT DISTINCT COUNT( * ) * - MAX( + 75 ) AS col1, 72 FROM tab0
----
-225
72

skipif mysql # not compatible
query II rowsort label-7157
SELECT DISTINCT COUNT ( * ) * - MAX ( + 75 ) AS col1, 72 FROM tab0
----
-225
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT + CAST( NULL AS SIGNED ) + 65 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT + CAST ( NULL AS INTEGER ) + 65 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 + - - col2 AS col0 FROM tab2
----
105
70
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7160
SELECT DISTINCT col2 + + col1 + col1 DIV + col0 AS col2 FROM tab0
----
100
133
31

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT col2 + + col1 + col1 / + col0 AS col2 FROM tab0
----
100
133
31

query I rowsort
SELECT - col0 + - + col1 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + ( + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 6 AS col0, ( + col1 ) col2 FROM tab1
----
6
14
6
47
6
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7164
SELECT ( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7164
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL ( + - col2 ) - col0 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7166
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 70 - col1 + - col1 BETWEEN col2 * + + CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-7166
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 70 - col1 + - col1 BETWEEN col2 * + + CAST ( NULL AS INTEGER ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL - MAX( ALL - ( + - col1 ) ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL - MAX ( ALL - ( + - col1 ) ) FROM tab1 cor0
----
-47

query II rowsort
SELECT 52, col0 AS col1 FROM tab1 AS cor0
----
52
51
52
85
52
91

query I rowsort
SELECT ALL col0 * - col1 - - col1 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * - - col1 NOT BETWEEN - col2 AND 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL - - MIN( ALL - 60 ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL - - MIN ( ALL - 60 ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + 42 * - col0 FROM tab2 AS cor0
----
-1932
-2688
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT DISTINCT col2 DIV col1 * - - 35 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT col2 / col1 * - - 35 FROM tab2
----
0

query I rowsort
SELECT - 3 * + + 91 FROM tab2
----
-273
-273
-273

query I rowsort
SELECT ALL + 0 FROM tab0 WHERE NOT ( + col0 + + - col0 * - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 FROM tab1 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 8 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 / + 61 BETWEEN - + ( + col1 ) + + - ( + + col0 ) * - - col2 + + 82 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7179
SELECT ALL - 81 * - ( + + col1 ) + - col0, + CAST( + + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
4085
23
5352
58
6173
40

skipif mysql # not compatible
query II rowsort label-7179
SELECT ALL - 81 * - ( + + col1 ) + - col0, + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
4085
23
5352
58
6173
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT ALL - - ( - COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL - - ( - COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT - COUNT( * ) * + 85 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-7181
SELECT - COUNT ( * ) * + 85 FROM tab2 AS cor0
----
-255

onlyif mysql # DIV for integer division: 
query II rowsort label-7182
SELECT col2 * + col0 DIV + col0 AS col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-7182
SELECT col2 * + col0 / + col0 AS col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT - col1 * - + 15 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT - 46 DIV + 88 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7184
SELECT - 46 / + 88 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( 37 ) * + 63 * - col2 - - 77 AS col0 FROM tab2 AS cor0
----
-135121
-53536
-93163

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * 26 AS col0 FROM tab0 cor0
----
-1222
-2574
-260

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7188
SELECT CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT CAST ( NULL AS REAL ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7189
SELECT ALL - 88 * + CAST( - + 5 AS SIGNED ) * + COUNT( * ) + - + MIN( DISTINCT + 91 ) FROM tab2 AS cor0
----
1229

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL - 88 * + CAST ( - + 5 AS INTEGER ) * + COUNT ( * ) + - + MIN ( DISTINCT + 91 ) FROM tab2 AS cor0
----
1229

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL 64 + - - 39 * + + COUNT( * ) FROM tab0
----
181

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL 64 + - - 39 * + + COUNT ( * ) FROM tab0
----
181

query I rowsort
SELECT DISTINCT - 73 * - - col2 * - - col2 * + 85 + col2 FROM tab2
----
-20873562
-3282422
-9927960

query I rowsort
SELECT DISTINCT + col2 + + + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT - col1 * 92 + - col0 AS col1 FROM tab0 AS cor0
----
-189
-2019
-7467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 * - 82 + 79 + 65 col2 FROM tab1 AS cor0
----
-6088

query II rowsort
SELECT ALL 49, col0 FROM tab2 cor0 WHERE NOT + 78 + - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 55 AS col2 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL - 6 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL - 6 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - col1 * + col0 col2 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT 11 - - col0 FROM tab2 cor0
----
57
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7200
SELECT COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - - ( + + col2 ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL - + 21 AS col1 FROM tab0 AS cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( 95 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 15 + + 81 IS NOT NULL
----

query I rowsort
SELECT + 20 * + + col1 AS col1 FROM tab2
----
1020
1340
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT 85 * + - col0 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT DISTINCT MAX( - - col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT MAX ( - - col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT ( + col2 ) * + ( - ( + col1 ) ) AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT DISTINCT 66 * + COUNT( * ) AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT 66 * + COUNT ( * ) AS col1 FROM tab0
----
198

query I rowsort
SELECT + + 7 * + col0 FROM tab0 AS cor0
----
105
609
679

query I rowsort
SELECT DISTINCT - 34 * ( + 57 ) + 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1856

query I rowsort
SELECT DISTINCT 25 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
25

query I rowsort
SELECT ALL 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7215
SELECT DISTINCT + col0 * - + CAST( NULL AS SIGNED ) + + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT + col0 * - + CAST ( NULL AS INTEGER ) + + - col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT ALL - 4 DIV - + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL - 4 / - + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 92 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * + - col0 * 42 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT DISTINCT + CAST( + 31 AS SIGNED ) * ( col1 ) FROM tab0 cor0
----
2511
31
651

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT + CAST ( + 31 AS INTEGER ) * ( col1 ) FROM tab0 cor0
----
2511
31
651

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT ALL + 34 DIV + 76 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL + 34 / + 76 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - 36
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE col1 * - col2 + - - col1 - 26 * - - 16 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + 31 * + - ( + 60 ) * + 29 AS col1 FROM tab1 AS cor0
----
-53940

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT 36 * - + col0 + + col0 + + col0 * - - col1 + - col2 * - col0 DIV col0 AS col1 FROM tab2
----
2458
2728
759

skipif mysql # not compatible
query I rowsort label-7223
SELECT 36 * - + col0 + + col0 + + col0 * - - col1 + - col2 * - col0 / col0 AS col1 FROM tab2
----
2458
2728
759

query I rowsort
SELECT DISTINCT + col2 - + 73 FROM tab0
----
-26
-63
26

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= col0 * - - col2 / + col1 + + 99
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 54 * - col1 * + col0 > - ( - 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( col2 ) - + col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT DISTINCT + COUNT( - - col2 ) FROM tab0 AS cor0 WHERE NOT + 79 - - + col2 * - CAST( NULL AS SIGNED ) / + 63 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT + COUNT ( - - col2 ) FROM tab0 AS cor0 WHERE NOT + 79 - - + col2 * - CAST ( NULL AS INTEGER ) / + 63 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT + COUNT( * ) - + - 62 AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7229
SELECT + COUNT ( * ) - + - 62 AS col1 FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT 90 * - 48 + COUNT( * ) FROM tab0
----
-4317

skipif mysql # not compatible
query I rowsort label-7230
SELECT 90 * - 48 + COUNT ( * ) FROM tab0
----
-4317

query II rowsort
SELECT DISTINCT - - 38 AS col1, 66 + col1 * col2 AS col2 FROM tab0 cor0
----
38
165
38
276
38
3873

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT + COUNT( * ) AS col0, + COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7232
SELECT + COUNT ( * ) AS col0, + COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT ALL + ( + CAST( col1 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7233
SELECT ALL + ( + CAST ( col1 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7234
SELECT - 35, 73 * - COUNT( * ) + + - 65 AS col2 FROM tab2 AS cor0
----
-35
-284

skipif mysql # not compatible
query II rowsort label-7234
SELECT - 35, 73 * - COUNT ( * ) + + - 65 AS col2 FROM tab2 AS cor0
----
-35
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT + - MAX( ALL - 48 ) AS col0 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7235
SELECT + - MAX ( ALL - 48 ) AS col0 FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL ( + 2 ) FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab2 WHERE NOT + 38 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + + col0 AS col0 FROM tab1 WHERE + + 47 * col2 IS NOT NULL
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( + col0 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT ALL 12 DIV col0 + 2 FROM tab2 WHERE NOT - col1 IS NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL 12 / col0 + 2 FROM tab2 WHERE NOT - col1 IS NULL
----
2
2
2

query I rowsort
SELECT ALL - col1 * + - col2 * + - col0 / col0 * - 99 + + + col2 AS col1 FROM tab0 AS cor0 WHERE NULL < + col0
----

query I rowsort
SELECT ( - 88 ) FROM tab0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * - col2 col0 FROM tab2
----
-1610
-2800
-4060

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2, col1, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT DISTINCT 9 DIV - + col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT 9 / - + col2 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7246
SELECT - col1 DIV col0 * col0 FROM tab0 cor0
----
-75
0
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT - col1 / col0 * col0 FROM tab0 cor0
----
-75
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - + 81 AS col0 FROM tab0 cor0
----
-81
-81
-81

query II rowsort
SELECT DISTINCT col2, col2 - col1 * - + 54 AS col0 FROM tab2 AS cor0
----
23
2777
40
4198
58
3676

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL - - MIN( DISTINCT 84 ) AS col1 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - - MIN ( DISTINCT 84 ) AS col1 FROM tab2 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col1, + col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query II rowsort
SELECT ALL - col1, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab2 WHERE NULL > + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 <> + + 1 * 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + + col1 - - 7 FROM tab0
----
106
217
3814

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT 41 - + 84 * - COUNT( * ) FROM tab1 AS cor0
----
293

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT 41 - + 84 * - COUNT ( * ) FROM tab1 AS cor0
----
293

query I rowsort
SELECT DISTINCT col1 * + + 6 FROM tab1
----
282
30
84

query I rowsort
SELECT DISTINCT ( - 27 ) AS col2 FROM tab1, tab2 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT - SUM( - 84 ) AS col0 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - SUM ( - 84 ) AS col0 FROM tab1
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - + MIN( 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7261
SELECT - + MIN ( 52 ) FROM tab0 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT - col2 DIV - + col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7262
SELECT - col2 / - + col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7263
SELECT COUNT( * ) DIV + 55 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7263
SELECT COUNT ( * ) / + 55 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 92 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT ( ( col2 ) ) * - 97, - col2 AS col2 FROM tab2
----
-2231
-23
-3880
-40
-5626
-58

query I rowsort
SELECT ALL - ( 37 ) * - - 97 FROM tab2
----
-3589
-3589
-3589

query I rowsort
SELECT 85 * + col2 AS col1 FROM tab1
----
5015
5780
8160

query II rowsort
SELECT ALL + col1, + col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT MAX( - 69 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT MAX ( - 69 ) FROM tab0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 82 col0, 86 + - col2 FROM tab2
----
-82
28
-82
46
-82
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT + SUM( DISTINCT + 23 ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT + SUM ( DISTINCT + 23 ) AS col0 FROM tab1
----
23

query III rowsort
SELECT * FROM tab0 WHERE - 59 * + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7273
SELECT DISTINCT - 34 + - 64 AS col2, CAST( 59 AS SIGNED ) AS col1 FROM tab1
----
-98
59

skipif mysql # not compatible
query II rowsort label-7273
SELECT DISTINCT - 34 + - 64 AS col2, CAST ( 59 AS INTEGER ) AS col1 FROM tab1
----
-98
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL MIN( - - 92 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL MIN ( - - 92 ) FROM tab1 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT COUNT( * ) + + MIN( + ( - col1 ) ) * - 69 AS col1 FROM tab1 AS cor0
----
3246

skipif mysql # not compatible
query I rowsort label-7275
SELECT COUNT ( * ) + + MIN ( + ( - col1 ) ) * - 69 AS col1 FROM tab1 AS cor0
----
3246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 + - + col2 col2 FROM tab2
----
-17
-34
-52

query I rowsort
SELECT + AVG ( DISTINCT - 60 ) * - + 42 FROM tab1 WHERE col2 = + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT ALL 67 col0, + COUNT( * ) AS col0 FROM tab1
----
67
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7278
SELECT ALL 67 col0, + COUNT ( * ) AS col0 FROM tab1
----
67
3

query I rowsort
SELECT DISTINCT + ( + col2 ) * - 43 FROM tab0
----
-2021
-4257
-430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + 24 col0 FROM tab2
----
-1
16
34

query I rowsort
SELECT ALL col2 + - 44 AS col1 FROM tab2
----
-21
-4
14

query II rowsort
SELECT ALL + 72, + col1 AS col2 FROM tab1 AS cor0
----
72
14
72
47
72
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT ALL CAST( + 50 AS SIGNED ) col0 FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7284
SELECT ALL CAST ( + 50 AS INTEGER ) col0 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT col2 + 0 * col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - SUM( + col0 ) + - 22 AS col2 FROM tab0
----
-221

skipif mysql # not compatible
query I rowsort label-7286
SELECT - SUM ( + col0 ) + - 22 AS col2 FROM tab0
----
-221

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 / 5 AND NULL
----

query I rowsort
SELECT ( - 56 ) AS col2 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT ALL 65 + col2 * col1 FROM tab1
----
1409
3261
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT AVG ( DISTINCT - col1 ) * + COUNT( * ) AS col1 FROM tab1 WHERE ( - 15 * - col2 + col0 * + col2 ) BETWEEN col1 + + col1 AND col2 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT AVG ( DISTINCT - col1 ) * + COUNT ( * ) AS col1 FROM tab1 WHERE ( - 15 * - col2 + col0 * + col2 ) BETWEEN col1 + + col1 AND col2 * + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ( SUM( 84 ) ) FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-7291
SELECT ( SUM ( 84 ) ) FROM tab1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - col0 * 89 NOT IN ( 27 )
----
3

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - col0 * 89 NOT IN ( 27 )
----
3

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE + 57 / - col1 + + col0 BETWEEN ( NULL ) AND + 56 + col0
----

query I rowsort
SELECT + col2 - - 66 AS col2 FROM tab1
----
125
134
162

query III rowsort
SELECT ALL * FROM tab0 WHERE 2 > col2
----

query I rowsort
SELECT ALL col0 + + col1 * - 68 FROM tab2
----
-3422
-4481
-5172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT ALL 84 * AVG ( - col0 ) + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL 84 * AVG ( - col0 ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 + col2 * col0 AS col2 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT ALL - ( col0 ) FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + - 30 * 35 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 + + 76 FROM tab2
----
-2270
-4852
-4949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE NOT NULL IN ( - 46 / col2 - - col0 )
----

query I rowsort
SELECT 43 + col1 AS col2 FROM tab2
----
110
120
94

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN - 66 AND ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT ALL col0 FROM tab0 WHERE NOT ( - ( col0 ) + 90 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL col0 FROM tab0 WHERE NOT ( - ( col0 ) + 90 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - col0
----

query I rowsort
SELECT DISTINCT col0 / 19 AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( + ( col0 ) * 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT SUM( ALL col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7308
SELECT SUM ( ALL col1 ) AS col0 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + MAX( col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7309
SELECT + MAX ( col1 ) AS col2 FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT IN ( + 65 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7311
SELECT ALL - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - MAX ( DISTINCT CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col0 - 90 AS col2 FROM tab1
----
-39
-5
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 WHERE NOT NULL > - ( + col1 ) * col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 62 ) IN ( 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * col1 IN ( col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT 18 * - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7317
SELECT 18 * - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT SUM( - 27 ) - COUNT( * ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT SUM ( - 27 ) - COUNT ( * ) FROM tab2 AS cor0
----
-84

query I rowsort
SELECT DISTINCT 60 * 18 FROM tab1 AS cor0
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL + COUNT( ALL 2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + COUNT ( ALL 2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL + MAX( DISTINCT col0 ) * + 71 FROM tab1 AS cor0
----
6461

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + MAX ( DISTINCT col0 ) * + 71 FROM tab1 AS cor0
----
6461

query I rowsort
SELECT - 35 - 16 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7323
SELECT - + ( - MAX( DISTINCT - col2 ) ) - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT - + ( - MAX ( DISTINCT - col2 ) ) - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) = NULL
----

query I rowsort
SELECT - 30 + + + col2 FROM tab0
----
-20
17
69

query I rowsort
SELECT + col2 - - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT DISTINCT + ( + COUNT( ALL 39 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT + ( + COUNT ( ALL 39 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT COUNT( * ) * - COUNT( * ) + SUM( ALL 96 + col1 ) FROM tab0
----
382

skipif mysql # not compatible
query I rowsort label-7328
SELECT COUNT ( * ) * - COUNT ( * ) + SUM ( ALL 96 + col1 ) FROM tab0
----
382

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT col0 * 11 * ( col0 DIV - col2 ) + + col0 AS col2 FROM tab0
----
-7569
15
97

skipif mysql # not compatible
query I rowsort label-7329
SELECT col0 * 11 * ( col0 / - col2 ) + + col0 AS col2 FROM tab0
----
-7569
15
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col2 FROM tab2
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 44 col2 FROM tab2 AS cor0 WHERE NOT ( + 38 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT + 91 DIV - + col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT + 91 / - + col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT - ( - 59 ) * col0 AS col0 FROM tab2 AS cor0
----
2714
3776
4425

query I rowsort
SELECT ALL col1 - + col2 AS col1 FROM tab1 WHERE NOT ( - 32 ) BETWEEN + col0 AND NULL
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT + MAX( ALL + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT + MAX ( ALL + + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + SUM( DISTINCT - - col1 ) AS col0 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7336
SELECT + SUM ( DISTINCT - - col1 ) AS col0 FROM tab2 cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 < ( col2 / col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 0 + - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 89 * + col2
----

query I rowsort
SELECT DISTINCT + 54 * + col1 * - - col0 FROM tab2 AS cor0
----
126684
266112
271350

query I rowsort
SELECT DISTINCT + - 79 * 30 FROM tab1 AS cor0
----
-2370

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) BETWEEN ( col2 ) AND ( - col1 )
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT + + col1 DIV + - col1 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-3482
-4625
-9217

skipif mysql # not compatible
query I rowsort label-7343
SELECT + + col1 / + - col1 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-3482
-4625
-9217

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7344
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( col0 AS SIGNED ) * col2 - + col1 * 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7344
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( col0 AS INTEGER ) * col2 - + col1 * 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0 AS cor0 WHERE + col0 + 81 IS NULL OR NOT + col1 BETWEEN ( col0 * col1 + + col0 ) AND NULL
----
12

query I rowsort
SELECT + col1 + + + col2 * + 37 AS col1 FROM tab2 AS cor0
----
1557
2213
902

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL 81 * - ( - - COUNT( * ) ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL 81 * - ( - - COUNT ( * ) ) FROM tab0
----
-243

query I rowsort
SELECT - col2 * col0 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT MAX( DISTINCT 57 ) * COUNT( * ) + + COUNT( * ) col0 FROM tab1
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7349
SELECT MAX ( DISTINCT 57 ) * COUNT ( * ) + + COUNT ( * ) col0 FROM tab1
----
174

query I rowsort
SELECT ALL + col0 + + col2 * - + 43 FROM tab1
----
-2452
-2833
-4077

query I rowsort
SELECT ( + col0 ) * + 23 + - col1 * + col0 + col2 AS col0 FROM tab2
----
-1265
-3242
-3416

query I rowsort
SELECT 71 FROM tab2 WHERE NOT + col0 / - + 35 * + col2 IS NULL
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) + + 46 * + 32 / col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) + + 46 * + 32 / col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT 90 DIV - + COUNT( * ) + + 85 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7354
SELECT 90 / - + COUNT ( * ) + + 85 FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT ALL - 84 + + col2 * + col1 + + CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL - 84 + + col2 * + col1 + + CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 69 ) FROM tab2
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT 42 * - COUNT( + 55 / col1 ) FROM tab1 WHERE NULL <= ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7357
SELECT 42 * - COUNT ( + 55 / col1 ) FROM tab1 WHERE NULL <= ( + - col1 )
----
0

query I rowsort
SELECT ALL 2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7359
SELECT + col0 * col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / - ( 4 ) < ( + col2 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-7359
SELECT + col0 * col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - ( 4 ) < ( + col2 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL + MIN( ALL 25 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + MIN ( ALL 25 ) FROM tab1 AS cor0
----
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 90 >= ( + col1 ) )
----

query I rowsort
SELECT ALL - - 51 + - col0 AS col0 FROM tab0 AS cor0
----
-36
-46
36

query I rowsort
SELECT ALL - col1 + + - col2 * col1 FROM tab0
----
-100
-231
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7364
SELECT ALL * FROM tab2 WHERE 48 + + + col1 * - 63 NOT IN ( 87 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7364
SELECT ALL * FROM tab2 WHERE 48 + + + col1 * - 63 NOT IN ( 87 + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) - 27 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) - 27 FROM tab0
----
NULL

query I rowsort
SELECT col2 + - 92 AS col1 FROM tab2
----
-34
-52
-69

query I rowsort
SELECT DISTINCT + + 75 * col0 - col2 AS col2 FROM tab2 cor0
----
3427
4760
5567

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + 19
----

query I rowsort
SELECT DISTINCT + - col1 - + col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT - 26 - - MIN( - ( - 59 ) ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - 26 - - MIN ( - ( - 59 ) ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT DISTINCT + col1 DIV - 92 * 14 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT + col1 / - 92 * 14 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT + SUM( ALL - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT + SUM ( ALL - col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <= ( + 82 * + + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT - + COUNT( * ) col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7374
SELECT - + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + ( + - 38 ) + ( - col0 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7376
SELECT ALL * FROM tab0 WHERE NOT - + CAST( + - 93 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7376
SELECT ALL * FROM tab0 WHERE NOT - + CAST ( + - 93 AS INTEGER ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL BETWEEN ( NULL ) AND + ( col1 ) / col2 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL >= + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7379
SELECT ALL + 58, - COUNT( * ) AS col0 FROM tab2
----
58
-3

skipif mysql # not compatible
query II rowsort label-7379
SELECT ALL + 58, - COUNT ( * ) AS col0 FROM tab2
----
58
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( - + col0 ) < - + 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT CAST( + + 21 AS SIGNED ) AS col0 FROM tab1 cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-7381
SELECT CAST ( + + 21 AS INTEGER ) AS col0 FROM tab1 cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7382
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( + 15 AS SIGNED ) * + col1 + col1 + - + 69 + + col1 AND - col0
----

skipif mysql # not compatible
query III rowsort label-7382
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( + 15 AS INTEGER ) * + col1 + col1 + - + 69 + + col1 AND - col0
----

query I rowsort
SELECT ALL 54 * - - col2 FROM tab0 AS cor0
----
2538
5346
540

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( - + 56, 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7386
SELECT MAX( ALL ( CAST( NULL AS SIGNED ) ) ), + 31 col1 FROM tab1 AS cor0
----
NULL
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7386
SELECT MAX ( ALL ( CAST ( NULL AS INTEGER ) ) ), + 31 col1 FROM tab1 AS cor0
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + 35 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 28, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT + 35 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 28, col1 )
----
0

query II rowsort
SELECT - ( + - col2 ) AS col0, col1 AS col0 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT MIN( DISTINCT ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7389
SELECT MIN ( DISTINCT ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT + - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7390
SELECT + - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL + CAST( - + 56 AS SIGNED ) * - 29 * - - COUNT( * ) FROM tab1 AS cor0
----
4872

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + CAST ( - + 56 AS INTEGER ) * - 29 * - - COUNT ( * ) FROM tab1 AS cor0
----
4872

query III rowsort
SELECT * FROM tab0 WHERE col0 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 64 + + col0 FROM tab1
----
115
149
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT COUNT( * ) + - COUNT( * ) - 47 * - COUNT( * ) AS col1 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-7394
SELECT COUNT ( * ) + - COUNT ( * ) - 47 * - COUNT ( * ) AS col1 FROM tab1
----
141

query I rowsort
SELECT ALL 55 * + col0 + + col2 AS col0 FROM tab2 cor0
----
2553
3560
4183

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 13 + + + col1 + - col1 * + ( 43 ) * + col0 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT DISTINCT - - 57 DIV col1 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT - - 57 / col1 FROM tab1 AS cor0
----
1
11
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7398
SELECT DISTINCT + col1 DIV + - col1 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + col1 / + - col1 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT 99 DIV - col0 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7399
SELECT 99 / - col0 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7400
SELECT ALL + 42 * 28 + + COUNT( * ) DIV MIN( DISTINCT - + CAST( 59 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1176

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + 42 * 28 + + COUNT ( * ) / MIN ( DISTINCT - + CAST ( 59 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL 91 * - + 42 + + COUNT( * ) FROM tab2
----
-3819

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL 91 * - + 42 + + COUNT ( * ) FROM tab2
----
-3819

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT + + col1 - - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 - + 52 FROM tab2 AS cor0
----
-116
-127
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT DISTINCT + 58 - AVG ( + - 5 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT + 58 - AVG ( + - 5 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - + 84 - + col0 col1 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - - COUNT( * ) + - AVG ( ALL + 40 ) / + + 90 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7407
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + - AVG ( ALL + 40 ) / + + 90 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - MAX( 93 ) - - - COUNT( * ) col0 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7408
SELECT - MAX ( 93 ) - - - COUNT ( * ) col0 FROM tab2 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 4 AS col2 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL 27 * col0 AS col2 FROM tab2 WHERE NOT - ( - ( - col0 ) ) * col1 + 73 IS NULL
----
1242
1728
2025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7412
SELECT * FROM tab2 WHERE NOT + ( - col1 ) * + col2 * 45 * - CAST( NULL AS SIGNED ) > + col2
----

skipif mysql # not compatible
query III rowsort label-7412
SELECT * FROM tab2 WHERE NOT + ( - col1 ) * + col2 * 45 * - CAST ( NULL AS INTEGER ) > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT CAST( - 22 AS SIGNED ) FROM tab2
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-7413
SELECT CAST ( - 22 AS INTEGER ) FROM tab2
----
-22
-22
-22

query I rowsort
SELECT ALL + col1 / col1 FROM tab1 WHERE NOT + - 70 NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT DISTINCT col2 * CAST( ( - col1 ) AS SIGNED ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT col2 * CAST ( ( - col1 ) AS INTEGER ) FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7416
SELECT 76 DIV - + COUNT( * ) AS col0 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-7416
SELECT 76 / - + COUNT ( * ) AS col0 FROM tab2
----
-25

query I rowsort
SELECT - col1 / + - col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT ALL - 94 DIV - col0 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - 94 / - col0 AS col1 FROM tab2
----
1
1
2

query I rowsort
SELECT - ( 22 ) AS col1 FROM tab0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab1 WHERE NOT + 74 NOT IN ( - + 68, + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 1 + - 93 + + 36 + 5 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT ALL - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT - - COUNT( * ) col0 FROM tab2 AS cor0 WHERE + col2 NOT IN ( - col2 * col2 * + 5, + 28 + - - col0 + 43 - - 91 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7423
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE + col2 NOT IN ( - col2 * col2 * + 5, + 28 + - - col0 + 43 - - 91 )
----
3

query I rowsort
SELECT ALL - ( 42 ) AS col2 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7426
SELECT ALL CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7426
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - - col2, - ( + col2 ), + + col2 * + 44 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - - 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + col0 ) NOT BETWEEN - col2 + - ( col0 ) + col0 AND 25 - - + col0 / + col1
----
87
21
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 40 )
----

query I rowsort
SELECT - + 36 + - 43 * + - ( - col2 ) * - 3 * col0 AS col2 FROM tab2 AS cor0
----
136446
330204
561114

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT ALL + col1 + - col0 DIV + + 55 AS col2 FROM tab1 cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL + col1 + - col0 / + + 55 AS col2 FROM tab1 cor0
----
14
4
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7433
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 WHERE + + col2 * - CAST( - col1 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7433
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 WHERE + + col2 * - CAST ( - col1 AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT - col2 DIV col0 DIV - + ( col2 ) + + col2 AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7434
SELECT - col2 / col0 / - + ( col2 ) + + col2 AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT + 27 + - + 97 * col2 FROM tab2
----
-2204
-3853
-5599

query I rowsort
SELECT DISTINCT + col2 + + ( 32 ) + + 18 AS col2 FROM tab1
----
109
118
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 66 + + - 10 AS col0, + 60 col2 FROM tab2
----
56
60
56
60
56
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7438
SELECT DISTINCT + 33 + + 71 AS col0, 95 - - MAX( DISTINCT - col0 ) FROM tab2
----
104
49

skipif mysql # not compatible
query II rowsort label-7438
SELECT DISTINCT + 33 + + 71 AS col0, 95 - - MAX ( DISTINCT - col0 ) FROM tab2
----
104
49

query I rowsort
SELECT + col0 - 11 AS col1 FROM tab2 AS cor0
----
35
53
64

query I rowsort
SELECT 77 * - 73 - - - 93 FROM tab0 cor0
----
-5714
-5714
-5714

query I rowsort
SELECT 12 + + col1 FROM tab1
----
17
26
59

query I rowsort
SELECT + col1 + - - 36 FROM tab0
----
117
37
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 + - col0 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( - 58 - col1, + 14, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7445
SELECT DISTINCT 46 AS col1, col1 DIV - + col1 + - col0 col0 FROM tab0 AS cor0
----
46
-16
46
-88
46
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7445
SELECT DISTINCT 46 AS col1, col1 / - + col1 + - col0 col0 FROM tab0 AS cor0
----
46
-16
46
-88
46
-98

query I rowsort
SELECT + + col0 * col1 * col1 + col0 FROM tab2 AS cor0
----
119692
336750
379520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT + MIN( col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7448
SELECT + MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 * - 95 FROM tab2 AS cor0
----
-2185
-3800
-5510

query III rowsort
SELECT * FROM tab1 WHERE NOT + 99 = - - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT COUNT( ALL + - 99 ) * 51 + + 5 AS col0 FROM tab0
----
158

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT COUNT ( ALL + - 99 ) * 51 + + 5 AS col0 FROM tab0
----
158

query I rowsort
SELECT ALL col0 * - 70 FROM tab2
----
-3220
-4480
-5250

query I rowsort
SELECT + + 28 AS col2 FROM tab1 WHERE NOT - col0 * + + col0 + - col1 <= - 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 33 * - + col2 col2, col1 AS col1 FROM tab2
----
-1320
77
-1914
67
-759
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7455
SELECT DISTINCT col1, - col1 + - 15 FROM tab2 WHERE + + CAST( - col2 AS SIGNED ) IS NOT NULL
----
51
-66
67
-82
77
-92

skipif mysql # not compatible
query II rowsort label-7455
SELECT DISTINCT col1, - col1 + - 15 FROM tab2 WHERE + + CAST ( - col2 AS INTEGER ) IS NOT NULL
----
51
-66
67
-82
77
-92

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col2 * col2 * + - 44 + col0 + - - 80 * 46 NOT BETWEEN NULL AND + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT DISTINCT CAST( - COUNT( DISTINCT + 42 ) AS SIGNED ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT CAST ( - COUNT ( DISTINCT + 42 ) AS INTEGER ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - + ( + ( - 39 ) ) AS col0 FROM tab0 cor0
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT - ( CAST( + - COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7459
SELECT - ( CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL - MIN( ALL 4 ) AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - MIN ( ALL 4 ) AS col1 FROM tab2 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT - 64 + - col1 DIV - + 14 FROM tab0
----
-59
-63
-64

skipif mysql # not compatible
query I rowsort label-7461
SELECT - 64 + - col1 / - + 14 FROM tab0
----
-59
-63
-64

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query II rowsort label-7463
SELECT DISTINCT 75 AS col1, MAX( + col0 ) AS col0 FROM tab2
----
75
75

skipif mysql # not compatible
query II rowsort label-7463
SELECT DISTINCT 75 AS col1, MAX ( + col0 ) AS col0 FROM tab2
----
75
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT ALL + col1 + col0 AS col2 FROM tab0 cor0 WHERE NOT - 32 * 85 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7466
SELECT + COUNT( * ) AS col0, + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7466
SELECT + COUNT ( * ) AS col0, + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7467
SELECT + SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT DISTINCT + + 15 + - 90 * + - ( + 46 ) * col2 - + col0 DIV - - col0 FROM tab0 AS cor0
----
194594
409874
41414

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT + + 15 + - 90 * + - ( + 46 ) * col2 - + col0 / - - col0 FROM tab0 AS cor0
----
194594
409874
41414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT ( MIN( ALL CAST( + col2 AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7469
SELECT ( MIN ( ALL CAST ( + col2 AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + - ( - + 8 ) FROM tab0 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE - + col0 BETWEEN + ( - col2 ) AND + 50
----

query I rowsort
SELECT DISTINCT - 73 - - - col1 + + + 33 AS col1 FROM tab2
----
-107
-117
-91

query I rowsort
SELECT ALL col2 + + 69 - + ( col1 ) FROM tab0
----
167
35
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + + COUNT( + - 64 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + + COUNT ( + - 64 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT COUNT( - - 57 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7475
SELECT COUNT ( - - 57 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 51 * - + col0 FROM tab1
----
-2601
-4335
-4641

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT DISTINCT 4 + - - 55 AS col1, COUNT( 53 ) FROM tab2
----
59
3

skipif mysql # not compatible
query II rowsort label-7477
SELECT DISTINCT 4 + - - 55 AS col1, COUNT ( 53 ) FROM tab2
----
59
3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - - 14, - col2, col2, + ( + - 13 ) * col2 + col0 - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - - 14, - col2, col2, + ( + - 13 ) * col2 + col0 - - col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 2 ) col2, - 41 FROM tab0 AS cor0
----
-2
-41
-2
-41
-2
-41

query II rowsort
SELECT ALL + 95 * + - 77 AS col2, 90 AS col2 FROM tab0 cor0
----
-7315
90
-7315
90
-7315
90

query I rowsort
SELECT DISTINCT col1 * + + 49 + + col2 AS col0 FROM tab2 AS cor0
----
2522
3341
3813

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 1 / + col1 / col0
----

query II rowsort
SELECT 38 AS col0, - col2 * ( - 93 ) AS col1 FROM tab2
----
38
2139
38
3720
38
5394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col2 FROM tab0 WHERE NOT 87 + - - col1 NOT IN ( + col2 + - col1 )
----

query II rowsort
SELECT col2 AS col2, - col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT DISTINCT col1 DIV ( + 37 ) * + + 95 DIV - col1 AS col2 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT col1 / ( + 37 ) * + + 95 / - col1 AS col2 FROM tab0
----
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7488
SELECT + COUNT( * ) DIV 12 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7488
SELECT + COUNT ( * ) / 12 col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT ALL 43 DIV + col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL 43 / + col2 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7490
SELECT DISTINCT - - COUNT( * ) * + - COUNT( ALL CAST( + - col1 AS SIGNED ) ) + + 56 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT - - COUNT ( * ) * + - COUNT ( ALL CAST ( + - col1 AS INTEGER ) ) + + 56 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1
----

query II rowsort
SELECT col1, + col2 + col2 * - col1 * col1 AS col2 FROM tab0 cor0
----
1
0
21
-4400
81
-308320

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7493
SELECT * FROM tab1 WHERE + col0 * - col0 / + 89 NOT BETWEEN - - ( + + 59 ) * + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7493
SELECT * FROM tab1 WHERE + col0 * - col0 / + 89 NOT BETWEEN - - ( + + 59 ) * + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7494
SELECT DISTINCT COUNT( * ) + 23, COUNT( * ) AS col1 FROM tab1
----
26
3

skipif mysql # not compatible
query II rowsort label-7494
SELECT DISTINCT COUNT ( * ) + 23, COUNT ( * ) AS col1 FROM tab1
----
26
3

query I rowsort
SELECT ALL - 10 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT DISTINCT - CAST( + 68 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE col1 / - + col0 * - - col2 IS NOT NULL
----
-68

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - CAST ( + 68 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE col1 / - + col0 * - - col2 IS NOT NULL
----
-68

query I rowsort
SELECT DISTINCT - - 80 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT - COUNT( - + 73 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - COUNT ( - + 73 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT + - SUM( - ( + col1 ) ) AS col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT + - SUM ( - ( + col1 ) ) AS col1 FROM tab0 cor0
----
103

query I rowsort
SELECT - 29 + - 27 AS col1 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + ( + - 21 ) + - - col0 + + - col0 + + 60 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
2385
4967
5064

query II rowsort
SELECT DISTINCT - col2 * - col1 AS col0, + col2 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - MAX( ALL + + 98 ) FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-7503
SELECT - MAX ( ALL + + 98 ) FROM tab2
----
-98

query I rowsort
SELECT ALL + 39 + + col1 AS col2 FROM tab0
----
120
40
60

query I rowsort
SELECT 67 * 81 AS col0 FROM tab0
----
5427
5427
5427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT ALL - CAST( + ( + + col2 ) AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL - CAST ( + ( + + col2 ) AS INTEGER ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE ( - 61 * + col0 + - col1 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + - 99 AS col0 FROM tab2
----
-22
-32
-48

query I rowsort
SELECT ALL + col0 * col0 - - 54 AS col1 FROM tab1
----
2655
7279
8335

onlyif mysql # aggregate syntax: 
query II rowsort label-7510
SELECT ALL 34 + COUNT( ALL - + col1 ) AS col0, - COUNT( * ) * + 73 + 68 FROM tab1
----
37
-151

skipif mysql # not compatible
query II rowsort label-7510
SELECT ALL 34 + COUNT ( ALL - + col1 ) AS col0, - COUNT ( * ) * + 73 + 68 FROM tab1
----
37
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-7511
SELECT ALL - MIN( DISTINCT + 48 ) + + 84, - 98 AS col0 FROM tab0
----
36
-98

skipif mysql # not compatible
query II rowsort label-7511
SELECT ALL - MIN ( DISTINCT + 48 ) + + 84, - 98 AS col0 FROM tab0
----
36
-98

query III rowsort
SELECT * FROM tab1 WHERE + + 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - + 60 FROM tab0 cor0
----
-141
-61
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT ALL ( 96 ) - + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
28
37

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL ( 96 ) - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
28
37

query I rowsort
SELECT ALL + + 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL - COUNT( * ) + - + 88 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL - COUNT ( * ) + - + 88 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 8 col1 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT - MIN( DISTINCT - 91 ) FROM tab0 cor0
----
91

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - MIN ( DISTINCT - 91 ) FROM tab0 cor0
----
91

query II rowsort
SELECT - col1 AS col1, 63 FROM tab1 AS cor0
----
-14
63
-47
63
-5
63

query I rowsort
SELECT ALL - col2 * + + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - col1 ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7523
SELECT CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7524
SELECT 4 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
4
3

skipif mysql # not compatible
query II rowsort label-7524
SELECT 4 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
4
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7525
SELECT - CAST( NULL AS SIGNED ) * + 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT - CAST ( NULL AS INTEGER ) * + 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7526
SELECT + 96, MAX( DISTINCT - 55 ) * + 74 AS col0 FROM tab1 cor0
----
96
-4070

skipif mysql # not compatible
query II rowsort label-7526
SELECT + 96, MAX ( DISTINCT - 55 ) * + 74 AS col0 FROM tab1 cor0
----
96
-4070

query I rowsort
SELECT 30 * ( col2 ) FROM tab2 cor0
----
1200
1740
690

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE NOT - ( col0 ) > + + col1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - ( - col2 ) + + - 99 FROM tab0
----
-52
-89
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7531
SELECT - CAST( NULL AS DECIMAL ) / - 44 * CAST( NULL AS SIGNED ) AS col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7531
SELECT - CAST ( NULL AS REAL ) / - 44 * CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT 47 * + + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
423

skipif mysql # not compatible
query I rowsort label-7532
SELECT 47 * + + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - ( + col1 ) ) * col1 col1 FROM tab1 cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT - 60 + - 91 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT - 60 + - 91 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7535
SELECT DISTINCT col1 DIV + + col0 + + CAST( - + 86 AS SIGNED ) FROM tab2
----
-85
-86

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT col1 / + + col0 + + CAST ( - + 86 AS INTEGER ) FROM tab2
----
-85
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT 34 + 77 + - COUNT( * ) AS col2 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-7536
SELECT 34 + 77 + - COUNT ( * ) AS col2 FROM tab0
----
108

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
78

query I rowsort
SELECT + 36 * col2 AS col0 FROM tab1 AS cor0
----
2124
2448
3456

query I rowsort
SELECT ( - 18 ) FROM tab0 AS cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 51 FROM tab1 AS cor0
----
51
51
85
51
91
51

query II rowsort
SELECT DISTINCT col1 + + 7 * + col0 AS col0, + col0 * - col0 AS col1 FROM tab0 AS cor0
----
186
-225
630
-7569
680
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-7542
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= col2 * - col2
----
0

query I rowsort
SELECT ALL + + 50 - col1 FROM tab2 AS cor0
----
-1
-17
-27

query I rowsort
SELECT ALL + 75 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 - - + col1 AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + - 0 - - col1 + - 47 FROM tab1 AS cor0
----
-33
-42
0

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE + col2 NOT IN ( col0, col1 * + col2 + + col1 + + col2 )
----
1
21
81

query I rowsort
SELECT + col0 + + 59 * - + col0 AS col1 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT - SUM( col2 ) + + + 98 * + - 13 * + 59 + - CAST( NULL AS SIGNED ) * 5 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7549
SELECT - SUM ( col2 ) + + + 98 * + - 13 * + 59 + - CAST ( NULL AS INTEGER ) * 5 col1 FROM tab0
----
NULL

query I rowsort
SELECT - 45 + - 51 AS col1 FROM tab0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - + ( + col2 ) * - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7552
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + 63 FROM tab2 WHERE NOT - col1 IS NULL
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT - col2 * + CAST( col1 AS SIGNED ) * + col2 * + 43 FROM tab2
----
-1160097
-5297600
-9691684

skipif mysql # not compatible
query I rowsort label-7554
SELECT - col2 * + CAST ( col1 AS INTEGER ) * + col2 * + 43 FROM tab2
----
-1160097
-5297600
-9691684

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-3396
-4533
-9165

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - - col0 * col1 AND - - col2 + + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7560
SELECT ALL + - ( - + MAX( - 91 ) ) AS col0, 21 AS col2 FROM tab1 AS cor0
----
-91
21

skipif mysql # not compatible
query II rowsort label-7560
SELECT ALL + - ( - + MAX ( - 91 ) ) AS col0, 21 AS col2 FROM tab1 AS cor0
----
-91
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT COUNT( ALL - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7561
SELECT COUNT ( ALL - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT MIN( + + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT MIN ( + + col0 ) AS col0 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + + col0 ) * - col2 + + - col2 AS col2, + 57 col2 FROM tab2
----
-1081
57
-2600
57
-4408
57

query III rowsort
SELECT * FROM tab0 WHERE NOT 43 * - 86 * + col2 - + + col1 / - col0 + 80 <= - - 29
----

query II rowsort
SELECT ALL - col2 AS col1, - 87 AS col0 FROM tab1
----
-59
-87
-68
-87
-96
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT - COUNT( * ), - 74 AS col0 FROM tab1
----
-3
-74

skipif mysql # not compatible
query II rowsort label-7566
SELECT - COUNT ( * ), - 74 AS col0 FROM tab1
----
-3
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 9 col0, - col2 * + col2 FROM tab0
----
9
-100
9
-2209
9
-9801

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7568
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + + col2 AS col2, - col1 - + col2 FROM tab2 AS cor0
----
23
-74
40
-117
58
-125

query I rowsort
SELECT - 71 FROM tab2 AS cor0 WHERE - 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT + MIN( + col2 ) AS col2, 3 AS col1 FROM tab2
----
23
3

skipif mysql # not compatible
query II rowsort label-7571
SELECT + MIN ( + col2 ) AS col2, 3 AS col1 FROM tab2
----
23
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - 55 col0 FROM tab0
----
-102
-154
-65

query I rowsort
SELECT + 88 + - 1 FROM tab0
----
87
87
87

query I rowsort
SELECT ALL - col0 + + col1 + + - col0 + 3 AS col0 FROM tab0 AS cor0
----
-150
-190
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT DISTINCT 29 DIV 78 * + col2 - + 69 AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT 29 / 78 * + col2 - + 69 AS col1 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE 81 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 75 IN ( col2, col1 / col1 / - + 94 )
----
-3

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 75 IN ( col2, col1 / col1 / - + 94 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT + 65 * 85 DIV + 86 + - - col1 FROM tab2 AS cor0
----
115
131
141

skipif mysql # not compatible
query I rowsort label-7579
SELECT + 65 * 85 / + 86 + - - col1 FROM tab2 AS cor0
----
115
131
141

query I rowsort
SELECT ALL 56 AS col1 FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT + ( + ( + col0 ) ) * - - col2 AS col1 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7582
SELECT - 75 DIV - COUNT( * ) AS col0 FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-7582
SELECT - 75 / - COUNT ( * ) AS col0 FROM tab1 cor0
----
25

query I rowsort
SELECT 10 * - 89 * col2 AS col0 FROM tab1
----
-52510
-60520
-85440

query I rowsort
SELECT ( - col1 ) * + + ( + col1 ) AS col0 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT DISTINCT col1 AS col2, + 27 AS col1 FROM tab2
----
51
27
67
27
77
27

query II rowsort
SELECT col1, + col0 + + col0 FROM tab2
----
51
92
67
150
77
128

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 83 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL + MIN( + col1 ) + 5 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + MIN ( + col1 ) + 5 FROM tab1
----
10

query I rowsort
SELECT DISTINCT col2 + col0 * + + col1 + 65 FROM tab1
----
4410
549
875

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT ALL - COUNT( * ), - COUNT( * ) AS col1 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1
----
-3
-3

query I rowsort
SELECT col0 - + + 46 + - - 90 * - + 23 * col0 AS col0 FROM tab2
----
-132462
-155221
-95220

query III rowsort
SELECT - col2, - col0 AS col2, + - col2 FROM tab1 WHERE ( NULL ) > NULL AND NOT col2 * col1 * + + ( - col2 ) IS NULL
----

query I rowsort
SELECT 94 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
94
94
94

query I rowsort
SELECT - 45 * + 64 * - - col0 * + col2 FROM tab2 AS cor0
----
-12528000
-3047040
-7372800

query I rowsort
SELECT ALL - 41 FROM tab2 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT DISTINCT - 79 * - + 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( - 51 ) AS col2 FROM tab0
----
51
51
51

query II rowsort
SELECT - + col1 * - col1 * + col1 * - col0 AS col0, - col1 - + 71 AS col1 FROM tab1 AS cor0
----
-10625
-76
-139944
-85
-9447893
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7599
SELECT DISTINCT - - SUM( DISTINCT - col0 ), - COUNT( * ) DIV 30 AS col2 FROM tab1 AS cor0
----
-227
0

skipif mysql # not compatible
query II rowsort label-7599
SELECT DISTINCT - - SUM ( DISTINCT - col0 ), - COUNT ( * ) / 30 AS col2 FROM tab1 AS cor0
----
-227
0

query I rowsort
SELECT ALL col0 - 22 FROM tab1 AS cor0 WHERE NOT + 8 + - col0 - - - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT - SUM( + - col1 ) AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7601
SELECT - SUM ( + - col1 ) AS col0 FROM tab1 cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7602
SELECT + ( + + 35 ) AS col1, ( CAST( NULL AS DECIMAL ) ) - + CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
35
NULL
35
NULL
35
NULL

skipif mysql # not compatible
query II rowsort label-7602
SELECT + ( + + 35 ) AS col1, ( CAST ( NULL AS REAL ) ) - + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
35
NULL
35
NULL
35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT DISTINCT - 63, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 69 / + 62 IS NOT NULL
----
-63
3

skipif mysql # not compatible
query II rowsort label-7603
SELECT DISTINCT - 63, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 69 / + 62 IS NOT NULL
----
-63
3

query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - COUNT( + col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7605
SELECT - COUNT ( + col2 ) AS col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7606
SELECT ALL + col2 + - + 36 DIV - col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL + col2 + - + 36 / - col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ( + - 1 ) + - 81 AS col2 FROM tab1 WHERE NOT - 53 / ( 59 ) + + 95 * col0 BETWEEN CAST( col1 AS SIGNED ) + + - col0 AND col0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-7607
SELECT ( + - 1 ) + - 81 AS col2 FROM tab1 WHERE NOT - 53 / ( 59 ) + + 95 * col0 BETWEEN CAST ( col1 AS INTEGER ) + + - col0 AND col0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - col0 + - 35 FROM tab1
----
-120
-126
-86

query I rowsort
SELECT 94 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT - 28 * + COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT - 28 * + COUNT ( * ) FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT + CAST( NULL AS SIGNED ) + + 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT + CAST ( NULL AS INTEGER ) + + 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT - 2 + col1 DIV - 49 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7613
SELECT - 2 + col1 / - 49 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL MIN( col1 ) * 75 + - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
372

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL MIN ( col1 ) * 75 + - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT DISTINCT - CAST( + 92 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - CAST ( + 92 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT - col1 + 19 * + + col2 AS col1 FROM tab2 AS cor0
----
1035
386
683

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + - - 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 64 + 75 AS col1 FROM tab0
----
139

query I rowsort
SELECT DISTINCT + + col1 - + + 53 FROM tab1 AS cor0
----
-39
-48
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT MIN( + 7 ) * ( - 44 ) - COUNT( * ) + 84, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-227
3

skipif mysql # not compatible
query II rowsort label-7620
SELECT MIN ( + 7 ) * ( - 44 ) - COUNT ( * ) + 84, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-227
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT - COUNT( * ) - 56 AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7621
SELECT - COUNT ( * ) - 56 AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL + + 57 - + col2 AS col1 FROM tab0 AS cor0
----
-42
10
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2, + col1, - 56 * - col1, - + col1 + - 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT MIN( ALL col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT MIN ( ALL col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT + COUNT( * ) * + + 92 AS col1 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT + COUNT ( * ) * + + 92 AS col1 FROM tab2
----
276

query III rowsort
SELECT ALL * FROM tab2 WHERE - 63 BETWEEN + 45 / - + col2 * - 76 - + col1 * + 84 AND + col0 * + col0 * col0 * - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 29 ) * + - col0 col1 FROM tab2
----
1334
1856
2175

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT 20 * + - COUNT( * ) AS col1, - 35 FROM tab2
----
-60
-35

skipif mysql # not compatible
query II rowsort label-7628
SELECT 20 * + - COUNT ( * ) AS col1, - 35 FROM tab2
----
-60
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT ALL + col1 DIV ( 59 ) AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + col1 / ( 59 ) AS col0 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7630
SELECT DISTINCT * FROM tab1 WHERE + + col2 < - CAST( ( - col0 ) AS DECIMAL )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-7630
SELECT DISTINCT * FROM tab1 WHERE + + col2 < - CAST ( ( - col0 ) AS REAL )
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query II rowsort label-7631
SELECT ALL col2 DIV - 7, - 57 AS col1 FROM tab1
----
-13
-57
-8
-57
-9
-57

skipif mysql # not compatible
query II rowsort label-7631
SELECT ALL col2 / - 7, - 57 AS col1 FROM tab1
----
-13
-57
-8
-57
-9
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT ALL - col1 DIV - 14 AS col2 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - col1 / - 14 AS col2 FROM tab1
----
0
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT + + CAST( MIN( DISTINCT + 21 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7633
SELECT + + CAST ( MIN ( DISTINCT + 21 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT MAX( ALL 81 ) AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT MAX ( ALL 81 ) AS col0 FROM tab2 AS cor0
----
81

query I rowsort
SELECT - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT SUM( + - 97 ) AS col2 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-7636
SELECT SUM ( + - 97 ) AS col2 FROM tab2
----
-291

query I rowsort
SELECT - 70 * - col1 FROM tab2
----
3570
4690
5390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT - 76 * + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT - 76 * + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7639
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT + - ( col1 ) FROM tab0 cor0 WHERE NOT col2 + col0 <> - col0
----

query I rowsort
SELECT + col1 + - + col1 + + + col2 + - - col0 AS col2 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT - col2 + - - 24 AS col2 FROM tab0
----
-23
-75
14

query I rowsort
SELECT DISTINCT col2 + - 26 AS col1 FROM tab2
----
-3
14
32

query I rowsort
SELECT - 43 + col1 FROM tab1
----
-29
-38
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7645
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT IN ( col0 + - 91, col1 )
----

skipif mysql # not compatible
query III rowsort label-7645
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( col0 + - 91, col1 )
----

query I rowsort
SELECT + 70 + + col2 AS col2 FROM tab2
----
110
128
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 * col0 <= - ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7648
SELECT DISTINCT COUNT( * ) * + - CAST( NULL AS SIGNED ) + - + ( + 98 ), - 78 DIV - COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-7648
SELECT DISTINCT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - + ( + 98 ), - 78 / - COUNT ( DISTINCT + col1 ) AS col1 FROM tab0
----
NULL
26

query I rowsort
SELECT 9 FROM tab2 WHERE NULL IS NULL
----
9
9
9

query I rowsort
SELECT + 67 AS col1 FROM tab0 AS cor0 WHERE col1 * - 98 + - + col1 IS NOT NULL
----
67
67
67

query I rowsort
SELECT - col0 * - - col0 - - - ( - col0 ) * col1 FROM tab2 AS cor0
----
-600
230
832

query I rowsort
SELECT 3 + - 17 AS col0 FROM tab0
----
-14
-14
-14

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 - + col2 + - col1 * col0 + + col2 - + 80 * + col0 FROM tab2 cor0
----
-10958
-5975
-9971

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT - - COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7655
SELECT - - COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7656
SELECT * FROM tab0 AS cor0 WHERE NULL <> CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) + + 90
----

skipif mysql # not compatible
query III rowsort label-7656
SELECT * FROM tab0 AS cor0 WHERE NULL <> CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + + 90
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7657
SELECT DISTINCT + col0 - + col2 + + - col1 DIV - col0 + + - col1, 70 col1 FROM tab1 AS cor0
----
-24
70
-59
70
21
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7657
SELECT DISTINCT + col0 - + col2 + + - col1 / - col0 + + - col1, 70 col1 FROM tab1 AS cor0
----
-24
70
-59
70
21
70

query I rowsort
SELECT ALL - - col2 * - col1 + + - 54 + + col2 FROM tab1 AS cor0
----
-1302
-290
-3182

query I rowsort
SELECT + ( ( + col1 ) ) AS col0 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 > 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col2 ) col2 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 60 ) < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - 84 AS col0 FROM tab1
----
-1176
-3948
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT - CAST( NULL AS SIGNED ) * 8 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT - CAST ( NULL AS INTEGER ) * 8 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 AS col2, + ( + col1 ) FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND col1 + - 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT CAST( NULL AS SIGNED ) + - + 59 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7667
SELECT CAST ( NULL AS INTEGER ) + - + 59 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 31 AS col2 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT - COUNT( * ) FROM tab0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7669
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col1 IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT + 7 * + MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7671
SELECT + 7 * + MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-7672
SELECT DISTINCT - SUM( - - col2 ) AS col2, - 91 FROM tab1 AS cor0
----
-223
-91

skipif mysql # not compatible
query II rowsort label-7672
SELECT DISTINCT - SUM ( - - col2 ) AS col2, - 91 FROM tab1 AS cor0
----
-223
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT CAST( + + col2 AS SIGNED ) * - + col0 * 67 AS col2 FROM tab1 AS cor0
----
-328032
-336005
-414596

skipif mysql # not compatible
query I rowsort label-7673
SELECT CAST ( + + col2 AS INTEGER ) * - + col0 * 67 AS col2 FROM tab1 AS cor0
----
-328032
-336005
-414596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7674
SELECT + - CAST( COUNT( * ) AS SIGNED ), 95 AS col2 FROM tab0 AS cor0
----
-3
95

skipif mysql # not compatible
query II rowsort label-7674
SELECT + - CAST ( COUNT ( * ) AS INTEGER ), 95 AS col2 FROM tab0 AS cor0
----
-3
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7675
SELECT DISTINCT - MAX( + col0 ) AS col2, + CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-91
3

skipif mysql # not compatible
query II rowsort label-7675
SELECT DISTINCT - MAX ( + col0 ) AS col2, + CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT DISTINCT + ( + SUM( ALL - 66 ) ) FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT + ( + SUM ( ALL - 66 ) ) FROM tab0 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT + + MIN( - + 49 ) * + + 67 AS col1 FROM tab2 AS cor0
----
-3283

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + + MIN ( - + 49 ) * + + 67 AS col1 FROM tab2 AS cor0
----
-3283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7678
SELECT + - 79 DIV - - COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7678
SELECT + - 79 / - - COUNT ( * ) FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT + - COUNT( * ) + + 99 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
96

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT + - COUNT ( * ) + + 99 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
96

query I rowsort
SELECT - 97 * + col0 * + + 25 AS col2 FROM tab1 AS cor0
----
-123675
-206125
-220675

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - COUNT( ALL + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7681
SELECT - COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - 91 + col1 * - - col2 AS col2, col0 * col1 * - col1 AS col1 FROM tab2
----
1082
-119646
2989
-379456
3795
-336675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + + col1 col2 FROM tab0
----
101
161
81

query I rowsort
SELECT DISTINCT + - 5 AS col0 FROM tab0 WHERE - col1 IS NULL OR NOT - col0 / + 37 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT - CAST( - AVG ( DISTINCT - col1 ) AS SIGNED ) + - 65 AS col1 FROM tab2
----
-130

skipif mysql # not compatible
query I rowsort label-7685
SELECT - CAST ( - AVG ( DISTINCT - col1 ) AS INTEGER ) + - 65 AS col1 FROM tab2
----
-130

query I rowsort
SELECT DISTINCT 83 FROM tab1 WHERE - - col1 IS NOT NULL
----
83

query I rowsort
SELECT - col2 + - col2 - - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL - + COUNT( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL - + COUNT ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 92 * 31 * - col2 AS col0 FROM tab0 cor0 WHERE NULL <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT + - ( - - 85 ) + COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - 60 AND - col0
----
-85

skipif mysql # not compatible
query I rowsort label-7690
SELECT + - ( - - 85 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - 60 AND - col0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 68 col1 FROM tab0 AS cor0
----
-47
-67
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7692
SELECT ALL + - COUNT( * ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7692
SELECT ALL + - COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT + 55 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT DISTINCT - - SUM( DISTINCT + 22 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT - - SUM ( DISTINCT + 22 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + 25 - - COUNT( * ) col1 FROM tab2
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7695
SELECT + 25 - - COUNT ( * ) col1 FROM tab2
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7696
SELECT 64 - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT 64 - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT - MAX( - ( + 8 ) ) AS col0 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7697
SELECT - MAX ( - ( + 8 ) ) AS col0 FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT - col0 * - ( + - 28 ) / - - ( - CAST( - 22 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE + col2 < - CAST( NULL AS SIGNED ) / - col1 OR NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7698
SELECT - col0 * - ( + - 28 ) / - - ( - CAST ( - 22 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE + col2 < - CAST ( NULL AS INTEGER ) / - col1 OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT COUNT( ALL - 21 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT COUNT ( ALL - 21 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL ( - - 71 ) FROM tab1
----
71
71
71

query I rowsort
SELECT ALL + col2 + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT 10 DIV - ( - + col0 ) * + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7702
SELECT 10 / - ( - + col0 ) * + col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + 98 col2 FROM tab1
----
2744
2744
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ( + MAX( + + 95 ) ) AS col2 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-7704
SELECT ( + MAX ( + + 95 ) ) AS col2 FROM tab1
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7705
SELECT + CAST( col2 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7705
SELECT + CAST ( col2 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / + + 55 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7707
SELECT ALL 24 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL 24 / col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL - COUNT( * ) + + 40 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - COUNT ( * ) + + 40 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
31

query III rowsort
SELECT * FROM tab1 WHERE NOT 24 + - - 51 IS NOT NULL
----

query I rowsort
SELECT ALL - 12 * col2 FROM tab1 AS cor0
----
-1152
-708
-816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7711
SELECT ALL - col1 AS col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-7711
SELECT ALL - col1 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT ALL + - COUNT( * ) * - + SUM( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
669

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL + - COUNT ( * ) * - + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
669

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + col0 FROM tab0 cor0 WHERE + 35 NOT BETWEEN NULL AND - col1
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT ALL 4 DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL 4 / COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT DISTINCT - ( + - ( COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT - ( + - ( COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7717
SELECT ALL - COUNT( * ) * ( - + COUNT( * ) ) FROM tab2 AS cor0 WHERE ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - COUNT ( * ) * ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT DISTINCT - 37 DIV - 75 + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT - 37 / - 75 + - col2 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + col1 * - + 84 FROM tab1
----
-1176
-3948
-420

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 - + ( + - ( col1 ) ) FROM tab2
----
102
134
154

query II rowsort
SELECT ALL 68 + 35 AS col0, col2 - + col0 AS col0 FROM tab0
----
103
-77
103
2
103
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ( + + MIN( ALL + - 34 ) ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-7723
SELECT ( + + MIN ( ALL + - 34 ) ) FROM tab1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7724
SELECT * FROM tab1 AS cor0 WHERE col0 * + 32 * CAST( NULL AS SIGNED ) BETWEEN NULL AND + 1
----

skipif mysql # not compatible
query III rowsort label-7724
SELECT * FROM tab1 AS cor0 WHERE col0 * + 32 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND + 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 42 - + 50, - col1 * col1 col1 FROM tab1 cor0
----
-8
-196
-8
-2209
-8
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT DISTINCT + CAST( - col0 AS SIGNED ) - - col2 + - + col2 * - + col0 - + col1 AS col2 FROM tab0 AS cor0
----
656
772
9604

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - - col2 + - + col2 * - + col0 - + col1 AS col2 FROM tab0 AS cor0
----
656
772
9604

query I rowsort
SELECT - col2 * 3 + - col2 FROM tab1 AS cor0
----
-236
-272
-384

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7728
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + + col0 * col2, col0 * - col1 + col1, 10, - - CAST( 97 AS SIGNED ), + 52 )
----

skipif mysql # not compatible
query III rowsort label-7728
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + + col0 * col2, col0 * - col1 + col1, 10, - - CAST ( 97 AS INTEGER ), + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL - MIN( + 67 ) AS col0 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - MIN ( + 67 ) AS col0 FROM tab0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT - 91 * + col0 + + col1 + - col2 * + 64 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT - 91 * + col0 + + col1 + - col2 * + 64 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0, col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT DISTINCT - 44, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-44
3

skipif mysql # not compatible
query II rowsort label-7732
SELECT DISTINCT - 44, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-44
3

query II rowsort
SELECT + col2 AS col0, col1 AS col2 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + ( + col2 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL > + 0
----

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL > + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL - ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= 60 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + COUNT( DISTINCT 84 ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7738
SELECT + COUNT ( DISTINCT 84 ) AS col1 FROM tab1 cor0
----
1

query I rowsort
SELECT col2 + - col0 - - col1 AS col0 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT ALL ( - 79 ) FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-7741
SELECT - COUNT( * ) AS col1, 5 + 62 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7741
SELECT - COUNT ( * ) AS col1, 5 + 62 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT + ( - + MAX( - 33 ) ) * + 29 + 22 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
982

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT + ( - + MAX ( - 33 ) ) * + 29 + 22 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
982

query I rowsort
SELECT - col1 * 66 AS col1 FROM tab0 AS cor0
----
-1386
-5346
-66

query I rowsort
SELECT ALL + - 38 * + ( + 91 ) * + col2 FROM tab0 AS cor0
----
-162526
-342342
-34580

query I rowsort
SELECT - col2 * - - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL 63 * + col2 AS col2 FROM tab0 AS cor0
----
2961
6237
630

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 92 * - col2 IS NOT NULL
----

query I rowsort
SELECT 5 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col1 * col2 + - + col2 + 88 * col0 - - col0 * - - col0 - + col0 FROM tab0 AS cor0
----
15338
17848
5290

query I rowsort
SELECT - col2 - - col2 + + 76 AS col1 FROM tab2
----
76
76
76

query I rowsort
SELECT + col0 + - 13 FROM tab1
----
38
72
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL MAX( ALL col1 ) - + COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL MAX ( ALL col1 ) - + COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT DISTINCT - 2 + - 96 AS col2 FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT COUNT( ALL 66 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7754
SELECT COUNT ( ALL 66 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - + col1 - - + 92 FROM tab1 AS cor0
----
45
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT DISTINCT COUNT( * ) * + 72 - 50 col0 FROM tab0 AS cor0
----
166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7756
SELECT DISTINCT COUNT ( * ) * + 72 - 50 col0 FROM tab0 AS cor0
----
166

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT 56 * - COUNT( * ) AS col1 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-7758
SELECT 56 * - COUNT ( * ) AS col1 FROM tab1
----
-168

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + ( + col0 ) + + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT - + 10 DIV - - 38 + 50 AS col0 FROM tab2 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-7760
SELECT - + 10 / - - 38 + 50 AS col0 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT DISTINCT 74 DIV + 68 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT 74 / + 68 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - 14 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT 49 * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT 49 * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + 77 FROM tab0 AS cor0 WHERE NULL IS NULL
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT ALL - + CAST( + col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7766
SELECT ALL - + CAST ( + col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
117
125
74

query I rowsort
SELECT + 18 * - - col1 AS col0 FROM tab0
----
1458
18
378

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 + 61 ) IS NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL BETWEEN - - col2 * - col1 AND - + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 43, 26 col0 FROM tab0
----
-43
26

query I rowsort
SELECT ( + - col0 ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL ( 58 ) + + - 47 + MAX( - col1 ) col1 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7774
SELECT ALL ( 58 ) + + - 47 + MAX ( - col1 ) col1 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 * - 66 col0 FROM tab2
----
-2376

query II rowsort
SELECT col2 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT - - 11 * - - COUNT( * ) FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-7777
SELECT - - 11 * - - COUNT ( * ) FROM tab2 cor0
----
33

query I rowsort
SELECT ALL - 5 AS col2 FROM tab1 cor0
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 58 ) NOT IN ( + col0 * col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE 99 NOT BETWEEN NULL AND 54 * col2
----

query I rowsort
SELECT 97 AS col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN ( + 40 + col2 ) AND NULL
----

query I rowsort
SELECT ALL + col0 + + col0 * - 56 FROM tab1
----
-2805
-4675
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT MAX( ALL - ( col2 ) ) * COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-7784
SELECT MAX ( ALL - ( col2 ) ) * COUNT ( * ) FROM tab1
----
-177

query III rowsort
SELECT ALL * FROM tab1 WHERE + 41 BETWEEN + 83 / col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + col2 * 36 AS col2 FROM tab1
----
2183
2516
3552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7787
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7787
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE 62 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 46 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7791
SELECT + 77 * CAST( NULL AS DECIMAL ) + 97 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT + 77 * CAST ( NULL AS REAL ) + 97 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7792
SELECT - CAST( NULL AS DECIMAL ) * + col0 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT - CAST ( NULL AS REAL ) * + col0 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + 41 AS col0 FROM tab0
----
-3567
-3977
-615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT + CAST( col1 AS SIGNED ) * col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-7794
SELECT + CAST ( col1 AS INTEGER ) * col1 FROM tab1
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + MAX( - col0 ) + SUM( 67 ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-7796
SELECT + MAX ( - col0 ) + SUM ( 67 ) FROM tab1
----
150

query I rowsort
SELECT 11 FROM tab0 WHERE NOT col0 * col2 + col2 * col0 IS NULL
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT DISTINCT 15 DIV - ( col0 * - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT 15 / - ( col0 * - col2 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 8 * 46 AS col2 FROM tab1
----
368

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT col0 DIV + col0 + col2 * 37 AS col0 FROM tab0
----
1740
3664
371

skipif mysql # not compatible
query I rowsort label-7800
SELECT col0 / + col0 + col2 * 37 AS col0 FROM tab0
----
1740
3664
371

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 96 + col2 ) IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col2 FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT 31 * MIN( col1 ) + + COUNT( * ) FROM tab1
----
158

skipif mysql # not compatible
query I rowsort label-7803
SELECT 31 * MIN ( col1 ) + + COUNT ( * ) FROM tab1
----
158

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= + 25 * col1 + - col1
----

query I rowsort
SELECT DISTINCT col2 * 16 FROM tab2
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT COUNT( * ) - 87 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-7806
SELECT COUNT ( * ) - 87 AS col2 FROM tab2
----
-84

query I rowsort
SELECT ALL - 21 * - 81 FROM tab2
----
1701
1701
1701

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT - col2 DIV 95 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7808
SELECT - col2 / 95 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT 22 - + col0 AS col0 FROM tab1
----
-29
-63
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT ALL 24 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL 24 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 53 - + 6 * + col1 AS col2 FROM tab0 AS cor0
----
-433
-73
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT - COUNT( * ) + + COUNT( col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT - COUNT ( * ) + + COUNT ( col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + 42 AS col2 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - col2 - - col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT - 90 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT - 90 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 35 * col2 AS col0 FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT - col1 * ( col2 ) AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT - COUNT( * ) * - 65 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-7820
SELECT - COUNT ( * ) * - 65 FROM tab0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT - col1 DIV + col0 FROM tab1 WHERE NOT col1 <= + 26 DIV col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT - col1 / + col0 FROM tab1 WHERE NOT col1 <= + 26 / col0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT ALL 90 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL 90 / - col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL 29 * + col2 AS col0 FROM tab2
----
1160
1682
667

query I rowsort
SELECT ALL - 85 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 89 FROM tab2 cor0
----
89

query I rowsort
SELECT DISTINCT + col1 * 75 FROM tab1 AS cor0
----
1050
3525
375

query I rowsort
SELECT + + 3 AS col2 FROM tab0 cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7829
SELECT - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7830
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) = col0
----

skipif mysql # not compatible
query III rowsort label-7830
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND 2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col0 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7834
SELECT - + COUNT( * ) DIV - CAST( 88 * 99 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT - + COUNT ( * ) / - CAST ( 88 * 99 AS INTEGER ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 90 <= ( - col0 )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - ( + col1 ) * 71
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + 48 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 14 + 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT MIN( ALL - - 84 ) + - 18 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT MIN ( ALL - - 84 ) + - 18 FROM tab0
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + col1 NOT BETWEEN ( 25 / + 96 + + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT - 75 DIV - col0 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-7842
SELECT - 75 / - col0 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT 59 + - COUNT( * ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7843
SELECT 59 + - COUNT ( * ) FROM tab0 AS cor0
----
56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 62 ) IN ( ( + 20 ) / 36 + col0 / col1 ) AND NULL >= ( + col0 * + col0 )
----

query I rowsort
SELECT 41 + + + col0 AS col2 FROM tab2 cor0
----
105
116
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT MAX( DISTINCT + 12 ) col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7846
SELECT DISTINCT MAX ( DISTINCT + 12 ) col2 FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT + col0 + - col2 * CAST( col2 + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-19307
-2899
-883

skipif mysql # not compatible
query I rowsort label-7847
SELECT + col0 + - col2 * CAST ( col2 + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-19307
-2899
-883

query I rowsort
SELECT + 61 + - + 98 AS col2 FROM tab1 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ALL + COUNT( * ) + - ( 89 ) AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL + COUNT ( * ) + - ( 89 ) AS col2 FROM tab1
----
-86

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col1 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT ALL + 60 * - - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + 60 * - - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 33 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7854
SELECT ALL - + 72 * ( ( 18 ) ) + + COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-1297

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL - + 72 * ( ( 18 ) ) + + COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-1297

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 + + col1 BETWEEN ( NULL ) AND ( ( - ( 20 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - col2 * + + col0 AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col1 / + col0 * + 14 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT - 91 DIV - col1 - + - 93 - 50 * col1 FROM tab2 AS cor0
----
-2456
-3256
-3756

skipif mysql # not compatible
query I rowsort label-7859
SELECT - 91 / - col1 - + - 93 - 50 * col1 FROM tab2 AS cor0
----
-2456
-3256
-3756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT - 31 - - 87 DIV + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7860
SELECT - 31 - - 87 / + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - - COUNT( ALL col2 ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7861
SELECT - - COUNT ( ALL col2 ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7862
SELECT * FROM tab2 cor0 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7862
SELECT * FROM tab2 cor0 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 7 AS col2, - col2 col2 FROM tab1 AS cor0
----
7
-59
7
-68
7
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT + + COUNT( DISTINCT - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT + + COUNT ( DISTINCT - col1 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7865
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN 27 AND ( - CAST( col1 AS DECIMAL ) / - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7865
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN 27 AND ( - CAST ( col1 AS REAL ) / - CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT 15 + - 49 FROM tab2 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - 69 * - col0 AS col1 FROM tab2
----
3174
4416
5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT DISTINCT col1 + - - CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT col1 + - - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col1 * + 9 + + ( col0 ) + col2 * - col2 AS col2 FROM tab0
----
-1465
-9695
176

query I rowsort
SELECT DISTINCT - 76 * - col0 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT + col0 * + col1 * + 46 FROM tab2
----
107916
226688
231150

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + MAX( col1 ) FROM tab0 WHERE NOT - col2 / - col0 NOT IN ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT + MAX ( col1 ) FROM tab0 WHERE NOT - col2 / - col0 NOT IN ( 7 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( - 51 ) col0 FROM tab2 WHERE ( + 50 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 84 col1 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7877
SELECT ALL + + CAST( + - ( + - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + + CAST ( + - ( + - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * col1 + + 42 AS col2 FROM tab2 AS cor0
----
2643
4531
5971

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> - col0
----

query I rowsort
SELECT DISTINCT col0 * col1 * - ( - - col0 ) AS col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT - + ( COUNT( * ) ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7881
SELECT - + ( COUNT ( * ) ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( + 9 / - col2 + - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( 28 ) ) * - col2 - + col2 * - col2 <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - 23 ) * - - 32 AS col0 FROM tab0 cor0
----
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT DISTINCT + 53 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT + 53 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL COUNT( * ) + + 42 AS col2 FROM tab0 AS cor0 WHERE col0 * + col0 IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL COUNT ( * ) + + 42 AS col2 FROM tab0 AS cor0 WHERE col0 * + col0 IS NOT NULL
----
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 82
----

query I rowsort
SELECT ALL + col0 * col0 + + 51 FROM tab2 AS cor0
----
2167
4147
5676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT DISTINCT - col2 + - + CAST( NULL AS SIGNED ) * - 15 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT - col2 + - + CAST ( NULL AS INTEGER ) * - 15 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 6 + - - 13 + + ( + - col2 ) col1, 68 * col0 + col2 FROM tab1
----
-40
5839
-49
6256
-77
3564

query I rowsort
SELECT 92 + - + 9 + col2 + col2 FROM tab0
----
103
177
281

query II rowsort
SELECT col1 * - ( + col2 ) * + col1 AS col2, - col1 * + col0 FROM tab1
----
-1475
-425
-150212
-4277
-18816
-714

query I rowsort
SELECT col0 FROM tab2 WHERE - col0 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT 40 * MIN( ALL - col2 ) AS col1 FROM tab2
----
-2320

skipif mysql # not compatible
query I rowsort label-7894
SELECT 40 * MIN ( ALL - col2 ) AS col1 FROM tab2
----
-2320

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 + col2 ) NOT BETWEEN NULL AND ( 2 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - col0 ) * + 25 * col1 AS col1 FROM tab0
----
-2425
-30375
-45675

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL - 90 + - COUNT( * ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL - 90 + - COUNT ( * ) FROM tab2
----
-93

query II rowsort
SELECT ALL 91 + + col0 AS col1, + col1 AS col1 FROM tab2
----
137
51
155
77
166
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7900
SELECT - 4 * + COUNT( + CAST( - + col0 AS DECIMAL ) ) AS col0 FROM tab1 WHERE + - 0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7900
SELECT - 4 * + COUNT ( + CAST ( - + col0 AS REAL ) ) AS col0 FROM tab1 WHERE + - 0 IS NULL
----
0

query I rowsort
SELECT ALL - ( - - ( - col1 ) ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 * col2 + + 3 * - + col0 FROM tab2 AS cor0
----
1035
2888
3661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT DISTINCT - col0 - - col2 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT - col0 - - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL + COUNT( * ) - + 82 AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL + COUNT ( * ) - + 82 AS col0 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT ALL col1 * + col2 FROM tab1 AS cor0 WHERE col2 / + + ( + + 64 ) * + + 54 + + + ( - col0 ) NOT IN ( ( - col1 ) * col2 )
----
1344
295
3196

query II rowsort
SELECT DISTINCT - col0 AS col1, + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - - col1 AS col2 FROM tab0 AS cor0 WHERE col2 + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 < NULL
----

query II rowsort
SELECT ALL - ( + col1 ) AS col0, + col1 * 18 * col2 AS col0 FROM tab2 AS cor0
----
-51
21114
-67
69948
-77
55440

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT + MIN( ALL - - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7910
SELECT + MIN ( ALL - - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL - ( - MAX( - + col2 ) ) - - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL - ( - MAX ( - + col2 ) ) - - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT + col2 * + 90 AS col1 FROM tab1
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL SUM( - col1 ) * - SUM( DISTINCT - col2 ) * + 92 FROM tab0
----
-1478256

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL SUM ( - col1 ) * - SUM ( DISTINCT - col2 ) * + 92 FROM tab0
----
-1478256

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT + MIN( - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7914
SELECT + MIN ( - col1 ) FROM tab1
----
-47

query II rowsort
SELECT DISTINCT col0 AS col2, 76 + col2 FROM tab2
----
46
99
64
116
75
134

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - + col2 IS NULL
----

query I rowsort
SELECT ALL 69 * ( + + 96 ) * + 72 + - - col2 + + col0 FROM tab1 AS cor0
----
477072
477075
477087

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT DISTINCT COUNT( * ) * + + 79 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT COUNT ( * ) * + + 79 FROM tab0 AS cor0
----
237

query II rowsort
SELECT ALL - + col1 AS col2, 55 FROM tab0 AS cor0
----
-1
55
-21
55
-81
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + - SUM( DISTINCT - col1 ) FROM tab0 WHERE NOT col1 + - 32 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-7921
SELECT + - SUM ( DISTINCT - col1 ) FROM tab0 WHERE NOT col1 + - 32 IS NULL
----
103

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 + + + ( + + col0 ) <> ( col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT - 4 * - COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT - 4 * - COUNT ( * ) FROM tab1
----
12

query II rowsort
SELECT ALL + + 63 * - col2 AS col1, 90 AS col1 FROM tab1 AS cor0
----
-3717
90
-4284
90
-6048
90

query I rowsort
SELECT + col1 * - col2 FROM tab0 cor0 WHERE NOT - ( ( col1 ) ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT CAST( + - 93 AS SIGNED ) FROM tab0 cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-7926
SELECT CAST ( + - 93 AS INTEGER ) FROM tab0 cor0
----
-93
-93
-93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL + col0 * - + CAST( NULL AS SIGNED ) * col2 + + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL + col0 * - + CAST ( NULL AS INTEGER ) * col2 + + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7929
SELECT COUNT( * ) DIV 53 * - - 65 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT COUNT ( * ) / 53 * - - 65 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT + MIN( + 84 ) FROM tab0 WHERE - col1 * - col1 * - + 57 > NULL AND col0 NOT IN ( ( - - col2 ) * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT + MIN ( + 84 ) FROM tab0 WHERE - col1 * - col1 * - + 57 > NULL AND col0 NOT IN ( ( - - col2 ) * + col1 )
----
NULL

query I rowsort
SELECT + 89 + + col0 * - 21 * + - col1 AS col2 FROM tab0
----
2126
25604
38456

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7932
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 = + CAST( NULL AS SIGNED ) * col0 + - col1
----

skipif mysql # not compatible
query III rowsort label-7932
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 = + CAST ( NULL AS INTEGER ) * col0 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 > ( NULL )
----

query I rowsort
SELECT + 33 + - col2 AS col0 FROM tab0 AS cor0
----
-14
-66
23

query I rowsort
SELECT - + col2 + + + 52 AS col2 FROM tab2 AS cor0
----
-6
12
29

query I rowsort
SELECT ALL ( 69 ) FROM tab0 AS cor0
----
69
69
69

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND col0 * + col1
----

query I rowsort
SELECT DISTINCT 16 * + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1552
-19440
-29232

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL + COUNT( * ) + - 1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL + COUNT ( * ) + - 1 FROM tab2
----
2

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE col1 * + + col1 BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col0 * col1 col1 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT col1 - + + 49 AS col1 FROM tab2 AS cor0
----
18
2
28

query I rowsort
SELECT DISTINCT + col2 + + 74 + + + 40 FROM tab2 AS cor0
----
137
154
172

query I rowsort
SELECT DISTINCT - col0 * + + 97 FROM tab1 AS cor0 WHERE - 89 >= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) + + CAST( - MIN( DISTINCT col2 ) AS SIGNED ) + + 20 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) + + CAST ( - MIN ( DISTINCT col2 ) AS INTEGER ) + + 20 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT DISTINCT SUM( col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 34 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 42 FROM tab1, tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT MIN( + ( + col1 ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7949
SELECT MIN ( + ( + col1 ) ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT COUNT( ALL + 89 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7950
SELECT COUNT ( ALL + 89 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + + col2 * - col1 - - - col0 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7952
SELECT + ( + + col0 ), - col2 DIV - - col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-7952
SELECT + ( + + col0 ), - col2 / - - col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL SUM( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL SUM ( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT - + MIN( col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7954
SELECT - + MIN ( col1 ) col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT ( + - 44 ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT - col2 + + 74 FROM tab0 AS cor0
----
-25
27
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT ALL col1 * - col2 col0 FROM tab1 AS cor0 WHERE NOT CAST( + 31 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7958
SELECT ALL col1 * - col2 col0 FROM tab1 AS cor0 WHERE NOT CAST ( + 31 AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7959
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7960
SELECT ALL 58 * MAX( 49 ) col2, + 68 AS col2 FROM tab0 AS cor0
----
2842
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7960
SELECT ALL 58 * MAX ( 49 ) col2, + 68 AS col2 FROM tab0 AS cor0
----
2842
68

query II rowsort
SELECT - ( - + col2 ), 18 FROM tab1 cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE col0 + + col1 - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7962
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 + + col1 - col2 IS NULL
----
0

query I rowsort
SELECT 79 * 43 + + 21 + + col1 AS col1 FROM tab2
----
3469
3485
3495

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 82 * - col2 NOT BETWEEN ( + col2 ) AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT 84 DIV + + 62 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7965
SELECT 84 / + + 62 AS col1 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7966
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT + 10 * + - col1 / + - CAST( + ( + col1 ) AS DECIMAL ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT + 10 * + - col1 / + - CAST ( + ( + col1 ) AS REAL ) + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * - 38 col1 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT - 98 * - col1 AS col0 FROM tab1
----
1372
4606
490

query II rowsort
SELECT ALL + col1 AS col1, + col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT col2 + 62 + + col0 * + + col0 FROM tab2
----
2201
4198
5745

query I rowsort
SELECT DISTINCT + col0 + - + 3 AS col2 FROM tab1
----
48
82
88

query I rowsort
SELECT - 55 + + 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT - 51 * col2 AS col1 FROM tab0 AS cor0
----
-2397
-5049
-510

query I rowsort
SELECT - col2 - - col2 + - col2 * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + - COUNT( ALL + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7975
SELECT + - COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab1 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7977
SELECT DISTINCT MAX( + ( - + CAST( NULL AS DECIMAL ) ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7977
SELECT DISTINCT MAX ( + ( - + CAST ( NULL AS REAL ) ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT COUNT( * ) * ( ( + COUNT( * ) ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT COUNT ( * ) * ( ( + COUNT ( * ) ) ) FROM tab0
----
9

query I rowsort
SELECT 83 * - + col1 FROM tab2
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7980
SELECT ALL col1 AS col1, + 34 - + CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7980
SELECT ALL col1 AS col1, + 34 - + CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - 14 + + col1 AND - + 10 * - 80
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 26 ) col2 FROM tab0
----
26
26
26

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 52 NOT IN ( - 54, - ( - ( + col2 ) ) )
----

query II rowsort
SELECT ALL col0 AS col1, + col1 * + 82 FROM tab0
----
15
6642
87
1722
97
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( col1, - col0, - + col0 + - + col1, ( - ( - col1 ) ), + 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT DISTINCT + 2, 16 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
2
-48

skipif mysql # not compatible
query II rowsort label-7986
SELECT DISTINCT + 2, 16 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
2
-48

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + - col2 ) > - col0 * ( - 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - col0 + + 38 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - col0 + + 38 * + col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col1 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL col2 + - col1, 71 * + 36 AS col0 FROM tab1
----
21
2556
54
2556
82
2556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7991
SELECT ALL - - CAST( - 5 AS SIGNED ) FROM tab0 cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - - CAST ( - 5 AS INTEGER ) FROM tab0 cor0
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 74 - 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 22 AS col2 FROM tab2 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 27 col1 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT ALL 62 + 15 FROM tab0
----
77
77
77

query III rowsort
SELECT * FROM tab0 WHERE - 45 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT COUNT( * ) + - 35 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7998
SELECT COUNT ( * ) + - 35 FROM tab0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT - col2 + + - CAST( - col2 AS SIGNED ) + - + 60 * + 5 FROM tab2 AS cor0
----
-300
-300
-300

skipif mysql # not compatible
query I rowsort label-7999
SELECT - col2 + + - CAST ( - col2 AS INTEGER ) + - + 60 * + 5 FROM tab2 AS cor0
----
-300
-300
-300

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + col0 + - col1 = NULL
----

query I rowsort
SELECT ALL - 76 AS col1 FROM tab0 WHERE NOT + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL - MAX( + 47 ) col1 FROM tab2
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8003
SELECT ALL - MAX ( + 47 ) col1 FROM tab2
----
-47

query I rowsort
SELECT + - ( + + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 87 FROM tab2 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col0 + + col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT 48 * - - 36 FROM tab1 AS cor0
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT - ( - - ( + COUNT( * ) ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8008
SELECT - ( - - ( + COUNT ( * ) ) ) FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 77 ) col1 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT ALL - col1 * col2 DIV col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - col1 * col2 / col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL - + MAX( DISTINCT + 55 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-55

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - + MAX ( DISTINCT + 55 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT COUNT( - + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT COUNT ( - + col0 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT + col1, + col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8014
SELECT col0 DIV + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8014
SELECT col0 / + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8016
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8016
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8017
SELECT - COUNT( * ) AS col0, - SUM( col2 ) AS col1 FROM tab2 AS cor0
----
-3
-121

skipif mysql # not compatible
query II rowsort label-8017
SELECT - COUNT ( * ) AS col0, - SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
-3
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL - COUNT( * ) * + - 40 col1 FROM tab2
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8018
SELECT ALL - COUNT ( * ) * + - 40 col1 FROM tab2
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 + + col0 col0 FROM tab1
----
185
79
95

query I rowsort
SELECT ALL + col1 + - + col1 + 36 + col1 FROM tab0
----
117
37
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT DISTINCT - + COUNT( * ) AS col0, - 79 FROM tab0 AS cor0
----
-3
-79

skipif mysql # not compatible
query II rowsort label-8021
SELECT DISTINCT - + COUNT ( * ) AS col0, - 79 FROM tab0 AS cor0
----
-3
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT + MIN( + col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT + MIN ( + col1 ) AS col1 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + 14 + - COUNT( * ) + + 92 FROM tab1 cor0
----
103

skipif mysql # not compatible
query I rowsort label-8023
SELECT + 14 + - COUNT ( * ) + + 92 FROM tab1 cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL - - MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - - MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - + col0 * - col0, ( - 54 ) AS col0 FROM tab1 cor0
----
2601
-54
7225
-54
8281
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8027
SELECT + 25 DIV - COUNT( * ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-8027
SELECT + 25 / - COUNT ( * ) AS col0 FROM tab1
----
-8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8029
SELECT CAST( - - 80 AS SIGNED ) AS col0, col1 AS col2 FROM tab2
----
80
51
80
67
80
77

skipif mysql # not compatible
query II rowsort label-8029
SELECT CAST ( - - 80 AS INTEGER ) AS col0, col1 AS col2 FROM tab2
----
80
51
80
67
80
77

query I rowsort
SELECT + - ( col2 ) - col0 + - - col1 FROM tab0 WHERE - 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL COUNT( * ) + COUNT( * ) * - SUM( - 91 ) FROM tab0
----
822

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL COUNT ( * ) + COUNT ( * ) * - SUM ( - 91 ) FROM tab0
----
822

query I rowsort
SELECT DISTINCT col0 - - col2 + - - col2 * - 15 AS col1 FROM tab2 cor0
----
-276
-496
-737

query I rowsort
SELECT DISTINCT - col1 + 88 - + 71 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL - MIN( 11 ) - + 39 + + COUNT( * ) * 85 FROM tab1 AS cor0
----
205

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL - MIN ( 11 ) - + 39 + + COUNT ( * ) * 85 FROM tab1 AS cor0
----
205

query I rowsort
SELECT - + 96 + ( + - col1 ) FROM tab1 AS cor0 WHERE ( NULL ) < + 35
----

query I rowsort
SELECT DISTINCT + col0 * + + 30 AS col1 FROM tab0 cor0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT COUNT( * ) + + + 9 AS col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
9

skipif mysql # not compatible
query I rowsort label-8037
SELECT COUNT ( * ) + + + 9 AS col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
9

query II rowsort
SELECT DISTINCT col0, + col1 * + + col2 + + + 28 FROM tab0 AS cor0
----
15
3835
87
238
97
127

query II rowsort
SELECT col1, col0 * col1 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query II rowsort
SELECT col2, - 87 AS col0 FROM tab0 AS cor0
----
10
-87
47
-87
99
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8041
SELECT DISTINCT + CAST( + - 81 AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE 81 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT + CAST ( + - 81 AS REAL ) AS col0 FROM tab1 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT ( - 25 ) FROM tab0 cor0
----
-25
-25
-25

query I rowsort
SELECT ALL - - ( - col1 ) * 10 FROM tab2 AS cor0
----
-510
-670
-770

query I rowsort
SELECT DISTINCT col0 * + 27 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT + 11 * - 87 FROM tab2
----
-957
-957
-957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT DISTINCT CAST( - col1 AS SIGNED ) FROM tab2 WHERE ( NOT ( NOT + - col1 IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT CAST ( - col1 AS INTEGER ) FROM tab2 WHERE ( NOT ( NOT + - col1 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL + COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT - COUNT( * ) FROM tab2 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8048
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + col0 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT DISTINCT ( - col1 ) * - ( + col0 ) + CAST( - + ( col2 ) AS SIGNED ) AS col0 FROM tab1
----
366
4209
618

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT ( - col1 ) * - ( + col0 ) + CAST ( - + ( col2 ) AS INTEGER ) AS col0 FROM tab1
----
366
4209
618

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT ALL 42 DIV + ( col2 ) AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL 42 / + ( col2 ) AS col2 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT SUM( DISTINCT col0 ) * + COUNT( * ) + + COUNT( - - col1 ) AS col2 FROM tab2 AS cor0
----
558

skipif mysql # not compatible
query I rowsort label-8051
SELECT SUM ( DISTINCT col0 ) * + COUNT ( * ) + + COUNT ( - - col1 ) AS col2 FROM tab2 AS cor0
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT 31 + - COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8052
SELECT 31 + - COUNT ( * ) FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - 26 + - - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8053
SELECT - 26 + - - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT - 24 * + ( - COUNT( - 74 ) ) * COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
1944

skipif mysql # not compatible
query I rowsort label-8054
SELECT - 24 * + ( - COUNT ( - 74 ) ) * COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
1944

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT DISTINCT - ( - 74 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
74

query I rowsort
SELECT + 38 AS col2 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-8058
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT ALL + col2 + - + col1 AS col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT ALL - col0 * + + 15 * 51 AS col0 FROM tab2 AS cor0
----
-35190
-48960
-57375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8061
SELECT - + col0 * - + 70 / col2 * - col0 * + CAST( NULL AS SIGNED ) AS col1, + 38 + 60 AS col2 FROM tab2 AS cor0
----
NULL
98
NULL
98
NULL
98

skipif mysql # not compatible
query II rowsort label-8061
SELECT - + col0 * - + 70 / col2 * - col0 * + CAST ( NULL AS INTEGER ) AS col1, + 38 + 60 AS col2 FROM tab2 AS cor0
----
NULL
98
NULL
98
NULL
98

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE col0 <> + ( + 7 ) + + ( col0 ) - + col2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT DISTINCT + - ( + col1 ) DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + - ( + col1 ) / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 + + col1 + 21 * + 92 * - 4 FROM tab1 AS cor0 WHERE NOT ( NOT + ( + col2 ) IS NOT NULL )
----
-7728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT ALL + CAST( - + ( + 70 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL + CAST ( - + ( + 70 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-70
-70
-70

query II rowsort
SELECT ALL - col1, - 86 + + 85 AS col2 FROM tab2 AS cor0
----
-51
-1
-67
-1
-77
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8067
SELECT DISTINCT - 37 AS col0, ( - col1 ) * - col2 * - CAST( NULL AS SIGNED ) - - 45 FROM tab1
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-8067
SELECT DISTINCT - 37 AS col0, ( - col1 ) * - col2 * - CAST ( NULL AS INTEGER ) - - 45 FROM tab1
----
-37
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - 82 + - col0 + - - col2 IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, col2 + + + col0 FROM tab1
----
14
147
47
159
5
144

query I rowsort
SELECT DISTINCT - col2 + + 73 FROM tab0
----
-26
26
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT + ( - AVG ( DISTINCT col1 ) ) / - SUM( - col1 ) FROM tab1 WHERE + - 55 - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT + ( - AVG ( DISTINCT col1 ) ) / - SUM ( - col1 ) FROM tab1 WHERE + - 55 - - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8072
SELECT DISTINCT CAST( + 16 AS SIGNED ) + - col2 AS col1 FROM tab0
----
-31
-83
6

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT CAST ( + 16 AS INTEGER ) + - col2 AS col1 FROM tab0
----
-31
-83
6

query I rowsort
SELECT 35 + - col1 AS col2 FROM tab1
----
-12
21
30

query I rowsort
SELECT DISTINCT - col2 - ( - col0 ) FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT col2 * - col0 + CAST( - col0 AS SIGNED ) FROM tab2
----
-1104
-2624
-4425

skipif mysql # not compatible
query I rowsort label-8075
SELECT col2 * - col0 + CAST ( - col0 AS INTEGER ) FROM tab2
----
-1104
-2624
-4425

query I rowsort
SELECT - + 5 AS col2 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8077
SELECT DISTINCT - + COUNT( * ), + COUNT( ALL col0 ) col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8077
SELECT DISTINCT - + COUNT ( * ), + COUNT ( ALL col0 ) col0 FROM tab2 AS cor0
----
-3
3

query II rowsort
SELECT ALL + col2, ( col2 ) - col0 FROM tab0 AS cor0
----
10
-77
47
32
99
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8079
SELECT + 93 FROM tab0 AS cor0 WHERE NOT CAST( 13 AS DECIMAL ) * + 8 IS NULL
----
93
93
93

skipif mysql # not compatible
query I rowsort label-8079
SELECT + 93 FROM tab0 AS cor0 WHERE NOT CAST ( 13 AS REAL ) * + 8 IS NULL
----
93
93
93

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 87 BETWEEN NULL AND - 21
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT DISTINCT + + ( - MIN( - CAST( col0 AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT + + ( - MIN ( - CAST ( col0 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT 43 + - - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT ALL + col0 DIV 8 + - 15 + + col0 FROM tab1 WHERE NULL IS NULL
----
42
80
87

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL + col0 / 8 + - 15 + + col0 FROM tab1 WHERE NULL IS NULL
----
42
80
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT ALL col1 + - 87 * + CAST( - col0 AS SIGNED ) - - 13 * + + col0 * + + col0 FROM tab2
----
31561
58893
79717

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL col1 + - 87 * + CAST ( - col0 AS INTEGER ) - - 13 * + + col0 * + + col0 FROM tab2
----
31561
58893
79717

query I rowsort
SELECT ALL - 53 + col2 FROM tab2
----
-13
-30
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8086
SELECT - COUNT( * ) AS col0, - COUNT( * ) * + 80 col2 FROM tab2
----
-3
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8086
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) * + 80 col2 FROM tab2
----
-3
-240

query I rowsort
SELECT ALL - col1 * - + 24 FROM tab0
----
1944
24
504

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab0
----
41

query II rowsort
SELECT + col2 AS col1, 9 FROM tab2
----
23
9
40
9
58
9

query I rowsort
SELECT - ( col0 ) + 36 FROM tab2
----
-10
-28
-39

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 79 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8092
SELECT ALL * FROM tab0 WHERE + - CAST( 99 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8092
SELECT ALL * FROM tab0 WHERE + - CAST ( 99 AS INTEGER ) IS NULL
----

query II rowsort
SELECT col2 + + - col0, + col0 AS col2 FROM tab2
----
-17
75
-23
46
-24
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col0 * + - 91
----

query I rowsort
SELECT DISTINCT 75 + - col0 AS col2 FROM tab1 AS cor0
----
-10
-16
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT DISTINCT - col1 DIV - - 74 + - 26 AS col1 FROM tab0 cor0
----
-26
-27

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT - col1 / - - 74 + - 26 AS col1 FROM tab0 cor0
----
-26
-27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col2 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + + col0 col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT + COUNT( ALL - col0 ) col2, 60 AS col2 FROM tab2 AS cor0
----
3
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8099
SELECT + COUNT ( ALL - col0 ) col2, 60 AS col2 FROM tab2 AS cor0
----
3
60

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 45 FROM tab0 AS cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT 17 DIV + + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT 17 / + + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT COUNT( * ) * - COUNT( * ) * + 13 AS col2 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-8103
SELECT COUNT ( * ) * - COUNT ( * ) * + 13 AS col2 FROM tab2
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 42 + + 34 AS col2 FROM tab0
----
10
-8
47
-8
99
-8

query II rowsort
SELECT col2 - - ( col1 ) AS col1, + col0 FROM tab1
----
110
51
115
91
64
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + COUNT( * ) - - + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8106
SELECT + COUNT ( * ) - - + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT DISTINCT - col1 * - 74 FROM tab1
----
1036
3478
370

query I rowsort
SELECT - 11 * + 54 AS col1 FROM tab0
----
-594
-594
-594

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL - - MAX( DISTINCT + 20 ) FROM tab0 cor0
----
20

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - - MAX ( DISTINCT + 20 ) FROM tab0 cor0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT DISTINCT + - col1 DIV - + col2 - - + col0 FROM tab0 cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + - col1 / - + col2 - - + col0 FROM tab0 cor0
----
16
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT + COUNT( DISTINCT - - 87 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + COUNT ( DISTINCT - - 87 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 63 * + col1 + - col2, + col0, - col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT - - COUNT( * ) col2 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-8114
SELECT - - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT DISTINCT MIN( - 13 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT MIN ( - 13 ) FROM tab1
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col2 + - - 76 + - col0 col0 FROM tab0 AS cor0
----
10
-1
47
108
99
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + COUNT( ALL + 2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8117
SELECT + COUNT ( ALL + 2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL - SUM( DISTINCT 75 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - SUM ( DISTINCT 75 ) FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT + - ( + + SUM( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8119
SELECT + - ( + + SUM ( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 * col2 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 21 AS col2, col0 AS col0 FROM tab2 AS cor0
----
21
46
21
64
21
75

query I rowsort
SELECT DISTINCT + + col0 + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 64 + - col2 NOT BETWEEN + col2 * 12 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 74 * + col1 FROM tab0 WHERE 94 > NULL
----

query I rowsort
SELECT DISTINCT col2 + + col1 + + - col0 * - col2 + - - col2 FROM tab0
----
880
911
9802

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8126
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN + ( - CAST( 66 AS SIGNED ) ) AND - - 36 / - + col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-8126
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN + ( - CAST ( 66 AS INTEGER ) ) AND - - 36 / - + col0
----
15
81
47

query I rowsort
SELECT DISTINCT - ( - col0 ) + - 19 FROM tab0 AS cor0
----
-4
68
78

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 90 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8129
SELECT - COUNT( ALL - - CAST( - 94 AS DECIMAL ) ) * - 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
567

skipif mysql # not compatible
query I rowsort label-8129
SELECT - COUNT ( ALL - - CAST ( - 94 AS REAL ) ) * - 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
567

query I rowsort
SELECT - col2 - 90 AS col2 FROM tab0 AS cor0
----
-100
-137
-189

query I rowsort
SELECT + col0 * + ( - 43 ) - 67 AS col0 FROM tab2 cor0
----
-2045
-2819
-3292

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 84 IS NULL
----

query I rowsort
SELECT ALL - 27 - col2 FROM tab1 AS cor0
----
-123
-86
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT DISTINCT - COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 - + col2 * + + 94 * + 90 FROM tab2 AS cor0
----
-194534
-338336
-490605

query I rowsort
SELECT ALL + + 86 * + + 73 * col2 * + + col2 * + 26 FROM tab0 AS cor0
----
1599797628
16322800
360570652

query I rowsort
SELECT + col2 * + + col0 * + 95 FROM tab2
----
100510
243200
413250

query I rowsort
SELECT ALL 76 * - col1 AS col2 FROM tab2
----
-3876
-5092
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT - MIN( DISTINCT - 76 ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - MIN ( DISTINCT - 76 ) FROM tab1 AS cor0
----
76

query I rowsort
SELECT ALL - col1 * + + 11 FROM tab0 cor0
----
-11
-231
-891

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + ( - 94 ) AS col2 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT col0 * - 32 AS col0 FROM tab1 AS cor0
----
-1632
-2720
-2912

query I rowsort
SELECT + 82 * col1 + + 51 + + - 70 - - col1 AS col2 FROM tab2 AS cor0
----
4214
5542
6372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 20 col0 FROM tab2 AS cor0
----
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 38 > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8148
SELECT ALL + col0, - CAST( + 88 AS SIGNED ) FROM tab2
----
46
-88
64
-88
75
-88

skipif mysql # not compatible
query II rowsort label-8148
SELECT ALL + col0, - CAST ( + 88 AS INTEGER ) FROM tab2
----
46
-88
64
-88
75
-88

query II rowsort
SELECT - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT DISTINCT + ( 70 ) AS col1 FROM tab2 cor0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT ALL 57 AS col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
57
-3

skipif mysql # not compatible
query II rowsort label-8151
SELECT ALL 57 AS col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
57
-3

query II rowsort
SELECT col0 + + 71 AS col1, 11 FROM tab1
----
122
11
156
11
162
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - + ( COUNT( * ) ) - MIN( DISTINCT + + 36 ) + + ( + + COUNT( * ) ) * - 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-495

skipif mysql # not compatible
query I rowsort label-8153
SELECT - + ( COUNT ( * ) ) - MIN ( DISTINCT + + 36 ) + + ( + + COUNT ( * ) ) * - 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-495

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8154
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 62 col2, + col2 * - - 52 AS col0 FROM tab0
----
NULL
2444
NULL
5148
NULL
520

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8154
SELECT DISTINCT CAST ( NULL AS REAL ) - + 62 col2, + col2 * - - 52 AS col0 FROM tab0
----
NULL
2444
NULL
5148
NULL
520

query I rowsort
SELECT ALL 16 + + 2 * - col0 + + 76 FROM tab2 AS cor0
----
-36
-58
0

query I rowsort
SELECT ALL - col0 - col1 * + - col1 * - - ( col2 ) * + + col2 - col1 AS col0 FROM tab1 AS cor0
----
10214278
1806271
86935

query I rowsort
SELECT DISTINCT + ( - + ( - - 36 ) ) FROM tab0 cor0
----
-36

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < + col2
----

query I rowsort
SELECT + - 1 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT SUM( ALL + 83 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
747

skipif mysql # not compatible
query I rowsort label-8160
SELECT SUM ( ALL + 83 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
747

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - 40
----

query I rowsort
SELECT 40 * col2 FROM tab2
----
1600
2320
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 22 col2 FROM tab2
----
-1122
-1474
-1694

query I rowsort
SELECT DISTINCT - col0 * - - 84 FROM tab1
----
-4284
-7140
-7644

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT 88 * + col2 DIV col2 FROM tab0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-8165
SELECT 88 * + col2 / col2 FROM tab0
----
88
88
88

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - MAX( + col1 ) * + 87 FROM tab0
----
-7047

skipif mysql # not compatible
query I rowsort label-8167
SELECT - MAX ( + col1 ) * + 87 FROM tab0
----
-7047

onlyif mysql # aggregate syntax: 
query II rowsort label-8168
SELECT DISTINCT - 72 col2, COUNT( * ) FROM tab1 AS cor0
----
-72
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8168
SELECT DISTINCT - 72 col2, COUNT ( * ) FROM tab1 AS cor0
----
-72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT COUNT( * ) * + 3 AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT COUNT ( * ) * + 3 AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT COUNT( DISTINCT + - 8 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8170
SELECT COUNT ( DISTINCT + - 8 ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8172
SELECT ALL + - 77 * + COUNT( * ) DIV - ( COUNT( * ) ) + 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
154

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + - 77 * + COUNT ( * ) / - ( COUNT ( * ) ) + 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
154

query I rowsort
SELECT DISTINCT + 65 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
65

query I rowsort
SELECT ALL - col1 * - - 69 * + col1 - - col2 AS col2 FROM tab0 AS cor0
----
-30419
-452662
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 21
----

query I rowsort
SELECT + - 88 * col1 FROM tab0 AS cor0
----
-1848
-7128
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 53 + - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT DISTINCT + 49 + + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + 49 + + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 + + col1 * + + ( + col1 ) - col2 AS col0 FROM tab2
----
2624
4506
5953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col0 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE + - col2 IS NULL
----

query I rowsort
SELECT col0 * 1 AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + MIN( DISTINCT - col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8183
SELECT + MIN ( DISTINCT - col0 ) AS col2 FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8184
SELECT CAST( col2 AS SIGNED ), - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-8184
SELECT CAST ( col2 AS INTEGER ), - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT ALL COUNT( * ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT - MAX( + ( col0 ) ) col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8186
SELECT - MAX ( + ( col0 ) ) col2 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT ( 95 ) AS col2, - col1 * col2 FROM tab1 AS cor0
----
95
-1344
95
-295
95
-3196

query II rowsort
SELECT ALL + col2 AS col0, ( 23 ) * + - col0 * col2 AS col1 FROM tab2 AS cor0
----
23
-24334
40
-58880
58
-100050

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + col0 + + col1 * - 17 * - 41 + - 35 BETWEEN + + col2 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ( - MIN( ALL col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8190
SELECT ( - MIN ( ALL col2 ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT DISTINCT + COUNT( ALL + + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT + COUNT ( ALL + + col2 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL 3 * - - col1 FROM tab1 AS cor0
----
141
15
42

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8194
SELECT ALL COUNT( DISTINCT + + col1 ) DIV - 45 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL COUNT ( DISTINCT + + col1 ) / - 45 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT - col1 DIV 84 * + + 31 DIV 90 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8195
SELECT - col1 / 84 * + + 31 / 90 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT + col0 DIV - + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8196
SELECT + col0 / - + col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col0 FROM tab2
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 82 + - col2 * col1 IS NULL
----

query I rowsort
SELECT ALL col2 / + + col1 * 79 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8200
SELECT ALL - COUNT( * ) DIV - 8 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - COUNT ( * ) / - 8 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + + col0 + 39 AND 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8203
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8203
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - - col0 IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT + - col2 + - - 32 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT 55 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
55

query I rowsort
SELECT - 2 * - col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT + col1 + 23 FROM tab2
----
100
74
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) <= CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) <= CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8210
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col1 * 50 AS col1 FROM tab0 AS cor0 WHERE ( NOT ( ( NULL ) BETWEEN NULL AND 86 * - + 34 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT DISTINCT - col1 DIV + + col2 * + - col0 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8212
SELECT DISTINCT - col1 / + + col2 * + - col0 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 * - - 34 - - + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1587
2216
2608

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 41, + col1 col2 FROM tab2 AS cor0 WHERE ( NOT col2 = 65 )
----
-41
51
-41
67
-41
77

query I rowsort
SELECT DISTINCT + col2 * 71 + + + 5 AS col1 FROM tab0
----
3342
7034
715

query II rowsort
SELECT ALL + ( 22 ) * col2 * - - col1 * + 77 + + + 51 + + col2 + - col1 * - + col0 AS col1, - ( - col2 ) FROM tab0
----
167953
99
357628
10
6450371
47

query III rowsort
SELECT * FROM tab2 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 87 + - - col2 + + - 7 FROM tab2
----
103
120
138

query I rowsort
SELECT 36 FROM tab2 cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT DISTINCT col2 - - + col2 AS col0, col1 FROM tab1 AS cor0
----
118
5
136
47
192
14

query I rowsort
SELECT + col1 + - ( - col2 ) FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT ALL col1, - 81 AS col0 FROM tab1
----
14
-81
47
-81
5
-81

query II rowsort
SELECT 34, + 29 AS col0 FROM tab2 AS cor0
----
34
29
34
29
34
29

query II rowsort
SELECT ALL - col1 * + col2 AS col2, ( 93 ) FROM tab0 AS cor0 WHERE + col1 + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 <> - 17 - + + 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + 37 * - 20 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT col2, 54 + col0 AS col0 FROM tab2 AS cor0
----
23
100
40
118
58
129

query II rowsort
SELECT ALL 89 AS col2, - col1 AS col1 FROM tab1
----
89
-14
89
-47
89
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 96 col0, - col0 * col2 + - col1 FROM tab0
----
96
-786
96
-891
96
-9604

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8233
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8233
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT - SUM( + ( col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT - SUM ( + ( col0 ) ) FROM tab0
----
-199

query I rowsort
SELECT ( + ( - 14 ) ) * + - col2 * + col0 FROM tab2
----
14812
35840
60900

query II rowsort
SELECT DISTINCT 20 AS col1, - col2 AS col2 FROM tab1 WHERE NOT col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + ( + + col1 ) + + 26 * - col2 <= - + 82
----

query I rowsort
SELECT - ( + col0 ) * + + 41 AS col0 FROM tab2 cor0
----
-1886
-2624
-3075

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8240
SELECT - col0 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-8240
SELECT - col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT - col2 + ( - col2 ) FROM tab2 AS cor0
----
-116
-46
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 + - col2 AS col1, - col0 AS col1 FROM tab1
----
-144
-85
-147
-51
-159
-91

query I rowsort
SELECT - col0 * + 78 + - - 21 AS col0 FROM tab2 AS cor0
----
-3567
-4971
-5829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT 73 * - 62 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT 73 * - 62 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * - + ( col1 ) + - col1 + - ( - - col1 ) FROM tab1 AS cor0
----
-435
-4371
-742

query I rowsort
SELECT - 53 * - col0 AS col1 FROM tab2 AS cor0
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT MIN( ( 95 ) ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8248
SELECT MIN ( ( 95 ) ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT - col2 * 64 FROM tab2 AS cor0
----
-1472
-2560
-3712

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 71 + + col0 AS col1 FROM tab0 AS cor0
----
-56
16
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8252
SELECT DISTINCT - COUNT( + - col1 ) - + MIN( DISTINCT + + col1 ), - 25 col2 FROM tab0
----
-4
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8252
SELECT DISTINCT - COUNT ( + - col1 ) - + MIN ( DISTINCT + + col1 ), - 25 col2 FROM tab0
----
-4
-25

query I rowsort
SELECT - 84 + + col1 + + 55 FROM tab1
----
-15
-24
18

onlyif mysql # DIV for integer division: 
query II rowsort label-8254
SELECT DISTINCT col1 + + 69 DIV - - 91 AS col2, 15 * col2 + 82 FROM tab2
----
51
427
67
952
77
682

skipif mysql # not compatible
query II rowsort label-8254
SELECT DISTINCT col1 + + 69 / - - 91 AS col2, 15 * col2 + 82 FROM tab2
----
51
427
67
952
77
682

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - MAX( DISTINCT col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT - MAX ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

query II rowsort
SELECT DISTINCT - - col1, 86 AS col0 FROM tab1 AS cor0
----
14
86
47
86
5
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT - - SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT - - SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE 80 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE 80 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8259
SELECT DISTINCT - COUNT( * ) + 33 DIV COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - COUNT ( * ) + 33 / COUNT ( * ) FROM tab1
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8260
SELECT DISTINCT * FROM tab1 WHERE - 38 + + col2 <> ( + ( CAST( + col0 AS DECIMAL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8260
SELECT DISTINCT * FROM tab1 WHERE - 38 + + col2 <> ( + ( CAST ( + col0 AS REAL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT COUNT( * ) - 25 AS col0 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT COUNT ( * ) - 25 AS col0 FROM tab0
----
-22

query I rowsort
SELECT col1 + - col1 AS col0 FROM tab0 WHERE NOT 86 / - 97 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 38 - + col2 * col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col2 FROM tab0
----
196
62
97

query I rowsort
SELECT 63 + col2 AS col2 FROM tab1
----
122
131
159

query I rowsort
SELECT col2 FROM tab2 WHERE NOT 65 < - 15
----
23
40
58

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - 2 * - col0 + 63 * + col1 <> ( col1 )
----

query I rowsort
SELECT - col1 + ( 4 ) FROM tab0
----
-17
-77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT - 84 + - col2 DIV + col2 FROM tab2
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-8269
SELECT - 84 + - col2 / + col2 FROM tab2
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT col2 DIV col1 + - 79 FROM tab2
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-8270
SELECT col2 / col1 + - 79 FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT COUNT( * ) FROM tab2 WHERE NOT ( col0 + - 74 ) IN ( col1 * + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-8271
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( col0 + - 74 ) IN ( col1 * + col2 )
----
3

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + col2 + - col2 < ( col2 )
----

query I rowsort
SELECT - 62 AS col2 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL + COUNT( ( ( - col0 ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + COUNT ( ( ( - col0 ) ) ) FROM tab2
----
3

query I rowsort
SELECT col2 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT DISTINCT + col2 - + col1 DIV - ( + col0 ) FROM tab2
----
24
41
58

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + col2 - + col1 / - ( + col0 ) FROM tab2
----
24
41
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT + 52 + MIN( col2 ) FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + 52 + MIN ( col2 ) FROM tab1
----
111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8278
SELECT + col2 * + CAST( col2 AS DECIMAL ) col1 FROM tab1 WHERE - 95 / - col1 + 16 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8278
SELECT + col2 * + CAST ( col2 AS REAL ) col1 FROM tab1 WHERE - 95 / - col1 + 16 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT 9 DIV + col0 - 42 AS col0 FROM tab0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-8280
SELECT 9 / + col0 - 42 AS col0 FROM tab0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8281
SELECT col1 DIV - CAST( col0 * col2 AS SIGNED ) + - col1 AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8281
SELECT col1 / - CAST ( col0 * col2 AS INTEGER ) + - col1 AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL SUM( col0 ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8282
SELECT ALL SUM ( col0 ) col0 FROM tab2
----
185

query I rowsort
SELECT 77 - col2 FROM tab2
----
19
37
54

query I rowsort
SELECT DISTINCT - 76 - - col1 FROM tab1 WHERE ( - col0 ) > - col0 * 19 + col2
----
-29
-62
-71

query I rowsort
SELECT 14 + 84 * - 44 FROM tab1
----
-3682
-3682
-3682

query I rowsort
SELECT DISTINCT + 32 * + 81 AS col2 FROM tab2
----
2592

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 20 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 57 FROM tab2 AS cor0 WHERE NOT 57 + - 8 NOT IN ( 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT - MAX( ALL col1 ) AS col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT - MAX ( ALL col1 ) AS col1 FROM tab2 cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT ALL col0 + + 71 DIV + col0 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL col0 + + 71 / + col0 FROM tab1 AS cor0
----
52
85
91

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT IN ( col2 / 82 )
----
NULL

query I rowsort
SELECT - 53 AS col1 FROM tab2 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8293
SELECT DISTINCT ( COUNT( * ) ) + ( 76 ) DIV 47 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT ( COUNT ( * ) ) + ( 76 ) / 47 FROM tab0
----
4

query I rowsort
SELECT + 96 + col2 AS col0 FROM tab0
----
106
143
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT ALL 50 * - CAST( NULL AS SIGNED ) + col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8295
SELECT ALL 50 * - CAST ( NULL AS INTEGER ) + col1 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8296
SELECT ALL * FROM tab1 WHERE + col0 / + CAST( - ( CAST( col1 AS SIGNED ) ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8296
SELECT ALL * FROM tab1 WHERE + col0 / + CAST ( - ( CAST ( col1 AS INTEGER ) ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col1 * 89 + - 23 AS col2 FROM tab0
----
1846
66
7186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT DISTINCT 49 + - CAST( + 7 AS SIGNED ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT 49 + - CAST ( + 7 AS INTEGER ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 30 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8300
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + COUNT( * ) + 0 * 6 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8301
SELECT + COUNT ( * ) + 0 * 6 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= ( + col1 * 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 22 IS NOT NULL
----

query I rowsort
SELECT + - col1 * 75 + col0 AS col2 FROM tab0 AS cor0
----
-1488
-6060
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8305
SELECT DISTINCT COUNT( * ) DIV - 15 - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT COUNT ( * ) / - 15 - COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + ( 67 ) AS col1 FROM tab1 AS cor0 WHERE 97 >= col1
----
67
67
67

query I rowsort
SELECT ALL - 21 + - - col0 AS col0 FROM tab0
----
-6
66
76

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT MAX( + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT MAX ( + col0 ) AS col1 FROM tab1
----
91

query III rowsort
SELECT * FROM tab0 WHERE ( - 33 / col0 - + col0 ) = + 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT DISTINCT - col2 * - col2 + + CAST( 91 AS SIGNED ) AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
1691
3455
620

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT - col2 * - col2 + + CAST ( 91 AS INTEGER ) AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
1691
3455
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 <> ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT + 60 - COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8314
SELECT + 60 - COUNT ( * ) FROM tab2
----
57

query I rowsort
SELECT DISTINCT 48 * + 69 FROM tab2
----
3312

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT DISTINCT col1 DIV + 59 - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT col1 / + 59 - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col1 FROM tab2
----
141
142
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= - col0 + 2
----

query I rowsort
SELECT - col0 - 66 FROM tab2
----
-112
-130
-141

query I rowsort
SELECT ALL ( + 84 ) - 91 AS col1 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT + col0 - - + 49 FROM tab2
----
113
124
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 24 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8323
SELECT ALL + - CAST( - col1 AS SIGNED ) * - 65 FROM tab0 cor0
----
-1365
-5265
-65

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + - CAST ( - col1 AS INTEGER ) * - 65 FROM tab0 cor0
----
-1365
-5265
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8324
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) - - 85 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - 85 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 96 * - col1 AS col0 FROM tab1 AS cor0
----
-1344
-4512
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT DISTINCT 52 * + COUNT( * ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT 52 * + COUNT ( * ) FROM tab2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT DISTINCT ( - + 48 ) DIV + + col1 * col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT ( - + 48 ) / + + col1 * col1 FROM tab2
----
0

query I rowsort
SELECT col1 - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT - col0 - col2 FROM tab1 AS cor0 WHERE NOT + 18 * + - 43 * 52 + 56 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8330
SELECT ALL + col2, - ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8330
SELECT ALL + col2, - ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT col2 - + col0 * - col2 FROM tab0 AS cor0 WHERE NOT - 22 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 col2 FROM tab2 AS cor0
----
-83
-83
-83

query II rowsort
SELECT + - col0 AS col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL col2 * + ( - - 95 ) FROM tab1 AS cor0
----
5605
6460
9120

onlyif mysql # aggregate syntax: 
query II rowsort label-8335
SELECT COUNT( * ) AS col1, + ( - - COUNT( * ) ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8335
SELECT COUNT ( * ) AS col1, + ( - - COUNT ( * ) ) FROM tab1 cor0
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col1 + 19 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 23 - + col1 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 87 FROM tab0 WHERE NOT ( 67 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT COUNT( ALL + 62 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8339
SELECT COUNT ( ALL + 62 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 45 * + + 4 + - 88 AS col2 FROM tab1
----
-268

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - 50 NOT IN ( ( - col0 ) )
----

query II rowsort
SELECT DISTINCT ( + + col0 ) AS col1, ( - 1 ) * col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT col0 * + - col0 + - col0 + + col1 + + col1 FROM tab1 AS cor0
----
-2624
-7300
-8278

query I rowsort
SELECT + - col2 + 17 + + + col2 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + 6 * + 84 * - col0 * + 82 - - col0 + 43 FROM tab2 AS cor0
----
-1900999
-2644885
-3099482

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 33 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - + col1 * + 97 + - col1 )
----

query I rowsort
SELECT ALL col0 + + ( - col1 ) FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL 9 + + col2 AS col0 FROM tab0 AS cor0
----
108
19
56

query II rowsort
SELECT ALL 68 AS col1, + col0 FROM tab2 AS cor0
----
68
46
68
64
68
75

query I rowsort
SELECT + - col1 - - - col2 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 97 + col2 AS col2 FROM tab1 AS cor0
----
-1
-29
-38

query I rowsort
SELECT ALL col1 - - col2 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT + SUM( ALL 73 ) AS col2 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT + SUM ( ALL 73 ) AS col2 FROM tab1 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8356
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN col2 AND ( col2 / - - 78 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8356
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN col2 AND ( col2 / - - 78 * - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + 60 + + col2 FROM tab1 AS cor0
----
-1
36
8

query I rowsort
SELECT DISTINCT + col2 * + - col1 + col1 AS col2 FROM tab1 WHERE + col1 IN ( - 88 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 35 col1, - 58 * + + 68 AS col0 FROM tab2
----
35
-3944
35
-3944
35
-3944

onlyif mysql # aggregate syntax: 
query II rowsort label-8360
SELECT DISTINCT + 32 * + 15 col2, + COUNT( * ) * + + 81 AS col1 FROM tab2
----
480
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8360
SELECT DISTINCT + 32 * + 15 col2, + COUNT ( * ) * + + 81 AS col1 FROM tab2
----
480
243

query II rowsort
SELECT + 33 AS col0, + 54 FROM tab0
----
33
54
33
54
33
54

query I rowsort
SELECT + col1 * + col0 * - - 17 FROM tab1 AS cor0
----
12138
7225
72709

query I rowsort
SELECT DISTINCT + col0 * 52 + + col2 AS col2 FROM tab2 AS cor0
----
2415
3368
3958

query I rowsort
SELECT DISTINCT 65 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 <> 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT 45 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT 45 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT - COUNT( * ) * ( - - COUNT( * ) ) FROM tab0 WHERE NOT + col2 IN ( col0 )
----
-9

skipif mysql # not compatible
query I rowsort label-8367
SELECT - COUNT ( * ) * ( - - COUNT ( * ) ) FROM tab0 WHERE NOT + col2 IN ( col0 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col0 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT - ( + - 86 ) AS col1 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8370
SELECT + MIN( - col2 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-96
3

skipif mysql # not compatible
query II rowsort label-8370
SELECT + MIN ( - col2 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-96
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) >= 54
----
46
51
23

query I rowsort
SELECT ALL + 15 * + - col2 * ( - + 28 ) AS col0 FROM tab0 cor0
----
19740
41580
4200

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE ( NOT ( NULL ) <= ( col1 / + ( + + col0 ) + + - 75 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL - COUNT( * ) * - - ( - 33 ) AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - COUNT ( * ) * - - ( - 33 ) AS col2 FROM tab2 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT DISTINCT - col2 + col0 * - col2 - + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-5043
-5159
-6347

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT - col2 + col0 * - col2 - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-5043
-5159
-6347

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT IN ( 8, 6 + 67 )
----

query I rowsort
SELECT ALL 35 + - - col1 + col1 + + col2 * ( - col2 ) AS col2 FROM tab2
----
-1411
-3195
-392

query III rowsort
SELECT * FROM tab2 WHERE ( - + 27 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( 99 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 50 * 58 FROM tab2
----
-2900
-2900
-2900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 + - col0 col1 FROM tab1
----
-133
-167
-173

query II rowsort
SELECT - col0, col1 * + 29 AS col0 FROM tab0
----
-15
2349
-87
609
-97
29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT - MIN( - col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - MIN ( - col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE 27 * 97 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 NOT BETWEEN NULL AND + col1 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT - 15 + COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - 15 + COUNT ( * ) FROM tab2
----
-12

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( + 38 * - ( + col0 ) * col2 + + col1 * col1 + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( - col0, - 45 * + col0 )
----

query I rowsort
SELECT col2 + - - ( - 83 ) FROM tab0
----
-36
-73
16

query I rowsort
SELECT + col2 * + 27 * + 78 * - + 18 + 79 * + 33 FROM tab1
----
-2233965
-2575137
-3636561

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 < - col0
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col2 * - col2 + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col2 * - col2 + - col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT DISTINCT 91 - + - COUNT( * ) col0 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8394
SELECT DISTINCT 91 - + - COUNT ( * ) col0 FROM tab2 AS cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 WHERE NOT + 46 / + + 46 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 * - col1 - + col1 AS col1 FROM tab2 AS cor0
----
2550
4422
5852

query I rowsort
SELECT ALL ( + 6 ) * col1 AS col2 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT + + COUNT( * ) + - + 40 col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8398
SELECT DISTINCT + + COUNT ( * ) + - + 40 col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
-40

query I rowsort
SELECT - + 52 * col1 FROM tab1 cor0
----
-2444
-260
-728

query I rowsort
SELECT + 7 * - 46 * + 47 FROM tab0
----
-15134
-15134
-15134

query I rowsort
SELECT - 55 * + + col0 AS col1 FROM tab1
----
-2805
-4675
-5005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT + col1, col0 - col1 AS col2, - col2 FROM tab0
----
9 values hashing to 676ed7ae32a17944de76c934cb688da4

query II rowsort
SELECT DISTINCT col1 AS col2, + 15 AS col1 FROM tab2
----
51
15
67
15
77
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8405
SELECT CAST( col1 AS SIGNED ) DIV - col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8405
SELECT CAST ( col1 AS INTEGER ) / - col1 AS col0 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT DISTINCT - col1, - col0 AS col1 FROM tab1
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 <= - col2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 + + col1 * - - col2 + - 17 IN ( - + 85, col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT SUM( - - 42 ) FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-8409
SELECT SUM ( - - 42 ) FROM tab2 cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT SUM( + - 35 ) * + 0 * ( COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT SUM ( + - 35 ) * + 0 * ( COUNT ( * ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8411
SELECT COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - 94 * + COUNT( ALL - - col1 ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - 94 * + COUNT ( ALL - - col1 ) FROM tab1
----
-282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT MIN( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + - col1 ) * - col2 - + col0 IN ( col0 / CAST( + col0 AS SIGNED ) * - col2 * 38 )
----
10

skipif mysql # not compatible
query I rowsort label-8413
SELECT MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + - col1 ) * - col2 - + col0 IN ( col0 / CAST ( + col0 AS INTEGER ) * - col2 * 38 )
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 98 ) col0 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT + col0 DIV + 2 FROM tab1 AS cor0
----
25
42
45

skipif mysql # not compatible
query I rowsort label-8415
SELECT + col0 / + 2 FROM tab1 AS cor0
----
25
42
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - SUM( - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-8416
SELECT - SUM ( - col1 ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + COUNT( col1 ) * + - 23 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + COUNT ( col1 ) * + - 23 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8418
SELECT SUM( ALL - col0 ) AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-199
3

skipif mysql # not compatible
query II rowsort label-8418
SELECT SUM ( ALL - col0 ) AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-199
3

query I rowsort
SELECT - col2 * + 77 FROM tab1 AS cor0
----
-4543
-5236
-7392

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8420
SELECT + - AVG ( + - col0 ) / + + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT + - AVG ( + - col0 ) / + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 1 col1 FROM tab0 AS cor0 WHERE col1 * + 18 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT COUNT( * ) * + 18 * COUNT( * ) AS col2 FROM tab0 cor0
----
162

skipif mysql # not compatible
query I rowsort label-8422
SELECT COUNT ( * ) * + 18 * COUNT ( * ) AS col2 FROM tab0 cor0
----
162

query I rowsort
SELECT DISTINCT - col2 * col1 * 36 AS col1 FROM tab0
----
-137052
-3564
-7560

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ( + + COUNT( * ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8424
SELECT ( + + COUNT ( * ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL ( - col2 ) * - + col1 + - + 17 FROM tab1
----
1327
278
3179

query I rowsort
SELECT col2 + - 81 FROM tab1
----
-13
-22
15

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( col1 * - + col1 + - col1 ) IS NOT NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT + + 83 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8429
SELECT col0 + - col2 DIV - 60 AS col0, + col2 * col1 FROM tab0 AS cor0
----
15
3807
87
210
98
99

skipif mysql # not compatible
query II rowsort label-8429
SELECT col0 + - col2 / - 60 AS col0, + col2 * col1 FROM tab0 AS cor0
----
15
3807
87
210
98
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col1 ) NOT BETWEEN + col2 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT + COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8432
SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT - COUNT( * ) - - - MAX( ALL - col1 ) - ( - SUM( - col0 ) ) AS col0 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-8434
SELECT - COUNT ( * ) - - - MAX ( ALL - col1 ) - ( - SUM ( - col0 ) ) AS col0 FROM tab0
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - 16 + - col0 col0 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - col2 - + col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL AVG ( ALL + 87 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT MAX( ALL + 44 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8438
SELECT MAX ( ALL + 44 ) FROM tab1 AS cor0
----
44

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT + col2 >= NULL )
----

query I rowsort
SELECT + ( - - col2 ) AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8441
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8441
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col0 FROM tab1 AS cor0 WHERE NOT ( - 94 / col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + ( - col2 ) * + col0 + col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT - col0 + + + col0 - col1 > col0
----
3

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col0 + + + col0 - col1 > col0
----
3

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - ( + col1 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8446
SELECT DISTINCT COUNT( - + 73 ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8446
SELECT DISTINCT COUNT ( - + 73 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT col0 DIV - ( + 56 ) AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT col0 / - ( + 56 ) AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT col1 * CAST( col2 AS SIGNED ) FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-8448
SELECT col1 * CAST ( col2 AS INTEGER ) FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + ( - col1 ) * 15 FROM tab0 AS cor0
----
-1215
-15
-315

query I rowsort
SELECT - col0 * + - col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + + 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT 3 DIV - 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8452
SELECT 3 / - 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT + 69 * + 59 AS col2, 79 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
18 values hashing to c48714c2143d054a0506b768518c1b09

query I rowsort
SELECT DISTINCT col2 * - - col1 + - - 70 FROM tab1 AS cor0
----
1414
3266
365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT - 45 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT - 45 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 52 * col1 * - col1 * - col2 + + - col1 + - col2 + + col2 - col0 * - col2 + + col0 FROM tab0 AS cor0
----
-16034364
-228363
4552

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE 71 IN ( 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT ALL + + 24 DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL + + 24 / + col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL + 61 + + + ( - COUNT( * ) ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + 61 + + + ( - COUNT ( * ) ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL MAX( DISTINCT + ( + 12 ) ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL MAX ( DISTINCT + ( + 12 ) ) AS col1 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT ALL + 49 + 94 + - + COUNT( * ) + + + 93 AS col2, - 12 FROM tab2
----
233
-12

skipif mysql # not compatible
query II rowsort label-8462
SELECT ALL + 49 + 94 + - + COUNT ( * ) + + + 93 AS col2, - 12 FROM tab2
----
233
-12

query I rowsort
SELECT DISTINCT 57 + + + col0 FROM tab2
----
103
121
132

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8464
SELECT DISTINCT * FROM tab2 WHERE NULL > - 78 * ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8464
SELECT DISTINCT * FROM tab2 WHERE NULL > - 78 * ( + CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT col1 AS col1, + ( + ( - - col1 ) ) FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT - CAST( - MIN( - col2 ) AS SIGNED ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8466
SELECT - CAST ( - MIN ( - col2 ) AS INTEGER ) FROM tab0
----
-99

query I rowsort
SELECT - col0 + 54 + - + col2 AS col2 FROM tab1 WHERE NULL NOT IN ( + 75 * - col2 * + 77, col0, col2 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT COUNT( - 16 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8468
SELECT COUNT ( - 16 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col0 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT DISTINCT col2 DIV - 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT col2 / - 78 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * - col2 * + - 58 * - - 81 AS col0 FROM tab2
----
15804072
2485242
7516800

onlyif mysql # aggregate syntax: 
query II rowsort label-8472
SELECT ALL + COUNT( * ), 7 AS col2 FROM tab0 AS cor0
----
3
7

skipif mysql # not compatible
query II rowsort label-8472
SELECT ALL + COUNT ( * ), 7 AS col2 FROM tab0 AS cor0
----
3
7

query I rowsort
SELECT ALL - col0 + - - 42 * + - col1 FROM tab0 WHERE NOT - 98 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT - CAST( + - MIN( 92 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8475
SELECT - CAST ( + - MIN ( 92 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT + - 13 * + col2 AS col1, 21 FROM tab2 AS cor0
----
-299
21
-520
21
-754
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT - 3 = - + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - 3 = - + col0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 44 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col0, - col1 * col2 FROM tab1
----
51
-1344
85
-295
91
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT - COUNT( * ) * + - 21 * - COUNT( ALL - col2 ) col1 FROM tab2
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8481
SELECT DISTINCT - COUNT ( * ) * + - 21 * - COUNT ( ALL - col2 ) col1 FROM tab2
----
-189

query I rowsort
SELECT DISTINCT ( + - 41 ) FROM tab0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT + 0 DIV 20 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT + 0 / 20 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8484
SELECT + col2 AS col2, - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8484
SELECT + col2 AS col2, - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT + COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8485
SELECT + COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8486
SELECT - SUM( ALL + 6 ) DIV - COUNT( * ) + + ( ( - 53 ) ) AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8486
SELECT - SUM ( ALL + 6 ) / - COUNT ( * ) + + ( ( - 53 ) ) AS col0 FROM tab2 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT 19 * 25 + + + CAST( SUM( - 80 ) AS SIGNED ) FROM tab1 cor0
----
235

skipif mysql # not compatible
query I rowsort label-8487
SELECT 19 * 25 + + + CAST ( SUM ( - 80 ) AS INTEGER ) FROM tab1 cor0
----
235

query II rowsort
SELECT + col0 + 46 AS col2, + col0 + - - col0 AS col0 FROM tab2
----
110
128
121
150
92
92

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 >= - - 69 * + 16
----

query II rowsort
SELECT ALL col0, + col2 FROM tab0 WHERE NULL BETWEEN NULL AND + 49
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + + col0 * + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query III rowsort
SELECT * FROM tab0 WHERE + ( - + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT COUNT( DISTINCT 54 ) AS col2 FROM tab2 AS cor0 WHERE - 61 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8495
SELECT COUNT ( DISTINCT 54 ) AS col2 FROM tab2 AS cor0 WHERE - 61 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL - COUNT( ALL - 52 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - COUNT ( ALL - 52 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + 69 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8498
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + - 62 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-62
-62
-62

query I rowsort
SELECT + 60 * col2 + - - col2 + 39 * + 19 + - - col2 + - - col1 + + + 96 * + 31 * - + col0 FROM tab0
----
-257530
-281792
-40904

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL + MAX( ALL + + 68 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + MAX ( ALL + + 68 ) FROM tab1
----
68

query I rowsort
SELECT DISTINCT 54 + - ( col2 ) FROM tab0
----
-45
44
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 34 * - col1 + - ( + 38 ) col1 FROM tab2
----
167514
170812
79726

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL + 93 + COUNT( * ) AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + 93 + COUNT ( * ) AS col0 FROM tab2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 * + col2 col2 FROM tab1
----
3540
4692
9312

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT + - MIN( ALL + 33 ) - - + 54 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + - MIN ( ALL + 33 ) - - + 54 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + + 81 * + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8508
SELECT + + 81 * + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
729

query I rowsort
SELECT 71 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT 38 DIV - + COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8510
SELECT 38 / - + COUNT ( * ) FROM tab2
----
-12

query I rowsort
SELECT ALL - 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT ALL 72 DIV + - 82 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8512
SELECT ALL 72 / + - 82 col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - col2, col0 AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8514
SELECT - - CAST( NULL AS SIGNED ) AS col0, - col1 * - + col2 AS col2 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
query II rowsort label-8514
SELECT - - CAST ( NULL AS INTEGER ) AS col0, - col1 * - + col2 AS col2 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8516
SELECT - 40, 22 * - + COUNT( * ) col0 FROM tab2 AS cor0
----
-40
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8516
SELECT - 40, 22 * - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-40
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + COUNT( ALL - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8517
SELECT + COUNT ( ALL - col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 82 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT + ( + - CAST( - col1 AS SIGNED ) ) * ( - + col0 ) + - + col0 * col2 FROM tab0
----
-1920
-2697
-9700

skipif mysql # not compatible
query I rowsort label-8519
SELECT + ( + - CAST ( - col1 AS INTEGER ) ) * ( - + col0 ) + - + col0 * col2 FROM tab0
----
-1920
-2697
-9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT + + CAST( + + 69 AS SIGNED ) FROM tab2 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-8520
SELECT + + CAST ( + + 69 AS INTEGER ) FROM tab2 AS cor0
----
69
69
69

query II rowsort
SELECT ALL 27 * + col0 AS col1, 8 - - + 96 AS col2 FROM tab0 AS cor0
----
2349
104
2619
104
405
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - ( + col2 ) AS col0, 76 + + + 93 * + - col2 + col2 col0 FROM tab1
----
0
-5352
0
-6180
0
-8756

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + + col0 ) + - - col1 + col2 + col1 > 16 / - 9
----
51
14
96
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 59, - 71 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to cab1b2d3b28924552c4d333ea6e24f85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT CAST( - col2 AS SIGNED ) + - ( col2 ) * - col2 FROM tab0
----
2162
90
9702

skipif mysql # not compatible
query I rowsort label-8525
SELECT CAST ( - col2 AS INTEGER ) + - ( col2 ) * - col2 FROM tab0
----
2162
90
9702

query I rowsort
SELECT col2 + - 49 FROM tab2
----
-26
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT 45 + COUNT( * ) * 5 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-8527
SELECT 45 + COUNT ( * ) * 5 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT COUNT( * ), - 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-54

skipif mysql # not compatible
query II rowsort label-8528
SELECT COUNT ( * ), - 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-54

query I rowsort
SELECT + + col2 * - + col1 + - 92 + 87 AS col1 FROM tab2 AS cor0
----
-1178
-3085
-3891

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL + MIN( col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND 7
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 98 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL + col1 + - col0 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL + col1 + - col0 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 < - col0
----
15
81
47
97
1
99

query I rowsort
SELECT - 3 * col0 FROM tab0 WHERE - 69 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 31 + + 52
----

query I rowsort
SELECT ALL ( - - 39 ) * - 57 + 1 FROM tab1
----
-2222
-2222
-2222

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 - 89 + - + 20 IS NOT NULL
----

query I rowsort
SELECT ALL + + 74 FROM tab2 cor0
----
74
74
74

query I rowsort
SELECT ( - 46 ) AS col0 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL MIN( DISTINCT + 96 ) col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8542
SELECT ALL MIN ( DISTINCT + 96 ) col2 FROM tab2 AS cor0
----
96

query I rowsort
SELECT ALL 5 - + + col1 FROM tab1 AS cor0 WHERE NOT + 98 IS NULL
----
-42
-9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT ALL + 98 DIV - + col2 AS col0 FROM tab0 cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + 98 / - + col2 AS col0 FROM tab0 cor0
----
-2
-9
0

query I rowsort
SELECT DISTINCT + 59 * - - col1 FROM tab0 AS cor0
----
1239
4779
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL 73 * COUNT( * ) - 34 + - + ( 31 ) FROM tab0 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL 73 * COUNT ( * ) - 34 + - + ( 31 ) FROM tab0 AS cor0
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT DISTINCT col0 DIV col1 * - - col0 FROM tab2
----
0
75

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT col0 / col1 * - - col0 FROM tab2
----
0
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8548
SELECT COUNT( * ), - MAX( - + col1 ) + + - COUNT( * ) AS col2 FROM tab0
----
3
-2

skipif mysql # not compatible
query II rowsort label-8548
SELECT COUNT ( * ), - MAX ( - + col1 ) + + - COUNT ( * ) AS col2 FROM tab0
----
3
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 70 ) col0 FROM tab1
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 / - 13 + - + col0 * + + 66 <= NULL
----

query II rowsort
SELECT DISTINCT + 46, col2 + + 27 AS col2 FROM tab0
----
46
126
46
37
46
74

query I rowsort
SELECT ALL ( + 22 ) AS col1 FROM tab2
----
22
22
22

query I rowsort
SELECT DISTINCT col2 + ( + - col0 ) FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + - 41 * + + 40 FROM tab2 AS cor0
----
-1640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT - - CAST( NULL AS SIGNED ) + + col0 - - + ( - - col1 ) + col0 - col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT - - CAST ( NULL AS INTEGER ) + + col0 - - + ( - - col1 ) + col0 - col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ( + SUM( ALL - - col1 ) ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8557
SELECT ( + SUM ( ALL - - col1 ) ) col0 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 - - 23 col2 FROM tab1 cor0
----
4300
448
737

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT + - COUNT( * ) - + 69 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8559
SELECT + - COUNT ( * ) - + 69 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - + col1 - - - col2 + - + col2 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-5102
-5138
-6371

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 < col2
----
97
1
99

query I rowsort
SELECT - 59 - + col2 FROM tab0 AS cor0
----
-106
-158
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT - + col2 - + + col2 * - - CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT - + col2 - + + col2 * - - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 64 - + col2 * col1 FROM tab2 AS cor0
----
-1109
-3016
-3822

query I rowsort
SELECT - 68 + - col1 FROM tab1 AS cor0
----
-115
-73
-82

query II rowsort
SELECT DISTINCT + col0 AS col2, 67 + + 64 AS col0 FROM tab0
----
15
131
87
131
97
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) + + col1 + - 44 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) ) + + col1 + - 44 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + - col1 + - + ( - + col1 ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE + col0 IS NULL
----

query II rowsort
SELECT ALL + col1, + col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL 73 + - 55 FROM tab1
----
18
18
18

query I rowsort
SELECT DISTINCT col2 + 49 AS col2 FROM tab1
----
108
117
145

query I rowsort
SELECT ALL - ( + 2 ) AS col1 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + + MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8574
SELECT + + MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL - MIN( - col0 ) * + MAX( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
5625

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - MIN ( - col0 ) * + MAX ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
5625

query I rowsort
SELECT ALL 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query II rowsort
SELECT + col2 * 16 AS col2, - col0 AS col1 FROM tab2
----
368
-46
640
-64
928
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8578
SELECT COUNT( ALL + + col2 ) col1, 10 AS col2 FROM tab2
----
3
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8578
SELECT COUNT ( ALL + + col2 ) col1, 10 AS col2 FROM tab2
----
3
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT ALL - COUNT( ALL ( 67 ) ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - COUNT ( ALL ( 67 ) ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * - + col2 * + - col2 + + 67 FROM tab0 cor0
----
33202
8767
950764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 42 + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 42 + col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 89 * + 91 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 51 + col1 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
132
52
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - + ( + 21 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8585
SELECT - + ( + 21 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 32 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT ALL 64 + 64 DIV - COUNT( * ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL 64 + 64 / - COUNT ( * ) FROM tab1
----
43

query I rowsort
SELECT DISTINCT 82 * - - col0 AS col2 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT ( - 83 ) AS col2 FROM tab0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT - COUNT( col1 ) * + COUNT( * ) * - - 86 + - - ( - 75 ) FROM tab2 AS cor0
----
-849

skipif mysql # not compatible
query I rowsort label-8590
SELECT - COUNT ( col1 ) * + COUNT ( * ) * - - 86 + - - ( - 75 ) FROM tab2 AS cor0
----
-849

query I rowsort
SELECT ALL - col1 + + - ( - col2 ) + + + 93 AS col1 FROM tab1 AS cor0
----
114
147
175

query I rowsort
SELECT DISTINCT 71 * - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-3479

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL 68 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - MAX( + 87 ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8596
SELECT - MAX ( + 87 ) AS col0 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT SUM( DISTINCT - + 78 ) - - 26 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT SUM ( DISTINCT - + 78 ) - - 26 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + 37 * SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
7215

skipif mysql # not compatible
query I rowsort label-8598
SELECT + 37 * SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
7215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8599
SELECT - + MAX( col1 ) DIV 78 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8599
SELECT - + MAX ( col1 ) / 78 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8600
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * + 85 * - - CAST( NULL AS DECIMAL ) <> + col1 )
----

skipif mysql # not compatible
query III rowsort label-8600
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * + 85 * - - CAST ( NULL AS REAL ) <> + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ( + COUNT( * ) ) - - 67 + COUNT( * ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-8601
SELECT ( + COUNT ( * ) ) - - 67 + COUNT ( * ) AS col0 FROM tab2
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-8602
SELECT + ( + 39 ) * ( col0 ) - - 45 AS col2, 79 DIV + - col1 FROM tab2
----
1839
-1
2541
-1
2970
-1

skipif mysql # not compatible
query II rowsort label-8602
SELECT + ( + 39 ) * ( col0 ) - - 45 AS col2, 79 / + - col1 FROM tab2
----
1839
-1
2541
-1
2970
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8603
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 WHERE NULL < 15 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 WHERE NULL < 15 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL COUNT( + 6 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL COUNT ( + 6 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT + CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8605
SELECT + CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT 77 * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-693

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT 77 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-693

query I rowsort
SELECT + 55 * - + 31 AS col1 FROM tab1
----
-1705
-1705
-1705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT + col2 FROM tab1 WHERE NOT - + col1 NOT IN ( + + col2 * - col0, + col0, + col0 * - 80 * col2 * - - col2, - CAST( + 85 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8608
SELECT + col2 FROM tab1 WHERE NOT - + col1 NOT IN ( + + col2 * - col0, + col0, + col0 * - 80 * col2 * - - col2, - CAST ( + 85 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 77, + col1, + 65, 59 )
----

query I rowsort
SELECT - ( 84 ) FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - ( + - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT DISTINCT col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT ALL - 14 - 49 - - CAST( + ( + + 65 ) AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 WHERE ( - 46 ) <= - CAST( - col2 AS SIGNED ) - col1
----
132

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - 14 - 49 - - CAST ( + ( + + 65 ) AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 WHERE ( - 46 ) <= - CAST ( - col2 AS INTEGER ) - col1
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 + col0 AS col1, col1 + - - col1 col1 FROM tab2
----
111
154
122
134
93
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT 74 * - ( + COUNT( * ) ) col1 FROM tab1
----
-222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8616
SELECT DISTINCT 74 * - ( + COUNT ( * ) ) col1 FROM tab1
----
-222

query I rowsort
SELECT DISTINCT - col2 * col0 + + col2 AS col2 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL + MIN( - ( col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + MIN ( - ( col0 ) ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT COUNT( * ) + + 29 col2 FROM tab2
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8619
SELECT COUNT ( * ) + + 29 col2 FROM tab2
----
32

query II rowsort
SELECT DISTINCT 93 + - - 16, + col1 FROM tab1
----
109
14
109
47
109
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8621
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN CAST( col2 AS DECIMAL ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8621
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN CAST ( col2 AS REAL ) AND NULL )
----

query I rowsort
SELECT DISTINCT + + 80 * - 78 AS col2 FROM tab0 AS cor0
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT - MIN( DISTINCT + 29 ) AS col2 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT - MIN ( DISTINCT + 29 ) AS col2 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT + 60 * - - col0 AS col2 FROM tab0
----
5220
5820
900

query I rowsort
SELECT ALL col2 + + - col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 40 - - - col2 + - 40 FROM tab0 AS cor0
----
-127
-179
-90

query I rowsort
SELECT col2 * - + col0 + - 83 + + col0 AS col2 FROM tab0 AS cor0
----
-773
-866
-9589

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL COUNT( DISTINCT + 5 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL COUNT ( DISTINCT + 5 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8629
SELECT - COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - + 96 FROM tab0 WHERE NOT + col0 IS NULL
----
-96
-96
-96

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT SUM( ALL + + col0 ) * 81 FROM tab2
----
14985

skipif mysql # not compatible
query I rowsort label-8632
SELECT SUM ( ALL + + col0 ) * 81 FROM tab2
----
14985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT DISTINCT ( - + CAST( - col1 AS SIGNED ) ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT ( - + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND + 93 + - - ( - 31 ) + col0 / - col0 * + col2
----

query I rowsort
SELECT col1 * - 42 FROM tab1
----
-1974
-210
-588

query I rowsort
SELECT ALL + col1 * 1 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL col2 * - col1 * + col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL + MAX( + - 57 ) AS col0 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + MAX ( + - 57 ) AS col0 FROM tab1 AS cor0
----
-57

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE + 45 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT 89 * + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

skipif mysql # not compatible
query I rowsort label-8640
SELECT 89 * + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

query I rowsort
SELECT - col1 + col2 * - - 66 * + col0 FROM tab1 AS cor0
----
323122
330985
408361

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT DISTINCT col1 + - col0 DIV + col0 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT col1 + - col0 / + col0 FROM tab2
----
50
66
76

query III rowsort
SELECT ALL * FROM tab2 WHERE - 81 BETWEEN + - col0 AND 92
----

query I rowsort
SELECT col2 * - 22 FROM tab2 WHERE col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 10 col2, - 59 * - - col1 * + col1 FROM tab0 WHERE + + col1 * + - col1 * + 70 IS NOT NULL
----
10
-26019
10
-387099
10
-59

query I rowsort
SELECT DISTINCT 57 + col2 FROM tab0
----
104
156
67

query II rowsort
SELECT DISTINCT + 7, col0 FROM tab2
----
7
46
7
64
7
75

query I rowsort
SELECT ALL col2 + - - 8 FROM tab2
----
31
48
66

query III rowsort
SELECT * FROM tab1 WHERE - 65 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col1 FROM tab2
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT + 37 * - SUM( DISTINCT + + 51 ) AS col1 FROM tab2
----
-1887

skipif mysql # not compatible
query I rowsort label-8653
SELECT + 37 * - SUM ( DISTINCT + + 51 ) AS col1 FROM tab2
----
-1887

onlyif mysql # aggregate syntax: 
query II rowsort label-8654
SELECT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0 cor0 WHERE + col0 <= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8654
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 cor0 WHERE + col0 <= NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT - SUM( ALL + 46 ) + COUNT( * ) AS col1 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-8655
SELECT - SUM ( ALL + 46 ) + COUNT ( * ) AS col1 FROM tab0
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT 1 + - COUNT( + 61 ) DIV + 84 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8656
SELECT 1 + - COUNT ( + 61 ) / + 84 FROM tab2
----
1

query I rowsort
SELECT + 38 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + col0 + - - col2 AS col1 FROM tab1
----
144
147
159

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NULL IS NOT NULL ) )
----

query II rowsort
SELECT ALL - 51 * - col2 AS col0, + col1 FROM tab2
----
1173
51
2040
77
2958
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL - 18 - COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - 18 - COUNT ( * ) FROM tab2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8662
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <> - CAST( 4 AS SIGNED ) + + + col0
----

skipif mysql # not compatible
query III rowsort label-8662
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <> - CAST ( 4 AS INTEGER ) + + + col0
----

query I rowsort
SELECT DISTINCT col0 * + + 73 FROM tab1
----
3723
6205
6643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT CAST( NULL AS SIGNED ) * - 89 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT CAST ( NULL AS INTEGER ) * - 89 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + - 9 * - 82 AS col0 FROM tab0
----
34686
73062
7380

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT MIN( - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT MIN ( - col2 ) AS col2 FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * - col1 col1 FROM tab2
----
459
603
693

query I rowsort
SELECT DISTINCT + col2 * - 40 AS col1 FROM tab2
----
-1600
-2320
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8669
SELECT DISTINCT - + CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT - + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8670
SELECT DISTINCT col0, + ( CAST( col2 AS SIGNED ) ) DIV + + 56 + + + col0 AS col1 FROM tab1 AS cor0
----
51
52
85
86
91
92

skipif mysql # not compatible
query II rowsort label-8670
SELECT DISTINCT col0, + ( CAST ( col2 AS INTEGER ) ) / + + 56 + + + col0 AS col1 FROM tab1 AS cor0
----
51
52
85
86
91
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT + - MAX( + + 55 ) + + 57 AS col0 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-8671
SELECT + - MAX ( + + 55 ) + + 57 AS col0 FROM tab0 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT - MAX( + col0 ) + - 39 AS col0 FROM tab1 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-8672
SELECT - MAX ( + col0 ) + - 39 AS col0 FROM tab1 AS cor0
----
-130

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * - col2 NOT BETWEEN + col0 AND - 85 * 44
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 45 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT - - COUNT( - - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - - COUNT ( - - col1 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT SUM( ALL - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8677
SELECT SUM ( ALL - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + - col2 * + + col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT MAX( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 75 * + 57 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8681
SELECT - + 70 AS col1, MAX( ALL col1 ) - + + 97 FROM tab0 AS cor0
----
-70
-16

skipif mysql # not compatible
query II rowsort label-8681
SELECT - + 70 AS col1, MAX ( ALL col1 ) - + + 97 FROM tab0 AS cor0
----
-70
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT 5 + col1 DIV + col2 FROM tab2 cor0
----
6
6
7

skipif mysql # not compatible
query I rowsort label-8682
SELECT 5 + col1 / + col2 FROM tab2 cor0
----
6
6
7

query I rowsort
SELECT DISTINCT + 7 + - col0 AS col1 FROM tab0
----
-8
-80
-90

query I rowsort
SELECT 43 + 75 * col0 * + - 99 AS col2 FROM tab1
----
-378632
-631082
-675632

query I rowsort
SELECT ALL col2 * - - col0 + - col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col2 FROM tab0 WHERE 5 * - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT + col1 DIV + col0 + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8687
SELECT + col1 / + col0 + + col0 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT - - MIN( - col0 ) FROM tab1 WHERE NULL IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - - MIN ( - col0 ) FROM tab1 WHERE NULL IS NULL
----
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 - - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8691
SELECT 59 AS col1, CAST( NULL AS SIGNED ) * + + 32 FROM tab2 AS cor0
----
59
NULL
59
NULL
59
NULL

skipif mysql # not compatible
query II rowsort label-8691
SELECT 59 AS col1, CAST ( NULL AS INTEGER ) * + + 32 FROM tab2 AS cor0
----
59
NULL
59
NULL
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8692
SELECT DISTINCT - 43, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-8692
SELECT DISTINCT - 43, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT MIN( col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8693
SELECT MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT DISTINCT - + col1, col1 * col1 * + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-805707
-81
-7971615

query I rowsort
SELECT ALL ( + 66 ) * - col1 FROM tab1 AS cor0
----
-3102
-330
-924

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8697
SELECT ALL + COUNT( + + 85 ) * CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8697
SELECT ALL + COUNT ( + + 85 ) * CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8698
SELECT 25 AS col2, + 67 DIV - col2 FROM tab2 AS cor0
----
25
-1
25
-1
25
-2

skipif mysql # not compatible
query II rowsort label-8698
SELECT 25 AS col2, + 67 / - col2 FROM tab2 AS cor0
----
25
-1
25
-1
25
-2

query I rowsort
SELECT DISTINCT - ( + col1 ) * + + col0 - col1 AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 <> - 86
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + 93 * + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + 64 <> NULL
----

query I rowsort
SELECT - col1 * + ( 29 ) AS col2 FROM tab1
----
-1363
-145
-406

query I rowsort
SELECT ALL + col0 * - col0 + - 19 - + + col0 * + col1 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT DISTINCT + col1 + col0 - 65 DIV - + ( col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
138
66
90

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + col1 + col0 - 65 / - + ( col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
138
66
90

query I rowsort
SELECT + 27 * + col2 FROM tab1
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT 82 * - COUNT( * ) AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-8707
SELECT 82 * - COUNT ( * ) AS col1 FROM tab1
----
-246

query I rowsort
SELECT DISTINCT col1 * 18 + + - col1 - col0 + - 78 + col1 FROM tab2 AS cor0
----
1053
1244
794

query I rowsort
SELECT DISTINCT + col2 * + + col0 * 20 + - col1 + col1 FROM tab1 AS cor0
----
100300
123760
97920

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT - COUNT( * ) col1 FROM tab2 WHERE + + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8710
SELECT - COUNT ( * ) col1 FROM tab2 WHERE + + col2 IS NULL
----
0

query I rowsort
SELECT + - 67 AS col0 FROM tab1 WHERE ( - col1 ) / - 50 - - - col1 + + + 26 IS NOT NULL
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - 26 * - 73 * + + ( + - 57 ) + - ( MAX( DISTINCT + - col0 ) ) FROM tab0
----
-108171

skipif mysql # not compatible
query I rowsort label-8712
SELECT - 26 * - 73 * + + ( + - 57 ) + - ( MAX ( DISTINCT + - col0 ) ) FROM tab0
----
-108171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + col0 col2 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8714
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT ALL + col2 * 24 + - col2 AS col0 FROM tab2 AS cor0
----
1334
529
920

query I rowsort
SELECT ALL + + col1 + + - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 10 NOT BETWEEN - - col0 + + 61 AND col1 OR NOT 65 NOT BETWEEN - - col2 / + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL - COUNT( * ) + + 24 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL - COUNT ( * ) + + 24 FROM tab1 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-8719
SELECT + col1 DIV col1, - col0 AS col0 FROM tab2
----
1
-46
1
-64
1
-75

skipif mysql # not compatible
query II rowsort label-8719
SELECT + col1 / col1, - col0 AS col0 FROM tab2
----
1
-46
1
-64
1
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8720
SELECT DISTINCT + col0 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT + col0 / CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT ALL col1 DIV + 60 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL col1 / + 60 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8722
SELECT - col0, - col1 + col0 + + col2 DIV col2 * - + ( + col0 ) AS col0 FROM tab1
----
-51
-14
-85
-5
-91
-47

skipif mysql # not compatible
query II rowsort label-8722
SELECT - col0, - col1 + col0 + + col2 / col2 * - + ( + col0 ) AS col0 FROM tab1
----
-51
-14
-85
-5
-91
-47

query II rowsort
SELECT DISTINCT - col1 + col1 AS col1, col0 AS col2 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT SUM( ALL - 41 ) AS col0 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-8724
SELECT SUM ( ALL - 41 ) AS col0 FROM tab2
----
-123

query III rowsort
SELECT * FROM tab0 WHERE + - 83 < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + - 65 - + + 17 FROM tab0
----
3038
633
6418

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT COUNT( ALL + col2 ) + + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT COUNT ( ALL + col2 ) + + COUNT ( * ) AS col0 FROM tab1
----
6

query II rowsort
SELECT DISTINCT col2, ( - col2 ) FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT + + COUNT( * ) - MAX( DISTINCT + 93 ) AS col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT + + COUNT ( * ) - MAX ( DISTINCT + 93 ) AS col0 FROM tab0 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 94 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT CAST( - col0 AS SIGNED ) * + 50 + + 15 + - - col0 AS col1 FROM tab2 cor0
----
-2239
-3121
-3660

skipif mysql # not compatible
query I rowsort label-8731
SELECT CAST ( - col0 AS INTEGER ) * + 50 + + 15 + - - col0 AS col1 FROM tab2 cor0
----
-2239
-3121
-3660

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 41 NOT BETWEEN - col2 AND + col2
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8733
SELECT ALL - 24 * - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - 24 * - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-72

query I rowsort
SELECT + 55 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col0 FROM tab1
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT + MIN( ALL + 30 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT + MIN ( ALL + 30 ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT DISTINCT + SUM( ALL + 89 ), - SUM( ALL - col1 ) col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 * - ( - 57 ), - col1 + - - col0, + + col0 * + - col0 / + + col0 * - 56 * + 99 - - col2 - - - col1, + col1 )
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8739
SELECT DISTINCT + SUM ( ALL + 89 ), - SUM ( ALL - col1 ) col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 * - ( - 57 ), - col1 + - - col0, + + col0 * + - col0 / + + col0 * - 56 * + 99 - - col2 - - - col1, + col1 )
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab1 cor0
----
-16

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 35 BETWEEN - + 36 AND - col2 * + ( + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT - 46 AS col1 FROM tab0 cor0 WHERE NOT + col2 * - col1 IS NULL
----
-46
-46
-46

query I rowsort
SELECT - 69 * - col0 AS col1 FROM tab2
----
3174
4416
5175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL ( + 84 ) FROM tab2
----
84
84
84

query I rowsort
SELECT + AVG ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col1 FROM tab2 cor0
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8749
SELECT + col2 + - col2 DIV + 25 AS col0 FROM tab1 AS cor0
----
57
66
93

skipif mysql # not compatible
query I rowsort label-8749
SELECT + col2 + - col2 / + 25 AS col0 FROM tab1 AS cor0
----
57
66
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8750
SELECT AVG ( ALL - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT AVG ( ALL - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT SUM( - col2 ) FROM tab0 WHERE NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT SUM ( - col2 ) FROM tab0 WHERE NULL IN ( col2 )
----
NULL

query I rowsort
SELECT ALL 1 * + col0 AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 80 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 48 ) * + col1 FROM tab2
----
2448
3216
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT + SUM( - 21 ) FROM tab2 WHERE NOT ( + CAST( + 71 AS SIGNED ) ) <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT + SUM ( - 21 ) FROM tab2 WHERE NOT ( + CAST ( + 71 AS INTEGER ) ) <> ( NULL )
----
NULL

query I rowsort
SELECT ALL - col2 * - 96 FROM tab1
----
5664
6528
9216

query III rowsort
SELECT * FROM tab2 WHERE - col0 / + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 86 * 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT IN ( 51 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT - col0 * CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT - col0 * CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 43 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT ALL + col1 + CAST( - ( ( col1 ) ) AS SIGNED ) * + col0 FROM tab2
----
-2295
-4851
-4958

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + col1 + CAST ( - ( ( col1 ) ) AS INTEGER ) * + col0 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT 22 DIV col1 FROM tab0
----
0
1
22

skipif mysql # not compatible
query I rowsort label-8763
SELECT 22 / col1 FROM tab0
----
0
1
22

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + + 39 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE 56 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - 44 * - COUNT( * ) - COUNT( * ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - 44 * - COUNT ( * ) - COUNT ( * ) FROM tab2
----
129

query I rowsort
SELECT DISTINCT ( + 38 ) AS col1 FROM tab1
----
38

query I rowsort
SELECT ALL - 79 + 8 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT - 49 AS col0 FROM tab2 WHERE NOT 11 IS NULL
----
-49
-49
-49

query I rowsort
SELECT - 78 * - col2 AS col2 FROM tab1
----
4602
5304
7488

query I rowsort
SELECT + col2 * - 31 FROM tab1
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT + 20 * COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + 20 * COUNT ( * ) FROM tab1
----
60

query I rowsort
SELECT + 8 * ( - col2 ) + + 61 * - 87 FROM tab2
----
-5491
-5627
-5771

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0 * 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + COUNT( * ) + ( 52 ) AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-8775
SELECT + COUNT ( * ) + ( 52 ) AS col1 FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL - MAX( ALL + 70 ) AS col1 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - MAX ( ALL + 70 ) AS col1 FROM tab1
----
-70

query III rowsort
SELECT * FROM tab0 WHERE - col2 + col2 >= ( 66 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 17 / - col0 < - col2 * - 69 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT col1 AS col0 FROM tab2 WHERE - col0 + - col0 / 6 NOT BETWEEN ( ( + CAST( col2 AS SIGNED ) ) * col0 ) AND ( NULL )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8780
SELECT col1 AS col0 FROM tab2 WHERE - col0 + - col0 / 6 NOT BETWEEN ( ( + CAST ( col2 AS INTEGER ) ) * col0 ) AND ( NULL )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT ALL col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 49 NOT BETWEEN - col2 AND - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT MIN( ALL 6 ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8783
SELECT MIN ( ALL 6 ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT 42 * + col2 AS col2 FROM tab1 AS cor0
----
2478
2856
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT SUM( 33 ) AS col1 FROM tab1 AS cor0 WHERE NOT 23 / + col0 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-8785
SELECT SUM ( 33 ) AS col1 FROM tab1 AS cor0 WHERE NOT 23 / + col0 IS NULL
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 96 + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 52 + - 82 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - col2 AND 47
----

query I rowsort
SELECT ( - col2 ) * + col0 + + col0 FROM tab1 AS cor0 WHERE NOT - 10 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT MAX( - col1 ) FROM tab2 cor0 WHERE NOT + 82 * col2 + 99 BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT MAX ( - col1 ) FROM tab2 cor0 WHERE NOT + 82 * col2 + 99 BETWEEN col1 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT - + col0 DIV + 72 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8791
SELECT - + col0 / + 72 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8792
SELECT + 16 DIV + MIN( DISTINCT col0 * - 39 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8792
SELECT + 16 / + MIN ( DISTINCT col0 * - 39 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + 72 AS col0 FROM tab0 cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT COUNT( - 33 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8794
SELECT COUNT ( - 33 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL + SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 = + col2 * - col0 + + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT - CAST( - 17 AS SIGNED ) AS col1 FROM tab2
----
17
17
17

skipif mysql # not compatible
query I rowsort label-8797
SELECT - CAST ( - 17 AS INTEGER ) AS col1 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ( + MIN( + 86 ) ) * + COUNT( * ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-8798
SELECT ( + MIN ( + 86 ) ) * + COUNT ( * ) FROM tab0
----
258

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab1 WHERE ( + col0 * 31 ) BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + col2 + - 95 * - 20 FROM tab0
----
1910
1947
1999

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / - col2 > ( 0 + 85 / - 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT 80 + 62 * COUNT( * ) AS col1 FROM tab2
----
266

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT 80 + 62 * COUNT ( * ) AS col1 FROM tab2
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT COUNT( * ) FROM tab0 WHERE NOT - 72 / - col1 BETWEEN + col0 AND col0
----
3

skipif mysql # not compatible
query I rowsort label-8804
SELECT COUNT ( * ) FROM tab0 WHERE NOT - 72 / - col1 BETWEEN + col0 AND col0
----
3

query I rowsort
SELECT col2 * 78 AS col2 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT DISTINCT + 41 * - + 12 + col0 AS col0 FROM tab0 AS cor0
----
-395
-405
-477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col2 FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT col2 + + - col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT DISTINCT - - CAST( + 91 AS SIGNED ) + + col1 * + col1 FROM tab2 AS cor0
----
2692
4580
6020

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - - CAST ( + 91 AS INTEGER ) + + col1 * + col1 FROM tab2 AS cor0
----
2692
4580
6020

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE 86 <= ( + col2 )
----
-1

query I rowsort
SELECT + 19 + + + col0 * + + 47 FROM tab2
----
2181
3027
3544

query I rowsort
SELECT + col1 + - - col0 * + + 21 FROM tab2
----
1017
1421
1642

query I rowsort
SELECT - col2 * col1 + - 24 + - 14 * - col1 AS col1 FROM tab2 AS cor0
----
-2026
-2972
-483

query I rowsort
SELECT ALL - 82 + + - 94 FROM tab2 AS cor0
----
-176
-176
-176

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 47 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 36 IN ( 0 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 IN ( + 42 + + ( col2 ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 90 / - 28 IN ( 75 )
----

query I rowsort
SELECT + - col2 * - + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT + ( - - 4 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8822
SELECT - + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT DISTINCT - + 6, COUNT( * ) + - 68 * 31 AS col1 FROM tab2 cor0
----
-6
-2105

skipif mysql # not compatible
query II rowsort label-8823
SELECT DISTINCT - + 6, COUNT ( * ) + - 68 * 31 AS col1 FROM tab2 cor0
----
-6
-2105

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT + 69 + COUNT( * ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + 69 + COUNT ( * ) FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8825
SELECT CAST( + - 69 AS SIGNED ) AS col0, + 37 + + - col0 + - col1 AS col1 FROM tab0
----
-69
-59
-69
-61
-69
-71

skipif mysql # not compatible
query II rowsort label-8825
SELECT CAST ( + - 69 AS INTEGER ) AS col0, + 37 + + - col0 + - col1 AS col1 FROM tab0
----
-69
-59
-69
-61
-69
-71

query I rowsort
SELECT ALL + col0 * + 55 * - 41 + - 4 + - col1 * col1 AS col2 FROM tab0
----
-196630
-218740
-40390

query I rowsort
SELECT ALL col1 * 32 FROM tab0
----
2592
32
672

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( - ( - col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT CAST( + COUNT( * ) AS SIGNED ) - - - ( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - - - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT ALL CAST( NULL AS SIGNED ) * + 43 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL CAST ( NULL AS INTEGER ) * + 43 + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - - col2 * - col2 * col1 + + col2 ) = NULL
----

query I rowsort
SELECT 4 * + - ( + 6 ) AS col0 FROM tab1
----
-24
-24
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8833
SELECT ALL + - 52 DIV ( + + COUNT( * ) ) DIV 80 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + - 52 / ( + + COUNT ( * ) ) / 80 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8834
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <= ( + col0 - - CAST( NULL AS DECIMAL ) + col1 / col0 )
----

skipif mysql # not compatible
query III rowsort label-8834
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <= ( + col0 - - CAST ( NULL AS REAL ) + col1 / col0 )
----

query I rowsort
SELECT DISTINCT - - 42 AS col0 FROM tab1 AS cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - - col0 / + + 66 * 6 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - - 55 * - SUM( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
10725

skipif mysql # not compatible
query I rowsort label-8837
SELECT - - 55 * - SUM ( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
10725

query I rowsort
SELECT ALL - 99 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( + col1, col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT MIN( 9 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8840
SELECT MIN ( 9 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT - + MIN( + 63 ) AS col2 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8841
SELECT - + MIN ( + 63 ) AS col2 FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT - MIN( + col0 ) AS col1 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT - MIN ( + col0 ) AS col1 FROM tab2 cor0
----
-46

query I rowsort
SELECT DISTINCT - ( - 71 ) AS col2 FROM tab1 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col2 FROM tab0 AS cor0
----
34
34
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 > col2
----
15
81
47
97
1
99

query I rowsort
SELECT 26 AS col1 FROM tab2 cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT - CAST( - 58 AS SIGNED ) FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-8847
SELECT - CAST ( - 58 AS INTEGER ) FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT ALL ( + - 14 ) FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT 77 * - 17 AS col1 FROM tab0
----
-1309
-1309
-1309

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 < col1 + + 8 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 50 AS col0 FROM tab2 WHERE - col0 > + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( + col1 ) + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + - + 56 * - col0 + + - col2 AS col0 FROM tab0
----
4883
5334
874

query I rowsort
SELECT 43 * 36 FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT + col1 + + ( - + col2 ) FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + col1 col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col2 AS col0, 79 FROM tab0 cor0
----
10
79
47
79
99
79

query I rowsort
SELECT - 1 * - ( + 96 ) + col1 AS col0 FROM tab2 AS cor0 WHERE 86 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL + 13 + - ( - COUNT( * ) ) AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + 13 + - ( - COUNT ( * ) ) AS col1 FROM tab2
----
16

query I rowsort
SELECT ALL col1 * + col0 + col0 AS col2 FROM tab2
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT COUNT( col1 ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8862
SELECT COUNT ( col1 ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8863
SELECT ALL - ( + COUNT( * ) ), - 43 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
129

skipif mysql # not compatible
query II rowsort label-8863
SELECT ALL - ( + COUNT ( * ) ), - 43 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
129

query I rowsort
SELECT DISTINCT + 44 + - col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-2
-20
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT DISTINCT + + col2 * + CAST( 44 * + col0 + ( col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT + 47 - 4 + col2 + - ( - 89 ) IS NULL
----
220320
225675
278460

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT + + col2 * + CAST ( 44 * + col0 + ( col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT + 47 - 4 + col2 + - ( - 89 ) IS NULL
----
220320
225675
278460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8866
SELECT col1 * - col0 * - - col0 + ( - - 11 ) AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-107905
NULL
-315381
NULL
-376864
NULL

skipif mysql # not compatible
query II rowsort label-8866
SELECT col1 * - col0 * - - col0 + ( - - 11 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-107905
NULL
-315381
NULL
-376864
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT ALL + 91 - 32 DIV - col1 AS col0 FROM tab2 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + 91 - 32 / - col1 AS col0 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8868
SELECT * FROM tab0 cor0 WHERE 81 >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8868
SELECT * FROM tab0 cor0 WHERE 81 >= + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 * + - col2 * - col0 + + + 75 AS col1 FROM tab0 AS cor0
----
-10500
-75615
-931416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - + 54 + + 15 col1, + ( + - 87 ) AS col0 FROM tab1
----
-25
-87
-34
-87
8
-87

query II rowsort
SELECT ALL - col2 * + col0 * - 69 AS col0, + col1 FROM tab2
----
176640
77
300150
67
73002
51

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 + - col2 * - ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 90 * - col2 AS col0 FROM tab0
----
4230
8910
900

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT COUNT( ALL - + col2 ) + - MAX( DISTINCT + ( - 25 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
28

skipif mysql # not compatible
query I rowsort label-8874
SELECT COUNT ( ALL - + col2 ) + - MAX ( DISTINCT + ( - 25 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
28

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT + MIN( ALL + - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8876
SELECT + MIN ( ALL + - col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT + 35 DIV ( - 74 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT + 35 / ( - 74 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * - - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT CAST( COUNT( DISTINCT 9 ) AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8879
SELECT CAST ( COUNT ( DISTINCT 9 ) AS INTEGER ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 + + + col2 col1 FROM tab1 AS cor0 WHERE NOT 46 > 62
----
-12
-21
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT DISTINCT 86 DIV - - col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT 86 / - - col2 FROM tab2
----
1
2
3

query I rowsort
SELECT 70 * + 59 * + 64 FROM tab2
----
264320
264320
264320

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT 51 * - col0 * + - col0 AS col1 FROM tab2 AS cor0
----
107916
208896
286875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT - CAST( NULL AS SIGNED ) / - + 59 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT - CAST ( NULL AS INTEGER ) / - + 59 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT + + 24 / - - col1 * - col1 + + 42 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT + + 24 / - - col1 * - col1 + + 42 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 70 + - 76 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL - ( SUM( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - ( SUM ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT col2, - ( - col0 ) AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT DISTINCT + col1 + - col0 DIV col0 * col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT + col1 + - col0 / col0 * col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - 73 * + + COUNT( * ) AS col1 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-8891
SELECT - 73 * + + COUNT ( * ) AS col1 FROM tab2
----
-219

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 49 * + - 26 IN ( + + 70 - + col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + ( - col2 ) FROM tab1 cor0
----
-118
-136
-192

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL 42 * MAX( ALL + + ( - col0 ) ) * - - COUNT( * ) + + 36 AS col0 FROM tab2
----
-5760

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL 42 * MAX ( ALL + + ( - col0 ) ) * - - COUNT ( * ) + + 36 AS col0 FROM tab2
----
-5760

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE col2 * + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 - col2 * + 78 AS col2 FROM tab0 AS cor0
----
-3651
-693
-7625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT ALL + MIN( DISTINCT + col1 ) * + - 41 DIV 14 - - + 21 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + MIN ( DISTINCT + col1 ) * + - 41 / 14 - - + 21 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8900
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 ) - col1 * + CAST( NULL AS SIGNED ) <= + - col1
----

skipif mysql # not compatible
query III rowsort label-8900
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 ) - col1 * + CAST ( NULL AS INTEGER ) <= + - col1
----

query I rowsort
SELECT + 39 * col0 FROM tab1 cor0
----
1989
3315
3549

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 > + col1 * + 10 * 6
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT - ( CAST( - col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8903
SELECT - ( CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 * + ( + 72 ) * - + 74 IS NULL )
----

query I rowsort
SELECT - 92 * + - ( - - col2 ) * - 51 FROM tab0
----
-220524
-464508
-46920

query I rowsort
SELECT ALL + 17 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT + col0 DIV + 59 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8907
SELECT + col0 / + 59 FROM tab1
----
0
1
1

query I rowsort
SELECT 20 FROM tab1, tab0 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 82 * - col0 + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + col0 ) col2, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 / col1 col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 52 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - + 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8914
SELECT + col2 AS col1, + CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8914
SELECT + col2 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT ALL 50 DIV col2 + + + col2 FROM tab2
----
25
41
58

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL 50 / col2 + + + col2 FROM tab2
----
25
41
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8916
SELECT DISTINCT COUNT( * ) DIV - 33 + + + 97 - + SUM( DISTINCT - ( - ( + - col1 ) ) ) - - + ( COUNT( ALL + col2 ) ) AS col2 FROM tab1 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT COUNT ( * ) / - 33 + + + 97 - + SUM ( DISTINCT - ( - ( + - col1 ) ) ) - - + ( COUNT ( ALL + col2 ) ) AS col2 FROM tab1 AS cor0
----
166

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT COUNT( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8918
SELECT COUNT ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * - + col1 NOT BETWEEN - - 1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT - - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8920
SELECT - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + - col0 * + 95 FROM tab0 AS cor0
----
-1425
-8265
-9215

query I rowsort
SELECT + col1 * - col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE col2 * - - 75 * - col2 IN ( - - 63 + - col0 / + col2, - col1 * col1 + col0 * - ( 24 ) * - - col2 * col2 )
----

query I rowsort
SELECT - - 87 * col0 FROM tab1 AS cor0
----
4437
7395
7917

query I rowsort
SELECT + col0 + + + 7 - - col1 * 41 AS col1 FROM tab2
----
2144
2829
3228

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL 11 * + + 34 * MAX( - 95 ) + 15 AS col2 FROM tab1
----
-35515

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL 11 * + + 34 * MAX ( - 95 ) + 15 AS col2 FROM tab1
----
-35515

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT ( - + COUNT( ALL - ( col0 ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT ( - + COUNT ( ALL - ( col0 ) ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL 69 + + + 62 FROM tab2
----
131
131
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) col2 FROM tab1 WHERE + col2 BETWEEN NULL AND - + 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL + 73 * MIN( + 58 ) * ( - + 41 ) + ( CAST( - MIN( 77 ) AS SIGNED ) ) - + + 80 FROM tab1
----
-173751

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + 73 * MIN ( + 58 ) * ( - + 41 ) + ( CAST ( - MIN ( 77 ) AS INTEGER ) ) - + + 80 FROM tab1
----
-173751

query I rowsort
SELECT DISTINCT + + 15 - - col2 AS col2 FROM tab1 AS cor0
----
111
74
83

query I rowsort
SELECT + + col0 * + 85 AS col2 FROM tab0 AS cor0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL ( + COUNT( - 5 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL ( + COUNT ( - 5 ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT SUM( DISTINCT - col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8933
SELECT SUM ( DISTINCT - col1 ) FROM tab2 cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8934
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-8935
SELECT ALL + col2, - col2 DIV col0 AS col1, 12 FROM tab2 AS cor0
----
9 values hashing to 3f0f68cc1463e2ed7e3279b9621190e1

skipif mysql # not compatible
query III rowsort label-8935
SELECT ALL + col2, - col2 / col0 AS col1, 12 FROM tab2 AS cor0
----
9 values hashing to 3f0f68cc1463e2ed7e3279b9621190e1

query I rowsort
SELECT ALL 47 FROM tab2 AS cor0 WHERE col2 * + col2 IS NOT NULL
----
47
47
47

query II rowsort
SELECT ALL col2 AS col2, + 30 AS col0 FROM tab1 AS cor0
----
59
30
68
30
96
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT - MAX( - - ( - 57 ) ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT - MAX ( - - ( - 57 ) ) FROM tab1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 * 44 * - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8939
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 * 44 * - col1 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8943
SELECT - col2 / - + 45 * + - col2 * - CAST( NULL AS SIGNED ) AS col1, - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-8943
SELECT - col2 / - + 45 * + - col2 * - CAST ( NULL AS INTEGER ) AS col1, - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL - - col2 / - + 21 FROM tab1 WHERE NOT NULL > col0 * + 28 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col0 * col2 + + col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT col0 * - - col0 - + col1 - - col2 AS col1 FROM tab0 AS cor0
----
191
7558
9507

query I rowsort
SELECT ALL - + ( - 25 ) FROM tab0 AS cor0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8949
SELECT * FROM tab1 cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8949
SELECT * FROM tab1 cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL CAST( - 11 AS SIGNED ) * - + col2 AS col2 FROM tab0 cor0
----
1089
110
517

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL CAST ( - 11 AS INTEGER ) * - + col2 AS col2 FROM tab0 cor0
----
1089
110
517

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT MIN( ALL - + 3 ) + COUNT( * ) - - MAX( ALL - 1 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8951
SELECT MIN ( ALL - + 3 ) + COUNT ( * ) - - MAX ( ALL - 1 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab2 WHERE NOT 13 * + - col1 + - col0 + + col1 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT + + MAX( col2 ) + - 19 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8953
SELECT + + MAX ( col2 ) + - 19 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT + 45 + - - col0 AS col2 FROM tab1 AS cor0
----
130
136
96

query I rowsort
SELECT - - col1 + col0 + + col1 FROM tab1 AS cor0
----
185
79
95

query I rowsort
SELECT + 59 FROM tab1 AS cor0 WHERE 73 - + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 48 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + MIN( - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8959
SELECT + MIN ( - col0 ) AS col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - SUM( ALL 64 ) + MIN( DISTINCT + col2 ) * - 91 AS col0 FROM tab1
----
-5561

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - SUM ( ALL 64 ) + MIN ( DISTINCT + col2 ) * - 91 AS col0 FROM tab1
----
-5561

query I rowsort
SELECT DISTINCT col2 + + - 97 FROM tab2
----
-39
-57
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * - - 46 col2 FROM tab2
----
1058
1840
2668

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN ( col0 ) AND + 46 * col0
----
85
5
59
91
47
68

query II rowsort
SELECT 26 AS col1, + 5 * ( col1 ) AS col1 FROM tab0
----
26
105
26
405
26
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT ALL col1 - - - 87 DIV + col2 AS col2 FROM tab2
----
48
66
75

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL col1 - - - 87 / + col2 AS col2 FROM tab2
----
48
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8966
SELECT + col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8966
SELECT + col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
14
47
5

query I rowsort
SELECT col0 - - - 9 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + + 40 AS col2 FROM tab0
----
-59
-7
30

query I rowsort
SELECT + col1 + + + col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL 27 * 85 + - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2286

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL 27 * 85 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2286

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT 53 DIV col0 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8971
SELECT 53 / col0 AS col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - COUNT( - 55 ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - COUNT ( - 55 ) * + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - - 69 AS col2 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT - 71 * + col0 AS col1 FROM tab2
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ALL + MIN( DISTINCT 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL + MIN ( DISTINCT 82 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8977
SELECT + 85 DIV + - 81 + + COUNT( * ) * - - 21 + + COUNT( * ) FROM tab1 WHERE NOT NULL >= - + col2
----
-1

skipif mysql # not compatible
query I rowsort label-8977
SELECT + 85 / + - 81 + + COUNT ( * ) * - - 21 + + COUNT ( * ) FROM tab1 WHERE NOT NULL >= - + col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT col0 * + 7 - - col2 + + col1 DIV col1 col1 FROM tab2 AS cor0
----
346
489
584

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8978
SELECT col0 * + 7 - - col2 + + col1 / col1 col1 FROM tab2 AS cor0
----
346
489
584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT col2 + + col0 + - CAST( - col1 AS SIGNED ) + + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT col2 + + col0 + - CAST ( - col1 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 / - 5 * col1 IS NULL
----

query I rowsort
SELECT + ( + + col0 ) + + col0 * + + col1 FROM tab0 AS cor0
----
1230
1914
194

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 * - col2 > - + col2 AND NOT - col0 / - + col1 - + 26 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 97 + + 34 col1 FROM tab0 cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - 65 FROM tab0 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 92 * + 32 * 59 * col2 IS NULL
----

query I rowsort
SELECT - 38 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query II rowsort
SELECT ALL 89 * + col2, col2 AS col0 FROM tab1 AS cor0
----
5251
59
6052
68
8544
96

query I rowsort
SELECT DISTINCT + ( - 70 ) AS col1 FROM tab2 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT 2 * + - 14 + - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT 2 * + - 14 + - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 27 + - ( + col1 ) >= 60 * + col1 + - 65 * + 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + 5 ) + + col1 FROM tab0
----
26
6
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 + col2 col0 FROM tab2
----
101
119
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT DISTINCT + col0 DIV col2 - + 89 * 27 FROM tab0
----
-2395
-2403

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT + col0 / col2 - + 89 * 27 FROM tab0
----
-2395
-2403

query II rowsort
SELECT + col0 * - 91, + 43 AS col0 FROM tab0 AS cor0
----
-1365
43
-7917
43
-8827
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT DISTINCT 40 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT 40 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL + - COUNT( ( col2 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + - COUNT ( ( col2 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 WHERE NOT + + 5 NOT BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8997
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 WHERE NOT + + 5 NOT BETWEEN col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT MIN( + 46 ) col0 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8998
SELECT DISTINCT MIN ( + 46 ) col0 FROM tab2
----
46

query I rowsort
SELECT ALL + - 10 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT + 76 FROM tab1 AS cor0 WHERE NOT ( + 95 ) IS NOT NULL
----

query I rowsort
SELECT ALL 28 - + 4 * + col0 FROM tab1 cor0 WHERE NOT ( + col0 * + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT DISTINCT col1 DIV - 32 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT col1 / - 32 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT + + 78 * + COUNT( * ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9003
SELECT + + 78 * + COUNT ( * ) FROM tab0 AS cor0
----
234

query I rowsort
SELECT ALL - + 72 AS col1 FROM tab1 AS cor0
----
-72
-72
-72

query II rowsort
SELECT - 84, + col0 AS col0 FROM tab2 AS cor0
----
-84
46
-84
64
-84
75

query III rowsort
SELECT * FROM tab2 WHERE NOT 77 + col1 NOT BETWEEN col1 / + 85 AND NULL
----

query I rowsort
SELECT DISTINCT 50 * + 10 AS col2 FROM tab2
----
500

query I rowsort
SELECT ALL - 18 + - + col2 * col2 AS col0 FROM tab1
----
-3499
-4642
-9234

query III rowsort
SELECT * FROM tab2 WHERE NOT + 50 + col0 + - col2 NOT IN ( ( - + 23 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT DISTINCT COUNT( + - col2 ) DIV + + 55 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT COUNT ( + - col2 ) / + + 55 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 61 NOT BETWEEN - - col1 AND + + col0
----
87
21
10
97
1
99

query II rowsort
SELECT + ( - - col1 ) AS col1, + 4 AS col1 FROM tab2
----
51
4
67
4
77
4

query I rowsort
SELECT col2 * - - 64 FROM tab2 AS cor0
----
1472
2560
3712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col0 FROM tab2 cor0
----
-9
-9
-9

query I rowsort
SELECT - 16 * - - 60 FROM tab0 AS cor0
----
-960
-960
-960

query I rowsort
SELECT + 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT col2 + + col2 * - col2 * - col0 AS col0 FROM tab2
----
102440
24357
252358

query I rowsort
SELECT DISTINCT col1 + ( 56 ) FROM tab2
----
107
123
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT - + COUNT( - 52 ) + - + 47 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9020
SELECT - + COUNT ( - 52 ) + - + 47 FROM tab0 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9021
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9021
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col0 col2 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 67 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 = col0 + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9026
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - CAST( + ( - col0 ) AS SIGNED ) + + col1 - + col0 + + 42
----

skipif mysql # not compatible
query III rowsort label-9026
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - CAST ( + ( - col0 ) AS INTEGER ) + + col1 - + col0 + + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT SUM( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9027
SELECT SUM ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT 82 * + col0 FROM tab2
----
3772
5248
6150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 > NULL
----

query II rowsort
SELECT col1, + 93 AS col1 FROM tab0
----
1
93
21
93
81
93

query II rowsort
SELECT ALL + col0 + - + col2 + - col2 + - 42 AS col2, col0 + - + col1 AS col0 FROM tab1
----
-183
37
-75
80
-87
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT col1 - - ( - + ( + + CAST( NULL AS SIGNED ) ) ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT col1 - - ( - + ( + + CAST ( NULL AS INTEGER ) ) ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE + 73 + - 73 / - col0 IS NULL
----

query I rowsort
SELECT col2 - + + col0 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT 31 - - col2 FROM tab0
----
130
41
78

onlyif mysql # DIV for integer division: 
query II rowsort label-9037
SELECT DISTINCT - ( + 1 ) + + + col1 * col2 * + + ( col1 ) AS col1, col1 DIV - - col0 + + - 71 AS col1 FROM tab0
----
308366
-66
4409
-71
98
-71

skipif mysql # not compatible
query II rowsort label-9037
SELECT DISTINCT - ( + 1 ) + + + col1 * col2 * + + ( col1 ) AS col1, col1 / - - col0 + + - 71 AS col1 FROM tab0
----
308366
-66
4409
-71
98
-71

query II rowsort
SELECT ALL - 53 - col2 + + 48, col2 AS col2 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT 38 - + - COUNT( * ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-9039
SELECT 38 - + - COUNT ( * ) FROM tab1
----
41

query II rowsort
SELECT + 57 AS col1, - col0 * + col2 FROM tab2 AS cor0
----
57
-1058
57
-2560
57
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-9041
SELECT SUM( DISTINCT + col1 ) AS col2, + 67 AS col1 FROM tab0 cor0
----
103
67

skipif mysql # not compatible
query II rowsort label-9041
SELECT SUM ( DISTINCT + col1 ) AS col2, + 67 AS col1 FROM tab0 cor0
----
103
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - 81 + - col0 col2 FROM tab2
----
-4177
-5502
-6301

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT DISTINCT + col0 DIV + 88 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT + col0 / + 88 FROM tab2
----
0

query I rowsort
SELECT - col2 * - col1 * - col0 AS col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL 46 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col1 + + col1 <= NULL
----

query I rowsort
SELECT ALL + 32 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT - SUM( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9048
SELECT - SUM ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9049
SELECT DISTINCT ( - - 57 ) col2, - COUNT( * ) DIV + 38 DIV - COUNT( * ) FROM tab1 AS cor0
----
57
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9049
SELECT DISTINCT ( - - 57 ) col2, - COUNT ( * ) / + 38 / - COUNT ( * ) FROM tab1 AS cor0
----
57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + MIN( DISTINCT + col1 ) col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9050
SELECT + MIN ( DISTINCT + col1 ) col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - - col1 + + col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 64 * + 75 / ( + ( + 12 ) ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT + ( + CAST( NULL AS SIGNED ) ) * + 5 / col1 / + col2 / + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + 5 / col1 / + col2 / + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 76 ) col2 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9055
SELECT DISTINCT CAST( + - col2 AS SIGNED ), - CAST( 81 AS SIGNED ) col1 FROM tab2 AS cor0
----
-23
-81
-40
-81
-58
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9055
SELECT DISTINCT CAST ( + - col2 AS INTEGER ), - CAST ( 81 AS INTEGER ) col1 FROM tab2 AS cor0
----
-23
-81
-40
-81
-58
-81

query I rowsort
SELECT + 0 + - 27 + + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT + MIN( + + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9057
SELECT + MIN ( + + col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * col1 - + - col1 / + col2 ) < + col2 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT SUM( ALL - + col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9059
SELECT SUM ( ALL - + col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-9060
SELECT DISTINCT ( + - 25 ) + + col1 DIV + + 58, + col1 AS col2 FROM tab0
----
-24
81
-25
1
-25
21

skipif mysql # not compatible
query II rowsort label-9060
SELECT DISTINCT ( + - 25 ) + + col1 / + + 58, + col1 AS col2 FROM tab0
----
-24
81
-25
1
-25
21

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 16 * - 47 AS col2 FROM tab2 cor0
----
752
752
752

query I rowsort
SELECT + - col2 + ( - ( col0 ) ) FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT + + SUM( ALL col1 ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-9064
SELECT + + SUM ( ALL col1 ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + 30 * + COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9065
SELECT + 30 * + COUNT ( * ) FROM tab1
----
90

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT 50 * - COUNT( * ) * + MAX( ALL + col1 ) AS col1 FROM tab2
----
-11550

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT 50 * - COUNT ( * ) * + MAX ( ALL + col1 ) AS col1 FROM tab2
----
-11550

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT col1 DIV - 89 - - 18 AS col1 FROM tab0 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-9068
SELECT col1 / - 89 - - 18 AS col1 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - + col0 * + + col2 * + col0 - + + col0 AS col2 FROM tab1 AS cor0
----
-249747
-426360
-563199

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT ALL + col1 DIV + 49 - - ( - - col2 ) DIV + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL + col1 / + 49 - - ( - - col2 ) / + col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + + col2 + + col0 + + + 35 FROM tab0 AS cor0
----
132
231
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT + CAST( CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) + + 83 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9072
SELECT + CAST ( CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) + + 83 FROM tab1 AS cor0
----
86

query I rowsort
SELECT + col1 - + + col2 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT - - col2 AS col1, 7 * - 66 AS col2 FROM tab0 WHERE ( NOT - col1 >= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT DISTINCT col1 + + 70 AS col2 FROM tab2
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT + MIN( + col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9077
SELECT + MIN ( + col1 ) col2 FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 + col1 col0 FROM tab0 AS cor0 WHERE NOT + col1 <> 15 - + col2 * - 90
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN - 46 AND - col1
----

query II rowsort
SELECT DISTINCT + 94 AS col2, col2 FROM tab1 AS cor0
----
94
59
94
68
94
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT + - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9081
SELECT + - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * + - col0 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - ( - + 65 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT DISTINCT + - 78 * ( - 82 ) DIV + - 61 AS col1 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-104

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT + - 78 * ( - 82 ) / + - 61 AS col1 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-104

query I rowsort
SELECT col0 * - - 35 AS col0 FROM tab0
----
3045
3395
525

query I rowsort
SELECT - ( - 31 ) FROM tab2
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9088
SELECT CAST( - col2 AS SIGNED ) * + + 20 * + + col0, - 93 col0 FROM tab1
----
-100300
-93
-123760
-93
-97920
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9088
SELECT CAST ( - col2 AS INTEGER ) * + + 20 * + + col0, - 93 col0 FROM tab1
----
-100300
-93
-123760
-93
-97920
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT 45 * ( + + MIN( ALL + + 66 ) ) AS col2 FROM tab0 AS cor0
----
2970

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT 45 * ( + + MIN ( ALL + + 66 ) ) AS col2 FROM tab0 AS cor0
----
2970

query I rowsort
SELECT col0 * 54 AS col2 FROM tab1 AS cor0
----
2754
4590
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-9091
SELECT - + col0 DIV + - col2 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9091
SELECT - + col0 / + - col2 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT - COUNT( * ) * + - 24 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - COUNT ( * ) * + - 24 FROM tab2 AS cor0
----
72

query II rowsort
SELECT ALL + col1 AS col2, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + - col1 * - + col2 + - col1 * + + col1 * - ( + col1 ) + col0 FROM tab0 AS cor0
----
197
535263
9558

query III rowsort
SELECT * FROM tab0 WHERE NOT - 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 80 / col2 AS col1 FROM tab2 WHERE ( ( 27 ) ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT MIN( ALL - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9097
SELECT MIN ( ALL - - col2 ) FROM tab1
----
59

query I rowsort
SELECT ALL + 62 * + + col1 + + col2 FROM tab1
----
2982
369
964

query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) * - - col1 AS col0 FROM tab1
----
-129024
-17405
-217328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 + + col2 col2 FROM tab0
----
117
28
65

onlyif mysql # DIV for integer division: 
query II rowsort label-9101
SELECT col2 + + col1 DIV - - 47, + 55 DIV + - col0 AS col1 FROM tab0
----
10
0
48
-3
99
0

skipif mysql # not compatible
query II rowsort label-9101
SELECT col2 + + col1 / - - 47, + 55 / + - col0 AS col1 FROM tab0
----
10
0
48
-3
99
0

query I rowsort
SELECT 4 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT + COUNT( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9103
SELECT + COUNT ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT col0 FROM tab2 AS cor0 WHERE NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9104
SELECT col0 FROM tab2 AS cor0 WHERE NULL >= - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + 27 AS col1, col0 AS col2 FROM tab0 cor0
----
27
15
27
87
27
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 / + 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( 79 ) * 93 + - + col1 IS NULL
----
15
87
97

query I rowsort
SELECT + + col1 * - - 79 * col2 * col0 + + ( + col2 ) FROM tab1 AS cor0
----
1980984
22976112
5415072

query I rowsort
SELECT DISTINCT + + col1 * - ( + col1 ) + col1 + - + col0 * col1 + - 99 FROM tab1 AS cor0
----
-544
-6538
-995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 + - 80 * + - col0 * col1 col1 FROM tab1
----
34000
342160
57120

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9112
SELECT MAX( + 80 ) DIV - ( + COUNT( * ) ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-9112
SELECT MAX ( + 80 ) / - ( + COUNT ( * ) ) FROM tab1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT CAST( + MAX( - + 12 ) AS SIGNED ) * - - COUNT( * ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-9113
SELECT CAST ( + MAX ( - + 12 ) AS INTEGER ) * - - COUNT ( * ) FROM tab2
----
-36

query I rowsort
SELECT ALL + 35 FROM tab0 AS cor0 WHERE col2 * + col1 + - col0 IN ( + 58, - col1, + + col1 - - col2, col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 81 ) <= col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 82 AS col2, - 10 * 88 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col2 FROM tab2 cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT + + CAST( + 25 AS SIGNED ) FROM tab0 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-9118
SELECT + + CAST ( + 25 AS INTEGER ) FROM tab0 AS cor0
----
25
25
25

query III rowsort
SELECT * FROM tab0 WHERE NOT 29 * ( - ( + - col0 ) ) + + 15 <> + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - - 39 col1 FROM tab2 AS cor0
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT + SUM( ALL 48 ) * 74 AS col2 FROM tab2 AS cor0
----
10656

skipif mysql # not compatible
query I rowsort label-9121
SELECT + SUM ( ALL 48 ) * 74 AS col2 FROM tab2 AS cor0
----
10656

query I rowsort
SELECT DISTINCT + 52 * + - col1 FROM tab0 cor0
----
-1092
-4212
-52

query I rowsort
SELECT - col1 * col0 * + col0 + + - col1 FROM tab0 AS cor0
----
-158970
-18306
-9410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT DISTINCT + - CAST( + 63 AS SIGNED ) + - col0 + - 13 FROM tab1 AS cor0
----
-127
-161
-167

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT + - CAST ( + 63 AS INTEGER ) + - col0 + - 13 FROM tab1 AS cor0
----
-127
-161
-167

query I rowsort
SELECT ALL - col0 + + + col0 + 40 FROM tab0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col1 FROM tab0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT 54 / COUNT( * ) * + ( COUNT( * ) ) + - - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT 54 / COUNT ( * ) * + ( COUNT ( * ) ) + - - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL 87 + 24 FROM tab0
----
111
111
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - ( ( 8 ) ) * col1 col2 FROM tab0
----
3528
52488
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9130
SELECT COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL 72 * 95 AS col1 FROM tab0
----
6840
6840
6840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9132
SELECT ALL * FROM tab0 WHERE + CAST( - col1 AS SIGNED ) <= + col1 * + 72 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9132
SELECT ALL * FROM tab0 WHERE + CAST ( - col1 AS INTEGER ) <= + col1 * + 72 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT DISTINCT + 21 * col1 DIV - col2 FROM tab2 AS cor0
----
-24
-40
-46

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT + 21 * col1 / - col2 FROM tab2 AS cor0
----
-24
-40
-46

query I rowsort
SELECT col2 + - + 92 FROM tab0 AS cor0
----
-45
-82
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT - - COUNT( * ) DIV + 11 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9135
SELECT - - COUNT ( * ) / + 11 AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-9136
SELECT DISTINCT - ( 12 ) - + MIN( DISTINCT 7 ) AS col2, - COUNT( * ) AS col2, 25 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-19
-3
25

skipif mysql # not compatible
query III rowsort label-9136
SELECT DISTINCT - ( 12 ) - + MIN ( DISTINCT 7 ) AS col2, - COUNT ( * ) AS col2, 25 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-19
-3
25

query I rowsort
SELECT 36 - - + col1 AS col2 FROM tab1
----
41
50
83

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT DISTINCT + + col0 DIV + 94 - col0 AS col2 FROM tab0 AS cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT + + col0 / + 94 - col0 AS col2 FROM tab0 AS cor0
----
-15
-87
-96

query I rowsort
SELECT ALL col0 - col0 + - 57 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + COUNT( * ) * + 60 + + - 60 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9142
SELECT + COUNT ( * ) * + 60 + + - 60 FROM tab0 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT + MAX( ALL - - col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9143
SELECT DISTINCT + MAX ( ALL - - col0 ) col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT col1 + + col2 + 66 * 9 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
668
711
719

query I rowsort
SELECT DISTINCT - ( - + 22 ) AS col1 FROM tab0 AS cor0
----
22

query II rowsort
SELECT DISTINCT + col2, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query II rowsort
SELECT DISTINCT - 84 AS col1, 2 FROM tab2
----
-84
2

query II rowsort
SELECT ALL + col1 AS col0, + col0 * + - col0 AS col2 FROM tab2
----
51
-2116
67
-5625
77
-4096

query I rowsort
SELECT DISTINCT + - AVG ( - col1 ) FROM tab1 WHERE NOT NULL >= - 15 / + col0 + + col2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND - col0 / - col2
----

query II rowsort
SELECT + ( + - col1 ) * - col1, + col1 AS col1 FROM tab2
----
2601
51
4489
67
5929
77

query I rowsort
SELECT ALL col1 * - + col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT - ( 26 ) FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 * + col1 BETWEEN NULL AND - + 66
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * - 32 + - 65 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - 92 AS col2 FROM tab1 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - - 84 + + ( - MAX( ( + 1 ) ) ) FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-9160
SELECT - - 84 + + ( - MAX ( ( + 1 ) ) ) FROM tab0 cor0
----
83

query I rowsort
SELECT DISTINCT 38 - col1 / - 90 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col2 * - col1 + + col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT ALL - ( - 26 ) FROM tab2
----
26
26
26

query I rowsort
SELECT ALL col1 * - col0 + + col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT ALL + col2 + + 81 DIV - col1 FROM tab0
----
18
46
7

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + col2 + + 81 / - col1 FROM tab0
----
18
46
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + ( + 89 ) FROM tab1
----
89
89
89

query I rowsort
SELECT col1 FROM tab0 WHERE + col0 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT SUM( - col0 ) + + 94 * + 19 + COUNT( * ) AS col2 FROM tab2
----
1604

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT SUM ( - col0 ) + + 94 * + 19 + COUNT ( * ) AS col2 FROM tab2
----
1604

query I rowsort
SELECT ALL + col1 + - 78 AS col2 FROM tab2
----
-1
-11
-27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 88 + + col2 * + col0 <> ( - - 98 * 41 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 55, - 55, col1, + + 15 * - col2 / - 89 + - + col0 - - col0, + 81, + + 34 * - + col0 )
----

query I rowsort
SELECT DISTINCT + 11 + - 9 FROM tab0 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT DISTINCT + 76 + + - COUNT( * ) AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT + 76 + + - COUNT ( * ) AS col2 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL + 82 * + COUNT( * ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + 82 * + COUNT ( * ) FROM tab1
----
246

query I rowsort
SELECT ALL - col0 - + - col2 AS col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9177
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 * - ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN + 75 AND + + col1
----

skipif mysql # not compatible
query III rowsort label-9177
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 * - ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN + 75 AND + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9178
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 79 * - - CAST( - col2 AS DECIMAL ) * + + col2 >= - 64 * col0 + - col0 + - - col0 + col2
----

skipif mysql # not compatible
query III rowsort label-9178
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 79 * - - CAST ( - col2 AS REAL ) * + + col2 >= - 64 * col0 + - col0 + - - col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT - COUNT( ALL - col1 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL + 76 FROM tab0 AS cor0 WHERE NULL IN ( - col1, - 26 * - col1, - ( 12 ) )
----

query I rowsort
SELECT DISTINCT + 26 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 * + - col2 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

query II rowsort
SELECT ALL + col2, 99 FROM tab2 AS cor0
----
23
99
40
99
58
99

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 1 - - col0 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + col2 * + col1 * - col1 col2 FROM tab2
----
-22530200
-24734390
-5683185

query II rowsort
SELECT col0 * col0 AS col2, col1 AS col2 FROM tab0
----
225
81
7569
21
9409
1

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT - - col2 < - 39
----
59
68
96

query I rowsort
SELECT + col1 * + - col0 * + + col1 AS col2 FROM tab2
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT - col2 > NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT ALL + col0 DIV 48 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + col0 / 48 AS col0 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9192
SELECT DISTINCT - 3 DIV + col1 AS col2, - col1 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
query II rowsort label-9192
SELECT DISTINCT - 3 / + col1 AS col2, - col1 FROM tab1
----
0
-14
0
-47
0
-5

query I rowsort
SELECT DISTINCT - + ( + + 49 ) FROM tab2 AS cor0
----
-49

query II rowsort
SELECT - col0 + + col0, + 9 + - 32 AS col2 FROM tab0 AS cor0
----
0
-23
0
-23
0
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col1 + - ( 62 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col1 + - ( 62 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( + - 2 ) AS col0 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 38 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col2, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab2 cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 5 col1 FROM tab2 cor0
----
-51
-5
-67
-5
-77
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT MIN( col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT MIN ( col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT + col1 + - + col2 AS col0 FROM tab0 cor0
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col2 + 5, col0 + col2 + - - col0 * + - 47 * col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 <= NULL
----

query I rowsort
SELECT + 48 FROM tab0 WHERE + 71 + - + col0 IS NULL
----

query I rowsort
SELECT ALL - 64 + - - 65 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 + 70 col0 FROM tab2
----
149
149
149

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col0 FROM tab1 AS cor0
----
85
85
85

query II rowsort
SELECT DISTINCT 31 - + col0 AS col0, + ( - 26 ) * - col1 AS col1 FROM tab1 AS cor0
----
-20
364
-54
130
-60
1222

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9212
SELECT + - col0 * + 36, CAST( col1 AS SIGNED ) * - 73 + col2 AS col0 FROM tab0 AS cor0
----
-3132
-1523
-3492
26
-540
-5866

skipif mysql # not compatible
query II rowsort label-9212
SELECT + - col0 * + 36, CAST ( col1 AS INTEGER ) * - 73 + col2 AS col0 FROM tab0 AS cor0
----
-3132
-1523
-3492
26
-540
-5866

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9213
SELECT ALL - CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9213
SELECT ALL - CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 58 AS col1 FROM tab1 AS cor0
----
109
143
149

query I rowsort
SELECT 7 - col0 FROM tab0 AS cor0
----
-8
-80
-90

query I rowsort
SELECT - 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT DISTINCT - - 62, - col0 AS col0 FROM tab1 AS cor0
----
62
-51
62
-85
62
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col2 AS col1, col2 * 3 FROM tab0 AS cor0
----
10
30
47
141
99
297

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE col2 BETWEEN - + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT ALL CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) * - 9 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) * - 9 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT - MAX( - col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - MAX ( - col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE col0 * + col1 + + col2 + 16 + + col2 IS NULL
----

query II rowsort
SELECT - col0 AS col1, - col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9227
SELECT + + COUNT( * ) AS col1, CAST( + + COUNT( * ) AS SIGNED ) * + 39 AS col2 FROM tab0 cor0
----
3
117

skipif mysql # not compatible
query II rowsort label-9227
SELECT + + COUNT ( * ) AS col1, CAST ( + + COUNT ( * ) AS INTEGER ) * + 39 AS col2 FROM tab0 cor0
----
3
117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9228
SELECT ALL + - col2 * CAST( NULL AS DECIMAL ) + + + 50 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL + - col2 * CAST ( NULL AS REAL ) + + + 50 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 89 FROM tab2 WHERE NULL = + col0 * - - 20 + - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT SUM( + 79 ) + + + 27 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT SUM ( + 79 ) + + + 27 FROM tab2
----
264

query I rowsort
SELECT ALL ( + - 87 ) FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT + - col0 * - 91 * - CAST( + + 50 AS SIGNED ) * - 80 + + 69 AS col2 FROM tab0 AS cor0
----
31668069
35308069
5460069

skipif mysql # not compatible
query I rowsort label-9232
SELECT + - col0 * - 91 * - CAST ( + + 50 AS INTEGER ) * - 80 + + 69 AS col2 FROM tab0 AS cor0
----
31668069
35308069
5460069

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 76 * - + ( - col0 ) + - + col1 FROM tab0 AS cor0
----
1059
6591
7371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT DISTINCT + 26 DIV - + COUNT( * ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + 26 / - + COUNT ( * ) FROM tab2 AS cor0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9236
SELECT + col0 DIV col0 - + col0 col1 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9236
SELECT + col0 / col0 - + col0 col1 FROM tab0 AS cor0
----
-14
-86
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + MAX( - - 69 ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + MAX ( - - 69 ) AS col1 FROM tab1
----
69

query I rowsort
SELECT - col0 - + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-196
-62
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + + col2 * - 70 col2 FROM tab2
----
-1555
-2745
-4005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9240
SELECT DISTINCT - MIN( + - ( col0 ) ) * + + 20 - + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - MIN ( + - ( col0 ) ) * + + 20 - + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT 21 - + SUM( - ( + + col0 ) ) * COUNT( * ) + - - COUNT( * ) * - 79 AS col0 FROM tab1
----
465

skipif mysql # not compatible
query I rowsort label-9241
SELECT 21 - + SUM ( - ( + + col0 ) ) * COUNT ( * ) + - - COUNT ( * ) * - 79 AS col0 FROM tab1
----
465

query III rowsort
SELECT * FROM tab0 WHERE 94 + 83 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( col0 ) + col2 + + col0 * - col0 FROM tab1 AS cor0
----
-2556
-7251
-8304

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9244
SELECT ALL - COUNT ( * ) col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT + - 91 * COUNT( * ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + - 91 * COUNT ( * ) FROM tab0 AS cor0
----
-273

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 / col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 64 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + col0 BETWEEN - col0 AND - col0 * 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 76 * col2 BETWEEN - ( 40 ) AND col1 + - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT MIN( - 65 ) AS col2 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-9250
SELECT MIN ( - 65 ) AS col2 FROM tab0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT 67 DIV col0 + + col1 * - 67 FROM tab1
----
-3149
-335
-937

skipif mysql # not compatible
query I rowsort label-9251
SELECT 67 / col0 + + col1 * - 67 FROM tab1
----
-3149
-335
-937

query I rowsort
SELECT DISTINCT col0 + - 69 * + 50 FROM tab2
----
-3375
-3386
-3404

query I rowsort
SELECT ALL ( + ( - col1 ) ) - - col1 * + 56 FROM tab1
----
2585
275
770

query III rowsort
SELECT * FROM tab1 WHERE + 16 * 73 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 43 + + col0 NOT BETWEEN NULL AND + ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 14 + col1 FROM tab2
----
65
81
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL + col2 / CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT + 82 - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT + 82 - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + - ( + 35 ) col2 FROM tab1 WHERE NOT 18 BETWEEN col0 / ( + col1 ) AND - 28
----
-29
-29
-29

query I rowsort
SELECT + col0 + 63 AS col0 FROM tab0
----
150
160
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col1 FROM tab0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT SUM( ALL 59 ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-9262
SELECT SUM ( ALL 59 ) FROM tab0
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9264
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - CAST( NULL AS SIGNED ) NOT BETWEEN ( - col2 / 85 ) AND - 2 * col0 + col1
----

skipif mysql # not compatible
query III rowsort label-9264
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - CAST ( NULL AS INTEGER ) NOT BETWEEN ( - col2 / 85 ) AND - 2 * col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT + 6 + + 13 * - CAST( col2 AS SIGNED ) FROM tab0
----
-124
-1281
-605

skipif mysql # not compatible
query I rowsort label-9265
SELECT + 6 + + 13 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-124
-1281
-605

query I rowsort
SELECT + col1 FROM tab0 WHERE ( 64 * col2 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND col0 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT - COUNT( + col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - COUNT ( + col0 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT 87 * 64 FROM tab2
----
5568
5568
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT 80 * SUM( - 26 ) AS col0 FROM tab1 cor0
----
-6240

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT 80 * SUM ( - 26 ) AS col0 FROM tab1 cor0
----
-6240

query I rowsort
SELECT ALL - 76 * 70 FROM tab1 AS cor0
----
-5320
-5320
-5320

query I rowsort
SELECT DISTINCT + col1 * + 82 FROM tab0 AS cor0
----
1722
6642
82

query I rowsort
SELECT 13 * + col2 + + col2 FROM tab0 AS cor0
----
1386
140
658

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 * col1 AND + 75 + 87 / col2
----

query I rowsort
SELECT DISTINCT col2 * + 7 + col0 FROM tab1 AS cor0
----
498
567
723

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT 71 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + col2 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + ( + col1 + + col1 * 51 ) AS col0 FROM tab1 WHERE + ( + col2 ) IS NOT NULL
----
2512
319
824

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab1 WHERE ( - col1 * col1 ) = ( NULL )
----

query I rowsort
SELECT + 24 - 8 FROM tab0 WHERE ( + col2 ) <> + 40 + ( col0 ) / - col2
----
16
16
16

query I rowsort
SELECT - 22 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NULL ) = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT DISTINCT + 80 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT + 80 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = - col2
----

query I rowsort
SELECT ALL + col2 * - 68 AS col2 FROM tab2 cor0
----
-1564
-2720
-3944

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9285
SELECT ALL - CAST( NULL AS DECIMAL ) - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL - CAST ( NULL AS REAL ) - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT - 25 + + col2 DIV 68 AS col0 FROM tab2 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-9286
SELECT - 25 + + col2 / 68 AS col0 FROM tab2 AS cor0
----
-25
-25
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 56 IS NOT NULL
----

query I rowsort
SELECT + - col1 * + col1 + 97 FROM tab2 cor0
----
-2504
-4392
-5832

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col1 NOT BETWEEN 10 AND NULL
----

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab1 AS cor0 WHERE 5 IS NOT NULL
----
196
2209
25

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - ( - 93 ) AND NULL
----

query I rowsort
SELECT + + 39 + - col1 FROM tab2 cor0
----
-12
-28
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 19 ) + col2 col1 FROM tab1 AS cor0
----
115
78
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 NOT IN ( 5 - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT ALL - 99 DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-4
-99

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - 99 / col1 AS col0 FROM tab0 AS cor0
----
-1
-4
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9296
SELECT ALL - - col0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL - - col0 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9297
SELECT ALL * FROM tab2 WHERE NOT + 65 BETWEEN CAST( NULL AS SIGNED ) AND ( + col0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-9297
SELECT ALL * FROM tab2 WHERE NOT + 65 BETWEEN CAST ( NULL AS INTEGER ) AND ( + col0 * + col2 )
----

query I rowsort
SELECT - 13 + col0 - col0 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 17 ) > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT 99 + + COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT 99 + + COUNT ( * ) FROM tab0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT DISTINCT + col2 * + col1 - CAST( col2 AS SIGNED ) FROM tab2
----
1150
3040
3828

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + col2 * + col1 - CAST ( col2 AS INTEGER ) FROM tab2
----
1150
3040
3828

query I rowsort
SELECT ALL - 75 + - + 81 AS col0 FROM tab2
----
-156
-156
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9304
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 + + col2 / + CAST( NULL AS DECIMAL ) ) NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9304
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 + + col2 / + CAST ( NULL AS REAL ) ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL - COUNT( ALL - - 25 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - COUNT ( ALL - - 25 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - + col2 * - col1 * col2 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT ALL - - 32 AS col2 FROM tab0 AS cor0
----
32
32
32

query II rowsort
SELECT ALL col2 AS col1, - 91 FROM tab2
----
23
-91
40
-91
58
-91

query I rowsort
SELECT ALL + 28 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - COUNT( ALL + + col0 ) * - 85 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9310
SELECT - COUNT ( ALL + + col0 ) * - 85 FROM tab0 AS cor0
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 56 ) col1 FROM tab2 AS cor0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 7 ) + + 73 col0 FROM tab1 cor0 WHERE + col0 NOT IN ( - col1 )
----
80
80
80

query I rowsort
SELECT + ( col0 ) * - 92 FROM tab0 AS cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9314
SELECT ALL + col1, col2 DIV col1 FROM tab2 cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL + col1, col2 / col1 FROM tab2 cor0
----
51
0
67
0
77
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT ( COUNT( * ) ) * - + COUNT( * ) + 5 AS col1 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT ( COUNT ( * ) ) * - + COUNT ( * ) + 5 AS col1 FROM tab2
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - - col1
----

query III rowsort
SELECT * FROM tab1 WHERE + 27 IS NOT NULL AND NULL > col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT DISTINCT 44 * - SUM( + 25 ) * - COUNT( * ) AS col2 FROM tab0
----
9900

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT 44 * - SUM ( + 25 ) * - COUNT ( * ) AS col2 FROM tab0
----
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT - MAX( + + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT - MAX ( + + col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab0 AS cor0 WHERE NOT - 83 * + 52 = col0
----
-38

query I rowsort
SELECT ( - col2 ) + - - col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL + 37 + 73 * + 92 - + col1 + - col0 + - col2 AS col0 FROM tab1
----
6547
6592
6604

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT DISTINCT col2 + - ( ( - ( - col2 ) ) ) + col0 DIV col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT col2 + - ( ( - ( - col2 ) ) ) + col0 / col1 FROM tab1
----
1
17
3

query I rowsort
SELECT 98 * ( + col1 ) + col2 FROM tab1
----
1468
4674
549

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + AVG ( 72 ) / COUNT( * ) FROM tab1 cor0 WHERE ( - col0 ) IN ( 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT + AVG ( 72 ) / COUNT ( * ) FROM tab1 cor0 WHERE ( - col0 ) IN ( 53 )
----
NULL

query I rowsort
SELECT ALL 12 - col1 AS col0 FROM tab1 AS cor0
----
-2
-35
7

query I rowsort
SELECT DISTINCT + + col0 * + 99 AS col2 FROM tab0 AS cor0
----
1485
8613
9603

query II rowsort
SELECT - + col2, 61 AS col0 FROM tab1 AS cor0
----
-59
61
-68
61
-96
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - MAX( DISTINCT col1 ) col1 FROM tab2 AS cor0 WHERE - 62 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9330
SELECT - MAX ( DISTINCT col1 ) col1 FROM tab2 AS cor0 WHERE - 62 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT - + col1 DIV 84 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9332
SELECT - + col1 / 84 AS col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + col2 * ( col2 ), + 4 AS col0 FROM tab0 AS cor0
----
100
4
2209
4
9801
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9334
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col1, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

skipif mysql # not compatible
query II rowsort label-9334
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col1, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT DISTINCT + col1 + - col2 + - col2 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + col1 + - col2 + - col2 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT + 12 * - CAST( NULL AS SIGNED ) * + - col2 - 52 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT + 12 * - CAST ( NULL AS INTEGER ) * + - col2 - 52 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT DISTINCT CAST( + col0 AS SIGNED ) + - col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + - col2 FROM tab2
----
17
23
24

query I rowsort
SELECT col1 - - 31 FROM tab1
----
36
45
78

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE + col1 BETWEEN ( - col2 ) AND col0
----
1
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 84 * + col2 - - col1 ) NOT BETWEEN ( col1 / + col2 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT CAST( - col2 AS SIGNED ) / - CAST( col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL BETWEEN 59 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9341
SELECT CAST ( - col2 AS INTEGER ) / - CAST ( col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL BETWEEN 59 AND ( NULL )
----

query I rowsort
SELECT + col0 - - + 78 FROM tab0
----
165
175
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT ALL - COUNT( * ) DIV + 44 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - COUNT ( * ) / + 44 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9344
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 17 * + CAST( - col1 AS SIGNED ) - - col0 - + col1 IN ( 46 * - 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9344
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 17 * + CAST ( - col1 AS INTEGER ) - - col0 - + col1 IN ( 46 * - 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + ( COUNT( * ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9345
SELECT + ( COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + col2, 68 AS col1 FROM tab0 AS cor0
----
10
68
47
68
99
68

query I rowsort
SELECT - col2 * + - col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT - 29 * + 72 + col0 FROM tab1 AS cor0
----
-1997
-2003
-2037

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + 51 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
51

query I rowsort
SELECT DISTINCT + col0 * + col0 * 3 AS col2 FROM tab1
----
21675
24843
7803

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - - col0 ) IN ( - + col1 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9353
SELECT ALL * FROM tab2 AS cor0 WHERE + 62 > - col2 * col1 / - CAST( - col1 AS SIGNED ) + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9353
SELECT ALL * FROM tab2 AS cor0 WHERE + 62 > - col2 * col1 / - CAST ( - col1 AS INTEGER ) + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT + SUM( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9354
SELECT + SUM ( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT 29 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - ( 61 ) AS col1, - col0 * col0 AS col0 FROM tab1 AS cor0
----
-61
-2601
-61
-7225
-61
-8281

query I rowsort
SELECT ALL 79 AS col2 FROM tab0 cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9358
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) / - + col1 = col0 * - 76
----

skipif mysql # not compatible
query III rowsort label-9358
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / - + col1 = col0 * - 76
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9359
SELECT DISTINCT + 2 DIV + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT + 2 / + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE + + col2 NOT IN ( - col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT COUNT( * ), - 49 AS col2 FROM tab1
----
3
-49

skipif mysql # not compatible
query II rowsort label-9361
SELECT COUNT ( * ), - 49 AS col2 FROM tab1
----
3
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT ALL col0 AS col1 FROM tab1 WHERE - col0 >= ( + CAST( + 80 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL col0 AS col1 FROM tab1 WHERE - col0 >= ( + CAST ( + 80 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 81 + + - 50 * 3 + - col2 * - + col2 FROM tab1
----
3250
4393
8985

query I rowsort
SELECT DISTINCT col1 + - col1 + col0 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 73 col2 FROM tab1
----
-120
-78
-87

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN + col2 + - + col2 AND 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT + col1 DIV + + 34 + 87 FROM tab1
----
87
87
88

skipif mysql # not compatible
query I rowsort label-9367
SELECT + col1 / + + 34 + 87 FROM tab1
----
87
87
88

query I rowsort
SELECT - - 63 AS col0 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT - 4 + 98 FROM tab0 AS cor0
----
94

query III rowsort
SELECT * FROM tab2 WHERE + col0 + 8 NOT IN ( - col2 - - col0 * - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 AS col1 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT 21 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL - COUNT( * ) + + + COUNT( * ) * + + 72 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
639

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) * + + 72 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
639

query I rowsort
SELECT ALL - - 36 + + - col0 AS col1 FROM tab0 AS cor0
----
-51
-61
21

query I rowsort
SELECT DISTINCT 81 - - - col0 FROM tab2 AS cor0
----
17
35
6

query I rowsort
SELECT - col1 * - col1 + - col0 FROM tab0 cor0
----
-96
354
6546

query I rowsort
SELECT ALL - + col1 * + 88 AS col0 FROM tab2 AS cor0
----
-4488
-5896
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT + 71 + + - ( + - SUM( col2 ) ) col2 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9378
SELECT + 71 + + - ( + - SUM ( col2 ) ) col2 FROM tab2 AS cor0
----
192

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 29 + - col1 = NULL
----

query I rowsort
SELECT + 74 + - + 27 FROM tab1 AS cor0
----
47
47
47

query II rowsort
SELECT ALL - ( - + 83 ), col0 FROM tab2 AS cor0
----
83
46
83
64
83
75

query I rowsort
SELECT ALL 45 * col0 AS col1 FROM tab0
----
3915
4365
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * - col0 * - + col0 col2 FROM tab0
----
-20700
-696348
-865628

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT DISTINCT 5 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT 5 / col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT - + COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9386
SELECT - + COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 * + 45 * - col1, col1 * 65 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col2 FROM tab1 AS cor0 WHERE - 59 * + + 39 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL + 0 * COUNT( * ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL + 0 * COUNT ( * ) AS col0 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT ALL - 38 DIV ( + col1 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL - 38 / ( + col1 ) AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 82 + - ( + col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL + ( + - col1 ) AS col0, col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + COUNT( * ) * - 81 * - COUNT( * ) FROM tab0
----
729

skipif mysql # not compatible
query I rowsort label-9394
SELECT + COUNT ( * ) * - 81 * - COUNT ( * ) FROM tab0
----
729

onlyif mysql # aggregate syntax: 
query II rowsort label-9395
SELECT - ( + + MAX( 40 ) ) + + + COUNT( * ) AS col1, - COUNT( * ) + 39 AS col1 FROM tab1 AS cor0
----
-37
36

skipif mysql # not compatible
query II rowsort label-9395
SELECT - ( + + MAX ( 40 ) ) + + + COUNT ( * ) AS col1, - COUNT ( * ) + 39 AS col1 FROM tab1 AS cor0
----
-37
36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col1 AND + ( 0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col0 FROM tab0 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT DISTINCT + - MIN( - - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT + - MIN ( - - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT DISTINCT COUNT( * ) * 56 AS col1 FROM tab1 cor0
----
168

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT COUNT ( * ) * 56 AS col1 FROM tab1 cor0
----
168

query I rowsort
SELECT - 28 * + col0 + + col0 + - col2 * + - 82 AS col0 FROM tab0 cor0 WHERE + col0 > + col2
----
-1529

query I rowsort
SELECT ALL ( - 96 ) * col1 AS col2 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT DISTINCT 12 + + - col0 + - 24 * col1 + - col2 FROM tab2
----
-1281
-1729
-1940

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 + - col0 col0 FROM tab1
----
11
45
5

query I rowsort
SELECT DISTINCT + col2 + - col1 - - col1 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT + COUNT( * ) + + + 30 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-9407
SELECT + COUNT ( * ) + + + 30 FROM tab0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 + + col2 col0 FROM tab2
----
59
76
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT ALL 37 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 37 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 9 - - + col1 FROM tab1
----
-4
38
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT COUNT( DISTINCT - ( - - col0 ) ) FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) < col0 * + col2 * + 78
----
0

skipif mysql # not compatible
query I rowsort label-9413
SELECT COUNT ( DISTINCT - ( - - col0 ) ) FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) < col0 * + col2 * + 78
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT + 68 / + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + + col2 - + col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9414
SELECT + 68 / + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + + col2 - + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT SUM( ALL + 27 ) AS col1 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT SUM ( ALL + 27 ) AS col1 FROM tab2 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT + COUNT( + 29 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9416
SELECT + COUNT ( + 29 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * - - ( 2 ) FROM tab2
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + + ( - + ( - 76 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 * - + 19 FROM tab2 AS cor0
----
1273
1463
969

query II rowsort
SELECT - col0 * 79, 69 AS col0 FROM tab1 AS cor0
----
-4029
69
-6715
69
-7189
69

query I rowsort
SELECT ALL + col1 * - + col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL + - 95 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT COUNT( * ) AS col1, ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9423
SELECT COUNT ( * ) AS col1, ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT - + col1 AS col0 FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * - - col0 * - col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9424
SELECT - + col1 AS col0 FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * - - col0 * - col2 <> NULL
----

query I rowsort
SELECT ALL + + ( + col0 ) * col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT - CAST( CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9426
SELECT - CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9427
SELECT - CAST( NULL AS DECIMAL ) * + 7 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT - CAST ( NULL AS REAL ) * + 7 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT ALL - 49 DIV - - col1 + + 52 FROM tab2 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - 49 / - - col1 + + 52 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT + + col2 + + - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 57 IS NULL
----

query I rowsort
SELECT - col0 * + + col0 + col1 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT DISTINCT - col2 DIV - - ( - col2 ) + + col1 AS col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT - col2 / - - ( - col2 ) + + col1 AS col2 FROM tab0
----
2
22
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT DISTINCT col0 / - col1 + - 15 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT col0 / - col1 + - 15 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 98 * + col2 FROM tab0
----
-4606
-9702
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-9436
SELECT col0 + - col2 DIV + + col1 AS col0 FROM tab1
----
45
74
90

skipif mysql # not compatible
query I rowsort label-9436
SELECT col0 + - col2 / + + col1 AS col0 FROM tab1
----
45
74
90

query I rowsort
SELECT ALL ( + col0 ) - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 43 + + 79 + + col2 FROM tab2
----
145
162
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT DISTINCT COUNT( * ) - + SUM( DISTINCT - 55 ) col1 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9439
SELECT DISTINCT COUNT ( * ) - + SUM ( DISTINCT - 55 ) col1 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - MAX( DISTINCT - 65 ) AS col0 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9440
SELECT - MAX ( DISTINCT - 65 ) AS col0 FROM tab1 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT ALL - col2 - - - col2 DIV col0 col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9441
SELECT ALL - col2 - - - col2 / col0 col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT - CAST( + MAX( ALL + + col0 ) AS SIGNED ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9442
SELECT - CAST ( + MAX ( ALL + + col0 ) AS INTEGER ) FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT + COUNT( * ) DIV MAX( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9443
SELECT + COUNT ( * ) / MAX ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9444
SELECT ALL ( COUNT( * ) ) DIV 5 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL ( COUNT ( * ) ) / 5 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9445
SELECT DISTINCT + col0 DIV - col0 AS col2, 48 FROM tab2
----
-1
48

skipif mysql # not compatible
query II rowsort label-9445
SELECT DISTINCT + col0 / - col0 AS col2, 48 FROM tab2
----
-1
48

query I rowsort
SELECT DISTINCT col2 * + col2 + 79 AS col2 FROM tab0
----
179
2288
9880

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL - SUM( col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT + CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9448
SELECT + CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT 93 AS col1 FROM tab1 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9450
SELECT - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL - + MIN( ALL 20 ) col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9451
SELECT ALL - + MIN ( ALL 20 ) col0 FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT ALL + + ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + + ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 0 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT + 52, col2 AS col1 FROM tab0
----
52
10
52
47
52
99

query I rowsort
SELECT ALL + + col1 * + 53 FROM tab2 AS cor0
----
2703
3551
4081

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 66 * - 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 80 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
80
80
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 92 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + 58 + - + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + + col0 * - col1 col0 FROM tab1 AS cor0
----
-4285
-433
-722

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - + 79 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9462
SELECT DISTINCT - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
0

query II rowsort
SELECT DISTINCT + 40 * 10 AS col1, col2 FROM tab0 AS cor0
----
400
10
400
47
400
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + 23 col1, + 31 AS col2 FROM tab0 cor0
----
110
31
120
31
38
31

query I rowsort
SELECT + 34 + - - col0 + - col0 * col0 FROM tab2 AS cor0 WHERE ( NOT - col1 * col0 IS NULL )
----
-2036
-3998
-5516

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT - COUNT( * ) FROM tab2 cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9466
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE - col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - + col1 + + col1 - + col0 * + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - col1 + + 5 AS col1 FROM tab0 AS cor0
----
-16
-76
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT - 13 DIV col0 * - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 13 / col0 * - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 17 ) FROM tab1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL - + COUNT( * ) + - 6 FROM tab1 WHERE - col1 IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL - + COUNT ( * ) + - 6 FROM tab1 WHERE - col1 IS NULL
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) * - - 26 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) * - - 26 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( - - 45 ) * col0 col1 FROM tab1
----
220320
225675
278460

query I rowsort
SELECT DISTINCT 16 + - + col0 FROM tab0 WHERE - 51 + + ( + ( + col1 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 - + - 14 FROM tab2
----
65
81
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9476
SELECT DISTINCT * FROM tab0 WHERE - 40 * + col1 - col1 + col2 - - 33 * + CAST( NULL AS DECIMAL ) NOT BETWEEN - 75 / - col0 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9476
SELECT DISTINCT * FROM tab0 WHERE - 40 * + col1 - col1 + col2 - - 33 * + CAST ( NULL AS REAL ) NOT BETWEEN - 75 / - col0 AND ( NULL )
----

query I rowsort
SELECT + col1 - - col2 * 16 AS col0 FROM tab0
----
1585
181
833

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL - MAX( ALL + col1 ) FROM tab2 WHERE + - col2 IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - MAX ( ALL + col1 ) FROM tab2 WHERE + - col2 IS NOT NULL
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 78 col1 FROM tab0 AS cor0
----
-31
-68
21

query I rowsort
SELECT ALL + col0 - - ( 41 ) FROM tab1 cor0
----
126
132
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 + - 6 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - + COUNT( * ) + + MIN( - col0 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9482
SELECT - + COUNT ( * ) + + MIN ( - col0 ) FROM tab2 AS cor0
----
-78

query I rowsort
SELECT col0 * 88 FROM tab2
----
4048
5632
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT COUNT( * ) * + - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9484
SELECT COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
-9

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL >= - 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT ALL - 96 DIV - 20 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL - 96 / - 20 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT DISTINCT - + MAX( ALL + 92 ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT - + MAX ( ALL + 92 ) FROM tab0 AS cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9488
SELECT - CAST( NULL AS SIGNED ) col1, CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9488
SELECT - CAST ( NULL AS INTEGER ) col1, CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT + SUM( - + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9489
SELECT + SUM ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9491
SELECT DISTINCT COUNT( * ), - COUNT( col2 ) + - CAST( NULL AS SIGNED ) / COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9491
SELECT DISTINCT COUNT ( * ), - COUNT ( col2 ) + - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9492
SELECT DISTINCT - ( SUM( DISTINCT + + CAST( + col1 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT - ( SUM ( DISTINCT + + CAST ( + col1 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL - 31 * 76 FROM tab0
----
-2356
-2356
-2356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col1 FROM tab0
----
44
44
44

query I rowsort
SELECT DISTINCT + - 6 FROM tab0 WHERE 91 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN 93 / - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 + - col0 * + col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-420
-4230
-700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + col2 IS NOT NULL
----

query I rowsort
SELECT - + col2 FROM tab2 cor0 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT DISTINCT - - 40 FROM tab2 cor0
----
40

query I rowsort
SELECT 31 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 23 + 0 AS col0 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 FROM tab2 AS cor0 WHERE NOT + 18 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 4 + - col2 + + 60 * + 82 + + col0 + + col0 FROM tab2 AS cor0
----
4985
5004
5008

query I rowsort
SELECT 29 * + 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09e050f6cde9222579bd3d0ba40d8a62

query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 17 ) IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9509
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT 75, col2 AS col0 FROM tab2 AS cor0
----
75
23
75
40
75
58

query I rowsort
SELECT ALL col1 * - + 23 AS col0 FROM tab1 AS cor0
----
-1081
-115
-322

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + 12 NOT BETWEEN NULL AND - - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT - MIN( ALL + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col1 * + col2 + + col1 + + 97 + - col0 * 69 AS col1 FROM tab1 AS cor0
----
-4752
-6058
-9331

query I rowsort
SELECT DISTINCT 75 + 80 * col0 FROM tab1 AS cor0
----
4155
6875
7355

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT - col2 DIV + + 34 + col1 FROM tab0 AS cor0
----
-1
21
80

skipif mysql # not compatible
query I rowsort label-9516
SELECT - col2 / + + 34 + col1 FROM tab0 AS cor0
----
-1
21
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 17 + - col0 col2 FROM tab0
----
-179
-45
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT col1 + + col2 DIV + + col0 - - - col0 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-9518
SELECT col1 + + col2 / + + col0 - - - col0 FROM tab2
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col1 col2 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 * 69 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9523
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( - 82 ) FROM tab0 WHERE col2 * col0 IS NOT NULL
----
-82
-82
-82

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col2, + 31 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + 27 col0 FROM tab2 AS cor0
----
19
37
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) - + + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) - + + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT + - COUNT( * ) FROM tab0 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9528
SELECT + - COUNT ( * ) FROM tab0 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT 53 * + 98 FROM tab1
----
5194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT + col2 DIV + + 77 + - 96 * + 93 AS col0 FROM tab2 AS cor0
----
-8928
-8928
-8928

skipif mysql # not compatible
query I rowsort label-9531
SELECT + col2 / + + 77 + - 96 * + 93 AS col0 FROM tab2 AS cor0
----
-8928
-8928
-8928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL - CAST( COUNT( + + 37 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - CAST ( COUNT ( + + 37 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = col2 * + 34
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 41 + col0 NOT BETWEEN - 37 AND - - col2
----

query I rowsort
SELECT DISTINCT - col0 * + + 70 AS col0 FROM tab2
----
-3220
-4480
-5250

query II rowsort
SELECT ALL col0, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT COUNT( * ), + COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9537
SELECT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 79 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT - ( + MIN( ALL col2 ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - ( + MIN ( ALL col2 ) ) AS col1 FROM tab0
----
-10

query II rowsort
SELECT ALL - + col0 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT - + ( + CAST( NULL AS SIGNED ) ) / - - col1 / - col1 / - - ( - col1 ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9541
SELECT - + ( + CAST ( NULL AS INTEGER ) ) / - - col1 / - col1 / - - ( - col1 ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT 75 * col2 DIV 3 FROM tab1 AS cor0
----
1475
1700
2400

skipif mysql # not compatible
query I rowsort label-9542
SELECT 75 * col2 / 3 FROM tab1 AS cor0
----
1475
1700
2400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9543
SELECT ALL + + 97, - col0 + + col2 + col0 * col2 * - - CAST( + col0 AS SIGNED ) * col1 + - - col2 DIV + + col2 AS col1 FROM tab2 cor0
----
97
12615657
97
21858734
97
2482046

skipif mysql # not compatible
query II rowsort label-9543
SELECT ALL + + 97, - col0 + + col2 + col0 * col2 * - - CAST ( + col0 AS INTEGER ) * col1 + - - col2 / + + col2 AS col1 FROM tab2 cor0
----
97
12615657
97
21858734
97
2482046

query I rowsort
SELECT 84 + - col2 + col1 * + 99 + 28 FROM tab1
----
1402
4697
548

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 85 + + + 45 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9546
SELECT + - col1 DIV - + 16 + + col1 AS col0, col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
14
14
49
47
5
5

skipif mysql # not compatible
query II rowsort label-9546
SELECT + - col1 / - + 16 + + col1 AS col0, col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
14
14
49
47
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT 10 + - col0 + - + 33 + + - 4 DIV + - 28 FROM tab1
----
-108
-114
-74

skipif mysql # not compatible
query I rowsort label-9547
SELECT 10 + - col0 + - + 33 + + - 4 / + - 28 FROM tab1
----
-108
-114
-74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 3 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - - + col2 col2, col0 FROM tab2 AS cor0
----
-17
75
-23
46
-24
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT + + MIN( ALL - + 46 ) AS col2 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9550
SELECT + + MIN ( ALL - + 46 ) AS col2 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT 87 FROM tab2 cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - col0 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - col0 + + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9553
SELECT + + col1 DIV - + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9553
SELECT + + col1 / - + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT + col0 * + ( + - col1 ), + col0 FROM tab1
----
-425
85
-4277
91
-714
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9555
SELECT DISTINCT + 56 col2, COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
56
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9555
SELECT DISTINCT + 56 col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
56
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT - COUNT( * ) - 21 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-9556
SELECT - COUNT ( * ) - 21 FROM tab0
----
-24

query I rowsort
SELECT DISTINCT - col0 + + 28 FROM tab1
----
-23
-57
-63

query I rowsort
SELECT - 66 - - + col1 FROM tab0
----
-45
-65
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9559
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * col1 / - ( + + col1 ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9559
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * col1 / - ( + + col1 ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT MAX( + ( - ( col2 ) ) ) - + ( 28 ) AS col1 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-9560
SELECT MAX ( + ( - ( col2 ) ) ) - + ( 28 ) AS col1 FROM tab0
----
-38

query I rowsort
SELECT 12 FROM tab0 WHERE + col0 * + col1 IS NOT NULL
----
12
12
12

query I rowsort
SELECT 78 - - + col2 + - - 3 * - 79 * - - 86 FROM tab0
----
-20205
-20257
-20294

query I rowsort
SELECT + 12 + - - col0 FROM tab0
----
109
27
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL + COUNT( col1 ) - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + COUNT ( col1 ) - + COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT + + COUNT( ALL CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9565
SELECT + + COUNT ( ALL CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9566
SELECT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 >= - + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - MAX( - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9568
SELECT - MAX ( - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT DISTINCT CAST( - + col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9569
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL + 28 * - - SUM( + 82 ) AS col1 FROM tab2 AS cor0
----
6888

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL + 28 * - - SUM ( + 82 ) AS col1 FROM tab2 AS cor0
----
6888

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9571
SELECT + CAST( - 23 AS SIGNED ) AS col0, col2 AS col1 FROM tab2 AS cor0
----
-23
23
-23
40
-23
58

skipif mysql # not compatible
query II rowsort label-9571
SELECT + CAST ( - 23 AS INTEGER ) AS col0, col2 AS col1 FROM tab2 AS cor0
----
-23
23
-23
40
-23
58

query I rowsort
SELECT - ( + - ( - col2 ) ) FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col1 FROM tab0 WHERE ( NOT - col0 IN ( - col2 * - - ( col2 ) * + col0, + ( 18 ) - - col0 ) )
----
1

query I rowsort
SELECT - col2 * - - col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) >= - + col1 - - + col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL COUNT( + + col2 ) + + - 60 AS col0 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL COUNT ( + + col2 ) + + - 60 AS col0 FROM tab1
----
-57

query I rowsort
SELECT - 5 + + - 57 FROM tab1 cor0
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 32 ) IS NOT NULL
----

query I rowsort
SELECT col1 * + 42 FROM tab1 AS cor0
----
1974
210
588

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT col1 + - + ( + col2 ) FROM tab1 WHERE + CAST( NULL AS SIGNED ) * col1 IS NULL
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-9581
SELECT col1 + - + ( + col2 ) FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * col1 IS NULL
----
-21
-54
-82

query I rowsort
SELECT ALL - - 73 - + + col0 FROM tab1 cor0
----
-12
-18
22

query I rowsort
SELECT - 20 AS col0 FROM tab0 AS cor0 WHERE NULL >= ( col0 - col2 * col1 * + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT MAX( ALL + - 68 ) AS col1 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT MAX ( ALL + - 68 ) AS col1 FROM tab0 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT DISTINCT col1 DIV 35 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT col1 / 35 FROM tab2 AS cor0
----
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9586
SELECT ALL + col2 AS col0, - col1 DIV col0 AS col1 FROM tab2 cor0
----
23
-1
40
-1
58
0

skipif mysql # not compatible
query II rowsort label-9586
SELECT ALL + col2 AS col0, - col1 / col0 AS col1 FROM tab2 cor0
----
23
-1
40
-1
58
0

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ( COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9588
SELECT ( COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9589
SELECT + col0 * + + CAST( col1 AS SIGNED ) AS col1, - col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-9589
SELECT + col0 * + + CAST ( col1 AS INTEGER ) AS col1, - col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 65 IS NULL
----

query II rowsort
SELECT ALL + 21, col2 FROM tab0 AS cor0
----
21
10
21
47
21
99

query I rowsort
SELECT ALL - col1 + - 20 FROM tab2
----
-71
-87
-97

query I rowsort
SELECT DISTINCT ( + + col2 ) * + - col1 - + col1 - + 70 + + - col1 FROM tab2
----
-1345
-3304
-4090

query I rowsort
SELECT DISTINCT - 67 + col2 + - col1 FROM tab1
----
-13
-46
15

query I rowsort
SELECT ALL + 39 * - 75 FROM tab1
----
-2925
-2925
-2925

query II rowsort
SELECT ALL ( - col0 ) AS col1, col1 AS col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9597
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT - COUNT( - 46 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9598
SELECT - COUNT ( - 46 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 75 * - col0 AS col1 FROM tab0 AS cor0
----
-1125
-6525
-7275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9600
SELECT CAST( + + col0 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9600
SELECT CAST ( + + col0 AS REAL ) FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - MAX( ALL - - 9 ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9601
SELECT - MAX ( ALL - - 9 ) col1 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT - + col1 + - col1 + + + col1 col1 FROM tab0 AS cor0 WHERE NOT - col2 * + 51 * + CAST( + - 62 AS SIGNED ) NOT IN ( + + ( + 85 ), - 26 + - col0 / col2, + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9602
SELECT - + col1 + - col1 + + + col1 col1 FROM tab0 AS cor0 WHERE NOT - col2 * + 51 * + CAST ( + - 62 AS INTEGER ) NOT IN ( + + ( + 85 ), - 26 + - col0 / col2, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT CAST( - + col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9603
SELECT CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT - col2 DIV col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9604
SELECT - col2 / col1 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + + col0 AS col1, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9606
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9607
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) NOT BETWEEN + + ( - - col1 ) - - col1 + + - 78 + + col2 AND + - 94
----

skipif mysql # not compatible
query III rowsort label-9607
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) NOT BETWEEN + + ( - - col1 ) - - col1 + + - 78 + + col2 AND + - 94
----

query I rowsort
SELECT DISTINCT - 1 * - + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9609
SELECT - + col0 + 36 DIV col1 + - 3 DIV col2 FROM tab1 AS cor0
----
-49
-78
-91

skipif mysql # not compatible
query I rowsort label-9609
SELECT - + col0 + 36 / col1 + - 3 / col2 FROM tab1 AS cor0
----
-49
-78
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT + COUNT( * ) + + 80 FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT + COUNT ( * ) + + 80 FROM tab2 cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT 58 + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9611
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT 58 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT ALL 71 + 78 FROM tab2 WHERE NOT - col0 * - col2 + + CAST( - col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL 71 + 78 FROM tab2 WHERE NOT - col0 * - col2 + + CAST ( - col1 AS INTEGER ) <> NULL
----

query I rowsort
SELECT + 85 * ( + ( col1 ) ) AS col1 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT - 12 * + - col0 AS col0 FROM tab0
----
1044
1164
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT MIN( ALL - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9615
SELECT MIN ( ALL - + col2 ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT + col1 + - + col1 + + 94 FROM tab2
----
94

query II rowsort
SELECT - 79 * col0, col1 FROM tab0
----
-1185
81
-6873
21
-7663
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT DISTINCT COUNT( * ) * ( + 8 ) col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9618
SELECT DISTINCT COUNT ( * ) * ( + 8 ) col0 FROM tab1 AS cor0
----
24

query II rowsort
SELECT + + col1 * + 44 AS col1, col0 AS col1 FROM tab1 AS cor0
----
2068
91
220
85
616
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT DISTINCT - COUNT( * ) * + 69 FROM tab0 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT - COUNT ( * ) * + 69 FROM tab0 cor0
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT ALL + col2 DIV + - col1 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + col2 / + - col1 + col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL - COUNT( * ) + 73 AS col1 FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - COUNT ( * ) + 73 AS col1 FROM tab1 cor0
----
70

query I rowsort
SELECT ALL col1 + - 98 AS col0 FROM tab1 AS cor0
----
-51
-84
-93

query II rowsort
SELECT - col2, col2 / - 44 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT - col1 * - 69 + + CAST( - 93 AS SIGNED ) * - col2 AS col0 FROM tab1
----
5832
9567
9894

skipif mysql # not compatible
query I rowsort label-9626
SELECT - col1 * - 69 + + CAST ( - 93 AS INTEGER ) * - col2 AS col0 FROM tab1
----
5832
9567
9894

query I rowsort
SELECT + ( + col1 ) + col2 - col1 AS col1 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9628
SELECT DISTINCT - col1 DIV + + col0 + + 67, + col1 FROM tab0 AS cor0
----
62
81
67
1
67
21

skipif mysql # not compatible
query II rowsort label-9628
SELECT DISTINCT - col1 / + + col0 + + 67, + col1 FROM tab0 AS cor0
----
62
81
67
1
67
21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 81 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col0 * + 49 * - 34 col2 FROM tab0 AS cor0
----
144963
161603
25071

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT + SUM( DISTINCT + 19 ) col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9631
SELECT DISTINCT + SUM ( DISTINCT + 19 ) col1 FROM tab0 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT - - col2 DIV 50 + + + col1 AS col2 FROM tab2 AS cor0
----
51
68
77

skipif mysql # not compatible
query I rowsort label-9632
SELECT - - col2 / 50 + + + col1 AS col2 FROM tab2 AS cor0
----
51
68
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, col0 + - 5 FROM tab2
----
51
41
67
70
77
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL MAX( - 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL MAX ( - 92 ) FROM tab1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col2 FROM tab2
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * + col1 * - col0 col1 FROM tab1
----
-13566
-8075
-81263

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9637
SELECT * FROM tab1 WHERE NOT + - 36 * - 97 - col2 = - col2 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9637
SELECT * FROM tab1 WHERE NOT + - 36 * - 97 - col2 = - col2 - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - 61 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9640
SELECT ALL + 62 + + + COUNT( * ) * - 66, SUM( ALL col0 ) col0 FROM tab0 WHERE NOT + col2 <> NULL
----
62
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9640
SELECT ALL + 62 + + + COUNT ( * ) * - 66, SUM ( ALL col0 ) col0 FROM tab0 WHERE NOT + col2 <> NULL
----
62
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 18 AS col1, 8 col1 FROM tab0 AS cor0
----
18
8
18
8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT - SUM( 11 ) AS col1 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9642
SELECT - SUM ( 11 ) AS col1 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT - MIN( 12 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - MIN ( 12 ) FROM tab0 AS cor0
----
-12

query II rowsort
SELECT DISTINCT - col0 AS col0, 57 AS col2 FROM tab0 AS cor0
----
-15
57
-87
57
-97
57

query I rowsort
SELECT 27 * col0 AS col2 FROM tab1
----
1377
2295
2457

query I rowsort
SELECT DISTINCT - 1 * col0 * + col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 32 NOT BETWEEN NULL AND - + col1 * + col1
----

query I rowsort
SELECT + 96 * - + col0 * + + col2 FROM tab2 AS cor0
----
-101568
-245760
-417600

query I rowsort
SELECT DISTINCT + AVG ( - ( + col2 ) ) FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - - 25 / col2 + - 93 * col0 AND + col2
----
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 + + + 39 AS col0 FROM tab0
----
138
249
3846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9651
SELECT + 24 DIV + 59 + + COUNT( * ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9651
SELECT + 24 / + 59 + + COUNT ( * ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col1 + + col0 * - 50 + col2 + - col1 AS col2 FROM tab1
----
-2454
-4191
-4482

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + - col2 NOT BETWEEN - col0 AND + 37
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9654
SELECT ALL + col2 + CAST( NULL AS DECIMAL ) + - + 42 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + col2 + CAST ( NULL AS REAL ) + - + 42 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT + 84 + + COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT + 84 + + COUNT ( * ) FROM tab2 AS cor0
----
87

query I rowsort
SELECT - - 34 + col2 AS col0 FROM tab1 AS cor0
----
102
130
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT DISTINCT + col1 DIV + col2 * col0 DIV ( - + col1 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT + col1 / + col2 * col0 / ( - + col1 ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT COUNT( * ) * 73 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT COUNT ( * ) * 73 FROM tab1 AS cor0
----
219

query I rowsort
SELECT - + 80 * - + col0 * - - 78 AS col2 FROM tab1 cor0
----
318240
530400
567840

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL + ( - ( + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + ( - ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - 84 * col0 AS col2 FROM tab0 AS cor0
----
1260
7308
8148

query I rowsort
SELECT ALL 89 * + - 11 + - - col1 FROM tab0
----
-898
-958
-978

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9663
SELECT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT - 89 - col0 + + col0 + - + col0 AS col2 FROM tab2 AS cor0
----
-135
-153
-164

query I rowsort
SELECT ALL - ( col0 ) - + col1 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT + - col2 + - CAST( NULL AS SIGNED ) - - 64 * + 64 + - col2 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT + - col2 + - CAST ( NULL AS INTEGER ) - - 64 * + 64 + - col2 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - + MAX( ALL ( - 34 ) ) AS col0 FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-9669
SELECT - + MAX ( ALL ( - 34 ) ) AS col0 FROM tab1 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col1 ) AS col1, - 75 col0 FROM tab1 AS cor0
----
-14
-75
-47
-75
-5
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 79 col0 FROM tab1 cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9672
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9672
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - 0
----

query I rowsort
SELECT ALL col2 * + 82 FROM tab2
----
1886
3280
4756

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 67 * + col2 FROM tab1
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT MIN( ALL 44 ) AS col2 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-9677
SELECT MIN ( ALL 44 ) AS col2 FROM tab0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT col2 DIV - 72 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT col2 / - 72 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9679
SELECT ALL COUNT( * ) AS col1, COUNT( - col1 ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9679
SELECT ALL COUNT ( * ) AS col1, COUNT ( - col1 ) AS col1 FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 35 col2 FROM tab2
----
51
35
67
35
77
35

query I rowsort
SELECT + ( - col2 ) + - + col0 * - + ( - col2 ) * col1 + - 8 AS col2 FROM tab1
----
-25142
-290912
-68648

query I rowsort
SELECT 53 + + col1 AS col1 FROM tab0 AS cor0
----
134
54
74

query I rowsort
SELECT + col0 + + ( + + 21 ) * ( - - col1 ) * 74 FROM tab1 cor0
----
21807
73129
7855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT - + MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT - + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( + + col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( + + col0 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT SUM( ALL + 95 ) + - 35 AS col2 FROM tab0
----
250

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT SUM ( ALL + 95 ) + - 35 AS col2 FROM tab0
----
250

query I rowsort
SELECT DISTINCT 86 + - col1 + - - 67 + - col1 AS col1 FROM tab2
----
-1
19
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + col2 + - col1 col0 FROM tab1
----
112
133
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT + ( COUNT( ALL - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + ( COUNT ( ALL - col0 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9690
SELECT 46 - + 33 + - col1 AS col1, - col1 / - + CAST( NULL AS SIGNED ) + col2 / + col2 AS col1 FROM tab0
----
-68
NULL
-8
NULL
12
NULL

skipif mysql # not compatible
query II rowsort label-9690
SELECT 46 - + 33 + - col1 AS col1, - col1 / - + CAST ( NULL AS INTEGER ) + col2 / + col2 AS col1 FROM tab0
----
-68
NULL
-8
NULL
12
NULL

query I rowsort
SELECT ALL - 5 FROM tab1 WHERE ( NOT col2 <> NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE 58 * - col2 - - 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 91 + - + 42 * - 1 AS col0 FROM tab1 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 + 57 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 + 57 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 34 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE + 6 * + col0 * - - 0 - col2 NOT BETWEEN col2 AND + col2
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9697
SELECT - - CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab0 WHERE NULL = 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT - - CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab0 WHERE NULL = 73
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 * col1 col0 FROM tab2
----
46
2346
64
4928
75
5025

query I rowsort
SELECT DISTINCT + 65 + + col1 AS col1 FROM tab1
----
112
70
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT MIN( + + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9701
SELECT MIN ( + + col0 ) AS col1 FROM tab1 AS cor0
----
51

query II rowsort
SELECT ALL + col0, + 48 FROM tab2 cor0
----
46
48
64
48
75
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT ALL - - CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9703
SELECT ALL - - CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 89 * + col1 + - col2 + - 0 AS col0 FROM tab1 AS cor0
----
-1342
-4251
-504

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col1 / + - 47 <= - 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 14 * - 44 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9707
SELECT DISTINCT 32 * - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT 32 * - - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT DISTINCT - 55 * - col2 DIV col2 AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT - 55 * - col2 / col2 AS col1 FROM tab2
----
55

query I rowsort
SELECT DISTINCT col2 * col2 * + 23 FROM tab0
----
225423
2300
50807

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT 19 DIV + ( - 98 ) * - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9710
SELECT 19 / + ( - 98 ) * - col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + col0 ) * - col2 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT DISTINCT MIN( + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT MIN ( + + col2 ) FROM tab1
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + - col2 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT ALL - + CAST( - 90 AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
810

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - + CAST ( - 90 AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT DISTINCT + COUNT( * ) * + - 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-378

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT + COUNT ( * ) * + - 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-378

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT + ( - 61 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 85 * 19 FROM tab1 AS cor0
----
-1615
-1615
-1615

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE col2 > + 62
----

query II rowsort
SELECT DISTINCT + 25 * - col0 + col0, - 15 AS col2 FROM tab2 AS cor0
----
-1104
-15
-1536
-15
-1800
-15

query I rowsort
SELECT DISTINCT + 89 + + 58 FROM tab1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + - 74 + - ( - COUNT( * ) ) FROM tab0 WHERE + col2 IS NULL
----
-74

skipif mysql # not compatible
query I rowsort label-9724
SELECT + - 74 + - ( - COUNT ( * ) ) FROM tab0 WHERE + col2 IS NULL
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT 57 * - COUNT( * ) + 60 AS col2 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-9725
SELECT 57 * - COUNT ( * ) + 60 AS col2 FROM tab1
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9726
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + - 70 + 3 - COUNT( * ) DIV - SUM( ALL - col2 ) FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + - 70 + 3 - COUNT ( * ) / - SUM ( ALL - col2 ) FROM tab0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + COUNT( ALL + 57 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9727
SELECT + COUNT ( ALL + 57 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT + col0, 95 FROM tab0 AS cor0
----
15
95
87
95
97
95

query I rowsort
SELECT DISTINCT - - col2 * - + col2 - + col0 + - + col0 FROM tab1 AS cor0
----
-3651
-4806
-9318

query I rowsort
SELECT ALL 41 * - col0 + 31 AS col1 FROM tab2
----
-1855
-2593
-3044

query IIIIII rowsort
SELECT * FROM tab0 cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT ALL - 66 * 13 * + + ( - 97 ) + + col2 FROM tab1 AS cor0
----
83285
83294
83322

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - col2 * - col0 AND ( + + col0 ) + + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9735
SELECT DISTINCT + - 87 * - - 83 AS col2, - SUM( + col2 ) FROM tab0 AS cor0
----
-7221
-156

skipif mysql # not compatible
query II rowsort label-9735
SELECT DISTINCT + - 87 * - - 83 AS col2, - SUM ( + col2 ) FROM tab0 AS cor0
----
-7221
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT 56 * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - - col2 * - + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9736
SELECT 56 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - - col2 * - + col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL MIN( ALL + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL MIN ( ALL + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + col0 * - 39 FROM tab1 AS cor0
----
-1989
-3315
-3549

query III rowsort
SELECT * FROM tab2 WHERE NOT - 67 IS NOT NULL
----

query I rowsort
SELECT + col0 * - - col2 AS col1 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT DISTINCT 58, - col0 AS col0 FROM tab2
----
58
-46
58
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT + 27 * + SUM( DISTINCT + col0 ) AS col2 FROM tab2
----
4995

skipif mysql # not compatible
query I rowsort label-9742
SELECT + 27 * + SUM ( DISTINCT + col0 ) AS col2 FROM tab2
----
4995

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT + MIN( ALL - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9743
SELECT + MIN ( ALL - col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT COUNT( * ) DIV - 84 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9744
SELECT COUNT ( * ) / - 84 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT COUNT( ALL col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9745
SELECT COUNT ( ALL col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + 96 * col1 FROM tab2
----
4896
6432
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT MAX( 46 ) * + MIN( ALL col2 ) col0 FROM tab0
----
460

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9747
SELECT MAX ( 46 ) * + MIN ( ALL col2 ) col0 FROM tab0
----
460

query I rowsort
SELECT ALL + col0 + - 15 FROM tab0
----
0
72
82

query I rowsort
SELECT - 33 * - col1 + 25 AS col2 FROM tab1
----
1576
190
487

query I rowsort
SELECT ALL - 77 AS col1 FROM tab2
----
-77
-77
-77

query I rowsort
SELECT ALL ( + 78 ) + + col0 * col0 FROM tab0
----
303
7647
9487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col0 FROM tab2
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN 67 AND NULL
----

query I rowsort
SELECT - 10 * 68 AS col2 FROM tab1
----
-680
-680
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT COUNT( * ) + - SUM( DISTINCT + 14 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT + 14 ) FROM tab1
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col1 FROM tab2
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 / - 18 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( col0 ) * col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT col0 * + col0 + 60 FROM tab2
----
2176
4156
5685

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * col2 + - 7 AS col1 FROM tab1
----
3474
4617
9209

query I rowsort
SELECT + 50 FROM tab2 WHERE NOT ( - col2 ) = + 0 * 48
----
50
50
50

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9764
SELECT + COUNT( * ) + + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT + COUNT ( * ) + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 59 + + 71 * col1 AS col2 FROM tab2
----
3562
4698
5408

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL - COUNT( * ) * + 19 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - COUNT ( * ) * + 19 FROM tab2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9767
SELECT col2 DIV - 29 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9767
SELECT col2 / - 29 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT 5 DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9768
SELECT 5 / COUNT ( * ) FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 9 * col0 > ( + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 87 - col2 * + col1 FROM tab0
----
-186
-297
-3894

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col2 * - col0 FROM tab2
----
2116
5120
8700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9773
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN col2 AND col1 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9773
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN col2 AND col1 - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * col2 - 57 * + col0 AS col1 FROM tab2 AS cor0
----
-1449
-389
-568

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( ( - ( - 80 ) ) ) > NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + col0 + col1 NOT IN ( 33 * + col1 )
----

query I rowsort
SELECT 69 * - col0 AS col1 FROM tab2 AS cor0
----
-3174
-4416
-5175

query I rowsort
SELECT ALL 36 * - 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 9ceb7d987d7ee17ee2389ba9721db54c

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT - 79 DIV 86 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9779
SELECT - 79 / 86 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT + 46 DIV + col1 AS col0 FROM tab0
----
0
2
46

skipif mysql # not compatible
query I rowsort label-9780
SELECT + 46 / + col1 AS col0 FROM tab0
----
0
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL COUNT( * ) + 88 FROM tab0 cor0 CROSS JOIN tab0
----
97

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL COUNT ( * ) + 88 FROM tab0 cor0 CROSS JOIN tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NULL BETWEEN 99 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NULL BETWEEN 99 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - MAX( col1 ) FROM tab1 AS cor0 WHERE NOT col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT - MAX ( col1 ) FROM tab1 AS cor0 WHERE NOT col2 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL + MIN( 10 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9784
SELECT ALL + MIN ( 10 ) col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL MAX( + col1 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL MAX ( + col1 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 86 ) <= ( NULL )
----

query I rowsort
SELECT ALL + 60 FROM tab2 AS cor0 WHERE col1 * col1 BETWEEN col1 AND col2 - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND col1
----

query I rowsort
SELECT - 47 * 82 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT COUNT( 12 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9790
SELECT COUNT ( 12 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL SUM( ( + 46 ) ) AS col2 FROM tab0 cor0 WHERE 2 IS NOT NULL
----
138

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL SUM ( ( + 46 ) ) AS col2 FROM tab0 cor0 WHERE 2 IS NOT NULL
----
138

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0 + + 79 )
----

query I rowsort
SELECT ALL - 60 + + ( + col0 ) + + col1 * 95 FROM tab2
----
4831
6380
7319

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT MAX( ALL + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9794
SELECT MAX ( ALL + col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9795
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 21 FROM tab0 WHERE NOT - col0 IS NULL
----
21

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9797
SELECT DISTINCT col2 DIV + col0 FROM tab0 WHERE NOT col0 + col2 BETWEEN NULL AND CAST( + 24 AS DECIMAL )
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT col2 / + col0 FROM tab0 WHERE NOT col0 + col2 BETWEEN NULL AND CAST ( + 24 AS REAL )
----
0
1
3

query I rowsort
SELECT ALL + col0 * + + 47 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT ( - col0 ) <= 53
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 4 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT + 20 * col1 DIV + col1 + col1 DIV - col2 FROM tab2
----
18
19
19

skipif mysql # not compatible
query I rowsort label-9801
SELECT + 20 * col1 / + col1 + col1 / - col2 FROM tab2
----
18
19
19

query I rowsort
SELECT DISTINCT - 6 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE - col2 * 89 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 * 89 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - 47 + - + col1 + col2 FROM tab1 cor0
----
-26
35
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT MIN( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT MIN ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----
NULL

query I rowsort
SELECT DISTINCT - 21 * - + col2 AS col2 FROM tab2 AS cor0
----
1218
483
840

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - 57 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT COUNT( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE - 52 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9808
SELECT DISTINCT COUNT ( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE - 52 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 44 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT COUNT( * ) + + 87 AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT COUNT ( * ) + + 87 AS col0 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - + 2 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-9811
SELECT - + 2 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT - COUNT( - col2 ) * COUNT( col1 ) + 60 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT - COUNT ( - col2 ) * COUNT ( col1 ) + 60 FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT - - col0 + col2 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
187
2224
9898

skipif mysql # not compatible
query I rowsort label-9814
SELECT - - col0 + col2 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE - col1 * - - col1 <= col0 * + 35 + col1 * 98
----
51
67
77

query I rowsort
SELECT DISTINCT - + col1 - - + ( 55 ) + + 71 AS col0 FROM tab2 cor0
----
49
59
75

query I rowsort
SELECT col1 * + col0 + - - col0 * col1 FROM tab1 AS cor0
----
1428
850
8554

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 30 + - + 78 AS col0 FROM tab1 AS cor0
----
-108
-108
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT - CAST( + 62 AS SIGNED ) * ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col1 AND NULL OR - 94 <> ( - col2 )
----
186

skipif mysql # not compatible
query I rowsort label-9820
SELECT - CAST ( + 62 AS INTEGER ) * ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col1 AND NULL OR - 94 <> ( - col2 )
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT CAST( - 25 AS SIGNED ) + + COUNT( * ) FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9821
SELECT CAST ( - 25 AS INTEGER ) + + COUNT ( * ) FROM tab0 cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9822
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) * 17 IS NULL OR NOT NULL BETWEEN 38 * col1 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9822
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) * 17 IS NULL OR NOT NULL BETWEEN 38 * col1 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + col1 - col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 17 + - col2 AS col2 FROM tab1 AS cor0
----
-42
-51
-79

query I rowsort
SELECT - - 76 + - 20 AS col1 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT ALL + COUNT( * ), + COUNT( + col2 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9826
SELECT ALL + COUNT ( * ), + COUNT ( + col2 ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT + 22 + + COUNT( * ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT + 22 + + COUNT ( * ) FROM tab1 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT 33 + + SUM( DISTINCT - - col2 ) AS col2 FROM tab1
----
256

skipif mysql # not compatible
query I rowsort label-9828
SELECT 33 + + SUM ( DISTINCT - - col2 ) AS col2 FROM tab1
----
256

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 * + 44 FROM tab1
----
153249
203547
405555

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + + 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 37 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 WHERE - - 30 / - 63 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL + 0 + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + 0 + + COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( col0 / - col2 + col1 + + col2 ) < ( - col0 )
----

query I rowsort
SELECT col2 * 5 - - col2 FROM tab0 WHERE ( + col1 ) > + 55
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT 74 IS NULL
----
59
68
96

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0 WHERE ( ( col0 ) IS NOT NULL )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN + col1 * col0 * + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 / + col0 FROM tab2 WHERE NOT col1 + + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 30 + + col1 * + 41 FROM tab1 AS cor0 WHERE NOT col2 - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9845
SELECT + 88 DIV + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 88 / + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - - MIN( 66 ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9846
SELECT - - MIN ( 66 ) AS col1 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL + MIN( - - col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL + MIN ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9848
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = col0 + + CAST( + 14 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9848
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = col0 + + CAST ( + 14 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT - SUM( + col2 ) AS col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT - SUM ( + col2 ) AS col0 FROM tab2 cor0
----
-121

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + - 84 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col0 FROM tab0, tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT - - COUNT( DISTINCT 91 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND 31 + - - col2
----
0

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - - COUNT ( DISTINCT 91 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND 31 + - - col2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col0 + + - col0
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
-14
-47
-5

query I rowsort
SELECT ALL col2 + - - col1 AS col0 FROM tab2
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9858
SELECT CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT DISTINCT - col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT - col1 / + col0 AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + col2 * - col1 FROM tab0 cor0 WHERE 40 * - + 27 + - col1 + col0 + - col2 / col1 IS NOT NULL
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT DISTINCT + col1 + - - 5 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( col2 * + ( col1 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + col1 + - - 5 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( col2 * + ( col1 ) ) IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT + col0 + + col2 + - col0 * - CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT + col0 + + col2 + - col0 * - CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - ( + col2 ) * - + 91 + - ( col2 ) FROM tab0
----
64108
79160
873774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - + col0 + + col2 FROM tab0
----
752
880
9702

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - + col0 + + col2 FROM tab0
----
752
880
9702

onlyif mysql # DIV for integer division: 
query II rowsort label-9867
SELECT ALL + col0 + + 19 AS col0, - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
104
1
110
1
70
1

skipif mysql # not compatible
query II rowsort label-9867
SELECT ALL + col0 + + 19 AS col0, - col2 / - col2 AS col2 FROM tab1 AS cor0
----
104
1
110
1
70
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9868
SELECT ALL + ( COUNT( * ) ) DIV + 89 * 5 * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + ( COUNT ( * ) ) / + 89 * 5 * + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 90 AS col2 FROM tab2 cor0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT DISTINCT + 43 DIV - col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + 43 / - col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * - col1 * + - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 - + col0 col2 FROM tab2
----
-15
-33
-44

query I rowsort
SELECT DISTINCT 73 + col0 AS col2 FROM tab2
----
119
137
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT 0 * + + MAX( + + 46 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT 0 * + + MAX ( + + 46 ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT col0 DIV - + 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT col0 / - + 91 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 39 * ( + + col1 ) AS col0 FROM tab1
----
1833
195
546

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9877
SELECT * FROM tab1 WHERE NOT NULL < CAST( - 37 AS SIGNED ) + + col1 + col1 + col0
----

skipif mysql # not compatible
query III rowsort label-9877
SELECT * FROM tab1 WHERE NOT NULL < CAST ( - 37 AS INTEGER ) + + col1 + col1 + col0
----

query I rowsort
SELECT ALL + 86 AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 25 IS NULL ) OR + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT DISTINCT CAST( - ( ( ( - ( + col1 ) ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT CAST ( - ( ( ( - ( + col1 ) ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + 31 - - 80 / 47 - col1 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 35 * - 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to bb7b999648fdece98c89ef94f1d23e93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col2 col1, col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
47
-870
10
-9603
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT - + 70 + + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT - + 70 + + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9886
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9887
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9888
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 19 - + CAST( NULL AS SIGNED ) - - 98 / + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9888
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 19 - + CAST ( NULL AS INTEGER ) - - 98 / + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 26 FROM tab2 AS cor0 WHERE ( 96 ) BETWEEN col0 AND + col2
----

query I rowsort
SELECT ALL col2 + - + 54 AS col1 FROM tab1
----
14
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT MIN( col1 ) + - MAX( - col2 ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-9891
SELECT MIN ( col1 ) + - MAX ( - col2 ) FROM tab2
----
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - + col2 * + col1 IN ( + 23 )
----

query I rowsort
SELECT ALL - col0 * col0 + - - col2 FROM tab1
----
-2505
-7166
-8213

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT - col0 DIV + col1 + + + col2 AS col1 FROM tab2
----
23
40
57

skipif mysql # not compatible
query I rowsort label-9895
SELECT - col0 / + col1 + + + col2 AS col1 FROM tab2
----
23
40
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9896
SELECT * FROM tab2 WHERE NULL = - col0 / - ( - - 83 ) * 92 * ( + col0 ) + + col2 * + col1 + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9896
SELECT * FROM tab2 WHERE NULL = - col0 / - ( - - 83 ) * 92 * ( + col0 ) + + col2 * + col1 + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 * 26 * col1 + + 42 FROM tab2
----
116756
154196
67668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL - + SUM( + 38 ) AS col2 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL - + SUM ( + 38 ) AS col2 FROM tab2 AS cor0
----
-114

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + 9 + + - col0 >= + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 20 AS col2 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT + 93 * - + col1 AS col0 FROM tab1 AS cor0
----
-1302
-4371
-465

query I rowsort
SELECT 95 AS col0 FROM tab0 WHERE + col2 IN ( + col1 + - + 3 + - + col1 + - 12 * - col1 * + col2 + 73 * col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT - COUNT( * ) * + COUNT( * ) * + + 96 + + SUM( + 57 ) AS col0 FROM tab2
----
-693

skipif mysql # not compatible
query I rowsort label-9904
SELECT - COUNT ( * ) * + COUNT ( * ) * + + 96 + + SUM ( + 57 ) AS col0 FROM tab2
----
-693

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT - COUNT( * ) * - + 10 + 60 + - 72, 48 AS col0 FROM tab0 cor0
----
18
48

skipif mysql # not compatible
query II rowsort label-9905
SELECT - COUNT ( * ) * - + 10 + 60 + - 72, 48 AS col0 FROM tab0 cor0
----
18
48

query I rowsort
SELECT - 11 * + 24 + 14 + col2 + col0 + + col2 FROM tab1 AS cor0
----
-23
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL + COUNT( * ) + + 77 AS col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + COUNT ( * ) + + 77 AS col1 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT + COUNT( * ) + + 47 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9908
SELECT + COUNT ( * ) + + 47 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT + ( - col0 ) - - col1 * col0 AS col1 FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT ALL + 75 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 * - col0 + + + col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT col1 + - - 64 + + 64 AS col1 FROM tab1 AS cor0
----
133
142
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT COUNT( * ) + + COUNT( * ) * - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9913
SELECT COUNT ( * ) + + COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - - col2 * 55 AS col2 FROM tab1 AS cor0
----
3245
3740
5280

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + 3 * - + col1 FROM tab0 AS cor0
----
-243
-3
-63

query I rowsort
SELECT ALL 7 * 67 FROM tab0 WHERE NOT ( + 44 IS NULL )
----
469
469
469

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT ALL + col1 DIV + + 18 AS col1 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL + col1 / + + 18 AS col1 FROM tab2
----
2
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT - - col1 * + 54 + + CAST( + col0 AS SIGNED ) FROM tab0 WHERE NOT + 19 + - - 68 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9919
SELECT - - col1 * + 54 + + CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NOT + 19 + - - 68 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * + - col2 col2 FROM tab1
----
-2242
-2584
-3648

query I rowsort
SELECT + - ( - + ( + + 40 ) ) * col1 FROM tab2 AS cor0
----
2040
2680
3080

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 48 BETWEEN - 45 AND + 60
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE - 11 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query II rowsort
SELECT DISTINCT + - 49 AS col1, - 82 AS col0 FROM tab1 AS cor0
----
-49
-82

query II rowsort
SELECT DISTINCT col2, - col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT + CAST( NULL AS SIGNED ) + + 29 * + - col1 * - col0 AS col2 FROM tab2 cor0 WHERE NOT + col2 * - ( - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9926
SELECT + CAST ( NULL AS INTEGER ) + + 29 * + - col1 * - col0 AS col2 FROM tab2 cor0 WHERE NOT + col2 * - ( - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT - 27 * - col2 * - + col1 + + - col0 DIV + + 71 + + col0 FROM tab0 AS cor0
----
-102774
-2577
-5584

skipif mysql # not compatible
query I rowsort label-9927
SELECT - 27 * - col2 * - + col1 + + - col0 / + + 71 + + col0 FROM tab0 AS cor0
----
-102774
-2577
-5584

query II rowsort
SELECT ALL + 28 * - col0 * col1 AS col0, col1 AS col1 FROM tab2 AS cor0
----
-137984
77
-140700
67
-65688
51

query I rowsort
SELECT ALL - col1 * - 38 + ( - + col1 ) FROM tab2 cor0
----
1887
2479
2849

query I rowsort
SELECT + + 97 AS col1 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT ALL col2 + - col0 DIV + col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL col2 + - col0 / + col2 FROM tab2
----
21
39
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9932
SELECT ALL - COUNT( + CAST( - 30 AS DECIMAL ) ) + 91 + 84 + + 0 AS col1 FROM tab1
----
172

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - COUNT ( + CAST ( - 30 AS REAL ) ) + 91 + 84 + + 0 AS col1 FROM tab1
----
172

query I rowsort
SELECT DISTINCT col2 + - 76 + 34 AS col1 FROM tab1
----
17
26
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT COUNT( * ) * - MAX( ALL + 92 ) FROM tab0 WHERE NULL IN ( col2, + col1, col1, 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT COUNT ( * ) * - MAX ( ALL + 92 ) FROM tab0 WHERE NULL IN ( col2, + col1, col1, 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL + - ( + ( - + SUM( col0 ) ) ) * MAX( col1 ) AS col0 FROM tab0 WHERE NULL < + col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + - ( + ( - + SUM ( col0 ) ) ) * MAX ( col1 ) AS col0 FROM tab0 WHERE NULL < + col2 + + col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9936
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL COUNT( - col0 ) + + + 28 AS col2 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL COUNT ( - col0 ) + + + 28 AS col2 FROM tab0
----
31

query II rowsort
SELECT DISTINCT - col2 + - col0 AS col0, - 21 * + col2 * - 97 * - col1 FROM tab2 cor0
----
-104
-6273960
-133
-7915782
-69
-2389401

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9939
SELECT DISTINCT CAST( col2 AS SIGNED ) * - ( 66 ), - col1 AS col1 FROM tab2 AS cor0
----
-1518
-51
-2640
-77
-3828
-67

skipif mysql # not compatible
query II rowsort label-9939
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - ( 66 ), - col1 AS col1 FROM tab2 AS cor0
----
-1518
-51
-2640
-77
-3828
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * 83 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 83 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT - + COUNT( * ) + + 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-9941
SELECT - + COUNT ( * ) + + 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT + + COUNT( DISTINCT - - 69 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9943
SELECT + + COUNT ( DISTINCT - - 69 ) FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT - 66 * 80 + - - 65 + + col0 - + col2 + - - col2 AS col2 FROM tab2 AS cor0
----
-5140
-5151
-5169

query I rowsort
SELECT ALL - - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab0 AS cor0 WHERE NOT 56 NOT BETWEEN + col0 + col2 AND + 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT DISTINCT + 84 FROM tab1 AS cor0 WHERE NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT + 84 FROM tab1 AS cor0 WHERE NULL <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 43 AS col1 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL 16 FROM tab0 AS cor0 WHERE col0 <> ( - - 96 + - 75 )
----
16
16
16

query I rowsort
SELECT 2 * - col0 AS col1 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT 8 / + - col1 + col2 * - 66 * - col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + 45 * - col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col0 * - ( - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9953
SELECT ALL 79 DIV - MIN( - - col1 ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL 79 / - MIN ( - - col1 ) FROM tab0
----
-79

query II rowsort
SELECT 95 * - - col1 AS col2, + col2 + - col0 FROM tab0
----
1995
-77
7695
32
95
2

query I rowsort
SELECT - - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - + col1 AS col1 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9957
SELECT - col2 DIV 24 AS col1, col2 AS col0 FROM tab2
----
-1
40
-2
58
0
23

skipif mysql # not compatible
query II rowsort label-9957
SELECT - col2 / 24 AS col1, col2 AS col0 FROM tab2
----
-1
40
-2
58
0
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col0 col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT + COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9959
SELECT + COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9960
SELECT - SUM( + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9960
SELECT - SUM ( + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 21 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-21
14
-21
47
-21
5

query I rowsort
SELECT col2 * col0 + - col1 AS col1 FROM tab0 WHERE - 16 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 * - 32 * 55 + - 77 + + 84 col2 FROM tab2 AS cor0
----
158407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - col0 + col0 FROM tab0 cor0
----
-690
-783
-9506

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - col0 + col0 FROM tab0 cor0
----
-690
-783
-9506

query II rowsort
SELECT ALL + col0 * - col2, - col0 AS col2 FROM tab1 cor0
----
-4896
-51
-5015
-85
-6188
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 AS cor0 WHERE NOT + col0 / + - col0 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col0 * + + col1 + - col2 + col2 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT - 2 + COUNT( * ) * + - COUNT( * ) FROM tab0 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9968
SELECT - 2 + COUNT ( * ) * + - COUNT ( * ) FROM tab0 cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col0 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT - 99 + col2 AS col0 FROM tab1
----
-3
-31
-40

query I rowsort
SELECT DISTINCT - col2 - - + col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL - + 92 FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9973
SELECT * FROM tab1 AS cor0 WHERE CAST( - 44 AS SIGNED ) > + col1
----

skipif mysql # not compatible
query III rowsort label-9973
SELECT * FROM tab1 AS cor0 WHERE CAST ( - 44 AS INTEGER ) > + col1
----

query I rowsort
SELECT - ( - 10 ) - col2 FROM tab0 AS cor0
----
-37
-89
0

query I rowsort
SELECT + - col0 * + ( 2 ) FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT ALL + 7 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col0 / + + col1 BETWEEN NULL AND + + col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT COUNT( ALL + + 14 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9978
SELECT COUNT ( ALL + + 14 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL col2 * - 32 AS col0 FROM tab0
----
-1504
-3168
-320

query II rowsort
SELECT ALL - 33 AS col0, col1 FROM tab2
----
-33
51
-33
67
-33
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT - 76 DIV - col1 FROM tab0
----
0
3
76

skipif mysql # not compatible
query I rowsort label-9981
SELECT - 76 / - col1 FROM tab0
----
0
3
76

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col1 <> - col1 + + + col1 - - 28 OR NOT - - col0 + + 41 NOT BETWEEN 16 AND ( + 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT - 42 DIV + col1 FROM tab0
----
-2
-42
0

skipif mysql # not compatible
query I rowsort label-9983
SELECT - 42 / + col1 FROM tab0
----
-2
-42
0

query II rowsort
SELECT col0, col1 * + + col1 - - col2 FROM tab0
----
15
6608
87
451
97
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 75 FROM tab0 WHERE - col0 * - + ( - col0 ) IS NOT NULL
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9987
SELECT * FROM tab2 WHERE NOT + ( + col0 ) * - - col1 * - col1 + - 33 * + + 26 * - + CAST( NULL AS SIGNED ) - + 53 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9987
SELECT * FROM tab2 WHERE NOT + ( + col0 ) * - - col1 * - col1 + - 33 * + + 26 * - + CAST ( NULL AS INTEGER ) - + 53 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 98 * - 45 / + 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 74 + 19 AS col1 FROM tab1 cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT - ( - col0 ) DIV + - 47 AS col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9991
SELECT - ( - col0 ) / + - 47 AS col0 FROM tab2 cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 AS col2, col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT - - 67 AS col1, + SUM( + 88 ) FROM tab2 AS cor0
----
67
264

skipif mysql # not compatible
query II rowsort label-9994
SELECT - - 67 AS col1, + SUM ( + 88 ) FROM tab2 AS cor0
----
67
264

query I rowsort
SELECT DISTINCT col2 + + - col0 * - - col0 AS col0 FROM tab1
----
-2505
-7166
-8213

query I rowsort
SELECT - col1 * + - 87 FROM tab2
----
4437
5829
6699

query II rowsort
SELECT - col0 * - 29 AS col2, col0 FROM tab0 WHERE - + 78 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL + 20 * + + COUNT( ALL - + col0 ) - + 76 - 24 * + + COUNT( * ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + 20 * + + COUNT ( ALL - + col0 ) - + 76 - 24 * + + COUNT ( * ) FROM tab2
----
-88

query I rowsort
SELECT DISTINCT + ( + col1 ) + - col2 - + - col0 AS col0 FROM tab0
----
-1
49
98

