sqllogictest
Artifact Content
Not logged in

Artifact 6c4bb6c328e3d2072d2ec33f381031006886bd64:


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 (