sqllogictest
Artifact Content
Not logged in

Artifact 2ba0018df353ec90720a3e697a4fdcfd5f107f05:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 95 col2 FROM tab0
----
105
142
194

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

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

query I rowsort
SELECT DISTINCT - + 45 + col2 FROM tab0 AS cor0
----
-35
2
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT ALL 48 DIV + + col1 + - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL 48 / + + col1 + - - col1 FROM tab2 AS cor0
----
51
67
77

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

query I rowsort
SELECT 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

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

query I rowsort
SELECT + col2 - + col1 * + 85 AS col1 FROM tab0 AS cor0
----
-1775
-6838
14

query I rowsort
SELECT + + col0 - - 17 FROM tab2 cor0
----
63
81
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9
SELECT - 88 * - CAST( NULL AS SIGNED ) - col2 + - - 97 * + + ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT - 88 * - CAST ( NULL AS INTEGER ) - col2 + - - 97 * + + ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-10
SELECT DISTINCT 49 + MAX( ALL + - ( + - col1 ) ), + 42 col1 FROM tab1 cor0
----
96
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-10
SELECT DISTINCT 49 + MAX ( ALL + - ( + - col1 ) ), + 42 col1 FROM tab1 cor0
----
96
42

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

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL < - 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT 73 * CAST( - - 70 AS SIGNED ) AS col1 FROM tab0
----
5110
5110
5110

skipif mysql # not compatible
query I rowsort label-13
SELECT 73 * CAST ( - - 70 AS INTEGER ) AS col1 FROM tab0
----
5110
5110
5110

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-14
SELECT ALL - - 80 col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
80
3

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT + COUNT( * ) + + 81 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-15
SELECT + COUNT ( * ) + + 81 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT + COUNT( * ) * + 39 * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <> + 17
----
0

skipif mysql # not compatible
query I rowsort label-16
SELECT + COUNT ( * ) * + 39 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <> + 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT - 78 DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-17
SELECT - 78 / col2 FROM tab1
----
-1
-1
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT DISTINCT - - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT - - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT + col1, + 62 FROM tab1 AS cor0
----
14
62
47
62
5
62

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

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

query I rowsort
SELECT ALL - + 54 AS col2 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL + - MIN( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE + 55 >= - col0
----
-51

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL + - MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE + 55 >= - col0
----
-51

query I rowsort
SELECT - col0 + col2 * + - col1 FROM tab1 AS cor0
----
-1395
-3287
-380

query I rowsort
SELECT DISTINCT col1 + 47 FROM tab2 AS cor0
----
114
124
98

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT DISTINCT + COUNT( * ) + - - 68 * - 85 AS col1 FROM tab1 AS cor0
----
-5777

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + COUNT ( * ) + - - 68 * - 85 AS col1 FROM tab1 AS cor0
----
-5777

query I rowsort
SELECT ALL - 97 * - ( + 34 ) + col1 + - 99 AS col0 FROM tab0 cor0
----
3200
3220
3280

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

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

query I rowsort
SELECT ALL col2 * + 43 AS col2 FROM tab2
----
1720
2494
989

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT 57 * + COUNT( * ) * + 89 FROM tab1
----
15219

skipif mysql # not compatible
query I rowsort label-30
SELECT 57 * + COUNT ( * ) * + 89 FROM tab1
----
15219

query I rowsort
SELECT DISTINCT 53 * col2 * col0 + 16 FROM tab2
----
135696
230566
56090

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col0 AND 4
----

query I rowsort
SELECT + col0 * 53 FROM tab0
----
4611
5141
795

query I rowsort
SELECT DISTINCT 83 FROM tab1 WHERE NOT NULL <> col2 * - + col0 + - + col1 / + + col1
----

query I rowsort
SELECT ALL - 56 + + + col1 FROM tab1
----
-42
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT ALL + - COUNT( DISTINCT + 61 ) + - - 67 AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL + - COUNT ( DISTINCT + 61 ) + - - 67 AS col0 FROM tab2 AS cor0
----
66

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE 23 NOT BETWEEN NULL AND col0 + + col0 / col2
----

query I rowsort
SELECT + col1 + - col0 + + 44 FROM tab1
----
-36
0
7

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - 49 + - + 19 AS col2 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT ALL + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT AVG ( - + col0 ) * ( + COUNT( * ) ) AS col1 FROM tab0 WHERE + col2 / - 86 * col0 + - 61 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-42
SELECT AVG ( - + col0 ) * ( + COUNT ( * ) ) AS col1 FROM tab0 WHERE + col2 / - 86 * col0 + - 61 IS NULL
----
NULL

query II rowsort
SELECT ALL + 46 AS col0, - col0 + - col0 - + 39 FROM tab1 AS cor0
----
46
-141
46
-209
46
-221

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT 91 DIV - 14 AS col0 FROM tab1 cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-44
SELECT 91 / - 14 AS col0 FROM tab1 cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 89 >= - col2
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-46
SELECT DISTINCT + + col0 * CAST( - + col1 AS SIGNED ), + col0 FROM tab0 AS cor0
----
-1215
15
-1827
87
-97
97

skipif mysql # not compatible
query II rowsort label-46
SELECT DISTINCT + + col0 * CAST ( - + col1 AS INTEGER ), + col0 FROM tab0 AS cor0
----
-1215
15
-1827
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT CAST( NULL AS SIGNED ) * + - AVG ( DISTINCT - + 86 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT CAST ( NULL AS INTEGER ) * + - AVG ( DISTINCT - + 86 ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT ALL - 55 DIV + col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL - 55 / + col0 FROM tab0
----
-3
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT DISTINCT 68 DIV 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 68 / 80 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT ALL + col2 DIV 58 DIV 32 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL + col2 / 58 / 32 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT DISTINCT - COUNT( + 92 ) DIV - - 15 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT - COUNT ( + 92 ) / - - 15 FROM tab2
----
0

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 35 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-56
SELECT CAST( - 61 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

skipif mysql # not compatible
query I rowsort label-56
SELECT CAST ( - 61 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT + col2 * col0 * + - col1 AS col1 FROM tab0
----
-18270
-57105
-9603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT + + MIN( ALL - col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-59
SELECT + + MIN ( ALL - col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-77

query I rowsort
SELECT DISTINCT col2 * - - 37 * col2 + + + col2 FROM tab0 cor0
----
362736
3710
81780

query I rowsort
SELECT ALL + ( col0 ) * - col1 + - 49 FROM tab2 AS cor0
----
-2395
-4977
-5074

query I rowsort
SELECT ( - 98 ) AS col1 FROM tab0 AS cor0
----
-98
-98
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT DISTINCT col2 + - 69 DIV + col2 col2 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-64
SELECT DISTINCT col2 + - 69 / + col2 col2 FROM tab1 AS cor0
----
58
67
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT ( 21 ) + COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT ( 21 ) + COUNT ( * ) FROM tab2
----
24

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 - + col1 + - 65 >= - 37 - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT + 39 + + + COUNT( * ) * - 35 AS col1 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-71
SELECT + 39 + + + COUNT ( * ) * - 35 AS col1 FROM tab0 cor0
----
-66

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-76
SELECT DISTINCT - - col1 DIV - + col0 AS col1, ( + col2 ) AS col1 FROM tab0 AS cor0
----
-5
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-76
SELECT DISTINCT - - col1 / - + col0 AS col1, ( + col2 ) AS col1 FROM tab0 AS cor0
----
-5
47
0
10
0
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + - 98 * + - 70 + 10 + - col1 * col1 >= - col0 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT + col2 DIV - col1 + col0 AS col2 FROM tab0 cor0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-78
SELECT + col2 / - col1 + col0 AS col2 FROM tab0 cor0
----
-2
15
87

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( col1 / - - 74 + 91 + + + 41 )
----

query I rowsort
SELECT ALL ( + - 40 ) FROM tab2
----
-40
-40
-40

query II rowsort
SELECT DISTINCT col1 * - col1 * - col1 AS col1, - col0 AS col0 FROM tab2
----
132651
-46
300763
-75
456533
-64

query I rowsort
SELECT DISTINCT ( 51 ) AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT - 65 * + COUNT( * ) AS col0 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-84
SELECT - 65 * + COUNT ( * ) AS col0 FROM tab0
----
-195

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

query II rowsort
SELECT ALL - col1, + 14 * - - col1 + + + col1 AS col0 FROM tab1 AS cor0
----
-14
210
-47
705
-5
75

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

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

query II rowsort
SELECT ALL ( - - col2 ), + col2 FROM tab1
----
59
59
68
68
96
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT COUNT( * ) + + 60 AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-90
SELECT COUNT ( * ) + + 60 AS col0 FROM tab1 AS cor0
----
63

query II rowsort
SELECT - col1 AS col1, - col1 AS col1 FROM tab1 AS cor0 WHERE NULL > 86 * + - 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 + - 56 col1 FROM tab0 cor0
----
-134

query I rowsort
SELECT col0 * + ( - col2 ) - - 48 AS col2 FROM tab1 AS cor0 WHERE - col0 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + 65 + - col2 + + col2 FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT SUM( 35 ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-95
SELECT SUM ( 35 ) FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT + MIN( DISTINCT - - 77 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-96
SELECT + MIN ( DISTINCT - - 77 ) FROM tab1
----
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 BETWEEN - ( + + col0 ) AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-98
SELECT ALL + 84 * - col2 - CAST( + 26 AS SIGNED ) * - - ( col2 ) FROM tab0
----
-10890
-1100
-5170

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL + 84 * - col2 - CAST ( + 26 AS INTEGER ) * - - ( col2 ) FROM tab0
----
-10890
-1100
-5170

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT 30, + COUNT( * ) + - 40 AS col0 FROM tab2 WHERE NULL < NULL
----
30
-40

skipif mysql # not compatible
query II rowsort label-99
SELECT 30, + COUNT ( * ) + - 40 AS col0 FROM tab2 WHERE NULL < NULL
----
30
-40

query I rowsort
SELECT 52 + + - 31 * - + 70 FROM tab2 cor0
----
2222
2222
2222

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

query I rowsort
SELECT DISTINCT - col0 * + col2 * + 39 FROM tab0 WHERE NULL IS NULL
----
-27495
-33930
-374517

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

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT - MIN ( ALL - ( + - col2 ) ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT + 73 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
73

query I rowsort
SELECT ALL - col1 * + 88 AS col2 FROM tab1
----
-1232
-4136
-440

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT DISTINCT 1 * - 70 + - col1 + - CAST( + 18 AS SIGNED ) FROM tab0 AS cor0
----
-109
-169
-89

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT 1 * - 70 + - col1 + - CAST ( + 18 AS INTEGER ) FROM tab0 AS cor0
----
-109
-169
-89

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

query I rowsort
SELECT + col1 * - - col1 AS col1 FROM tab0 cor0
----
1
441
6561

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

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL MIN( DISTINCT + col1 ) * + MAX( + 29 ) FROM tab1
----
145

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL MIN ( DISTINCT + col1 ) * + MAX ( + 29 ) FROM tab1
----
145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT - 13 + - COUNT( * ) col0 FROM tab2 cor0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-114
SELECT - 13 + - COUNT ( * ) col0 FROM tab2 cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT 78 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-115
SELECT 78 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT - SUM( - - 45 ) AS col2 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-116
SELECT - SUM ( - - 45 ) AS col2 FROM tab2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT - + 73 * COUNT( * ) + 90 col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-117
SELECT - + 73 * COUNT ( * ) + 90 col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-567

query I rowsort
SELECT ALL col2 * - + ( col1 ) * col1 + + + col0 + - 19 + col0 * + col2 FROM tab2
----
-234555
-255956
-58738

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-119
SELECT DISTINCT + ( - + col2 ) DIV 27 AS col2, CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
-2
NULL
-3
NULL

skipif mysql # not compatible
query II rowsort label-119
SELECT DISTINCT + ( - + col2 ) / 27 AS col2, CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
-2
NULL
-3
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - 1 + + - col2 - + - col0 - col0 + + - 23 * + col1 * + + col0 * + col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT - col2 * 30 DIV 16 + col2 FROM tab0 AS cor0
----
-41
-8
-86

skipif mysql # not compatible
query I rowsort label-121
SELECT - col2 * 30 / 16 + col2 FROM tab0 AS cor0
----
-41
-8
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + col1 * - 62 + + col2 + + col0 + - 93, ( + - 76 ) col2 FROM tab1 AS cor0
----
26401
-76
265240
-76
44322
-76

query I rowsort
SELECT DISTINCT 67 + - + 24 * + + 97 * + ( - - col2 ) + + col1 + + col1 * - col0 FROM tab2 AS cor0
----
-139915
-55772
-97904

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-125
SELECT - COUNT( * ) + - + 73 DIV 79 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-125
SELECT - COUNT ( * ) + - + 73 / 79 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT DISTINCT - - MIN( - CAST( + - col2 AS SIGNED ) ) + COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - - MIN ( - CAST ( + - col2 AS INTEGER ) ) + COUNT ( * ) FROM tab0 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 40 NOT BETWEEN + col2 AND NULL OR NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-128
SELECT - 53 + CAST( - 74 AS SIGNED ) * + 98 FROM tab1
----
-7305
-7305
-7305

skipif mysql # not compatible
query I rowsort label-128
SELECT - 53 + CAST ( - 74 AS INTEGER ) * + 98 FROM tab1
----
-7305
-7305
-7305

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-131
SELECT ALL - + SUM( ALL col1 ), - 59 AS col1 FROM tab0 AS cor0
----
-103
-59

skipif mysql # not compatible
query II rowsort label-131
SELECT ALL - + SUM ( ALL col1 ), - 59 AS col1 FROM tab0 AS cor0
----
-103
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-132
SELECT col0 AS col2, + CAST( NULL AS DECIMAL ) / - col0 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-132
SELECT col0 AS col2, + CAST ( NULL AS REAL ) / - col0 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT 75 AS col2, col2 AS col0 FROM tab2 AS cor0
----
75
23
75
40
75
58

query I rowsort
SELECT col1 * + 17 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT ALL - + 82 * + 85 AS col2 FROM tab0 AS cor0
----
-6970
-6970
-6970

query I rowsort
SELECT + 55 * + col0 AS col0 FROM tab1 AS cor0
----
2805
4675
5005

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

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

query I rowsort
SELECT ALL 73 * - - 77 AS col2 FROM tab1 AS cor0
----
5621
5621
5621

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

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

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab2 WHERE NOT ( - col2 ) >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT 9 * - COUNT( * ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-142
SELECT 9 * - COUNT ( * ) AS col0 FROM tab1
----
-27

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT 87 * - + COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT 87 * - + COUNT ( * ) FROM tab0
----
-261

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - col1 ) >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 * 10 - + 9 FROM tab0 AS cor0
----
-19
-219
-819

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92 + col2 + - col1 col2, col0 AS col1 FROM tab0
----
190
97
58
15
81
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT - CAST( col0 AS SIGNED ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT - CAST ( col0 AS INTEGER ) > NULL
----
NULL

query I rowsort
SELECT - col0 + ( + col1 ) + - 3 FROM tab2
----
-11
10
2

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT DISTINCT + col1 DIV - - col0 AS col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT + col1 / - - col0 AS col0 FROM tab0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + MAX( - 65 ) + - 81 AS col0 FROM tab2
----
-146

skipif mysql # not compatible
query I rowsort label-155
SELECT + MAX ( - 65 ) + - 81 AS col0 FROM tab2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT ALL - 46 DIV col0 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL - 46 / col0 AS col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + + 78 AS col2 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT - + col2 + col0 * col2 * 96 DIV + col0 AS col2 FROM tab0 AS cor0
----
4465
9405
950

skipif mysql # not compatible
query I rowsort label-158
SELECT - + col2 + col0 * col2 * 96 / + col0 AS col2 FROM tab0 AS cor0
----
4465
9405
950

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

query I rowsort
SELECT DISTINCT + + col2 * col0 + + 48 FROM tab0 AS cor0
----
753
918
9651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 73 * - 83 IS NULL
----

query I rowsort
SELECT col0 - 51 FROM tab1
----
0
34
40

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT 78 - - COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT 78 - - COUNT ( * ) FROM tab2
----
81

query I rowsort
SELECT - col1 - 82 FROM tab0
----
-103
-163
-83

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

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

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

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

query I rowsort
SELECT - - 91 FROM tab0 WHERE - 73 / col0 + - col1 >= + col0
----

query I rowsort
SELECT ALL + col1 - - - 55 AS col2 FROM tab1
----
-41
-50
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 < - 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL COUNT( DISTINCT + + ( - col0 ) ) - + 29 AS col0 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL COUNT ( DISTINCT + + ( - col0 ) ) - + 29 AS col0 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT ALL + MIN( DISTINCT - + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + MIN ( DISTINCT - + col0 ) FROM tab0
----
-97

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

query II rowsort
SELECT ALL + col0 AS col0, col1 + + col2 + + 31 AS col2 FROM tab0 AS cor0
----
15
159
87
62
97
131

query I rowsort
SELECT ALL + 49 + - col2 AS col1 FROM tab1 WHERE NOT col0 <= ( + col0 * + col2 )
----

query I rowsort
SELECT ALL - ( 75 ) AS col0 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT col2 * ( 73 ) + + col2 AS col0 FROM tab0
----
3478
7326
740

query III rowsort
SELECT * FROM tab0 WHERE 85 + 76 BETWEEN - col0 - - col1 AND ( - col0 * + 84 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 55 > 47
----

query I rowsort
SELECT DISTINCT col2 + col2 * - 34 FROM tab1
----
-1947
-2244
-3168

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

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

query I rowsort
SELECT ALL 16 - + 45 AS col2 FROM tab1
----
-29
-29
-29

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

query I rowsort
SELECT + 90 FROM tab2 WHERE NOT - col2 - + col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col2 + - 65 AS col1 FROM tab0
----
-18
-55
34

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + 16
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT MIN( ALL 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-189
SELECT MIN ( ALL 12 ) FROM tab0
----
12

query I rowsort
SELECT col1 * col0 - - ( col1 ) AS col2 FROM tab0
----
1296
1848
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL COUNT( ALL + 75 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL COUNT ( ALL + 75 ) FROM tab0
----
3

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

query I rowsort
SELECT DISTINCT col2 / col2 FROM tab2 WHERE NOT col0 * col2 + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + col0 col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT + COUNT( - col1 ) + + COUNT( * ) col0 FROM tab2 WHERE ( - ( - col2 ) - + 84 ) > ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-196
SELECT + COUNT ( - col1 ) + + COUNT ( * ) col0 FROM tab2 WHERE ( - ( - col2 ) - + 84 ) > ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 BETWEEN - 18 AND - col1 / - col2 + col2
----
91
47
68

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

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

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

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

query I rowsort
SELECT ALL - col2 + + col0 FROM tab0 AS cor0 WHERE - col1 + - 29 IS NOT NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-202
SELECT - 16 + MAX( DISTINCT 33 + 11 DIV 40 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-202
SELECT - 16 + MAX ( DISTINCT 33 + 11 / 40 ) FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT col2 + + 29 AS col2 FROM tab0 AS cor0
----
128
39
76

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

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

query I rowsort
SELECT + 22 * - col1 FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT + - 41 - - col0 FROM tab0 AS cor0
----
-26
46
56

query I rowsort
SELECT 4 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
4
4
4

query I rowsort
SELECT - 23 - 19 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + 23 * col1 - - 24 AS col0 FROM tab2 AS cor0
----
1197
1565
1795

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 29 NOT IN ( col0 )
----

query I rowsort
SELECT 34 FROM tab0 AS cor0 WHERE NULL > + 20
----

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

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

query I rowsort
SELECT DISTINCT + col1 - 44 FROM tab1 cor0 WHERE NOT 7 IN ( 78 + col2 )
----
-30
-39
3

query I rowsort
SELECT 39 + 10 FROM tab0 AS cor0
----
49
49
49

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT DISTINCT - col1 DIV - col2 + ( ( 31 ) ) AS col1 FROM tab0 AS cor0
----
31
32
33

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT - col1 / - col2 + ( ( 31 ) ) AS col1 FROM tab0 AS cor0
----
31
32
33

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

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

query I rowsort
SELECT col1 + col1 + col1 * col2 FROM tab0
----
101
252
3969

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

query I rowsort
SELECT ALL ( - 26 ) + 22 * - col0 AS col2 FROM tab1
----
-1148
-1896
-2028

query I rowsort
SELECT ALL col1 * + + col0 - col2 AS col1 FROM tab0
----
-2
1168
1817

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( + col0 ) AND col1 * col1
----

query I rowsort
SELECT ALL col1 * ( - col0 ) FROM tab0 WHERE ( + col0 ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT DISTINCT + col1 DIV 63 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + col1 / 63 FROM tab2
----
0
1

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-230
SELECT ALL + 88 * - ( col2 ) + + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-231
SELECT COUNT( * ) / CAST( NULL AS DECIMAL ) FROM tab0 cor0 WHERE NOT NULL BETWEEN + col1 * col2 AND - col0 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-231
SELECT COUNT ( * ) / CAST ( NULL AS REAL ) FROM tab0 cor0 WHERE NOT NULL BETWEEN + col1 * col2 AND - col0 + col2
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 85 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
1228
7385
8146

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT col0 + + col0 DIV + - 35 + + col0 FROM tab0 AS cor0
----
172
192
30

skipif mysql # not compatible
query I rowsort label-235
SELECT col0 + + col0 / + - 35 + + col0 FROM tab0 AS cor0
----
172
192
30

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT - - COUNT( ALL - - 40 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT - - COUNT ( ALL - - 40 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 92 * + 79 <> - col2 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) BETWEEN NULL AND - 68 * 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT col2 DIV col1 * + + ( - col0 ) * + col1 AS col1 FROM tab0
----
-9603
0
0

skipif mysql # not compatible
query I rowsort label-240
SELECT col2 / col1 * + + ( - col0 ) * + col1 AS col1 FROM tab0
----
-9603
0
0

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

query I rowsort
SELECT col0 * - 21 + 10 * col2 + + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = 36 * + col1
----

query I rowsort
SELECT 41 FROM tab0 AS cor0 WHERE 4 IN ( + col2 )
----

query I rowsort
SELECT ALL + 46 - + - col1 AS col1 FROM tab2 AS cor0
----
113
123
97

query I rowsort
SELECT - 31 + + col0 * + + col2 AS col0 FROM tab2 AS cor0
----
1027
2529
4319

query I rowsort
SELECT + - 56 + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-2172
-4152
-5681

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-249
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE + col0 + - 27 NOT IN ( - ( + 28 ) * - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-249
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE + col0 + - 27 NOT IN ( - ( + 28 ) * - col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT 55 / - col1 + - 30 FROM tab1 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 59 + col2 * - ( ( + col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 79 ) BETWEEN 35 AND col1
----
-1403
-3255
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT - COUNT( - col2 ) * 53 col1 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-252
SELECT - COUNT ( - col2 ) * 53 col1 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NULL ) >= ( + col0 + col2 * + col2 )
----

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

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

query I rowsort
SELECT ALL col0 * + col2 + + + 59 FROM tab2 AS cor0
----
1117
2619
4409

query I rowsort
SELECT ALL - + col0 * col0 - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

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

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

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

query I rowsort
SELECT col2 - - 25 AS col2 FROM tab2 cor0
----
48
65
83

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT + - 97 DIV - col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-260
SELECT + - 97 / - col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT col0 * col1 * - - col0 AS col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT - - col0 * col1 - + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT DISTINCT MIN( + 71 ) col1 FROM tab1
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-263
SELECT DISTINCT MIN ( + 71 ) col1 FROM tab1
----
71

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

query II rowsort
SELECT ALL + ( - col1 ), + 42 + - - 48 + col2 + + col2 * col2 AS col2 FROM tab0
----
-1
9990
-21
200
-81
2346

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 <= - - col0 * + 80
----

query I rowsort
SELECT ALL + 47 * - col0 * + + 84 FROM tab2
----
-181608
-252672
-296100

query II rowsort
SELECT ALL + col1 AS col2, - col2 * + ( + + col0 ) AS col1 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT + SUM( ALL - + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT + SUM ( ALL - + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col2
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - + COUNT ( * ) / 36 AS col1 FROM tab2 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT - 72 * + - 80 AS col0 FROM tab0
----
5760
5760
5760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL + 64 + + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
73

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL + 64 + + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT + 18 * col0 * + - col1 + + - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-278
SELECT + 18 * col0 * + - col1 + + - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 + - + col0 col1 FROM tab1 AS cor0
----
2
42
8

query I rowsort
SELECT ALL + col1 + - ( 36 ) AS col0 FROM tab1 AS cor0
----
-22
-31
11

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-284
SELECT 79 * COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL OR - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 70 + - 24 AS col2 FROM tab0 WHERE NOT - 71 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + - 0 + - col1 + + col2 * - - 31 FROM tab2 WHERE NOT col2 * - col0 IS NULL
----
1163
1731
662

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

query I rowsort
SELECT + - 47 + col2 * - + 1 * + - col1 AS col2 FROM tab1 AS cor0
----
1297
248
3149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col1 * + + 98 NOT IN ( - 46, - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-291
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 * + + 98 NOT IN ( - 46, - col2 )
----
3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( - - 38 )
----

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-8

query I rowsort
SELECT ALL - 23 * + col1 FROM tab0 WHERE - col1 * + - 65 + - 28 * + col0 NOT IN ( - + ( + col1 ) )
----
-1863
-23
-483

query I rowsort
SELECT DISTINCT - col2 - + + col1 * + col1 FROM tab1
----
-2277
-292
-84

query I rowsort
SELECT + 83 + + col0 * + 8 AS col2 FROM tab0 cor0
----
203
779
859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-297
SELECT ALL 88 * + + col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-140800
-296032
-46552

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL 88 * + + col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-140800
-296032
-46552

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 85 ) * - col0 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 4 <= + col2 + - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 8 * 77 IS NOT NULL
----

query II rowsort
SELECT ( - col2 ), + col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT DISTINCT - - col1 * col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT - - col1 * col0 / - col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 = + col0
----

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

skipif mysql # not compatible
query I rowsort label-308
SELECT COUNT ( 0 ) AS col1 FROM tab2
----
3

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

skipif mysql # not compatible
query I rowsort label-309
SELECT - MAX ( ALL + - ( col1 ) ) FROM tab0
----
1

query II rowsort
SELECT 12, - col1 AS col0 FROM tab0
----
12
-1
12
-21
12
-81

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

query I rowsort
SELECT DISTINCT + col2 * - col0 * + col2 AS col0 FROM tab1
----
-295885
-420784
-470016

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT COUNT( DISTINCT + + 43 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT COUNT ( DISTINCT + + 43 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab0 AS cor0 WHERE + 12 IN ( + 47 )
----

query I rowsort
SELECT DISTINCT - 23 * - col1 AS col1 FROM tab2 AS cor0
----
1173
1541
1771

query I rowsort
SELECT + 31 * + col2 + col0 * + 74 AS col0 FROM tab0 AS cor0 WHERE NOT - 29 IS NOT NULL
----

query I rowsort
SELECT 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT 95 AS col2, COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
95
-9

skipif mysql # not compatible
query II rowsort label-319
SELECT 95 AS col2, COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
95
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-320
SELECT - CAST( NULL AS SIGNED ) + - - 31 + - - 88 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-320
SELECT - CAST ( NULL AS INTEGER ) + - - 31 + - - 88 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 76 * - - col1 * 30 NOT IN ( 98 / + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT ( ( - COUNT( * ) ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT ( ( - COUNT ( * ) ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col1 + + 1, - col1 AS col2 FROM tab0 cor0
----
2
-1
22
-21
82
-81

query I rowsort
SELECT ALL + 43 * 31 FROM tab1 AS cor0
----
1333
1333
1333

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NULL <> NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-329
SELECT - col0 * + col0 * + ( - - 26 ) + + + 74 * CAST( NULL AS SIGNED ) / - 78 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-329
SELECT - col0 * + col0 * + ( - - 26 ) + + + 74 * CAST ( NULL AS INTEGER ) / - 78 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + 98 * col2 AS col0 FROM tab0 AS cor0
----
-4606
-9702
-980

query II rowsort
SELECT - + col0 * 71 AS col2, 94 + ( + col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1065
-611
-6177
-776
-6887
-9509

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT + SUM( + 33 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-332
SELECT + SUM ( + 33 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT col0 + + - col0 + 22 + - + col2 AS col1 FROM tab2
----
-1
-18
-36

query I rowsort
SELECT DISTINCT 10 FROM tab2 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-335
SELECT ALL ( + - COUNT( * ) ) DIV 64 + 15 FROM tab0
----
15

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

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

query II rowsort
SELECT DISTINCT 87 + - col1 AS col2, - col1 * - 66 AS col0 FROM tab2
----
10
5082
20
4422
36
3366

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT ALL - CAST( col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL - CAST ( col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT 72 + ( - SUM( DISTINCT + col2 ) ) + - COUNT( * ) FROM tab1
----
-154

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT 72 + ( - SUM ( DISTINCT + col2 ) ) + - COUNT ( * ) FROM tab1
----
-154

query I rowsort
SELECT 23 + - col2 FROM tab2
----
-17
-35
0

query I rowsort
SELECT DISTINCT - col2 * + + col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + - 56 FROM tab0 cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT - 92 FROM tab1 cor0
----
-92

query I rowsort
SELECT + + ( ( - - col2 ) ) AS col0 FROM tab0 cor0
----
10
47
99

query II rowsort
SELECT - col1 AS col1, + ( - 18 ) AS col1 FROM tab2 AS cor0
----
-51
-18
-67
-18
-77
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - COUNT( * ) * - 83 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
249

skipif mysql # not compatible
query I rowsort label-349
SELECT - COUNT ( * ) * - 83 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
249

query II rowsort
SELECT DISTINCT - 42 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
-42
10
-42
47
-42
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-351
SELECT + - COUNT( * ), ( - COUNT( * ) ) * + 68 * - COUNT( * ) - - CAST( MIN( DISTINCT + - col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3
531

skipif mysql # not compatible
query II rowsort label-351
SELECT + - COUNT ( * ), ( - COUNT ( * ) ) * + 68 * - COUNT ( * ) - - CAST ( MIN ( DISTINCT + - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3
531

query I rowsort
SELECT - col1 * + col2 * + - ( - + col1 ) * + + col0 AS col1 FROM tab2 AS cor0
----
-15178240
-19527150
-2751858

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col0 + + 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-354
SELECT - col2 DIV col1 * - 74 col1 FROM tab1
----
444
74
814

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-354
SELECT - col2 / col1 * - 74 col1 FROM tab1
----
444
74
814

query I rowsort
SELECT col0 * - ( col0 ) AS col2 FROM tab2
----
-2116
-4096
-5625

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + + col1 + 96 * 62 / - 17 NOT IN ( + col1 / + + col0 - - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - 33 + + col2 + + col2 * - col1 + - col0 * + - col0
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = ( - 97 + - col2 + col2 + - + 4 * - col1 - + 75 )
----

query I rowsort
SELECT ALL + col0 * + 90 AS col2 FROM tab2
----
4140
5760
6750

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

onlyif mysql # DIV for integer division: 
query II rowsort label-364
SELECT DISTINCT - col0 DIV - col1, - 85 AS col2 FROM tab2 cor0 WHERE NOT col0 < + col2
----
0
-85
1
-85

skipif mysql # not compatible
query II rowsort label-364
SELECT DISTINCT - col0 / - col1, - 85 AS col2 FROM tab2 cor0 WHERE NOT col0 < + col2
----
0
-85
1
-85

query I rowsort
SELECT DISTINCT - col2 + - + 64 FROM tab0 cor0
----
-111
-163
-74

query I rowsort
SELECT ALL - 52 + col1 AS col0 FROM tab1 AS cor0
----
-38
-47
-5

query I rowsort
SELECT + + 29 AS col0 FROM tab2 AS cor0
----
29
29
29

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 31 col2, + col1 + - + 0 + - col1 * - col1 + + col0 * col2 FROM tab1 AS cor0
----
-31
5045
-31
5106
-31
8444

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

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

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

query II rowsort
SELECT DISTINCT ( col1 ) + + 82 AS col0, - 14 FROM tab0 AS cor0
----
103
-14
163
-14
83
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-373
SELECT ALL - - 50 DIV + col0 - 60 + col0 + col2 FROM tab2 AS cor0
----
10
44
73

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - - 50 / + col0 - 60 + col0 + col2 FROM tab2 AS cor0
----
10
44
73

query I rowsort
SELECT + col0 + - + 52 AS col1 FROM tab1
----
-1
33
39

query I rowsort
SELECT ALL col1 + + - 29 AS col1 FROM tab1
----
-15
-24
18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > 70
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 28 < NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 83 <= NULL
----

query I rowsort
SELECT + col2 + + - 25 FROM tab2
----
-2
15
33

query II rowsort
SELECT ALL - 50, col2 FROM tab0
----
-50
10
-50
47
-50
99

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ALL - MIN( col2 ) FROM tab2 cor0 WHERE NOT - col1 / - + 64 * - 42 NOT BETWEEN - + 46 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL - MIN ( col2 ) FROM tab2 cor0 WHERE NOT - col1 / - + 64 * - 42 NOT BETWEEN - + 46 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT DISTINCT - col2 + + CAST( + 36 AS SIGNED ) FROM tab1 AS cor0
----
-23
-32
-60

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT - col2 + + CAST ( + 36 AS INTEGER ) FROM tab1 AS cor0
----
-23
-32
-60

query I rowsort
SELECT DISTINCT col0 + col1 * - ( 22 ) FROM tab0 AS cor0
----
-1767
-375
75

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= 13
----

onlyif mysql # aggregate syntax: 
query II rowsort label-387
SELECT + 37 * + - COUNT( DISTINCT - 51 ) * ( + 6 ) AS col0, + COUNT( * ) + - 85 * + COUNT( * ) AS col0 FROM tab2
----
-222
-252

skipif mysql # not compatible
query II rowsort label-387
SELECT + 37 * + - COUNT ( DISTINCT - 51 ) * ( + 6 ) AS col0, + COUNT ( * ) + - 85 * + COUNT ( * ) AS col0 FROM tab2
----
-222
-252

query I rowsort
SELECT ALL 42 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) <> ( NULL )
----

query I rowsort
SELECT + - 83 * + col1 FROM tab1 cor0
----
-1162
-3901
-415

query I rowsort
SELECT + ( + ( 1 ) ) * - + 30 + - col1 + 10 * + 52 FROM tab1 AS cor0
----
443
476
485

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT - 9 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-391
SELECT - 9 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-27

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

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + MIN ( DISTINCT 58 ) FROM tab0 cor0
----
58

query I rowsort
SELECT - 60 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = 89
----

query II rowsort
SELECT ALL col1, 98 FROM tab0
----
1
98
21
98
81
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-396
SELECT DISTINCT 34 DIV + 40 + MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT 34 / + 40 + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + + 38 + 1 + ( col0 ) + + 32 + 96 AS col0 FROM tab0 cor0
----
182
254
264

query II rowsort
SELECT DISTINCT + + ( + col2 ) + + col2, col0 AS col1 FROM tab2 AS cor0
----
116
75
46
46
80
64

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT - 81 * - ( + + 54 ) + + SUM( 22 ) FROM tab0 AS cor0
----
4440

skipif mysql # not compatible
query I rowsort label-399
SELECT - 81 * - ( + + 54 ) + + SUM ( 22 ) FROM tab0 AS cor0
----
4440

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( 86, + 24 + - + 76 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT + - 66 DIV + col1 + + + col1 col0 FROM tab2 AS cor0
----
50
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-401
SELECT + - 66 / + col1 + + + col1 col0 FROM tab2 AS cor0
----
50
67
77

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT ALL - SUM( col0 ) * CAST( NULL AS SIGNED ) * 50 + + + 69 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL - SUM ( col0 ) * CAST ( NULL AS INTEGER ) * 50 + + + 69 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 7 - col0 * col1 AS col2 FROM tab2 AS cor0
----
-2339
-4921
-5018

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

query I rowsort
SELECT ( + + 35 ) FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT 88 * + - COUNT( * ) col2 FROM tab1
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-409
SELECT 88 * + - COUNT ( * ) col2 FROM tab1
----
-264

query I rowsort
SELECT DISTINCT 46 - col2 AS col0 FROM tab1
----
-13
-22
-50

query I rowsort
SELECT DISTINCT 94 + 26 AS col2 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT ALL + ( + + COUNT( * ) ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + ( + + COUNT ( * ) ) FROM tab1 WHERE NULL IS NULL
----
3

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

query III rowsort
SELECT * FROM tab0 WHERE - + 55 + + 1 IS NULL
----

query I rowsort
SELECT ALL + 58 - ( - 97 ) FROM tab0
----
155
155
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT col2 - - - 69 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT col2 - - - 69 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> ( NULL )
----

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

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

query I rowsort
SELECT ALL 36 * - 19 * + col2 AS col1 FROM tab1 cor0
----
-40356
-46512
-65664

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT ALL + col0 DIV + 98 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL + col0 / + 98 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT - ( 83 ) DIV + - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-422
SELECT - ( 83 ) / + - col2 FROM tab1
----
0
1
1

query I rowsort
SELECT 11 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT DISTINCT - COUNT( * ) DIV + + ( COUNT( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT - COUNT ( * ) / + + ( COUNT ( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * col2 col2 FROM tab1 AS cor0
----
-5487
-6324
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT + - MIN( - 81 ) * - 46 AS col2 FROM tab1 AS cor0
----
-3726

skipif mysql # not compatible
query I rowsort label-426
SELECT + - MIN ( - 81 ) * - 46 AS col2 FROM tab1 AS cor0
----
-3726

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

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

query II rowsort
SELECT - + col1 * + col1, col1 FROM tab2 AS cor0
----
-2601
51
-4489
67
-5929
77

query I rowsort
SELECT + 70 FROM tab2 WHERE NOT + col0 * - col0 * - - 15 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT DISTINCT col2 DIV 40 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT col2 / 40 FROM tab1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT MIN( + + 58 ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT MIN ( + + 58 ) FROM tab0
----
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-434
SELECT ALL + CAST( - AVG ( + - col2 ) AS SIGNED ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL + CAST ( - AVG ( + - col2 ) AS INTEGER ) FROM tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-435
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) NOT IN ( + col0, - col1, - 84, - CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-435
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) NOT IN ( + col0, - col1, - 84, - CAST ( NULL AS INTEGER ), - col0 )
----

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

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

query I rowsort
SELECT + - 38 + col0 AS col0 FROM tab1 AS cor0
----
13
47
53

query I rowsort
SELECT + + col1 * ( col1 ) + - - 6 FROM tab1 AS cor0
----
202
2215
31

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> + 35
----

query I rowsort
SELECT + 92 - 3 AS col1 FROM tab0 AS cor0
----
89
89
89

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

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

query I rowsort
SELECT + col0 + + 56 + - 51 * - col2 FROM tab2 AS cor0
----
1275
2160
3089

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT ALL + + 73 DIV + col2 + + ( + 91 ) col1 FROM tab1 AS cor0
----
91
92
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-443
SELECT ALL + + 73 / + col2 + + ( + 91 ) col1 FROM tab1 AS cor0
----
91
92
92

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT DISTINCT - + col0 + + - ( - - col1 ) DIV - + col2 AS col0 FROM tab2 AS cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT - + col0 + + - ( - - col1 ) / - + col2 AS col0 FROM tab2 AS cor0
----
-44
-63
-74

query I rowsort
SELECT 30 + - 98 * + 88 + - - col2 FROM tab1 AS cor0
----
-8498
-8526
-8535

query I rowsort
SELECT ALL - col0 - + col2 AS col1 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-447
SELECT ALL 3 - ( CAST( + 13 AS SIGNED ) ) + - - col1 AS col2 FROM tab2
----
41
57
67

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL 3 - ( CAST ( + 13 AS INTEGER ) ) + - - col1 AS col2 FROM tab2
----
41
57
67

query I rowsort
SELECT + 9 * col2 AS col1 FROM tab2
----
207
360
522

query I rowsort
SELECT + + col0 * col2 - - - 23 FROM tab0 AS cor0
----
682
847
9580

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN + 80 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-451
SELECT + col0, 67 + - CAST( NULL AS SIGNED ) - + - ( - 63 ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-451
SELECT + col0, 67 + - CAST ( NULL AS INTEGER ) - + - ( - 63 ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT col0 * 50 FROM tab0 AS cor0
----
4350
4850
750

onlyif mysql # DIV for integer division: 
query I rowsort label-453
SELECT DISTINCT + ( - col1 ) DIV + col2 - - 19 + - col0 AS col0 FROM tab2 AS cor0
----
-29
-46
-57

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT + ( - col1 ) / + col2 - - 19 + - col0 AS col0 FROM tab2 AS cor0
----
-29
-46
-57

query I rowsort
SELECT DISTINCT - + 76 * - col1 AS col0 FROM tab2 cor0
----
3876
5092
5852

query I rowsort
SELECT col1 * - + 56 * 18 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51408
-67536
-77616

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

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

query II rowsort
SELECT ALL - 30, 73 + - col0 * - - col2 AS col0 FROM tab2
----
-30
-2487
-30
-4277
-30
-985

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT ALL - COUNT( * ), 64 * - COUNT( * ) AS col0 FROM tab2
----
-3
-192

skipif mysql # not compatible
query II rowsort label-458
SELECT ALL - COUNT ( * ), 64 * - COUNT ( * ) AS col0 FROM tab2
----
-3
-192

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT - SUM( DISTINCT - col0 ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT - SUM ( DISTINCT - col0 ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col0 * - col1
----

query I rowsort
SELECT DISTINCT - 21 + + 51 AS col1 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-466
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 12 * + CAST( - col0 AS SIGNED ) * - 26 + + col1
----

skipif mysql # not compatible
query III rowsort label-466
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 12 * + CAST ( - col0 AS INTEGER ) * - 26 + + col1
----

query II rowsort
SELECT DISTINCT 89 + - - 34 * - col1, + 46 AS col1 FROM tab2 AS cor0
----
-1645
46
-2189
46
-2529
46

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

query I rowsort
SELECT DISTINCT + 83 * - col2 + + + col1 - - col1 + col2 * col1 FROM tab0 cor0
----
-578
-8116
68

query I rowsort
SELECT ALL - - 45 + + col2 * - 40 FROM tab0 AS cor0
----
-1835
-355
-3915

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL COUNT( + col1 ) + + 54 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL COUNT ( + col1 ) + + 54 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT MAX( ALL - ( - - col1 ) ) - 23 + ( - - 66 ) + - COUNT( * ) + 28 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-472
SELECT MAX ( ALL - ( - - col1 ) ) - 23 + ( - - 66 ) + - COUNT ( * ) + 28 FROM tab2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT 37 DIV + col2 * - + col0 - - - col0 + col1 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-473
SELECT 37 / + col2 * - + col0 - - - col0 + col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT DISTINCT MAX( ALL 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT MAX ( ALL 30 ) FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL - MAX( ALL col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - MAX ( ALL col0 ) AS col1 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 NOT BETWEEN NULL AND + + 47 * - - 81 * - - col2
----

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

query II rowsort
SELECT + 23, + col1 + - col1 AS col0 FROM tab2 AS cor0
----
23
0
23
0
23
0

query I rowsort
SELECT 75 * col1 * col2 FROM tab0
----
15750
285525
7425

query I rowsort
SELECT + 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

skipif mysql # not compatible
query I rowsort label-481
SELECT 81 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2 + + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT + CAST( + 60 AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-482
SELECT + CAST ( + 60 AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
180

query I rowsort
SELECT DISTINCT - 52 * - + col2 FROM tab1 AS cor0
----
3068
3536
4992

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

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL COUNT( * ) + + - ( 94 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL COUNT ( * ) + + - ( 94 ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT - 38 * - ( col2 ) FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - - SUM( 95 ) AS col1 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-487
SELECT - - SUM ( 95 ) AS col1 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT MAX( ALL + 77 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT MAX ( ALL + 77 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT + SUM( - col2 ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-489
SELECT + SUM ( - col2 ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
669

query I rowsort
SELECT 51 * - col1 FROM tab2
----
-2601
-3417
-3927

query I rowsort
SELECT col1 * + col2 * + 81 * col1 AS col1 FROM tab2
----
19209960
21089322
4845663

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT + COUNT( * ) + + ( - - COUNT( ALL + col0 ) ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-492
SELECT + COUNT ( * ) + + ( - - COUNT ( ALL + col0 ) ) AS col2 FROM tab1
----
6

query I rowsort
SELECT DISTINCT - col0 * - 21 * + col0 FROM tab1
----
151725
173901
54621

query I rowsort
SELECT ALL - + col0 + - col2 + + 49 FROM tab1 AS cor0
----
-110
-95
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT DISTINCT 83 * - col2 DIV col2 + + col2 - + col0 FROM tab1
----
-106
-109
-38

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT 83 * - col2 / col2 + + col2 - + col0 FROM tab1
----
-106
-109
-38

query I rowsort
SELECT ALL ( + - 62 ) - 14 FROM tab0
----
-76
-76
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT DISTINCT - - col1 DIV - + 54 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - - col1 / - + 54 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( + - col1 ) * - col1 + + col2 FROM tab1 AS cor0
----
-100
-2141
34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT 39 * + - 11 + + 94 + - + col2 + - + ( + col0 ) DIV col2 AS col0 FROM tab0 AS cor0
----
-353
-382
-434

skipif mysql # not compatible
query I rowsort label-500
SELECT 39 * + - 11 + + 94 + - + col2 + - + ( + col0 ) / col2 AS col0 FROM tab0 AS cor0
----
-353
-382
-434

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT 74 * 77 + + + COUNT( * ) col0 FROM tab0 AS cor0
----
5701

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-502
SELECT 74 * 77 + + + COUNT ( * ) col0 FROM tab0 AS cor0
----
5701

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT DISTINCT - - MAX( + col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( + + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT - - MAX ( + col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( + + col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 71 FROM tab2 WHERE NULL NOT BETWEEN col2 AND - - col2
----

query II rowsort
SELECT col0 * ( col2 ), 35 AS col1 FROM tab2
----
1058
35
2560
35
4350
35

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT DISTINCT - MAX( - col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT - MAX ( - col2 ) AS col0 FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 - - + 89 col2, col1 * + col2 AS col1 FROM tab0 AS cor0 WHERE - col2 >= + 30
----

query II rowsort
SELECT + col0 * + - col1, col1 + + col1 AS col0 FROM tab0 AS cor0
----
-1215
162
-1827
42
-97
2

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

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

query II rowsort
SELECT ALL - + 94 AS col1, 54 FROM tab0 AS cor0 WHERE - 7 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 + 52 + - col1 col2 FROM tab2 AS cor0
----
32
42
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT ( + + col2 ) DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-513
SELECT ( + + col2 ) / - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT DISTINCT COUNT( DISTINCT - ( - CAST( - + col0 AS SIGNED ) ) ) * - 51 * - + 17 + 61 AS col2 FROM tab0
----
2662

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT COUNT ( DISTINCT - ( - CAST ( - + col0 AS INTEGER ) ) ) * - 51 * - + 17 + 61 AS col2 FROM tab0
----
2662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * 28 col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-2184
-2184
-2184

query II rowsort
SELECT col2 * - - col0 AS col0, + col0 * col0 + - col1 FROM tab0
----
705
144
870
7548
9603
9408

query II rowsort
SELECT col2 * col2, + col0 FROM tab1
----
3481
85
4624
91
9216
51

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT ( + col0 ) DIV - + col2 AS col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-520
SELECT ( + col0 ) / - + col2 AS col1 FROM tab0
----
-8
0
0

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

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

query I rowsort
SELECT ALL + col1 + - 23 FROM tab0 AS cor0
----
-2
-22
58

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

query I rowsort
SELECT + 74 - + col2 - + 30 AS col2 FROM tab2 AS cor0
----
-14
21
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-526
SELECT - col0 * - col1 * - - 90 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) NOT BETWEEN - col0 * col0 + - 25 AND NULL
----

skipif mysql # not compatible
query I rowsort label-526
SELECT - col0 * - col1 * - - 90 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN - col0 * col0 + - 25 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 46 AND 43
----

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

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

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

query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT DISTINCT SUM( ALL + + 79 ) FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT SUM ( ALL + + 79 ) FROM tab1
----
237

query II rowsort
SELECT ALL col2 AS col0, col1 * - - 36 FROM tab2
----
23
1836
40
2772
58
2412

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT ALL COUNT( * ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-534
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col2 FROM tab2 cor0
----
10

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

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

query I rowsort
SELECT ALL 69 - + - 11 + + 25 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a8f8daa1a1bfedb1421594e2314a6b6d

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

query I rowsort
SELECT DISTINCT 4 * 95 * + col0 FROM tab1 AS cor0
----
19380
32300
34580

onlyif mysql # DIV for integer division: 
query II rowsort label-541
SELECT - - col2 DIV + 85 + 19 AS col2, col0 + - + col1 FROM tab1 AS cor0
----
19
44
19
80
20
37

skipif mysql # not compatible
query II rowsort label-541
SELECT - - col2 / + 85 + 19 AS col2, col0 + - + col1 FROM tab1 AS cor0
----
19
44
19
80
20
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col0 IN ( + col2, col2, 86 + + 63 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-543
SELECT * FROM tab0 cor0 WHERE NULL <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-543
SELECT * FROM tab0 cor0 WHERE NULL <= CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-544
SELECT DISTINCT - 51 AS col1, - COUNT( * ) AS col0 FROM tab2
----
-51
-3

skipif mysql # not compatible
query II rowsort label-544
SELECT DISTINCT - 51 AS col1, - COUNT ( * ) AS col0 FROM tab2
----
-51
-3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col2, + 36 col2 FROM tab2 WHERE NULL IS NULL
----
46
36
64
36
75
36

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-549
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-550
SELECT 50 + MIN ( ALL - col1 ) FROM tab1
----
3

query II rowsort
SELECT ALL + + col0, 61 AS col1 FROM tab2 WHERE NOT - + 61 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT - SUM( ALL ( - 8 ) ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-553
SELECT - SUM ( ALL ( - 8 ) ) FROM tab0 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 28, - 35 + + - col2 + - + col0 - 69 + - - col0 + col2 * 17 col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
28
264
28
536
28
824

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT ALL + COUNT( * ) + 71 FROM tab0, tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL + COUNT ( * ) + 71 FROM tab0, tab2 AS cor0
----
80

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

skipif mysql # not compatible
query I rowsort label-556
SELECT CAST ( - - 27 AS INTEGER ) FROM tab0 AS cor0
----
27
27
27

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-558
SELECT + col0 DIV - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-558
SELECT + col0 / - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1
0
0

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

skipif mysql # not compatible
query III rowsort label-559
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 * + col2 AND ( + CAST ( NULL AS INTEGER ) ) - + 52 + + 76
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL + SUM( DISTINCT - - 6 ) * MAX( ALL - 20 ) FROM tab0 cor0
----
-120

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + SUM ( DISTINCT - - 6 ) * MAX ( ALL - 20 ) FROM tab0 cor0
----
-120

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

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

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

query I rowsort
SELECT ALL col2 * 24 AS col0 FROM tab2
----
1392
552
960

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT DISTINCT 57 DIV + 73 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT 57 / + 73 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-566
SELECT ALL * FROM tab0 WHERE NOT CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) <= + 52
----
15
81
47

skipif mysql # not compatible
query III rowsort label-566
SELECT ALL * FROM tab0 WHERE NOT CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) <= + 52
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-567
SELECT DISTINCT CAST( - + 47 AS SIGNED ) FROM tab0
----
-47

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + 72 * col1 / - col1 > col2 * + 9
----

query I rowsort
SELECT ALL 34 * - col2 AS col2 FROM tab0 AS cor0
----
-1598
-3366
-340

query II rowsort
SELECT DISTINCT col0, - col2 + + 1 + - + 87 FROM tab1 AS cor0
----
51
-182
85
-145
91
-154

query I rowsort
SELECT ALL + ( + 21 ) * - + col2 FROM tab0 AS cor0
----
-2079
-210
-987

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT DISTINCT - - col0 - 62 DIV + col0 FROM tab0 AS cor0 WHERE NOT + 64 * + ( - - ( + - 52 ) ) * + 44 IS NULL
----
11
87
97

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - - col0 - 62 / + col0 FROM tab0 AS cor0 WHERE NOT + 64 * + ( - - ( + - 52 ) ) * + 44 IS NULL
----
11
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-573
SELECT DISTINCT + 51 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-573
SELECT DISTINCT + 51 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
51
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-574
SELECT DISTINCT CAST ( - col2 AS INTEGER ) col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + 22 * - col0 + - + col1 FROM tab0
----
-1935
-2135
-411

query I rowsort
SELECT col2 + 25 * - col0 + ( + col1 ) AS col0 FROM tab2
----
-1076
-1483
-1750

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

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

query I rowsort
SELECT + col2 + + 37 AS col1 FROM tab1 AS cor0
----
105
133
96

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT col2 DIV - - col1 + - ( - 69 ) + - 75 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-579
SELECT col2 / - - col1 + - ( - 69 ) + - 75 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + - 69 + - 66 FROM tab1 AS cor0
----
-135

query I rowsort
SELECT ALL 66 + col2 AS col1 FROM tab0 cor0
----
113
165
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 16 AND - 66
----

query I rowsort
SELECT DISTINCT - 16 * 16 + - col2 FROM tab0 AS cor0
----
-266
-303
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT COUNT( * ) + 83 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT COUNT ( * ) + 83 FROM tab2 AS cor0
----
86

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - 42 - + col1 IS NULL
----

query I rowsort
SELECT ALL - col2 + + col1 - + 79 AS col0 FROM tab1 AS cor0
----
-100
-133
-161

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

query I rowsort
SELECT ALL - ( - ( ( col1 ) ) ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT + MIN( DISTINCT - ( + col0 ) ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-589
SELECT + MIN ( DISTINCT - ( + col0 ) ) col1 FROM tab0
----
-97

query I rowsort
SELECT + 41 - 65 * - - 5 FROM tab1
----
-284
-284
-284

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 30 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL <> + col2 )
----

query I rowsort
SELECT ALL + + 34 + - - col0 FROM tab1 AS cor0
----
119
125
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 col1 FROM tab0 cor0
----
-77
2
32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + col1 col2, col0 AS col0 FROM tab0 AS cor0
----
108
87
96
15
98
97

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - + ( col1 ) * col2 + 29 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 97 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + 47 * + MIN( - col1 ) + - 56 FROM tab2 AS cor0
----
-3675

skipif mysql # not compatible
query I rowsort label-604
SELECT + 47 * + MIN ( - col1 ) + - 56 FROM tab2 AS cor0
----
-3675

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT 85 DIV + - col1 FROM tab1
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-605
SELECT 85 / + - col1 FROM tab1
----
-1
-17
-6

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND col1 * + + 57 + 99
----

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

query I rowsort
SELECT DISTINCT - col1 * 16 + - col2 FROM tab1 cor0
----
-139
-320
-820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT 57 + col0 * + - 19 + + CAST( - - CAST( + 69 AS SIGNED ) AS SIGNED ) + + 39 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1450
-1564
-804

skipif mysql # not compatible
query I rowsort label-610
SELECT 57 + col0 * + - 19 + + CAST ( - - CAST ( + 69 AS INTEGER ) AS INTEGER ) + + 39 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1450
-1564
-804

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

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

query I rowsort
SELECT + 53 * col1 - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 * col2 IS NOT NULL
----
-44
1026
4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-613
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT ALL COUNT( * ) * 55 AS col1 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL COUNT ( * ) * 55 AS col1 FROM tab0 AS cor0
----
165

query I rowsort
SELECT + + col2 * - - 48 + + col1 AS col0 FROM tab0 AS cor0
----
2337
4753
501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-617
SELECT DISTINCT - MIN( + - CAST( NULL AS SIGNED ) ) + + 79 AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-617
SELECT DISTINCT - MIN ( + - CAST ( NULL AS INTEGER ) ) + + 79 AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

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

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

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

query I rowsort
SELECT col1 + + ( + col2 ) + + 69 AS col2 FROM tab2
----
143
186
194

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

query I rowsort
SELECT DISTINCT + col1 - + 32 FROM tab2
----
19
35
45

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

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

skipif mysql # not compatible
query I rowsort label-624
SELECT + + COUNT ( * ) / - + ( 26 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT - MIN( DISTINCT - - 65 ) AS col1 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-625
SELECT - MIN ( DISTINCT - - 65 ) AS col1 FROM tab0 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - + MIN( ALL + - col1 ) * - ( + 1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-627
SELECT - + MIN ( ALL + - col1 ) * - ( + 1 ) AS col0 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT DISTINCT + 82 AS col1, 57 AS col0 FROM tab1 AS cor0
----
82
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query II rowsort
SELECT - 20 * 98 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-1960
51
-1960
67
-1960
77

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT - 45 * - MIN( + 99 ) col1 FROM tab1 AS cor0
----
4455

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-633
SELECT DISTINCT - 45 * - MIN ( + 99 ) col1 FROM tab1 AS cor0
----
4455

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * - col0 col0 FROM tab0 AS cor0
----
-3132
-3492
-540

query II rowsort
SELECT DISTINCT - 6 AS col2, 8 AS col1 FROM tab1
----
-6
8

query I rowsort
SELECT ALL + 0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-638
SELECT SUM ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= - + col0 * col2
----

query I rowsort
SELECT DISTINCT 82 + - col2 FROM tab0
----
-17
35
72

query II rowsort
SELECT col0, + 88 AS col1 FROM tab2
----
46
88
64
88
75
88

query I rowsort
SELECT - + col2 * 52 FROM tab2 AS cor0
----
-1196
-2080
-3016

query I rowsort
SELECT ALL - ( col0 ) + - col1 + ( col1 ) * - 10 * - 69 FROM tab2 AS cor0
----
35093
46088
52989

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT 45 * col0 FROM tab1
----
2295
3825
4095

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 * + col1 col2 FROM tab1 WHERE + col1 - + 30 IN ( + 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL - col2 * CAST( col0 AS SIGNED ) + - col1 AS col2 FROM tab1
----
-4910
-5020
-6235

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - col2 * CAST ( col0 AS INTEGER ) + - col1 AS col2 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - 89 * + MAX( ALL 3 ) AS col0 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-648
SELECT - 89 * + MAX ( ALL 3 ) AS col0 FROM tab0
----
-267

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT 6 * col1 FROM tab0
----
126
486
6

query I rowsort
SELECT col2 * - 65 AS col2 FROM tab1
----
-3835
-4420
-6240

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( - 6 ) <= + 40 + 40
----
46
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * + col0 col2 FROM tab0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT - 63 + 35 AS col2 FROM tab2 WHERE NOT ( NULL ) <> CAST( col1 AS SIGNED ) / + 53
----

skipif mysql # not compatible
query I rowsort label-655
SELECT - 63 + 35 AS col2 FROM tab2 WHERE NOT ( NULL ) <> CAST ( col1 AS INTEGER ) / + 53
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > - 45 + - col0
----

query I rowsort
SELECT DISTINCT - 15 + col1 FROM tab1
----
-1
-10
32

query I rowsort
SELECT - col1 - col1 FROM tab2 WHERE ( NULL ) < ( - col2 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 81 <= - 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT 27 / + MAX ( col1 ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT COUNT( * ) * 26 AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT COUNT ( * ) * 26 AS col2 FROM tab0
----
78

query I rowsort
SELECT - 87 AS col2 FROM tab1 WHERE NOT + 26 / + 72 NOT IN ( + 69 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE + 4 >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT col2 DIV + 34 AS col0 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-666
SELECT col2 / + 34 AS col0 FROM tab1
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-667
SELECT ALL MIN( DISTINCT - col2 ) DIV - 9 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL MIN ( DISTINCT - col2 ) / - 9 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT col2 DIV 14 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-668
SELECT col2 / 14 FROM tab0
----
0
3
7

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT 59 DIV 56 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-669
SELECT 59 / 56 AS col0 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT col2 DIV + ( - 64 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-670
SELECT col2 / + ( - 64 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col1 col0 FROM tab1
----
138
65
90

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 64 col1 FROM tab0
----
3008
6336
640

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL - 49 * - COUNT( * ) + MAX( + 22 ) FROM tab0 WHERE ( col0 ) > col2 - + 11
----
120

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL - 49 * - COUNT ( * ) + MAX ( + 22 ) FROM tab0 WHERE ( col0 ) > col2 - + 11
----
120

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT MAX( + 34 ) * 37 FROM tab1 AS cor0
----
1258

skipif mysql # not compatible
query I rowsort label-677
SELECT MAX ( + 34 ) * 37 FROM tab1 AS cor0
----
1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-678
SELECT - 42 / ( CAST( NULL AS SIGNED ) / 24 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT - 42 / ( CAST ( NULL AS INTEGER ) / 24 ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN col0 AND 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL + 25 + - COUNT( * ) FROM tab0 WHERE + col1 + col2 NOT BETWEEN - col1 AND NULL
----
25

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL + 25 + - COUNT ( * ) FROM tab0 WHERE + col1 + col2 NOT BETWEEN - col1 AND NULL
----
25

query I rowsort
SELECT ALL - 71 * + 91 AS col1 FROM tab2
----
-6461
-6461
-6461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col1 FROM tab1 WHERE NOT + col2 / col2 BETWEEN - ( col0 ) AND col2 * + col1
----

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

query I rowsort
SELECT - 9 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IN ( - col1 )
----
-9
-9
-9

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

query I rowsort
SELECT + - 39 * col2 AS col2 FROM tab2 cor0
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - MAX( 12 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-687
SELECT - MAX ( 12 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-36

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

query I rowsort
SELECT - 14 FROM tab2 WHERE NOT col0 / col2 >= + 9
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + col1 * + + 56 FROM tab0
----
1176
4536
56

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

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT 14 < NULL
----

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

query I rowsort
SELECT DISTINCT col2 * - 18 FROM tab0
----
-1782
-180
-846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT + col1 + - 9 * CAST( + col1 * col1 - + col2 * 48 AS SIGNED ) FROM tab0
----
-38664
372
42760

skipif mysql # not compatible
query I rowsort label-695
SELECT + col1 + - 9 * CAST ( + col1 * col1 - + col2 * 48 AS INTEGER ) FROM tab0
----
-38664
372
42760

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 67 NOT IN ( col0 * 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT ALL CAST( - 23 AS SIGNED ) * col1 AS col0 FROM tab2
----
-1173
-1541
-1771

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL CAST ( - 23 AS INTEGER ) * col1 AS col0 FROM tab2
----
-1173
-1541
-1771

query I rowsort
SELECT ( 24 ) + + ( - col0 ) * 92 AS col0 FROM tab0 AS cor0
----
-1356
-7980
-8900

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL + + 86 + + MAX( col1 ) AS col0 FROM tab0 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL + + 86 + + MAX ( col1 ) AS col0 FROM tab0 AS cor0
----
167

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 54 + col2 NOT BETWEEN NULL AND - 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab1, tab2 AS cor0
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-707
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query II rowsort
SELECT DISTINCT + 23 AS col1, + 31 AS col1 FROM tab2 AS cor0
----
23
31

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE col1 < NULL
----

query I rowsort
SELECT DISTINCT + 95 + - 64 * - - col0 * col2 FROM tab0 AS cor0
----
-45025
-55585
-614497

query I rowsort
SELECT + + col0 + 1 + col0 * - 49 FROM tab1 AS cor0
----
-2447
-4079
-4367

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

query I rowsort
SELECT DISTINCT + + 5 + + 87 FROM tab2 AS cor0
----
92

query I rowsort
SELECT + col0 + - - 91 * + - col2 FROM tab2 AS cor0
----
-2047
-3576
-5203

query I rowsort
SELECT DISTINCT + col2 * + 56 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
1242
2176
3173

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT 65 - - - MAX( - 28 ) + + COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT 65 - - - MAX ( - 28 ) + + COUNT ( * ) FROM tab1
----
96

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-720
SELECT DISTINCT * FROM tab1 WHERE NULL = - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-720
SELECT DISTINCT * FROM tab1 WHERE NULL = - - CAST ( NULL AS REAL )
----

query II rowsort
SELECT DISTINCT + col0 - col2 AS col1, 67 AS col2 FROM tab0
----
-2
67
-32
67
77
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-722
SELECT ALL COUNT( DISTINCT - 66 ) DIV 84 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL COUNT ( DISTINCT - 66 ) / 84 FROM tab0
----
0

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

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

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

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

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

query I rowsort
SELECT DISTINCT 82 + + col1 FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT DISTINCT - + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

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

query I rowsort
SELECT ALL 36 AS col1 FROM tab2 AS cor0 WHERE NOT - 13 * - 48 / - + 49 + + 83 - + 54 = - col1 * col2
----
36
36
36

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 86 IN ( col0 * 63 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT - COUNT( * ) - - 51 AS col1 FROM tab1, tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-734
SELECT - COUNT ( * ) - - 51 AS col1 FROM tab1, tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + MIN( ALL col0 ) col1 FROM tab0 WHERE col2 + + col1 + + col0 IS NOT NULL
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-735
SELECT + MIN ( ALL col0 ) col1 FROM tab0 WHERE col2 + + col1 + + col0 IS NOT NULL
----
15

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

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

query II rowsort
SELECT DISTINCT col2, col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-738
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL > ( - CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-738
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL > ( - CAST ( NULL AS INTEGER ) ) ) )
----

query I rowsort
SELECT 46 * - 43 AS col1 FROM tab0
----
-1978
-1978
-1978

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 99 col2 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT - MAX( - 51 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT - MAX ( - 51 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT ( SUM( col2 ) ) * + COUNT( * ) AS col2 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-742
SELECT ( SUM ( col2 ) ) * + COUNT ( * ) AS col2 FROM tab1
----
669

onlyif mysql # DIV for integer division: 
query II rowsort label-743
SELECT - col0, - 24 DIV col1 AS col1 FROM tab1
----
-51
-1
-85
-4
-91
0

skipif mysql # not compatible
query II rowsort label-743
SELECT - col0, - 24 / col1 AS col1 FROM tab1
----
-51
-1
-85
-4
-91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-744
SELECT ALL + CAST( + SUM( - 6 ) AS SIGNED ) col2 FROM tab0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-744
SELECT ALL + CAST ( + SUM ( - 6 ) AS INTEGER ) col2 FROM tab0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT ALL col1 * + col1 + - + col1 + + CAST( + col2 AS SIGNED ) + - - 95 + + col2 FROM tab2
----
2691
4633
6027

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL col1 * + col1 + - + col1 + + CAST ( + col2 AS INTEGER ) + - - 95 + + col2 FROM tab2
----
2691
4633
6027

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT + col2 DIV - col0 + - col2 * + - col2 + + col2 AS col1 FROM tab0 AS cor0
----
110
2253
9899

skipif mysql # not compatible
query I rowsort label-746
SELECT + col2 / - col0 + - col2 * + - col2 + + col2 AS col1 FROM tab0 AS cor0
----
110
2253
9899

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL - - 19 + + COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL - - 19 + + COUNT ( * ) FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT - 8 + + + col1 AS col2 FROM tab0 AS cor0
----
-7
13
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT 31 * + COUNT( + col0 ) - + - COUNT( * ) DIV + 11 AS col2 FROM tab1 AS cor0 WHERE NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT 31 * + COUNT ( + col0 ) - + - COUNT ( * ) / + 11 AS col2 FROM tab1 AS cor0 WHERE NULL < col2
----
0

query I rowsort
SELECT + + col1 + 92 AS col1 FROM tab1 AS cor0
----
106
139
97

query I rowsort
SELECT 61 + - 77 FROM tab0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + MIN( 4 ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-752
SELECT + MIN ( 4 ) AS col1 FROM tab2
----
4

query I rowsort
SELECT + col0 * - - 15 + col1 AS col1 FROM tab0 AS cor0
----
1326
1456
306

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * + + 89 AS col2 FROM tab0 AS cor0
----
4183
8811
890

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * + + 89 AS col2 FROM tab0 AS cor0
----
4183
8811
890

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

query I rowsort
SELECT DISTINCT + + col0 * - + col1 + - + ( + - col2 ) + + + 70 + col1 AS col0 FROM tab2 cor0
----
-2202
-4741
-4830

query I rowsort
SELECT - ( + 49 ) FROM tab0 AS cor0 WHERE ( NOT col0 IS NULL )
----
-49
-49
-49

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

query II rowsort
SELECT 32, 54 * + 84 + - - col0 AS col1 FROM tab1
----
32
4587
32
4621
32
4627

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 col0, 81 FROM tab2
----
74
81
74
81
74
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 38 IN ( + col0 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL + 8 * + col1 * - + 86 FROM tab1
----
-32336
-3440
-9632

query I rowsort
SELECT - col2 * + - col1 / + 66 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT + 92 + + - MAX( - + ( 10 ) ) FROM tab2, tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-767
SELECT + 92 + + - MAX ( - + ( 10 ) ) FROM tab2, tab2 AS cor0
----
102

query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col2 AS col1 FROM tab1 AS cor0
----
118
136
192

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

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

query II rowsort
SELECT - col1 * col0, 17 AS col2 FROM tab0 AS cor0
----
-1215
17
-1827
17
-97
17

query II rowsort
SELECT DISTINCT + 88 * col2 + + col0 + + 91 AS col2, + 65 AS col0 FROM tab2 AS cor0
----
2161
65
3675
65
5270
65

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-773
SELECT ALL * FROM tab1 WHERE NOT - - CAST( + col2 AS DECIMAL ) * + col0 + + - col2 - - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-773
SELECT ALL * FROM tab1 WHERE NOT - - CAST ( + col2 AS REAL ) * + col0 + + - col2 - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 97 * col1 AS col1 FROM tab1
----
1358
4559
485

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

query I rowsort
SELECT 23 + col2 AS col1 FROM tab2
----
46
63
81

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

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

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

query I rowsort
SELECT - col0 + - 84 - + col0 - + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-250
-329
-359

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT COUNT( * ) * 64 FROM tab1 cor0 WHERE NULL IS NULL
----
192

skipif mysql # not compatible
query I rowsort label-782
SELECT COUNT ( * ) * 64 FROM tab1 cor0 WHERE NULL IS NULL
----
192

query I rowsort
SELECT ALL - 36 + + - 50 FROM tab0 AS cor0
----
-86
-86
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT + 7 - + - COUNT( - + col1 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-786
SELECT + 7 - + - COUNT ( - + col1 ) FROM tab0
----
10

query I rowsort
SELECT ALL ( 89 ) FROM tab2
----
89
89
89

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

onlyif mysql # aggregate syntax: 
query II rowsort label-789
SELECT DISTINCT + - 55, MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-55
47

skipif mysql # not compatible
query II rowsort label-789
SELECT DISTINCT + - 55, MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-55
47

onlyif mysql # aggregate syntax: 
query II rowsort label-790
SELECT + 72 AS col2, - COUNT( * ) AS col0 FROM tab1 cor0
----
72
-3

skipif mysql # not compatible
query II rowsort label-790
SELECT + 72 AS col2, - COUNT ( * ) AS col0 FROM tab1 cor0
----
72
-3

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

query I rowsort
SELECT + + col0 * - col2 + ( col0 ) FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + - col0 * - 1 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - 43 * - + col2 * + col1 AS col2 FROM tab0
----
163701
4257
9030

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-796
SELECT - MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT DISTINCT - 96 DIV - col1 + - 21 FROM tab1 AS cor0
----
-15
-19
-2

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT - 96 / - col1 + - 21 FROM tab1 AS cor0
----
-15
-19
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT DISTINCT 86 DIV - 91 * + 42 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT 86 / - 91 * + 42 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT ALL 45 * + + 91 FROM tab0
----
4095
4095
4095

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 41 ) + - col0 * 36 - + - col2 col1 FROM tab0 AS cor0
----
-3081
-3352
-452

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT ALL + - MAX( ALL - 76 ) * - - 31 AS col0 FROM tab0 AS cor0
----
2356

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + - MAX ( ALL - 76 ) * - - 31 AS col0 FROM tab0 AS cor0
----
2356

query I rowsort
SELECT DISTINCT - 72 + - col0 + - + col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
-1240
-3139
-3966

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT DISTINCT - COUNT( * ) * + + 6 AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT - COUNT ( * ) * + + 6 AS col0 FROM tab0 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 57 ) + - - 7 col0 FROM tab1 AS cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-808
SELECT COUNT( * ) DIV - 86 + 49 + 83 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * 19, + col2, - - 85 * - CAST( - 24 AS SIGNED ) )
----
132

skipif mysql # not compatible
query I rowsort label-808
SELECT COUNT ( * ) / - 86 + 49 + 83 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * 19, + col2, - - 85 * - CAST ( - 24 AS INTEGER ) )
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-809
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 68 >= - - ( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 68 >= - - ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT - 70 * COUNT( * ) AS col0 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - 70 * COUNT ( * ) AS col0 FROM tab1
----
-210

query I rowsort
SELECT ALL + 37 * + col1 FROM tab1
----
1739
185
518

query I rowsort
SELECT DISTINCT + 26 + + - ( - col0 ) FROM tab1
----
111
117
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 - + 98 + - col0 col2 FROM tab1
----
-58
-92
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT ALL col2 DIV + col1 * 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL col2 / + col1 * 83 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT + - col0 AS col2 FROM tab1 WHERE - col1 / - CAST( + col1 AS SIGNED ) NOT BETWEEN ( col0 + - col0 - - ( + - col0 ) - - - col0 + - 25 ) AND - col0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-815
SELECT + - col0 AS col2 FROM tab1 WHERE - col1 / - CAST ( + col1 AS INTEGER ) NOT BETWEEN ( col0 + - col0 - - ( + - col0 ) - - - col0 + - 25 ) AND - col0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT - 10 - - COUNT( * ) AS col1 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-816
SELECT - 10 - - COUNT ( * ) AS col1 FROM tab1
----
-7

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

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

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

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

query I rowsort
SELECT + col1 + - - 72 * + col0 AS col2 FROM tab0 AS cor0
----
1161
6285
6985

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT - + COUNT( * ) * 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-864

skipif mysql # not compatible
query I rowsort label-821
SELECT - + COUNT ( * ) * 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-864

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

skipif mysql # not compatible
query I rowsort label-822
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT 42 * + col2 + + + col2 = NULL
----
0

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
59
68
96

query I rowsort
SELECT + col2 * 14 AS col1 FROM tab0 cor0
----
1386
140
658

query I rowsort
SELECT 17 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL + + ( - 85 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + + ( - 85 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
255

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 46 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-830
SELECT DISTINCT - MIN ( + ( + col1 ) ) col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + 14 * + 15 AS col0 FROM tab0 AS cor0
----
210
210
210

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL <> + 70
----

query II rowsort
SELECT col2 AS col2, + 22 - + 44 FROM tab1
----
59
-22
68
-22
96
-22

query II rowsort
SELECT DISTINCT col1, col2 * + + 33 + - col1 + - col1 - col0 AS col0 FROM tab1
----
14
3089
47
2059
5
1852

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT - 81 DIV + col0 col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-835
SELECT - 81 / + col0 col0 FROM tab1
----
-1
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-837
SELECT ALL 24 col0, + COUNT( ALL - + 91 ) col2 FROM tab0
----
24
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-837
SELECT ALL 24 col0, + COUNT ( ALL - + 91 ) col2 FROM tab0
----
24
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 WHERE + - col1 * - 83 > - col0 * + col1
----
15
87
97

query I rowsort
SELECT DISTINCT ( 24 ) FROM tab2 WHERE NULL IN ( - - col1 * + col2 + + 5 + col1 * col2 )
----

query II rowsort
SELECT 23 AS col1, 87 FROM tab0
----
23
87
23
87
23
87

query I rowsort
SELECT DISTINCT - 77 * + 80 AS col0 FROM tab1
----
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL ( - 51 ) * + COUNT( * ) AS col2 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL ( - 51 ) * + COUNT ( * ) AS col2 FROM tab2
----
-153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 + - 21 - col0 BETWEEN NULL AND - col1
----

query II rowsort
SELECT - + 21 AS col0, 78 AS col0 FROM tab2 AS cor0
----
-21
78
-21
78
-21
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT ALL - 87 * - CAST( NULL AS SIGNED ) * - + MIN( 60 ) / COUNT( * ) - - - COUNT( * ) * + - ( + + COUNT( DISTINCT - + 83 ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL - 87 * - CAST ( NULL AS INTEGER ) * - + MIN ( 60 ) / COUNT ( * ) - - - COUNT ( * ) * + - ( + + COUNT ( DISTINCT - + 83 ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE - 80 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 22 ) col2 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT + col2 + - col0 + - 19 * col2 FROM tab2 AS cor0 WHERE 83 IS NOT NULL
----
-1119
-460
-784

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-849
SELECT DISTINCT + col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT ALL + 45 + + col0 DIV + col1 FROM tab0 AS cor0
----
142
45
49

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + 45 + + col0 / + col1 FROM tab0 AS cor0
----
142
45
49

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT - SUM( DISTINCT 74 ) + - + 26 AS col1 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-851
SELECT - SUM ( DISTINCT 74 ) + - + 26 AS col1 FROM tab0 AS cor0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT + 76 - MAX( DISTINCT ( + 77 ) ) * - + COUNT( * ) * - 31 AS col2 FROM tab0
----
-7085

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + 76 - MAX ( DISTINCT ( + 77 ) ) * - + COUNT ( * ) * - 31 AS col2 FROM tab0
----
-7085

query I rowsort
SELECT ALL - 82 - - col1 FROM tab2
----
-15
-31
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-854
SELECT DISTINCT COUNT( * ) AS col2, + 95 + + MAX( DISTINCT + + 22 ) AS col1 FROM tab0
----
3
117

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT COUNT ( * ) AS col2, + 95 + + MAX ( DISTINCT + + 22 ) AS col1 FROM tab0
----
3
117

query I rowsort
SELECT + - col0 + - - col1 FROM tab0 WHERE + col0 IS NOT NULL
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT + COUNT( DISTINCT - - col0 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-856
SELECT DISTINCT + COUNT ( DISTINCT - - col0 ) col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = ( + col1 + + 27 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE NULL IN ( + col0, col2, + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-859
SELECT + CAST( COUNT( * ) AS SIGNED ) * + 35 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-859
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + 35 FROM tab2 AS cor0
----
105

query I rowsort
SELECT DISTINCT - col1 / + - 63 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col1 FROM tab1 AS cor0 WHERE - 76 * - 8 - - col1 < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT + 24 * + CAST( NULL AS SIGNED ) + - - 16 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT + 24 * + CAST ( NULL AS INTEGER ) + - - 16 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL = ( - 84 / - + col1 )
----

query I rowsort
SELECT + col1 * + + 33 - col1 + - - col2 * 82 AS col0 FROM tab2 AS cor0
----
3518
5744
6900

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT + COUNT( * ), 16 AS col1 FROM tab0
----
3
16

skipif mysql # not compatible
query II rowsort label-869
SELECT + COUNT ( * ), 16 AS col1 FROM tab0
----
3
16

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-871
SELECT + 32 DIV + COUNT( * ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-871
SELECT + 32 / + COUNT ( * ) AS col0 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 67 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-873
SELECT - 82 AS col2, COUNT( * ) FROM tab0 WHERE - - 76 > NULL
----
-82
0

skipif mysql # not compatible
query II rowsort label-873
SELECT - 82 AS col2, COUNT ( * ) FROM tab0 WHERE - - 76 > NULL
----
-82
0

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT col1 + + + col0 - ( + 53 ) DIV col2 DIV - - col2 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-874
SELECT col1 + + + col0 - ( + 53 ) / col2 / - - col2 FROM tab0
----
108
96
98

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

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

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

query I rowsort
SELECT + 86 + - + col2 AS col1 FROM tab2
----
28
46
63

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT ALL + + col2 DIV - col1 + + + 44 * + col0 FROM tab2 cor0
----
2024
2816
3300

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL + + col2 / - col1 + + + 44 * + col0 FROM tab2 cor0
----
2024
2816
3300

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( - + col2, - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL - COUNT( DISTINCT col1 ) + - - COUNT( DISTINCT - col0 ) * - + 83 + + COUNT( * ) FROM tab2 WHERE - col2 IS NOT NULL
----
-249

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - COUNT ( DISTINCT col1 ) + - - COUNT ( DISTINCT - col0 ) * - + 83 + + COUNT ( * ) FROM tab2 WHERE - col2 IS NOT NULL
----
-249

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

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

query I rowsort
SELECT + 0 + + 27 FROM tab2 WHERE ( NULL ) = NULL AND NULL IS NULL
----

query II rowsort
SELECT - col2 - col2, 28 AS col0 FROM tab2
----
-116
28
-46
28
-80
28

query III rowsort
SELECT * FROM tab1 WHERE ( + - 52 ) IN ( col0, ( + col1 ), - 97 )
----

query I rowsort
SELECT DISTINCT - ( 25 ) FROM tab0 cor0
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-886
SELECT 92 DIV + - ( 9 ) AS col1, + 97 AS col0 FROM tab1
----
-10
97
-10
97
-10
97

skipif mysql # not compatible
query II rowsort label-886
SELECT 92 / + - ( 9 ) AS col1, + 97 AS col0 FROM tab1
----
-10
97
-10
97
-10
97

query I rowsort
SELECT ( - 35 ) AS col0 FROM tab0
----
-35
-35
-35

query II rowsort
SELECT - 46 AS col2, - col1 * - - 24 AS col1 FROM tab1
----
-46
-1128
-46
-120
-46
-336

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

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

query II rowsort
SELECT DISTINCT col0, 49 + + 95 AS col2 FROM tab1 AS cor0
----
51
144
85
144
91
144

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - col1 * 96 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 90 NOT BETWEEN - col0 AND 13
----

query II rowsort
SELECT DISTINCT col2 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT + 34 AS col1 FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 49 + + 23 AS col0 FROM tab2 WHERE NOT col0 + + + col0 + - + col0 IS NULL
----
-26
-26
-26

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-898
SELECT - CAST( + SUM( 13 ) AS SIGNED ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-898
SELECT - CAST ( + SUM ( 13 ) AS INTEGER ) FROM tab0
----
-39

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( - col1 <= col0 * - col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT MAX( - 8 ) + + 36 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT MAX ( - 8 ) + + 36 FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL - col0 * 84 + - col2 AS col2 FROM tab2 cor0
----
-3887
-5416
-6358

query I rowsort
SELECT 65 + - col2 AS col0 FROM tab0 AS cor0
----
-34
18
55

query III rowsort
SELECT * FROM tab1 WHERE + 73 + - + col1 * col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT + COUNT( * ) col2 FROM tab0 cor0 WHERE col2 = - col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + SUM( + col0 ) FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-907
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + SUM ( + col0 ) FROM tab2 AS cor0
----
182

query I rowsort
SELECT - 60 + - col1 AS col1 FROM tab0 AS cor0
----
-141
-61
-81

query I rowsort
SELECT - 64 + - col2 * + 99 FROM tab2 AS cor0
----
-2341
-4024
-5806

query II rowsort
SELECT ALL - col2 + col2 * - - 90 AS col1, col2 AS col1 FROM tab1 AS cor0
----
5251
59
6052
68
8544
96

query III rowsort
SELECT * FROM tab0 WHERE - + 65 * 61 + + - col0 = - - ( - col1 ) * - col0 + - col2 * 75 * + 57
----

query I rowsort
SELECT - 40 * + col0 AS col0 FROM tab0 AS cor0
----
-3480
-3880
-600

query II rowsort
SELECT + + 45 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
45
51
45
85
45
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT + + 45 + + + MIN( DISTINCT ( + - col0 ) ) FROM tab1 AS cor0 WHERE NOT ( col2 * - + col2 ) >= col2
----
-46

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT + + 45 + + + MIN ( DISTINCT ( + - col0 ) ) FROM tab1 AS cor0 WHERE NOT ( col2 * - + col2 ) >= col2
----
-46

query I rowsort
SELECT - 61 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 67 ) = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT ALL - 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - - MIN( ALL + ( - col1 ) ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-921
SELECT - - MIN ( ALL + ( - col1 ) ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT + + MIN( + + 97 ) AS col1 FROM tab1 cor0
----
97

skipif mysql # not compatible
query I rowsort label-922
SELECT + + MIN ( + + 97 ) AS col1 FROM tab1 cor0
----
97

query I rowsort
SELECT + + col1 * col1 + + 42 AS col0 FROM tab2 AS cor0
----
2643
4531
5971

query II rowsort
SELECT + + 82 + 63, + col0 * - + col0 AS col0 FROM tab2 AS cor0
----
145
-2116
145
-4096
145
-5625

query I rowsort
SELECT ALL + col0 * 46 + - - col2 AS col1 FROM tab2 AS cor0
----
2139
2984
3508

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT DISTINCT + + col1 DIV + 80 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT + + col1 / + 80 AS col1 FROM tab0 AS cor0
----
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - 5 * - + col0 * - col1 IN ( - col2, col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - 5 * - + col0 * - col1 IN ( - col2, col2 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT - COUNT( col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-929
SELECT - COUNT ( col1 ) FROM tab0
----
-3

query I rowsort
SELECT 45 * + + 70 FROM tab0
----
3150
3150
3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT CAST( - + col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-931
SELECT CAST ( - + col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 35 col2, 41 AS col1 FROM tab2 cor0
----
-35
41
-35
41
-35
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-934
SELECT DISTINCT + CAST( NULL AS SIGNED ), - col1 AS col2 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-934
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - col1 AS col2 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT ALL - col2 + + 68 FROM tab0
----
-31
21
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL CAST( + 30 AS SIGNED ) + - ( 25 ) / + col1 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL CAST ( + 30 AS INTEGER ) + - ( 25 ) / + col1 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( 71 ) - + col1 + + col0 < NULL
----

query I rowsort
SELECT ALL - 6 AS col0 FROM tab2 cor0
----
-6
-6
-6

query II rowsort
SELECT 16 AS col2, 40 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
16
40
16
40
16
40

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT + + col0 + - + col0 DIV - col1 AS col0 FROM tab2 cor0
----
46
64
76

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT + + col0 + - + col0 / - col1 AS col0 FROM tab2 cor0
----
46
64
76

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT - col0 DIV col1 AS col1 FROM tab0 AS cor0 WHERE 68 * + 99 IS NOT NULL
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-941
SELECT - col0 / col1 AS col1 FROM tab0 AS cor0 WHERE 68 * + 99 IS NOT NULL
----
-4
-97
0

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

query I rowsort
SELECT DISTINCT + col1 * - 84 + 46 FROM tab2 AS cor0
----
-4238
-5582
-6422

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT + CAST( + + col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-947
SELECT + CAST ( + + col0 AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - col0 * 20 AS col0 FROM tab2 cor0
----
-1280
-1500
-920

query I rowsort
SELECT + - 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

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

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

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

query I rowsort
SELECT ALL + col1 + - 41 AS col0 FROM tab2 cor0
----
10
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL COUNT( DISTINCT + - 48 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL COUNT ( DISTINCT + - 48 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - col0 + - 65 * + col2 AS col0 FROM tab1 AS cor0
----
-3920
-4511
-6291

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT - col1 DIV + 4 AS col0 FROM tab0 cor0
----
-20
-5
0

skipif mysql # not compatible
query I rowsort label-955
SELECT - col1 / + 4 AS col0 FROM tab0 cor0
----
-20
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - + col2 AS col2, col0 col0, + + 28 + + 40 - - 60 col0 FROM tab2 AS cor0
----
9 values hashing to 4fad56ec7a2109dc342f46cfab871854

query I rowsort
SELECT ALL col2 + - + col2 * + ( - col2 ) + col2 + - - col0 FROM tab0
----
10096
207
2318

query II rowsort
SELECT col2 + + - col2 AS col2, col1 FROM tab0
----
0
1
0
21
0
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT - COUNT( * ) FROM tab1 WHERE NULL < - + col1 * - 81 * CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-959
SELECT - COUNT ( * ) FROM tab1 WHERE NULL < - + col1 * - 81 * CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL SUM( 56 ) * + - MIN( ALL col1 ) col1 FROM tab0
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-960
SELECT ALL SUM ( 56 ) * + - MIN ( ALL col1 ) col1 FROM tab0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT ALL 69 + - + 35 + + col0 DIV - col2 AS col1 FROM tab2
----
32
33
33

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL 69 + - + 35 + + col0 / - col2 AS col1 FROM tab2
----
32
33
33

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL - 80 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - 80 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-71

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2

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

query I rowsort
SELECT - 99 + - 24 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 316f49c8327df0eb83342f1d4ad1cdc4

query I rowsort
SELECT 71 * ( + col1 ) + + 53 + + col2 + + 78 FROM tab2 AS cor0
----
3775
4946
5638

query II rowsort
SELECT ALL + col2 + - 87 + - 50 AS col1, - 50 + - col0 * - 28 AS col0 FROM tab2 AS cor0
----
-114
1238
-79
2050
-97
1742

query I rowsort
SELECT + - 1 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

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

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

query I rowsort
SELECT DISTINCT - + ( col0 ) + 52 AS col0 FROM tab1 AS cor0
----
-33
-39
1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 76 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 1 * - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 86 * ( - col0 ) - - + col1 AS col0 FROM tab2 AS cor0
----
-3905
-5427
-6383

query I rowsort
SELECT 59 * + col1 FROM tab0
----
1239
4779
59

query I rowsort
SELECT 85 - - - 38 FROM tab2 WHERE NOT NULL <> + + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 BETWEEN col1 + + 11 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 78 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 78 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT MAX( DISTINCT + col0 ) * + - 16 FROM tab0
----
-1552

skipif mysql # not compatible
query I rowsort label-980
SELECT MAX ( DISTINCT + col0 ) * + - 16 FROM tab0
----
-1552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-981
SELECT ALL - col0 * + + 22, CAST( NULL AS SIGNED ) / + 94 / col0 AS col1 FROM tab2
----
-1012
NULL
-1408
NULL
-1650
NULL

skipif mysql # not compatible
query II rowsort label-981
SELECT ALL - col0 * + + 22, CAST ( NULL AS INTEGER ) / + 94 / col0 AS col1 FROM tab2
----
-1012
NULL
-1408
NULL
-1650
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT DISTINCT + col2 * col0 DIV - + col0 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT + col2 * col0 / - + col0 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT DISTINCT + + COUNT( ALL + ( col1 ) ) * - - ( 25 ) FROM tab0 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT + + COUNT ( ALL + ( col1 ) ) * - - ( 25 ) FROM tab0 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * + 26 FROM tab1
----
1222
130
364

query I rowsort
SELECT DISTINCT - 67 + - + col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-148
-68
-88

query I rowsort
SELECT col0 + col0 * - 8 - col1 * + 77 AS col1 FROM tab0
----
-2226
-6342
-756

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT + - 43 + col2 AS col1 FROM tab0 cor0
----
-33
4
56

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

query I rowsort
SELECT DISTINCT - col1 + col1 * - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
-462
-6642

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

skipif mysql # not compatible
query I rowsort label-991
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col0 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 AS col2, + 99 col0 FROM tab0 WHERE col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT - MAX( - - 3 ) * - - 85 AS col1 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - MAX ( - - 3 ) * - - 85 AS col1 FROM tab0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT DISTINCT - col2 DIV - col2 col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-994
SELECT DISTINCT - col2 / - col2 col1 FROM tab2
----
1

query I rowsort
SELECT - col2 * + col0 * + 14 FROM tab2
----
-14812
-35840
-60900

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL MIN( DISTINCT col2 ) * - COUNT( ALL - col1 ) AS col0 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL MIN ( DISTINCT col2 ) * - COUNT ( ALL - col1 ) AS col0 FROM tab2
----
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + col1 IN ( 66, col2, + col0 )
----

skipif mysql # not compatible
query I rowsort label-998
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + col1 IN ( 66, col2, + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-999
SELECT + COUNT( * ) DIV + 41 AS col2, - MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
0
-91

skipif mysql # not compatible
query II rowsort label-999
SELECT + COUNT ( * ) / + 41 AS col2, - MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
0
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1000
SELECT DISTINCT col2 DIV + CAST( + col2 AS SIGNED ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT col2 / + CAST ( + col2 AS INTEGER ) FROM tab2
----
1

query II rowsort
SELECT DISTINCT + col0, + 87 * col1 * - col2 FROM tab1
----
51
-116928
85
-25665
91
-278052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT ALL - 29 + CAST( NULL AS SIGNED ) * col2 - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - 29 + CAST ( NULL AS INTEGER ) * col2 - + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + - SUM( + 90 ) + + COUNT( * ) FROM tab1 AS cor0 WHERE - 32 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT + - SUM ( + 90 ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE - 32 IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT 8 * - col0 * ( + col2 ) = + col2
----
10
47
99

query I rowsort
SELECT ALL + 5 + + col2 * + col1 FROM tab2 AS cor0
----
1178
3085
3891

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT SUM( DISTINCT + + 4 ) - - 78 * + COUNT( * ) AS col2 FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT SUM ( DISTINCT + + 4 ) - - 78 * + COUNT ( * ) AS col2 FROM tab2
----
238

query III rowsort
SELECT * FROM tab2 WHERE - 77 < NULL
----

query I rowsort
SELECT DISTINCT 52 - - - col1 FROM tab1
----
38
47
5

query I rowsort
SELECT 87 * + col1 * - ( + - 80 ) + + + col2 + - - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 1
----

query I rowsort
SELECT + col0 * - 94 AS col2 FROM tab2 AS cor0
----
-4324
-6016
-7050

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT 39, 23 + + - COUNT( * ) - + - 56 AS col2 FROM tab1
----
39
76

skipif mysql # not compatible
query II rowsort label-1016
SELECT 39, 23 + + - COUNT ( * ) - + - 56 AS col2 FROM tab1
----
39
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1017
SELECT ALL * FROM tab2 WHERE NOT - CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) NOT BETWEEN col0 + 94 - 5 * col2 / + - 4 AND + - 27
----

skipif mysql # not compatible
query III rowsort label-1017
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) NOT BETWEEN col0 + 94 - 5 * col2 / + - 4 AND + - 27
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT - COUNT( * ), 6 + + 57 AS col1 FROM tab0
----
-3
63

skipif mysql # not compatible
query II rowsort label-1019
SELECT - COUNT ( * ), 6 + + 57 AS col1 FROM tab0
----
-3
63

onlyif mysql # DIV for integer division: 
query II rowsort label-1020
SELECT DISTINCT col1 DIV 54 * + 80 AS col2, col1 + - col1 + + col0 FROM tab0
----
0
87
0
97
80
15

skipif mysql # not compatible
query II rowsort label-1020
SELECT DISTINCT col1 / 54 * + 80 AS col2, col1 + - col1 + + col0 FROM tab0
----
0
87
0
97
80
15

query II rowsort
SELECT ALL 55, col2 FROM tab0 AS cor0
----
55
10
55
47
55
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 80 col1 FROM tab0 AS cor0
----
3760
7920
800

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

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 * - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-123160
-225330
-26956

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

query I rowsort
SELECT ALL 3 + - 28 * - - col1 FROM tab1 AS cor0
----
-1313
-137
-389

query I rowsort
SELECT + 44 FROM tab2 cor0 WHERE + 20 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT + 97 + - COUNT( * ) col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1029
SELECT DISTINCT + 97 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
94

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

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

query I rowsort
SELECT + 70 + - + col2 FROM tab2
----
12
30
47

query I rowsort
SELECT col1 * - col1 + - 36 - col1 FROM tab1
----
-2292
-246
-66

query I rowsort
SELECT - 88 + col2 FROM tab2
----
-30
-48
-65

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE 1 * + col2 - + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL - 95 * - COUNT( * ) AS col1 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL - 95 * - COUNT ( * ) AS col1 FROM tab1
----
285

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL NOT BETWEEN + 71 / - col1 - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT DISTINCT - 1 DIV + + col0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - 1 / + + col0 AS col0 FROM tab0
----
0

query II rowsort
SELECT - col0 * col0 + - - col0 AS col1, 65 FROM tab2 WHERE NULL IS NULL
----
-2070
65
-4032
65
-5550
65

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1041
SELECT + - 7 * - - col2 * + - CAST( col2 AS SIGNED ) DIV + col2 col2 FROM tab1 AS cor0
----
413
476
672

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1041
SELECT + - 7 * - - col2 * + - CAST ( col2 AS INTEGER ) / + col2 col2 FROM tab1 AS cor0
----
413
476
672

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT + + 84 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT + + 84 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
81

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

query I rowsort
SELECT - col0 - + 4 * col2 * + 81 FROM tab2 AS cor0
----
-13024
-18867
-7498

query I rowsort
SELECT ALL - col1 - - - 23 AS col2 FROM tab2
----
-100
-74
-90

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-1047
SELECT ALL - col2 col2, + 32 AS col2, 30 DIV col0 col0 FROM tab2 AS cor0
----
9 values hashing to e785198a89c5ae89063ecf159985f660

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1047
SELECT ALL - col2 col2, + 32 AS col2, 30 / col0 col0 FROM tab2 AS cor0
----
9 values hashing to e785198a89c5ae89063ecf159985f660

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 32 < - col2 + 17 * - col1 * ( - col1 ) * col0 + + col1
----

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

query I rowsort
SELECT DISTINCT - ( 86 ) AS col1 FROM tab1 AS cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT - + 43 DIV + col0 * + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1051
SELECT - + 43 / + col0 * + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - - ( - + 89 ) FROM tab0 AS cor0
----
-1335
-7743
-8633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT + CAST( - COUNT( DISTINCT 0 ) AS SIGNED ) * - 5 AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1053
SELECT + CAST ( - COUNT ( DISTINCT 0 ) AS INTEGER ) * - 5 AS col0 FROM tab2 AS cor0
----
5

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

query I rowsort
SELECT + - 74 * - col0 + - 24 AS col2 FROM tab2 AS cor0
----
3380
4712
5526

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1058
SELECT ALL col1 DIV + col0, + 87 col1 FROM tab2
----
0
87
1
87
1
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1058
SELECT ALL col1 / + col0, + 87 col1 FROM tab2
----
0
87
1
87
1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT - SUM( + 24 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-1059
SELECT - SUM ( + 24 ) FROM tab2
----
-72

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

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

query I rowsort
SELECT DISTINCT - + 2 + + 62 + col0 FROM tab0 AS cor0
----
147
157
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 57 ) col1 FROM tab2
----
-57
-57
-57

query II rowsort
SELECT ALL + 38 + - + col0 * + col0 AS col1, col0 AS col0 FROM tab1 AS cor0
----
-2563
51
-7187
85
-8243
91

query I rowsort
SELECT DISTINCT - - 57 AS col1 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT + + SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT + + SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
NULL

query I rowsort
SELECT ALL - col0 * + col1 + - 16 * - 87 + - 51 AS col1 FROM tab2 AS cor0
----
-1005
-3587
-3684

query I rowsort
SELECT + 59 FROM tab0 WHERE + + 46 IS NOT NULL
----
59
59
59

query I rowsort
SELECT DISTINCT - 34 + - - col1 AS col1 FROM tab0
----
-13
-33
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1070
SELECT + col0 * + col2 * - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT + col0 * + col2 * - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + ( + - 2 ), + col0 * col2 AS col0 FROM tab0
----
-2
705
-2
870
-2
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT DISTINCT + ( - 59 ), - MIN( DISTINCT + 89 ) * + COUNT( * ) AS col0 FROM tab2
----
-59
-267

skipif mysql # not compatible
query II rowsort label-1072
SELECT DISTINCT + ( - 59 ), - MIN ( DISTINCT + 89 ) * + COUNT ( * ) AS col0 FROM tab2
----
-59
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT - col2 - 97 + + CAST( NULL AS SIGNED ) * - ( - + col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT - col2 - 97 + + CAST ( NULL AS INTEGER ) * - ( - + col2 ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 * - ( - + ( + ( 31 ) ) ) - + + col0 * col2 + col0 * 71 - - col1 * - 14 * - - col2 * + - 80 + col1 AS col2, + col2 - + col0 FROM tab2
----
1317600
-23
3454048
-24
4355439
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 53, - col0 + - ( - col2 ) col2 FROM tab2 WHERE NULL >= - col2 * - - col1
----

query I rowsort
SELECT ALL 97 + + col2 FROM tab0 AS cor0
----
107
144
196

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - 21 * + - col0 AS col0, col1 col2 FROM tab2 AS cor0
----
22218
51
53760
77
91350
67

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT + COUNT ( * ) * + 1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT - + col1 DIV + col0 * + 17 - - - 90 FROM tab1 AS cor0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-1080
SELECT - + col1 / + col0 * + 17 - - - 90 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1081
SELECT + 28, COUNT( * ) AS col2 FROM tab0
----
28
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT + COUNT( * ) * + COUNT( ALL + - col1 ) * + COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1083
SELECT + COUNT ( * ) * + COUNT ( ALL + - col1 ) * + COUNT ( * ) AS col2 FROM tab0
----
27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1085
SELECT CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * + COUNT( * ) * + COUNT( ALL + + col2 ) col0 FROM tab1
----
NULL
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1085
SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + COUNT ( * ) * + COUNT ( ALL + + col2 ) col0 FROM tab1
----
NULL
27

query I rowsort
SELECT DISTINCT + AVG ( - col1 ) + 13 AS col1 FROM tab2 WHERE - - ( - - col1 ) * - col1 * - col0 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT ( - col2 ) AS col1, col1 * - col0 - - + 16 FROM tab2
----
-23
-2330
-40
-4912
-58
-5009

query II rowsort
SELECT DISTINCT - col0 + 43 + - + col1 + + - col2, + col2 FROM tab1
----
-106
59
-118
96
-163
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT DISTINCT - MAX( - 62 ) AS col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT - MAX ( - 62 ) AS col0 FROM tab1 AS cor0
----
62

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND - 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * - + 22 + + + 30 col1 FROM tab0 cor0
----
-1004
-1004
-1004

onlyif mysql # DIV for integer division: 
query I rowsort label-1093
SELECT DISTINCT - col0 DIV + + ( + - col1 ) + + + col2 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT - col0 / + + ( + - col1 ) + + + col2 FROM tab2 AS cor0
----
23
40
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT ALL + CAST( + + 26 AS SIGNED ) + col2 * - col1 FROM tab2
----
-1147
-3054
-3860

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + CAST ( + + 26 AS INTEGER ) + col2 * - col1 FROM tab2
----
-1147
-3054
-3860

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

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

query I rowsort
SELECT - + 62 + - col0 + + col2 FROM tab2 WHERE 25 > col1 * - - col0 * + ( + col1 )
----

query I rowsort
SELECT - 89 * - col1 FROM tab1 AS cor0
----
1246
4183
445

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT MAX( + col2 ) + MIN( DISTINCT + col0 ) FROM tab2
----
104

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT MAX ( + col2 ) + MIN ( DISTINCT + col0 ) FROM tab2
----
104

query I rowsort
SELECT - 87 + + col0 AS col1 FROM tab2
----
-12
-23
-41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT - SUM( col0 ) DIV - 60 FROM tab0 WHERE col1 NOT BETWEEN col0 AND ( col0 ) DIV ( - ( - col1 ) - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1104
SELECT - SUM ( col0 ) / - 60 FROM tab0 WHERE col1 NOT BETWEEN col0 AND ( col0 ) / ( - ( - col1 ) - col0 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) > + 19
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE col0 * 72 NOT IN ( 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 59 * - 39 ) <= NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE ( - 59 * - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1109
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE ( - 59 * - col1 ) IS NULL
----
0

query I rowsort
SELECT ALL + ( - 75 ) AS col1 FROM tab0 WHERE NOT ( col1 ) <> NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT DISTINCT + col2 - col2 DIV col0 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT + col2 - col2 / col0 AS col2 FROM tab2
----
23
40
58

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

query I rowsort
SELECT ALL col2 + + 14 AS col0 FROM tab1
----
110
73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT ALL - col0 + col2 DIV + 6 FROM tab1
----
-35
-76
-80

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - col0 + col2 / + 6 FROM tab1
----
-35
-76
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1116
SELECT ALL SUM( ALL 99 ) + 83 DIV - 27 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL SUM ( ALL 99 ) + 83 / - 27 FROM tab0
----
294

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 6 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + 74 AS col2 FROM tab1
----
121
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL - MAX( ALL + ( - 20 ) ) AS col1 FROM tab2 WHERE ( col0 ) BETWEEN - col2 AND + ( - col0 ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - MAX ( ALL + ( - 20 ) ) AS col1 FROM tab2 WHERE ( col0 ) BETWEEN - col2 AND + ( - col0 ) + 50
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= col0 * 82 + + 49
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 + + 5 ) BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 IN ( - 87 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 70 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT ALL col1 * + col1 + 53 DIV 33 FROM tab0 cor0
----
2
442
6562

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL col1 * + col1 + 53 / 33 FROM tab0 cor0
----
2
442
6562

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

query I rowsort
SELECT col0 + col0 * 78 AS col0 FROM tab2
----
3634
5056
5925

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT IN ( 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT COUNT( col2 ) col2 FROM tab2 WHERE NOT ( NULL ) >= - 27 + - 9
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1130
SELECT DISTINCT COUNT ( col2 ) col2 FROM tab2 WHERE NOT ( NULL ) >= - 27 + - 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT DISTINCT + 61 DIV + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + 61 / + col0 FROM tab1
----
0
1

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / - col1 + - col0 * + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * col2 AS col1 FROM tab0 cor0 WHERE NOT 74 + + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT - 26 * ( + COUNT( * ) * - 80 ) AS col0 FROM tab0 AS cor0
----
6240

skipif mysql # not compatible
query I rowsort label-1135
SELECT - 26 * ( + COUNT ( * ) * - 80 ) AS col0 FROM tab0 AS cor0
----
6240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 40 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 93 ) BETWEEN ( - 20 * ( - 26 / - 58 ) + - col2 / 16 ) AND NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL COUNT( * ) * 52 + - 50 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
-50

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL COUNT ( * ) * 52 + - 50 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL - ( 63 ) - + COUNT( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL - ( 63 ) - + COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
-66

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE + col2 + col2 NOT BETWEEN 34 AND + col2 / + col0
----
59
68
96

query I rowsort
SELECT DISTINCT + col2 * - 73 + 18 AS col2 FROM tab0 AS cor0
----
-3413
-712
-7209

query I rowsort
SELECT + - col1 - 2 AS col1 FROM tab0 AS cor0
----
-23
-3
-83

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1145
SELECT 13 - + COUNT ( * ) col1 FROM tab2 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( 98 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1147
SELECT DISTINCT ( + 59 ) * - CAST( + col2 * - col2 AS SIGNED ) - + CAST( col0 AS SIGNED ) FROM tab0 WHERE col2 + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT ( + 59 ) * - CAST ( + col2 * - col2 AS INTEGER ) - + CAST ( col0 AS INTEGER ) FROM tab0 WHERE col2 + - col1 IS NULL
----

query I rowsort
SELECT + col2 - - 47 + + col0 * - col2 AS col2 FROM tab0
----
-611
-813
-9457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1149
SELECT DISTINCT col1 - - CAST( - col0 AS SIGNED ) + + 10 * col1 FROM tab2
----
515
662
783

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT col1 - - CAST ( - col0 AS INTEGER ) + + 10 * col1 FROM tab2
----
515
662
783

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT 70 - MIN( + 9 ) AS col2 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1151
SELECT 70 - MIN ( + 9 ) AS col2 FROM tab0
----
61

query III rowsort
SELECT * FROM tab2 WHERE col0 IN ( + col2 / + 46 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1153
SELECT ALL * FROM tab0 WHERE - col2 <> ( CAST( col0 AS DECIMAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1153
SELECT ALL * FROM tab0 WHERE - col2 <> ( CAST ( col0 AS REAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1154
SELECT - CAST( - col2 AS SIGNED ) + + col1 col0 FROM tab1
----
110
115
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1154
SELECT - CAST ( - col2 AS INTEGER ) + + col1 col0 FROM tab1
----
110
115
64

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 44 NOT IN ( - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1157
SELECT ALL * FROM tab2 WHERE - col2 - col1 * CAST( NULL AS SIGNED ) IN ( 66 )
----

skipif mysql # not compatible
query III rowsort label-1157
SELECT ALL * FROM tab2 WHERE - col2 - col1 * CAST ( NULL AS INTEGER ) IN ( 66 )
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT DISTINCT + - 10 * + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT + - 10 * + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT 57 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL >= ( + 23 * ( - 11 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL >= ( + 23 * ( - 11 ) )
----
0

query I rowsort
SELECT 94 / + ( + col2 ) FROM tab2 WHERE NOT + + col1 NOT BETWEEN - ( col2 ) + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1166
SELECT DISTINCT - col0 col2, - col2 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1166
SELECT DISTINCT - col0 col2, - col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT ALL 82 + + MIN( + 33 ) FROM tab1 AS cor0 WHERE NOT 47 IS NULL
----
115

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL 82 + + MIN ( + 33 ) FROM tab1 AS cor0 WHERE NOT 47 IS NULL
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT DISTINCT - SUM( 84 ) AS col2 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT - SUM ( 84 ) AS col2 FROM tab1 AS cor0
----
-252

query I rowsort
SELECT - + 56 FROM tab0 cor0
----
-56
-56
-56

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

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

query I rowsort
SELECT ALL + 97 + + col2 * + 72 + col1 AS col1 FROM tab0 AS cor0
----
3562
7226
838

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT ( + - ( 82 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( + - ( 82 ) ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1179
SELECT + col1 * col2 * col2 DIV 95 DIV col0 AS col0 FROM tab1
----
2
25
26

skipif mysql # not compatible
query I rowsort label-1179
SELECT + col1 * col2 * col2 / 95 / col0 AS col0 FROM tab1
----
2
25
26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 46 + col0 col1 FROM tab1
----
111
136
184

query III rowsort
SELECT * FROM tab1 WHERE - col0 - + - 11 + 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT 58 + - - col2 + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1183
SELECT 58 + - - col2 + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT DISTINCT + 26 * + COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT + 26 * + COUNT ( * ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT - AVG ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <= ( 92 )
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col1 + col0 * - - col1 * 28 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT + MAX( + - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1189
SELECT + MAX ( + - col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT col1 * col1 + 44 FROM tab1 WHERE - - col1 + + + 62 * - - 80 IS NULL
----

query I rowsort
SELECT 65 + + col0 + + 25 AS col2 FROM tab1 AS cor0
----
141
175
181

query I rowsort
SELECT col0 + + 42 FROM tab2 AS cor0
----
106
117
88

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

query I rowsort
SELECT + col1 - - - 56 * + col0 + - + col2 * + col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-3583
-6067
-8483

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col1 * col2 = NULL
----

query I rowsort
SELECT ALL - - 75 AS col1 FROM tab0 AS cor0
----
75
75
75

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1198
SELECT - + SUM( + 52 ) DIV - 20 + MAX( ALL - - col0 ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-1198
SELECT - + SUM ( + 52 ) / - 20 + MAX ( ALL - - col0 ) FROM tab2 AS cor0
----
82

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1202
SELECT MIN( - col1 ) AS col2, 64 FROM tab1
----
-47
64

skipif mysql # not compatible
query II rowsort label-1202
SELECT MIN ( - col1 ) AS col2, 64 FROM tab1
----
-47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT DISTINCT - MIN( DISTINCT - 1 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT - MIN ( DISTINCT - 1 ) AS col1 FROM tab1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL - COUNT( ALL - - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - COUNT ( ALL - - col1 ) FROM tab0
----
-3

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( col0 * + col1 ) < NULL
----

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

query II rowsort
SELECT ALL + + 21 AS col0, 46 AS col2 FROM tab0 AS cor0
----
21
46
21
46
21
46

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 / + + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( - col0 ) + - - col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT DISTINCT + + 80 + - col0, + ( - ( - - col0 ) ) * + 46 * + 54 * + ( 49 ) AS col0 FROM tab0 AS cor0
----
-17
-11806452
-7
-10589292
65
-1825740

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

skipif mysql # not compatible
query I rowsort label-1214
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT 30 * col0 AS col2 FROM tab1
----
1530
2550
2730

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 56 - + - col0 - + col0 / + - 70 AND + + 77
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE 15 + - + ( + col2 ) <> + col0 * + col1 OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT COUNT( * ) - 64 + + ( + - 6 ) col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1220
SELECT COUNT ( * ) - 64 + + ( + - 6 ) col0 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL - 40 * col1 + + + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-3208
-38
-917

onlyif mysql # aggregate syntax: 
query II rowsort label-1222
SELECT ALL - COUNT( - - 24 ) col2, 25 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1222
SELECT ALL - COUNT ( - - 24 ) col2, 25 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT DISTINCT MIN( ( + - 50 ) ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT MIN ( ( + - 50 ) ) FROM tab2
----
-50

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 54 * - col1 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 * col2, + col2 AS col1 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE 65 + 65 <= NULL
----

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

query I rowsort
SELECT ALL + col2 * + + 62 FROM tab0 AS cor0
----
2914
6138
620

query I rowsort
SELECT ALL - 21 AS col0 FROM tab2 AS cor0 WHERE 59 IS NOT NULL
----
-21
-21
-21

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1231
SELECT ALL CAST( - col0 AS SIGNED ) DIV - - col1 + 74 + + - col2 FROM tab1
----
-2
-25
5

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL CAST ( - col0 AS INTEGER ) / - - col1 + 74 + + - col2 FROM tab1
----
-2
-25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ALL 52 * - COUNT( * ) col1 FROM tab1
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1232
SELECT ALL 52 * - COUNT ( * ) col1 FROM tab1
----
-156

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT - SUM ( ALL + + col1 ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT - 62 * - col1 AS col2 FROM tab1
----
2914
310
868

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

query I rowsort
SELECT - 40 * + 74 AS col0 FROM tab2
----
-2960
-2960
-2960

onlyif mysql # aggregate syntax: 
query II rowsort label-1237
SELECT DISTINCT 98, COUNT( * ) AS col0 FROM tab0
----
98
3

skipif mysql # not compatible
query II rowsort label-1237
SELECT DISTINCT 98, COUNT ( * ) AS col0 FROM tab0
----
98
3

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 10 * + + col1 NOT BETWEEN NULL AND ( - - col0 )
----
51
14
96
91
47
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 67 < NULL
----

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

query I rowsort
SELECT - 48 + - col1 FROM tab2 AS cor0
----
-115
-125
-99

query I rowsort
SELECT + + col2 * ( + - 17 ) * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-12000
-14877
-163348

query I rowsort
SELECT + 42 * + col0 + + + col1 AS col0 FROM tab1
----
2156
3575
3869

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL + SUM( ALL + col1 ) + + - 99 AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + SUM ( ALL + col1 ) + + - 99 AS col2 FROM tab0 AS cor0
----
4

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

query II rowsort
SELECT ALL col2, 51 + - + ( - + 2 ) FROM tab1 AS cor0
----
59
53
68
53
96
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT DISTINCT - 18 * + 79 * + - COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
4266
3

skipif mysql # not compatible
query II rowsort label-1250
SELECT DISTINCT - 18 * + 79 * + - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
4266
3

query II rowsort
SELECT DISTINCT - col2 * 43 * + col2 * col0 + - + 19, + col0 AS col2 FROM tab2 cor0 WHERE NOT col1 + - 82 <= NULL
----

query I rowsort
SELECT - + col0 * + + col2 FROM tab2 AS cor0 WHERE NOT - col2 < NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL IS NULL ) OR NULL IN ( 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1255
SELECT DISTINCT MIN( DISTINCT - 38 ) FROM tab2 WHERE + 69 / + ( + CAST( + col0 AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT MIN ( DISTINCT - 38 ) FROM tab2 WHERE + 69 / + ( + CAST ( + col0 AS INTEGER ) ) IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT - COUNT( * ) * 9 AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - COUNT ( * ) * 9 AS col1 FROM tab0
----
-27

query I rowsort
SELECT 31 * - col1 * - col0 AS col2 FROM tab0
----
3007
37665
56637

onlyif mysql # DIV for integer division: 
query II rowsort label-1259
SELECT DISTINCT - - col1 DIV - 50, col2 + + col1 AS col1 FROM tab1 AS cor0
----
0
110
0
115
0
64

skipif mysql # not compatible
query II rowsort label-1259
SELECT DISTINCT - - col1 / - 50, col2 + + col1 AS col1 FROM tab1 AS cor0
----
0
110
0
115
0
64

query I rowsort
SELECT - - col2 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / - 89 IS NULL
----
3481
4624
9216

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1262
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( + - col1 AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1262
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( + - col1 AS REAL ) ) IS NOT NULL
----

query II rowsort
SELECT col1, 23 - + - ( col1 ) * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
22
21
-418
81
-6538

query I rowsort
SELECT DISTINCT + + 2 + + 69 * - 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-895

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT - 51 + + col0 + 10 DIV + 45 AS col1 FROM tab0 AS cor0
----
-36
36
46

skipif mysql # not compatible
query I rowsort label-1266
SELECT - 51 + + col0 + 10 / + 45 AS col1 FROM tab0 AS cor0
----
-36
36
46

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE + 94 IN ( - 95 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 + - 21 col0 FROM tab1 AS cor0
----
-66
2
5

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + + 26 + + col2 + + col2 AS col2 FROM tab1 AS cor0
----
1358
248
556

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1273
SELECT - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1273
SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
-3
3

query II rowsort
SELECT ALL 1 - + + 21 AS col1, col2 FROM tab1
----
-20
59
-20
68
-20
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1275
SELECT 35 AS col0, COUNT( * ) AS col0 FROM tab2
----
35
3

skipif mysql # not compatible
query II rowsort label-1275
SELECT 35 AS col0, COUNT ( * ) AS col0 FROM tab2
----
35
3

query III rowsort
SELECT * FROM tab0 WHERE + col0 = ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - 54 * COUNT( ALL - 42 ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-1277
SELECT - 54 * COUNT ( ALL - 42 ) FROM tab1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL + MAX( ALL 61 ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + MAX ( ALL 61 ) AS col2 FROM tab2
----
61

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - - 56 IS NOT NULL AND NOT NULL <= + col0
----

query I rowsort
SELECT col0 - 83 AS col1 FROM tab0
----
-68
14
4

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

skipif mysql # not compatible
query I rowsort label-1282
SELECT - COUNT ( * ) + + 92 FROM tab2 cor0
----
89

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

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

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

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

query I rowsort
SELECT ALL + col1 + + ( - + ( - col0 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col1 col2 FROM tab1 cor0
----
-1344
-295
-3196

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1289
SELECT + 9 * + ( + COUNT( DISTINCT - col1 ) ) + - CAST( 69 AS SIGNED ) AS col1 FROM tab2 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1289
SELECT + 9 * + ( + COUNT ( DISTINCT - col1 ) ) + - CAST ( 69 AS INTEGER ) AS col1 FROM tab2 cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1290
SELECT DISTINCT - + ( - 0 ) AS col1, MAX( CAST( - + col2 AS SIGNED ) ) FROM tab2 cor0
----
0
-23

skipif mysql # not compatible
query II rowsort label-1290
SELECT DISTINCT - + ( - 0 ) AS col1, MAX ( CAST ( - + col2 AS INTEGER ) ) FROM tab2 cor0
----
0
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT col0 DIV - 35 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1291
SELECT col0 / - 35 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + col2 * - + ( - col2 ) FROM tab2
----
1600
3364
529

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT 85 DIV + - 70 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1294
SELECT 85 / + - 70 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT DISTINCT 47 AS col2, - 95 AS col1 FROM tab2
----
47
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT 34 DIV + col1 col0 FROM tab0
----
0
1
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1296
SELECT 34 / + col1 col0 FROM tab0
----
0
1
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL + col1 * + col0 / + 5 / 48 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + col1 * + col0 / + 5 / 48 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + 51 + 19 * + + 87 * - col2 FROM tab1 AS cor0 WHERE NOT col2 + - - col1 IS NULL
----
-112455
-158739
-97578

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1300
SELECT - - 17 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL col2 + + col2 * - 94 FROM tab0 AS cor0
----
-4371
-9207
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT DISTINCT + 32 + - 26 * + 24 * - 8 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + + 87 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT + 32 + - 26 * + 24 * - 8 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + + 87 IS NULL
----

query I rowsort
SELECT ALL - 27 + - 78 FROM tab0 AS cor0
----
-105
-105
-105

query I rowsort
SELECT ALL col2 / - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT ALL 90 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL 90 / - col1 AS col2 FROM tab1 AS cor0
----
-1
-18
-6

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

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

query II rowsort
SELECT col2 * + col1 * - col1 + 11 AS col1, + ( col1 ) - - col0 * 94 AS col2 FROM tab1 AS cor0
----
-1464
7995
-150201
8601
-18805
4808

query I rowsort
SELECT + col1 + col1 + + - ( + ( - 0 ) ) FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT 89 + - 47 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL + + 15 + - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + + 15 + - COUNT ( * ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT COUNT( * ) + + + 33 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1311
SELECT COUNT ( * ) + + + 33 FROM tab0
----
36

query I rowsort
SELECT DISTINCT col0 + + - 61 FROM tab2 AS cor0
----
-15
14
3

query I rowsort
SELECT - - 29 AS col0 FROM tab1 AS cor0 WHERE NOT col2 - - 98 IS NULL
----
29
29
29

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1314
SELECT DISTINCT MAX ( - + 5 ) col0 FROM tab2 AS cor0
----
-5

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

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

query I rowsort
SELECT + 17 * - + 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT + 82 * 92 + col0 + - col1 + + - col0 * - col1 + - col2 * - 4 * + - col1 FROM tab0 AS cor0
----
-6535
7341
8597

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

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

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

skipif mysql # not compatible
query I rowsort label-1319
SELECT - 81 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
243

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND col0 / + 64 + col0
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT DISTINCT + 57 + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT + 57 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT - COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
-9

query I rowsort
SELECT ALL 56 * + - col1 AS col0 FROM tab1
----
-2632
-280
-784

query I rowsort
SELECT ALL + col1 * + - col0 AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT 43 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
-1927
-2675
-3158

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT ALL - + 69 DIV + - col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - + 69 / + - col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT + + 65 * + ( 83 ) + - + ( ( - - col0 ) ) FROM tab0 AS cor0
----
5298
5308
5380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT + ( + + MAX( ALL - col0 ) ) - + COUNT( - col1 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + ( + + MAX ( ALL - col0 ) ) - + COUNT ( - col1 ) FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT + MAX( ALL + - col0 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + MAX ( ALL + - col0 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT col1 - - - col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT 35 - + ( - col2 ) FROM tab0
----
134
45
82

query I rowsort
SELECT DISTINCT 80 + - col2 FROM tab1
----
-16
12
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
-185

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

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

query I rowsort
SELECT ALL - col0 - + ( - col0 ) * + col1 + - 20 - + col0 + col1 AS col0 FROM tab2
----
2285
4857
4922

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

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL CAST ( - + col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT col2 + - + col2 + - + col1 FROM tab1
----
-14
-47
-5

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

query I rowsort
SELECT ALL col0 * + ( - col1 ) - - col0 AS col0 FROM tab1 cor0
----
-340
-4186
-663

query I rowsort
SELECT ALL 0 * + + 89 FROM tab0 AS cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1347
SELECT DISTINCT col2 / + 83 col2 FROM tab1
----
0
1

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col2, 12 + - + col1, - 9 )
----

query I rowsort
SELECT 92 * - + col2 FROM tab2 AS cor0
----
-2116
-3680
-5336

onlyif mysql # DIV for integer division: 
query II rowsort label-1352
SELECT col1 AS col1, - col2 DIV col1 FROM tab1
----
14
-6
47
-1
5
-11

skipif mysql # not compatible
query II rowsort label-1352
SELECT col1 AS col1, - col2 / col1 FROM tab1
----
14
-6
47
-1
5
-11

query I rowsort
SELECT ALL 14 * + col2 * - col0 AS col0 FROM tab0
----
-12180
-134442
-9870

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT 78 * + ( 31 ) * 10 * - - col0 + col2 DIV + 1 AS col0 FROM tab1
----
1233276
2055359
2200448

skipif mysql # not compatible
query I rowsort label-1354
SELECT 78 * + ( 31 ) * 10 * - - col0 + col2 / + 1 AS col0 FROM tab1
----
1233276
2055359
2200448

query III rowsort
SELECT DISTINCT - col2, - 65 AS col1, 17 AS col1 FROM tab0
----
9 values hashing to 7fa4a4b155a2f23d0e841e7a95fe6a59

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

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query II rowsort
SELECT + col0 AS col2, col2 - + col1 FROM tab0 AS cor0
----
15
-34
87
-11
97
98

query II rowsort
SELECT - col2 AS col0, - col2 * 89 AS col1 FROM tab1 cor0
----
-59
-5251
-68
-6052
-96
-8544

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT DISTINCT + col0 + 31 + - col2 DIV - col0 col0 FROM tab2
----
106
77
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1359
SELECT DISTINCT + col0 + 31 + - col2 / - col0 col0 FROM tab2
----
106
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT + + 33 * + COUNT( * ) * + + 80 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23760

skipif mysql # not compatible
query I rowsort label-1360
SELECT + + 33 * + COUNT ( * ) * + + 80 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23760

query II rowsort
SELECT ALL + 78 AS col0, 61 AS col1 FROM tab1, tab0 AS cor0
----
18 values hashing to f6f1c09cee40e85c63cc189f99bed144

query II rowsort
SELECT col1 + + + 38 AS col0, + col2 * col2 FROM tab1 AS cor0
----
43
3481
52
9216
85
4624

query I rowsort
SELECT ALL - 18 + + - 90 * 84 + + + col0 FROM tab0 AS cor0
----
-7481
-7491
-7563

onlyif mysql # DIV for integer division: 
query I rowsort label-1364
SELECT col1 + - + 28 DIV - 33 col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1364
SELECT col1 + - + 28 / - 33 col2 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT + col2 + + col0 AS col0, - col0 FROM tab2 AS cor0
----
104
-64
133
-75
69
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT - COUNT( * ) + + ( + MIN( ALL col0 ) ) col1 FROM tab1 AS cor0
----
48

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1368
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 - + + col0 + 59 + + 68, CAST( NULL AS DECIMAL ), + 46 )
----

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 - + + col0 + 59 + + 68, CAST ( NULL AS REAL ), + 46 )
----

query I rowsort
SELECT + - 95 + 29 AS col1 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1370
SELECT DISTINCT + MIN( - + CAST( NULL AS SIGNED ) ) + + - MAX( DISTINCT - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + MIN ( - + CAST ( NULL AS INTEGER ) ) + + - MAX ( DISTINCT - col1 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL + 54 * - - 61 * + MIN( ALL - 19 ) - + 20 FROM tab1
----
-62606

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL + 54 * - - 61 * + MIN ( ALL - 19 ) - + 20 FROM tab1
----
-62606

query III rowsort
SELECT * FROM tab1 WHERE - col1 IN ( - - col0 * - col2, 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL MAX( ALL col0 ) FROM tab2 WHERE NOT + col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL MAX ( ALL col0 ) FROM tab2 WHERE NOT + col2 <> NULL
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + 40 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL - 16 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - 16 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-13

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 32 AND - ( + + 68 ) - + col1
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1384
SELECT - 63 DIV + - COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1384
SELECT - 63 / + - COUNT ( * ) FROM tab2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1385
SELECT ALL - SUM( - CAST( - - col1 AS SIGNED ) ) col1 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1385
SELECT ALL - SUM ( - CAST ( - - col1 AS INTEGER ) ) col1 FROM tab2
----
195

query II rowsort
SELECT DISTINCT 50, 86 AS col0 FROM tab1
----
50
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 WHERE + col1 > + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT - ( + col0 ) + + - col2 DIV - + 86 FROM tab0 AS cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-1388
SELECT - ( + col0 ) + + - col2 / - + 86 FROM tab0 AS cor0
----
-15
-87
-96

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

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT COUNT ( * ) + - + MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT 90 + + col1 + col1 * + col2 FROM tab2
----
1314
3247
4043

query I rowsort
SELECT ALL - col0 - + col2 + col2 + + 95 AS col1 FROM tab2
----
20
31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - COUNT( * ) * 57 - ( COUNT( * ) ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - COUNT ( * ) * 57 - ( COUNT ( * ) ) FROM tab1
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1394
SELECT ALL * FROM tab1 WHERE NOT - CAST( + 48 AS SIGNED ) <> - + 81 * - col0 + + 45 + + col2
----

skipif mysql # not compatible
query III rowsort label-1394
SELECT ALL * FROM tab1 WHERE NOT - CAST ( + 48 AS INTEGER ) <> - + 81 * - col0 + + 45 + + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT MIN( ALL - col2 ) * - SUM( + + 25 ) FROM tab1
----
7200

skipif mysql # not compatible
query I rowsort label-1396
SELECT MIN ( ALL - col2 ) * - SUM ( + + 25 ) FROM tab1
----
7200

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

query I rowsort
SELECT ALL + col1 + + ( 35 ) - col0 + 4 * + - col1 FROM tab0 AS cor0
----
-115
-223
-65

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

query I rowsort
SELECT - col2 * + - ( col2 ) - + 52 * + ( + + col1 ) * - + col0 FROM tab1 AS cor0
----
227028
25581
46344

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT 88 * + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-1401
SELECT 88 * + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + MAX( ALL col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1402
SELECT + MAX ( ALL col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT - 68 * + col0 AS col2 FROM tab0
----
-1020
-5916
-6596

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1405
SELECT ALL - ( - - col2 ) / col0 * + col1 AS col2, + col2 * + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL NOT BETWEEN - + col1 AND - col2
----

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL - ( - - col2 ) / col0 * + col1 AS col2, + col2 * + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL NOT BETWEEN - + col1 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + col0 col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - + 51 AS col1 FROM tab0 cor0
----
-51

query I rowsort
SELECT DISTINCT + col0 * - 52 FROM tab0 AS cor0
----
-4524
-5044
-780

query II rowsort
SELECT col1 * - col0, + col1 AS col0 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-92

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

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

query II rowsort
SELECT + 39, 32 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 5614ab9ebf5855a0a854d99b655f9c8f

onlyif mysql # aggregate syntax: 
query II rowsort label-1413
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) * - + 54 AS col1 FROM tab2
----
3
-162

skipif mysql # not compatible
query II rowsort label-1413
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) * - + 54 AS col1 FROM tab2
----
3
-162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / col2 * - + col1 > - col1
----

query I rowsort
SELECT col1 * - + 46 FROM tab1 AS cor0
----
-2162
-230
-644

query I rowsort
SELECT ALL + col1 + - col1 + - - 17 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT 67 AS col2 FROM tab2 cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + - 72 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
1104
3452
419

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL + SUM( ALL + + 65 ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + SUM ( ALL + + 65 ) FROM tab1 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1420
SELECT + + CAST( - + AVG ( DISTINCT - col1 ) AS SIGNED ) col2 FROM tab2 cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1420
SELECT + + CAST ( - + AVG ( DISTINCT - col1 ) AS INTEGER ) col2 FROM tab2 cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT COUNT( * ) + + 25 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-1421
SELECT COUNT ( * ) + + 25 FROM tab2
----
28

query I rowsort
SELECT + ( + - 39 ) + - col1 * + + col1 FROM tab0
----
-40
-480
-6600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + col0 col1 FROM tab2
----
105
116
87

query II rowsort
SELECT + col0 + - 34, + col0 FROM tab2
----
12
46
30
64
41
75

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

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

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

query I rowsort
SELECT col0 FROM tab0 WHERE + - ( + col0 ) >= + col1
----

query I rowsort
SELECT ALL + + col2 + ( col2 ) + col1 FROM tab0 AS cor0
----
175
199
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT + + col1 DIV + col0 + - col1 FROM tab2 AS cor0
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-1430
SELECT + + col1 / + col0 + - col1 FROM tab2 AS cor0
----
-50
-67
-76

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

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

query I rowsort
SELECT col0 - + 20 AS col0 FROM tab2
----
26
44
55

query I rowsort
SELECT ALL - 61 AS col1 FROM tab1
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT ALL CAST( NULL AS SIGNED ) * + - 46 * + 23 - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL CAST ( NULL AS INTEGER ) * + - 46 * + 23 - - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 23 + col2 * 25 * - - 96 FROM tab0 AS cor0
----
112823
237623
24023

query I rowsort
SELECT - - 79 + + + 27 AS col1 FROM tab2 AS cor0
----
106
106
106

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 94 AS col1, + 78 col0 FROM tab1 AS cor0
----
94
78
94
78
94
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
3

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

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT - 44 + - 3 <> NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + col2, - col2 col1 FROM tab2
----
1600
-40
3364
-58
529
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT + col1 > col2
----
1

skipif mysql # not compatible
query I rowsort label-1444
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col1 > col2
----
1

query II rowsort
SELECT col1, - 50 * - col2 * + - 27 AS col2 FROM tab2
----
51
-31050
67
-78300
77
-54000

query I rowsort
SELECT ALL + col1 * + 55 FROM tab2
----
2805
3685
4235

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

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

query I rowsort
SELECT - col1 + + 83 FROM tab0 AS cor0
----
2
62
82

query I rowsort
SELECT ALL + 86 + col2 + + 23 FROM tab0 AS cor0
----
119
156
208

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL + 77 + + SUM( DISTINCT + col2 ) + 59 FROM tab2 cor0
----
257

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 77 + + SUM ( DISTINCT + col2 ) + 59 FROM tab2 cor0
----
257

query I rowsort
SELECT ALL - col0 * col0 * + - col2 - + col1 * - col0 AS col2 FROM tab1 cor0
----
250410
426700
567385

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NULL > + 91
----

query III rowsort
SELECT * FROM tab0 WHERE + 70 BETWEEN NULL AND ( - 91 )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - - 20 * - 36 - - 12 - col1 + col2 * + + col2 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT DISTINCT - COUNT( * ) DIV - + 64 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - COUNT ( * ) / - + 64 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT - 56 + + 92 AS col1, col2 FROM tab0
----
36
10
36
47
36
99

query I rowsort
SELECT - 75 * + 68 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fa3d38b5aba6dfc91f1f083bfee94c8

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 45 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

query I rowsort
SELECT ALL + + ( - 15 ) FROM tab2 WHERE + + 77 IS NULL
----

query I rowsort
SELECT ( - - 12 ) - ( + 14 ) FROM tab2 WHERE NOT - 66 <= col2 * - 79
----
-2
-2
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1465
SELECT * FROM tab0 WHERE NOT - col2 NOT BETWEEN - - ( col2 ) AND CAST( + + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1465
SELECT * FROM tab0 WHERE NOT - col2 NOT BETWEEN - - ( col2 ) AND CAST ( + + col0 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 27 * - 94 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col0, + col1 + + col1 - col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL + COUNT( - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL + COUNT ( - + col0 ) FROM tab0
----
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 39 col2, 54 AS col1 FROM tab0 cor0
----
-39
54
-39
54
-39
54

query I rowsort
SELECT - 65 FROM tab2 AS cor0 WHERE NOT - col1 * - - col1 / + col0 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT 65 * - COUNT( DISTINCT + + col0 ) AS col1 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-1472
SELECT 65 * - COUNT ( DISTINCT + + col0 ) AS col1 FROM tab0
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1473
SELECT + 27 DIV - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1473
SELECT + 27 / - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT ALL - 31 + - col0 FROM tab0
----
-118
-128
-46

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

skipif mysql # not compatible
query II rowsort label-1475
SELECT - - COUNT ( * ) AS col2, SUM ( ALL - 64 ) FROM tab2 AS cor0
----
3
-192

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

skipif mysql # not compatible
query II rowsort label-1476
SELECT + 88 AS col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
88
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1477
SELECT DISTINCT - col2 + + col0 * + col0 - - CAST( NULL AS DECIMAL ) col1, ( + - col0 ) FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1477
SELECT DISTINCT - col2 + + col0 * + col0 - - CAST ( NULL AS REAL ) col1, ( + - col0 ) FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL + - COUNT( * ) + + COUNT( - + 98 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + - COUNT ( * ) + + COUNT ( - + 98 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 * + + 94 + 46 col2 FROM tab0 AS cor0
----
2772

query I rowsort
SELECT + col1 + + col2 + col2 FROM tab2 AS cor0
----
157
183
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + 58 * + ( + col0 ) >= NULL AND col0 NOT BETWEEN + col0 AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT + 12 DIV - - 17 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 12 / - - 17 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * + ( 63 ) - + col0 * - col0 * - col0 FROM tab0 AS cor0
----
-414
-657873
-906436

query I rowsort
SELECT + + 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( + + 58, col1, - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( + + 58, col1, - + col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT - - col1 DIV 66 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1492
SELECT - - col1 / 66 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + 35 AS col2 FROM tab2 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1494
SELECT ALL MIN( + CAST( - 99 AS SIGNED ) ) DIV + ( - + 93 ) + 83 AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL MIN ( + CAST ( - 99 AS INTEGER ) ) / + ( - + 93 ) + 83 AS col0 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT MIN( ALL 50 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1495
SELECT DISTINCT MIN ( ALL 50 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT + MAX( DISTINCT + col2 ) * - ( + + COUNT( ALL - - ( + 51 ) ) ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + MAX ( DISTINCT + col2 ) * - ( + + COUNT ( ALL - - ( + 51 ) ) ) FROM tab1
----
-288

query I rowsort
SELECT ( + - 53 ) * - + col2 AS col0 FROM tab0
----
2491
5247
530

query I rowsort
SELECT 4 * - col0 AS col0 FROM tab2
----
-184
-256
-300

query I rowsort
SELECT ALL + col2 + + 65 AS col2 FROM tab2 AS cor0
----
105
123
88

query I rowsort
SELECT ALL - col1 + + 91 AS col1 FROM tab1
----
44
77
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1501
SELECT col2 DIV + + col0 + - CAST( - ( - - col0 ) AS SIGNED ) * col2 FROM tab0
----
708
870
9604

skipif mysql # not compatible
query I rowsort label-1501
SELECT col2 / + + col0 + - CAST ( - ( - - col0 ) AS INTEGER ) * col2 FROM tab0
----
708
870
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT COUNT( DISTINCT 6 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1502
SELECT COUNT ( DISTINCT 6 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 61 + col1 + col1 + + col0 * - ( - + ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
326
7550
9350

query II rowsort
SELECT ALL + col1, - col1 / col0 - + - 74 FROM tab0 AS cor0 WHERE NULL BETWEEN - 75 * + 74 * - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 21 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 52 + - 45 + ( - col0 ) + + col1 * 46 * - 11 AS col1 FROM tab2 AS cor0
----
-25845
-33970
-39019

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT DISTINCT + col1 + - + CAST( + ( + col0 ) AS SIGNED ) FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT + col1 + - + CAST ( + ( + col0 ) AS INTEGER ) FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1510
SELECT ALL COUNT( * ) AS col1, COUNT( * ) + 33 AS col2 FROM tab0
----
3
36

skipif mysql # not compatible
query II rowsort label-1510
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) + 33 AS col2 FROM tab0
----
3
36

query I rowsort
SELECT DISTINCT + + 19 + + 77 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT DISTINCT + + 25 * + COUNT( ALL + 47 ) * - 28 AS col0 FROM tab0 AS cor0
----
-2100

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT + + 25 * + COUNT ( ALL + 47 ) * - 28 AS col0 FROM tab0 AS cor0
----
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-1513
SELECT + + 38 * - 53 DIV + ( - 52 ) AS col2 FROM tab1 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-1513
SELECT + + 38 * - 53 / + ( - 52 ) AS col2 FROM tab1 AS cor0
----
38
38
38

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 58 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

query I rowsort
SELECT DISTINCT - + 17 * + + col1 AS col0 FROM tab2 cor0
----
-1139
-1309
-867

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( - + col0 ) NOT BETWEEN NULL AND + + col1 / + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT DISTINCT - 18 * col1 + - col0 DIV + 99 FROM tab1 cor0
----
-252
-846
-90

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT - 18 * col1 + - col0 / + 99 FROM tab1 cor0
----
-252
-846
-90

query I rowsort
SELECT 87 * - col1 * - ( + col1 ) + col0 FROM tab1 AS cor0
----
17103
192274
2260

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT DISTINCT - 24 * - + 9 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT - 24 * - + 9 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
648

onlyif mysql # aggregate syntax: 
query II rowsort label-1521
SELECT ALL + MIN( col2 ), + 96 AS col2 FROM tab2 AS cor0
----
23
96

skipif mysql # not compatible
query II rowsort label-1521
SELECT ALL + MIN ( col2 ), + 96 AS col2 FROM tab2 AS cor0
----
23
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL MIN( - col1 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1522
SELECT ALL MIN ( - col1 ) col0 FROM tab0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1523
SELECT - MAX( + col2 ) + + CAST( + 82 AS SIGNED ), + 81 AS col1 FROM tab1
----
-14
81

skipif mysql # not compatible
query II rowsort label-1523
SELECT - MAX ( + col2 ) + + CAST ( + 82 AS INTEGER ), + 81 AS col1 FROM tab1
----
-14
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 74 ) * + + 19 col0 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT - 43 AS col0, - col0 AS col0 FROM tab2 AS cor0
----
-43
-46
-43
-64
-43
-75

query I rowsort
SELECT - 61 * + col0 + - + col0 FROM tab1 cor0
----
-3162
-5270
-5642

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN ( 42 / - col2 ) AND col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 94 - + col1 col1 FROM tab0
----
1329
8157
9117

query I rowsort
SELECT col2 * col2 - + col1 AS col1 FROM tab0
----
2128
79
9800

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT col2 DIV - 13 col2 FROM tab1
----
-4
-5
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1533
SELECT col2 / - 13 col2 FROM tab1
----
-4
-5
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT 84 DIV col1 FROM tab0
----
1
4
84

skipif mysql # not compatible
query I rowsort label-1534
SELECT 84 / col1 FROM tab0
----
1
4
84

query I rowsort
SELECT 22 * - col0 AS col1 FROM tab1
----
-1122
-1870
-2002

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

query I rowsort
SELECT col2 * 97 AS col0 FROM tab2
----
2231
3880
5626

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT + ( 77 ) DIV 79 + 86 FROM tab1
----
86
86
86

skipif mysql # not compatible
query I rowsort label-1538
SELECT + ( 77 ) / 79 + 86 FROM tab1
----
86
86
86

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col2 ) * col1 >= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - 35 NOT BETWEEN ( col0 ) AND col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * col0 - 16 FROM tab0
----
689
854
9587

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( 61 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 82 * + 69 FROM tab0
----
-5658

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - COUNT( 71 ) * 74 AS col1 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-1544
SELECT - COUNT ( 71 ) * 74 AS col1 FROM tab1
----
-222

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT - ( - COUNT ( * ) ) * COUNT ( 42 + + col1 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL - 90 * - COUNT( * ) AS col1 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - 90 * - COUNT ( * ) AS col1 FROM tab1
----
270

query I rowsort
SELECT ( + 86 ) * col2 FROM tab1
----
5074
5848
8256

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

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

query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab0 WHERE ( NULL ) IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + 40 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 / 13 + col1 ) BETWEEN ( NULL ) AND col2 - 82
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT ( 49 ) NOT BETWEEN - col1 / - col2 AND ( + col0 )
----
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT 81 DIV + MAX( 43 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT 81 / + MAX ( 43 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT ALL + ( 79 ) DIV 2 AS col1 FROM tab1
----
39
39
39

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + ( 79 ) / 2 AS col1 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL - MAX( DISTINCT + col2 ) * SUM( ( + col2 ) * - 7 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
108108

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL - MAX ( DISTINCT + col2 ) * SUM ( ( + col2 ) * - 7 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
108108

query I rowsort
SELECT - 60 - col2 FROM tab0 cor0
----
-107
-159
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT + col0 DIV 88 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1558
SELECT + col0 / 88 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1559
SELECT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + col1 * ( + col1 * - 91 ) FROM tab1 AS cor0
----
-17836
-201019
-2275

query I rowsort
SELECT ALL 85 + + col2 FROM tab0 AS cor0 WHERE NOT ( 18 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * col2 col0 FROM tab0 AS cor0
----
-1980
-200
-940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT DISTINCT + MIN( ALL - col0 ) DIV - 23 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT + MIN ( ALL - col0 ) / - 23 FROM tab0 AS cor0
----
4

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 50 / 78 BETWEEN 11 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL - SUM( ALL - 82 ) AS col0 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - SUM ( ALL - 82 ) AS col0 FROM tab0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE - 60 * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE - 60 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT ALL - 31 * 14 DIV - col2 AS col1 FROM tab2
----
10
18
7

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - 31 * 14 / - col2 AS col1 FROM tab2
----
10
18
7

query I rowsort
SELECT DISTINCT + col2 * + + 25 FROM tab1
----
1475
1700
2400

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN - col2 AND 62
----
51
14
96
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * + 31 col2 FROM tab1
----
3007
3007
3007

query I rowsort
SELECT + col0 * - 2 * 38 FROM tab0
----
-1140
-6612
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 38 * col2 col0 FROM tab1
----
-132278
-175712
-350208

query I rowsort
SELECT DISTINCT + ( col2 ) + - col2 FROM tab0 cor0
----
0

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

query I rowsort
SELECT col2 * + col2 * col0 + col2 AS col2 FROM tab1
----
295944
420852
470112

onlyif mysql # DIV for integer division: 
query I rowsort label-1582
SELECT ( - 11 ) DIV + ( 33 ) + 53 AS col0 FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-1582
SELECT ( - 11 ) / + ( 33 ) + 53 AS col0 FROM tab1
----
53
53
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT + 10 DIV COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT 65 DIV COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1584
SELECT 65 / COUNT ( * ) FROM tab2
----
21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 24 * - col1 ) >= - col1 * - col2
----
15
81
47
97
1
99

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

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

query I rowsort
SELECT ALL + 7 + + + col1 AS col2 FROM tab2 AS cor0
----
58
74
84

query I rowsort
SELECT - col1 * col2 FROM tab1 AS cor0 WHERE 8 IS NOT NULL
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 15 / + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT - + 63 + - + MAX( + col0 ) FROM tab1 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - + 63 + - + MAX ( + col0 ) FROM tab1 AS cor0
----
-154

query I rowsort
SELECT 14 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT DISTINCT 84 - + + COUNT( ALL 89 ) * 93 AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT 84 - + + COUNT ( ALL 89 ) * 93 AS col0 FROM tab2 cor0
----
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1595
SELECT + col2 * col1 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT + col2 * col1 - - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1596
SELECT * FROM tab1 WHERE ( - - ( col0 ) * 81 - CAST( NULL AS SIGNED ) ) > col1
----

skipif mysql # not compatible
query III rowsort label-1596
SELECT * FROM tab1 WHERE ( - - ( col0 ) * 81 - CAST ( NULL AS INTEGER ) ) > col1
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1598
SELECT DISTINCT - MIN( - CAST( - 96 AS SIGNED ) ) - MAX( + 22 ) FROM tab1
----
-118

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT - MIN ( - CAST ( - 96 AS INTEGER ) ) - MAX ( + 22 ) FROM tab1
----
-118

query III rowsort
SELECT * FROM tab0 WHERE ( + + 12 ) NOT BETWEEN NULL AND col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT COUNT( DISTINCT 29 ) * - - 31 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-1600
SELECT COUNT ( DISTINCT 29 ) * - - 31 FROM tab2
----
31

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 3 BETWEEN ( NULL ) AND ( 40 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 / + 22 + col1 AS col0 FROM tab0 WHERE ( + col0 ) NOT BETWEEN - col2 AND col1 + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1603
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( - 45 + + col1 - 33 * col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT 16 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-1609
SELECT 16 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 32 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 32 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT DISTINCT - 86 * CAST( + 61 AS SIGNED ) col1 FROM tab1
----
-5246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1612
SELECT DISTINCT - 86 * CAST ( + 61 AS INTEGER ) col1 FROM tab1
----
-5246

query I rowsort
SELECT DISTINCT + 76 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT MAX( + + col2 ) * + + SUM( - - 53 ) FROM tab0
----
15741

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT MAX ( + + col2 ) * + + SUM ( - - 53 ) FROM tab0
----
15741

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1616
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-1616
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
9

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

query I rowsort
SELECT ALL + col0 * + col2 + - col0 FROM tab2 AS cor0
----
1012
2496
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + 75 AS col2 FROM tab1 AS cor0 WHERE NULL >= col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT ALL 75 + - CAST( - 88 AS SIGNED ) AS col1 FROM tab0 cor0
----
163
163
163

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL 75 + - CAST ( - 88 AS INTEGER ) AS col1 FROM tab0 cor0
----
163
163
163

query I rowsort
SELECT - col0 * - col0 * - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-262144
-421875
-97336

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1623
SELECT + CAST( NULL AS SIGNED ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1623
SELECT + CAST ( NULL AS INTEGER ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + 37 * col0 FROM tab0
----
3219
3589
555

onlyif mysql # DIV for integer division: 
query II rowsort label-1625
SELECT DISTINCT col0 DIV + 84, col2 + 4 AS col2 FROM tab2
----
0
27
0
44
0
62

skipif mysql # not compatible
query II rowsort label-1625
SELECT DISTINCT col0 / + 84, col2 + 4 AS col2 FROM tab2
----
0
27
0
44
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT - 89 + - MAX( 99 ) FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-1626
SELECT - 89 + - MAX ( 99 ) FROM tab2
----
-188

query I rowsort
SELECT ALL 76 * - col0 AS col2 FROM tab2
----
-3496
-4864
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1628
SELECT col0 * + col1 FROM tab1 WHERE ( NOT - CAST( NULL AS SIGNED ) <> - col0 * 59 * - CAST( NULL AS SIGNED ) + + 9 )
----

skipif mysql # not compatible
query I rowsort label-1628
SELECT col0 * + col1 FROM tab1 WHERE ( NOT - CAST ( NULL AS INTEGER ) <> - col0 * 59 * - CAST ( NULL AS INTEGER ) + + 9 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1629
SELECT COUNT ( * ) col0, + ( + + 52 ) AS col1 FROM tab0 AS cor0
----
3
52

query I rowsort
SELECT ALL - - col2 + ( - - col0 ) FROM tab1 AS cor0 WHERE col1 + - 15 IS NOT NULL
----
144
147
159

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

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

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

query I rowsort
SELECT DISTINCT + + 95 - - col2 FROM tab2 AS cor0
----
118
135
153

query I rowsort
SELECT DISTINCT - 58 * col1 AS col1 FROM tab1
----
-2726
-290
-812

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / + + col0 IN ( + 33, 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL + ( + - ( + - col2 ) ) * + 8 + + col1 - + col0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-2157
-4569
-4595

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

query I rowsort
SELECT ALL - - 55 AS col1 FROM tab0 AS cor0
----
55
55
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT DISTINCT MAX( ALL - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT MAX ( ALL - col2 ) AS col2 FROM tab2
----
-23

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

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + col1 / + + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT DISTINCT 34 DIV + 13 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT 34 / + 13 FROM tab0
----
2

query II rowsort
SELECT ALL 27 AS col2, col2 AS col1 FROM tab0
----
27
10
27
47
27
99

query I rowsort
SELECT DISTINCT 25 * col1 AS col1 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT ALL - ( - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1647
SELECT - COUNT ( * ) * + COUNT ( * ) * 14 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1134

query I rowsort
SELECT - col0 + + col2 + - - col1 AS col2 FROM tab1 cor0
----
-21
24
59

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT DISTINCT CAST( + + 95 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 6 <> NULL
----

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT CAST ( + + 95 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 6 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) > - 79
----

query I rowsort
SELECT ALL - col2 * + + 5 * - - 61 AS col1 FROM tab0 AS cor0
----
-14335
-30195
-3050

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL + COUNT( * ) + COUNT( * ) * - - 80 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - - 80 FROM tab1 AS cor0
----
243

query II rowsort
SELECT DISTINCT + + col1 * col2 AS col0, 93 FROM tab2 AS cor0
----
1173
93
3080
93
3886
93

query I rowsort
SELECT 53 * - col0 AS col2 FROM tab2
----
-2438
-3392
-3975

query I rowsort
SELECT + 99 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 24 * + - col2 FROM tab2
----
-1392
-552
-960

query I rowsort
SELECT ALL 25 * - col2 + col2 AS col2 FROM tab1 WHERE NOT - col1 + + col0 * + col0 * ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT 1 * + + COUNT( * ) * + - 68 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-1660
SELECT 1 * + + COUNT ( * ) * + - 68 FROM tab0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT DISTINCT + 20 + - - MIN( - - 76 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT + 20 + - - MIN ( - - 76 ) FROM tab2
----
96

query I rowsort
SELECT DISTINCT + 9 * - col2 FROM tab2
----
-207
-360
-522

onlyif mysql # DIV for integer division: 
query II rowsort label-1663
SELECT col0 + + - col2 + ( + col0 ) DIV - col0, + col0 AS col1 FROM tab2
----
16
75
22
46
23
64

skipif mysql # not compatible
query II rowsort label-1663
SELECT col0 + + - col2 + ( + col0 ) / - col0, + col0 AS col1 FROM tab2
----
16
75
22
46
23
64

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 39 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1665
SELECT * FROM tab2 cor0 WHERE NULL > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1665
SELECT * FROM tab2 cor0 WHERE NULL > - CAST ( NULL AS INTEGER )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1667
SELECT COUNT ( ALL + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1
----
0

query II rowsort
SELECT ALL col1, - col1 + - 10 AS col2 FROM tab2 WHERE + 96 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT - 58 DIV + col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 58 / + col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 37 * ( + 81 ) AS col0 FROM tab1
----
2997
2997
2997

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 > + col2 * + + 28
----
3

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 > + col2 * + + 28
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1672
SELECT DISTINCT CAST( - col1 AS SIGNED ) * col0 + + + col2 col1, col0 FROM tab1 AS cor0
----
-366
85
-4209
91
-618
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1672
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col0 + + + col2 col1, col0 FROM tab1 AS cor0
----
-366
85
-4209
91
-618
51

query I rowsort
SELECT - 18 FROM tab1 cor0 WHERE NOT - ( - col0 ) < + col2
----
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT DISTINCT + col1 * + col2 DIV - col2 + + col2 - - col0 FROM tab0 AS cor0
----
-19
195
76

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + col1 * + col2 / - col2 + + col2 - - col0 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT DISTINCT + + col0 * - col0 * 13 + 9 DIV + 11 FROM tab0 AS cor0
----
-122317
-2925
-98397

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + + col0 * - col0 * 13 + 9 / + 11 FROM tab0 AS cor0
----
-122317
-2925
-98397

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

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

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

query II rowsort
SELECT col1, + 29 + - - col2 AS col2 FROM tab2 AS cor0
----
51
52
67
87
77
69

query II rowsort
SELECT 82, col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 34 * + - col0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL - col0 * - ( - col0 ) AS col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT + MAX( ( + ( + 89 ) ) ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-1682
SELECT + MAX ( ( + ( + 89 ) ) ) FROM tab2
----
89

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

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL COUNT ( - CAST ( + 80 AS INTEGER ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 50 * + + col1 <> col2 * - 20 * 4 * - - 88 / - - col1 * + col1
----

query I rowsort
SELECT - col0 * + + col2 + - col0 + 38 FROM tab0 AS cor0
----
-682
-919
-9662

query I rowsort
SELECT + 62 * + + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1302
5022
62

query I rowsort
SELECT + 67 * + + col0 AS col0 FROM tab0 cor0
----
1005
5829
6499

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT + 86 - + COUNT( * ) * + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-553

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + 86 - + COUNT ( * ) * + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-553

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

skipif mysql # not compatible
query I rowsort label-1690
SELECT COUNT ( * ) FROM tab0 WHERE NOT + 21 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1691
SELECT ALL - 23 AS col1, col1 * - - ( - + CAST( + col1 AS SIGNED ) ) * + col1 + - 54 + + col1 AS col0 FROM tab1 AS cor0
----
-23
-103830
-23
-174
-23
-2784

skipif mysql # not compatible
query II rowsort label-1691
SELECT ALL - 23 AS col1, col1 * - - ( - + CAST ( + col1 AS INTEGER ) ) * + col1 + - 54 + + col1 AS col0 FROM tab1 AS cor0
----
-23
-103830
-23
-174
-23
-2784

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1693
SELECT DISTINCT + ( col0 ) * CAST( NULL AS SIGNED ) + col2 col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1693
SELECT DISTINCT + ( col0 ) * CAST ( NULL AS INTEGER ) + col2 col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - col1 > - 48 * - col1
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 60 col1 FROM tab0 cor0
----
-21
39
59

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

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT - 89 / + 15 + + + COUNT ( * ) FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT 83 + + + COUNT( * ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-1699
SELECT 83 + + + COUNT ( * ) FROM tab0
----
86

query I rowsort
SELECT ALL 35 + + ( + col0 ) FROM tab1
----
120
126
86

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - - 46 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NULL = - 35 * col2 / - col0 + + 41 + - 74 - col0 * - - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL > NULL AND NULL < + col2
----
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL > NULL AND NULL < + col2
----
0

query I rowsort
SELECT col0 * 85 - - - col2 * - - col0 FROM tab0
----
-1358
570
6525

query I rowsort
SELECT ALL ( ( - 78 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT col0 * - + 26 FROM tab0 cor0
----
-2262
-2522
-390

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1710
SELECT DISTINCT - 11 DIV - col2 + - - 51 + CAST( + 7 AS SIGNED ) col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT DISTINCT - 11 / - col2 + - - 51 + CAST ( + 7 AS INTEGER ) col0 FROM tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + 47, 68 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > - col0 * + 13 * col1
----

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

skipif mysql # not compatible
query I rowsort label-1714
SELECT + col0 / - + col2 FROM tab2 AS cor0
----
-1
-1
-2

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

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

query I rowsort
SELECT ALL + col2 * - + 18 * + + col0 FROM tab0 AS cor0
----
-12690
-15660
-172854

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

query I rowsort
SELECT ALL ( + 94 ) * - - 69 FROM tab0
----
6486
6486
6486

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

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

query I rowsort
SELECT ( + 6 ) + - 53 FROM tab2 cor0
----
-47
-47
-47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1723
SELECT COUNT( DISTINCT + 51 ) AS col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1723
SELECT COUNT ( DISTINCT + 51 ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
1
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL + COUNT( DISTINCT col0 ) + + - 42 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + COUNT ( DISTINCT col0 ) + + - 42 FROM tab1 AS cor0
----
-39

query II rowsort
SELECT DISTINCT + + col2 + - 1 AS col2, - 32 FROM tab2 AS cor0
----
22
-32
39
-32
57
-32

query I rowsort
SELECT ALL + col0 + + - col0 AS col2 FROM tab1 AS cor0 WHERE 52 NOT BETWEEN ( + - 37 ) AND ( NULL )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( col0 ) NOT IN ( 45 * - - 84 * + + ( col2 ), col0 )
----

query II rowsort
SELECT + 82 AS col2, + 74 AS col1 FROM tab1
----
82
74
82
74
82
74

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

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) - CAST ( - - MIN ( ALL - - col2 ) AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1732
SELECT ALL col2, + col2 DIV - col2 AS col0 FROM tab2
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-1732
SELECT ALL col2, + col2 / - col2 AS col0 FROM tab2
----
23
-1
40
-1
58
-1

query I rowsort
SELECT + 44 + - col1 * ( + 80 ) FROM tab2 AS cor0
----
-4036
-5316
-6116

query I rowsort
SELECT ALL - 3 + - col1 + - col0 * ( + col1 ) FROM tab2 AS cor0
----
-2400
-5008
-5095

query I rowsort
SELECT - + col0 AS col0 FROM tab1 AS cor0 WHERE 29 / + col2 NOT BETWEEN - - col2 AND NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1736
SELECT DISTINCT - - col1 * CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1736
SELECT DISTINCT - - col1 * CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT 21 * + 8 * - MAX( ALL + col1 ) + - + COUNT( * ) FROM tab0
----
-13611

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT 21 * + 8 * - MAX ( ALL + col1 ) + - + COUNT ( * ) FROM tab0
----
-13611

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT MIN( - - 5 ) * + 68 FROM tab1
----
340

skipif mysql # not compatible
query I rowsort label-1738
SELECT MIN ( - - 5 ) * + 68 FROM tab1
----
340

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 89 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT + + MIN( ALL - 44 ) AS col2 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT + + MIN ( ALL - 44 ) AS col2 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1743
SELECT ALL - 97 - + 57, COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 40 + - - col0 * - col2 NOT IN ( + col2 * - ( + 55 ), 58 )
----
-154
0

skipif mysql # not compatible
query II rowsort label-1743
SELECT ALL - 97 - + 57, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 40 + - - col0 * - col2 NOT IN ( + col2 * - ( + 55 ), 58 )
----
-154
0

query I rowsort
SELECT - ( - col0 ) * - 46 AS col1 FROM tab1 AS cor0
----
-2346
-3910
-4186

query I rowsort
SELECT - col2 * 21 FROM tab1
----
-1239
-1428
-2016

query I rowsort
SELECT ALL + ( col1 ) * + + col1 + - col0 FROM tab2
----
2555
4414
5865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col0 FROM tab1
----
7
7
7

query I rowsort
SELECT ALL + 91 * + + 59 FROM tab0
----
5369
5369
5369

query I rowsort
SELECT DISTINCT col1 + 9 AS col2 FROM tab2
----
60
76
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * - col0 col1 FROM tab0 AS cor0
----
-1485
-8613
-9603

query I rowsort
SELECT DISTINCT col1 + - - col2 FROM tab2 AS cor0 WHERE NOT - 92 = col0 * + 0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1752
SELECT ALL + - MAX( DISTINCT CAST( - 28 AS SIGNED ) ) AS col1, 24 * - - 67 AS col2 FROM tab1 WHERE NOT 16 >= NULL
----
NULL
1608

skipif mysql # not compatible
query II rowsort label-1752
SELECT ALL + - MAX ( DISTINCT CAST ( - 28 AS INTEGER ) ) AS col1, 24 * - - 67 AS col2 FROM tab1 WHERE NOT 16 >= NULL
----
NULL
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL + MAX( - 49 ) FROM tab1, tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL + MAX ( - 49 ) FROM tab1, tab2 AS cor0
----
-49

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 79 = NULL
----

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

query I rowsort
SELECT ALL col2 * - - col0 - - col2 * - col2 * - col2 + - 85 + + + col2 * - 96 AS col2 FROM tab2 cor0
----
10932
193809
62635

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

query I rowsort
SELECT DISTINCT col2 * + 38 + + col2 + - col1 AS col1 FROM tab1 AS cor0
----
2296
2605
3730

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT - 52 + + + 39 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1759
SELECT - 52 + + + 39 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
65

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

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

query I rowsort
SELECT ALL + col2 - - col0 * - + col2 AS col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

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

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

query I rowsort
SELECT DISTINCT + 97 - + 2 * + col1 AS col2 FROM tab1
----
3
69
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1764
SELECT ALL + 58 DIV + - MIN( ALL 45 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + 58 / + - MIN ( ALL 45 ) FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT 91 DIV - ( + + col0 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1765
SELECT 91 / - ( + + col0 ) FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col2 * - col0 * - + col2 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-1767
SELECT - 78 AS col0, col1 * - col2 * + col1 + - col0 DIV + - 40, + 56 + - 57 AS col0 FROM tab0 AS cor0
----
9 values hashing to a2a61208ae5fc19f5b3311384f27b50b

skipif mysql # not compatible
query III rowsort label-1767
SELECT - 78 AS col0, col1 * - col2 * + col1 + - col0 / + - 40, + 56 + - 57 AS col0 FROM tab0 AS cor0
----
9 values hashing to a2a61208ae5fc19f5b3311384f27b50b

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1769
SELECT - ( - CAST( col2 AS SIGNED ) ) * - col0 AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-1769
SELECT - ( - CAST ( col2 AS INTEGER ) ) * - col0 AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

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

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

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

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

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

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

query I rowsort
SELECT ALL 18 * - col1 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1774
SELECT * FROM tab2 WHERE NOT + 37 + col2 - - 23 * CAST( - col0 AS SIGNED ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1774
SELECT * FROM tab2 WHERE NOT + 37 + col2 - - 23 * CAST ( - col0 AS INTEGER ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 39 * - 79 AS col1 FROM tab1 AS cor0
----
-3081

query I rowsort
SELECT DISTINCT + col1 + + 11 FROM tab1 AS cor0 WHERE - col0 = + ( - 35 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 53 < NULL
----

query I rowsort
SELECT 27 + - + col0 FROM tab2
----
-19
-37
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1779
SELECT * FROM tab0 WHERE NULL IN ( + col1, CAST( + col1 AS DECIMAL ) * - - col2, - ( - col1 ), col0 )
----

skipif mysql # not compatible
query III rowsort label-1779
SELECT * FROM tab0 WHERE NULL IN ( + col1, CAST ( + col1 AS REAL ) * - - col2, - ( - col1 ), col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 * col1 col1 FROM tab1
----
3102
330
924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 42 FROM tab0
----
1
-42
21
-42
81
-42

query I rowsort
SELECT col2 + + ( - 51 ) FROM tab0
----
-4
-41
48

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1783
SELECT + col1 / - col1 col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT DISTINCT - COUNT( * ) + - 91 DIV + 30 + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT - COUNT ( * ) + - 91 / + 30 + - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + - MIN( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE 43 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT + - MIN ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE 43 IS NULL
----
NULL

query I rowsort
SELECT ALL - ( col0 ) * - col1 * + - col0 + 82 + - 68 + - col0 - 17 + + col1 AS col1 FROM tab0 AS cor0
----
-159018
-18162
-9508

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 12 NOT BETWEEN - ( - - col1 ) * - col1 AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL - COUNT( * ) + + + 60 * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 78 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - COUNT ( * ) + + + 60 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 78 IS NULL
----
0

query I rowsort
SELECT + col2 - - 76 + col0 FROM tab0
----
138
173
272

query I rowsort
SELECT ALL col1 * + - 63 AS col0 FROM tab2
----
-3213
-4221
-4851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT ALL + 31 - - CAST( + - col0 AS SIGNED ) FROM tab2
----
-15
-33
-44

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + 31 - - CAST ( + - col0 AS INTEGER ) FROM tab2
----
-15
-33
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ( - + COUNT( * ) ) * - 82 + COUNT( * ) AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-1792
SELECT ( - + COUNT ( * ) ) * - 82 + COUNT ( * ) AS col0 FROM tab1
----
249

query I rowsort
SELECT + ( + - col2 ) * col1 - + col1 + col2 FROM tab1
----
-1262
-241
-3175

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + COUNT( * ) + + - 62 col0 FROM tab2
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1794
SELECT + COUNT ( * ) + + - 62 col0 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT + col1 - + 19 AS col2 FROM tab1
----
-14
-5
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1796
SELECT COUNT( * ) FROM tab2 WHERE + - 71 * 50 * + col1 + + CAST( NULL AS SIGNED ) * - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1796
SELECT COUNT ( * ) FROM tab2 WHERE + - 71 * 50 * + col1 + + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT + + 92 * col2 * - col2 FROM tab2 AS cor0
----
-147200
-309488
-48668

onlyif mysql # aggregate syntax: 
query II rowsort label-1798
SELECT DISTINCT - 59, - SUM( DISTINCT + 15 ) AS col1 FROM tab2 AS cor0
----
-59
-15

skipif mysql # not compatible
query II rowsort label-1798
SELECT DISTINCT - 59, - SUM ( DISTINCT + 15 ) AS col1 FROM tab2 AS cor0
----
-59
-15

query II rowsort
SELECT col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

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

skipif mysql # not compatible
query I rowsort label-1800
SELECT - col1 / + - col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1801
SELECT DISTINCT - col1 DIV - col2 AS col2, - col1 AS col2 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
query II rowsort label-1801
SELECT DISTINCT - col1 / - col2 AS col2, - col1 AS col2 FROM tab1
----
0
-14
0
-47
0
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 60 NOT BETWEEN col2 AND + col2 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col0 FROM tab1
----
-87

query I rowsort
SELECT + 52 * + 34 AS col1 FROM tab0
----
1768
1768
1768

query I rowsort
SELECT - 65 * - 90 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
508863
567353
87735

query I rowsort
SELECT ALL + - 37 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT - + col1 * col1 * - 99 AS col2 FROM tab0 AS cor0
----
43659
649539
99

query I rowsort
SELECT ( + 66 ) FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT DISTINCT col1 * - + col2 * + 39 AS col0 FROM tab0
----
-148473
-3861
-8190

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

query I rowsort
SELECT - col2 + + ( 72 ) AS col0 FROM tab0
----
-27
25
62

query I rowsort
SELECT - col2 + - col1 * 10 FROM tab2
----
-533
-728
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col0 col0 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1814
SELECT ALL - + col2 + CAST( + col2 AS SIGNED ) + + col0 AS col2, col2 FROM tab0 WHERE NOT + 60 = - 66
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-1814
SELECT ALL - + col2 + CAST ( + col2 AS INTEGER ) + + col0 AS col2, col2 FROM tab0 WHERE NOT + 60 = - 66
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT COUNT( * ) + + - MIN( + + 60 ) AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-1815
SELECT COUNT ( * ) + + - MIN ( + + 60 ) AS col0 FROM tab2
----
-57

query II rowsort
SELECT DISTINCT + col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + COUNT( ALL 3 ) * + + 78 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1817
SELECT + COUNT ( ALL 3 ) * + + 78 FROM tab0 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query II rowsort label-1818
SELECT 36, COUNT( * ) AS col2 FROM tab1 AS cor0
----
36
3

skipif mysql # not compatible
query II rowsort label-1818
SELECT 36, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
36
3

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

skipif mysql # not compatible
query I rowsort label-1819
SELECT AVG ( DISTINCT 59 ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 45 * - + col2 * + col0 AS col2 FROM tab2
----
-115200
-195750
-47610

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1821
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 + - - 20 * + + 80 + col1 * - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL CAST ( NULL AS REAL ) + - col0 + - - 20 * + + 80 + col1 * - + col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1823
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + 38 < NULL
----

skipif mysql # not compatible
query III rowsort label-1823
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * + 38 < NULL
----

query II rowsort
SELECT ALL + col0 + - - 17 + - 27 + col0, col2 * - col1 AS col2 FROM tab0 AS cor0
----
164
-210
184
-99
20
-3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + - col0 + - - 38 col0 FROM tab0 AS cor0
----
728
821
9544

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT 67 - ( + - COUNT( * ) ) AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT 67 - ( + - COUNT ( * ) ) AS col0 FROM tab2
----
70

query I rowsort
SELECT ALL 76 - - col0 + col1 AS col0 FROM tab1
----
141
166
214

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

query I rowsort
SELECT 14 * - col1 FROM tab0
----
-1134
-14
-294

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 82 * 94 BETWEEN col0 AND NULL )
----

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

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

query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1834
SELECT - 67 / + - CAST( NULL AS DECIMAL ) + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - MIN( DISTINCT - - ( - ( 5 ) ) ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT - 67 / + - CAST ( NULL AS REAL ) + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - MIN ( DISTINCT - - ( - ( 5 ) ) ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT ALL - col2 DIV - + 83 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - col2 / - + 83 AS col1 FROM tab1 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT + col1, col0 - - col0 FROM tab0
----
1
194
21
174
81
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
22

query III rowsort
SELECT DISTINCT + col0 AS col0, 74 AS col1, + + 55 + - col1 FROM tab0
----
9 values hashing to 2a93e696013b2a2f8179efb7b63198ca

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

query II rowsort
SELECT - col2, + 66 * + col0 AS col0 FROM tab1 cor0
----
-59
5610
-68
6006
-96
3366

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

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

query I rowsort
SELECT + col1 * - + 28 FROM tab2 AS cor0
----
-1428
-1876
-2156

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

query I rowsort
SELECT DISTINCT ( - + 70 ) FROM tab2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT DISTINCT + - COUNT( * ) + + + 25 AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT + - COUNT ( * ) + + + 25 AS col0 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL col2 + + col0 * col1 * + col2 FROM tab1 AS cor0
----
25134
290904
68640

query I rowsort
SELECT + - 31 + col2 FROM tab0 AS cor0 WHERE NULL < + col0 AND NULL <> col1 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT 18 DIV - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT 18 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL 84 * 43 - MIN( ALL - + 10 ) col2 FROM tab0
----
3622

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1849
SELECT ALL 84 * 43 - MIN ( ALL - + 10 ) col2 FROM tab0
----
3622

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - SUM( DISTINCT - + ( - + 87 ) ) col0 FROM tab1
----
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL + MIN( DISTINCT + - 41 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + MIN ( DISTINCT + - 41 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
123

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

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

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

query I rowsort
SELECT + col1 - - + col2 * 21 FROM tab2 AS cor0
----
1285
534
917

query I rowsort
SELECT ALL - col1 * + 32 AS col0 FROM tab1 AS cor0
----
-1504
-160
-448

query I rowsort
SELECT DISTINCT - ( 60 ) FROM tab0 cor0
----
-60

query I rowsort
SELECT DISTINCT - ( 90 ) FROM tab2
----
-90

query I rowsort
SELECT ALL - ( 35 ) FROM tab1
----
-35
-35
-35

query I rowsort
SELECT 52 * - - ( ( 95 ) ) FROM tab2
----
4940
4940
4940

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT ALL col1 * 82 DIV - + col0 FROM tab0
----
-19
-442
0

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL col1 * 82 / - + col0 FROM tab0
----
-19
-442
0

query I rowsort
SELECT col0 * + 62 AS col2 FROM tab0
----
5394
6014
930

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

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

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

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT + 82 >= NULL
----

query I rowsort
SELECT DISTINCT + - col2 * 2 AS col0 FROM tab0 cor0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT - - col2 + - col1 * 83 AS col0 FROM tab2 AS cor0
----
-4210
-5503
-6351

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * 99 + + col2 * col2 col2, 99 FROM tab1 AS cor0 WHERE NOT col1 IN ( col2 + + col1 + ( - col0 ), col0, + col2 + + 84 )
----
10602
99
3976
99
9277
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1870
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 48, col0 + + col1 + col0 + - CAST( col1 AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query III rowsort label-1870
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 48, col0 + + col1 + col0 + - CAST ( col1 AS INTEGER ) / col0 )
----

query I rowsort
SELECT col0 * - col2 + - col0 FROM tab0 cor0
----
-720
-957
-9700

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

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

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

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

query I rowsort
SELECT 29 + col0 AS col0 FROM tab1 AS cor0
----
114
120
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT DISTINCT 2 * - 13 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT 2 * - 13 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 64 + + - col2 FROM tab2
----
24
41
6

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN - 90 * - + 51 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT DISTINCT + + 40 DIV - col0 - - col0 + - + col0 + - col1 AS col1 FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND 81 * + - 37 * + col1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT + + 40 / - col0 - - col0 + - + col0 + - col1 AS col1 FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND 81 * + - 37 * + col1
----
-14
-47
-5

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

query I rowsort
SELECT ALL + col2 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
720
957
9700

query II rowsort
SELECT + AVG ( DISTINCT 9 ) AS col0, - 70 * + 25 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL
-1750

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

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

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1884
SELECT DISTINCT - MIN( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT - MIN ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL + ( - + col2 ) * 20, col2 AS col2 FROM tab2 AS cor0
----
-1160
58
-460
23
-800
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL SUM( + - 91 ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL SUM ( + - 91 ) FROM tab1 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - - col1 col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT 19 DIV col2 - + col2 + - 78 FROM tab2 AS cor0
----
-101
-118
-136

skipif mysql # not compatible
query I rowsort label-1889
SELECT 19 / col2 - + col2 + - 78 FROM tab2 AS cor0
----
-101
-118
-136

query I rowsort
SELECT DISTINCT + + 54 FROM tab1 cor0
----
54

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + col0 <= + col1
----
15

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

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

query II rowsort
SELECT ALL 32, 34 AS col0 FROM tab2
----
32
34
32
34
32
34

onlyif mysql # DIV for integer division: 
query II rowsort label-1894
SELECT ALL + col2 AS col0, - col2 DIV - col0 - - 48 AS col1 FROM tab1
----
59
48
68
48
96
49

skipif mysql # not compatible
query II rowsort label-1894
SELECT ALL + col2 AS col0, - col2 / - col0 - - 48 AS col1 FROM tab1
----
59
48
68
48
96
49

query I rowsort
SELECT 21 * + col1 * + col1 FROM tab0
----
137781
21
9261

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 60 * 82 + col0 col0 FROM tab0 AS cor0
----
-427953
-477143
-73785

onlyif mysql # aggregate syntax: 
query II rowsort label-1898
SELECT - COUNT( * ) AS col1, 50 FROM tab0 AS cor0 WHERE NOT - 6 IS NULL
----
-3
50

skipif mysql # not compatible
query II rowsort label-1898
SELECT - COUNT ( * ) AS col1, 50 FROM tab0 AS cor0 WHERE NOT - 6 IS NULL
----
-3
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col2 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1900
SELECT ( CAST( + - ( + - COUNT( * ) ) AS SIGNED ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT 90 + - 38 + - MAX( 79 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-1901
SELECT 90 + - 38 + - MAX ( 79 ) FROM tab2
----
-27

query I rowsort
SELECT DISTINCT + col1 * - - col1 + + col0 FROM tab1 AS cor0
----
110
2300
247

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT ALL 92 + - 86 DIV + col0 FROM tab1 AS cor0
----
91
91
92

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL 92 + - 86 / + col0 FROM tab1 AS cor0
----
91
91
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 82 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 47 * + 40 FROM tab0
----
1880

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1906
SELECT ALL MAX( - col0 ) * + 99 col0, - SUM( + + col1 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
-4554
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1906
SELECT ALL MAX ( - col0 ) * + 99 col0, - SUM ( + + col1 ) * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
-4554
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - + col2 AND + - 73 + col1
----

query I rowsort
SELECT col2 / + 71 + col0 + + ( - 0 ) * - col2 AS col1 FROM tab0 WHERE NULL <= - col2
----

query I rowsort
SELECT DISTINCT col2 * + col1 * - col1 - - col2 AS col0 FROM tab2
----
-237120
-260304
-59800

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL + MAX( - - col0 ) * 32 FROM tab2
----
2400

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + MAX ( - - col0 ) * 32 FROM tab2
----
2400

query II rowsort
SELECT ALL + col2 * + 3 * - col0 AS col1, col0 AS col2 FROM tab1
----
-14688
51
-15045
85
-18564
91

query I rowsort
SELECT - 93 - - col2 + col2 * - col0 FROM tab2
----
-1128
-2613
-4385

query I rowsort
SELECT ALL 47 * - - col2 FROM tab0
----
2209
4653
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1914
SELECT DISTINCT + ( - 96 ) DIV COUNT( * ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-32
-3

skipif mysql # not compatible
query II rowsort label-1914
SELECT DISTINCT + ( - 96 ) / COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-32
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL - COUNT( ALL col2 ) FROM tab1 AS cor0 WHERE col0 * + 58 NOT BETWEEN NULL AND + col1
----
-3

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - COUNT ( ALL col2 ) FROM tab1 AS cor0 WHERE col0 * + 58 NOT BETWEEN NULL AND + col1
----
-3

query I rowsort
SELECT DISTINCT + col2 - + 64 - + + col0 AS col0 FROM tab0
----
-141
-32
-62

query II rowsort
SELECT ALL col2 AS col0, - 28 * - - col1 FROM tab2
----
23
-1428
40
-2156
58
-1876

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT DISTINCT + col2 DIV - 18 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + col2 / - 18 FROM tab0 AS cor0
----
-2
-5
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1919
SELECT ALL col1 + - CAST( NULL AS DECIMAL ) / + + 16 FROM tab2 AS cor0 WHERE NOT - 45 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL col1 + - CAST ( NULL AS REAL ) / + + 16 FROM tab2 AS cor0 WHERE NOT - 45 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT + + 70 AS col1 FROM tab1 AS cor0
----
70

query I rowsort
SELECT + + 10 * + col2 AS col1 FROM tab2 AS cor0
----
230
400
580

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1924
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ), - ( 14 ) AS col0, + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
-14
NULL

skipif mysql # not compatible
query III rowsort label-1924
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ), - ( 14 ) AS col0, + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL MAX( ALL - 70 ) FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL MAX ( ALL - 70 ) FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT - 79 * - - COUNT( * ) + 7 FROM tab2 WHERE NULL NOT IN ( + + col0 )
----
7

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT - 79 * - - COUNT ( * ) + 7 FROM tab2 WHERE NULL NOT IN ( + + col0 )
----
7

query I rowsort
SELECT DISTINCT 65 * - + col1 FROM tab1
----
-3055
-325
-910

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

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

query I rowsort
SELECT DISTINCT - 61 AS col0 FROM tab2 cor0
----
-61

query II rowsort
SELECT ALL col2, + col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT - + ( - - 89 ) DIV 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1931
SELECT - + ( - - 89 ) / 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT ALL 86 * 28 AS col1 FROM tab2
----
2408
2408
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL + COUNT( * ) + + + COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + COUNT ( * ) + + + COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 31
----

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

query I rowsort
SELECT DISTINCT 14 + - 54 AS col0 FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT + + COUNT( * ) * + SUM( + col1 ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT + + COUNT ( * ) * + SUM ( + col1 ) FROM tab2 AS cor0
----
585

query I rowsort
SELECT ALL + col0 + - + 42 AS col2 FROM tab2 AS cor0
----
22
33
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1940
SELECT + CAST( + + col1 AS SIGNED ) + col2 AS col0, - col1 - + - 1 FROM tab0 AS cor0
----
100
0
128
-80
31
-20

skipif mysql # not compatible
query II rowsort label-1940
SELECT + CAST ( + + col1 AS INTEGER ) + col2 AS col0, - col1 - + - 1 FROM tab0 AS cor0
----
100
0
128
-80
31
-20

query II rowsort
SELECT + col1 + + col2, col1 + + + 58 AS col0 FROM tab1
----
110
72
115
105
64
63

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

query II rowsort
SELECT - col2 AS col0, 79 + + col0 FROM tab0 WHERE col2 IS NOT NULL
----
-10
166
-47
94
-99
176

query I rowsort
SELECT DISTINCT + col0 * + 98 FROM tab0
----
1470
8526
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT COUNT( DISTINCT + + 85 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT COUNT ( DISTINCT + + 85 ) FROM tab2
----
1

query I rowsort
SELECT col1 * col1 * + + col1 AS col1 FROM tab0
----
1
531441
9261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT - CAST( NULL AS SIGNED ) - - ( - 94 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT - CAST ( NULL AS INTEGER ) - - ( - 94 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 - - col1 * + col0 FROM tab0 AS cor0
----
1298
180
1910

query II rowsort
SELECT 26 AS col1, - col2 + + col1 FROM tab1
----
26
-21
26
-54
26
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-1950
SELECT - col0 AS col2, + col1 DIV - 60 AS col2 FROM tab2
----
-46
0
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-1950
SELECT - col0 AS col2, + col1 / - 60 AS col2 FROM tab2
----
-46
0
-64
-1
-75
-1

query II rowsort
SELECT DISTINCT col1, ( col1 ) FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - col1 * - + 96 - - + col0 FROM tab0 AS cor0
----
193
2103
7791

onlyif mysql # DIV for integer division: 
query III rowsort label-1953
SELECT + 88 AS col0, + col2 + 75, ( - col0 ) DIV col1 * + col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to a7de2b4106651686cd78e718cad5a45f

skipif mysql # not compatible
query III rowsort label-1953
SELECT + 88 AS col0, + col2 + 75, ( - col0 ) / col1 * + col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to a7de2b4106651686cd78e718cad5a45f

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT - 18 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT - 18 / col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + + col2 * - 56 * col2 AS col1, + col0 + col1 FROM tab2 AS cor0
----
-188384
142
-29624
97
-89600
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1957
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 12 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 12 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 3 col0 FROM tab1
----
153
255
273

query I rowsort
SELECT DISTINCT 48 * + 13 FROM tab0
----
624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, 70 col2 FROM tab0
----
1
70
21
70
81
70

query III rowsort
SELECT * FROM tab2 WHERE col1 IS NOT NULL AND NOT ( ( + - 76 ) ) < NULL
----

query I rowsort
SELECT - 49 * - - col0 AS col0 FROM tab2
----
-2254
-3136
-3675

query II rowsort
SELECT ALL 38 AS col1, + col0 + 99 FROM tab0
----
38
114
38
186
38
196

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1966
SELECT ALL - col1 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-1966
SELECT ALL - col1 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query II rowsort
SELECT DISTINCT - col2 * col0 + col1 + - + ( col1 ) * - + col1, + col1 + + + col0 + col0 * + 43 AS col0 FROM tab2 AS cor0
----
1594
2075
206
3367
3446
2893

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 79 * + 52 + + col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 33 BETWEEN - - 67 AND + 79 + + col2 + - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 68 * - - 71 AS col1 FROM tab0
----
4828

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT + MIN( + 27 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT + MIN ( + 27 ) FROM tab0
----
27

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

query I rowsort
SELECT - col1 * - col2 * - col1 * - col0 AS col0 FROM tab0 cor0
----
383670
4625505
9603

query I rowsort
SELECT ALL 99 FROM tab2 AS cor0 WHERE + 35 * - col0 > NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 54 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-8
10
21

query I rowsort
SELECT ALL - col0 * + col0 + ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-2505
-7166
-8213

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT 66 - - COUNT( - 8 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT 66 - - COUNT ( - 8 ) FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT 28 - + + 23 + + 50 * MAX( col2 ) FROM tab0
----
4955

skipif mysql # not compatible
query I rowsort label-1981
SELECT 28 - + + 23 + + 50 * MAX ( col2 ) FROM tab0
----
4955

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

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

query I rowsort
SELECT DISTINCT + 55 - - + col0 AS col2 FROM tab1
----
106
140
146

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

query II rowsort
SELECT DISTINCT + col1 AS col1, 23 FROM tab2
----
51
23
67
23
77
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ( + MAX( - 34 ) ) + - COUNT( * ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-1986
SELECT ( + MAX ( - 34 ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT ALL + + col0 DIV + + 52 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + + col0 / + + 52 AS col1 FROM tab1 AS cor0
----
0
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT SUM( 27 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1989
SELECT SUM ( 27 ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE 45 * + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE 45 * + col1 = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 = - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT SUM( ALL 67 ) FROM tab1 WHERE NOT - 4 IS NULL
----
201

skipif mysql # not compatible
query I rowsort label-1993
SELECT SUM ( ALL 67 ) FROM tab1 WHERE NOT - 4 IS NULL
----
201

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT - COUNT( * ) - + COUNT( * ) * 59 AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-1995
SELECT - COUNT ( * ) - + COUNT ( * ) * 59 AS col1 FROM tab2
----
-180

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 17 - col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * - col0 AS col2 FROM tab0 WHERE NOT 77 IS NULL
----
-225
-7569
-9409

query I rowsort
SELECT 26 * 5 - - col2 FROM tab1
----
189
198
226

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

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

query I rowsort
SELECT + col0 * 15 AS col0 FROM tab0
----
1305
1455
225

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col1 FROM tab1
----
-73
-73
-73

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

skipif mysql # not compatible
query I rowsort label-2003
SELECT + col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND col0 / col1 + - CAST ( col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * col1 + - col1 = col1 / - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2005
SELECT DISTINCT CAST( AVG ( - 81 ) AS SIGNED ) + COUNT( ALL - col2 + col2 * + 15 ) AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT CAST ( AVG ( - 81 ) AS INTEGER ) + COUNT ( ALL - col2 + col2 * + 15 ) AS col1 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT ALL 78 + - col1 FROM tab1 AS cor0
----
31
64
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT + 58 * + col2 FROM tab0 AS cor0
----
2726
5742
580

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

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

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

query I rowsort
SELECT - + 97 + - 92 * 8 FROM tab1 AS cor0
----
-833
-833
-833

query I rowsort
SELECT DISTINCT + - 10 - col0 FROM tab2 AS cor0
----
-56
-74
-85

query I rowsort
SELECT ALL col0 + + 55 FROM tab2 AS cor0
----
101
119
130

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT - - CAST( - col2 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-2015
SELECT - - CAST ( - col2 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT - col1 * + ( + ( col1 ) ) - + col1 AS col0 FROM tab0 AS cor0
----
-2
-462
-6642

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + 61 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + col0 - + 79 AS col1 FROM tab1
----
-28
12
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT - SUM( - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2022
SELECT - SUM ( - col0 ) FROM tab2 AS cor0
----
185

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

skipif mysql # not compatible
query I rowsort label-2023
SELECT + col2 / 63 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 97 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
1470
8526
9506

query I rowsort
SELECT 68 * ( - col1 ) FROM tab1 AS cor0
----
-3196
-340
-952

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - - COUNT( * ) * - ( MAX( - 67 ) + + 42 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
225

skipif mysql # not compatible
query I rowsort label-2029
SELECT - - COUNT ( * ) * - ( MAX ( - 67 ) + + 42 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
225

query I rowsort
SELECT ( - 13 ) * 55 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 63dceb9679e99dec8305461bd2cc585a

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT + COUNT( * ) * - SUM( col1 ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT + COUNT ( * ) * - SUM ( col1 ) FROM tab1 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT ALL - 43 DIV ( - ( col2 ) ) FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - 43 / ( - ( col2 ) ) FROM tab0 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT + 28 * - + col0 AS col2 FROM tab2 AS cor0
----
-1288
-1792
-2100

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

skipif mysql # not compatible
query I rowsort label-2034
SELECT + 97 * COUNT ( - col1 ) FROM tab1 AS cor0
----
291

query I rowsort
SELECT DISTINCT 74 * + 33 * - 10 + 23 FROM tab1 AS cor0
----
-24397

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT 38 AS col2, col2 + + - 29 FROM tab0 AS cor0
----
38
-19
38
18
38
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL - CAST( - - 70 AS SIGNED ) col1 FROM tab2 cor0
----
-70
-70
-70

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2041
SELECT col2 * + col1 AS col0, - 93 + + col0 DIV ( - col1 * - col0 + 5 ) FROM tab2
----
1173
-93
3080
-93
3886
-93

skipif mysql # not compatible
query II rowsort label-2041
SELECT col2 * + col1 AS col0, - 93 + + col0 / ( - col1 * - col0 + 5 ) FROM tab2
----
1173
-93
3080
-93
3886
-93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + - 84 + col1 col0 FROM tab0
----
-27
-7
53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT ALL + col2 * ( - col1 ) DIV + 97 FROM tab0
----
-1
-2
-39

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL + col2 * ( - col1 ) / + 97 FROM tab0
----
-1
-2
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT ALL col1 + + col0 + + CAST( - - 17 AS SIGNED ) AS col1 FROM tab2
----
114
158
159

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL col1 + + col0 + + CAST ( - - 17 AS INTEGER ) AS col1 FROM tab2
----
114
158
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2047
SELECT ALL * FROM tab1 WHERE - - col0 * + col1 * + 49 NOT BETWEEN ( - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2047
SELECT ALL * FROM tab1 WHERE - - col0 * + col1 * + 49 NOT BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT - 42 + + - COUNT( ALL + + CAST( NULL AS SIGNED ) ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2048
SELECT - 42 + + - COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT DISTINCT col1 + - col0 DIV + - 94 + + col2 + + col1 AS col1 FROM tab0
----
102
209
52

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT col1 + - col0 / + - 94 + + col2 + + col1 AS col1 FROM tab0
----
102
209
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT 71 DIV 52 DIV + col0 + - col1 + + 81 FROM tab1
----
34
67
76

skipif mysql # not compatible
query I rowsort label-2050
SELECT 71 / 52 / + col0 + - col1 + + 81 FROM tab1
----
34
67
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2051
SELECT col1 * - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT col1 * - - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 7 * + 21 FROM tab2
----
147
147
147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 59 + 99 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 59 + 99 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col1 + - 27 + - 88, + col2 FROM tab2 AS cor0
----
-166
23
-182
58
-192
40

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

query I rowsort
SELECT 16 * + 72 AS col2 FROM tab0 AS cor0
----
1152
1152
1152

query I rowsort
SELECT DISTINCT col2 + - col0 * - + 18 * 22 - col0 - + col0 * - ( col1 + col2 ) AS col0 FROM tab2 AS cor0
----
21597
32808
39058

query I rowsort
SELECT DISTINCT - 28 + 55 * 97 * + 43 + 47 FROM tab2
----
229424

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL MAX( + - ( - col0 ) ) * - 28 FROM tab1
----
-2548

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL MAX ( + - ( - col0 ) ) * - 28 FROM tab1
----
-2548

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2062
SELECT COUNT( * ), 42 AS col0 FROM tab2
----
3
42

skipif mysql # not compatible
query II rowsort label-2062
SELECT COUNT ( * ), 42 AS col0 FROM tab2
----
3
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2063
SELECT ALL col0 / - col2 FROM tab2 WHERE ( - 1 * + CAST( NULL AS DECIMAL ) * + col1 / - + 9 * - 8 + + 79 ) NOT IN ( 5 )
----

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL col0 / - col2 FROM tab2 WHERE ( - 1 * + CAST ( NULL AS REAL ) * + col1 / - + 9 * - 8 + + 79 ) NOT IN ( 5 )
----

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

query II rowsort
SELECT col2 AS col1, 12 * col1 FROM tab1
----
59
60
68
564
96
168

query II rowsort
SELECT DISTINCT col2, - col0 + - col1 AS col2 FROM tab1
----
59
-90
68
-138
96
-65

query I rowsort
SELECT DISTINCT + ( 37 ) AS col2 FROM tab0 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2068
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED ) * - col0 / - 82
----

skipif mysql # not compatible
query III rowsort label-2068
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER ) * - col0 / - 82
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2069
SELECT COUNT( * ) DIV + COUNT( * ) col2 FROM tab0
----
1

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

query I rowsort
SELECT - col2 * - col1 FROM tab2 WHERE NOT NULL BETWEEN - 67 AND + col2 * - + 9 + + 63
----

query I rowsort
SELECT ALL + 17 * - - 31 AS col2 FROM tab2
----
527
527
527

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - col2 * + col2 + col2 * 72 + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2076
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2076
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + CAST ( col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + ( col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL + COUNT( * ) * CAST( + 53 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( - col2 ) * - col1 * - col0 * - CAST( - - col2 AS SIGNED ) IS NULL
----
159

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + COUNT ( * ) * CAST ( + 53 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( - col2 ) * - col1 * - col0 * - CAST ( - - col2 AS INTEGER ) IS NULL
----
159

query I rowsort
SELECT - col2 / + col1 AS col0 FROM tab1 AS cor0 WHERE ( - + col1 BETWEEN NULL AND - col0 + + - col2 + 35 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL ( - COUNT( + 32 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL ( - COUNT ( + 32 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT 8 + - 70 * + + col2 AS col2 FROM tab2
----
-1602
-2792
-4052

query I rowsort
SELECT - 80 + - col2 AS col1 FROM tab1
----
-139
-148
-176

query II rowsort
SELECT DISTINCT col1 AS col0, 55 AS col2 FROM tab0
----
1
55
21
55
81
55

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

query I rowsort
SELECT + 47 + + - col0 FROM tab1
----
-38
-4
-44

query I rowsort
SELECT ALL col1 * - 49 + - col1 AS col1 FROM tab0
----
-1050
-4050
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - - ( col2 ), col1 col0 FROM tab1
----
1344
14
295
5
3196
47

query I rowsort
SELECT - 86 AS col1 FROM tab1 WHERE - col2 <= + col1
----
-86
-86
-86

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 78 ) <= col2
----
97
1
99

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

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN col0 AND + 55
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL <> ( - + 98 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 70 + + col1 - + col0 AND ( + 30 / - col1 / col2 + col0 - + 62 - 23 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 = ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT + + 42 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2096
SELECT + + 42 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 54 - + ( - col1 ) AS col0 FROM tab2
----
-3
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + - 52 * 99 + + SUM( DISTINCT 92 ) FROM tab2 AS cor0
----
-5056

skipif mysql # not compatible
query I rowsort label-2098
SELECT + - 52 * 99 + + SUM ( DISTINCT 92 ) FROM tab2 AS cor0
----
-5056

query I rowsort
SELECT DISTINCT + + col1 + - ( + - col1 ) FROM tab2 AS cor0
----
102
134
154

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

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

query I rowsort
SELECT DISTINCT col1 * - - ( + 68 ) * - col1 FROM tab2
----
-176868
-305252
-403172

query I rowsort
SELECT ALL 89 * col0 FROM tab2
----
4094
5696
6675

onlyif mysql # DIV for integer division: 
query I rowsort label-2103
SELECT DISTINCT - col0 DIV + - col1 col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2103
SELECT DISTINCT - col0 / + - col1 col1 FROM tab1
----
1
17
3

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

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

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

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

query I rowsort
SELECT - ( ( - 70 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + 65 * 21 BETWEEN 97 - + col1 AND ( - 38 + 38 ) ) )
----
70
70
70

query II rowsort
SELECT ALL col0 * + col0 AS col0, col0 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN ( + 15 + 42 * - - col2 * col0 ) AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> - 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * - + col1 * - 20 col0 FROM tab0
----
18060
69660
860

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col2, col2 + col2, - - col2 + + - col2 + 42 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2112
SELECT DISTINCT - - COUNT( - + CAST( NULL AS DECIMAL ) ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2112
SELECT DISTINCT - - COUNT ( - + CAST ( NULL AS REAL ) ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + - 92 * - + col1 - - col1 + ( col2 ) * + col1 + + + 32 AS col1 FROM tab1 AS cor0
----
2678
7599
792

query I rowsort
SELECT DISTINCT - col0 * - 33 + + - 20 FROM tab0 AS cor0
----
2851
3181
475

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 20 col1, col0 + - 51 + - + 93 FROM tab2 cor0
----
-20
-69
-20
-80
-20
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 + col0 col2 FROM tab2
----
108
126
137

query II rowsort
SELECT - 64 * 40, - col0 * - col0 * - col1 AS col2 FROM tab1
----
-2560
-36125
-2560
-36414
-2560
-389207

query I rowsort
SELECT DISTINCT + 11 * - 65 * + col0 FROM tab0
----
-10725
-62205
-69355

query I rowsort
SELECT + 95 * - 65 * - 45 FROM tab2
----
277875
277875
277875

query I rowsort
SELECT DISTINCT 62 + + 0 FROM tab1
----
62

query I rowsort
SELECT col1 + + 96 AS col0 FROM tab1
----
101
110
143

query I rowsort
SELECT - col2 + 97 - + col0 FROM tab1
----
-47
-50
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT - COUNT( + col1 ) + - - 11 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2125
SELECT - COUNT ( + col1 ) + - - 11 FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE + col2 <> 56
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE + col2 <> 56
----
-23
-40
-58

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT - 9 + - + 6 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT COUNT( col0 ) - - COUNT( * ) * + + 65 + + 2 FROM tab2 AS cor0
----
200

skipif mysql # not compatible
query I rowsort label-2128
SELECT COUNT ( col0 ) - - COUNT ( * ) * + + 65 + + 2 FROM tab2 AS cor0
----
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 74 * + col1 col2 FROM tab1 AS cor0
----
-1036
-3478
-370

query I rowsort
SELECT + - 95 * 84 AS col2 FROM tab0 cor0
----
-7980
-7980
-7980

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

query II rowsort
SELECT ALL + + 16, + col0 FROM tab2 cor0
----
16
46
16
64
16
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2133
SELECT col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2133
SELECT col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

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

skipif mysql # not compatible
query III rowsort label-2134
SELECT * FROM tab0 WHERE NOT + col1 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT SUM( - 81 ) AS col2 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-2135
SELECT SUM ( - 81 ) AS col2 FROM tab1
----
-243

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

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

query I rowsort
SELECT ALL ( - - ( - col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT + SUM( + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2140
SELECT + SUM ( + col0 ) AS col1 FROM tab2
----
185

query I rowsort
SELECT DISTINCT ( - - 79 ) AS col2 FROM tab1
----
79

query I rowsort
SELECT DISTINCT - - 60 FROM tab1 WHERE NULL IS NULL
----
60

query I rowsort
SELECT col0 * - 53 AS col0 FROM tab0
----
-4611
-5141
-795

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 / - col2 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + + 43 FROM tab2 AS cor0
----
-24
-34
-8

query I rowsort
SELECT DISTINCT - 47 + + col1 FROM tab2 cor0
----
20
30
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2150
SELECT DISTINCT - - ( - ( + + col1 ) ) + + + col2 DIV + col0, + CAST( + ( + - col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL - MIN( - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL - MIN ( - col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT + - col1 + + 70 AS col0 FROM tab1 AS cor0
----
23
56
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL + + ( + - 38 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + + ( + - 38 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT MIN( DISTINCT - col1 ) + + - 4 AS col0 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2155
SELECT MIN ( DISTINCT - col1 ) + + - 4 AS col0 FROM tab0 AS cor0
----
-85

query I rowsort
SELECT + ( - - 87 ) + + 46 AS col1 FROM tab0
----
133
133
133

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 97 * - col1 + - col2 / + + col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2159
SELECT + ( - COUNT( + 26 ) ) + + COUNT( * ) DIV + + 61 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2159
SELECT + ( - COUNT ( + 26 ) ) + + COUNT ( * ) / + + 61 AS col2 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 NOT BETWEEN + - col1 AND NULL
----

query II rowsort
SELECT + col1, 30 * - col1 FROM tab1
----
14
-420
47
-1410
5
-150

query I rowsort
SELECT 43 + + col2 FROM tab1 WHERE + - col1 IS NOT NULL
----
102
111
139

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

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

query I rowsort
SELECT 61 - - + 78 AS col2 FROM tab2
----
139
139
139

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - SUM( ALL + col0 ) * + COUNT( * ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-2169
SELECT - SUM ( ALL + col0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-597

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 > - col2
----

query I rowsort
SELECT DISTINCT - + 3 * col0 + - + col2 - + 87 FROM tab2 AS cor0
----
-248
-319
-370

query I rowsort
SELECT - + 10 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + + 75 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2173
SELECT * FROM tab1 AS cor0 WHERE NOT - 42 + + + 69 + + + col2 <= - CAST( - col2 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2173
SELECT * FROM tab1 AS cor0 WHERE NOT - 42 + + + 69 + + + col2 <= - CAST ( - col2 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 12 * - ( - ( - - col2 ) ) * - col1 AS col0 FROM tab1 cor0
----
16128
3540
38352

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT NULL <> + col1
----

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

query I rowsort
SELECT - 69 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 73
----

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

query II rowsort
SELECT ALL col0, - 87 AS col1 FROM tab1 cor0 WHERE - col2 * + + 66 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT 3 + - + 60 + col1 AS col1 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL - 37 * + 66 + - MAX( DISTINCT - - col2 ) + + - ( 38 ) FROM tab2 AS cor0
----
-2538

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL - 37 * + 66 + - MAX ( DISTINCT - - col2 ) + + - ( 38 ) FROM tab2 AS cor0
----
-2538

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL + MAX( DISTINCT - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab0
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL SUM( ALL col1 ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2188
SELECT ALL SUM ( ALL col1 ) col2 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2189
SELECT ALL + col2 col1, + 81 FROM tab1 WHERE NOT + + col2 NOT IN ( 75 * - CAST( NULL AS SIGNED ) - - col1, 82 * + + 26, col2 )
----
59
81
68
81
96
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2189
SELECT ALL + col2 col1, + 81 FROM tab1 WHERE NOT + + col2 NOT IN ( 75 * - CAST ( NULL AS INTEGER ) - - col1, 82 * + + 26, col2 )
----
59
81
68
81
96
81

query I rowsort
SELECT ALL + 26 * + col1 FROM tab2 cor0
----
1326
1742
2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2191
SELECT - 7 DIV - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2191
SELECT - 7 / - COUNT ( * ) FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL + SUM( - 2 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + SUM ( - 2 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - - 66 AND + 87
----

query I rowsort
SELECT ALL 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL, tab2 AS cor2
----
243 values hashing to 601b44cd19062deac6c5da746b93a1f9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 53 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL + + col2 * - 13 FROM tab0 AS cor0
----
-1287
-130
-611

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

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

query II rowsort
SELECT col0 AS col0, col1 * + col2 + - + col0 + + col0 FROM tab0 AS cor0
----
15
3807
87
210
97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2202
SELECT col2 DIV - col1 AS col1, - ( + - col0 ) - + col2 AS col0 FROM tab2
----
0
17
0
23
0
24

skipif mysql # not compatible
query II rowsort label-2202
SELECT col2 / - col1 AS col1, - ( + - col0 ) - + col2 AS col0 FROM tab2
----
0
17
0
23
0
24

query I rowsort
SELECT 17 * col1 AS col0 FROM tab0
----
1377
17
357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2204
SELECT MIN( DISTINCT + 71 ) DIV + COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2204
SELECT MIN ( DISTINCT + 71 ) / + COUNT ( * ) FROM tab2
----
23

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

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

query I rowsort
SELECT DISTINCT - + ( 31 ) + - - col2 + col0 + col1 AS col1 FROM tab1 AS cor0
----
118
130
175

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

query I rowsort
SELECT + 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

query I rowsort
SELECT ALL + 97 * + 95 FROM tab0 cor0
----
9215
9215
9215

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT ALL 62 DIV - - 70 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL 62 / - - 70 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL COUNT( * ) + - ( + 18 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL COUNT ( * ) + - ( + 18 ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT - - 76 * + 43 + - + 43 + + + col2 + 64 - + 19 * - 49 AS col2 FROM tab0 AS cor0
----
4230
4267
4319

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

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

query I rowsort
SELECT - 47 + - col1 AS col1 FROM tab2 AS cor0
----
-114
-124
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE - 30 / + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE - 30 / + col1 IS NULL
----
0

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

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

query I rowsort
SELECT 39 * + - col1 FROM tab0
----
-3159
-39
-819

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT DISTINCT - col1 DIV 86 - - col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT - col1 / 86 - - col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, - col0 col1 FROM tab1 WHERE NULL <= - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) NOT IN ( 84 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2224
SELECT ( col0 ), - CAST( NULL AS SIGNED ) / col1 + + 11 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2224
SELECT ( col0 ), - CAST ( NULL AS INTEGER ) / col1 + + 11 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT - - 94 AS col0 FROM tab2 AS cor0
----
94

query I rowsort
SELECT DISTINCT + ( 33 ) + - col0 AS col1 FROM tab2 WHERE 86 >= col2
----
-13
-31
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT DISTINCT - CAST( 78 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT - CAST ( 78 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col1 FROM tab1 AS cor0
----
40

query I rowsort
SELECT col1 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * + 22 * col1, - 57 + - 34 - + - col1, + 44, - col0 + - + ( + 51 ) )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2235
SELECT DISTINCT 8 col0, - COUNT( * ) + + 40 DIV COUNT( * ) + + COUNT( * ) FROM tab2
----
8
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2235
SELECT DISTINCT 8 col0, - COUNT ( * ) + + 40 / COUNT ( * ) + + COUNT ( * ) FROM tab2
----
8
13

query II rowsort
SELECT DISTINCT 19, + col0 + col0 AS col0 FROM tab1
----
19
102
19
170
19
182

query I rowsort
SELECT ALL ( 12 ) AS col2 FROM tab1
----
12
12
12

query II rowsort
SELECT ALL col2 AS col1, + ( col2 ) * + col1 AS col0 FROM tab0
----
10
210
47
3807
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab1 WHERE NOT - 18 * col1 BETWEEN + 87 AND - col0
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 * + col0 * + col2 AS col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT + col0 * ( - col1 ) * + col0 - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2241
SELECT + col0 * ( - col1 ) * + col0 - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col2 ) + - + 92 FROM tab0 AS cor0
----
-102
-139
-191

query I rowsort
SELECT - 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT col1 DIV + col0 + col0 AS col2, + 87 - - col1 + - 73 FROM tab1
----
51
28
85
19
91
61

skipif mysql # not compatible
query II rowsort label-2244
SELECT col1 / + col0 + col0 AS col2, + 87 - - col1 + - 73 FROM tab1
----
51
28
85
19
91
61

query I rowsort
SELECT 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query III rowsort
SELECT * FROM tab2 WHERE - - 82 * + col0 * + 60 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2247
SELECT DISTINCT - SUM( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT - 12 + 8 > - 68 OR NOT + ( + ( col0 ) ) > - + col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT - 12 + 8 > - 68 OR NOT + ( + ( col0 ) ) > - + col0 * col2
----
NULL

query I rowsort
SELECT + 54 * col2 * + - 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT + + SUM( DISTINCT - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2249
SELECT + + SUM ( DISTINCT - col1 ) FROM tab1 cor0
----
-66

query I rowsort
SELECT DISTINCT + + 31 FROM tab1 cor0
----
31

query I rowsort
SELECT DISTINCT + 81 + + 70 * - col2 AS col2 FROM tab2 cor0
----
-1529
-2719
-3979

query I rowsort
SELECT DISTINCT col1 + - col2 * + - col2 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT ALL - - COUNT( * ) * + AVG ( col2 ) + + 61 FROM tab2 AS cor0 WHERE - col2 / + col1 * - 55 * 41 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - - COUNT ( * ) * + AVG ( col2 ) + + 61 FROM tab2 AS cor0 WHERE - col2 / + col1 * - 55 * 41 IS NULL
----
NULL

query I rowsort
SELECT ALL - 52 + - col0 FROM tab1 AS cor0
----
-103
-137
-143

query I rowsort
SELECT DISTINCT - 12 + col2 AS col2 FROM tab2 AS cor0
----
11
28
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + col2 <> - 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - - col0
----

query I rowsort
SELECT + 43 + col0 FROM tab1
----
128
134
94

query I rowsort
SELECT ALL - col2 - 2 AS col0 FROM tab2
----
-25
-42
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT DISTINCT - col1 DIV 28 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - col1 / 28 AS col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT + 10 + COUNT( * ) AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-2261
SELECT + 10 + COUNT ( * ) AS col1 FROM tab1
----
13

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 >= NULL AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN + + 52 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + - col0 + + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 <= NULL
----
0

query II rowsort
SELECT col2 * + - ( - + col0 ) AS col2, 3 + + + 33 FROM tab1
----
4896
36
5015
36
6188
36

query II rowsort
SELECT + - col0, + col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT DISTINCT - 54 AS col1, COUNT( * ) FROM tab0 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-2268
SELECT DISTINCT - 54 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-54
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT DISTINCT 95 DIV col2 AS col0 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT 95 / col2 AS col0 FROM tab0
----
0
2
9

query I rowsort
SELECT - ( + 83 ) FROM tab2 cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT DISTINCT - col0 * CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - col0 * CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 <> col1
----

query I rowsort
SELECT col2 * - 44 FROM tab2 cor0
----
-1012
-1760
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT COUNT( * ) + + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2274
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col2 + - 57 FROM tab2
----
-17
-34
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 33 col2 FROM tab2
----
-56
-73
-91

query I rowsort
SELECT + col0 + + 43 FROM tab2
----
107
118
89

query I rowsort
SELECT ALL + 94 + 17 + col2 * + + 66 FROM tab2 AS cor0
----
1629
2751
3939

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT DISTINCT + COUNT( - col1 ) * - + COUNT( * ) AS col1, 91 FROM tab1 AS cor0
----
-9
91

skipif mysql # not compatible
query II rowsort label-2279
SELECT DISTINCT + COUNT ( - col1 ) * - + COUNT ( * ) AS col1, 91 FROM tab1 AS cor0
----
-9
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT SUM( - + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2280
SELECT SUM ( - + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT COUNT( * ) + + COUNT( DISTINCT - 63 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT COUNT ( * ) + + COUNT ( DISTINCT - 63 ) FROM tab1 AS cor0
----
4

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col2 - + + ( col2 ) AS col1 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT + col2 * + + col2 FROM tab0 WHERE col1 IS NOT NULL
----
100
2209
9801

query I rowsort
SELECT col0 + - + 89 FROM tab2 AS cor0
----
-14
-25
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT - COUNT( DISTINCT col0 ) + - 36 AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2286
SELECT - COUNT ( DISTINCT col0 ) + - 36 AS col0 FROM tab1 AS cor0
----
-39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - - 20 ) - col2 IS NULL )
----

query I rowsort
SELECT col1 + + - col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL + - col1 + - 10 FROM tab0 AS cor0
----
-11
-31
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT - MIN( col2 ) * + COUNT( * ) * - + COUNT( * ) col0 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2290
SELECT - MIN ( col2 ) * + COUNT ( * ) * - + COUNT ( * ) col0 FROM tab2 AS cor0
----
207

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 = - col0 / + + 74 + + 64 - + 95 * + + 51 * + col0 + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2292
SELECT + COUNT( * ), CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2292
SELECT + COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT - col1 AS col1, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL + 40 + - COUNT( * ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + 40 + - COUNT ( * ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT ALL + 61 - col2 * + 36 AS col0 FROM tab1 AS cor0
----
-2063
-2387
-3395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2296
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) / - + 97 FROM tab1 WHERE - 3 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) / - + 97 FROM tab1 WHERE - 3 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL - SUM( - 24 ) * + + 52 AS col0 FROM tab1
----
3744

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - SUM ( - 24 ) * + + 52 AS col0 FROM tab1
----
3744

onlyif mysql # aggregate syntax: 
query II rowsort label-2298
SELECT COUNT( ALL + col1 ), + 9 AS col1 FROM tab2
----
3
9

skipif mysql # not compatible
query II rowsort label-2298
SELECT COUNT ( ALL + col1 ), + 9 AS col1 FROM tab2
----
3
9

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * + - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2300
SELECT ALL ( 52 ) DIV - - COUNT( * ) col0 FROM tab2
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2300
SELECT ALL ( 52 ) / - - COUNT ( * ) col0 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT + MIN( ALL + + col2 ) * - COUNT( * ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + MIN ( ALL + + col2 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL col1 * - - col2 * + ( + col2 ) + col0 FROM tab1 AS cor0
----
129075
17490
217419

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2304
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1, col1 / + CAST( 68 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2304
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1, col1 / + CAST ( 68 AS INTEGER ) )
----

query I rowsort
SELECT - col2 * - - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2307
SELECT - - CAST( NULL AS SIGNED ), - 92 + + + col1 AS col1 FROM tab2 AS cor0
----
NULL
-15
NULL
-25
NULL
-41

skipif mysql # not compatible
query II rowsort label-2307
SELECT - - CAST ( NULL AS INTEGER ), - 92 + + + col1 AS col1 FROM tab2 AS cor0
----
NULL
-15
NULL
-25
NULL
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT - col1 AS col2 FROM tab1 cor0 WHERE NOT + ( + - 28 ) / + CAST( + 4 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-2308
SELECT - col1 AS col2 FROM tab1 cor0 WHERE NOT + ( + - 28 ) / + CAST ( + 4 AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL + col0 + - 53 FROM tab0 cor0
----
-38
34
44

onlyif mysql # DIV for integer division: 
query II rowsort label-2310
SELECT DISTINCT + col2 DIV + col0 + + + col2 AS col1, 4 FROM tab2 AS cor0
----
23
4
40
4
58
4

skipif mysql # not compatible
query II rowsort label-2310
SELECT DISTINCT + col2 / + col0 + + + col2 AS col1, 4 FROM tab2 AS cor0
----
23
4
40
4
58
4

query I rowsort
SELECT col2 * - 3 FROM tab0 AS cor0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - ( - MAX( + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2312
SELECT - ( - MAX ( + col2 ) ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2314
SELECT - col1 FROM tab0 WHERE + 15 NOT IN ( - 16, CAST( + col1 AS DECIMAL ) * - col0 )
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2314
SELECT - col1 FROM tab0 WHERE + 15 NOT IN ( - 16, CAST ( + col1 AS REAL ) * - col0 )
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT - col1 DIV + - 76 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2315
SELECT - col1 / + - 76 AS col2 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE - col2 > + 11 * + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2317
SELECT + CAST( NULL AS DECIMAL ) + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT + CAST ( NULL AS REAL ) + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT + 96 + + - ( - 24 ) FROM tab1 WHERE - + 74 <> - CAST( col0 AS SIGNED )
----
120
120
120

skipif mysql # not compatible
query I rowsort label-2318
SELECT + 96 + + - ( - 24 ) FROM tab1 WHERE - + 74 <> - CAST ( col0 AS INTEGER )
----
120
120
120

query I rowsort
SELECT 1 + - col0 + - + col2 FROM tab2
----
-103
-132
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - col2 col0, + col1 * 49 + - + col0 AS col0 FROM tab2 AS cor0
----
0
2453
0
3208
0
3709

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL + + COUNT( * ) + + + 29 AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + + COUNT ( * ) + + + 29 AS col2 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT - - col2 - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT - - col2 - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + 31 + - col0 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT + 30 FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT + COUNT( * ) * + 22 AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + COUNT ( * ) * + 22 AS col1 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT - + col2 * + col0 * CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2326
SELECT - + col2 * + col0 * CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2327
SELECT ALL 83 DIV - - COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL 83 / - - COUNT ( * ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT DISTINCT COUNT( * ) AS col0, 73 FROM tab0
----
3
73

skipif mysql # not compatible
query II rowsort label-2328
SELECT DISTINCT COUNT ( * ) AS col0, 73 FROM tab0
----
3
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT ALL + ( CAST( NULL AS SIGNED ) ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT col1 DIV - col1 + - + 91 col0 FROM tab2 cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2330
SELECT DISTINCT col1 / - col1 + - + 91 col0 FROM tab2 cor0
----
-92

query II rowsort
SELECT - 87, - 13 AS col0 FROM tab0 AS cor0
----
-87
-13
-87
-13
-87
-13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 7 * + col1 - + - col0 NOT IN ( - + col2 / - 22, - col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL COUNT( ALL col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL COUNT ( ALL col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT + - COUNT( * ) + 85 AS col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + - COUNT ( * ) + 85 AS col2 FROM tab2 AS cor0
----
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / + 9 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT DISTINCT + col2 * 9 DIV col0 col2 FROM tab0 AS cor0
----
1
28
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2336
SELECT DISTINCT + col2 * 9 / col0 col2 FROM tab0 AS cor0
----
1
28
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + - COUNT( + + 88 ) + - 93 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2337
SELECT + - COUNT ( + + 88 ) + - 93 FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL - ( + COUNT( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - ( + COUNT ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( + + ( - col2 ) + - + 15 * + 87, - 23 + - 24, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + + 63 FROM tab1
----
114
148
154

query I rowsort
SELECT 24 * col2 + - col2 FROM tab0
----
1081
2277
230

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT 73 + + - COUNT( DISTINCT + col0 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-2342
SELECT 73 + + - COUNT ( DISTINCT + col0 ) FROM tab2
----
70

query II rowsort
SELECT ALL + col1 AS col0, 78 * 81 AS col1 FROM tab0
----
1
6318
21
6318
81
6318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col0 col2 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2345
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) < - - col1 - - ( - - col1 )
----

skipif mysql # not compatible
query III rowsort label-2345
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) < - - col1 - - ( - - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 86 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT + - MIN( ALL - 49 ) AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2347
SELECT + - MIN ( ALL - 49 ) AS col0 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT - + MIN( DISTINCT + + 36 ) AS col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2348
SELECT - + MIN ( DISTINCT + + 36 ) AS col2 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT + + ( - col1 ) - + col1 * col0 * + + 99 + + - col0 AS col2 FROM tab2 AS cor0
----
-232351
-488013
-497617

query II rowsort
SELECT ALL + col1, - 66 FROM tab2 AS cor0
----
51
-66
67
-66
77
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT - col2 + + col1 DIV 61 col2 FROM tab0
----
-10
-46
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2351
SELECT - col2 + + col1 / 61 col2 FROM tab0
----
-10
-46
-99

query I rowsort
SELECT DISTINCT 74 - + col0 FROM tab1
----
-11
-17
23

query I rowsort
SELECT - col1 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT + COUNT( * ) + - 20 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-2354
SELECT + COUNT ( * ) + - 20 FROM tab1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2355
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2356
SELECT + col2 DIV + col0 AS col1, col2 * + + 88 FROM tab0 cor0
----
0
880
1
8712
3
4136

skipif mysql # not compatible
query II rowsort label-2356
SELECT + col2 / + col0 AS col1, col2 * + + 88 FROM tab0 cor0
----
0
880
1
8712
3
4136

query I rowsort
SELECT 84 * + col0 + + col1 FROM tab1 AS cor0
----
4298
7145
7691

query I rowsort
SELECT + col1 * - 70 FROM tab1
----
-3290
-350
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL CAST( 64 AS SIGNED ) FROM tab1
----
64
64
64

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL CAST ( 64 AS INTEGER ) FROM tab1
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL SUM( ALL - - 68 ) FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL SUM ( ALL - - 68 ) FROM tab0
----
204

query II rowsort
SELECT DISTINCT + 87, + col1 FROM tab0
----
87
1
87
21
87
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 BETWEEN + ( + ( col0 ) ) AND - + 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 58 - col0 + - 56 * - - 57 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT - 5 * + + 82 + SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 5 * + + 82 + SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2365
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col0, 21 + - col0 * - - col2 FROM tab1
----
-59
-4994
-68
-6167
-96
-4875

skipif mysql # not compatible
query II rowsort label-2365
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0, 21 + - col0 * - - col2 FROM tab1
----
-59
-4994
-68
-6167
-96
-4875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT 92 + - COUNT( * ) DIV 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
92

skipif mysql # not compatible
query I rowsort label-2366
SELECT 92 + - COUNT ( * ) / 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT MIN( ALL 94 ) AS col2 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-2367
SELECT MIN ( ALL 94 ) AS col2 FROM tab0 cor0
----
94

query II rowsort
SELECT + ( - col2 ), + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT + MIN( - col1 ) + - 54 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + MIN ( - col1 ) + - 54 FROM tab0 AS cor0
----
-135

query II rowsort
SELECT + 52 AS col1, col0 AS col0 FROM tab1 AS cor0
----
52
51
52
85
52
91

query I rowsort
SELECT DISTINCT - col1 + 98 AS col2 FROM tab1 cor0
----
51
84
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, - col0 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT DISTINCT + CAST( - 64 AS SIGNED ) * - col1 FROM tab2
----
3264
4288
4928

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + CAST ( - 64 AS INTEGER ) * - col1 FROM tab2
----
3264
4288
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT - col1 - + col2 DIV 1 + col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - col1 - + col2 / 1 + col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL + - 42 FROM tab2 WHERE NOT - - 73 IS NOT NULL
----

query I rowsort
SELECT + col1 + - col1 * - - col2 AS col0 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT - col1 - - + 49 AS col0 FROM tab1
----
2
35
44

query I rowsort
SELECT ALL - col0 + + - 31 AS col0 FROM tab2
----
-106
-77
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT DISTINCT COUNT( DISTINCT col1 ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2379
SELECT DISTINCT COUNT ( DISTINCT col1 ), COUNT ( * ) FROM tab0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + col0 ) > - - 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 + - 73 + - 26 AS col1 FROM tab2 AS cor0
----
-41
-59
-76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 54 + ( - 22 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + 83 col1, 63 FROM tab2 AS cor0
----
134
63
150
63
160
63

query I rowsort
SELECT ALL 57 - col0 + + col2 FROM tab2
----
33
34
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NOT ( NULL IS NOT NULL )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) + - - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) + - - col2 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT + + col1 DIV + + 65 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2390
SELECT + + col1 / + + 65 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2391
SELECT ALL + + col2 AS col0, + col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2391
SELECT ALL + + col2 AS col0, + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col2 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2393
SELECT + col0 DIV 57 AS col2, - col2 DIV col0 FROM tab1
----
0
-1
1
0
1
0

skipif mysql # not compatible
query II rowsort label-2393
SELECT + col0 / 57 AS col2, - col2 / col0 FROM tab1
----
0
-1
1
0
1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 * - - col2 * + - 18 * 39 * col2 / col2 BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL - 80 * col2 AS col0 FROM tab1
----
-4720
-5440
-7680

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT ALL col0 DIV - ( + col0 ) - 20 + + - ( + 58 ) + + 48 DIV - - 51 FROM tab0 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL col0 / - ( + col0 ) - 20 + + - ( + 58 ) + + 48 / - - 51 FROM tab0 AS cor0
----
-79
-79
-79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 0, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT col0 * + CAST( - ( + + 19 ) AS SIGNED ) AS col0 FROM tab2
----
-1216
-1425
-874

skipif mysql # not compatible
query I rowsort label-2399
SELECT col0 * + CAST ( - ( + + 19 ) AS INTEGER ) AS col0 FROM tab2
----
-1216
-1425
-874

query I rowsort
SELECT DISTINCT + 52 * 71 * - 28 AS col0 FROM tab2
----
-103376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - 67 FROM tab0
----
1
-67
21
-67
81
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT DISTINCT + 45 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + 45 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 * + + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + ( - - 85 ) * 81 + + col2 FROM tab0 cor0
----
6895
6932
6984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2405
SELECT COUNT( * ) + - CAST( + 97 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-2405
SELECT COUNT ( * ) + - CAST ( + 97 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT 64 DIV + - 30 + - col2 * col1 * - col0 - - - ( + - ( - col1 ) ) FROM tab1 AS cor0
----
25068
290787
68528

skipif mysql # not compatible
query I rowsort label-2406
SELECT 64 / + - 30 + - col2 * col1 * - col0 - - - ( + - ( - col1 ) ) FROM tab1 AS cor0
----
25068
290787
68528

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT - - 81 + MAX( + + col0 ) FROM tab2 cor0
----
156

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT - - 81 + MAX ( + + col0 ) FROM tab2 cor0
----
156

query I rowsort
SELECT - + col2 + - - col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + CAST( + + col2 AS SIGNED ) * col1 - - - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + CAST ( + + col2 AS INTEGER ) * col1 - - - col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT - CAST( NULL AS SIGNED ) + + ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT - CAST ( NULL AS INTEGER ) + + ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 19 + + col1 * - col2 FROM tab0 AS cor0
----
-191
-3788
-80

query II rowsort
SELECT col2 + + 44 + col2 AS col0, 72 AS col2 FROM tab2 cor0
----
124
72
160
72
90
72

query I rowsort
SELECT ALL col1 + - + col0 FROM tab1
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * - + 53 col2 FROM tab0
----
-3551

query I rowsort
SELECT ALL - col1 * - 25 AS col1 FROM tab2
----
1275
1675
1925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + 61 AS col1 FROM tab0
----
1
61
21
61
81
61

query III rowsort
SELECT * FROM tab2 WHERE + - 31 NOT IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT + col0 DIV - + 36 FROM tab0 WHERE + col2 + + - col2 IS NOT NULL
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT + col0 / - + 36 FROM tab0 WHERE + col2 + + - col2 IS NOT NULL
----
-2
-2
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2419
SELECT + COUNT( * ) * - 78 * + CAST( NULL AS DECIMAL ) * - 99 + + COUNT( * ) FROM tab1 AS cor0 WHERE col2 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT + COUNT ( * ) * - 78 * + CAST ( NULL AS REAL ) * - 99 + + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * + col1 IS NULL
----
NULL

query II rowsort
SELECT ALL - + col1 + + + col1, - col2 AS col2 FROM tab0 AS cor0
----
0
-10
0
-47
0
-99

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 83 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2422
SELECT DISTINCT + col0 DIV - col0 AS col1, + col2 DIV - - 21 + col0 FROM tab0
----
-1
101
-1
17
-1
87

skipif mysql # not compatible
query II rowsort label-2422
SELECT DISTINCT + col0 / - col0 AS col1, + col2 / - - 21 + col0 FROM tab0
----
-1
101
-1
17
-1
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ( COUNT( * ) ) * - + MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2424
SELECT ( COUNT ( * ) ) * - + MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT - + col0 * + - ( + + col1 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT + col2 DIV + 86 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT + col2 / + 86 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT + col0 DIV - 51 - - + 76 col2 FROM tab2 cor0
----
75
75
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2427
SELECT + col0 / - 51 - - + 76 col2 FROM tab2 cor0
----
75
75
76

query II rowsort
SELECT DISTINCT - - col0 AS col1, col0 * - 21 * - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
4725
87
158949
97
197589

query I rowsort
SELECT col0 * + 81 FROM tab1
----
4131
6885
7371

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + 80 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + + col2 + 57 FROM tab1 AS cor0
----
121
167
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - 51 * - ( + COUNT( * ) ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 51 * - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2433
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + + CAST( 14 AS SIGNED ) OR NOT 34 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2433
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + + CAST ( 14 AS INTEGER ) OR NOT 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT SUM( col2 ) + - 62 * 42 FROM tab2
----
-2483

skipif mysql # not compatible
query I rowsort label-2434
SELECT SUM ( col2 ) + - 62 * 42 FROM tab2
----
-2483

query I rowsort
SELECT ALL - col0 + + 10 * - col0 AS col1 FROM tab1
----
-1001
-561
-935

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE 18 - 87 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 - 91 FROM tab0 WHERE 44 NOT BETWEEN col2 AND NULL
----
-76
6

query I rowsort
SELECT 83 * - ( + 82 ) AS col1 FROM tab1
----
-6806
-6806
-6806

query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab2 WHERE + col0 * - 29 BETWEEN ( ( col2 ) ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 5 NOT IN ( + 48 )
----

query I rowsort
SELECT 99 * + col2 - col1 AS col1 FROM tab2
----
2226
3883
5675

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < + 68 * 48 + - 16
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 19 * + col0 > - col2 + + col2
----

query I rowsort
SELECT DISTINCT + col1 + 13 FROM tab1 WHERE NOT - col0 + - col0 <= ( - col0 / col2 - 95 )
----

query I rowsort
SELECT ALL col1 + + 47 * + col0 FROM tab0 WHERE NOT - col2 * 80 <> ( col1 )
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( + 42 ) <= + col2
----
46
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2447
SELECT ALL 68 * - CAST( COUNT( ALL - 32 ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT + ( col1 ) * - CAST( NULL AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL 68 * - CAST ( COUNT ( ALL - 32 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT + ( col1 ) * - CAST ( NULL AS REAL ) IS NULL
----
0

query I rowsort
SELECT col1 - ( + col2 ) FROM tab2
----
28
37
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - 58
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 * 49 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col0 AND 12 + + col2
----

query I rowsort
SELECT DISTINCT 47 * - 2 FROM tab0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2453
SELECT col0 DIV + 35 AS col0 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2453
SELECT col0 / + 35 AS col0 FROM tab1
----
1
2
2

query I rowsort
SELECT col0 + col1 FROM tab0 WHERE NOT col0 > ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT 61 DIV col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2455
SELECT 61 / col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2456
SELECT COUNT( * ) DIV - 69 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2456
SELECT COUNT ( * ) / - 69 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT col0 DIV 10 col0 FROM tab2
----
4
6
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2457
SELECT col0 / 10 col0 FROM tab2
----
4
6
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 + - col1 ) <= col1 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT col1 DIV - 93 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2459
SELECT col1 / - 93 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN col2 AND 46 * - 70
----

query I rowsort
SELECT col2 FROM tab1 WHERE NULL IN ( col2 * + 92 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2462
SELECT + col1 FROM tab2 WHERE ( col2 - CAST( - 71 AS DECIMAL ) ) NOT IN ( col1 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2462
SELECT + col1 FROM tab2 WHERE ( col2 - CAST ( - 71 AS REAL ) ) NOT IN ( col1 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT - CAST( NULL AS SIGNED ) * 37 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT - CAST ( NULL AS INTEGER ) * 37 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 * - col0 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT + 43 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( - 0 / col0 + - 76 * - 25 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2466
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + ( - col0 ) * + ( col1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT - CAST ( NULL AS REAL ) + + ( - col0 ) * + ( col1 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + 33 * COUNT( * ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-2467
SELECT + 33 * COUNT ( * ) AS col2 FROM tab1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT ALL 44 DIV - col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL 44 / - col2 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 7 col2 FROM tab0
----
-105
-609
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col2 FROM tab2 WHERE NOT 86 >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <> ( NULL )
----

query I rowsort
SELECT - 91 * - 50 AS col2 FROM tab2 AS cor0
----
4550
4550
4550

query I rowsort
SELECT ALL 52 AS col1 FROM tab0 cor0
----
52
52
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 11 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 52 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL ( 12 ) * + MAX( 14 * col0 ) AS col2 FROM tab0 AS cor0
----
16296

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL ( 12 ) * + MAX ( 14 * col0 ) AS col2 FROM tab0 AS cor0
----
16296

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN + col2 + + ( 79 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT - CAST( NULL AS SIGNED ) - + SUM( - 15 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT - CAST ( NULL AS INTEGER ) - + SUM ( - 15 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col2 FROM tab0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + SUM( DISTINCT + 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-2481
SELECT + SUM ( DISTINCT + 19 ) FROM tab0
----
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-2483
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT DISTINCT + 8 * col2 FROM tab1 AS cor0
----
472
544
768

query I rowsort
SELECT 99 + - col2 FROM tab1 cor0 WHERE NOT 92 + 41 * 39 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT col0 DIV 66 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2486
SELECT col0 / 66 AS col1 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT - MIN( col0 ) DIV + 55 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT - MIN ( col0 ) / + 55 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT - + COUNT( * ) * - 37 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2488
SELECT - + COUNT ( * ) * - 37 FROM tab1 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT DISTINCT + MIN( 98 ) FROM tab2 cor0
----
98

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT + MIN ( 98 ) FROM tab2 cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL - MAX( 53 ) AS col1 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL - MAX ( 53 ) AS col1 FROM tab0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT ( + 13 ) DIV 20 + col0 * - col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2491
SELECT ( + 13 ) / 20 + col0 * - col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE + col1 <> col2 - - col2 / - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 <> col2 - - col2 / - col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - ( + ( - col0 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2494
SELECT ALL - col1 DIV + col2 + 73 FROM tab2 AS cor0
----
71
72
72

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - col1 / + col2 + 73 FROM tab2 AS cor0
----
71
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( col0 ) >= ( - 52 )
----
3

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( col0 ) >= ( - 52 )
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 92
----

query I rowsort
SELECT DISTINCT + col0 + + 93 FROM tab0 AS cor0
----
108
180
190

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT - SUM( DISTINCT col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - 43 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT - SUM ( DISTINCT col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - 43 IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( col1 - col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col2 >= ( - 98 )
----
-3

skipif mysql # not compatible
query I rowsort label-2503
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 >= ( - 98 )
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + col2 * 63 IN ( 50 )
----

query I rowsort
SELECT ALL + 95 + - col0 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-145
-7561
-9411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2506
SELECT DISTINCT + + 71 * + COUNT( * ) - - COUNT( * ) + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT + + 71 * + COUNT ( * ) - - COUNT ( * ) + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col2 col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col0 + 64 AS col0 FROM tab0 AS cor0
----
-1151
-1763
-33

query I rowsort
SELECT ALL - col1 - col1 - - col2 * + col1 * col2 FROM tab0
----
178767
2058
9799

query I rowsort
SELECT ALL 96 * col0 AS col2 FROM tab2 WHERE - col2 NOT IN ( - 18 )
----
4416
6144
7200

query I rowsort
SELECT DISTINCT - col1 - - 96 AS col0 FROM tab2
----
19
29
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2513
SELECT ALL col2 * col2 * + 89 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL col2 * col2 * + 89 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT DISTINCT col1 * + - ( col0 ) - + CAST( + 16 AS SIGNED ) * - col1 col2 FROM tab1
----
-345
-3525
-490

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT DISTINCT col1 * + - ( col0 ) - + CAST ( + 16 AS INTEGER ) * - col1 col2 FROM tab1
----
-345
-3525
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT + MIN( col1 ) * + 95 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
95

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT + MIN ( col1 ) * + 95 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
95

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2517
SELECT + col2 * 56 * col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT + col2 * 56 * col1 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL <= NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2519
SELECT col1 * - 73 FROM tab2 AS cor0 WHERE NOT ( CAST( - col1 AS DECIMAL ) * + 95 ) IS NULL
----
-3723
-4891
-5621

skipif mysql # not compatible
query I rowsort label-2519
SELECT col1 * - 73 FROM tab2 AS cor0 WHERE NOT ( CAST ( - col1 AS REAL ) * + 95 ) IS NULL
----
-3723
-4891
-5621

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT ALL col1 DIV + 2 + - col0 FROM tab0 AS cor0
----
-77
-97
25

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL col1 / + 2 + - col0 FROM tab0 AS cor0
----
-77
-97
25

query I rowsort
SELECT - col0 * + - ( col2 ) * + col0 FROM tab2 cor0
----
163840
326250
48668

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 77 IN ( - + 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL - SUM( DISTINCT CAST( - 51 AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - SUM ( DISTINCT CAST ( - 51 AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
51

query I rowsort
SELECT + 94 FROM tab0 WHERE NOT - - col0 * - 36 + 74 + - col2 / + col1 - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 82 AS col1 FROM tab0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE 99 IS NOT NULL
----
-77
2
32

query I rowsort
SELECT DISTINCT - col2 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT ALL + 51 * - 12 DIV 2 + - col2 AS col0 FROM tab2 AS cor0
----
-329
-346
-364

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + 51 * - 12 / 2 + - col2 AS col0 FROM tab2 AS cor0
----
-329
-346
-364

query I rowsort
SELECT - 85 * col0 - 67 / col1 - + 0 AS col0 FROM tab1 AS cor0 WHERE NOT 22 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2530
SELECT DISTINCT COUNT( * ) DIV MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT COUNT ( * ) / MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 69 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + 45 + + + col0 * 83 col1 FROM tab2 AS cor0
----
1523
1847
3210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2533
SELECT DISTINCT - MIN( DISTINCT + - ( - col2 ) ) + + 94 * ( - SUM( - CAST( NULL AS SIGNED ) ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2533
SELECT DISTINCT - MIN ( DISTINCT + - ( - col2 ) ) + + 94 * ( - SUM ( - CAST ( NULL AS INTEGER ) ) ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2534
SELECT - - col0 DIV 54 DIV + + col0, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-2534
SELECT - - col0 / 54 / + + col0, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

query I rowsort
SELECT ALL + ( 38 ) AS col0 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + 58 FROM tab0 AS cor0 WHERE NOT - col0 + - col1 - - col1 / - - col1 IS NULL
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + - 62 * + COUNT( * ) AS col2 FROM tab0 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2537
SELECT + - 62 * + COUNT ( * ) AS col2 FROM tab0 cor0
----
-186

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND - 16
----
15
81
47

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab2 WHERE NOT NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - MIN( - - col1 ) * 43 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-2540
SELECT - MIN ( - - col1 ) * 43 FROM tab0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 94 col2, 54 + - col0 FROM tab0
----
-94
-33
-94
-43
-94
39

query I rowsort
SELECT + 31 * 98 + - 95 AS col0 FROM tab2 WHERE - - col0 < ( + 30 + + col1 )
----
2943
2943
2943

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT MIN( ( 32 ) ) col1 FROM tab0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2543
SELECT MIN ( ( 32 ) ) col1 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL - MAX( ALL col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL - MAX ( ALL col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-77

query I rowsort
SELECT DISTINCT - 18 * + + col1 AS col2 FROM tab2
----
-1206
-1386
-918

query I rowsort
SELECT - 47 + 52 AS col0 FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT DISTINCT + - COUNT( * ) AS col0, MIN( DISTINCT - ( - + col1 ) ) col0 FROM tab1 AS cor0
----
-3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2547
SELECT DISTINCT + - COUNT ( * ) AS col0, MIN ( DISTINCT - ( - + col1 ) ) col0 FROM tab1 AS cor0
----
-3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT MAX( DISTINCT + 73 ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2548
SELECT MAX ( DISTINCT + 73 ) AS col1 FROM tab0 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT - - MIN( + + col2 ) * - + 71 FROM tab2 AS cor0
----
-1633

skipif mysql # not compatible
query I rowsort label-2549
SELECT - - MIN ( + + col2 ) * - + 71 FROM tab2 AS cor0
----
-1633

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1 * - + col2
----

query I rowsort
SELECT ALL + ( + 15 ) FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2553
SELECT 20, - MIN( col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
20
-1

skipif mysql # not compatible
query II rowsort label-2553
SELECT 20, - MIN ( col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
20
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL COUNT( * ) * - + COUNT( * ) - - ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL COUNT ( * ) * - + COUNT ( * ) - - ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-6

query I rowsort
SELECT DISTINCT - + col2 + + 11 + + + 68 FROM tab2 AS cor0
----
21
39
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2556
SELECT ALL col0, - 8 / - CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT ALL col0, - 8 / - CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT col2 AS col2, 51 FROM tab0
----
10
51
47
51
99
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT MIN( 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT MIN ( 48 ) FROM tab0
----
48

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT ( - col2 * + 7 * ( + 29 ) ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2560
SELECT ALL + 9 AS col2, COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
9
0

skipif mysql # not compatible
query II rowsort label-2560
SELECT ALL + 9 AS col2, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
9
0

query I rowsort
SELECT ALL - 39 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 AS col2, 68 AS col2 FROM tab1
----
59
68
68
68
96
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT DISTINCT 98 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT 98 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT ALL - ( - + ( 55 ) ), - COUNT( * ) AS col0 FROM tab1 AS cor0
----
55
-3

skipif mysql # not compatible
query II rowsort label-2564
SELECT ALL - ( - + ( 55 ) ), - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
55
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, 72 FROM tab2 cor0
----
51
72
67
72
77
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - 2 * + + COUNT( - - 65 ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2566
SELECT - 2 * + + COUNT ( - - 65 ) AS col2 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 17 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 52 ) FROM tab1
----
52
52
52

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
42

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0, + 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2572
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2572
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 18 * 17 + + col2 FROM tab0 AS cor0
----
316
353
405

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 * - col1 + + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT - CAST( + 53 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL > + col2 * + 65
----

skipif mysql # not compatible
query I rowsort label-2575
SELECT - CAST ( + 53 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL > + col2 * + 65
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2577
SELECT 90 DIV + MAX( - - col1 ) + - MAX( DISTINCT + - col1 ) AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-2577
SELECT 90 / + MAX ( - - col1 ) + - MAX ( DISTINCT + - col1 ) AS col0 FROM tab2
----
52

query II rowsort
SELECT ALL + 0, + col0 AS col2 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT SUM( - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT SUM ( - col1 ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT col1 + - 1 AS col0 FROM tab0
----
0
20
80

query I rowsort
SELECT ALL 44 * 69 FROM tab1
----
3036
3036
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2582
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2583
SELECT ALL col2 * - CAST( - col0 AS SIGNED ) AS col2, CAST( + - col0 AS SIGNED ) AS col2 FROM tab0
----
705
-15
870
-87
9603
-97

skipif mysql # not compatible
query II rowsort label-2583
SELECT ALL col2 * - CAST ( - col0 AS INTEGER ) AS col2, CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0
----
705
-15
870
-87
9603
-97

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN 46 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - - 94 + 63, - col0 )
----

query I rowsort
SELECT - 55 AS col2 FROM tab0 AS cor0 WHERE col2 + 67 IS NULL
----

query II rowsort
SELECT DISTINCT + 32 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
32
1
32
21
32
81

query I rowsort
SELECT + + 62 FROM tab0 AS cor0 WHERE - 34 IS NULL
----

query I rowsort
SELECT + 35 * + col0 AS col0 FROM tab1 AS cor0
----
1785
2975
3185

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 + 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 27 + - col0 FROM tab1 AS cor0
----
-112
-118
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + COUNT( + + col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2592
SELECT + COUNT ( + + col1 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT - CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2593
SELECT - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2594
SELECT - SUM( ALL - col1 ) DIV 30 col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2594
SELECT - SUM ( ALL - col1 ) / 30 col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + ( - col1 ) * + ( - + col2 ) + col2 AS col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT + - COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2596
SELECT + - COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2598
SELECT DISTINCT * FROM tab1 WHERE - col2 + - + 7 + + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2598
SELECT DISTINCT * FROM tab1 WHERE - col2 + - + 7 + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL + ( - + MAX( ALL + col2 ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL + ( - + MAX ( ALL + col2 ) ) AS col2 FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col2 FROM tab1
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE NOT + 68 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT + + SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2602
SELECT + + SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL - col2 * - - col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ALL - CAST( + 90 AS SIGNED ) FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - CAST ( + 90 AS INTEGER ) FROM tab2
----
-90
-90
-90

query I rowsort
SELECT + col1 + + - 79 AS col0 FROM tab2
----
-12
-2
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT + col0 DIV - col1 AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT + col0 / - col1 AS col2 FROM tab0
----
-4
-97
0

query II rowsort
SELECT - col0, + col1 AS col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + MAX( + col2 ) * + 94 FROM tab0 cor0 WHERE NOT ( + col0 ) IS NULL
----
9306

skipif mysql # not compatible
query I rowsort label-2608
SELECT + MAX ( + col2 ) * + 94 FROM tab0 cor0 WHERE NOT ( + col0 ) IS NULL
----
9306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col1 col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 cor0 WHERE col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 27 + - + col0 FROM tab0 AS cor0
----
-114
-124
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2613
SELECT DISTINCT - 41 * + CAST( NULL AS SIGNED ) + - + col2 AS col1, col1 + col2 + col2 + 70 * - col0 FROM tab2 AS cor0
----
NULL
-3123
NULL
-4323
NULL
-5067

skipif mysql # not compatible
query II rowsort label-2613
SELECT DISTINCT - 41 * + CAST ( NULL AS INTEGER ) + - + col2 AS col1, col1 + col2 + col2 + 70 * - col0 FROM tab2 AS cor0
----
NULL
-3123
NULL
-4323
NULL
-5067

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL - - COUNT( ALL + col1 ) * - COUNT( * ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL - - COUNT ( ALL + col1 ) * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-9

query II rowsort
SELECT col1 * + + 77, col2 AS col1 FROM tab0
----
1617
10
6237
47
77
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 82 BETWEEN - + 99 * - col2 AND NULL
----

query I rowsort
SELECT ALL + 41 * - col0 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT CAST( NULL AS SIGNED ) * - + col0 * - col1 * + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT CAST ( NULL AS INTEGER ) * - + col0 * - col1 * + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - + col1 * - + 25 FROM tab0
----
2106
26
546

query III rowsort
SELECT * FROM tab0 WHERE + 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT 29 * + CAST( NULL AS SIGNED ) + + col1 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT 29 * + CAST ( NULL AS INTEGER ) + + col1 * col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + + 37 + - COUNT( * ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2622
SELECT + + 37 + - COUNT ( * ) FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT + + SUM( ALL + col1 ) - - COUNT( * ) AS col0 FROM tab0 cor0
----
106

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + + SUM ( ALL + col1 ) - - COUNT ( * ) AS col0 FROM tab0 cor0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT - col1 * - col1 - + + CAST( - + 30 AS SIGNED ) AS col1 FROM tab0
----
31
471
6591

skipif mysql # not compatible
query I rowsort label-2624
SELECT - col1 * - col1 - + + CAST ( - + 30 AS INTEGER ) AS col1 FROM tab0
----
31
471
6591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT - ( col0 ) * - + 81 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT - ( col0 ) * - + 81 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + col2 AS col2 FROM tab1 cor0
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / + 27 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL + + MIN( col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL + + MIN ( col0 ) AS col2 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT - 69 * 23 + + col1 * - - 95 FROM tab2 AS cor0
----
3258
4778
5728

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT - col2 DIV 15 DIV + col0 FROM tab0 AS cor0 WHERE NOT - ( + col0 ) + 94 <= + col0 * - col0 - + col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT - col2 / 15 / + col0 FROM tab0 AS cor0 WHERE NOT - ( + col0 ) + 94 <= + col0 * - col0 - + col1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2632
SELECT DISTINCT COUNT( * ) AS col1, - 52 FROM tab0
----
3
-52

skipif mysql # not compatible
query II rowsort label-2632
SELECT DISTINCT COUNT ( * ) AS col1, - 52 FROM tab0
----
3
-52

query I rowsort
SELECT + col1 * + 50 AS col2 FROM tab2
----
2550
3350
3850

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT ALL + 1 * + - col1 DIV - + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + 1 * + - col1 / - + col1 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 92 + - col2 >= + col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - col2 * - 38 AS col1 FROM tab2 AS cor0
----
1520
2204
874

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - + MIN( DISTINCT - ( - 57 ) ) + + + 3 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-2638
SELECT - + MIN ( DISTINCT - ( - 57 ) ) + + + 3 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

query I rowsort
SELECT DISTINCT 68 * + 29 * col0 + - ( - + col2 ) FROM tab1 AS cor0
----
100668
167679
179520

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NOT - ( - + col2 ) * 81 * + 98 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT + col1 * - col1 + - - col1 DIV - 91 AS col2 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-2641
SELECT + col1 * - col1 + - - col1 / - 91 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL col1 * + - col1 + + col2 * col1 FROM tab2
----
-1428
-2849
-603

query I rowsort
SELECT - col2 + 89 AS col0 FROM tab2
----
31
49
66

query I rowsort
SELECT DISTINCT + col0 - + 12 FROM tab2
----
34
52
63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2645
SELECT DISTINCT CAST( NULL AS DECIMAL ), col2 * + 27 - + col2 + col0 AS col2 FROM tab0
----
NULL
1237
NULL
2671
NULL
347

skipif mysql # not compatible
query II rowsort label-2645
SELECT DISTINCT CAST ( NULL AS REAL ), col2 * + 27 - + col2 + col0 AS col2 FROM tab0
----
NULL
1237
NULL
2671
NULL
347

query II rowsort
SELECT DISTINCT + col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 15 >= + col0 + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND NULL
----

query II rowsort
SELECT - - 6 - ( col2 ) AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-53
-59
-62
-68
-90
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) + - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT + - 35 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + - 35 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT - CAST( NULL AS SIGNED ) * + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT - CAST ( NULL AS INTEGER ) * + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 >= ( NULL )
----

query I rowsort
SELECT + col0 * - 91 AS col2 FROM tab2 AS cor0
----
-4186
-5824
-6825

query II rowsort
SELECT DISTINCT + col0 * - col2 AS col2, + ( + - 2 ) * - col2 - + 52 FROM tab1 AS cor0
----
-4896
140
-5015
66
-6188
84

query I rowsort
SELECT - 75 * + 53 AS col0 FROM tab2 cor0
----
-3975
-3975
-3975

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT DISTINCT - + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT - + col0 / - col1 AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2658
SELECT + COUNT( * ), CAST( NULL AS SIGNED ) * - 19 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2658
SELECT + COUNT ( * ), CAST ( NULL AS INTEGER ) * - 19 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3
NULL

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT + 71 AS col0 FROM tab2 WHERE NOT - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT MAX( ALL - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT MAX ( ALL - col1 ) AS col1 FROM tab2
----
-51

query II rowsort
SELECT - 81 AS col0, col2 AS col0 FROM tab2
----
-81
23
-81
40
-81
58

query I rowsort
SELECT DISTINCT ( 35 ) FROM tab2
----
35

query I rowsort
SELECT ALL + 47 * + + col0 FROM tab1
----
2397
3995
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - COUNT( 8 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2666
SELECT - COUNT ( 8 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT - ( - col1 ) * 58 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT - ( - col1 ) * 58 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2668
SELECT ALL + - CAST( - - col0 AS SIGNED ) DIV + CAST( + 2 AS SIGNED ) FROM tab1 AS cor0
----
-25
-42
-45

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL + - CAST ( - - col0 AS INTEGER ) / + CAST ( + 2 AS INTEGER ) FROM tab1 AS cor0
----
-25
-42
-45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 * - - 8 - - col0 <= + 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + + 72 ) FROM tab2
----
72

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + - 96 * - - col1, - col1 * col0 * + + 68 )
----

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col0 FROM tab1 WHERE NOT col0 <= - 50
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, col2 col1 FROM tab0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 28 * + 21 col0, + col0 - + col2 * - col1 + 59 + col2 AS col2 FROM tab2
----
588
1301
588
3243
588
4078

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT - + 78 + + COUNT( * ) + - 70 AS col0 FROM tab1 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - + 78 + + COUNT ( * ) + - 70 AS col0 FROM tab1 AS cor0
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT + col0 DIV + - col1 + ( + 37 ) AS col0 FROM tab2 AS cor0
----
36
37
37

skipif mysql # not compatible
query I rowsort label-2676
SELECT + col0 / + - col1 + ( + 37 ) AS col0 FROM tab2 AS cor0
----
36
37
37

query I rowsort
SELECT ALL - ( + 10 ) + - + 75 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT + COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2678
SELECT + COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT ALL - + col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL - + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + 80 AS col0 FROM tab0 AS cor0
----
167
177
95

query II rowsort
SELECT + col2 * - col2 AS col2, 80 + + ( - col2 ) * - col2 * col1 / - + col2 * + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - + col1 AND + - 38
----

query I rowsort
SELECT ALL + - 1 + + col2 FROM tab2 cor0
----
22
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) - 50 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) - 50 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT DISTINCT + ( + CAST( + 94 AS SIGNED ) ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT + ( + CAST ( + 94 AS INTEGER ) ) AS col1 FROM tab2
----
94

query I rowsort
SELECT DISTINCT 73 + + col1 FROM tab0
----
154
74
94

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab1
----
51
85
91

query I rowsort
SELECT - 61 + col0 AS col2 FROM tab1
----
-10
24
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT DISTINCT - + MIN( DISTINCT + col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT - + MIN ( DISTINCT + col0 ) FROM tab0 cor0
----
-15

query II rowsort
SELECT - col0 + + col0 AS col2, col0 AS col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

query I rowsort
SELECT + 27 * - - 47 AS col2 FROM tab1
----
1269
1269
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT COUNT( col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2693
SELECT DISTINCT COUNT ( col2 ) col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT - col2 DIV - - col1 AS col0 FROM tab1 cor0 WHERE NOT ( + col1 ) < col1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2694
SELECT - col2 / - - col1 AS col0 FROM tab1 cor0 WHERE NOT ( + col1 ) < col1
----
-1
-11
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + col2 + col1 + - col1
----

query I rowsort
SELECT DISTINCT - ( + 46 ) AS col0 FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2697
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

query I rowsort
SELECT ALL 72 * + 92 + - col1 + + 1 * ( - - col0 ) FROM tab2 cor0
----
6611
6619
6632

query I rowsort
SELECT col0 * col1 * + + ( + ( 35 ) ) FROM tab0 AS cor0
----
3395
42525
63945

query I rowsort
SELECT ALL - col0 * + + col2 * - col0 AS col1 FROM tab2 cor0
----
163840
326250
48668

query I rowsort
SELECT + 32 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2702
SELECT - CAST( 96 AS SIGNED ) DIV + col2 AS col0 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT - CAST ( 96 AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0
----
-2
-9
0

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 16 * + - ( + + col0 ) AS col1 FROM tab1
----
-1360
-1456
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col2 FROM tab0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT DISTINCT + MIN( 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT + MIN ( 84 ) FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT - ( - MIN( ALL + 42 ) ) AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - ( - MIN ( ALL + 42 ) ) AS col0 FROM tab1
----
42

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + 11 * + - col0 + 35 AS col0 FROM tab2
----
-471
-669
-790

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * - col1 < + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + col1 col2, - 78 FROM tab0
----
210
-78
3807
-78
99
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT ALL + 80 + + 74 + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
205
239
245

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + 80 + + 74 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
205
239
245

query I rowsort
SELECT ALL + 10 + - col2 FROM tab1 AS cor0
----
-49
-58
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT + ( - MIN( ALL + col2 ) ) + 47 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + ( - MIN ( ALL + col2 ) ) + 47 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE 12 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2716
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE 12 IS NULL
----

query I rowsort
SELECT + col0 * 52 FROM tab1 AS cor0
----
2652
4420
4732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2718
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT 88 * + - COUNT( ALL col2 ) * + - 93 AS col1 FROM tab1 AS cor0
----
24552

skipif mysql # not compatible
query I rowsort label-2719
SELECT 88 * + - COUNT ( ALL col2 ) * + - 93 AS col1 FROM tab1 AS cor0
----
24552

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - + ( - COUNT( * ) ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2720
SELECT - + ( - COUNT ( * ) ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ALL - + 4 + + + col2 AS col2 FROM tab2 AS cor0
----
19
36
54

query I rowsort
SELECT 59 + + col2 AS col2 FROM tab0 AS cor0
----
106
158
69

query I rowsort
SELECT + - 2 FROM tab0 AS cor0 WHERE - col2 * - 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL + - 89 * - 33 * 42 - COUNT( * ) col1 FROM tab1 cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
123354

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2724
SELECT ALL + - 89 * - 33 * 42 - COUNT ( * ) col1 FROM tab1 cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
123354

query I rowsort
SELECT ALL - 61 + - - col0 AS col1 FROM tab1 AS cor0
----
-10
24
30

query I rowsort
SELECT - - col2 * + col2 * - col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col0 FROM tab2
----
20
20
20

query III rowsort
SELECT * FROM tab0 WHERE + - 45 + - col0 * + 84 <= + ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 43 - + col2 AS col1 FROM tab2
----
-15
20
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 61 AS col1, col1 col0 FROM tab1
----
61
14
61
47
61
5

query I rowsort
SELECT + 9 - + 2 FROM tab2
----
7
7
7

query I rowsort
SELECT + 89 * col0 FROM tab2 AS cor0
----
4094
5696
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT + - MAX( + 99 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2733
SELECT + - MAX ( + 99 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - col0, + col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - - 64 * 71 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 75c66a6e3896ad933f1987bb2e32af54

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT COUNT( DISTINCT - 81 ) FROM tab0, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2737
SELECT COUNT ( DISTINCT - 81 ) FROM tab0, tab0 AS cor0
----
1

query I rowsort
SELECT ALL - ( - 96 ) AS col0 FROM tab1
----
96
96
96

query I rowsort
SELECT col1 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT - + 64 * CAST( NULL AS SIGNED ) * col0 * 84 + col1 * col1 * - + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT - + 64 * CAST ( NULL AS INTEGER ) * col0 * 84 + col1 * col1 * - + col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL ( - col0 ) AS col2, + 58 FROM tab1 AS cor0
----
-51
58
-85
58
-91
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2742
SELECT + + SUM( - - col1 ) AS col1, + MAX( DISTINCT - 83 ) col1 FROM tab0 cor0
----
103
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2742
SELECT + + SUM ( - - col1 ) AS col1, + MAX ( DISTINCT - 83 ) col1 FROM tab0 cor0
----
103
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT + MIN( + 95 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2743
SELECT + MIN ( + 95 ) FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + MAX( - 11 ) col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2744
SELECT + MAX ( - 11 ) col0 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - 14 - - - col0 NOT IN ( - ( - col0 ), col0, + + 76 + - 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL + MAX( 7 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL + MAX ( 7 ) FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL CAST( - 60 AS SIGNED ) AS col2 FROM tab0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL CAST ( - 60 AS INTEGER ) AS col2 FROM tab0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT COUNT( - col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2748
SELECT COUNT ( - col0 ) col1 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2749
SELECT DISTINCT + - col1 + 76 col0 FROM tab1 WHERE NULL NOT IN ( - - CAST( NULL AS DECIMAL ), + col2 * - col2 * - + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT DISTINCT + - col1 + 76 col0 FROM tab1 WHERE NULL NOT IN ( - - CAST ( NULL AS REAL ), + col2 * - col2 * - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT ALL 61 DIV - - col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL 61 / - - col1 FROM tab1
----
1
12
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT + col0 DIV - + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2751
SELECT + col0 / - + col2 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + ( 48 ), 9 * + col0, - col0, - col1 )
----

query I rowsort
SELECT col0 + col0 + + + col0 * - - col0 FROM tab2 AS cor0
----
2208
4224
5775

query II rowsort
SELECT DISTINCT - col1 * + col1 + - col2 AS col1, col1 FROM tab2 AS cor0
----
-2624
51
-4547
67
-5969
77

query I rowsort
SELECT - + 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + 73 col0 FROM tab0 AS cor0
----
154
74
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT - 22 DIV + 43 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2757
SELECT - 22 / + 43 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 86 * + col0 - - col2 FROM tab0 AS cor0
----
-1243
-7472
-8243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT DISTINCT - 37 * + + col0 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - 37 * + + col0 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 90 + - col2 + - col0 + col1 + + col1 * - col0 * + - col0 AS col0 FROM tab1 cor0
----
35896
36191
389005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2761
SELECT ALL + + 62 DIV - - 81 + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + + 62 / - - 81 + COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT DISTINCT ( + ( - 32 ) ) DIV - + col2 + + col2 AS col0 FROM tab0
----
13
47
99

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT ( + ( - 32 ) ) / - + col2 + + col2 AS col0 FROM tab0
----
13
47
99

query I rowsort
SELECT + 19 + + col2 FROM tab2
----
42
59
77

query I rowsort
SELECT DISTINCT col2 - + + col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT - col2 + + - col1 * + col0 + + - col1 FROM tab2
----
-2420
-5045
-5150

query I rowsort
SELECT - 44 AS col2 FROM tab0 WHERE NOT + col1 + + + col2 <> ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT SUM( ALL 36 ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-2768
SELECT SUM ( ALL 36 ) FROM tab2
----
108

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE - 75 * + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE - 75 * + - col1 IS NULL
----
0

query II rowsort
SELECT DISTINCT + 52, col0 FROM tab0 AS cor0
----
52
15
52
87
52
97

query I rowsort
SELECT - + col2 * - + col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT DISTINCT - 35 DIV col1 * - ( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT - 35 / col1 * - ( + col0 ) FROM tab2
----
0

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - col0 + + + 8 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT ALL - 52, + COUNT( ALL - + 98 ) AS col1 FROM tab1
----
-52
3

skipif mysql # not compatible
query II rowsort label-2775
SELECT ALL - 52, + COUNT ( ALL - + 98 ) AS col1 FROM tab1
----
-52
3

query I rowsort
SELECT DISTINCT - 21 * col2 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
14805
18270
201663

query I rowsort
SELECT ALL + col2 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - 94 + COUNT( * ) + - 57 FROM tab2 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-2778
SELECT - 94 + COUNT ( * ) + - 57 FROM tab2 AS cor0
----
-148

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - + 65 * 4 AND + - 25
----

query I rowsort
SELECT 67 + - - col2 - - + col0 AS col2 FROM tab0
----
129
164
263

query I rowsort
SELECT ( + col1 ) + + 45 FROM tab0
----
126
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - MAX( + 88 ) * 43 + + COUNT( * ) FROM tab1
----
-3781

skipif mysql # not compatible
query I rowsort label-2782
SELECT - MAX ( + 88 ) * 43 + + COUNT ( * ) FROM tab1
----
-3781

query I rowsort
SELECT - ( col0 ) FROM tab2 WHERE col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT col0 * + ( + - 39 ) AS col0 FROM tab2
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT MAX( DISTINCT - 80 ) + 27 AS col1 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT MAX ( DISTINCT - 80 ) + 27 AS col1 FROM tab1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2786
SELECT * FROM tab0 AS cor0 WHERE 66 = + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2786
SELECT * FROM tab0 AS cor0 WHERE 66 = + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 90 - col0 AS col2 FROM tab2
----
-136
-154
-165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col2 * ( - + col2 ) col1 FROM tab2
----
-12167
-195112
-64000

query I rowsort
SELECT DISTINCT 44 - - - col0 AS col1 FROM tab2
----
-2
-20
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2790
SELECT - COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query II rowsort
SELECT DISTINCT + col2, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query II rowsort
SELECT ALL + 17 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
17
15
17
87
17
97

query I rowsort
SELECT DISTINCT + 16 + - + col0 FROM tab1 cor0
----
-35
-69
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT - SUM( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - SUM ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + 65 NOT BETWEEN + - col1 AND col1
----

query I rowsort
SELECT ALL - ( + + col2 ) + - - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 + + col1 + + + col0 col1 FROM tab0 AS cor0
----
801
9701
978

query I rowsort
SELECT ALL 84 - - - 0 AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - - col0 + 51 * 17 FROM tab2 AS cor0
----
913
931
942

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 NOT BETWEEN - 23 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT + MAX( + 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + MAX ( + 70 ) FROM tab0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT DISTINCT + COUNT( * ) DIV - - SUM( - col2 ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2803
SELECT DISTINCT + COUNT ( * ) / - - SUM ( - col2 ) col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT + MIN( ALL - - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT + MIN ( ALL - - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT + - 2 DIV col1 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2806
SELECT + - 2 / col1 + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT + COUNT( DISTINCT - - 2 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2807
SELECT + COUNT ( DISTINCT - - 2 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + + col2 * 86 FROM tab0 AS cor0
----
4042
8514
860

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2810
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + SUM( ALL + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2811
SELECT + SUM ( ALL + col1 ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 col1, ( col0 ) AS col2 FROM tab0 AS cor0
----
-11
15
-11
87
-11
97

query I rowsort
SELECT DISTINCT + + col1 + + col0 + + col1 + - ( - col0 ) FROM tab1 AS cor0
----
130
180
276

query I rowsort
SELECT ALL col0 + + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 57 AS col1 FROM tab0 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2816
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + ( + + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2816
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + ( + + CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT ALL col2 + 64 DIV 60 AS col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL col2 + 64 / 60 AS col2 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2818
SELECT DISTINCT - col1 DIV - + 80 + col0 - + 20 AS col2 FROM tab1 cor0
----
31
65
71

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - col1 / - + 80 + col0 - + 20 AS col2 FROM tab1 cor0
----
31
65
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT SUM( DISTINCT + + 35 ) * + + 31 FROM tab0
----
1085

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT SUM ( DISTINCT + + 35 ) * + + 31 FROM tab0
----
1085

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query II rowsort
SELECT DISTINCT 54, - ( - 56 ) AS col1 FROM tab1
----
54
56

query II rowsort
SELECT ALL 43 AS col1, - col0 AS col2 FROM tab0
----
43
-15
43
-87
43
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT - - 74 + - MIN( col1 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2823
SELECT - - 74 + - MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL 91 + - 12 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2825
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <= col0 * + - col0 + + - col0 * - col0 + + - ( + - col1 ) + - - CAST( 14 AS SIGNED ) * + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2825
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <= col0 * + - col0 + + - col0 * - col0 + + - ( + - col1 ) + - - CAST ( 14 AS INTEGER ) * + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 75 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
3825
6375
6825

query I rowsort
SELECT DISTINCT - - 53 FROM tab2 cor0
----
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT ALL + col1 * - 31 * + col0 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
1770255
297693
566370

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + col1 * - 31 * + col0 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
1770255
297693
566370

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT + MAX( + + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2830
SELECT + MAX ( + + col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT col2 * - + 55 AS col2 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT - MIN( DISTINCT - - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - MIN ( DISTINCT - - col1 ) FROM tab0
----
-1

query I rowsort
SELECT ALL + col2 * + - col2 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - ( 60 ) FROM tab1
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT + COUNT( DISTINCT col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2835
SELECT + COUNT ( DISTINCT col2 ) FROM tab0
----
3

query I rowsort
SELECT + col1 / - + 55 FROM tab1 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col0 FROM tab1 AS cor0 WHERE NOT - ( col2 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL AND NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT COUNT( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2841
SELECT + col0 / CAST( NULL AS SIGNED ) / + + 84 AS col0, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2841
SELECT + col0 / CAST ( NULL AS INTEGER ) / + + 84 AS col0, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2843
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT - COUNT( + + col1 ) + 41 AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - COUNT ( + + col1 ) + 41 AS col2 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL + 61 + - SUM( ALL col2 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL + 61 + - SUM ( ALL col2 ) FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT - COUNT( * ) + + 55 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - COUNT ( * ) + + 55 FROM tab0 AS cor0
----
52

query II rowsort
SELECT ALL 54 + col0 AS col0, col0 FROM tab2 AS cor0
----
100
46
118
64
129
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 11 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT - 12 / 36 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT - 12 / 36 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2850
SELECT + ( + ( + col1 ) ), CAST( - col2 AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2850
SELECT + ( + ( + col1 ) ), CAST ( - col2 AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - COUNT( DISTINCT - - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2851
SELECT - COUNT ( DISTINCT - - col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - MAX( col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2852
SELECT - MAX ( col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL + 92 + - ( - - COUNT( * ) ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + 92 + - ( - - COUNT ( * ) ) FROM tab1
----
89

query I rowsort
SELECT + col1 FROM tab2 WHERE + col2 * 66 - + - 65 >= + col0 + col1
----
51
67
77

query I rowsort
SELECT DISTINCT 84 - - col2 + + 62 FROM tab1
----
205
214
242

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2856
SELECT ALL * FROM tab0 WHERE NOT CAST( - + col0 AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-2856
SELECT ALL * FROM tab0 WHERE NOT CAST ( - + col0 AS INTEGER ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 38 - 52 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2858
SELECT DISTINCT CAST( - ( + col0 ) AS SIGNED ) * + 60 AS col0, col1 FROM tab0 AS cor0
----
-5220
21
-5820
1
-900
81

skipif mysql # not compatible
query II rowsort label-2858
SELECT DISTINCT CAST ( - ( + col0 ) AS INTEGER ) * + 60 AS col0, col1 FROM tab0 AS cor0
----
-5220
21
-5820
1
-900
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT + 40 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-2859
SELECT + 40 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT - - 38 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT - - 38 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT + ( - MIN( - - col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2862
SELECT + ( - MIN ( - - col2 ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT DISTINCT - + CAST( + + ( + 77 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2863
SELECT DISTINCT - + CAST ( + + ( + 77 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT + col1 * - - 56 * + 92 FROM tab1
----
242144
25760
72128

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT - + COUNT( * ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT + 24 * - 90 * + col0 AS col2 FROM tab1
----
-110160
-183600
-196560

query I rowsort
SELECT ALL 3 * + - col1 FROM tab0
----
-243
-3
-63

query I rowsort
SELECT - col1 * - + col0 * col1 FROM tab0
----
38367
97
98415

query I rowsort
SELECT + col0 * + col2 + col2 + col2 * col2 * + col0 * + 68 AS col0 FROM tab1 cor0
----
20125254
28619568
31966080

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT + MAX( DISTINCT + 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2870
SELECT + MAX ( DISTINCT + 74 ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 87 AS col1, col0 + + - 96 * - 92 FROM tab0
----
87
8847
87
8919
87
8929

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL + 63 + - + SUM( + 40 ) AS col1 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL + 63 + - + SUM ( + 40 ) AS col1 FROM tab2 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT ( NOT NULL <> + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT - SUM( + 10 ) AS col2 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2875
SELECT - SUM ( + 10 ) AS col2 FROM tab0 cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - - col2 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - 28 col0 FROM tab1
----
-31
-40
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-2879
SELECT - - 48 * 13 + + col1 - - col2 AS col1, - col2 DIV - - col0 FROM tab0 WHERE + 27 * + + col0 <> + col1
----
655
0
724
-1
752
-3

skipif mysql # not compatible
query II rowsort label-2879
SELECT - - 48 * 13 + + col1 - - col2 AS col1, - col2 / - - col0 FROM tab0 WHERE + 27 * + + col0 <> + col1
----
655
0
724
-1
752
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT MIN( + - ( col1 ) ) + 58 AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-2880
SELECT MIN ( + - ( col1 ) ) + 58 AS col0 FROM tab0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT - CAST( 96 AS SIGNED ) + + 37 FROM tab1
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2881
SELECT - CAST ( 96 AS INTEGER ) + + 37 FROM tab1
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) col0, - 0 * - + 83 AS col1 FROM tab2
----
-9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2882
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) col0, - 0 * - + 83 AS col1 FROM tab2
----
-9
0

query I rowsort
SELECT ALL - + col2 + 68 * + col1 FROM tab0 AS cor0
----
-31
1418
5461

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND - + 11
----

query I rowsort
SELECT col1 + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT - MIN( - ( 34 ) ), COUNT( * ) col2 FROM tab2
----
34
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2887
SELECT - MIN ( - ( 34 ) ), COUNT ( * ) col2 FROM tab2
----
34
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL - COUNT( * ) + + - 92 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - COUNT ( * ) + + - 92 FROM tab0
----
-95

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE - - col1 < NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT ( + + ( 9 ) / - + col2 ) NOT BETWEEN ( NULL ) AND + - 2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT DISTINCT - 64 AS col2, COUNT( * ) * + - COUNT( * ) + - 64 FROM tab1
----
-64
-73

skipif mysql # not compatible
query II rowsort label-2891
SELECT DISTINCT - 64 AS col2, COUNT ( * ) * + - COUNT ( * ) + - 64 FROM tab1
----
-64
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT ALL - COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2892
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
-3
3

query II rowsort
SELECT - 89 AS col2, + col0 + - col1 FROM tab2 AS cor0
----
-89
-13
-89
-5
-89
8

query I rowsort
SELECT - + col1 * + 93 AS col2 FROM tab0 AS cor0
----
-1953
-7533
-93

query I rowsort
SELECT ALL ( - + ( - col1 ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2896
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2896
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + + col0 * - - 20 FROM tab2 AS cor0
----
1280
1500
920

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT DISTINCT - 76 * + + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2898
SELECT DISTINCT - 76 * + + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - ( - + col0 ) ) col2 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT col1, - col2 + + - 58 AS col0 FROM tab2
----
51
-81
67
-116
77
-98

query II rowsort
SELECT 44, + col2 FROM tab1
----
44
59
44
68
44
96

query I rowsort
SELECT DISTINCT - 99 * - 2 * + - col1 FROM tab2
----
-10098
-13266
-15246

query I rowsort
SELECT ALL col2 * - - 70 FROM tab1
----
4130
4760
6720

query III rowsort
SELECT * FROM tab0 WHERE NOT - 1 BETWEEN - 98 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT - 90 col2, COUNT( * ) col1 FROM tab0
----
-90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2905
SELECT - 90 col2, COUNT ( * ) col1 FROM tab0
----
-90
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + - 15 + COUNT( * ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-2906
SELECT + - 15 + COUNT ( * ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 61 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2908
SELECT DISTINCT - - ( + col2 ) * col2 * col2 AS col2, + 35 + + CAST( - 72 AS SIGNED ) * - 56 * - + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
12167
92771
195112
233891
64000
161315

skipif mysql # not compatible
query II rowsort label-2908
SELECT DISTINCT - - ( + col2 ) * col2 * col2 AS col2, + 35 + + CAST ( - 72 AS INTEGER ) * - 56 * - + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
12167
92771
195112
233891
64000
161315

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT MAX( + 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-2910
SELECT MAX ( + 11 ) FROM tab1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT col1 DIV + ( + 75 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2911
SELECT col1 / + ( + 75 ) FROM tab0
----
0
0
1

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT + col0 >= - col2 + + col1 * col0
----
-21
-81

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT ALL + - 42 DIV - col0 * + - 40 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + - 42 / - col0 * + - 40 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * - - ( - - 2 ) + 62 AS col2 FROM tab2 AS cor0
----
108
142
178

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - - col0 IS NOT NULL AND + 10 IS NULL
----

query II rowsort
SELECT + - col2 + + col1 AS col2, col2 AS col1 FROM tab1 AS cor0
----
-21
68
-54
59
-82
96

query I rowsort
SELECT DISTINCT + col2 * 83 - - 31 AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT + - col2 DIV 83 + + + col2 + + - col2 * + col2 FROM tab1 AS cor0
----
-3422
-4556
-9121

skipif mysql # not compatible
query I rowsort label-2919
SELECT + - col2 / 83 + + + col2 + + - col2 * + col2 FROM tab1 AS cor0
----
-3422
-4556
-9121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 + + col1 col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT - col0 + col1 - + col2 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE - col1 / + 19 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 3 + + col1 * + 81 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 3 + + col1 * + 81 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 63 * + 98 FROM tab0 AS cor0
----
-6174
-6174
-6174

query I rowsort
SELECT DISTINCT 86 - - col2 - - + col2 + + 36 + + col0 FROM tab0
----
229
231
417

query I rowsort
SELECT DISTINCT ( + + 42 ) - - 46 FROM tab2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT MIN( ALL 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT MIN ( ALL 0 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 * + col1 col1 FROM tab0
----
-2430
-30
-630

query II rowsort
SELECT ALL 86 * - + ( - col1 ) AS col0, + col2 FROM tab0
----
1806
10
6966
47
86
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + COUNT( * ) - - 40 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2930
SELECT + COUNT ( * ) - - 40 FROM tab0 AS cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col1 FROM tab2 AS cor0
----
34

query III rowsort
SELECT * FROM tab2 WHERE ( - 10 ) NOT IN ( - 57 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE NOT 95 IN ( col0 )
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 27 ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL SUM( DISTINCT 48 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL SUM ( DISTINCT 48 ) FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL + MAX( ( 4 ) ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL + MAX ( ( 4 ) ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL COUNT( * ) + - 8 FROM tab2 WHERE NOT ( + col2 ) < col0 / - 47
----
-5

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL COUNT ( * ) + - 8 FROM tab2 WHERE NOT ( + col2 ) < col0 / - 47
----
-5

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 49 - 33 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT SUM( + col2 ) FROM tab2 WHERE NULL IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-2940
SELECT SUM ( + col2 ) FROM tab2 WHERE NULL IS NULL
----
121

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE + col1 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT ALL + CAST( NULL AS SIGNED ) + col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2943
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - - col2 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2946
SELECT * FROM tab0 WHERE NOT + 87 * CAST( col0 AS SIGNED ) + ( + col2 - col1 ) * + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2946
SELECT * FROM tab0 WHERE NOT + 87 * CAST ( col0 AS INTEGER ) + ( + col2 - col1 ) * + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT ALL CAST( 64 AS SIGNED ) FROM tab2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL CAST ( 64 AS INTEGER ) FROM tab2
----
64
64
64

query I rowsort
SELECT + 83 FROM tab1 WHERE NULL <= - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT - COUNT( * ) * MIN( + col0 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT - COUNT ( * ) * MIN ( + col0 ) FROM tab2
----
-138

query I rowsort
SELECT DISTINCT ( + 70 ) FROM tab2 WHERE NOT - col1 BETWEEN ( - col2 ) * - col0 AND NULL
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT - MIN( + 96 ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2951
SELECT - MIN ( + 96 ) FROM tab0 cor0
----
-96

query I rowsort
SELECT DISTINCT - 37 + + 24 * 98 FROM tab0 AS cor0
----
2315

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL < + col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 + 89 col2 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT ALL col1 + 49 AS col1 FROM tab0 AS cor0
----
130
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL COUNT( * ) + - 74 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL COUNT ( * ) + - 74 FROM tab2 AS cor0
----
-71

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN 34 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( ( - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 / + 4 + + col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2961
SELECT DISTINCT 2 + + 49 DIV - 26 FROM tab0 cor0 CROSS JOIN tab2
----
1

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT 2 + + 49 / - 26 FROM tab0 cor0 CROSS JOIN tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT - + 8 * - ( MAX( DISTINCT + col0 ) ) AS col1 FROM tab2 AS cor0
----
600

skipif mysql # not compatible
query I rowsort label-2962
SELECT - + 8 * - ( MAX ( DISTINCT + col0 ) ) AS col1 FROM tab2 AS cor0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL - + 20 + SUM( ALL - col1 ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - + 20 + SUM ( ALL - col1 ) FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL - col2 - 19 FROM tab1 cor0
----
-115
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT COUNT( * ) + - 72 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-2965
SELECT COUNT ( * ) + - 72 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT COUNT( * ) col1 FROM tab0 WHERE ( - 32 ) NOT BETWEEN NULL AND - 59
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2966
SELECT COUNT ( * ) col1 FROM tab0 WHERE ( - 32 ) NOT BETWEEN NULL AND - 59
----
3

query I rowsort
SELECT + col2 + + col0 FROM tab1 WHERE NULL IS NULL
----
144
147
159

query I rowsort
SELECT ALL + 69 - + 16 FROM tab0
----
53
53
53

query I rowsort
SELECT - col2 + - + col2 + - col2 AS col2 FROM tab2
----
-120
-174
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT CAST( - 56 AS SIGNED ) + COUNT( DISTINCT - col1 ) col2 FROM tab2
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2970
SELECT CAST ( - 56 AS INTEGER ) + COUNT ( DISTINCT - col1 ) col2 FROM tab2
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 44 col1 FROM tab0 cor0 WHERE NOT + 7 + + col0 = col2
----
2068
4356
440

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT - - COUNT( * ) * - - COUNT( * ) + COUNT( * ) * + 29 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - - COUNT ( * ) * - - COUNT ( * ) + COUNT ( * ) * + 29 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + ( col2 ) * 74 FROM tab0 AS cor0
----
3478
7326
740

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 * col1 ) < col1 / + col1 AND NULL <> - col1 * 80
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - col2 + 92 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND col2 + - 78 / - col2
----

query I rowsort
SELECT - 24 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 col2, col1 FROM tab0
----
60
1
60
21
60
81

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE ( - col0 * - 12 IS NULL )
----

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, col2 col0 FROM tab2
----
-51
23
-67
58
-77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50, + col1 col2 FROM tab2
----
50
51
50
67
50
77

query I rowsort
SELECT - col1 + 44 FROM tab2 WHERE NOT ( + 1 ) * + col1 + + 90 IS NULL
----
-23
-33
-7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 >= + 37 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT ( MAX( 52 ) ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT ( MAX ( 52 ) ) FROM tab2 AS cor0
----
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 >= ( - 96 - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - 11 * 65 AND + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2988
SELECT ALL - col2 col2, - col1 * + col1 + ( 8 ) DIV + col0 AS col1 FROM tab2 cor0
----
-23
-2601
-40
-5929
-58
-4489

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2988
SELECT ALL - col2 col2, - col1 * + col1 + ( 8 ) / + col0 AS col1 FROM tab2 cor0
----
-23
-2601
-40
-5929
-58
-4489

query II rowsort
SELECT 50, + col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
50
1173
50
3080
50
3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2990
SELECT ALL - + col2 AS col2, ( + ( + CAST( NULL AS SIGNED ) ) ) * - 95 + + col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-2990
SELECT ALL - + col2 AS col2, ( + ( + CAST ( NULL AS INTEGER ) ) ) * - 95 + + col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT 40 + - 64 AS col2 FROM tab1
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + 26 + + + COUNT( ALL + 57 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-2992
SELECT + 26 + + + COUNT ( ALL + 57 ) FROM tab2
----
29

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab2 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 48 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT - 45 DIV + + col0 + 18 FROM tab0
----
15
18
18

skipif mysql # not compatible
query I rowsort label-2995
SELECT - 45 / + + col0 + 18 FROM tab0
----
15
18
18

query I rowsort
SELECT 5 FROM tab0 WHERE NOT - col2 IS NULL
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + SUM( + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2997
SELECT + SUM ( + + col1 ) FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 43 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 89 - + + col1 BETWEEN + col0 * - 37 + + col0 * 90 AND 63
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + - col1 * + + col1 IN ( col2 + + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + ( + col2 ) + + col0
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 78 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND ( + col1 / - - 16 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3005
SELECT * FROM tab0 AS cor0 WHERE + col0 + - CAST( NULL AS SIGNED ) + + col1 <> ( + 77 / - col2 + col1 )
----

skipif mysql # not compatible
query III rowsort label-3005
SELECT * FROM tab0 AS cor0 WHERE + col0 + - CAST ( NULL AS INTEGER ) + + col1 <> ( + 77 / - col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT + + 87 + + COUNT( * ) col0 FROM tab1 cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3006
SELECT + + 87 + + COUNT ( * ) col0 FROM tab1 cor0
----
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - - col2 / col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3008
SELECT col2 + col2 + col2 * CAST( - + CAST( col2 AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
-1520
-3248
-483

skipif mysql # not compatible
query I rowsort label-3008
SELECT col2 + col2 + col2 * CAST ( - + CAST ( col2 AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
-1520
-3248
-483

query I rowsort
SELECT - 52 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col1 * + col0 ) AND ( - col1 )
----

query I rowsort
SELECT ALL + - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT - + 11 - + col1 FROM tab0 AS cor0 WHERE col1 * col2 / - col0 IS NOT NULL
----
-12
-32
-92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + 10 - col1 <= col0
----

query I rowsort
SELECT ALL + 9 + - 48 + + 89 + - ( + ( col2 ) ) + 7 * col0 AS col0 FROM tab1 AS cor0
----
311
586
619

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT ALL + col2 - 5 DIV col2 col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3014
SELECT ALL + col2 - 5 / col2 col1 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab2 WHERE col0 + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT SUM( col2 ) + - COUNT( DISTINCT + + 36 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT SUM ( col2 ) + - COUNT ( DISTINCT + + 36 ) FROM tab2
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3017
SELECT DISTINCT + col1 AS col2, col0 AS col2, - - col2 * + - col0 * - ( - - ( + col2 ) ) / - CAST( NULL AS SIGNED ) - col2 col0 FROM tab1
----
9 values hashing to bcc9556d891402affaf816c2829da75b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3017
SELECT DISTINCT + col1 AS col2, col0 AS col2, - - col2 * + - col0 * - ( - - ( + col2 ) ) / - CAST ( NULL AS INTEGER ) - col2 col0 FROM tab1
----
9 values hashing to bcc9556d891402affaf816c2829da75b

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - - ( + 13 ) * - 24 AS col1 FROM tab0 AS cor0
----
-312
-312
-312

query I rowsort
SELECT - col2 * - + col1 + - col2 FROM tab2 AS cor0
----
1150
3040
3828

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT - + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT - + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT DISTINCT + 13 * 88 AS col0 FROM tab0 AS cor0
----
1144

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT ALL - + 6 DIV - 96 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - + 6 / - 96 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 8 + col2 * - col2 * - 33 FROM tab1 AS cor0
----
114865
152584
304120

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( ( - + ( - col1 ) ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3026
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( ( - + ( - col1 ) ) IS NULL )
----
3

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT col0 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 12 + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT - 26 * + COUNT( * ) - + CAST( - 63 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3031
SELECT - 26 * + COUNT ( * ) - + CAST ( - 63 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT DISTINCT + + MIN( ALL - - ( + col0 ) ) DIV - 66 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT + + MIN ( ALL - - ( + col0 ) ) / - 66 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( col0 + 22 + + 28 + - + col2 * - col1 * - ( - col2 ) * col1 ) IS NULL )
----

query I rowsort
SELECT ( + col2 ) * - 9 * - 91 * - ( + + col2 ) - 16 - 46 FROM tab0
----
-1809233
-8027081
-81962

query III rowsort
SELECT * FROM tab2 WHERE 93 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 63 FROM tab2 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 <> - - col2 * - col1 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 + + - col2 + + + col0 AS col2, - col0 - - + 87 FROM tab0
----
-1
-10
49
72
98
0

query I rowsort
SELECT + - col2 + + 30 AS col0 FROM tab2 cor0
----
-10
-28
7

query I rowsort
SELECT ALL + col2 * - + col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT + + 58 + - COUNT( * ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + + 58 + - COUNT ( * ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT - - col2 + + ( - + col0 ) FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL 59 * - ( 39 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f2c23a7e29591f93f83395922b07820f

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + ( + ( + COUNT( * ) ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3044
SELECT + ( + ( + COUNT ( * ) ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT + - 9 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query II rowsort
SELECT ALL col0, 44 AS col1 FROM tab2 WHERE NOT - - 64 IS NULL
----
46
44
64
44
75
44

query I rowsort
SELECT - col2 * col1 - + + col2 AS col1 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT DISTINCT - 64 * - 2 + - col0 FROM tab0 cor0
----
113
31
41

query I rowsort
SELECT DISTINCT + - col2 + ( - col1 ) FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - + COUNT( * ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3051
SELECT - + COUNT ( * ) col2 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT - CAST( + ( ( 2 ) ) AS SIGNED ) AS col1 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3052
SELECT - CAST ( + ( ( 2 ) ) AS INTEGER ) AS col1 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3053
SELECT 98 AS col2, - MIN( DISTINCT + + col2 ) FROM tab0
----
98
-10

skipif mysql # not compatible
query II rowsort label-3053
SELECT 98 AS col2, - MIN ( DISTINCT + + col2 ) FROM tab0
----
98
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3054
SELECT CAST( NULL AS SIGNED ) AS col1, 51 + + col2 AS col0 FROM tab2
----
NULL
109
NULL
74
NULL
91

skipif mysql # not compatible
query II rowsort label-3054
SELECT CAST ( NULL AS INTEGER ) AS col1, 51 + + col2 AS col0 FROM tab2
----
NULL
109
NULL
74
NULL
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 / - - 51 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - + 36 FROM tab0
----
2916
36
756

query II rowsort
SELECT 91 AS col2, + col0 FROM tab1
----
91
51
91
85
91
91

query I rowsort
SELECT - col1 * col0 + - ( col1 ) + + - col0 FROM tab0 AS cor0
----
-1311
-1935
-195

query I rowsort
SELECT DISTINCT - col1 * - col2 - + 37 FROM tab1 AS cor0
----
1307
258
3159

query I rowsort
SELECT DISTINCT 81 * - col0 FROM tab1
----
-4131
-6885
-7371

query I rowsort
SELECT ALL - - 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query II rowsort
SELECT col2 AS col1, 39 FROM tab0
----
10
39
47
39
99
39

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query II rowsort
SELECT ALL - 86, 3 AS col2 FROM tab0
----
-86
3
-86
3
-86
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) * + 8 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) * + 8 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 + + 9 AND - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 13 + 45 FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT + - col2 * + - col0 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 * + 69 FROM tab2 AS cor0
----
-212520
-268134
-80937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT - + ( + CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3071
SELECT - + ( + CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT - + 23 DIV - col2 + + + 3 AS col1 FROM tab0 cor0
----
3
3
5

skipif mysql # not compatible
query I rowsort label-3072
SELECT - + 23 / - col2 + + + 3 AS col1 FROM tab0 cor0
----
3
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 + + col1 col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3074
SELECT MAX( ALL - - 51 ) + + + 82, COUNT( * ) - - COUNT( * ) AS col0 FROM tab1
----
133
6

skipif mysql # not compatible
query II rowsort label-3074
SELECT MAX ( ALL - - 51 ) + + + 82, COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1
----
133
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + + ( COUNT( DISTINCT col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3075
SELECT + + ( COUNT ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 47 AS col2 FROM tab1 AS cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 8 * + col0 + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - 81 AND - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL - + MAX( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - + MAX ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT DISTINCT ( + 10 ) * - + 80 - - - col2, - col1 AS col1 FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - + col2 * 75 / 68 AND NULL
----

query II rowsort
SELECT DISTINCT - col1, + col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT - + col0 AS col1 FROM tab1 WHERE NOT + ( + 36 ) / 76 = col2
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + - 3 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + - col0 * - col1 + - ( + col0 ) + col0 * col1 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + 69 ) + + + col2 < + col0 * - 12
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3086
SELECT DISTINCT + col0, col0 DIV - col1 AS col1 FROM tab0 WHERE - 46 IS NOT NULL
----
15
0
87
-4
97
-97

skipif mysql # not compatible
query II rowsort label-3086
SELECT DISTINCT + col0, col0 / - col1 AS col1 FROM tab0 WHERE - 46 IS NOT NULL
----
15
0
87
-4
97
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-3087
SELECT DISTINCT + col2 DIV 54, col2 AS col2 FROM tab0
----
0
10
0
47
1
99

skipif mysql # not compatible
query II rowsort label-3087
SELECT DISTINCT + col2 / 54, col2 AS col2 FROM tab0
----
0
10
0
47
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3088
SELECT ALL + CAST( + col2 AS SIGNED ), + col2 AS col2 FROM tab2
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-3088
SELECT ALL + CAST ( + col2 AS INTEGER ), + col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + col1 * - - 78 + col1 + + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 46 AS col1 FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT + - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + col1 IS NOT NULL
----

query I rowsort
SELECT - 37 FROM tab1 WHERE NOT col1 NOT BETWEEN - col0 + + ( ( - ( + col2 ) ) ) * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - + - 19 > col1
----
15
81
47

query I rowsort
SELECT ALL + 71 * + col0 * - col0 FROM tab0
----
-15975
-537399
-668039

query I rowsort
SELECT - + 1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT - 66, + col2 AS col0 FROM tab2 AS cor0
----
-66
23
-66
40
-66
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT - COUNT( * ) col1, + 52 FROM tab1 AS cor0
----
-3
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3098
SELECT - COUNT ( * ) col1, + 52 FROM tab1 AS cor0
----
-3
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
92
92
92

query I rowsort
SELECT DISTINCT col0 / col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND + ( col1 )
----

query I rowsort
SELECT + - ( + ( - + 42 ) ) AS col2 FROM tab1 AS cor0
----
42
42
42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 81 / + + col0 + + + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 54 * - 9 * - + 26 + col2 FROM tab1
----
12695
12704
12732

query I rowsort
SELECT 50 + col0 FROM tab2
----
114
125
96

query I rowsort
SELECT + - col0 * col2 + + 81 FROM tab0 AS cor0
----
-624
-789
-9522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT - COUNT( * ) * 30 + - + CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT - COUNT ( * ) * 30 + - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL col1, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT + COUNT( * ) + - AVG ( ALL + 4 ) FROM tab2 AS cor0 WHERE col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + COUNT ( * ) + - AVG ( ALL + 4 ) FROM tab2 AS cor0 WHERE col2 < NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3110
SELECT ALL col1 - + + col1 AS col1, CAST( NULL AS DECIMAL ) * 82 * + 0 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3110
SELECT ALL col1 - + + col1 AS col1, CAST ( NULL AS REAL ) * 82 * + 0 FROM tab2
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT DISTINCT + + ( - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT + + ( - COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT + MIN( DISTINCT + 91 ) AS col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT + MIN ( DISTINCT + 91 ) AS col2 FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT COUNT( * ), COUNT( * ) col1 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3114
SELECT COUNT ( * ), COUNT ( * ) col1 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3115
SELECT col1 * + CAST( NULL AS SIGNED ) * + 31 AS col0, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-3115
SELECT col1 * + CAST ( NULL AS INTEGER ) * + 31 AS col0, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3116
SELECT ALL - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3116
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS REAL ) ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 55 ) col0 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3118
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3118
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT 10 * + ( COUNT( * ) ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3119
SELECT 10 * + ( COUNT ( * ) ) FROM tab2
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3120
SELECT + COUNT( * ) / - CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3120
SELECT + COUNT ( * ) / - CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 29 + - - 59 AS col0 FROM tab0
----
1422
2930
349

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3122
SELECT - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + - col1 col2 FROM tab2 AS cor0
----
-102
-134
-154

query II rowsort
SELECT ALL + col1 + - 85 AS col2, 25 AS col2 FROM tab1 AS cor0
----
-38
25
-71
25
-80
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + - MAX( - 74 ) + - COUNT( * ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3125
SELECT + - MAX ( - 74 ) + - COUNT ( * ) FROM tab0 AS cor0
----
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + col0 >= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 50 + + - col2 AS col0, - 29 + 58 FROM tab0 AS cor0
----
-49
29
3
29
40
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 + col1 IN ( - + col1 - + col2, - col2, - col1, col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3129
SELECT ALL - - COUNT( DISTINCT - col2 ) DIV + - 5 - - + COUNT( * ) - + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - - COUNT ( DISTINCT - col2 ) / + - 5 - - + COUNT ( * ) - + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT COUNT( * ) * 1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3130
SELECT COUNT ( * ) * 1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 77 AND + - 57 - 69
----

query I rowsort
SELECT ALL - col2 - - + col1 * col1 + - col0 AS col1 FROM tab1
----
-119
2050
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT - COUNT( * ) * - ( - + COUNT( * ) ) * + + 21 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-3133
SELECT - COUNT ( * ) * - ( - + COUNT ( * ) ) * + + 21 FROM tab1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT - + COUNT( * ) + SUM( col1 ) col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3134
SELECT DISTINCT - + COUNT ( * ) + SUM ( col1 ) col1 FROM tab0 AS cor0
----
100

query I rowsort
SELECT ALL + col2 + 99 + 95 * 10 AS col1 FROM tab2 AS cor0
----
1072
1089
1107

query I rowsort
SELECT DISTINCT + 64 + col1 AS col0 FROM tab2 AS cor0
----
115
131
141

query I rowsort
SELECT - col1 * - + 41 + + - 58 * col0 AS col2 FROM tab2 AS cor0
----
-1603
-555
-577

onlyif mysql # DIV for integer division: 
query II rowsort label-3138
SELECT ALL col0 * + col0 - col0 DIV col2 * - 61, ( + col0 ) FROM tab0 AS cor0
----
225
15
8057
87
9409
97

skipif mysql # not compatible
query II rowsort label-3138
SELECT ALL col0 * + col0 - col0 / col2 * - 61, ( + col0 ) FROM tab0 AS cor0
----
225
15
8057
87
9409
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 15 * + + 48 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 31, + ( col1 ) FROM tab2
----
31
51
31
67
31
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3142
SELECT + + 23 * + col1 * 80 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT + + 23 * + col1 * 80 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col2 * col0 AS col2, 33 + 59 FROM tab1 AS cor0
----
4896
92
5015
92
6188
92

query I rowsort
SELECT - + ( 22 ) * - col0 FROM tab0 AS cor0
----
1914
2134
330

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT + 46 DIV 11 AS col1 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3145
SELECT + 46 / 11 AS col1 FROM tab0 AS cor0
----
4
4
4

query II rowsort
SELECT - col0 AS col0, ( - - 1 ) + - + col0 * - 22 * - 45 * - + col0 FROM tab2 AS cor0
----
-46
2094841
-64
4055041
-75
5568751

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 92 + + ( - 68 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - col1 > - col2
----
85
5
59

query II rowsort
SELECT DISTINCT + col0, - col0 * ( - 34 ) * - + 27 AS col1 FROM tab1 AS cor0
----
51
-46818
85
-78030
91
-83538

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 20 NOT IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL + MAX( + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL + MAX ( + - col1 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + ( col2 ) * 19 AS col2 FROM tab1
----
1121
1292
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT + MAX( - 12 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3153
SELECT + MAX ( - 12 ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL + ( + 26 ) AS col0 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + - col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT - MAX( + 5 ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-3156
SELECT - MAX ( + 5 ) FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + SUM( 53 ) AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-3157
SELECT + SUM ( 53 ) AS col2 FROM tab0
----
159

query II rowsort
SELECT col0, 1 + 97 - - 81 AS col1 FROM tab2 cor0
----
46
179
64
179
75
179

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT ALL + - 51 + col0 DIV - + col2 AS col0 FROM tab0 AS cor0
----
-51
-51
-59

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + - 51 + col0 / - + col2 AS col0 FROM tab0 AS cor0
----
-51
-51
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT + 33 DIV - + 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT + 33 / - + 89 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 80 AS col1, col0 + + - 23 FROM tab2 AS cor0
----
-80
23
-80
41
-80
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 83 < + col0 + - - 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col0 FROM tab2 WHERE NULL NOT IN ( col1, - 48 * + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT + COUNT( + 67 ) AS col0 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + COUNT ( + 67 ) AS col0 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT ALL CAST( - 97 AS SIGNED ) - - col2 FROM tab2
----
-39
-57
-74

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL CAST ( - 97 AS INTEGER ) - - col2 FROM tab2
----
-39
-57
-74

query I rowsort
SELECT col0 + + - ( + col0 ) AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58 AS col0, AVG ( ALL + 42 ) col0 FROM tab2 AS cor0 WHERE - col2 = 66
----
-58
NULL

query II rowsort
SELECT - ( + col0 ) AS col0, - col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT ALL 56 * - col2 * + 8 AS col0 FROM tab0
----
-21056
-44352
-4480

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT + 57 * - - ( 89 ) + + + col2 DIV - + col0 * - col0 FROM tab2 AS cor0
----
5073
5073
5073

skipif mysql # not compatible
query I rowsort label-3170
SELECT + 57 * - - ( 89 ) + + + col2 / - + col0 * - col0 FROM tab2 AS cor0
----
5073
5073
5073

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT + COUNT( * ) * 82 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3171
SELECT + COUNT ( * ) * 82 FROM tab0 AS cor0
----
246

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 92 NOT BETWEEN - 43 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT ALL - - CAST( NULL AS SIGNED ) / - - 42 / 17 + - - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL - - CAST ( NULL AS INTEGER ) / - - 42 / 17 + - - COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col1 + + + 46 + - 81 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-116
-36
-56

query I rowsort
SELECT DISTINCT + - 86 * col1 AS col2 FROM tab0 AS cor0
----
-1806
-6966
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT CAST( NULL AS SIGNED ) * col1 + + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT CAST ( NULL AS INTEGER ) * col1 + + + col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col1 AS col2, col1 AS col2 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 + + - 36 FROM tab2
----
-59
-76
-94

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE - col2 * + - 15 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3181
SELECT DISTINCT - 30 AS col1, + COUNT( * ) * - COUNT( * ) FROM tab2
----
-30
-9

skipif mysql # not compatible
query II rowsort label-3181
SELECT DISTINCT - 30 AS col1, + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-30
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT ALL col1 * - - CAST( NULL AS SIGNED ) + - + 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL col1 * - - CAST ( NULL AS INTEGER ) + - + 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + col0 * - + 73 FROM tab2 AS cor0
----
-3358
-4672
-5475

query I rowsort
SELECT - + col0 * + 11 FROM tab0 AS cor0
----
-1067
-165
-957

query I rowsort
SELECT + ( + - 58 ) + - 75 AS col2 FROM tab2 AS cor0
----
-133
-133
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL + COUNT( col1 ) + - MAX( - col1 ) - + COUNT( * ) + - 76 * - + 8 FROM tab1 AS cor0
----
613

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + COUNT ( col1 ) + - MAX ( - col1 ) - + COUNT ( * ) + - 76 * - + 8 FROM tab1 AS cor0
----
613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3189
SELECT ALL - 19 - + MAX( col1 ) col1, CAST( - + 39 AS SIGNED ) + - COUNT( * ) + 14 * + 5 - COUNT( * ) FROM tab2 AS cor0
----
-96
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3189
SELECT ALL - 19 - + MAX ( col1 ) col1, CAST ( - + 39 AS INTEGER ) + - COUNT ( * ) + 14 * + 5 - COUNT ( * ) FROM tab2 AS cor0
----
-96
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT DISTINCT + col0 DIV + + col1 - + 45 - + col2 AS col2 FROM tab2 AS cor0
----
-102
-68
-85

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT + col0 / + + col1 - + 45 - + col2 AS col2 FROM tab2 AS cor0
----
-102
-68
-85

query I rowsort
SELECT - - ( 11 ) FROM tab2 AS cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83 col2, - col2 FROM tab0
----
-83
-10
-83
-47
-83
-99

query I rowsort
SELECT DISTINCT + ( col2 ) * - 91 - + 43 AS col1 FROM tab0
----
-4320
-9052
-953

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3195
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND + CAST( + ( col0 ) AS SIGNED ) = col2
----

skipif mysql # not compatible
query III rowsort label-3195
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND + CAST ( + ( col0 ) AS INTEGER ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col1 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query III rowsort
SELECT * FROM tab0 WHERE 24 > - + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL MAX( ALL + + 20 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL MAX ( ALL + + 20 ) FROM tab2 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col2 FROM tab2 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23 col2, - 96 FROM tab2 cor0
----
23
-96
23
-96
23
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT + + ( 41 ) DIV 78 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3202
SELECT + + ( 41 ) / 78 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 57 AS col2, - col1 col1 FROM tab0 AS cor0
----
-57
-1
-57
-21
-57
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + SUM( ALL + + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3204
SELECT + SUM ( ALL + + col0 ) FROM tab0
----
199

query I rowsort
SELECT ALL - 69 * - ( - ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT MIN( - col1 ) * + 60 AS col2 FROM tab1 AS cor0
----
-2820

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT MIN ( - col1 ) * + 60 AS col2 FROM tab1 AS cor0
----
-2820

query I rowsort
SELECT ALL 96 * col2 * - col2 FROM tab1 cor0
----
-334176
-443904
-884736

query I rowsort
SELECT ALL ( - ( - col0 ) ) + - 81 AS col0 FROM tab2 AS cor0
----
-17
-35
-6

query I rowsort
SELECT DISTINCT + + 15 AS col1 FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3210
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + 81, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 > - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT - COUNT( - + col2 ) * - 93 AS col2 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - COUNT ( - + col2 ) * - 93 AS col2 FROM tab2
----
279

query I rowsort
SELECT DISTINCT + col2 * - + 34 FROM tab2
----
-1360
-1972
-782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3214
SELECT DISTINCT + + ( col1 ), - 79 * ( col0 ) col0 FROM tab1 WHERE NOT ( NOT NULL BETWEEN CAST( - - col0 AS SIGNED ) AND + - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3214
SELECT DISTINCT + + ( col1 ), - 79 * ( col0 ) col0 FROM tab1 WHERE NOT ( NOT NULL BETWEEN CAST ( - - col0 AS INTEGER ) AND + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT - col2 + + 50 DIV col1 FROM tab1
----
-49
-67
-93

skipif mysql # not compatible
query I rowsort label-3215
SELECT - col2 + + 50 / col1 FROM tab1
----
-49
-67
-93

query I rowsort
SELECT + col2 * col1 + - 45 * - col1 AS col1 FROM tab1 cor0
----
1974
520
5311

query I rowsort
SELECT DISTINCT - + col2 * - 78 + - col1 FROM tab2 AS cor0
----
1743
3043
4457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT DISTINCT col2 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 17 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT col2 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 17 IS NULL
----

query I rowsort
SELECT DISTINCT 90 * - + col0 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( * ) * - 20 col2 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3220
SELECT - COUNT ( * ) * - 20 col2 FROM tab1
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3221
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) = - 47 * + 55 + - ( - + col2 )
----

skipif mysql # not compatible
query III rowsort label-3221
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) = - 47 * + 55 + - ( - + col2 )
----

query I rowsort
SELECT DISTINCT ( + 80 ) * - + ( 33 ) - - col0 AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + 93 - - - col1 FROM tab1 AS cor0
----
46
79
88

query I rowsort
SELECT ALL - col1 - - 72 + - + col1 AS col2 FROM tab1 AS cor0
----
-22
44
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - - 58, col1 * + + col1, 39, - col2, + 52 + + - col1 )
----

query I rowsort
SELECT ALL - - col1 + col0 AS col2 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) = - - 35
----

query I rowsort
SELECT - col1 + ( + col2 ) - + 5 * + 84 + - - col0 AS col1 FROM tab1
----
-281
-287
-308

query I rowsort
SELECT ALL + - col2 * - + ( ( - col1 ) ) - + col2 * col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT COUNT( 67 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3230
SELECT COUNT ( 67 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + col0 * 92 AS col0 FROM tab1
----
4692
7820
8372

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3232
SELECT ALL CAST( NULL AS DECIMAL ) / + 71 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL CAST ( NULL AS REAL ) / + 71 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 * - col1 AS col1, col0 FROM tab0
----
-1
97
-441
87
-6561
15

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT + ( + + col2 ) * + - col2 + - col2 BETWEEN NULL AND - + 23 * - - 71 + - - 67
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-3235
SELECT ALL + col1 DIV 35, col0 AS col2 FROM tab2
----
1
46
1
75
2
64

skipif mysql # not compatible
query II rowsort label-3235
SELECT ALL + col1 / 35, col0 AS col2 FROM tab2
----
1
46
1
75
2
64

query I rowsort
SELECT - ( + + col1 ) * col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + 58 * + col1 FROM tab0 WHERE NOT + col2 IS NULL
----
1218
4698
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - 77 * - COUNT( * ) * - + COUNT( * ) FROM tab2
----
-693

skipif mysql # not compatible
query I rowsort label-3238
SELECT - 77 * - COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
-693

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 cor0 WHERE NULL BETWEEN col1 AND - - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 44 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT + + 85 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3241
SELECT + + 85 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - ( + 74 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN + 12 AND + col1 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + + - 27 AS col1 FROM tab0 AS cor0
----
-17
20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT SUM( DISTINCT 88 ) * 21 AS col0 FROM tab1
----
1848

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT SUM ( DISTINCT 88 ) * 21 AS col0 FROM tab1
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + 29 + - COUNT( - col2 ) + 99 AS col0 FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-3246
SELECT + 29 + - COUNT ( - col2 ) + 99 AS col0 FROM tab2
----
125

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - - col0 * + 59 IS NOT NULL
----

query I rowsort
SELECT - 82 + + 18 AS col0 FROM tab1
----
-64
-64
-64

query I rowsort
SELECT - 96 * - col0 FROM tab0
----
1440
8352
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT + col0 DIV - 23 FROM tab2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-3250
SELECT + col0 / - 23 FROM tab2
----
-2
-2
-3

query I rowsort
SELECT + 62 * col1 * col2 AS col0 FROM tab0
----
13020
236034
6138

query III rowsort
SELECT * FROM tab0 WHERE + + 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT ALL CAST( col1 AS SIGNED ) + col2 + + + col1 * col0 FROM tab0
----
1343
1858
197

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL CAST ( col1 AS INTEGER ) + col2 + + + col1 * col0 FROM tab0
----
1343
1858
197

query I rowsort
SELECT DISTINCT + 48 + + col2 AS col2 FROM tab2 AS cor0
----
106
71
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + 36 + - - col2 < NULL
----

query I rowsort
SELECT DISTINCT - col2 + + ( - + 90 ) + + col1 + col2 FROM tab2 AS cor0
----
-13
-23
-39

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 AS col0 FROM tab1 cor0
----
2615
7230
8328

query I rowsort
SELECT - 14 + col2 * col2 AS col0 FROM tab2
----
1586
3350
515

query II rowsort
SELECT ALL 7 AS col2, - 34 FROM tab1 AS cor0
----
7
-34
7
-34
7
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE + 44 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE + 44 IS NULL
----
0

query I rowsort
SELECT + - 97 AS col2 FROM tab2 cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3262
SELECT + CAST( NULL AS SIGNED ) / + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT + CAST ( NULL AS INTEGER ) / + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 75 AS col2 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT - COUNT( * ) DIV + 87 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT - COUNT ( * ) / + 87 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3265
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 <= col1 * - - col0 + + col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT + MAX( + + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT + MAX ( + + col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - ( - - 45 ) FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL - ( 13 ) AS col0 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT + COUNT( * ) * 11 AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3270
SELECT + COUNT ( * ) * 11 AS col0 FROM tab0
----
33

query I rowsort
SELECT DISTINCT - 70 * + col1 AS col1 FROM tab0 AS cor0
----
-1470
-5670
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + - col0 BETWEEN - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT col1 DIV 68 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3273
SELECT col1 / 68 AS col1 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + 41 + + 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3275
SELECT COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3275
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + ( col1 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + + ( - col2 ) * + 60 AND + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 22 + 53 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3279
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) * col0 * col1 + + + col2 + - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3279
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) * col0 * col1 + + + col2 + - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 <> + - 83
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL < - - col0 + 9 + - ( - 68 ) )
----

query I rowsort
SELECT DISTINCT col2 + col0 + + 31 * 4 AS col0 FROM tab1 AS cor0
----
268
271
283

query I rowsort
SELECT DISTINCT 53 * + col0 + - col0 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL + COUNT( ALL ( - 75 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + COUNT ( ALL ( - 75 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 20 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - - col1 + - + col0 FROM tab0
----
0
1200
1740

query I rowsort
SELECT - col2 + - ( col0 ) * - - 15 FROM tab0
----
-1315
-1554
-272

query I rowsort
SELECT 76 + ( - + col0 ) FROM tab1
----
-15
-9
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT ALL - 67 + + MAX( ALL - col2 ) col0, - ( + 14 ) AS col1 FROM tab2
----
-90
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3289
SELECT ALL - 67 + + MAX ( ALL - col2 ) col0, - ( + 14 ) AS col1 FROM tab2
----
-90
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT + 69 * + col2 + - col0 + - CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT + 69 * + col2 + - col0 + - CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 44 * col0 + - + col0 * - col1 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT 80 + col1 * - ( 99 ) + - col1 FROM tab0 cor0
----
-20
-2020
-8020

query I rowsort
SELECT + 99 * + - 42 + col0 AS col1 FROM tab1 AS cor0
----
-4067
-4073
-4107

query I rowsort
SELECT - col1 + + - 70 FROM tab2 AS cor0
----
-121
-137
-147

query I rowsort
SELECT DISTINCT - col2 * + - col2 + - + col1 + - - col0 * + col2 AS col1 FROM tab2 AS cor0
----
1536
4083
7647

query I rowsort
SELECT DISTINCT - + ( col1 ) + - 11 * - - 16 FROM tab2 cor0
----
-227
-243
-253

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 51 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 98 + - + 68 AS col2 FROM tab2
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + ( + col0 ), - ( col0 ) AS col1 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3301
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 86 / - + 98 - + + 93 / CAST( - 86 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3301
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 86 / - + 98 - + + 93 / CAST ( - 86 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( + 67 ) AS col0, 33 FROM tab1 AS cor0
----
67
33
67
33
67
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL - - COUNT( * ) * - - MIN( + col0 ) + + - 11 AS col1 FROM tab1 AS cor0
----
142

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - - COUNT ( * ) * - - MIN ( + col0 ) + + - 11 AS col1 FROM tab1 AS cor0
----
142

query I rowsort
SELECT DISTINCT col1 * - - 65 FROM tab0 AS cor0
----
1365
5265
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - - COUNT( ALL - col1 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3306
SELECT - - COUNT ( ALL - col1 ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - 83 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 * + 83 col0 FROM tab2
----
5312
5312
5312

query III rowsort
SELECT * FROM tab2 WHERE NOT 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col0 FROM tab1
----
14
47
5

query I rowsort
SELECT 67 * - + col0 AS col2 FROM tab1
----
-3417
-5695
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL - MAX( - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - MAX ( - col1 ) FROM tab1
----
5

query I rowsort
SELECT ALL + 52 * - 57 FROM tab2 AS cor0
----
-2964
-2964
-2964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT 88 * SUM( col1 ) * + + CAST( + COUNT( * ) AS SIGNED ) - - CAST( NULL AS SIGNED ) + - 92 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT 88 * SUM ( col1 ) * + + CAST ( + COUNT ( * ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) + - 92 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT ALL - COUNT( * ) DIV + - MIN( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - COUNT ( * ) / + - MIN ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT DISTINCT - - 68 * - CAST( - 72 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
230112
24480
68544

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - - 68 * - CAST ( - 72 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
230112
24480
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3317
SELECT DISTINCT + - COUNT( * ), ( + - CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) col2 FROM tab0 AS cor0
----
-3
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3317
SELECT DISTINCT + - COUNT ( * ), ( + - CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col2 FROM tab0 AS cor0
----
-3
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + CAST( + + 36 AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 0, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3318
SELECT + CAST ( + + 36 AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 0, col2 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT DISTINCT + 95 AS col1, - 24 + - + MIN( - - 67 ) FROM tab0
----
95
-91

skipif mysql # not compatible
query II rowsort label-3319
SELECT DISTINCT + 95 AS col1, - 24 + - + MIN ( - - 67 ) FROM tab0
----
95
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + 72 FROM tab2
----
51
72
67
72
77
72

query I rowsort
SELECT - 47 / col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL AND NULL IS NULL
----

query I rowsort
SELECT ALL 59 + col1 + + 62 * + + 53 FROM tab1 AS cor0
----
3350
3359
3392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3323
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT ALL + 10 AS col0, COUNT( * ) FROM tab0 AS cor0
----
10
3

skipif mysql # not compatible
query II rowsort label-3324
SELECT ALL + 10 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
10
3

query I rowsort
SELECT DISTINCT + col1 + + col2 + col1 AS col1 FROM tab0 AS cor0
----
101
209
52

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3326
SELECT ALL + 3 * col1 + CAST( NULL AS DECIMAL ) * col1 / + + col2 + 60, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3326
SELECT ALL + 3 * col1 + CAST ( NULL AS REAL ) * col1 / + + col2 + 60, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <> + 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE - col1 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL - 19 + - 40 + COUNT( * ) AS col1 FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - 19 + - 40 + COUNT ( * ) AS col1 FROM tab2 cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3330
SELECT - col2 + CAST( NULL AS SIGNED ) - + + 85 * + col1 / 15 + + col1, - col0 * + ( - 20 ) + - 33 * - - 32 AS col1 FROM tab1 AS cor0
----
NULL
-36
NULL
644
NULL
764

skipif mysql # not compatible
query II rowsort label-3330
SELECT - col2 + CAST ( NULL AS INTEGER ) - + + 85 * + col1 / 15 + + col1, - col0 * + ( - 20 ) + - 33 * - - 32 AS col1 FROM tab1 AS cor0
----
NULL
-36
NULL
644
NULL
764

onlyif mysql # aggregate syntax: 
query II rowsort label-3331
SELECT DISTINCT 56 + - COUNT( * ), - 88 * - - COUNT( - col2 ) AS col0 FROM tab1
----
53
-264

skipif mysql # not compatible
query II rowsort label-3331
SELECT DISTINCT 56 + - COUNT ( * ), - 88 * - - COUNT ( - col2 ) AS col0 FROM tab1
----
53
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-3332
SELECT - MAX( DISTINCT - col1 ) AS col2, 6 + - COUNT( * ) * + 27 FROM tab0
----
1
-75

skipif mysql # not compatible
query II rowsort label-3332
SELECT - MAX ( DISTINCT - col1 ) AS col2, 6 + - COUNT ( * ) * + 27 FROM tab0
----
1
-75

query I rowsort
SELECT col2 * - col1 * + 30 AS col1 FROM tab0
----
-114210
-2970
-6300

query I rowsort
SELECT - col0 - 48 AS col0 FROM tab1 AS cor0
----
-133
-139
-99

query I rowsort
SELECT ALL + - col0 + ( - col1 ) + - ( + col0 ) FROM tab0 AS cor0
----
-111
-195
-195

query I rowsort
SELECT + col1 - 86 AS col1 FROM tab1 cor0
----
-39
-72
-81

query I rowsort
SELECT col2 - - 98 AS col1 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT + 41 + + col0 AS col0 FROM tab2
----
105
116
87

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + + 51
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 70 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT COUNT( * ) * - + 60 * 31 FROM tab0 AS cor0
----
-5580

skipif mysql # not compatible
query I rowsort label-3341
SELECT COUNT ( * ) * - + 60 * 31 FROM tab0 AS cor0
----
-5580

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 63 / - 36 * - ( - 64 ) + + col2 )
----

query I rowsort
SELECT DISTINCT ( - col1 ) * + - col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL + 0 * 77 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 6 col1, col1 FROM tab1 AS cor0
----
6
14
6
47
6
5

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 - - + col0 AS col1 FROM tab1 AS cor0
----
14
65
47
138
5
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT DISTINCT + 40 col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
40
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3347
SELECT DISTINCT + 40 col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
40
3

query I rowsort
SELECT ALL - - col0 * - col0 AS col1 FROM tab1 cor0 WHERE NOT 51 IS NULL
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + 6 * - 91 FROM tab1 AS cor0
----
-546
-546
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT + - CAST( NULL AS SIGNED ) / - 62 / 94 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT + - CAST ( NULL AS INTEGER ) / - 62 / 94 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 27 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL 90 * - 29 + - COUNT( * ) FROM tab1 AS cor0
----
-2613

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL 90 * - 29 + - COUNT ( * ) FROM tab1 AS cor0
----
-2613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col1 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + ( col2 ) + 61 FROM tab0 AS cor0
----
108
160
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + + - 64 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + - 64 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT 57 AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT - 53 DIV 61 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 53 / 61 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 86 + + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3361
SELECT ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + MIN( - + 43 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3362
SELECT + MIN ( - + 43 ) FROM tab1 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL - 2 + + 47 - - MAX( ALL col0 ) * + COUNT( * ) FROM tab1 AS cor0
----
318

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - 2 + + 47 - - MAX ( ALL col0 ) * + COUNT ( * ) FROM tab1 AS cor0
----
318

onlyif mysql # DIV for integer division: 
query III rowsort label-3364
SELECT - col0 AS col1, 64 DIV - col1 AS col1, - col0 + - ( + 3 ) AS col1 FROM tab1 cor0
----
9 values hashing to 9911c315ed2bbed0e7a675e03f9b77b0

skipif mysql # not compatible
query III rowsort label-3364
SELECT - col0 AS col1, 64 / - col1 AS col1, - col0 + - ( + 3 ) AS col1 FROM tab1 cor0
----
9 values hashing to 9911c315ed2bbed0e7a675e03f9b77b0

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE + 93 IS NULL
----

query I rowsort
SELECT DISTINCT + 93 + - - 24 * + 69 FROM tab0 AS cor0
----
1749

query III rowsort
SELECT * FROM tab1 WHERE + + ( 55 ) <> NULL
----

query I rowsort
SELECT ALL + col2 - + - ( + + 36 ) FROM tab0
----
135
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT 38 * COUNT( ALL - col2 ) col1 FROM tab2
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3369
SELECT DISTINCT 38 * COUNT ( ALL - col2 ) col1 FROM tab2
----
114

query I rowsort
SELECT DISTINCT + col0 + - col2 * col2 FROM tab1
----
-3396
-4533
-9165

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT ALL - ( col2 ) DIV - col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - ( col2 ) / - col1 FROM tab1
----
1
11
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 16 + col1 col2 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT DISTINCT + 78 + - + SUM( + - col2 ) FROM tab2 WHERE NULL <> + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT + 78 + - + SUM ( + - col2 ) FROM tab2 WHERE NULL <> + 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3375
SELECT ALL + MIN( - col2 ) AS col0, - 5 col2 FROM tab0 AS cor0
----
-99
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3375
SELECT ALL + MIN ( - col2 ) AS col0, - 5 col2 FROM tab0 AS cor0
----
-99
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + + col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT DISTINCT - 57 * MIN( + col1 ) col0 FROM tab2
----
-2907

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3377
SELECT DISTINCT - 57 * MIN ( + col1 ) col0 FROM tab2
----
-2907

query I rowsort
SELECT 98 * - col0 AS col0 FROM tab2
----
-4508
-6272
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL MIN( + - 93 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL MIN ( + - 93 ) FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL MAX( ALL + col1 ) + + 41 * + COUNT( * ) col1 FROM tab0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3380
SELECT ALL MAX ( ALL + col1 ) + + 41 * + COUNT ( * ) col1 FROM tab0
----
204

query I rowsort
SELECT DISTINCT + col1 + + + col0 AS col0 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT - - col0, col1 * + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 37 IS NULL
----
15
6561
87
441
97
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( 40 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT + CAST( + col2 AS SIGNED ) + col2 * + col1 AS col0 FROM tab1
----
1440
3264
354

skipif mysql # not compatible
query I rowsort label-3384
SELECT + CAST ( + col2 AS INTEGER ) + col2 * + col1 AS col0 FROM tab1
----
1440
3264
354

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 * col1 ) <> - col0 + + col2
----

query I rowsort
SELECT DISTINCT col1 / col1 AS col0 FROM tab1 WHERE NOT 15 + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - ( col1 ) / + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 1 < NULL
----

query I rowsort
SELECT 61 - + col1 AS col1 FROM tab1
----
14
47
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL - 33 + + COUNT( * ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - 33 + + COUNT ( * ) FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT + 43 * MAX( ALL col2 * + 84 ) AS col2 FROM tab1
----
346752

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + 43 * MAX ( ALL col2 * + 84 ) AS col2 FROM tab1
----
346752

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT - col0 * - col0 NOT BETWEEN + col1 - ( + col1 + + col0 ) AND col2
----

query I rowsort
SELECT - col2 * + 24 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE - col1 = col2
----

skipif mysql # not compatible
query I rowsort label-3394
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE - col1 = col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) <= + 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT ALL CAST( - ( col0 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL CAST ( - ( col0 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3397
SELECT ALL * FROM tab2 WHERE 14 / CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-3397
SELECT ALL * FROM tab2 WHERE 14 / CAST ( NULL AS REAL ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + 25 * + col1 AS col2 FROM tab2
----
1275
1675
1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT - ( - CAST( NULL AS SIGNED ) ) + - 60 * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT - ( - CAST ( NULL AS INTEGER ) ) + - 60 * COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + ( col0 ) + col2 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab1 WHERE NOT + 56 + 7 * ( ( 80 ) ) IS NULL
----
1344
295
3196

query I rowsort
SELECT col1 * - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 79 * col2 AS col1 FROM tab0
----
-3713
-7821
-790

query I rowsort
SELECT DISTINCT 94 * 42 AS col0 FROM tab0
----
3948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT DISTINCT COUNT( * ) DIV + COUNT( - col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT COUNT ( * ) / + COUNT ( - col2 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( - 67 ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / 70 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL - COUNT( * ) * + 89 AS col2 FROM tab0 WHERE NULL NOT BETWEEN 54 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - COUNT ( * ) * + 89 AS col2 FROM tab0 WHERE NULL NOT BETWEEN 54 AND ( NULL )
----
0

query I rowsort
SELECT col2 + 28 FROM tab0
----
127
38
75

query I rowsort
SELECT ALL + 77 AS col2 FROM tab2 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT - col1 DIV + 49 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3411
SELECT - col1 / + 49 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT - 52 * col0 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-2392
-3328
-3900

query I rowsort
SELECT DISTINCT + ( - 91 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 86 ) NOT BETWEEN col0 * col0 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3415
SELECT * FROM tab2 WHERE NOT col2 / 93 NOT BETWEEN ( CAST( col1 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3415
SELECT * FROM tab2 WHERE NOT col2 / 93 NOT BETWEEN ( CAST ( col1 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT + 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT - col2 * - 96 + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 84 / - 60 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - 37 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( col2 * - col2 + col2 )
----
-37
-37
-37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 91 * - 48 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT 37 + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( col0 ) ) <> - col1
----
37

skipif mysql # not compatible
query I rowsort label-3424
SELECT 37 + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( col0 ) ) <> - col1
----
37

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL BETWEEN + col2 AND col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 43 IS NOT NULL
----

query I rowsort
SELECT 7 AS col0 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 43 AND - ( - 93 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab2 WHERE 16 NOT BETWEEN + col2 AND - 10
----
-60

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT + ( + 51 ) / - 65 BETWEEN col2 * col0 AND - col0
----
51
85
91

query I rowsort
SELECT ALL ( - + col2 ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - MAX( ALL + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3433
SELECT - MAX ( ALL + col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT + 95 + - + col0 AS col1 FROM tab1
----
10
4
44

query I rowsort
SELECT col0 * + col1 + col1 * col2 FROM tab1 AS cor0
----
2058
720
7473

query I rowsort
SELECT col2 * - + col2 + + 68 + col0 AS col0 FROM tab2 cor0
----
-1468
-3221
-415

query I rowsort
SELECT col2 + + + col2 + + col0 AS col1 FROM tab2 AS cor0
----
144
191
92

query I rowsort
SELECT ALL col2 * 92 AS col1 FROM tab1 AS cor0 WHERE NOT 66 <= ( + col1 + + col1 )
----
5428
8832

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 84 IN ( 48 ) AND 89 <> - 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT ALL + col2 + + CAST( - ( + 23 ) AS SIGNED ) * - CAST( col0 - col1 AS SIGNED ) FROM tab1 cor0
----
1080
1899
947

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + col2 + + CAST ( - ( + 23 ) AS INTEGER ) * - CAST ( col0 - col1 AS INTEGER ) FROM tab1 cor0
----
1080
1899
947

query I rowsort
SELECT ( - col1 ) * - 81 FROM tab0
----
1701
6561
81

query I rowsort
SELECT 23 * + 66 FROM tab0
----
1518
1518
1518

query I rowsort
SELECT + + 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col1 = 1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 30 NOT IN ( + col1 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 - + - ( - col0 ) - - col2 col0 FROM tab1 AS cor0
----
1389
269
3173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 - col0 col1 FROM tab2 AS cor0
----
-2
-20
-31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 36 = NULL
----

query I rowsort
SELECT 40 FROM tab2 AS cor0 WHERE ( col1 * + col2 ) NOT BETWEEN col1 + col2 AND ( + 34 * + col1 )
----
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT ALL - + COUNT( * ) col0, - SUM( + - col0 ) col0 FROM tab1 AS cor0
----
-3
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3450
SELECT ALL - + COUNT ( * ) col0, - SUM ( + - col0 ) col0 FROM tab1 AS cor0
----
-3
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - ( col1 ) col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT 60 + + 45 AS col0 FROM tab1 AS cor0
----
105
105
105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3453
SELECT DISTINCT - col2 / - + 3 - - CAST( NULL AS DECIMAL ) + 63 + + col2 / col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - col2 / - + 3 - - CAST ( NULL AS REAL ) + 63 + + col2 / col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3454
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - col1 * + col0 NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-3454
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - col1 * + col0 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT DISTINCT 6 + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT 6 + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 * + col0 AS col1 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT - col1 + - 57 FROM tab1
----
-104
-62
-71

query I rowsort
SELECT ALL 98 - - 13 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
111
111
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT ALL + 27 - - col1 + - ( + 60 ) * - CAST( 1 AS SIGNED ) FROM tab0
----
108
168
88

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + 27 - - col1 + - ( + 60 ) * - CAST ( 1 AS INTEGER ) FROM tab0
----
108
168
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 94 - - col0 AS col2 FROM tab0
----
-7
-79
3

query III rowsort
SELECT * FROM tab2 WHERE + + 53 BETWEEN + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 21 + col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - + 3 FROM tab1
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT DISTINCT + COUNT( ALL + 26 ) FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + COUNT ( ALL + 26 ) FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
3

query I rowsort
SELECT col1 * - 63 + + + 8 AS col0 FROM tab0
----
-1315
-5095
-55

query I rowsort
SELECT col1 * - 8 * - 99 FROM tab1
----
11088
37224
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL - 1 - - 86 - - - COUNT( * ) * + + COUNT( * ) col2 FROM tab2
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3468
SELECT ALL - 1 - - 86 - - - COUNT ( * ) * + + COUNT ( * ) col2 FROM tab2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3469
SELECT - 93 DIV + COUNT( * ) col0 FROM tab0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3469
SELECT - 93 / + COUNT ( * ) col0 FROM tab0
----
-31

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT + + COUNT( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + + COUNT ( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <> + col2 * + 99 * col2 + col2 + - col1
----

query I rowsort
SELECT - 76 * - 63 FROM tab2 AS cor0
----
4788
4788
4788

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT DISTINCT + col2 DIV + + 16 FROM tab0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + col2 / + + 16 FROM tab0
----
0
2
6

query I rowsort
SELECT - 45 FROM tab0 WHERE NOT - col2 * + + col1 + col0 IS NULL
----
-45
-45
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE - 89 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT DISTINCT MIN( - + ( - col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT MIN ( - + ( - col0 ) ) AS col0 FROM tab2
----
46

query I rowsort
SELECT DISTINCT ( - + ( 82 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-82

query I rowsort
SELECT - 88 - - - 88 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5422b73687e5d07933bd6d3933181a00

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT ALL - COUNT( * ) + 5 FROM tab0 AS cor0 WHERE NOT col1 * - CAST( + col0 AS SIGNED ) < + + 3
----
5

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL - COUNT ( * ) + 5 FROM tab0 AS cor0 WHERE NOT col1 * - CAST ( + col0 AS INTEGER ) < + + 3
----
5

query I rowsort
SELECT DISTINCT - - 68 AS col1 FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT + + ( 13 ) FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3485
SELECT + CAST( - 67 AS SIGNED ) + + col1 AS col0, - col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-20
NULL
-53
NULL
-62
NULL

skipif mysql # not compatible
query II rowsort label-3485
SELECT + CAST ( - 67 AS INTEGER ) + + col1 AS col0, - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-20
NULL
-53
NULL
-62
NULL

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab0 WHERE NOT ( NOT 94 IS NOT NULL )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT DISTINCT 97 DIV col1 FROM tab0
----
1
4
97

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT 97 / col1 FROM tab0
----
1
4
97

query II rowsort
SELECT ALL col2 AS col0, + col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / - 89 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT MIN( ALL - col1 ) + ( - - COUNT( * ) ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT MIN ( ALL - col1 ) + ( - - COUNT ( * ) ) FROM tab2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT ALL 24 * COUNT( * ) FROM tab2 WHERE ( - col1 ) BETWEEN - col2 + + col2 * + - ( - 91 ) AND ( CAST( NULL AS SIGNED ) * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL 24 * COUNT ( * ) FROM tab2 WHERE ( - col1 ) BETWEEN - col2 + + col2 * + - ( - 91 ) AND ( CAST ( NULL AS INTEGER ) * col0 )
----
0

query I rowsort
SELECT DISTINCT + - 12 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-12

query II rowsort
SELECT DISTINCT col1, col2 + + col0 AS col2 FROM tab2 AS cor0
----
51
69
67
133
77
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col2 ) + + 72 FROM tab2
----
112
130
95

query I rowsort
SELECT col2 + 21 * ( col1 ) FROM tab2
----
1094
1465
1657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3497
SELECT COUNT( * ) DIV - COUNT( * ) + - CAST( + - ( + ( - - MIN( col1 ) ) ) AS SIGNED ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT COUNT ( * ) / - COUNT ( * ) + - CAST ( + - ( + ( - - MIN ( col1 ) ) ) AS INTEGER ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT ( + MAX( + col1 ) ) col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3498
SELECT DISTINCT ( + MAX ( + col1 ) ) col1 FROM tab0 cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 23 + - col0 - 92 = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - COUNT( DISTINCT 59 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3500
SELECT - COUNT ( DISTINCT 59 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT DISTINCT + CAST( - 30 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 * - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT + CAST ( - 30 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT + SUM( DISTINCT 75 ) - + COUNT( * ) + - 15 AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + SUM ( DISTINCT 75 ) - + COUNT ( * ) + - 15 AS col2 FROM tab0 AS cor0
----
57

query I rowsort
SELECT ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + - + 39 NOT IN ( - + col2, col1 / + - 58 )
----

query I rowsort
SELECT 67 * - 42 - - - 39 FROM tab0
----
-2853
-2853
-2853

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL NOT IN ( + - 46 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT - CAST( + - SUM( DISTINCT - - col2 ) AS SIGNED ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3508
SELECT - CAST ( + - SUM ( DISTINCT - - col2 ) AS INTEGER ) AS col0 FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3509
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT MIN( DISTINCT + col0 ) * + 14 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3510
SELECT MIN ( DISTINCT + col0 ) * + 14 FROM tab0 AS cor0
----
210

query II rowsort
SELECT col2, - col0 * + col2 AS col0 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

query II rowsort
SELECT ALL - + col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3513
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + ( + ( - ( - - col2 ) ) ) ) < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3513
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + ( + ( - ( - - col2 ) ) ) ) < + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3515
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + col0 >= - CAST( - 79 AS DECIMAL ) / - col2
----

skipif mysql # not compatible
query III rowsort label-3515
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + col0 >= - CAST ( - 79 AS REAL ) / - col2
----

query I rowsort
SELECT DISTINCT + + 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
22

query I rowsort
SELECT DISTINCT + + col2 * + 56 + + col1 FROM tab2 AS cor0
----
1339
2317
3315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT DISTINCT - 36 DIV + + MIN( + 12 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - 36 / + + MIN ( + 12 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col0 * + + 15 FROM tab2 AS cor0
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT ALL - + CAST( - - col2 AS SIGNED ) + ( + 42 ) col2 FROM tab2 AS cor0
----
-16
19
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3520
SELECT ALL - + CAST ( - - col2 AS INTEGER ) + ( + 42 ) col2 FROM tab2 AS cor0
----
-16
19
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 67 )
----

query I rowsort
SELECT DISTINCT - col2 + + - ( + 30 ) FROM tab1 AS cor0
----
-126
-89
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT ALL - col0 DIV + - 49 + - col1 + - 0 DIV 96 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL - col0 / + - 49 + - col1 + - 0 / 96 FROM tab1 AS cor0
----
-13
-4
-46

query II rowsort
SELECT ALL - - 47, 91 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IN ( - 80, col1 )
----
47
91
47
91
47
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT DISTINCT ( + 32 ) DIV - - 76 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT ( + 32 ) / - - 76 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col1 * - 42 + 94 FROM tab1 AS cor0
----
-116
-1880
-494

query I rowsort
SELECT ALL + 7 AS col2 FROM tab1 cor0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3528
SELECT DISTINCT SUM( DISTINCT - + CAST( + ( + 55 ) AS SIGNED ) ) AS col0 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT SUM ( DISTINCT - + CAST ( + ( + 55 ) AS INTEGER ) ) AS col0 FROM tab2
----
-55

query I rowsort
SELECT DISTINCT - col1 + - 86 + + 33 AS col2 FROM tab1
----
-100
-58
-67

query III rowsort
SELECT * FROM tab1 WHERE NULL < col2
----

query I rowsort
SELECT 67 + + col0 FROM tab0
----
154
164
82

query I rowsort
SELECT DISTINCT - col1 * - - 5 AS col1 FROM tab1
----
-235
-25
-70

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NULL AND NULL NOT BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL - + 40 + COUNT( * ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - + 40 + COUNT ( * ) FROM tab1 AS cor0
----
-37

query I rowsort
SELECT - col0 + col2 - + + 7 * - col2 FROM tab1 AS cor0
----
387
453
717

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT col2 DIV + + ( - - 85 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3538
SELECT col2 / + + ( - - 85 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT - 45 DIV + 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 45 / + 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + col2 - - 30 FROM tab2 AS cor0
----
-10
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT - 28 - - COUNT( * ) + - 47 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3541
SELECT - 28 - - COUNT ( * ) + - 47 FROM tab2 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL - + COUNT( - - 1 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3542
SELECT ALL - + COUNT ( - - 1 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3543
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 IN ( + - col2 * col0, - CAST( 24 AS SIGNED ) ) AND NOT + 62 / 69 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3543
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 IN ( + - col2 * col0, - CAST ( 24 AS INTEGER ) ) AND NOT + 62 / 69 IS NULL
----

query I rowsort
SELECT DISTINCT + + 4 AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT - + ( - 3 ) + + 14 FROM tab1 AS cor0
----
17
17
17

query II rowsort
SELECT DISTINCT 14, col1 + - col0 AS col1 FROM tab1 cor0
----
14
-37
14
-44
14
-80

query I rowsort
SELECT + - ( - + 92 ) FROM tab0 AS cor0
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 IN ( - - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT IN ( + - 2 / + + 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3551
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ( ( 79 ) ) * + - 41 AS col2 FROM tab0
----
-3239
-3239
-3239

query I rowsort
SELECT DISTINCT col2 * + 85 + - col1 + - + col0 + - col1 * + 46 - col2 FROM tab2 AS cor0
----
-323
-511
1648

query I rowsort
SELECT + col1 * col2 AS col0 FROM tab0 cor0 WHERE NOT 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3556
SELECT ALL + 19 FROM tab0 AS cor0 WHERE + ( col0 ) NOT IN ( - col1 * - col1 + + CAST( - 95 AS DECIMAL ), - col1 ) OR ( NULL ) >= NULL
----
19
19
19

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + 19 FROM tab0 AS cor0 WHERE + ( col0 ) NOT IN ( - col1 * - col1 + + CAST ( - 95 AS REAL ), - col1 ) OR ( NULL ) >= NULL
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT + MAX( ALL - 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT + MAX ( ALL - 4 ) FROM tab0
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3558
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - 4 * + 39 * + col1 + - + 10 AS col1 FROM tab2 AS cor0
----
-10529
-12099
-8017

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT SUM( DISTINCT 99 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT SUM ( DISTINCT 99 ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL col0 + + 30 + - 30 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT + COUNT( + + 43 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + COUNT ( + + 43 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( col1 )
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col0 * 8 + - ( ( - 62 ) ) IS NULL
----

query I rowsort
SELECT col0 * + 84 AS col2 FROM tab0
----
1260
7308
8148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * - - col1 col2 FROM tab0
----
-1296
-16
-336

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 13 * + col2 AND 6 * 79 / + col0
----

query I rowsort
SELECT DISTINCT col2 * - 75 AS col1 FROM tab2
----
-1725
-3000
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT DISTINCT COUNT( ALL - - 42 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT COUNT ( ALL - - 42 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT 64 + COUNT( * ) * - 17 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-3570
SELECT 64 + COUNT ( * ) * - 17 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT + ( - + MAX( col0 ) ) - + MAX( - col0 ) * 29 AS col2 FROM tab1
----
1388

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + ( - + MAX ( col0 ) ) - + MAX ( - col0 ) * 29 AS col2 FROM tab1
----
1388

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT SUM( - col2 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-3572
SELECT SUM ( - col2 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-223

query I rowsort
SELECT + 7 * + 71 * + col1 * col0 FROM tab2 AS cor0
----
1165962
2449216
2497425

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 < NULL
----

query II rowsort
SELECT DISTINCT col2, + 51 AS col1 FROM tab2
----
23
51
40
51
58
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT ALL SUM( - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL SUM ( - col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT - ( SUM( - ( col2 ) ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - ( SUM ( - ( col2 ) ) ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT MAX( - + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3578
SELECT MAX ( - + col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT ALL - 61 FROM tab1 WHERE 48 <> NULL
----

query II rowsort
SELECT col1 AS col1, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT DISTINCT - col2, ( - 9 ) AS col2 FROM tab0 AS cor0
----
-10
-9
-47
-9
-99
-9

query I rowsort
SELECT - - 58 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT col2 + - col0 + - - col1 AS col0 FROM tab1 AS cor0
----
-21
24
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - ( - col1 ) + - - col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + COUNT( * ) + - - ( 74 ) * + 46 * + 83 FROM tab1 cor0
----
282535

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + COUNT ( * ) + - - ( 74 ) * + 46 * + 83 FROM tab1 cor0
----
282535

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 78 + + 28 + + 48 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL col1 + - 89 AS col1 FROM tab2 AS cor0
----
-12
-22
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT DISTINCT - 56 * - + COUNT( col2 ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT - 56 * - + COUNT ( col2 ) FROM tab2
----
168

query I rowsort
SELECT DISTINCT - 50 * + - col2 AS col0 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT 18 + - - col1 + + col2 FROM tab0
----
118
146
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT + MIN( - - 84 ) FROM tab1 WHERE col0 NOT IN ( col0, col1 * + + col0 * - 24 + - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT + MIN ( - - 84 ) FROM tab1 WHERE col0 NOT IN ( col0, col1 * + + col0 * - 24 + - 91 )
----
NULL

query I rowsort
SELECT - + ( + col0 ) + + - 38 FROM tab2 WHERE - 67 = + col1 - - col1
----

query II rowsort
SELECT DISTINCT 1 * + + col2 * + 95, + col2 FROM tab1
----
5605
59
6460
68
9120
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NULL BETWEEN - + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3596
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL BETWEEN - + col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3597
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) >= col0
----

skipif mysql # not compatible
query III rowsort label-3597
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) >= col0
----

query I rowsort
SELECT 37 + - 89 + - 39 + - col0 * + + col0 * - 97 FROM tab1 AS cor0
----
252206
700734
803166

query I rowsort
SELECT + - 18 + + + col0 FROM tab2 AS cor0
----
28
46
57

query I rowsort
SELECT DISTINCT 20 + - 30 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - col2 - - ( - 96 ) + col2 * - - 0 + - col2 + 66 * + - col1 FROM tab2 AS cor0
----
-3508
-4634
-5258

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL + 54 - COUNT( * ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + 54 - COUNT ( * ) FROM tab1 cor0
----
51

query II rowsort
SELECT col2 * - col2, col1 * 69 * col2 AS col2 FROM tab1
----
-3481
20355
-4624
220524
-9216
92736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 62 ) * + col1 * col2 * + col1 + col1 col0 FROM tab0 AS cor0
----
-19118673
-273399
-6137

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT MIN( - + col1 ) AS col0, 5 col1 FROM tab2 AS cor0
----
-77
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3605
SELECT MIN ( - + col1 ) AS col0, 5 col1 FROM tab2 AS cor0
----
-77
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3606
SELECT + 42 DIV - col1 AS col1 FROM tab0
----
-2
-42
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT + 42 / - col1 AS col1 FROM tab0
----
-2
-42
0

query I rowsort
SELECT - 9 FROM tab2 WHERE NOT NULL <= ( - 25 )
----

query I rowsort
SELECT DISTINCT 20 * - 24 AS col2 FROM tab0
----
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
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-3609
SELECT DISTINCT ( - col2 ) / col2 col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT - 20 + col1 + - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 40 * col0 * - col0 FROM tab2
----
-163840
-225000
-84640

query II rowsort
SELECT DISTINCT col1, + ( + ( 98 ) ) FROM tab0
----
1
98
21
98
81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT SUM( DISTINCT - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3613
SELECT SUM ( DISTINCT - col1 ) AS col1 FROM tab0
----
-103

query II rowsort
SELECT ALL - col0 AS col0, + ( - ( + - col1 ) ) * + 13 FROM tab1 AS cor0
----
-51
182
-85
65
-91
611

query I rowsort
SELECT ALL col2 * - 83 AS col2 FROM tab2
----
-1909
-3320
-4814

query I rowsort
SELECT DISTINCT - ( + 38 ) FROM tab0, tab0 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 + + 98 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 + + 98 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT 89 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3618
SELECT 89 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
86

query I rowsort
SELECT DISTINCT col0 * - col0 + + 66 + - - col0 FROM tab2 AS cor0
----
-2004
-3966
-5484

query I rowsort
SELECT + 42 + - 66 AS col0 FROM tab0 cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL + - CAST( - - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col2 * - + 91 < + col2
----
-3

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + - CAST ( - - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col2 * - + 91 < + col2
----
-3

query I rowsort
SELECT + 47 + + - col1 FROM tab2 AS cor0
----
-20
-30
-4

query I rowsort
SELECT DISTINCT 54 + 24 FROM tab0 AS cor0
----
78

query II rowsort
SELECT col2, 13 FROM tab0 AS cor0
----
10
13
47
13
99
13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= col2 * + + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT - SUM( ALL - 10 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3626
SELECT - SUM ( ALL - 10 ) FROM tab2 AS cor0
----
30

query I rowsort
SELECT - 33 AS col1 FROM tab1 WHERE - - col2 = - - col0
----

query I rowsort
SELECT - 78 * - - col1 FROM tab2
----
-3978
-5226
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3629
SELECT CAST( col2 AS SIGNED ) AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
query II rowsort label-3629
SELECT CAST ( col2 AS INTEGER ) AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT - SUM( DISTINCT - + col0 ) * COUNT( * ) AS col1 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-3630
SELECT - SUM ( DISTINCT - + col0 ) * COUNT ( * ) AS col1 FROM tab2
----
555

query I rowsort
SELECT ALL - col0 - - col1 + + + col2 AS col2 FROM tab0
----
-56
113
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT + CAST( NULL AS SIGNED ) - - ( + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT + CAST ( NULL AS INTEGER ) - - ( + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT + SUM( - - 5 ) + + + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3633
SELECT + SUM ( - - 5 ) + + + COUNT ( * ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT 44 * - col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3635
SELECT col1 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT col1 * - + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + 36 * - + col0 AS col0 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT COUNT( DISTINCT col1 ) * + 62 AS col0 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3638
SELECT COUNT ( DISTINCT col1 ) * + 62 AS col0 FROM tab1 AS cor0
----
186

query I rowsort
SELECT ALL + ( 30 ) FROM tab1 cor0
----
30
30
30

query I rowsort
SELECT ALL - col0 * + 57 FROM tab0 AS cor0
----
-4959
-5529
-855

query I rowsort
SELECT 69 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NULL > ( NULL )
----

query I rowsort
SELECT ( - 20 ) AS col0 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL 69 * - 26 * - COUNT( * ) AS col2 FROM tab1
----
5382

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL 69 * - 26 * - COUNT ( * ) AS col2 FROM tab1
----
5382

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 38 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT MIN( 63 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3646
SELECT MIN ( 63 ) FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL MIN( DISTINCT + 10 ) FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL MIN ( DISTINCT + 10 ) FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 + col0 col0, + col0 * + ( col2 ) AS col2, - col1 + + col2 + + - col0 FROM tab1 cor0
----
9 values hashing to de97f038199cb1304325acee5d498633

query I rowsort
SELECT DISTINCT 93 + - col2 AS col1 FROM tab1 AS cor0
----
-3
25
34

query I rowsort
SELECT DISTINCT 1 + 50 FROM tab0 AS cor0
----
51

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE - 68 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT + MIN( ALL + + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + MIN ( ALL + + col0 ) AS col1 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - ( + 63 ) - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - ( + 63 ) - col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT DISTINCT 57 + + MAX( ALL - 91 ) col0, + 89 FROM tab1
----
-34
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3655
SELECT DISTINCT 57 + + MAX ( ALL - 91 ) col0, + 89 FROM tab1
----
-34
89

query I rowsort
SELECT DISTINCT - - ( - col0 ) + + + col0 FROM tab0 WHERE - + 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3657
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3657
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT - COUNT( * ), - 22 AS col1 FROM tab1 AS cor0
----
-3
-22

skipif mysql # not compatible
query II rowsort label-3659
SELECT - COUNT ( * ), - 22 AS col1 FROM tab1 AS cor0
----
-3
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + 51 * + - 41 - - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----
-2091

skipif mysql # not compatible
query I rowsort label-3660
SELECT + 51 * + - 41 - - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----
-2091

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT - + COUNT( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE + 80 NOT BETWEEN 72 AND + col0
----
-3

skipif mysql # not compatible
query I rowsort label-3662
SELECT - + COUNT ( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE + 80 NOT BETWEEN 72 AND + col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT 61 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
61
3

skipif mysql # not compatible
query II rowsort label-3663
SELECT 61 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
61
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + SUM( - + 10 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3664
SELECT + SUM ( - + 10 ) FROM tab1 AS cor0
----
-30

query I rowsort
SELECT ALL - ( + 75 ) FROM tab1 AS cor0 WHERE ( 90 ) > 77
----
-75
-75
-75

query I rowsort
SELECT ALL + 69 - - col0 * - col0 - - + col2 AS col0 FROM tab1 AS cor0
----
-2436
-7097
-8144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 - 93 col1 FROM tab1 AS cor0
----
-147
-147
-147

query I rowsort
SELECT ALL - 99 + col1 AS col0 FROM tab1 AS cor0
----
-52
-85
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT DISTINCT - ( - - MIN( ALL - 17 ) ) - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT - ( - - MIN ( ALL - 17 ) ) - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT ALL col0, + col0 + + - col1 FROM tab1 WHERE ( + col1 / - col0 + - + col2 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 83 ) col1 FROM tab0
----
83
83
83

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > + 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT DISTINCT col0 + - CAST( col0 AS SIGNED ) * - col1 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT col0 + - CAST ( col0 AS INTEGER ) * - col1 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 61 * - col0 FROM tab0
----
-43005
-53070
-585783

query II rowsort
SELECT 21, - col1 AS col2 FROM tab1 AS cor0
----
21
-14
21
-47
21
-5

query I rowsort
SELECT col2 + + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
117
125
74

query I rowsort
SELECT + 29 * + 66 FROM tab2
----
1914
1914
1914

query I rowsort
SELECT ALL 55 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT 12 * + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT 12 * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3680
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3680
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( + col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * + - 20 * + col2 FROM tab1
----
-100300
-123760
-97920

query II rowsort
SELECT DISTINCT - 73, col0 AS col2 FROM tab0
----
-73
15
-73
87
-73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL - SUM( ALL - 35 ) AS col2 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL - SUM ( ALL - 35 ) AS col2 FROM tab0
----
105

query I rowsort
SELECT ALL + col1 + - col1 + + col2 AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3687
SELECT * FROM tab2 WHERE NOT + 7 = CAST( + col2 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3687
SELECT * FROM tab2 WHERE NOT + 7 = CAST ( + col2 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, 43 AS col0 FROM tab0 AS cor0
----
1
43
21
43
81
43

query I rowsort
SELECT - col1 + - 30 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-10
152
2132

query I rowsort
SELECT ALL ( - col0 ) + 85 FROM tab0 AS cor0
----
-12
-2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + 58 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + 58 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + + col2 + + 16 FROM tab1 cor0
----
-10
-7
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - COUNT( + ( 64 ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3693
SELECT - COUNT ( + ( 64 ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + 59 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-59
-59

query I rowsort
SELECT ALL - - col0 - - col2 AS col0 FROM tab1 AS cor0
----
144
147
159

query II rowsort
SELECT ALL - 8 + + col0, + col1 AS col1 FROM tab1 WHERE NULL = col0
----

query I rowsort
SELECT ALL 17 - - + 14 FROM tab1
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3698
SELECT ALL col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3698
SELECT ALL col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT - 53 - - - MAX( + + col2 ) FROM tab0
----
-152

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - 53 - - - MAX ( + + col2 ) FROM tab0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + 20 * + COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 20 * + COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT SUM( ALL ( col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT SUM ( ALL ( col0 ) ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3702
SELECT + col2, - ( - + CAST( - 54 AS SIGNED ) ) FROM tab0 AS cor0
----
10
-54
47
-54
99
-54

skipif mysql # not compatible
query II rowsort label-3702
SELECT + col2, - ( - + CAST ( - 54 AS INTEGER ) ) FROM tab0 AS cor0
----
10
-54
47
-54
99
-54

query I rowsort
SELECT DISTINCT + 16 + - col1 + + + col1 AS col1 FROM tab2 AS cor0 WHERE col2 >= + 57
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - - 9
----

query I rowsort
SELECT ALL + col0 * - 31 FROM tab2
----
-1426
-1984
-2325

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 34 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3708
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) - - + ( 35 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3708
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) - - + ( 35 ) IS NULL
----

query II rowsort
SELECT - 56 AS col0, + col1 FROM tab1 AS cor0
----
-56
14
-56
47
-56
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT + - col2 * - CAST( NULL AS SIGNED ) + 34 + - + col1 * - - 15 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT + - col2 * - CAST ( NULL AS INTEGER ) + 34 + - + col1 * - - 15 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3711
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1, 20 AS col2 FROM tab1 AS cor0
----
NULL
20
NULL
20
NULL
20

skipif mysql # not compatible
query II rowsort label-3711
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1, 20 AS col2 FROM tab1 AS cor0
----
NULL
20
NULL
20
NULL
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT 48 DIV ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 73 + + col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT 48 / ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 73 + + col2 IS NULL
----
0
0
0

query II rowsort
SELECT + + col2 AS col0, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT - ( - ( + - col1 ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - ( 59 ) AS col1 FROM tab1 cor0 WHERE NOT - 18 IS NULL
----
-59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * 88 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 >= + + 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT - COUNT( * ) * + + 52 AS col0 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - COUNT ( * ) * + + 52 AS col0 FROM tab1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + 82 + + - COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-3719
SELECT + 82 + + - COUNT ( * ) FROM tab1
----
79

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE + - 91 IS NULL
----

query I rowsort
SELECT ALL col2 + col0 + - 69 AS col2 FROM tab2
----
0
35
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - + 74 * + 57 + + col2 * - - 22 col2 FROM tab1 cor0
----
-297366
-297982
-298180

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT DISTINCT + MAX( ALL 8 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT + MAX ( ALL 8 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
8

query II rowsort
SELECT col1 + col2 AS col1, - col0 FROM tab1
----
110
-51
115
-91
64
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3725
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3725
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT 90 * + col2 + - + 60 AS col2 FROM tab1 WHERE 83 > + + col2
----
5250
6060

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + col1 IS NULL
----

query I rowsort
SELECT ALL col2 * col1 * 26 * + col2 AS col0 FROM tab1
----
3354624
452530
5650528

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - - col2 * + col1 * col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT 31 * + + SUM( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT 31 * + + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT 72 * - col2, col1 FROM tab0
----
-3384
81
-7128
1
-720
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT ALL col1 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL col1 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL 20 AS col1, col0 * + col0 AS col2 FROM tab0
----
20
225
20
7569
20
9409

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col0 ) / col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 * + - col1 col2 FROM tab0
----
-1134
-14
-294

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - 76
----

query I rowsort
SELECT ALL + col2 + 96 * + col2 AS col2 FROM tab1 AS cor0
----
5723
6596
9312

query II rowsort
SELECT DISTINCT - col1 + - col0 - - col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL + - col2 * - 11 AS col1 FROM tab2 AS cor0
----
253
440
638

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT DISTINCT + COUNT( DISTINCT - + 12 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT + COUNT ( DISTINCT - + 12 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT col1 + - + col2 + + 84 AS col1 FROM tab1
----
2
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - COUNT( * ) * COUNT( * ) * + 82 col0 FROM tab2
----
-738

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3742
SELECT - COUNT ( * ) * COUNT ( * ) * + 82 col0 FROM tab2
----
-738

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * + + col2 * + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col0 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT + col1 + - col1 + - ( + 94 ) + + ( ( col2 ) ) DIV - + col1 AS col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT + col1 + - col1 + - ( + 94 ) + + ( ( col2 ) ) / - + col1 AS col0 FROM tab2 AS cor0
----
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - 65 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL = + 20
----

query I rowsort
SELECT ALL - col2 - - + col0 FROM tab2
----
17
23
24

query I rowsort
SELECT + 30 * + col0 + - col2 FROM tab2
----
1357
1880
2192

query II rowsort
SELECT col0 + col2, col2 FROM tab1
----
144
59
147
96
159
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3752
SELECT + col0 + - 11 + - - CAST( NULL AS DECIMAL ) AS col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3752
SELECT + col0 + - 11 + - - CAST ( NULL AS REAL ) AS col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + + 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT ALL + CAST( col2 AS SIGNED ) * - col2 * + col0 AS col0 FROM tab2
----
-102400
-24334
-252300

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + CAST ( col2 AS INTEGER ) * - col2 * + col0 AS col0 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT COUNT( * ) DIV - + COUNT( - col2 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3755
SELECT COUNT ( * ) / - + COUNT ( - col2 ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT - COUNT( * ) + ( + 45 ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT - COUNT ( * ) + ( + 45 ) AS col1 FROM tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL < 43
----

query I rowsort
SELECT - - 14 FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL + + 15 * - + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + + 15 * - + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
135

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col2 IS NOT NULL )
----

query II rowsort
SELECT col0, - 41 FROM tab0
----
15
-41
87
-41
97
-41

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - col1 )
----

query II rowsort
SELECT ALL ( + 46 ) * - - col0 AS col1, - col0 FROM tab2
----
2116
-46
2944
-64
3450
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT DISTINCT COUNT( * ) * - COUNT( - - CAST( - 49 AS SIGNED ) ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT COUNT ( * ) * - COUNT ( - - CAST ( - 49 AS INTEGER ) ) AS col0 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT DISTINCT 80 DIV - 68 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT 80 / - 68 FROM tab2
----
-1

query II rowsort
SELECT 62 * - - col1 * - 21, col0 FROM tab1
----
-18228
51
-61194
91
-6510
85

query II rowsort
SELECT + 34 + col0 AS col2, 73 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT DISTINCT ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT + col0, + col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3770
SELECT DISTINCT + COUNT( * ), + COUNT( * ) - + MAX( col1 ) * - 25 AS col1 FROM tab2 AS cor0
----
3
1928

skipif mysql # not compatible
query II rowsort label-3770
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) - + MAX ( col1 ) * - 25 AS col1 FROM tab2 AS cor0
----
3
1928

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT ALL + - 12 AS col2, + COUNT( * ) * + 1 AS col1 FROM tab2 AS cor0
----
-12
3

skipif mysql # not compatible
query II rowsort label-3771
SELECT ALL + - 12 AS col2, + COUNT ( * ) * + 1 AS col1 FROM tab2 AS cor0
----
-12
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 AS col2, 69 col1 FROM tab0 AS cor0
----
-1
69
-21
69
-81
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT + + SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + + SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT DISTINCT CAST( 60 AS SIGNED ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT CAST ( 60 AS INTEGER ) FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT - 9 * - COUNT( * ) + COUNT( * ) + + 12 AS col1 FROM tab2, tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT - 9 * - COUNT ( * ) + COUNT ( * ) + + 12 AS col1 FROM tab2, tab1 AS cor0
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
96

query I rowsort
SELECT ALL - ( - 64 ) FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col0 col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT - MIN( + + 96 ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3780
SELECT - MIN ( + + 96 ) AS col1 FROM tab0 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - col0 col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 70 > + col0 + col2 * col2
----

query I rowsort
SELECT DISTINCT - col2 * + + 4 FROM tab2 cor0 WHERE NOT 17 * - col1 + col2 IS NULL
----
-160
-232
-92

query I rowsort
SELECT ALL 83 + 72 FROM tab2
----
155
155
155

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT + col0 DIV - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3785
SELECT + col0 / - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3786
SELECT ALL 37 * + - MIN( + - col1 ) AS col0, COUNT( * ) AS col0 FROM tab0
----
2997
3

skipif mysql # not compatible
query II rowsort label-3786
SELECT ALL 37 * + - MIN ( + - col1 ) AS col0, COUNT ( * ) AS col0 FROM tab0
----
2997
3

query III rowsort
SELECT * FROM tab0 WHERE 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT - COUNT( * ) DIV COUNT( * ) + - COUNT( + 64 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( * ) / COUNT ( * ) + - COUNT ( + 64 ) FROM tab2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3789
SELECT - col0 + + - CAST( NULL AS DECIMAL ) * 28 * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT - col0 + + - CAST ( NULL AS REAL ) * 28 * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / - 39 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3792
SELECT - col2 DIV + col2 AS col0, + 53 FROM tab2 AS cor0
----
-1
53
-1
53
-1
53

skipif mysql # not compatible
query II rowsort label-3792
SELECT - col2 / + col2 AS col0, + 53 FROM tab2 AS cor0
----
-1
53
-1
53
-1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL 59 * + + ( - 78 ) + + COUNT( DISTINCT - + 22 ) AS col1 FROM tab2 AS cor0
----
-4601

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL 59 * + + ( - 78 ) + + COUNT ( DISTINCT - + 22 ) AS col1 FROM tab2 AS cor0
----
-4601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL ( - - col0 ) / + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL ( - - col0 ) / + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - + col0 * - 55 FROM tab1 AS cor0
----
269280
275825
340340

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT COUNT( * ) * + ( - - 66 ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3796
SELECT COUNT ( * ) * + ( - - 66 ) FROM tab0 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3797
SELECT * FROM tab2 WHERE NOT + CAST( + col1 AS SIGNED ) * + - 89 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3797
SELECT * FROM tab2 WHERE NOT + CAST ( + col1 AS INTEGER ) * + - 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col1 FROM tab1
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - - 91 AND - col1
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT 63 * - SUM( col0 ) AS col1 FROM tab0
----
-12537

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT 63 * - SUM ( col0 ) AS col1 FROM tab0
----
-12537

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( - col1 + col2, col0 * + - 79 )
----

query I rowsort
SELECT DISTINCT + 71 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT 69 * + - COUNT( + col2 ) AS col1 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-3804
SELECT 69 * + - COUNT ( + col2 ) AS col1 FROM tab1
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT COUNT( * ) * ( - - 15 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3805
SELECT COUNT ( * ) * ( - - 15 ) AS col0 FROM tab2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT 17 * + CAST( NULL AS SIGNED ) / + 41 * - ( + - ( - + col2 ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT 17 * + CAST ( NULL AS INTEGER ) / + 41 * - ( + - ( - + col2 ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + SUM( + + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3807
SELECT + SUM ( + + col0 ) FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * + col1 + - 16 * - + 31 + - col2 col1 FROM tab1
----
1660
4658
887

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 2 * 53 AND NULL
----

query I rowsort
SELECT ALL - + col1 * col1 + - - 36 + - - col0 FROM tab0 cor0
----
-318
-6510
132

query I rowsort
SELECT col1 + - col1 + + + col2 * + 84 FROM tab0 AS cor0
----
3948
8316
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL - CAST( NULL AS SIGNED ) + + 31 + - + col2 + - + col1 + + - col2 * + col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - CAST ( NULL AS INTEGER ) + + 31 + - + col2 + - + col1 + + - col2 * + col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col1 + - - ( - col0 ) FROM tab2 cor0
----
1127
3016
3811

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 <> - 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - SUM( DISTINCT - 42 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3815
SELECT - SUM ( DISTINCT - 42 ) FROM tab2 AS cor0
----
42

query II rowsort
SELECT col2, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT + 27 * - col1 * 76 FROM tab1
----
-10260
-28728
-96444

query I rowsort
SELECT DISTINCT 26 * col2 + - 73 AS col2 FROM tab1
----
1461
1695
2423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 65 col0 FROM tab0
----
146
66
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3820
SELECT - COUNT( * ) DIV + COUNT( * ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3820
SELECT - COUNT ( * ) / + COUNT ( * ) col2 FROM tab1
----
-1

query I rowsort
SELECT + 60 * ( - 30 ) FROM tab2
----
-1800
-1800
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT + col0 DIV + + 65 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3822
SELECT + col0 / + + 65 AS col2 FROM tab0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * 94 - + col0 * + col2 + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 * - - 25 + col2 * + col2, + 19 AS col0 FROM tab2
----
1804
19
3525
19
5039
19

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - col2 * col1
----

query I rowsort
SELECT DISTINCT - col0 + + col2 + col1 FROM tab2 AS cor0
----
28
50
53

query I rowsort
SELECT + + col1 + + col2 - 94 * + col2 * - + col2 FROM tab2 AS cor0
----
150517
316341
49800

query I rowsort
SELECT - col2 + - 63 FROM tab0 AS cor0
----
-110
-162
-73

query I rowsort
SELECT - ( + ( 60 ) ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT - - 92 * + 24 FROM tab1 AS cor0
----
2208
2208
2208

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 80 AS col2, - col1 - col0 FROM tab0 AS cor0
----
80
-108
80
-96
80
-98

query I rowsort
SELECT ALL - + 54 * + col0 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT + - CAST( 55 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-3835
SELECT + - CAST ( 55 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * 17 AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * 17 AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 29 * + col2 * + - 99 * + ( + col0 ) FROM tab0 AS cor0
----
2024055
2497770
27570213

query I rowsort
SELECT DISTINCT - col1 + - col2 + 14 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT ALL + col0 DIV - 41 col1 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3839
SELECT ALL + col0 / - 41 col1 FROM tab0
----
-2
-2
0

query I rowsort
SELECT + 33 * - col0 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT + COUNT( DISTINCT 77 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + COUNT ( DISTINCT 77 ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT + 18, col1 AS col0 FROM tab0
----
18
1
18
21
18
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 43 + 75 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 57 col0, - col2 FROM tab0
----
57
-10
57
-47
57
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col1 <> NULL
----
0

query I rowsort
SELECT - - col2 * + 69 * + - col1 FROM tab1 cor0
----
-20355
-220524
-92736

query I rowsort
SELECT DISTINCT + + col1 + ( - 56 ) AS col2 FROM tab1 AS cor0
----
-42
-51
-9

query I rowsort
SELECT DISTINCT 53 + + col0 AS col0 FROM tab0 AS cor0
----
140
150
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT - + 39 + + + COUNT( * ) + - SUM( 29 ) col1 FROM tab1 cor0
----
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3849
SELECT - + 39 + + + COUNT ( * ) + - SUM ( 29 ) col1 FROM tab1 cor0
----
-123

query I rowsort
SELECT 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + - + col2 AS col1, - 16 col1 FROM tab0
----
-2
-16
-32
-16
77
-16

query I rowsort
SELECT DISTINCT - 33 * + col1 FROM tab2 AS cor0
----
-1683
-2211
-2541

query I rowsort
SELECT DISTINCT - - ( + col0 ) + - 36 * 80 FROM tab1 AS cor0
----
-2789
-2795
-2829

query I rowsort
SELECT ALL col0 + + 8 FROM tab1 AS cor0
----
59
93
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3855
SELECT + 3 DIV - ( - + CAST( ( col1 ) AS SIGNED ) ) col0, + col1 * - col2 FROM tab0 AS cor0
----
0
-210
0
-3807
3
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3855
SELECT + 3 / - ( - + CAST ( ( col1 ) AS INTEGER ) ) col0, + col1 * - col2 FROM tab0 AS cor0
----
0
-210
0
-3807
3
-99

query II rowsort
SELECT + ( + 42 ), col0 FROM tab2 AS cor0
----
42
46
42
64
42
75

query II rowsort
SELECT DISTINCT + col2 + - 39, col1 FROM tab1 AS cor0
----
20
5
29
47
57
14

query I rowsort
SELECT ALL 85 + - + col0 AS col2 FROM tab0 cor0
----
-12
-2
70

query I rowsort
SELECT - + 91 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
334
4186
623

query I rowsort
SELECT DISTINCT - col2 * - col0 - - 74 FROM tab0
----
779
944
9677

query I rowsort
SELECT ALL 30 * + + col1 FROM tab0
----
2430
30
630

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT col2 + - 75 - + col1 DIV + col1 FROM tab0
----
-29
-66
23

skipif mysql # not compatible
query I rowsort label-3862
SELECT col2 + - 75 - + col1 / + col1 FROM tab0
----
-29
-66
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col0 col1 FROM tab1
----
-59
85
-68
91
-96
51

query II rowsort
SELECT DISTINCT 76 AS col1, - col1 FROM tab1
----
76
-14
76
-47
76
-5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 35 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT DISTINCT - 32 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - 32 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL - col2 * + ( + col2 ) - - CAST( NULL AS SIGNED ) * + + col1 + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - col2 * + ( + col2 ) - - CAST ( NULL AS INTEGER ) * + + col1 + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 35 + + 59 ) <> ( NULL )
----

query I rowsort
SELECT - 80 - + ( col0 ) AS col0 FROM tab1
----
-131
-165
-171

query I rowsort
SELECT DISTINCT - 80 + - col2 FROM tab2
----
-103
-120
-138

query I rowsort
SELECT ALL col0 * + col0 - col0 AS col2 FROM tab1
----
2550
7140
8190

query I rowsort
SELECT + col1 FROM tab1 WHERE ( 5 ) BETWEEN 91 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN ( 79 * + col1 ) AND ( - col0 ) + + col2 / - 64
----

query III rowsort
SELECT * FROM tab1 WHERE 11 IN ( col1 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + 10 + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-3876
SELECT + 10 + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL CAST( - SUM( DISTINCT col0 ) AS SIGNED ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL CAST ( - SUM ( DISTINCT col0 ) AS INTEGER ) FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT + 4 DIV + col2 - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3878
SELECT + 4 / + col2 - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - MAX( 33 ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3879
SELECT - MAX ( 33 ) FROM tab2
----
-33

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < col0 / col0
----

query I rowsort
SELECT DISTINCT 55 FROM tab1 WHERE NOT - col2 IS NULL
----
55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3882
SELECT + col0 AS col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) <= 18
----

skipif mysql # not compatible
query I rowsort label-3882
SELECT + col0 AS col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) <= 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT COUNT( * ) FROM tab2 WHERE NULL = - col1 - + 9
----
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT COUNT ( * ) FROM tab2 WHERE NULL = - col1 - + 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT SUM( ALL + col1 ) + ( COUNT( * ) ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT SUM ( ALL + col1 ) + ( COUNT ( * ) ) AS col1 FROM tab1
----
69

query I rowsort
SELECT DISTINCT ( col1 ) - - col0 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT - 88 * + 84 + 11 AS col0 FROM tab1
----
-7381

query I rowsort
SELECT 37 - col1 FROM tab1
----
-10
23
32

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - 11 + 20 / col1 IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 = ( col0 )
----

query I rowsort
SELECT ALL - col1 * col1 + + col0 FROM tab1
----
-145
-2118
60

query I rowsort
SELECT ALL 67 FROM tab2 WHERE col1 + 53 * col2 <> ( - col1 / 21 + col0 )
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT 74 - - COUNT( col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
74

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT 74 - - COUNT ( col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
74

query I rowsort
SELECT - col1 * + col1 - - 28 AS col0 FROM tab2 WHERE NOT 39 = 13
----
-2573
-4461
-5901

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT MIN( ALL + 66 ) AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT MIN ( ALL + 66 ) AS col0 FROM tab1 cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 84 * col1 BETWEEN NULL AND + col2 + + 40 / col0
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col2 * - 32 + ( col0 ) FROM tab1 AS cor0
----
-1803
-2085
-3021

query I rowsort
SELECT DISTINCT + col2 + 82 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 14 * + col2 <> ( - col0 )
----

query I rowsort
SELECT DISTINCT + 9 * - col0 + + col2 FROM tab0 cor0
----
-773
-774
-88

query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL MAX( DISTINCT - col1 ) * 75 + + 16 FROM tab2 AS cor0
----
-3809

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL MAX ( DISTINCT - col1 ) * 75 + + 16 FROM tab2 AS cor0
----
-3809

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT - 93 DIV + col0 FROM tab2 WHERE 53 >= 50
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3901
SELECT - 93 / + col0 FROM tab2 WHERE 53 >= 50
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 WHERE + ( col1 ) + - 61 * - 17 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 / col1 NOT BETWEEN ( NULL ) AND 2 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3904
SELECT * FROM tab0 WHERE ( CAST( - 5 AS DECIMAL ) ) + col2 > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3904
SELECT * FROM tab0 WHERE ( CAST ( - 5 AS REAL ) ) + col2 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + 50 IN ( col1 * + 38 )
----

query I rowsort
SELECT - 0 + - 23 AS col1 FROM tab2
----
-23
-23
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( + ( 74 ) + + col1 )
----

query I rowsort
SELECT ALL - ( col0 ) * col2 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT - col0 * + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( 5 ) AS col1 FROM tab0 cor0 WHERE + 42 >= ( NULL )
----

query I rowsort
SELECT DISTINCT + 88 - col1 AS col1 FROM tab0 AS cor0
----
67
7
87

query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= + col2 - col2 * 90
----

query I rowsort
SELECT ALL + - 48 + + 95 AS col2 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT + 6 * - col0 AS col1 FROM tab0
----
-522
-582
-90

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col1 AND ( col2 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE col0 IN ( + col0 * 1 )
----
51
67
77

query I rowsort
SELECT ALL - col1 * 51 FROM tab0 WHERE NOT - col1 < - 21
----
-1071
-51

query I rowsort
SELECT DISTINCT ( + 21 ) - col1 FROM tab1
----
-26
16
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT DISTINCT + 80 DIV col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + 80 / col0 FROM tab0
----
0
5

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 9 AND ( NULL )
----

query I rowsort
SELECT col0 - - - col1 AS col2 FROM tab1
----
37
44
80

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( + 24 - - 36 )
----

query I rowsort
SELECT DISTINCT + col1 + col0 * col2 AS col2 FROM tab2 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL COUNT( - 65 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL COUNT ( - 65 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE - 93 NOT IN ( 6 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 50 AS col1 FROM tab0 cor0 WHERE NOT + col2 / - col1 NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 66 AND + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + + COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3928
SELECT + + COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + col0 IS NULL
----

query II rowsort
SELECT + 82 AS col2, + col1 * - col1 * + col0 FROM tab0 AS cor0
----
82
-38367
82
-97
82
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + MAX( + ( 55 ) ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3931
SELECT + MAX ( + ( 55 ) ) FROM tab1 AS cor0
----
55

query II rowsort
SELECT - 39, col1 AS col2 FROM tab2 AS cor0
----
-39
51
-39
67
-39
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 66 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT 74 * - MAX( DISTINCT 58 ) FROM tab2 AS cor0
----
-4292

skipif mysql # not compatible
query I rowsort label-3935
SELECT 74 * - MAX ( DISTINCT 58 ) FROM tab2 AS cor0
----
-4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT col0 * + col1 + + - CAST( 28 AS SIGNED ) - - col2 * 98 AS col0 FROM tab1 cor0
----
10094
10913
6179

skipif mysql # not compatible
query I rowsort label-3936
SELECT col0 * + col1 + + - CAST ( 28 AS INTEGER ) - - col2 * 98 AS col0 FROM tab1 cor0
----
10094
10913
6179

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT + 48 DIV + - col0 * 92 * - 23 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3937
SELECT + 48 / + - col0 * 92 * - 23 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL + 25 * - ( - MIN( + col2 ) ) AS col1 FROM tab2 AS cor0
----
575

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + 25 * - ( - MIN ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
575

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + 25 <> NULL
----

query I rowsort
SELECT - 19 AS col2 FROM tab0 AS cor0 WHERE NOT 62 >= - 45 * - col0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT COUNT( * ) + + + ( + 63 ) * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT COUNT ( * ) + + + ( + 63 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 25 * + - 12 FROM tab0 AS cor0
----
-300
-300
-300

query I rowsort
SELECT - + col0 * - col2 + 65 AS col1 FROM tab2 AS cor0
----
1123
2625
4415

query I rowsort
SELECT 90 * 67 + col1 * 86 FROM tab0 WHERE NOT col2 <= - - col0
----
12996
6116

query I rowsort
SELECT ALL + ( + - 36 ) AS col1 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT 50 FROM tab0 WHERE NOT - ( - col0 ) + + col0 IN ( + col2 )
----
50
50
50

query I rowsort
SELECT ALL 79 * col2 * - 66 * + col2 FROM tab2
----
-17539896
-2758206
-8342400

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT + col2 + - col2 - + col0 * col1 IN ( col1 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL + 53 + COUNT( * ) - + 40 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + 53 + COUNT ( * ) - + 40 FROM tab1
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE + col1 NOT BETWEEN ( + + 3 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( - 59 )
----

query I rowsort
SELECT ALL ( ( col1 ) ) * + col2 FROM tab1
----
1344
295
3196

query II rowsort
SELECT col2 + + col1, col0 FROM tab1 cor0
----
110
51
115
91
64
85

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 50 > - - col2
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT - - CAST( NULL AS SIGNED ) + - + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3955
SELECT - - CAST ( NULL AS INTEGER ) + - + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + - 57 AS col2 FROM tab1 AS cor0
----
-10
-43
-52

query I rowsort
SELECT DISTINCT + col2 + + - 56 * 69 + 89 FROM tab0 AS cor0
----
-3676
-3728
-3765

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + 84 * + - MAX( ALL - col1 ) col0 FROM tab1
----
420

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3958
SELECT + 84 * + - MAX ( ALL - col1 ) col0 FROM tab1
----
420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 13 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 - + + 77 - ( + 7 ) * col2 + - ( col0 - - 14 ) FROM tab1 AS cor0
----
-648
-726
-910

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3961
SELECT - - CAST( NULL AS DECIMAL ), MIN( ALL + - 60 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3961
SELECT - - CAST ( NULL AS REAL ), MIN ( ALL + - 60 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 30 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 52 - col2 FROM tab2
----
-6
12
29

query I rowsort
SELECT - 13 * + 30 AS col2 FROM tab1 WHERE col0 * col2 + - - col0 IS NOT NULL
----
-390
-390
-390

query I rowsort
SELECT ALL + col1 - + col1 + - 50 FROM tab2
----
-50
-50
-50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 + + col2 * col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3967
SELECT + 16 * - col2 col2, CAST( NULL AS SIGNED ) FROM tab0
----
-1584
NULL
-160
NULL
-752
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3967
SELECT + 16 * - col2 col2, CAST ( NULL AS INTEGER ) FROM tab0
----
-1584
NULL
-160
NULL
-752
NULL

query I rowsort
SELECT + ( - + col2 ) * col2 + col0 AS col2 FROM tab2 AS cor0
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT DISTINCT + + COUNT( * ) * - + COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT + + COUNT ( * ) * - + COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 18 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 18 >= NULL
----
0

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( + 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 59 ) col2 FROM tab0
----
-59
-59
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <= + + 48
----
64
77
40
75
67
58

query I rowsort
SELECT ALL + + 68 * 18 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT + + MAX( ALL + + 84 ) AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT + + MAX ( ALL + + 84 ) AS col2 FROM tab0 AS cor0
----
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( 99 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT - 40 * 89 + - + col0 DIV 51 FROM tab0 AS cor0
----
-3560
-3561
-3561

skipif mysql # not compatible
query I rowsort label-3977
SELECT - 40 * 89 + - + col0 / 51 FROM tab0 AS cor0
----
-3560
-3561
-3561

query II rowsort
SELECT - 92, + col2 AS col1 FROM tab2
----
-92
23
-92
40
-92
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3979
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - ( - col0 ) + + ( + - 40 ) AND + - col0 + col2 / + 43 OR NOT col0 + - CAST( NULL AS SIGNED ) IN ( 13 )
----

skipif mysql # not compatible
query III rowsort label-3979
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - ( - col0 ) + + ( + - 40 ) AND + - col0 + col2 / + 43 OR NOT col0 + - CAST ( NULL AS INTEGER ) IN ( 13 )
----

query I rowsort
SELECT ALL ( 2 ) FROM tab0
----
2
2
2

query III rowsort
SELECT * FROM tab0 WHERE - 0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT - col0 DIV + + 12 FROM tab1
----
-4
-7
-7

skipif mysql # not compatible
query I rowsort label-3982
SELECT - col0 / + + 12 FROM tab1
----
-4
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - MAX( + + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - MAX ( + + col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT + + col2 - - - col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT 91 + 34 FROM tab0 AS cor0
----
125
125
125

query I rowsort
SELECT ALL - 72 + - col2 * col2 FROM tab2 AS cor0
----
-1672
-3436
-601

query I rowsort
SELECT ALL - col0 + - 21 FROM tab2 AS cor0
----
-67
-85
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT MIN( DISTINCT - 84 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3989
SELECT MIN ( DISTINCT - 84 ) FROM tab2 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + 63 + - 62 * + col1 col0 FROM tab0 AS cor0 WHERE col0 * + ( + col0 ) * col0 = - 68
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 + + + 7 * - col2 FROM tab1 AS cor0
----
-418
-523
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT ALL col1 + + col0 * col2 DIV - col1 col0 FROM tab0 AS cor0
----
-20
-9602
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT ALL col1 + + col0 * col2 / - col1 col0 FROM tab0 AS cor0
----
-20
-9602
73

query I rowsort
SELECT col0 - + 29 - col2 AS col0 FROM tab1 AS cor0
----
-3
-6
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT DISTINCT 98 + - CAST( NULL AS SIGNED ) + - 27 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT 98 + - CAST ( NULL AS INTEGER ) + - 27 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - ( + col0 ) * col1 * - 60 + + col1 - 35 FROM tab2 WHERE col2 IS NOT NULL
----
-11827158
-17486968
-3237464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col0 FROM tab0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3998
SELECT ALL + CAST( - 73 AS SIGNED ) * col0, col2 FROM tab0 AS cor0
----
-1095
47
-6351
10
-7081
99

skipif mysql # not compatible
query II rowsort label-3998
SELECT ALL + CAST ( - 73 AS INTEGER ) * col0, col2 FROM tab0 AS cor0
----
-1095
47
-6351
10
-7081
99

query I rowsort
SELECT DISTINCT - - ( + + col2 ) * - 11 * + col0 AS col0 FROM tab0 cor0
----
-105633
-7755
-9570

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT + col1 * col2 DIV col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4000
SELECT + col1 * col2 / col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT col2 DIV + - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT col2 / + - col0 FROM tab0 AS cor0
----
-1
-3
0

query II rowsort
SELECT ALL - - 46 * + - col0 + + - 33 AS col2, + 78 AS col0 FROM tab2 AS cor0
----
-2149
78
-2977
78
-3483
78

query I rowsort
SELECT - ( 59 ) * col1 + + + 94 * - col0 * col1 FROM tab1 AS cor0
----
-40245
-404811
-67942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT + + col2 * + col2 * + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-123200
-225388
-26979

skipif mysql # not compatible
query I rowsort label-4004
SELECT + + col2 * + col2 * + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-123200
-225388
-26979

query II rowsort
SELECT ALL 50 AS col0, + col1 + + ( - ( + col2 ) ) FROM tab2 AS cor0
----
50
28
50
37
50
9

query III rowsort
SELECT * FROM tab1 WHERE NOT - 97 * - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4007
SELECT ALL + col2 col0, col1 DIV + 98 * + CAST( - 12 AS SIGNED ) * ( - 5 ) FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4007
SELECT ALL + col2 col0, col1 / + 98 * + CAST ( - 12 AS INTEGER ) * ( - 5 ) FROM tab2
----
23
0
40
0
58
0

query II rowsort
SELECT DISTINCT col2, + col2 + - - 25 * col0 FROM tab1
----
59
2184
68
2343
96
1371

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT DISTINCT - + col1 * - col1 + col1 + - col0 DIV - + col0 + - col1 * 65 AS col1 FROM tab1 AS cor0
----
-294
-699
-798

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT - + col1 * - col1 + col1 + - col0 / - + col0 + - col1 * 65 AS col1 FROM tab1 AS cor0
----
-294
-699
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT DISTINCT + + 97 DIV COUNT( * ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + + 97 / COUNT ( * ) FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4011
SELECT * FROM tab0 AS cor0 WHERE NOT ( 98 ) NOT BETWEEN NULL AND + 79 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4011
SELECT * FROM tab0 AS cor0 WHERE NOT ( 98 ) NOT BETWEEN NULL AND + 79 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * + 81 - - col2 FROM tab1 AS cor0
----
-1038
-346
-3739

query I rowsort
SELECT ALL - - col0 + ( - 32 ) FROM tab0 AS cor0
----
-17
55
65

query II rowsort
SELECT col0, + ( col1 ) FROM tab0 cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ( + 79 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + ( 89 ), 12 AS col2 FROM tab1 AS cor0
----
89
12
89
12
89
12

query I rowsort
SELECT DISTINCT col2 * - + 87 FROM tab2 WHERE NOT + 2 + + 0 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT ALL + + COUNT( * ) DIV + 43 + + ( - 74 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-74

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + + COUNT ( * ) / + 43 + + ( - 74 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4019
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 >= - CAST( + col0 AS SIGNED ) + 12
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-4019
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 >= - CAST ( + col0 AS INTEGER ) + 12
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT DISTINCT + COUNT( * ) + + COUNT( DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + COUNT ( * ) + + COUNT ( DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL ( - SUM( + col2 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL ( - SUM ( + col2 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4022
SELECT DISTINCT CAST( - - CAST( NULL AS DECIMAL ) AS DECIMAL ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT CAST ( - - CAST ( NULL AS REAL ) AS REAL ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + col2 + ( - + 41 ) FROM tab2
----
28
63
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT - 5 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4024
SELECT - 5 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-4025
SELECT col2 AS col1, 24 DIV - + col1 col0 FROM tab1 AS cor0
----
59
-4
68
0
96
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4025
SELECT col2 AS col1, 24 / - + col1 col0 FROM tab1 AS cor0
----
59
-4
68
0
96
-1

query II rowsort
SELECT DISTINCT - 61, col2 AS col2 FROM tab0 cor0
----
-61
10
-61
47
-61
99

query I rowsort
SELECT DISTINCT + col1 * + + col2 + + - ( - 90 ) FROM tab1 cor0
----
1434
3286
385

query I rowsort
SELECT - 46 * - col1 * col2 AS col2 FROM tab0 cor0 WHERE NOT + col2 IN ( - col0 + + + col1 * - col0 * - col1, + 46, col2 + - col1 * + - col0 * + 81 )
----
175122
4554
9660

query I rowsort
SELECT col2 * + col1 * - 81 AS col1 FROM tab2
----
-249480
-314766
-95013

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + 24 * + + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4030
SELECT + 24 * + + COUNT ( * ) FROM tab1
----
72

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( col0 * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4032
SELECT SUM( ALL + CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4032
SELECT SUM ( ALL + CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT + - col2 + - 19 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT + col2 * col0 AS col1, col0 AS col2 FROM tab0 AS cor0
----
705
15
870
87
9603
97

query I rowsort
SELECT ALL + - 94 FROM tab0 WHERE - - col1 IS NOT NULL
----
-94
-94
-94

query I rowsort
SELECT DISTINCT col0 + - 80 AS col1 FROM tab0 cor0
----
-65
17
7

query I rowsort
SELECT + col2 + + 14 FROM tab1 cor0
----
110
73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT DISTINCT - - col0 + - ( - + col2 ) DIV col1 DIV col2 * - - 62 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT - - col0 + - ( - + col2 ) / col1 / col2 * - - 62 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + - 92 * - col2 + ( + 90 ) AS col2 FROM tab2 AS cor0
----
2206
3770
5426

query I rowsort
SELECT ALL + 59 / - 66 FROM tab0 AS cor0 WHERE + 36 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4041
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 18 / 95, + col0 - + + 25, - CAST( NULL AS SIGNED ) - - 9 )
----

skipif mysql # not compatible
query III rowsort label-4041
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 18 / 95, + col0 - + + 25, - CAST ( NULL AS INTEGER ) - - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL + 19 + + - ( + - SUM( 45 ) ) AS col1 FROM tab0 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + 19 + + - ( + - SUM ( 45 ) ) AS col1 FROM tab0 AS cor0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + COUNT( - 95 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + COUNT ( - 95 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - col1 AS col0, - col1 AS col0 FROM tab2
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT DISTINCT + col2 * - 48 FROM tab2
----
-1104
-1920
-2784

query I rowsort
SELECT + 3 * + col2 + - col2 FROM tab0 WHERE NULL = - + 98 + 67
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT 20, COUNT( * ) AS col1 FROM tab2
----
20
3

skipif mysql # not compatible
query II rowsort label-4047
SELECT 20, COUNT ( * ) AS col1 FROM tab2
----
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT DISTINCT + col0 + + col2 / + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE + col2 BETWEEN - 20 AND - - col1
----

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT + col0 + + col2 / + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE + col2 BETWEEN - 20 AND - - col1
----

query I rowsort
SELECT DISTINCT + col1 - + - 97 * + 57 FROM tab1 AS cor0
----
5534
5543
5576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT - - col2 AS col2 FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4050
SELECT - - col2 AS col2 FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - COUNT( 24 ) * - 27 AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4051
SELECT - COUNT ( 24 ) * - 27 AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ( - MIN( - + col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) + + col1 + + col2 * + col2 - - 74 - - 15 * - 12 / + col0 * 43 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-4052
SELECT ( - MIN ( - + col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) + + col1 + + col2 * + col2 - - 74 - - 15 * - 12 / + col0 * 43 IS NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - MAX( ALL - ( ( - - col2 ) ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4053
SELECT - MAX ( ALL - ( ( - - col2 ) ) ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col0 * + + 8 - + col2 FROM tab2 AS cor0
----
-391
-552
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT - - col1 DIV col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT - - col1 / col0 / - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
23
40
58

query II rowsort
SELECT + - ( 38 ), 78 AS col2 FROM tab1 AS cor0
----
-38
78
-38
78
-38
78

query I rowsort
SELECT + 41 AS col1 FROM tab2 cor0
----
41
41
41

query II rowsort
SELECT ALL col0 AS col1, col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT - 90 - 66 FROM tab2 WHERE NOT - 42 > ( + col0 )
----
-156
-156
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT + + COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4061
SELECT + + COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + 3 + - 12 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL + SUM( DISTINCT - - 76 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + SUM ( DISTINCT - - 76 ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL + col2 * + col2 * col2 AS col0 FROM tab1
----
205379
314432
884736

query II rowsort
SELECT DISTINCT + col2 + col1, col1 AS col1 FROM tab1 AS cor0
----
110
14
115
47
64
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + + MAX( + - ( - 18 ) ) col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4066
SELECT + + MAX ( + - ( - 18 ) ) col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT + + col1 + + + 20 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT - - 1 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 95 NOT BETWEEN NULL AND ( + col0 ) * + 48 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE - 44 * + col0 IN ( + col2, 98 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + CAST( col1 AS SIGNED ) BETWEEN + - col1 + + - 61 AND - col2 - - 15
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + CAST ( col1 AS INTEGER ) BETWEEN + - col1 + + - 61 AND - col2 - - 15
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT ALL + col0 DIV + + col0 col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4072
SELECT ALL + col0 / + + col0 col1 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4073
SELECT DISTINCT col2, 29 AS col0 FROM tab0 WHERE NOT NULL = - CAST( NULL AS SIGNED ) + + - 90
----

skipif mysql # not compatible
query II rowsort label-4073
SELECT DISTINCT col2, 29 AS col0 FROM tab0 WHERE NOT NULL = - CAST ( NULL AS INTEGER ) + + - 90
----

query I rowsort
SELECT ALL 59 * + col0 AS col0 FROM tab1
----
3009
5015
5369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4075
SELECT DISTINCT - MIN( col2 ) DIV - COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - MIN ( col2 ) / - COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT - 82, + col1 FROM tab0 WHERE - + ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) >= NULL
----

query I rowsort
SELECT + + 53 AS col0 FROM tab2 AS cor0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab0 AS cor0 WHERE NULL <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 0 ) col2 FROM tab1, tab1 cor0
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < 3
----

query I rowsort
SELECT DISTINCT + col2 / 38 * + 80 - col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) - + - 40 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL + COUNT( ALL col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + COUNT ( ALL col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT ALL COUNT( * ) col0, 80 FROM tab2 AS cor0
----
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4085
SELECT ALL COUNT ( * ) col0, 80 FROM tab2 AS cor0
----
3
80

query I rowsort
SELECT + ( + 29 ) FROM tab1 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4087
SELECT - COUNT( DISTINCT + col0 ) DIV + COUNT( 29 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4087
SELECT - COUNT ( DISTINCT + col0 ) / + COUNT ( 29 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT ALL ( + 41 ), col1 AS col1 FROM tab0
----
41
1
41
21
41
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 43 col2 FROM tab2
----
-2193
-2881
-3311

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4092
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL IN ( + CAST( NULL AS SIGNED ) - - col0 - - 22, - 48 ) )
----

skipif mysql # not compatible
query III rowsort label-4092
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL IN ( + CAST ( NULL AS INTEGER ) - - col0 - - 22, - 48 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT ALL + 6 + + - 1 + 98 / col2 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2 * CAST( col2 AS SIGNED ) * - col0
----

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + 6 + + - 1 + 98 / col2 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2 * CAST ( col2 AS INTEGER ) * - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 23 + - 10, col0 )
----

query I rowsort
SELECT col1 * + col2 * - 28 FROM tab0
----
-106596
-2772
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT MIN( ALL - 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4096
SELECT MIN ( ALL - 88 ) FROM tab2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT - 83 + 16 * + COUNT( * ) DIV - 80 AS col0 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-4097
SELECT - 83 + 16 * + COUNT ( * ) / - 80 AS col0 FROM tab0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT + 50 + - + 65 DIV col0 FROM tab0
----
46
50
50

skipif mysql # not compatible
query I rowsort label-4098
SELECT + 50 + - + 65 / col0 FROM tab0
----
46
50
50

query I rowsort
SELECT - - 92 + - col1 AS col1 FROM tab1 AS cor0
----
45
78
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 0 >= + col1
----

query I rowsort
SELECT ALL - - 36 - + + 35 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4102
SELECT * FROM tab2 cor0 WHERE col1 + - - col1 NOT IN ( col1 - - CAST( NULL AS SIGNED ) * + + col1 * 83 )
----

skipif mysql # not compatible
query III rowsort label-4102
SELECT * FROM tab2 cor0 WHERE col1 + - - col1 NOT IN ( col1 - - CAST ( NULL AS INTEGER ) * + + col1 * 83 )
----

query I rowsort
SELECT ALL col2 + + ( 24 ) FROM tab1
----
120
83
92

query I rowsort
SELECT + 35 * - col0 FROM tab0 WHERE - col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * + 39 col1 FROM tab0
----
3081
3081
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ( COUNT( * ) ) - - 61 AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4106
SELECT ( COUNT ( * ) ) - - 61 AS col2 FROM tab2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4107
SELECT * FROM tab1 cor0 WHERE - 72 * - col1 * + 35 >= + col1 + + 47 / - col0 - - + CAST( ( ( 67 ) ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4107
SELECT * FROM tab1 cor0 WHERE - 72 * - col1 * + 35 >= + col1 + + 47 / - col0 - - + CAST ( ( ( 67 ) ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + 35 + - + 31 AS col0, 79 * - - ( - + col0 ) * + col1 AS col2 FROM tab2 cor0
----
4
-185334
4
-389312
4
-396975

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT ALL - - COUNT( col0 ) FROM tab2 WHERE NULL >= + 59 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - - COUNT ( col0 ) FROM tab2 WHERE NULL >= + 59 * - col2
----
0

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab2 WHERE NULL IS NULL
----
-82

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 > + 59 - - col1 * 45
----
46
64
75

query I rowsort
SELECT + + col0 * + - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT - col1 * + - CAST( + 9 AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
1764
19881
225

skipif mysql # not compatible
query I rowsort label-4116
SELECT - col1 * + - CAST ( + 9 AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
1764
19881
225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 + + 13 > + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + col2 BETWEEN + col0 AND - - ( col2 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT + 18 DIV 42 + + - col1 col2 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4119
SELECT + 18 / 42 + + - col1 col2 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + 19 * + COUNT( * ) * - 4 AS col2 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4120
SELECT + 19 * + COUNT ( * ) * - 4 AS col2 FROM tab1 AS cor0
----
-228

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 63
----

query I rowsort
SELECT - ( col0 ) * 4 FROM tab1 AS cor0
----
-204
-340
-364

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT DISTINCT + - 96 DIV + - col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT + - 96 / + - col2 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4124
SELECT ALL + CAST( + col0 AS SIGNED ), + col2 FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-4124
SELECT ALL + CAST ( + col0 AS INTEGER ), + col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT SUM( - 6 ) AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT SUM ( - 6 ) AS col2 FROM tab2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4126
SELECT DISTINCT - CAST( NULL AS SIGNED ), - COUNT( * ) AS col0 FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4126
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab2
----
NULL
-3

query I rowsort
SELECT + 77 AS col2 FROM tab1 WHERE NOT + col0 * col2 IS NOT NULL
----

query II rowsort
SELECT + + col0 AS col0, col2 AS col2 FROM tab1 WHERE NOT col0 * + + col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 79 + + col0 + - col0 * - ( + - col0 ) * - - col0 + col2 AS col1 FROM tab0 AS cor0
----
-3234
-658327
-912398

query I rowsort
SELECT - 89 + - + col2 AS col0 FROM tab2 AS cor0
----
-112
-129
-147

query I rowsort
SELECT ALL + col2 + col1 + - 64 FROM tab1 AS cor0 WHERE NULL > - ( - - col1 ) + col1
----

query I rowsort
SELECT ALL - - ( - + col0 ) * 10 * + + col1 FROM tab1 AS cor0
----
-4250
-42770
-7140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4133
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 38 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT - col1 - - 28 AS col1 FROM tab1 AS cor0
----
-19
14
23

query I rowsort
SELECT ( + 49 ) - + - col1 + - 26 AS col2 FROM tab0 AS cor0
----
104
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - COUNT( col2 ) - + SUM( ALL col0 ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-4137
SELECT - COUNT ( col2 ) - + SUM ( ALL col0 ) FROM tab0 AS cor0
----
-202

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 91 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + col1, - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + 14 + - + MIN( ALL + - col0 ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4140
SELECT + 14 + - + MIN ( ALL + - col0 ) FROM tab1 AS cor0
----
105

query I rowsort
SELECT DISTINCT + 1 * + 52 + + 13 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL col1 - 64 * col0 AS col2 FROM tab2 AS cor0
----
-2893
-4019
-4733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT ALL - col0 + - - 80 + - CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - col0 + - - 80 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 10 * + + col0 + 38 AS col2 FROM tab1 AS cor0
----
548
888
948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col2 * 27 col1 FROM tab2
----
-1003
-1499
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT + + col0 AS col0 FROM tab0 WHERE + + CAST( + col2 AS SIGNED ) + - + col0 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4146
SELECT + + col0 AS col0 FROM tab0 WHERE + + CAST ( + col2 AS INTEGER ) + - + col0 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT 86 - - 10 + - ( + COUNT( col2 ) ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT 86 - - 10 + - ( + COUNT ( col2 ) ) FROM tab0
----
93

query I rowsort
SELECT - col0 * - + 64 FROM tab2
----
2944
4096
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT + MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4150
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4150
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
-3

query II rowsort
SELECT col0, - 87 FROM tab1 AS cor0
----
51
-87
85
-87
91
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - col1
----

query I rowsort
SELECT + + 7 * 42 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
294
294
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 8 ) col0 FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab2 WHERE + col0 + CAST( + col2 AS SIGNED ) - + - col1 NOT IN ( - col0 / col0, col1 / + + col0 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab2 WHERE + col0 + CAST ( + col2 AS INTEGER ) - + - col1 NOT IN ( - col0 / col0, col1 / + + col0 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + - MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4159
SELECT + - MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 16 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL + + COUNT( * ) * - 52 + COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + + COUNT ( * ) * - 52 + COUNT ( * ) FROM tab0 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT DISTINCT - col2 DIV 41 + - 39 + 69 * - col2 FROM tab2 AS cor0
----
-1626
-2799
-4042

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - col2 / 41 + - 39 + 69 * - col2 FROM tab2 AS cor0
----
-1626
-2799
-4042

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT - col2 AS col1, + 84 FROM tab1
----
-59
84
-68
84
-96
84

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <= col1
----

query I rowsort
SELECT DISTINCT 4 * + - 30 AS col1 FROM tab2
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 82 col2, col0 + + col2 FROM tab1
----
82
144
82
147
82
159

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 26 IN ( - col0, col1 )
----

query I rowsort
SELECT ALL col2 * - ( col0 ) AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + 8 + - col0 - - + col1 AS col2 FROM tab2 AS cor0
----
0
13
21

query II rowsort
SELECT col2, + 47 FROM tab1 AS cor0
----
59
47
68
47
96
47

query I rowsort
SELECT DISTINCT - 6 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-6

query I rowsort
SELECT - 44 + + col0 AS col2 FROM tab0
----
-29
43
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT - COUNT( * ) + - - 42 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - COUNT ( * ) + - - 42 FROM tab0 AS cor0
----
39

query I rowsort
SELECT ALL + col2 + - + col0 FROM tab0 cor0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + - col1 AS col2, + 72 AS col0 FROM tab0 AS cor0
----
-1
72
-21
72
-81
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + - 30 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col1 - - 34 FROM tab0 AS cor0
----
-176
-3773
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL - MAX( DISTINCT 25 ) AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - MAX ( DISTINCT 25 ) AS col2 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ( + + col0 ) * col0 - - ( + 31 ) + 87 AS col1 FROM tab1
----
2719
7343
8399

query I rowsort
SELECT DISTINCT - 17 * - 98 AS col1 FROM tab2 WHERE - col2 >= + 30
----

query III rowsort
SELECT * FROM tab1 WHERE - 48 - - + col0 * - col0 * - ( col0 ) - 16 = NULL
----

query I rowsort
SELECT + 42 - - - col0 FROM tab1
----
-43
-49
-9

query I rowsort
SELECT 89 * col1 * + 67 * - - 30 * 34 - col2 AS col0 FROM tab1
----
285866152
30411241
85151544

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT - COUNT( ALL col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - COUNT ( ALL col2 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + ( COUNT( 57 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4188
SELECT + ( COUNT ( 57 ) ) FROM tab0
----
3

query I rowsort
SELECT - + 97 * - + 43 + + ( - 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to db7cf454405b9f4553bcdac8b163be77

query I rowsort
SELECT + 98 * + col2 FROM tab1 AS cor0
----
5782
6664
9408

query I rowsort
SELECT ALL + 50 + 55 AS col0 FROM tab0 AS cor0
----
105
105
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT COUNT( - ( + col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4192
SELECT COUNT ( - ( + col1 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col1 + - 51 FROM tab1 AS cor0
----
-37
-4
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT - MAX( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL - MAX( - - 59 ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - MAX ( - - 59 ) FROM tab0 AS cor0
----
-59

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 33 / col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col2, + col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4198
SELECT + - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4198
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT - col1 + + 85 DIV - - 12 AS col1 FROM tab0
----
-14
-74
6

skipif mysql # not compatible
query I rowsort label-4199
SELECT - col1 + + 85 / - - 12 AS col1 FROM tab0
----
-14
-74
6

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - ( + 76 ) * - col2 < NULL AND NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT DISTINCT + col2 DIV + col1 + 81 AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + col2 / + col1 + 81 AS col0 FROM tab2
----
81

query I rowsort
SELECT - 54 + + 0 FROM tab2
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT DISTINCT - col1 DIV + 43 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT - col1 / + 43 AS col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + 7 + + MAX( + - col1 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 7 + + MAX ( + - col1 ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4205
SELECT - - 36 + - SUM( DISTINCT + col0 ) DIV SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4205
SELECT - - 36 + - SUM ( DISTINCT + col0 ) / SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + - MAX( - - col2 ) + + 90 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + - MAX ( - - col2 ) + + 90 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT 25 * 89 - - - 99 AS col1 FROM tab1 AS cor0
----
2126
2126
2126

query I rowsort
SELECT ALL 1 + - - col0 + + - col1 AS col2 FROM tab2 AS cor0
----
-12
-4
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * + - col0 col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - 60 - + + col1 + col0 FROM tab2 AS cor0
----
-52
-65
-73

query I rowsort
SELECT 11 - + - 97 AS col1 FROM tab1 AS cor0
----
108
108
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND 86 + col1 <= - + col1 * col1 * col2 + col1 * + col0 * col0 + + col0 - + - ( + + 33 ) * 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + col1 * 41 FROM tab1
----
1927
205
574

onlyif mysql # aggregate syntax: 
query II rowsort label-4216
SELECT ALL + 66 col0, + 50 * + ( SUM( ALL + col2 ) ) AS col0 FROM tab1
----
66
11150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4216
SELECT ALL + 66 col0, + 50 * + ( SUM ( ALL + col2 ) ) AS col0 FROM tab1
----
66
11150

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ( + MAX( DISTINCT 74 ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-4217
SELECT ( + MAX ( DISTINCT 74 ) ) FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT - MIN( ALL 59 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - MIN ( ALL 59 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT col2 + + col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + col0 * - col1 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <= + - col1
----

query I rowsort
SELECT DISTINCT + - col0 * + 57 + + + col0 FROM tab0 AS cor0
----
-4872
-5432
-840

query II rowsort
SELECT col1 * 3 - + 88 + - 97 * - col2 AS col2, col2 * - 63 * - - col0 * - + col0 FROM tab0 AS cor0
----
4714
666225
945
4768470
9518
58683933

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT + + 5 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT + + 5 / - col1 AS col2 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT ALL 25, + col0 AS col0 FROM tab0
----
25
15
25
87
25
97

query I rowsort
SELECT DISTINCT - ( - 55 ) AS col1 FROM tab0
----
55

query I rowsort
SELECT ALL + col0 * - + 28 AS col2 FROM tab2
----
-1288
-1792
-2100

query I rowsort
SELECT col0 * + col2 * + 22 FROM tab0
----
15510
19140
211266

query I rowsort
SELECT DISTINCT col1 + - 39 AS col1 FROM tab1
----
-25
-34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT COUNT( * ) * 38 AS col2 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-4230
SELECT COUNT ( * ) * 38 AS col2 FROM tab1
----
114

query III rowsort
SELECT * FROM tab2 WHERE - - 45 > col0 * + 27
----

query I rowsort
SELECT 11 * - col1 FROM tab0
----
-11
-231
-891

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - col2 BETWEEN col2 AND - col0 * - - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4234
SELECT - ( col1 ) DIV - col2 + + 76, col0 col2 FROM tab0
----
76
97
77
15
78
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4234
SELECT - ( col1 ) / - col2 + + 76, col0 col2 FROM tab0
----
76
97
77
15
78
87

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( 21 ) * - 65 >= + + 62
----

query I rowsort
SELECT ALL col0 + + col2 + + - 36 FROM tab1 AS cor0
----
108
111
123

query I rowsort
SELECT - - 50 * - col1 * + - col0 * + col1 + col2 AS col1 FROM tab0 cor0
----
1918360
4920797
4949

query I rowsort
SELECT DISTINCT + col0 + ( + 70 ) AS col0 FROM tab0
----
157
167
85

query I rowsort
SELECT DISTINCT + 96 * + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
4416
6144
7200

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + col0 NOT BETWEEN + col1 + - col2 AND NULL
----

query I rowsort
SELECT - 19 * + - col2 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT ALL + + col2 * - col0 + - - 14 AS col2 FROM tab0 AS cor0
----
-691
-856
-9589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT + - 46 DIV + + 65 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT + - 46 / + + 65 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 9 ) col0, - 39 + 10 AS col1 FROM tab2 AS cor0
----
-9
-29
-9
-29
-9
-29

query I rowsort
SELECT ALL col1 * + - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT DISTINCT col2 DIV col2 * + 45 DIV col1 * - + 76 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT col2 / col2 * + 45 / col1 * - + 76 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col2 + + 19 AS col2 FROM tab0 WHERE NOT - 29 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + col1 * col0 / col0 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT - col1 * col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4250
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT col2 * col1 > NULL
----

query I rowsort
SELECT - ( - 20 ) * ( - 52 ) + - col1 - - - col1 FROM tab1 AS cor0
----
-1050
-1068
-1134

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT 29 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4253
SELECT 29 / col2 AS col2 FROM tab0 AS cor0
----
0
0
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 * - 24 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 + - + col0 + col1 * + col0 * 96 * - 51 col0 FROM tab1 AS cor0
----
-2080880
-20940278
-3495790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73 AS col0, - col0 col2 FROM tab0 AS cor0
----
73
-15
73
-87
73
-97

query I rowsort
SELECT DISTINCT + AVG ( - + col2 ) AS col0 FROM tab0 cor0 WHERE ( NULL ) >= + col1
----
NULL

query II rowsort
SELECT + + 16 AS col2, + ( col0 ) + 15 FROM tab2 AS cor0
----
16
61
16
79
16
90

query I rowsort
SELECT - + col1 * + 43 AS col2 FROM tab0 AS cor0
----
-3483
-43
-903

query I rowsort
SELECT DISTINCT + - 61 * + + 91 * - 36 + 85 FROM tab1 AS cor0
----
199921

query I rowsort
SELECT ALL + - col0 * - + col0 + + col2 AS col1 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT DISTINCT - 33 * SUM( DISTINCT CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
-7491

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT - 33 * SUM ( DISTINCT CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
-7491

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL - SUM( col2 ) col0 FROM tab1 WHERE NOT NULL < - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4264
SELECT ALL - SUM ( col2 ) col0 FROM tab1 WHERE NOT NULL < - col2
----
NULL

query I rowsort
SELECT 0 + - 86 FROM tab0
----
-86
-86
-86

query II rowsort
SELECT col0 + + + col0 AS col0, col1 * + col1 + - 95 + + 51 AS col0 FROM tab2
----
128
5885
150
4445
92
2557

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT DISTINCT + col2 * col1 * col1 DIV + col2 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + col2 * col1 * col1 / + col2 FROM tab2
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT - col2 DIV col0 + col1 + - col0 + + col0 + + + 33 DIV - - 65 AS col1 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-4268
SELECT - col2 / col0 + col1 + - col0 + + col0 + + + 33 / - - 65 AS col1 FROM tab1 AS cor0
----
13
47
5

query I rowsort
SELECT DISTINCT + - col1 * 25 + + 93 FROM tab2 AS cor0
----
-1182
-1582
-1832

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col1 * + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4271
SELECT DISTINCT - 62 + 45 AS col0, 51 DIV - col0 FROM tab1 AS cor0
----
-17
-1
-17
0

skipif mysql # not compatible
query II rowsort label-4271
SELECT DISTINCT - 62 + 45 AS col0, 51 / - col0 FROM tab1 AS cor0
----
-17
-1
-17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT 77 - - 25 * 96 + MIN( ALL + 78 ) AS col0 FROM tab1
----
2555

skipif mysql # not compatible
query I rowsort label-4272
SELECT 77 - - 25 * 96 + MIN ( ALL + 78 ) AS col0 FROM tab1
----
2555

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL MAX( - 58 ) FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL MAX ( - 58 ) FROM tab0
----
-58

query I rowsort
SELECT ( 93 ) * - 56 AS col1 FROM tab2
----
-5208
-5208
-5208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT DISTINCT SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4276
SELECT - ( + + COUNT( DISTINCT - - 42 ) ) AS col0, + 86 AS col2 FROM tab0 AS cor0
----
-1
86

skipif mysql # not compatible
query II rowsort label-4276
SELECT - ( + + COUNT ( DISTINCT - - 42 ) ) AS col0, + 86 AS col2 FROM tab0 AS cor0
----
-1
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4277
SELECT ALL + 5 col2, - CAST( NULL AS SIGNED ) - + 21 FROM tab1 AS cor0
----
5
NULL
5
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4277
SELECT ALL + 5 col2, - CAST ( NULL AS INTEGER ) - + 21 FROM tab1 AS cor0
----
5
NULL
5
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT + ( + CAST( NULL AS SIGNED ) ) * + AVG ( + col1 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + AVG ( + col1 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + ( 61 ) ) AS col0 FROM tab0
----
61
61
61

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - + col1 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + + col0 ) * - col1 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL col2 * ( - 66 ) AS col0 FROM tab2
----
-1518
-2640
-3828

query II rowsort
SELECT col0 * - + col0, 42 AS col2 FROM tab1
----
-2601
42
-7225
42
-8281
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL COUNT( * ) col0 FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4284
SELECT ALL COUNT ( * ) col0 FROM tab2, tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN - col1 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + - - col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + - - col1 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 = col0
----

query II rowsort
SELECT 83 AS col1, - col0 AS col1 FROM tab1 cor0
----
83
-51
83
-85
83
-91

query II rowsort
SELECT col1 AS col1, + col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4290
SELECT ALL CAST( NULL AS DECIMAL ), - col2 AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-4290
SELECT ALL CAST ( NULL AS REAL ), - col2 AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query II rowsort
SELECT ALL + col2, + col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT + 65 + + + SUM( + + col0 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + 65 + + + SUM ( + + col0 ) FROM tab0
----
264

onlyif mysql # DIV for integer division: 
query II rowsort label-4293
SELECT DISTINCT col2, col1 * + col0 + + 89 DIV + + col2 FROM tab1
----
59
426
68
4278
96
714

skipif mysql # not compatible
query II rowsort label-4293
SELECT DISTINCT col2, col1 * + col0 + + 89 / + + col2 FROM tab1
----
59
426
68
4278
96
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT COUNT( * ) * + 92 * + 58 AS col1 FROM tab0
----
16008

skipif mysql # not compatible
query I rowsort label-4294
SELECT COUNT ( * ) * + 92 * + 58 AS col1 FROM tab0
----
16008

query I rowsort
SELECT + col2 - + 44 FROM tab0 AS cor0
----
-34
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + ( + SUM( + 59 ) ) - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
522

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + ( + SUM ( + 59 ) ) - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
522

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT + 23 + col0 - col2 DIV 61 * + col2 col0 FROM tab0
----
110
21
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4298
SELECT + 23 + col0 - col2 / 61 * + col2 col0 FROM tab0
----
110
21
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ), - col2 * 91 col0 FROM tab1
----
51
-8736
85
-5369
91
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 > 23 + + - col0 / - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 78 >= 55
----

query II rowsort
SELECT DISTINCT + col0 * col2, + 21 AS col0 FROM tab2 AS cor0
----
1058
21
2560
21
4350
21

query I rowsort
SELECT col1 * - 22 * 25 AS col0 FROM tab0 AS cor0
----
-11550
-44550
-550

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4305
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 / + 89 BETWEEN - 33 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4305
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 / + 89 BETWEEN - 33 + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT + MIN( ALL + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT ALL + - col0 DIV - 63 + col0 AS col2 FROM tab0 AS cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL + - col0 / - 63 + col0 AS col2 FROM tab0 AS cor0
----
15
88
98

query I rowsort
SELECT - 60 * 36 AS col1 FROM tab1 AS cor0
----
-2160
-2160
-2160

query II rowsort
SELECT DISTINCT col1, + 63 * - - 67 AS col0 FROM tab0
----
1
4221
21
4221
81
4221

query II rowsort
SELECT ALL - col0, + col0 * + col2 AS col0 FROM tab0
----
-15
705
-87
870
-97
9603

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT - + CAST( col0 AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-4312
SELECT - + CAST ( col0 AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-4313
SELECT ALL col1 AS col0, - 0 DIV + col0 - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif mysql # not compatible
query II rowsort label-4313
SELECT ALL col1 AS col0, - 0 / + col0 - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT DISTINCT col2 * + CAST( + col0 * - col1 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT col2 * + CAST ( + col0 * - col1 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT 93 * + col0 + + col1 * - 10 AS col2 FROM tab1 WHERE NOT - col2 - col1 IS NULL
----
4603
7855
7993

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4316
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query III rowsort label-4316
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - CAST ( NULL AS INTEGER ) = - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + 29 * - COUNT( col0 ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + 29 * - COUNT ( col0 ) FROM tab1
----
-87

query I rowsort
SELECT 91 AS col0 FROM tab2 WHERE - col1 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 89 col0 FROM tab1
----
5251
6052
8544

query I rowsort
SELECT DISTINCT - col0 + - 39 AS col1 FROM tab1 WHERE NOT + 80 = 70
----
-124
-130
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4322
SELECT * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) + - 88 NOT BETWEEN NULL AND ( 58 )
----

skipif mysql # not compatible
query III rowsort label-4322
SELECT * FROM tab1 WHERE + CAST ( NULL AS REAL ) + - 88 NOT BETWEEN NULL AND ( 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - 59 * - COUNT( * ) FROM tab1 WHERE NULL <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - 59 * - COUNT ( * ) FROM tab1 WHERE NULL <= - col0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 77 NOT BETWEEN col2 AND - col1
----

query I rowsort
SELECT DISTINCT ( col1 ) + - 82 FROM tab2
----
-15
-31
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 - 46 col1 FROM tab0
----
659
824
9557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * 99 col1 FROM tab1
----
-3267
-3267
-3267

query I rowsort
SELECT col1 * col1 - 33 AS col1 FROM tab2
----
2568
4456
5896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT ALL - CAST( NULL AS SIGNED ) - + COUNT( * ) * 92 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - CAST ( NULL AS INTEGER ) - + COUNT ( * ) * 92 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col1 - + col0 AS col0 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL col2 + + 63 FROM tab1
----
122
131
159

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT - col2 * - ( col0 DIV + col2 ) FROM tab0
----
0
0
80

skipif mysql # not compatible
query I rowsort label-4332
SELECT - col2 * - ( col0 / + col2 ) FROM tab0
----
0
0
80

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT IN ( + col2 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + - ( col1 - + col1 * col2 ) FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE ( 2 + + 48 ) IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT col1 - col0 * 82 AS col1 FROM tab2 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ( 42 ) - COUNT( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN 92 - - ( - col1 ) AND + col2
----
42

skipif mysql # not compatible
query I rowsort label-4339
SELECT ( 42 ) - COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN 92 - - ( - col1 ) AND + col2
----
42

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT MAX( DISTINCT col0 ) * 11 FROM tab0
----
1067

skipif mysql # not compatible
query I rowsort label-4341
SELECT MAX ( DISTINCT col0 ) * 11 FROM tab0
----
1067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT + 98 FROM tab0 WHERE NOT ( + CAST( - col0 AS SIGNED ) ) IN ( - 17 )
----
98
98
98

skipif mysql # not compatible
query I rowsort label-4342
SELECT + 98 FROM tab0 WHERE NOT ( + CAST ( - col0 AS INTEGER ) ) IN ( - 17 )
----
98
98
98

query I rowsort
SELECT DISTINCT - 49 + + col0 FROM tab2
----
-3
15
26

query I rowsort
SELECT ALL 92 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 47 * - col1 AS col0 FROM tab0
----
-3807
-47
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * - 27 col0 FROM tab2
----
-621
-621
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT SUM( 70 ) AS col1 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT SUM ( 70 ) AS col1 FROM tab1
----
210

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT 73 * col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3431
7227
730

query I rowsort
SELECT ALL - col2 - 39 AS col2 FROM tab0 AS cor0
----
-138
-49
-86

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 / - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 59 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT + MAX( ALL 58 ) AS col1 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + MAX ( ALL 58 ) AS col1 FROM tab1
----
58

query I rowsort
SELECT 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL 61 * - col0 FROM tab0 AS cor0
----
-5307
-5917
-915

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4357
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4357
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4358
SELECT DISTINCT - col1 + ( + col2 ) FROM tab0 AS cor0 WHERE CAST( col1 AS DECIMAL ) / + col0 NOT BETWEEN ( - col0 / CAST( 7 AS SIGNED ) ) AND col1
----

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - col1 + ( + col2 ) FROM tab0 AS cor0 WHERE CAST ( col1 AS REAL ) / + col0 NOT BETWEEN ( - col0 / CAST ( 7 AS INTEGER ) ) AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 4 NOT BETWEEN NULL AND col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4360
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 - 90 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4360
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 - 90 * - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT + col2 DIV 82 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4361
SELECT + col2 / 82 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

query I rowsort
SELECT 34 * col1 FROM tab2 AS cor0
----
1734
2278
2618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL col2 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 95 * col0 ) BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL col2 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 95 * col0 ) BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 - 50 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4364
SELECT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 - 50 IS NULL
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( col0 - - col2 )
----

query I rowsort
SELECT DISTINCT - + 65 FROM tab0 cor0
----
-65

query I rowsort
SELECT col0 * - + 67 FROM tab1
----
-3417
-5695
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL CAST( 90 AS SIGNED ) FROM tab0 WHERE NOT - ( col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL CAST ( 90 AS INTEGER ) FROM tab0 WHERE NOT - ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) <> 22
----

query I rowsort
SELECT ALL 18 * - col0 FROM tab1 WHERE ( NULL ) < ( 20 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab0 WHERE NOT col0 <= + 67
----
27
27

query I rowsort
SELECT ALL ( - - 15 ) + col0 * - col2 FROM tab0
----
-690
-855
-9588

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 + + col1 ) BETWEEN col2 * - 5 + col2 AND ( - ( - 10 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT - 77 * COUNT( ALL - col2 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT - 77 * COUNT ( ALL - col2 ) FROM tab0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - 99 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 17 + - 50 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT COUNT( ALL 17 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4377
SELECT COUNT ( ALL 17 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4378
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + CAST( 38 AS SIGNED ) ) NOT IN ( col1 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4378
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + CAST ( 38 AS INTEGER ) ) NOT IN ( col1 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 93 + + 74 - + 96 FROM tab0 cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + + - col2 col0 FROM tab0 AS cor0
----
-107
-159
-70

query I rowsort
SELECT ALL - col0 * col0 - + 0 + - col0 FROM tab2 AS cor0
----
-2162
-4160
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + COUNT( - + col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4382
SELECT + COUNT ( - + col2 ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 71 * 20 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d5b283162fe7321bda20151d14141795

query II rowsort
SELECT ALL col0, col2 + - 34 FROM tab0
----
15
13
87
-24
97
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT col0 + col0 + - CAST( - 3 AS SIGNED ) AS col0 FROM tab0
----
177
197
33

skipif mysql # not compatible
query I rowsort label-4385
SELECT col0 + col0 + - CAST ( - 3 AS INTEGER ) AS col0 FROM tab0
----
177
197
33

query I rowsort
SELECT ALL - col1 * + col2 * - 75 AS col2 FROM tab2
----
231000
291450
87975

query I rowsort
SELECT + 76 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4388
SELECT 76 + COUNT( * ) DIV MAX( DISTINCT - ( 97 ) ) FROM tab1 AS cor0 WHERE 4 + + - CAST( ( - col1 ) AS SIGNED ) IS NOT NULL
----
76

skipif mysql # not compatible
query I rowsort label-4388
SELECT 76 + COUNT ( * ) / MAX ( DISTINCT - ( 97 ) ) FROM tab1 AS cor0 WHERE 4 + + - CAST ( ( - col1 ) AS INTEGER ) IS NOT NULL
----
76

query I rowsort
SELECT + col0 * - ( + col0 ) FROM tab1 AS cor0 WHERE 51 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col2 + + - ( + col1 ) FROM tab1 cor0
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 col1 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT ALL col0 + - - col2 + + 66 AS col2 FROM tab1 AS cor0
----
210
213
225

query I rowsort
SELECT DISTINCT - 36 + + + 18 * ( col1 ) FROM tab1 AS cor0
----
216
54
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT - CAST( + 17 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
-238
-799
-85

skipif mysql # not compatible
query I rowsort label-4394
SELECT - CAST ( + 17 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
-238
-799
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT + ( + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) ) * - 77 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + ( + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * - 77 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 - - 40 + + - 96 * - col1 AS col0 FROM tab0
----
2066
235
7863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT DISTINCT CAST( + ( - - col2 ) AS SIGNED ) - + + 0 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT CAST ( + ( - - col2 ) AS INTEGER ) - + + 0 AS col0 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE ( col1 + - col1 / col1 ) IN ( col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL 64 - - MIN( + - col1 ) AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL 64 - - MIN ( + - col1 ) AS col1 FROM tab0
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-4400
SELECT DISTINCT ( - col0 ) AS col2, col2 DIV - col2 col2 FROM tab1
----
-51
-1
-85
-1
-91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4400
SELECT DISTINCT ( - col0 ) AS col2, col2 / - col2 col2 FROM tab1
----
-51
-1
-85
-1
-91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT MAX( 73 ) FROM tab2 WHERE NOT 47 NOT BETWEEN col2 AND col0
----
73

skipif mysql # not compatible
query I rowsort label-4401
SELECT MAX ( 73 ) FROM tab2 WHERE NOT 47 NOT BETWEEN col2 AND col0
----
73

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col1, 49 * + col1 AS col0 FROM tab0 AS cor0
----
-1
49
-21
1029
-81
3969

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL - ( + - SUM( - col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL - ( + - SUM ( - col2 ) ) FROM tab0
----
-156

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 59 * 91 - col1 ) NOT BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col2 FROM tab1
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4406
SELECT + 64 DIV - - MAX( + 64 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 64 / - - MAX ( + 64 ) AS col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 40 col1 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL SUM( - 92 ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL SUM ( - 92 ) FROM tab1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT DISTINCT - 79 + COUNT( * ) AS col1 FROM tab0 WHERE ( NOT ( col2 ) IN ( - 74 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT - 79 + COUNT ( * ) AS col1 FROM tab0 WHERE ( NOT ( col2 ) IN ( - 74 ) )
----
-76

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT + col0 * - 4 AS col1 FROM tab2
----
-184
-256
-300

query I rowsort
SELECT DISTINCT - 21 FROM tab2 WHERE ( col0 IN ( + col1 + col2 + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL - 17 * MIN( + ( - 9 ) ) * + COUNT( * ) FROM tab0
----
459

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - 17 * MIN ( + ( - 9 ) ) * + COUNT ( * ) FROM tab0
----
459

query I rowsort
SELECT - col1 + + col1 + + - col2 AS col0 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IN ( - 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - COUNT( * ) + - 40 AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-4416
SELECT - COUNT ( * ) + - 40 AS col0 FROM tab2
----
-43

query I rowsort
SELECT ALL col0 * + 72 + + col2 + 56 AS col0 FROM tab2 AS cor0
----
3391
4704
5514

query I rowsort
SELECT ALL 48 FROM tab2 AS cor0 WHERE NULL IS NULL
----
48
48
48

query III rowsort
SELECT * FROM tab0 WHERE NULL = col0 * col0 + - + 13 * - col1 + - 95 * - col1
----

query I rowsort
SELECT DISTINCT + 88 * - 23 * - col1 AS col2 FROM tab1
----
10120
28336
95128

query I rowsort
SELECT DISTINCT + 38 * col1 FROM tab0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT 44 - + ( COUNT( * ) ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-4422
SELECT 44 - + ( COUNT ( * ) ) AS col2 FROM tab1
----
41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 71 / + 23 * + + col0 > col1
----

query I rowsort
SELECT DISTINCT + 28 - - col1 FROM tab1 AS cor0
----
33
42
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 + + - col2 col0, col1 FROM tab1 AS cor0
----
-45
14
23
47
26
5

query I rowsort
SELECT col0 FROM tab2 WHERE NULL IN ( col1 / col2 - - ( + col2 ) )
----

query I rowsort
SELECT ALL - 37 * - 99 - - 75 FROM tab2
----
3738
3738
3738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT + 13 * + COUNT( CAST( + col1 AS SIGNED ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN + + 8 AND col0 + + ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4428
SELECT + 13 * + COUNT ( CAST ( + col1 AS INTEGER ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN + + 8 AND col0 + + ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT DISTINCT SUM( DISTINCT col0 ) * - 14 + + - COUNT( * ) FROM tab1
----
-3181

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT SUM ( DISTINCT col0 ) * - 14 + + - COUNT ( * ) FROM tab1
----
-3181

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT COUNT( ALL + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4430
SELECT COUNT ( ALL + col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT 31 * - + col0 AS col0 FROM tab2
----
-1426
-1984
-2325

query I rowsort
SELECT DISTINCT + 15 * + 92 FROM tab0
----
1380

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - col1 < - col2
----

query I rowsort
SELECT col2 * + + ( col0 ) AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + + col0 < 55
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT ( + COUNT( * ) ) * 27 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT ( + COUNT ( * ) ) * 27 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + COUNT( * ) * + MAX( DISTINCT col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT col1 ) FROM tab1
----
141

query I rowsort
SELECT DISTINCT ( 83 ) AS col2 FROM tab2
----
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - 54
----

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab1 cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 + + col2 col1 FROM tab1 AS cor0
----
-21
-30
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab2 AS cor0
----
65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 55 * - col1 + ( - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4445
SELECT + COUNT( * ) DIV + 23 * 8 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4445
SELECT + COUNT ( * ) / + 23 * 8 FROM tab1
----
0

query II rowsort
SELECT - col1, + col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT + col0 FROM tab1 WHERE + - col2 IS NULL
----

query I rowsort
SELECT + col1 + 95 * col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < + ( 53 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 * - - col1 AND - col0
----

query I rowsort
SELECT - col0 + - ( - + 56 ) + + - 18 AS col2 FROM tab0 AS cor0
----
-49
-59
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL - col1 + - CAST( + 77 AS SIGNED ) AS col0 FROM tab2 WHERE NOT - 69 IS NULL
----
-128
-144
-154

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - col1 + - CAST ( + 77 AS INTEGER ) AS col0 FROM tab2 WHERE NOT - 69 IS NULL
----
-128
-144
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT + COUNT( * ) + - 41 AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-4453
SELECT + COUNT ( * ) + - 41 AS col1 FROM tab2
----
-38

query I rowsort
SELECT col2 + + - ( + - col1 ) FROM tab0
----
100
128
31

query I rowsort
SELECT ALL + col2 * + 11 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <> col2 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 81 col0, col1 FROM tab0 AS cor0
----
-81
1
-81
21
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE + 11 = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <> ( col1 )
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + 29 * col1 col2 FROM tab2 AS cor0
----
51
1479
67
1943
77
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT ALL + 2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + 2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0, + 46 + + col2 FROM tab1 AS cor0
----
51
142
85
105
91
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 46 col1 FROM tab2 AS cor0
----
51
46
67
46
77
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT + - col0 * - 15 - - 70 + - - col1 / - ( 31 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4465
SELECT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + - col0 * - 15 - - 70 + - - col1 / - ( 31 ) IS NULL
----
-3

query II rowsort
SELECT col2 * + + col1, - 20 * + col2 AS col0 FROM tab1
----
1344
-1920
295
-1180
3196
-1360

query I rowsort
SELECT - 26 * 80 + - - col2 FROM tab2 cor0
----
-2022
-2040
-2057

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + SUM( DISTINCT + 7 ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4468
SELECT + SUM ( DISTINCT + 7 ) FROM tab2 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4469
SELECT DISTINCT * FROM tab2 WHERE + col2 / - + CAST( NULL AS SIGNED ) NOT IN ( + 92 * + col1, 7 )
----

skipif mysql # not compatible
query III rowsort label-4469
SELECT DISTINCT * FROM tab2 WHERE + col2 / - + CAST ( NULL AS INTEGER ) NOT IN ( + 92 * + col1, 7 )
----

query I rowsort
SELECT DISTINCT col1 * + 76 AS col0 FROM tab1
----
1064
3572
380

query I rowsort
SELECT ALL col1 * - + col1 + + 1 + + col2 AS col0 FROM tab1 AS cor0
----
-2140
-99
35

query I rowsort
SELECT col2 * + col2 + + + col2 + + - 10 + col0 * + col1 FROM tab2 AS cor0
----
2888
6558
8437

query I rowsort
SELECT DISTINCT - + 95 * - col0 + col1 * + - 46 FROM tab0 AS cor0
----
-2301
7299
9169

query I rowsort
SELECT - col0 * - 92 AS col2 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4475
SELECT 66 AS col2, - 88 - + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-4475
SELECT 66 AS col2, - 88 - + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
66
NULL
66
NULL
66
NULL

query I rowsort
SELECT DISTINCT + col0 + + 37 FROM tab0 AS cor0
----
124
134
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL - MAX( col2 ) FROM tab0 cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - MAX ( col2 ) FROM tab0 cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4478
SELECT ALL + 48 DIV COUNT( * ) * + COUNT( * ) * + CAST( - - 42 AS SIGNED ) FROM tab0
----
2016

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + 48 / COUNT ( * ) * + COUNT ( * ) * + CAST ( - - 42 AS INTEGER ) FROM tab0
----
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE - 32 / - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4480
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE - 32 / - col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 33 * - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 73 + - col1 + + - col0 FROM tab1
----
-17
-65
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4483
SELECT ALL * FROM tab0 WHERE - 12 / - col0 + + col2 * - + CAST( - + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4483
SELECT ALL * FROM tab0 WHERE - 12 / - col0 + + col2 * - + CAST ( - + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT MAX( ALL + 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT MAX ( ALL + 38 ) FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT - COUNT( * ) + - 66 AS col0 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT - COUNT ( * ) + - 66 AS col0 FROM tab2
----
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col1 / - col0 / + col2 * col0 + - col2 AND - 24
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 25 NOT BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 65 < NULL
----

query I rowsort
SELECT DISTINCT + + 17 AS col0 FROM tab1 cor0
----
17

query I rowsort
SELECT ALL - 33 + col0 FROM tab2 AS cor0
----
13
31
42

query I rowsort
SELECT DISTINCT + + col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + SUM( ALL 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + SUM ( ALL 0 ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT - COUNT( * ) * 82 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT - COUNT ( * ) * 82 FROM tab1 AS cor0
----
-246

query I rowsort
SELECT - 4 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT 74 DIV 76 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT 74 / 76 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4496
SELECT DISTINCT 2, CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-4496
SELECT DISTINCT 2, CAST ( NULL AS REAL ) AS col0 FROM tab0
----
2
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - 41 - + - 44 + + - 45 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT - COUNT( * ) * + 80 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-4498
SELECT - COUNT ( * ) * + 80 FROM tab1
----
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col1 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 83 * - 17 AS col2 FROM tab1 AS cor0
----
-1411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT - CAST( NULL AS SIGNED ) - col1 * col1 + - 62 * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4502
SELECT - CAST ( NULL AS INTEGER ) - col1 * col1 + - 62 * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, - col0 * - col1 )
----

query I rowsort
SELECT ALL 7 * + 57 + col2 AS col1 FROM tab2 AS cor0
----
422
439
457

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + + 39 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT + SUM( - 96 ) * - MAX( 87 ) - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
75159

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT + SUM ( - 96 ) * - MAX ( 87 ) - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
75159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4508
SELECT ALL 0 + - ( + COUNT( * ) ) DIV 78 + COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL 0 + - ( + COUNT ( * ) ) / 78 + COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col0 + + + 75 * - col1 AS col0 FROM tab2 cor0
----
-3779
-4950
-5711

query I rowsort
SELECT 39 FROM tab0 AS cor0 WHERE ( + - col1 ) IS NOT NULL
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT - MIN( + col0 ) + - ( - COUNT( * ) ) / + 5 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - MIN ( + col0 ) + - ( - COUNT ( * ) ) / + 5 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4512
SELECT 99 + + col2 + 61 * - CAST( NULL AS SIGNED ) / col2 AS col2, + col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4512
SELECT 99 + + col2 + 61 * - CAST ( NULL AS INTEGER ) / col2 AS col2, + col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL + - col1 * col2 + - - col0 AS col0 FROM tab0 cor0
----
-123
-2
-3792

query II rowsort
SELECT ALL - ( + - col0 ), col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT ALL + 6 + + col2 AS col2, 13 AS col2 FROM tab2 AS cor0
----
29
13
46
13
64
13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col0 - + - ( - col0 ) + - 14 + + - 89 - + 74 * - 82 / - col2 NOT IN ( + + col1 + 58 + - ( 49 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT + COUNT( * ) * + COUNT( * ) AS col1, - SUM( ALL - - ( + ( - col2 ) ) ) AS col1 FROM tab1 AS cor0
----
9
223

skipif mysql # not compatible
query II rowsort label-4517
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1, - SUM ( ALL - - ( + ( - col2 ) ) ) AS col1 FROM tab1 AS cor0
----
9
223

query I rowsort
SELECT col0 * + 51 AS col0 FROM tab0
----
4437
4947
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT COUNT( + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT COUNT ( + - col0 ) FROM tab1
----
3

query I rowsort
SELECT ALL 54 * - - ( - + ( + 60 ) ) AS col0 FROM tab0
----
-3240
-3240
-3240

query II rowsort
SELECT DISTINCT + col2, 22 + + col2 FROM tab0
----
10
32
47
69
99
121

query I rowsort
SELECT 4 * + col0 AS col2 FROM tab2
----
184
256
300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - 63 col1 FROM tab1 AS cor0
----
-16
-49
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 + 24 col2 FROM tab0 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - MAX( DISTINCT + 79 ) * + 34 + - MAX( DISTINCT - col1 ) col0 FROM tab1 cor0
----
-2681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4525
SELECT - MAX ( DISTINCT + 79 ) * + 34 + - MAX ( DISTINCT - col1 ) col0 FROM tab1 cor0
----
-2681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + + col1 FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 * - + 85 + + col0 - ( - col0 ) col1 FROM tab0 AS cor0
----
-8051
-8071
-8215

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + COUNT( ALL 85 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4529
SELECT + COUNT ( ALL 85 ) col0 FROM tab0 cor0
----
3

query II rowsort
SELECT ALL 16, - col0 AS col1 FROM tab0
----
16
-15
16
-87
16
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 73 * + col1
----

query I rowsort
SELECT ALL - col2 * + + 49 FROM tab1
----
-2891
-3332
-4704

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= 10 / + 4
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4534
SELECT DISTINCT - col2 * CAST( + CAST( - col2 AS DECIMAL ) AS SIGNED ) FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT - col2 * CAST ( + CAST ( - col2 AS REAL ) AS INTEGER ) FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT + col0 * + col0 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2697
7284
8349

skipif mysql # not compatible
query I rowsort label-4535
SELECT + col0 * + col0 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT - 83 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) * COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4538
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL - COUNT( * ) + + 88 AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL - COUNT ( * ) + + 88 AS col1 FROM tab2 AS cor0
----
85

query II rowsort
SELECT - 57 AS col0, 37 * + - col2 AS col2 FROM tab2 AS cor0
----
-57
-1480
-57
-2146
-57
-851

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( - - 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + - - col1 + + 60 AS col0 FROM tab0 AS cor0
----
160
188
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 36 * + 37 + col0
----

query I rowsort
SELECT DISTINCT + 89 * + - ( - - col1 ) FROM tab0 AS cor0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL - - 82 + - COUNT( * ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - - 82 + - COUNT ( * ) FROM tab0 AS cor0
----
79

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL CAST( 51 AS SIGNED ) * - 36 + col0 AS col2 FROM tab2
----
-1761
-1772
-1790

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL CAST ( 51 AS INTEGER ) * - 36 + col0 AS col2 FROM tab2
----
-1761
-1772
-1790

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + col1 > 16
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL COUNT( * ) * + SUM( DISTINCT - col0 ) AS col2 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT - col0 ) AS col2 FROM tab0
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COUNT( DISTINCT + col1 ) * + 51 AS col2 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( DISTINCT + col1 ) * + 51 AS col2 FROM tab0
----
153

query III rowsort
SELECT * FROM tab2 WHERE ( 93 + - 54 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 38 + - - ( + col0 ) FROM tab1
----
13
47
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL 92 + - MIN( + 26 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL 92 + - MIN ( + 26 ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT - ( - ( - col0 ) ) * - col2 - col1 AS col2 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + MAX( ALL - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4555
SELECT + MAX ( ALL - - col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2, - col0 )
----

query II rowsort
SELECT + + col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4558
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( + 46 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4558
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( + 46 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT DISTINCT - 49, - COUNT( * ) AS col0 FROM tab1 cor0
----
-49
-3

skipif mysql # not compatible
query II rowsort label-4559
SELECT DISTINCT - 49, - COUNT ( * ) AS col0 FROM tab1 cor0
----
-49
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - - col2 ) IN ( + col1, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT DISTINCT + CAST( - 92 AS SIGNED ) AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + CAST ( - 92 AS INTEGER ) AS col1 FROM tab2
----
-92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 50 > NULL
----

query I rowsort
SELECT ALL col2 + + - 7 AS col1 FROM tab0
----
3
40
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL COUNT( * ) * - 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL COUNT ( * ) * - 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT SUM( DISTINCT ( + col2 ) ) + + 63 - + ( - COUNT( ALL + 12 ) ) FROM tab2
----
187

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT SUM ( DISTINCT ( + col2 ) ) + + 63 - + ( - COUNT ( ALL + 12 ) ) FROM tab2
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT ALL - 80 + + 2 DIV + col1 + + + col1 FROM tab0 AS cor0
----
-59
-77
1

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - 80 + + 2 / + col1 + + + col1 FROM tab0 AS cor0
----
-59
-77
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT + - MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT + - MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - 80 FROM tab1 AS cor0 WHERE - 6 IS NOT NULL
----
-1120
-3760
-400

query I rowsort
SELECT ALL - 2 + col2 AS col1 FROM tab2 AS cor0
----
21
38
56

query I rowsort
SELECT + col1 * col1 * + - ( - - ( + + col0 ) ) AS col0 FROM tab1
----
-201019
-2125
-9996

query II rowsort
SELECT 16 AS col2, 72 AS col0 FROM tab2
----
16
72
16
72
16
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - COUNT( + + col1 ) * - - 78 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-4573
SELECT - COUNT ( + + col1 ) * - - 78 FROM tab1
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT col0 DIV + - col1 AS col0 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT col0 / + - col1 AS col0 FROM tab0
----
-4
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 66 ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-66
-66
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4576
SELECT ALL ( + + CAST( NULL AS DECIMAL ) ) - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL ( + + CAST ( NULL AS REAL ) ) - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT DISTINCT - CAST( + + MIN( DISTINCT - 16 ) AS SIGNED ) AS col2 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - CAST ( + + MIN ( DISTINCT - 16 ) AS INTEGER ) AS col2 FROM tab1
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 51 + - + col2 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL + col0 * + 25 + + col2 + + - 63 - + 62 * + + 49 + - ( - col1 ) FROM tab0 WHERE NOT + 9 > + 87
----
-2598
-576
-895

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT - + col1 / 89 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT - + col1 / 89 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4581
SELECT ALL CAST( - col1 AS SIGNED ), - col2 AS col2 FROM tab0 cor0
----
-1
-99
-21
-10
-81
-47

skipif mysql # not compatible
query II rowsort label-4581
SELECT ALL CAST ( - col1 AS INTEGER ), - col2 AS col2 FROM tab0 cor0
----
-1
-99
-21
-10
-81
-47

query II rowsort
SELECT col0, - 10 * + col2 AS col1 FROM tab2 AS cor0
----
46
-230
64
-400
75
-580

onlyif mysql # DIV for integer division: 
query II rowsort label-4583
SELECT DISTINCT + col1 DIV - + col0, col1 + - col1 AS col1 FROM tab1
----
0
0

skipif mysql # not compatible
query II rowsort label-4583
SELECT DISTINCT + col1 / - + col0, col1 + - col1 AS col1 FROM tab1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL - 28 + + COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - 28 + + COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
-19

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 23 ) col0 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT + 6 * + + col0 AS col1 FROM tab2 AS cor0
----
276
384
450

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT DISTINCT ( + col0 ) * ( col1 ) DIV - - col2 AS col1 FROM tab2 AS cor0
----
102
123
86

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT ( + col0 ) * ( col1 ) / - - col2 AS col1 FROM tab2 AS cor0
----
102
123
86

query I rowsort
SELECT - 15 * - - 39 FROM tab0 AS cor0
----
-585
-585
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT + - SUM( DISTINCT 10 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT + - SUM ( DISTINCT 10 ) FROM tab1 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4591
SELECT - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + SUM( ALL - 78 ) AS col1 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-4592
SELECT + SUM ( ALL - 78 ) AS col1 FROM tab2
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( - + 95 ) col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL + COUNT( - 17 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + COUNT ( - 17 ) FROM tab0
----
3

query I rowsort
SELECT ALL 86 + col0 + - col1 + ( + + col2 ) AS col0 FROM tab1
----
198
219
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - MIN( - 38 ) + - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4596
SELECT - MIN ( - 38 ) + - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1
----
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 <> ( NULL )
----

query I rowsort
SELECT col2 * col0 * + 17 + - - 9 FROM tab0 cor0
----
11994
14799
163260

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + + 7 * + col0 + - col2 + + ( - - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * 16 AS col0 FROM tab0
----
1584
160
752

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT MIN( ALL col0 ) - - 48 - - 2 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-4601
SELECT MIN ( ALL col0 ) - - 48 - - 2 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL + - COUNT( * ) + + + ( + 68 ) AS col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + - COUNT ( * ) + + + ( + 68 ) AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4603
SELECT + COUNT( * ) * COUNT( * ) - CAST( NULL AS SIGNED ) + - - 97 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT + COUNT ( * ) * COUNT ( * ) - CAST ( NULL AS INTEGER ) + - - 97 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 93 - + - col2 col2, - col2 AS col0 FROM tab1 AS cor0
----
152
-59
161
-68
189
-96

query I rowsort
SELECT DISTINCT - 54 + + col1 FROM tab1 AS cor0
----
-40
-49
-7

query I rowsort
SELECT - 81 + 76 + col0 AS col0 FROM tab1 AS cor0
----
46
80
86

query I rowsort
SELECT + - col1 + + - col2 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - - 85 + + + col0 + col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4609
SELECT DISTINCT + col2 DIV ( 25 ) + col2 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
10
87
102
97
48
15

skipif mysql # not compatible
query II rowsort label-4609
SELECT DISTINCT + col2 / ( 25 ) + col2 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
10
87
102
97
48
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL + COUNT( DISTINCT - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + COUNT ( DISTINCT - + col0 ) FROM tab0
----
3

query I rowsort
SELECT - col1 * - + col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT + 10 * - - col0 * ( + + ( - + col1 ) ) AS col0 FROM tab1
----
-4250
-42770
-7140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + 24 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + 24 IS NULL
----
NULL

query I rowsort
SELECT ALL ( col0 ) + col0 + + + col1 + col2 AS col2 FROM tab1
----
212
234
297

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 11 IN ( col1, col1, - ( + + col1 ), - 17 * - ( 90 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col0, + col1 FROM tab0 cor0 WHERE NOT + ( 7 ) + col0 <> - col0 + + - 85 + col2 + 72 * + + col2 * - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT - col1 DIV - 52 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4619
SELECT - col1 / - 52 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col1 + - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4621
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) AS col1, 65 FROM tab2
----
0
65

skipif mysql # not compatible
query II rowsort label-4621
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1, 65 FROM tab2
----
0
65

query I rowsort
SELECT + 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT ALL - 41 AS col2, + ( COUNT( * ) ) + 24 FROM tab2 AS cor0
----
-41
27

skipif mysql # not compatible
query II rowsort label-4623
SELECT ALL - 41 AS col2, + ( COUNT ( * ) ) + 24 FROM tab2 AS cor0
----
-41
27

query I rowsort
SELECT ALL + 99 * - + 73 * + 70 - - + col1 + - col1 AS col0 FROM tab1 cor0
----
-505890
-505890
-505890

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - 43 * col1 - - - 8 * + + 7 / + - 1
----

query II rowsort
SELECT - + col2 AS col1, + col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL + MAX( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL + MAX ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4628
SELECT AVG ( ALL + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT AVG ( ALL + CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT 87 DIV COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4629
SELECT 87 / COUNT ( * ) FROM tab1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4630
SELECT - MAX( + ( + - col2 ) ) DIV 86 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT - MAX ( + ( + - col2 ) ) / 86 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( - - 4 ) IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 + - + col1 / + - col0 * + 19 * + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT ALL CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL CAST ( NULL AS INTEGER ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + ( + + ( 6 ) ) AS col1 FROM tab1 AS cor0
----
11
20
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4635
SELECT DISTINCT - COUNT( * ), + 94 AS col0 FROM tab2
----
-3
94

skipif mysql # not compatible
query II rowsort label-4635
SELECT DISTINCT - COUNT ( * ), + 94 AS col0 FROM tab2
----
-3
94

query I rowsort
SELECT ALL - col2 + + - 85 + - col1 FROM tab2 AS cor0
----
-159
-202
-210

query I rowsort
SELECT 85 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 59 - - - 78 - + 77 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
54148
66853
739294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - + 99 col0 FROM tab0 AS cor0
----
18
78
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 - - col2 col0 FROM tab0 AS cor0
----
132
43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT + 3 * + ( COUNT( * ) ) - + + 16 AS col2 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + 3 * + ( COUNT ( * ) ) - + + 16 AS col2 FROM tab2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL + CAST( col2 AS SIGNED ) + + col1 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + CAST ( col2 AS INTEGER ) + + col1 FROM tab0
----
100
128
31

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL col2 - - + 36 + - - col1 + 15 * - 75 * - - col2 AS col0 FROM tab2
----
-25765
-44847
-65089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - col2 col0, col1 * 0 FROM tab0
----
-98
0
11
0
34
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4647
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ), + 92 + - 44 AS col1 FROM tab2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-4647
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ), + 92 + - 44 AS col1 FROM tab2
----
NULL
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col0 AS col1, + col2 AS col1 FROM tab2 WHERE NOT + col1 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT MAX( ALL + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4650
SELECT MAX ( ALL + - col2 ) FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col0 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL - ( - - 0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT 43 DIV col1 AS col1 FROM tab1 AS cor0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-4653
SELECT 43 / col1 AS col1 FROM tab1 AS cor0
----
0
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT MAX( - - 16 ) * + 57 AS col1 FROM tab0
----
912

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT MAX ( - - 16 ) * + 57 AS col1 FROM tab0
----
912

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4655
SELECT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) <> - col2 * 95
----

skipif mysql # not compatible
query III rowsort label-4655
SELECT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> - col2 * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4656
SELECT + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT ALL col0 DIV col1 + col2 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL col0 / col1 + col2 FROM tab2 AS cor0
----
23
40
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT + COUNT( * ) * 28 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4658
SELECT + COUNT ( * ) * 28 FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT COUNT( + + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4660
SELECT COUNT ( + + col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + + col2 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + - col2 * - 52 FROM tab2 AS cor0
----
1196
2080
3016

query I rowsort
SELECT DISTINCT - 49 + - col0 FROM tab0 AS cor0
----
-136
-146
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4664
SELECT + CAST( NULL AS SIGNED ), - col2 AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-4664
SELECT + CAST ( NULL AS INTEGER ), - col2 AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT DISTINCT - col1 * 27 * 75 AS col0 FROM tab1
----
-10125
-28350
-95175

query I rowsort
SELECT ALL col1 * + col1 * + 93 AS col1 FROM tab0
----
41013
610173
93

query II rowsort
SELECT DISTINCT 90 AS col0, + col2 AS col0 FROM tab2
----
90
23
90
40
90
58

query I rowsort
SELECT DISTINCT 11 + col1 FROM tab0 AS cor0
----
12
32
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 89 col2, col1 FROM tab2 AS cor0
----
89
51
89
67
89
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col2 + 13 / + ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col2 + 13 / + ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 47 AS col2 FROM tab0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT - COUNT( * ) - + 60 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-4672
SELECT - COUNT ( * ) - + 60 FROM tab2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + COUNT( * ) - - - ( COUNT( * ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT + COUNT ( * ) - - - ( COUNT ( * ) ) AS col1 FROM tab2
----
0

query I rowsort
SELECT + - 45 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT 76 + - col0 AS col1 FROM tab0 AS cor0
----
-11
-21
61

query I rowsort
SELECT - col1 + 47 + + col1 AS col2 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT SUM( - 13 ) AS col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT SUM ( - 13 ) AS col2 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT + + ( + col1 ) + 39 FROM tab0 AS cor0
----
120
40
60

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL 61 FROM tab1 AS cor0 WHERE NOT 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT 92 + - + COUNT( * ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4681
SELECT 92 + - + COUNT ( * ) FROM tab2 AS cor0
----
89

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + - ( col2 ) * + col1
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 - - col1 <> col0 + ( - col2 ) - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT COUNT( ALL + 26 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4685
SELECT COUNT ( ALL + 26 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT col2 * col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-4686
SELECT col2 * col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4687
SELECT DISTINCT col1, + CAST( + 63 AS SIGNED ) FROM tab0
----
1
63
21
63
81
63

skipif mysql # not compatible
query II rowsort label-4687
SELECT DISTINCT col1, + CAST ( + 63 AS INTEGER ) FROM tab0
----
1
63
21
63
81
63

query I rowsort
SELECT col2 * - ( - + 34 ) FROM tab2
----
1360
1972
782

query II rowsort
SELECT ALL col0 AS col2, col1 * + 82 * + - col2 AS col2 FROM tab0
----
15
-312174
87
-17220
97
-8118

query II rowsort
SELECT + col0, - 43 FROM tab2 AS cor0
----
46
-43
64
-43
75
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4691
SELECT + CAST( NULL AS DECIMAL ) / + 39 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4691
SELECT + CAST ( NULL AS REAL ) / + 39 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - COUNT( - + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4692
SELECT - COUNT ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 95 + - 44 AS col2 FROM tab2
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT 24 + + COUNT( * ) - + + COUNT( * ) * + 45 FROM tab2, tab0 AS cor0
----
-372

skipif mysql # not compatible
query I rowsort label-4694
SELECT 24 + + COUNT ( * ) - + + COUNT ( * ) * + 45 FROM tab2, tab0 AS cor0
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - - 30 + - COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4695
SELECT - - 30 + - COUNT ( * ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT - 22 * - col1 + 83 + col2 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-205186
-313315
-884345

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT DISTINCT col0 * - col0 + - col0 DIV 7 + ( - col0 ) FROM tab0 AS cor0
----
-242
-7668
-9519

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT col0 * - col0 + - col0 / 7 + ( - col0 ) FROM tab0 AS cor0
----
-242
-7668
-9519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 53 * - - 2 * - 15 + - ( + col1 ) col0 FROM tab2 AS cor0
----
1513
1523
1539

query I rowsort
SELECT col0 + + + col1 FROM tab1 AS cor0 WHERE NOT - col0 * - - col2 * 52 IS NOT NULL
----

query I rowsort
SELECT + ( - 69 ) / - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT - col1 - 84 * + + col2 AS col0 FROM tab0 AS cor0 WHERE - CAST( 37 AS SIGNED ) IS NOT NULL
----
-4029
-8317
-861

skipif mysql # not compatible
query I rowsort label-4701
SELECT - col1 - 84 * + + col2 AS col0 FROM tab0 AS cor0 WHERE - CAST ( 37 AS INTEGER ) IS NOT NULL
----
-4029
-8317
-861

query I rowsort
SELECT DISTINCT + + ( - - 49 ) FROM tab1 cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4703
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + 56 AS col0, col1 AS col1 FROM tab2
----
2856
51
3752
67
4312
77

skipif mysql # not compatible
query II rowsort label-4703
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + 56 AS col0, col1 AS col1 FROM tab2
----
2856
51
3752
67
4312
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 75 * col0 AS col0 FROM tab2
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + COUNT( - + ( col0 ) ) * - 42 col1 FROM tab1
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4706
SELECT + COUNT ( - + ( col0 ) ) * - 42 col1 FROM tab1
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4707
SELECT DISTINCT - 74 DIV + COUNT( * ) AS col1 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - 74 / + COUNT ( * ) AS col1 FROM tab1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT DISTINCT 2 DIV + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT 2 / + col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 61 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - + 12 AS col1 FROM tab0
----
-1188
-120
-564

query III rowsort
SELECT * FROM tab1 WHERE + 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 13 * col2 + + col0 * + + 71 AS col0 FROM tab0 AS cor0
----
1676
6307
8174

query I rowsort
SELECT + col1 * + 13 + col0 AS col0 FROM tab0 AS cor0
----
1068
110
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 87 + - - ( - 32 ) col1 FROM tab0 AS cor0
----
-119
-119
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT + - col1 + 12 DIV 87 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4716
SELECT + - col1 + 12 / 87 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT col1 DIV + col1 + + - col0 + - col0 + + 54 * + col0 FROM tab2 AS cor0
----
2393
3329
3901

skipif mysql # not compatible
query I rowsort label-4717
SELECT col1 / + col1 + + - col0 + - col0 + + 54 * + col0 FROM tab2 AS cor0
----
2393
3329
3901

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + 75
----

query I rowsort
SELECT col0 * - - 78 * - col0 * + col1 + 5 FROM tab0
----
-12398017
-1421545
-733897

query I rowsort
SELECT - 76 + + - 95 AS col2 FROM tab1
----
-171
-171
-171

query I rowsort
SELECT col1 + + - 63 * - col0 FROM tab0
----
1026
5502
6112

onlyif mysql # DIV for integer division: 
query II rowsort label-4722
SELECT ALL + col2, 54 DIV col1 DIV ( - + col0 ) FROM tab2 cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-4722
SELECT ALL + col2, 54 / col1 / ( - + col0 ) FROM tab2 cor0
----
23
0
40
0
58
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4723
SELECT ALL - col0 AS col2, 87 DIV col2 AS col0 FROM tab0 AS cor0
----
-15
1
-87
8
-97
0

skipif mysql # not compatible
query II rowsort label-4723
SELECT ALL - col0 AS col2, 87 / col2 AS col0 FROM tab0 AS cor0
----
-15
1
-87
8
-97
0

query II rowsort
SELECT ALL - 14, col0 FROM tab2 AS cor0
----
-14
46
-14
64
-14
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 51 >= - + ( + - 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT ( MIN( DISTINCT 29 ) ) AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT ( MIN ( DISTINCT 29 ) ) AS col0 FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT ALL - 95 AS col0, COUNT( col0 ) FROM tab2 AS cor0
----
-95
3

skipif mysql # not compatible
query II rowsort label-4727
SELECT ALL - 95 AS col0, COUNT ( col0 ) FROM tab2 AS cor0
----
-95
3

query I rowsort
SELECT + ( col0 ) * + + 25 FROM tab2 WHERE NOT - - 27 >= + col2
----
1600
1875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT DISTINCT col0 col2 FROM tab2 WHERE NULL IN ( + - 13, CAST( NULL AS SIGNED ) + + 95 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4729
SELECT DISTINCT col0 col2 FROM tab2 WHERE NULL IN ( + - 13, CAST ( NULL AS INTEGER ) + + 95 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4730
SELECT ALL - 63 FROM tab2 WHERE NOT CAST( col2 AS DECIMAL ) + col0 IS NULL
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - 63 FROM tab2 WHERE NOT CAST ( col2 AS REAL ) + col0 IS NULL
----
-63
-63
-63

query II rowsort
SELECT col1 * - - 46 AS col2, + 63 AS col2 FROM tab2
----
2346
63
3082
63
3542
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4732
SELECT ALL 46 DIV - CAST( - 55 AS SIGNED ) col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4732
SELECT ALL 46 / - CAST ( - 55 AS INTEGER ) col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - 10 / + ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4736
SELECT - + SUM( + col2 ) AS col2, + 18 FROM tab0 AS cor0
----
-156
18

skipif mysql # not compatible
query II rowsort label-4736
SELECT - + SUM ( + col2 ) AS col2, + 18 FROM tab0 AS cor0
----
-156
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT + SUM( - col2 ) FROM tab1 AS cor0 WHERE NOT col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT + SUM ( - col2 ) FROM tab1 AS cor0 WHERE NOT col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT - - MAX( - 55 ) AS col0 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4738
SELECT - - MAX ( - 55 ) AS col0 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT col2 * + col1 + + - col1 * + ( 98 ) AS col2 FROM tab1 AS cor0
----
-1410
-195
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - MIN( DISTINCT + + 86 ) AS col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4740
SELECT - MIN ( DISTINCT + + 86 ) AS col1 FROM tab0 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL 20 + - - COUNT( * ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL 20 + - - COUNT ( * ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT ALL - + 14 + - + col0 + 18 AS col0 FROM tab2 AS cor0
----
-42
-60
-71

query I rowsort
SELECT DISTINCT - - 17 * - - col1 FROM tab1 AS cor0
----
238
799
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT - + 19 * + COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - + 19 * + COUNT ( * ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4745
SELECT * FROM tab0 AS cor0 WHERE - col1 - - col2 + CAST( 98 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4745
SELECT * FROM tab0 AS cor0 WHERE - col1 - - col2 + CAST ( 98 AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - 58 * - col1 FROM tab0
----
1218
4698
58

query I rowsort
SELECT ALL col2 / - + col1 + col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 39 FROM tab2 WHERE NOT 79 / + + col2 BETWEEN - 79 * - - 52 * ( + + col1 ) AND col0 + - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT + ( - col1 ) DIV - col1 + + col0 AS col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4749
SELECT + ( - col1 ) / - col1 + + col0 AS col0 FROM tab0
----
16
88
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + - + col0 * + + col1 + + - 39 <= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT + - 58 * - 39 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
2265

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT + - 58 * - 39 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
2265

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT ( + COUNT( ALL - ( + + ( + + 35 ) ) ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT ( + COUNT ( ALL - ( + + ( + + 35 ) ) ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4753
SELECT ALL - col2, - ( + CAST( + - col0 AS SIGNED ) ) * - col0 AS col1 FROM tab1 AS cor0
----
-59
-7225
-68
-8281
-96
-2601

skipif mysql # not compatible
query II rowsort label-4753
SELECT ALL - col2, - ( + CAST ( + - col0 AS INTEGER ) ) * - col0 AS col1 FROM tab1 AS cor0
----
-59
-7225
-68
-8281
-96
-2601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT ( - COUNT( * ) ) DIV - + 17 * + - 96 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT ( - COUNT ( * ) ) / - + 17 * + - 96 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT - 11 / + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT - 11 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 79 * + + col1 AS col2 FROM tab2 cor0
----
4029
5293
6083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 30 * - col0 AND ( - ( + col0 ) + + - 68 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4759
SELECT DISTINCT CAST( NULL AS DECIMAL ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4759
SELECT DISTINCT CAST ( NULL AS REAL ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + col0 + - col0 < - col0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4761
SELECT ALL + col2, - 44 DIV + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-4761
SELECT ALL + col2, - 44 / + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4762
SELECT ALL - - col2 AS col1, - 52 FROM tab0 WHERE - CAST( + - 99 AS SIGNED ) * 60 IS NOT NULL
----
10
-52
47
-52
99
-52

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL - - col2 AS col1, - 52 FROM tab0 WHERE - CAST ( + - 99 AS INTEGER ) * 60 IS NOT NULL
----
10
-52
47
-52
99
-52

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col0 ) / + 38 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + + 55 AS col2 FROM tab2
----
-2530
-3520
-4125

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + + 55 AS col2 FROM tab2
----
-2530
-3520
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - 43 * - - COUNT( col0 ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-4765
SELECT - 43 * - - COUNT ( col0 ) FROM tab2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT DISTINCT - MAX( ALL + - 65 ) AS col1 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT - MAX ( ALL + - 65 ) AS col1 FROM tab0
----
65

query I rowsort
SELECT - col2 * - ( + + col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4768
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT 61 * + + CAST( + 91 AS SIGNED ) IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-4768
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT 61 * + + CAST ( + 91 AS INTEGER ) IS NOT NULL ) )
----

query I rowsort
SELECT + + ( + 39 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT + COUNT( * ) + - + COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4770
SELECT + COUNT ( * ) + - + COUNT ( * ) col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab1 WHERE + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT - col0 DIV + col0 + + 17 + 43 * - + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1059
-8412
-94971

skipif mysql # not compatible
query I rowsort label-4772
SELECT - col0 / + col0 + + 17 + 43 * - + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1059
-8412
-94971

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - col1 NOT BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4774
SELECT DISTINCT - + 24 + MIN( + CAST( + - col0 AS SIGNED ) ) FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT - + 24 + MIN ( + CAST ( + - col0 AS INTEGER ) ) FROM tab2 cor0
----
-99

query I rowsort
SELECT ALL col1 + + + col0 AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT DISTINCT - col1 + - col1 + ( col2 ) * CAST( - col0 AS SIGNED ) * + col2 + col2 + - - col0 FROM tab1 AS cor0
----
-295751
-420719
-469897

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - col1 + - col1 + ( col2 ) * CAST ( - col0 AS INTEGER ) * + col2 + col2 + - - col0 FROM tab1 AS cor0
----
-295751
-420719
-469897

query I rowsort
SELECT ALL - - ( - 97 ) + col1 AS col0 FROM tab1 AS cor0
----
-50
-83
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4778
SELECT - CAST( + col2 AS SIGNED ) AS col1, - 97 FROM tab2 AS cor0
----
-23
-97
-40
-97
-58
-97

skipif mysql # not compatible
query II rowsort label-4778
SELECT - CAST ( + col2 AS INTEGER ) AS col1, - 97 FROM tab2 AS cor0
----
-23
-97
-40
-97
-58
-97

query II rowsort
SELECT 48 AS col1, 37 + + col0 FROM tab1 WHERE NULL IS NULL
----
48
122
48
128
48
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + COUNT( * ) + + ( COUNT( * ) ) AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-4780
SELECT + COUNT ( * ) + + ( COUNT ( * ) ) AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT - col0 DIV + col1 - + + col1 FROM tab0
----
-25
-81
-98

skipif mysql # not compatible
query I rowsort label-4781
SELECT - col0 / + col1 - + + col1 FROM tab0
----
-25
-81
-98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + - col0 - col1 * + - col2 NOT BETWEEN + - col0 AND col2 / col1
----

query I rowsort
SELECT DISTINCT 21 + - - col1 * col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 50 col0, col1 AS col1 FROM tab2
----
50
51
50
67
50
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT 49 + - COUNT( * ) AS col2 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT 49 + - COUNT ( * ) AS col2 FROM tab1
----
46

query I rowsort
SELECT ALL + col2 - + 13 - - - col0 AS col0 FROM tab1 AS cor0
----
-36
-39
32

query I rowsort
SELECT ALL - col0 + + + 92 AS col0 FROM tab1 AS cor0
----
1
41
7

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( 86 * 41 ) < NULL
----

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0 WHERE NOT + 62 * + 4 = col1
----
11

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT col1 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT DISTINCT MAX( DISTINCT - col1 ) DIV + COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 - col2 IS NULL
----
-17

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT MAX ( DISTINCT - col1 ) / + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 - col2 IS NULL
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + 59 * 16 + + MAX( 80 - + col0 ) AS col1 FROM tab1 WHERE NOT NULL < col2 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT + 59 * 16 + + MAX ( 80 - + col0 ) AS col1 FROM tab1 WHERE NOT NULL < col2 * col1
----
NULL

query I rowsort
SELECT - col1 + 18 FROM tab2 WHERE NULL = ( + col0 )
----

query I rowsort
SELECT - col0 + col2 FROM tab2 WHERE NOT col2 / + col2 IN ( + col0 )
----
-17
-23
-24

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 77 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 * + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT COUNT( ALL col1 ) + COUNT( + 97 + - 41 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4799
SELECT COUNT ( ALL col1 ) + COUNT ( + 97 + - 41 ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT 41 + col2 * 10 FROM tab0
----
1031
141
511

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 - - col2 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 7 ) col2 FROM tab0
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 77 / col2 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 18 FROM tab2 WHERE NOT col1 = ( + col2 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT MIN( DISTINCT + ( col0 ) ) * + COUNT( * ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT MIN ( DISTINCT + ( col0 ) ) * + COUNT ( * ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col0 FROM tab0 WHERE NOT + col0 IN ( + col2 + + col1 * - col0 )
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col2 col1 FROM tab2 WHERE NOT ( col2 - + col0 ) NOT IN ( + col2 + - col1 * + 52 )
----

query I rowsort
SELECT + col2 - 74 AS col2 FROM tab0
----
-27
-64
25

query III rowsort
SELECT * FROM tab2 WHERE col0 + col0 NOT IN ( 63 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + ( - 34 * + col1 ) + + col1 IS NULL
----

query I rowsort
SELECT ALL - 95 * col2 AS col2 FROM tab2 AS cor0
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT COUNT( * ) + 39 DIV - 60 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4813
SELECT COUNT ( * ) + 39 / - 60 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT DISTINCT + col1 * + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + col1 * + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4816
SELECT ALL + 68 DIV + MIN( + 60 ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4816
SELECT ALL + 68 / + MIN ( + 60 ) col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col2 + + 58 AS col0 FROM tab1 AS cor0
----
117
126
154

query I rowsort
SELECT DISTINCT - 74 FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
-74

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT 26 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4821
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab1 WHERE NULL <> ( - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4821
SELECT CAST ( NULL AS REAL ) col2 FROM tab1 WHERE NULL <> ( - col0 )
----

query I rowsort
SELECT DISTINCT 59 * col0 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT ALL 61 + - col0 * - 27 FROM tab1 AS cor0
----
1438
2356
2518

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT AVG ( 5 ) + + SUM( + 5 - - col1 ) AS col1 FROM tab1 cor0 WHERE NOT - 70 / 50 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT AVG ( 5 ) + + SUM ( + 5 - - col1 ) AS col1 FROM tab1 cor0 WHERE NOT - 70 / 50 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 - - 28 AS col1 FROM tab0 AS cor0
----
109
29
49

query I rowsort
SELECT + col1 + 18 * col0 FROM tab0 AS cor0
----
1587
1747
351

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT - 75 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4827
SELECT - 75 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + 42 + - ( - MAX( ALL col1 ) ) AS col1 FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-4828
SELECT + 42 + - ( - MAX ( ALL col1 ) ) AS col1 FROM tab2 AS cor0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT 19 + - ( COUNT( * ) ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4829
SELECT 19 + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT + 5 * CAST( col1 + + 33 AS SIGNED ) + + 79 * - 24 FROM tab1 AS cor0
----
-1496
-1661
-1706

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 5 * CAST ( col1 + + 33 AS INTEGER ) + + 79 * - 24 FROM tab1 AS cor0
----
-1496
-1661
-1706

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * col2 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 - - 46 FROM tab1 AS cor0
----
-39
-45
-5

query I rowsort
SELECT 48 * + + 32 * + col2 + 24 FROM tab1
----
104472
147480
90648

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 20 ) <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 / col1 col1 FROM tab1 WHERE NOT col1 * + col1 > 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT 7 - COUNT( * ) AS col0 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT 7 - COUNT ( * ) AS col0 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT - MIN( + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT - MIN ( + col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT col2 * - col0 * - ( + col2 ) AS col1 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL 53 + - COUNT( * ) FROM tab1 WHERE NOT ( + col2 * 34 ) >= NULL
----
53

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL 53 + - COUNT ( * ) FROM tab1 WHERE NOT ( + col2 * 34 ) >= NULL
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4840
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( - col1 AS SIGNED ) NOT BETWEEN ( col2 ) AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-4840
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( - col1 AS INTEGER ) NOT BETWEEN ( col2 ) AND ( col0 )
----

query I rowsort
SELECT DISTINCT 93 + - - col1 FROM tab2
----
144
160
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - + MAX( ALL + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + col1 * 35 * + col0 + 67 FROM tab1 AS cor0
----
14942
149762
25057

query I rowsort
SELECT + 17 * + + col2 FROM tab0 AS cor0
----
1683
170
799

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT 20 * - ( - COUNT( * ) ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4845
SELECT 20 * - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
60

query I rowsort
SELECT DISTINCT - ( 66 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4847
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - - ( + col2 ) * col0 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( col0 ) + - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND + col2 - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT ALL 67 * - - 58 * + ( col0 ) DIV col0 col1 FROM tab0 AS cor0
----
3886
3886
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4852
SELECT ALL 67 * - - 58 * + ( col0 ) / col0 col1 FROM tab0 AS cor0
----
3886
3886
3886

query I rowsort
SELECT + + 1 - 94 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL OR NOT ( NULL ) IN ( + col1 )
----

query II rowsort
SELECT 26 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
26
-51
26
-67
26
-77

query I rowsort
SELECT DISTINCT + ( + 51 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL COUNT( * ) * + 62 AS col1 FROM tab1 AS cor0 WHERE NOT ( 62 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL COUNT ( * ) * + 62 AS col1 FROM tab1 AS cor0 WHERE NOT ( 62 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
10
47
99

query I rowsort
SELECT col2 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( 20 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 57 * col0 + 23 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
2930
4868
5210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4863
SELECT ALL 23 AS col2, - ( - CAST( - col1 AS SIGNED ) ) * col0 AS col0 FROM tab2 AS cor0
----
23
-2346
23
-4928
23
-5025

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL 23 AS col2, - ( - CAST ( - col1 AS INTEGER ) ) * col0 AS col0 FROM tab2 AS cor0
----
23
-2346
23
-4928
23
-5025

query I rowsort
SELECT DISTINCT 50 * - + col0 FROM tab1
----
-2550
-4250
-4550

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL COUNT( * ) * 25 * - - 13 AS col2 FROM tab0
----
975

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL COUNT ( * ) * 25 * - - 13 AS col2 FROM tab0
----
975

query I rowsort
SELECT DISTINCT 82 * + - col2 FROM tab0
----
-3854
-8118
-820

query I rowsort
SELECT DISTINCT ( + + col1 ) + - + 22 + - - col1 - col1 * col2 FROM tab2
----
-1093
-2948
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT ( COUNT( * ) ) + COUNT( + 68 ) AS col1 FROM tab2 WHERE ( + col1 ) BETWEEN ( NULL ) AND col1 * 70
----
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT ( COUNT ( * ) ) + COUNT ( + 68 ) AS col1 FROM tab2 WHERE ( + col1 ) BETWEEN ( NULL ) AND col1 * 70
----
0

query I rowsort
SELECT ALL 84 + - col2 AS col0 FROM tab1
----
-12
16
25

query I rowsort
SELECT DISTINCT - 34 + + col2 * + col2 AS col2 FROM tab2
----
1566
3330
495

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 35 ) >= - col1
----
51
14
96
85
5
59

query I rowsort
SELECT ALL + ( 49 ) * + 28 + - col2 * + col0 FROM tab1 AS cor0
----
-3524
-3643
-4816

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col2 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col0 <= ( - col0 + + + col2 - + CAST( NULL AS SIGNED ) * 12 )
----

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col0 <= ( - col0 + + + col2 - + CAST ( NULL AS INTEGER ) * 12 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4876
SELECT DISTINCT - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2, 49 * + CAST( + COUNT( ALL col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
147

skipif mysql # not compatible
query II rowsort label-4876
SELECT DISTINCT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2, 49 * + CAST ( + COUNT ( ALL col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
147

query I rowsort
SELECT + 49 + + 29 AS col2 FROM tab2
----
78
78
78

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE 44 < col0
----
23
40
58

query I rowsort
SELECT ALL col0 * + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + col1 NOT IN ( - 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4881
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - CAST( - + 56 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4881
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - CAST ( - + 56 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4882
SELECT + col1 AS col2, + col0 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE 32 IS NOT NULL
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4882
SELECT + col1 AS col2, + col0 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE 32 IS NOT NULL
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + - col1 * + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col1 ) NOT BETWEEN + 92 AND ( - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 41 AS col0 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - + col1 + - + col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT - CAST( + COUNT( + 28 ) AS SIGNED ) - COUNT( * ) + + SUM( 67 ) AS col2 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - CAST ( + COUNT ( + 28 ) AS INTEGER ) - COUNT ( * ) + + SUM ( 67 ) AS col2 FROM tab1 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4888
SELECT ALL 34 + + CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL 34 + + CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 - + col0 * + 65 + - col0 FROM tab1
----
-3270
-5551
-5938

query I rowsort
SELECT 20 - col2 AS col1 FROM tab2
----
-20
-3
-38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - 17
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL COUNT( * ) * 46 - - 68 + - 71 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL COUNT ( * ) * 46 - - 68 + - 71 FROM tab0
----
135

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 31 + - ( - 34 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - col0 * 12 FROM tab1 WHERE NOT - col0 IS NULL
----
-1020
-1092
-612

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 60 < ( - 33 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
18
18
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT ALL + - MAX( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0 WHERE col1 * - + 61 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4898
SELECT ALL + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0 WHERE col1 * - + 61 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT - + MAX( col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT - + MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + + 9 * 39 - - 81 * - + col2 FROM tab2 cor0
----
-1512
-2889
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT + - MIN( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4901
SELECT + - MIN ( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + COUNT( * ) - - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT + COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4904
SELECT ALL * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) + + - ( 63 ) ) >= col1
----

skipif mysql # not compatible
query III rowsort label-4904
SELECT ALL * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) + + - ( 63 ) ) >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL <> ( + - 76 * ( - col1 ) + + col2 )
----

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT - col2 * - ( + - col1 ) + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4908
SELECT - col2 * - ( + - col1 ) + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IN ( + col2 - col2 / + col1 + + 74 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT - 26 DIV + + col1 FROM tab1 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT - 26 / + + col1 FROM tab1 AS cor0
----
-1
-5
0

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT COUNT( * ) * + MAX( ALL - 6 ) AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4912
SELECT COUNT ( * ) * + MAX ( ALL - 6 ) AS col0 FROM tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT COUNT( - + 45 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT COUNT ( - + 45 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4914
SELECT col1, + CAST( NULL AS SIGNED ) * - + col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4914
SELECT col1, + CAST ( NULL AS INTEGER ) * - + col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 < ( + 83 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( + col0 * - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 1 + + col0 AS col2 FROM tab1
----
50
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT MIN( + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT MIN ( + col0 ) AS col0 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 66 * + + col0 - - 75 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + + ( 83 ) FROM tab2 AS cor0
----
106
123
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - COUNT( * ) * - SUM( + + col2 ) col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4922
SELECT ALL - COUNT ( * ) * - SUM ( + + col2 ) col1 FROM tab0 AS cor0
----
468

query I rowsort
SELECT 22 FROM tab1 AS cor0 WHERE col0 < col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT ALL - col1 FROM tab1 WHERE NOT ( - - CAST( NULL AS SIGNED ) * col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - col1 FROM tab1 WHERE NOT ( - - CAST ( NULL AS INTEGER ) * col0 ) IS NULL
----

query I rowsort
SELECT 77 * + 71 * + col1 FROM tab2
----
278817
366289
420959

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT - MIN( ALL 88 ) + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( + col0 * + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT - MIN ( ALL 88 ) + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( + col0 * + + col1 )
----
NULL

query I rowsort
SELECT ALL 59 AS col1 FROM tab0 AS cor0 WHERE - 92 * 87 = + col1
----

query I rowsort
SELECT ALL + col1 - - + col0 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL - 67 * + 53 AS col0 FROM tab2
----
-3551
-3551
-3551

query I rowsort
SELECT DISTINCT 51 * 75 AS col2 FROM tab1
----
3825

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col1 BETWEEN - - col2 AND NULL
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT - 73 * - - COUNT( * ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT - 73 * - - COUNT ( * ) FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT MAX( - + 25 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + - col0 * + col2, col0 / - 6 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT MAX ( - + 25 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + - col0 * + col2, col0 / - 6 + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4934
SELECT + col2, CAST( NULL AS SIGNED ) - + col2 + + 22 + col1 * 88 - - + col0 * col1 + + col0 + 8 / col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4934
SELECT + col2, CAST ( NULL AS INTEGER ) - + col2 + + 22 + col1 * 88 - - + col0 * col1 + + col0 + 8 / col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col0 IS NULL AND col2 * + ( ( col2 ) ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT col1 AS col1, col2 - - - col0 * - col0 + + col0 FROM tab0
----
1
9605
21
7666
81
287

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 NOT IN ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - 5 * + COUNT( * ) + 61 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4940
SELECT - 5 * + COUNT ( * ) + 61 FROM tab0 AS cor0
----
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 > - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4942
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT + ( - 41 ), 33 * + + COUNT( * ) col2 FROM tab0
----
-41
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4943
SELECT + ( - 41 ), 33 * + + COUNT ( * ) col2 FROM tab0
----
-41
99

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT - CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4946
SELECT DISTINCT + col2 * + - col0 / - CAST( - 32 AS SIGNED ) * + - 61 * 53 + + + CAST( NULL AS DECIMAL ) * + 18 + + + 41 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + col2 * + - col0 / - CAST ( - 32 AS INTEGER ) * + - 61 * 53 + + + CAST ( NULL AS REAL ) * + 18 + + + 41 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col0 FROM tab1 AS cor0 WHERE + 86 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4948
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - MAX( ALL - + 77 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT CAST ( NULL AS REAL ) - - MAX ( ALL - + 77 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT + 71 * + MIN( 86 ) * 19 + - 52 AS col2 FROM tab1
----
115962

skipif mysql # not compatible
query I rowsort label-4949
SELECT + 71 * + MIN ( 86 ) * 19 + - 52 AS col2 FROM tab1
----
115962

query II rowsort
SELECT ALL + col1 * + + col0 * - col1 AS col0, - col2 FROM tab2
----
-119646
-23
-336675
-58
-379456
-40

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + 93, + ( col0 ) + - - col1 )
----

query II rowsort
SELECT - 76, - col2 AS col1 FROM tab2
----
-76
-23
-76
-40
-76
-58

query I rowsort
SELECT ALL ( + 14 ) * - 95 - - + col0 + 67 FROM tab2
----
-1188
-1199
-1217

query II rowsort
SELECT - ( col2 ) * - 29 * - col2, col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE ( NULL ) < 3 / col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 82 - + - col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT DISTINCT - col2 DIV + 29 col1 FROM tab1 AS cor0
----
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4957
SELECT DISTINCT - col2 / + 29 col1 FROM tab1 AS cor0
----
-2
-3

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + col0 - col2 + - col0 * - - col1 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT DISTINCT CAST( - 12 AS SIGNED ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT CAST ( - 12 AS INTEGER ) FROM tab0
----
-12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + ( - col0 ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - ( - 59 ) AS col0 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL col1 * - 81 + - col0 * + - 90 AS col1 FROM tab1 AS cor0
----
3456
4383
7245

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - 26 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4964
SELECT - 26 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
78

query I rowsort
SELECT + col2 * 71 * - col2 FROM tab1 cor0
----
-247151
-328304
-654336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4966
SELECT CAST( NULL AS DECIMAL ) / + 46 * 85 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT CAST ( NULL AS REAL ) / + 46 * 85 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT DISTINCT + 1 * + col2 + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT + 1 * + col2 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4968
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - CAST( NULL AS SIGNED ) AND + 85
----

skipif mysql # not compatible
query III rowsort label-4968
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND + 85
----

query I rowsort
SELECT + + 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - - col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 34 IS NOT NULL
----

query I rowsort
SELECT ALL 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT col0 * - col1 FROM tab2 cor0 WHERE NOT - 62 / - 74 <= NULL
----

query I rowsort
SELECT ALL - - 63 FROM tab2 cor0 WHERE NULL < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4976
SELECT + 56 * + CAST( - col0 AS SIGNED ), col1 FROM tab2 AS cor0
----
-2576
51
-3584
77
-4200
67

skipif mysql # not compatible
query II rowsort label-4976
SELECT + 56 * + CAST ( - col0 AS INTEGER ), col1 FROM tab2 AS cor0
----
-2576
51
-3584
77
-4200
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT DISTINCT col2 DIV col0 * - 28 * 80 + - 38 AS col1 FROM tab0 AS cor0
----
-2278
-38
-6758

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT col2 / col0 * - 28 * 80 + - 38 AS col1 FROM tab0 AS cor0
----
-2278
-38
-6758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT ALL - 86 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - 86 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 + col1 AS col0 FROM tab0
----
128
48
68

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL AND col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4981
SELECT ALL - col0 + - col0 + col1 DIV + + col2 AS col2 FROM tab0
----
-172
-194
-29

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL - col0 + - col0 + col1 / + + col2 AS col2 FROM tab0
----
-172
-194
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4982
SELECT ALL + col0 AS col1, col2 AS col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-4982
SELECT ALL + col0 AS col1, col2 AS col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
96
85
59
91
68

query I rowsort
SELECT - 54 + - col1 AS col1 FROM tab0
----
-135
-55
-75

query I rowsort
SELECT DISTINCT - 76 * - + 57 + - col2 AS col1 FROM tab2
----
4274
4292
4309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - - ( + 97 ) + - 75 col0, + col1 FROM tab0
----
1380
81
8364
21
9334
1

query I rowsort
SELECT ALL 9 * + 81 + col2 FROM tab2
----
752
769
787

query I rowsort
SELECT ALL ( col1 ) + ( - col1 ) - + col0 + - col1 * - col0 + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT - + COUNT( + col1 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - + COUNT ( + col1 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4989
SELECT - COUNT( * ), + SUM( + + 21 ) AS col0 FROM tab1 AS cor0
----
-3
63

skipif mysql # not compatible
query II rowsort label-4989
SELECT - COUNT ( * ), + SUM ( + + 21 ) AS col0 FROM tab1 AS cor0
----
-3
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT 39 AS col2 FROM tab0 cor0 WHERE - col2 * ( + 29 ) + col1 + - col2 * - + CAST( NULL AS SIGNED ) IS NULL
----
39
39
39

skipif mysql # not compatible
query I rowsort label-4990
SELECT 39 AS col2 FROM tab0 cor0 WHERE - col2 * ( + 29 ) + col1 + - col2 * - + CAST ( NULL AS INTEGER ) IS NULL
----
39
39
39

query I rowsort
SELECT + 58 * - col1 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND - ( - 8 ) + + col0
----

query I rowsort
SELECT DISTINCT - col0 * col2 * + + ( - - col2 ) - col1 AS col1 FROM tab0
----
-33216
-8721
-950698

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE + 17 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT - + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE + ( col2 ) < - col2 * col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4994
SELECT - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE + ( col2 ) < - col2 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT - COUNT( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT - COUNT ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 9 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 5 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 5 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col2, - 48 AS col1 FROM tab0
----
10
-48
47
-48
99
-48

query I rowsort
SELECT DISTINCT ( + 99 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN - 72 AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col0 + col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT - ( + 26 ) AS col2 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE col1 * col0 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 61 * + + 27 FROM tab0
----
1647
1647
1647

query II rowsort
SELECT - col2 AS col2, + col1 * + col2 + col1 FROM tab2 AS cor0
----
-23
1224
-40
3157
-58
3953

query I rowsort
SELECT + 93 * + col1 AS col2 FROM tab1 AS cor0
----
1302
4371
465

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT + 2 DIV - 89 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + 2 / - 89 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT ALL + + col2 DIV + + col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL + + col2 / + + col1 FROM tab1 cor0
----
1
11
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 11 ) * + - col2 / + col0 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT - + ( + CAST( NULL AS SIGNED ) ) * - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT - + ( + CAST ( NULL AS INTEGER ) ) * - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT ALL + - col2 * - col1 + + ( + 99 ) DIV + + col0 FROM tab2 AS cor0
----
1175
3081
3887

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL + - col2 * - col1 + + ( + 99 ) / + + col0 FROM tab2 AS cor0
----
1175
3081
3887

query II rowsort
SELECT + col0 * - + 33 AS col2, - col0 + + 68 AS col0 FROM tab0 AS cor0
----
-2871
-19
-3201
-29
-495
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT + - 79 * CAST( NULL AS SIGNED ) / - col2 - + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT + - 79 * CAST ( NULL AS INTEGER ) / - col2 - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 AS col0, - col2 + + + col1 AS col1 FROM tab2
----
-46
28
-64
37
-75
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT - col1 * 19 * - + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
124659
19
8379

skipif mysql # not compatible
query I rowsort label-5018
SELECT - col1 * 19 * - + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
124659
19
8379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + col2 col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5020
SELECT * FROM tab2 WHERE + CAST( - + col1 AS DECIMAL ) + 59 NOT BETWEEN - 14 + 82 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5020
SELECT * FROM tab2 WHERE + CAST ( - + col1 AS REAL ) + 59 NOT BETWEEN - 14 + 82 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - - col2 + col1 * + - col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT ( + col0 ) * ( - col1 ) / col0 - + - col2 - + col2 * - + col1 + + + ( - - CAST( NULL AS SIGNED ) ) + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5022
SELECT ( + col0 ) * ( - col1 ) / col0 - + - col2 - + col2 * - + col1 + + + ( - - CAST ( NULL AS INTEGER ) ) + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 19 + + 90 FROM tab0 AS cor0
----
109

query II rowsort
SELECT + col2 AS col0, + col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT + col1 * - 45 AS col0 FROM tab1
----
-2115
-225
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT - 96 * + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5026
SELECT - 96 * + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT - COUNT( * ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5028
SELECT - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 32 AS col2, col0 + - col1 col0 FROM tab0 AS cor0
----
32
-66
32
66
32
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5031
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5031
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col2 + - col2 col2 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT col0 FROM tab1 AS cor0 WHERE NOT CAST( - 12 AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5033
SELECT col0 FROM tab1 AS cor0 WHERE NOT CAST ( - 12 AS INTEGER ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT ALL CAST( + 89 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL CAST ( + 89 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT ALL ( - - col0 ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5036
SELECT DISTINCT - - col1 col1, + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5036
SELECT DISTINCT - - col1 col1, + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 26, + col1 col0 FROM tab0 AS cor0
----
-26
1
-26
21
-26
81

query I rowsort
SELECT ALL - ( + 24 ) FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT + - 91 DIV + 78 - + - col1 AS col1 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-5039
SELECT + - 91 / + 78 - + - col1 AS col1 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - SUM( + 62 ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-5040
SELECT - SUM ( + 62 ) FROM tab0
----
-186

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - ( + col2 ) ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 54 < NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + + 94 + + col0 BETWEEN NULL AND ( 70 )
----
51
85
91

query I rowsort
SELECT 61 + + - col0 FROM tab0 WHERE NOT - col2 * + 97 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + 77 FROM tab2 cor0
----
-77

query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab1 AS cor0 WHERE NOT ( 73 * + + col2 * + col1 / 55 ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0, col1, + 6, col1 + + + col0 * - + ( 63 ), + col1, 90 )
----
0

skipif mysql # not compatible
query I rowsort label-5047
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0, col1, + 6, col1 + + + col0 * - + ( 63 ), + col1, 90 )
----
0

query I rowsort
SELECT col1 * - - 67 + 15 * - 26 * 27 FROM tab1 cor0
----
-10195
-7381
-9592

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5049
SELECT - + CAST( 26 AS SIGNED ) DIV col1 * 0 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5049
SELECT - + CAST ( 26 AS INTEGER ) / col1 * 0 col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - 83 AS col1, - col2 FROM tab1
----
-83
-59
-83
-68
-83
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 11, - col0 - + col1 + + - col2 - col2 * - 8 * col1 col0 FROM tab0
----
11
1562
11
30313
11
595

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT 88 * - + COUNT( * ) AS col2 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT 88 * - + COUNT ( * ) AS col2 FROM tab1
----
-264

query I rowsort
SELECT - - 10 * - col2 AS col1 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT - + COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5054
SELECT - + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 70 * col0 * col2 + + + col1 FROM tab2 AS cor0
----
179277
304567
74111

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT MIN( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, col0 col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + 32 - col1 FROM tab0 AS cor0
----
-49
11
31

query I rowsort
SELECT ALL 31 * + col2 AS col2 FROM tab2 AS cor0
----
1240
1798
713

query I rowsort
SELECT + - 54 * + + 50 - - - col2 * 83 * - col1 + - + 24 AS col0 FROM tab2 AS cor0
----
252916
319814
94635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - AVG ( - + ( col1 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - AVG ( - + ( col1 ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5062
SELECT * FROM tab0 WHERE NULL < - ( + + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5062
SELECT * FROM tab0 WHERE NULL < - ( + + CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col0 * - col2 * - + col0 AS col0 FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) >= NULL )
----

query II rowsort
SELECT ALL + 96 + + col0, - col2 AS col2 FROM tab2
----
142
-23
160
-40
171
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - col0, col1 col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + 77 - - 75 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT SUM( ALL + - col0 ) FROM tab1 AS cor0 WHERE 53 * - col1 + + + col0 - - col0 + - col2 IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-5069
SELECT SUM ( ALL + - col0 ) FROM tab1 AS cor0 WHERE 53 * - col1 + + + col0 - - col0 + - col2 IS NOT NULL
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT COUNT( * ) * - COUNT( ALL + col0 ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL + col0 ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT + SUM( DISTINCT + 46 ) AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + SUM ( DISTINCT + 46 ) AS col0 FROM tab1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT 74 DIV - COUNT( * ) AS col2 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5072
SELECT 74 / - COUNT ( * ) AS col2 FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + + COUNT( ALL + 36 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5073
SELECT + + COUNT ( ALL + 36 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT MAX( DISTINCT col1 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5074
SELECT MAX ( DISTINCT col1 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT + - SUM( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT + - SUM ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5076
SELECT + 51, CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query II rowsort label-5076
SELECT + 51, CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = CAST ( NULL AS INTEGER ) + + col0
----

query II rowsort
SELECT col0, col1 + + col1 FROM tab2
----
46
102
64
154
75
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ( ( - - COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5078
SELECT ( ( - - COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT - 12 * - col2 FROM tab0
----
1188
120
564

query II rowsort
SELECT col1, ( + col2 ) * + + 75 AS col0 FROM tab1
----
14
7200
47
5100
5
4425

query I rowsort
SELECT DISTINCT - col0 * - - col0 + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 < - 41 / - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT DISTINCT + col0 * + col2 DIV + + col2 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT + col0 * + col2 / + + col2 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT col1 * + 8 + col0 FROM tab0
----
105
255
663

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5085
SELECT + col1 * CAST( + + 81 AS SIGNED ) * - - col1 + + 11 * + CAST( NULL AS DECIMAL ) + 98 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT + col1 * CAST ( + + 81 AS INTEGER ) * - - col1 + + 11 * + CAST ( NULL AS REAL ) + 98 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT - ( - COUNT( * ) ) + - + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT - ( - COUNT ( * ) ) + - + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - 42 * + - ( 66 ) AS col2 FROM tab1 AS cor0
----
2772
2772
2772

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 * col0, - col2 + + col0 )
----

query I rowsort
SELECT - col0 * 70 * + col2 FROM tab2 cor0
----
-179200
-304500
-74060

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL - + ( 20 ) * COUNT( * ) - - MIN( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - + ( 20 ) * COUNT ( * ) - - MIN ( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-5091
SELECT ALL MIN( col0 ) AS col0, - COUNT( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
15
-3

skipif mysql # not compatible
query II rowsort label-5091
SELECT ALL MIN ( col0 ) AS col0, - COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
15
-3

query I rowsort
SELECT + col2 FROM tab1 WHERE + col0 < NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) - - - 59 AS col2 FROM tab0
----
-146
-156
-74

query I rowsort
SELECT DISTINCT + col2 * 95 AS col0 FROM tab2
----
2185
3800
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL - SUM( ALL + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - SUM ( ALL + col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT 59 + col2 FROM tab2
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - - COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5097
SELECT - - COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT - col2 DIV - - 24 FROM tab1 cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-5098
SELECT - col2 / - - 24 FROM tab1 cor0
----
-2
-2
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5099
SELECT - 43 AS col2, CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-43
59
-43
68
-43
96

skipif mysql # not compatible
query II rowsort label-5099
SELECT - 43 AS col2, CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-43
59
-43
68
-43
96

query I rowsort
SELECT 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # DIV for integer division: 
query II rowsort label-5101
SELECT ALL ( - col2 ) DIV col2 + col2 * - - col0, col2 AS col2 FROM tab2
----
1057
23
2559
40
4349
58

skipif mysql # not compatible
query II rowsort label-5101
SELECT ALL ( - col2 ) / col2 + col2 * - - col0, col2 AS col2 FROM tab2
----
1057
23
2559
40
4349
58

query I rowsort
SELECT DISTINCT - + 1 AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 29 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT DISTINCT + MIN( col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT + MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5105
SELECT ALL - - col2 DIV col0 * - + 87 * - col0 AS col2, 71 AS col0 FROM tab2 AS cor0
----
0
71
0
71
0
71

skipif mysql # not compatible
query II rowsort label-5105
SELECT ALL - - col2 / col0 * - + 87 * - col0 AS col2, 71 AS col0 FROM tab2 AS cor0
----
0
71
0
71
0
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT ALL COUNT( * ), COUNT( * ) col1 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5107
SELECT ALL COUNT ( * ), COUNT ( * ) col1 FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT DISTINCT - col2 DIV - col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
99

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT - col2 / - col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5109
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5109
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 77 * - col0 + + + col1 AS col1 FROM tab0 AS cor0
----
-1074
-6678
-7468

query I rowsort
SELECT DISTINCT - + 97 AS col2 FROM tab2 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT col2 * + col1 + + + col1 - + 94 * + - 12 + - - 28 + CAST( + 36 AS SIGNED ) + + col2 + - col0 - - col0 * col0 AS col2 FROM tab0 AS cor0
----
10703
5337
8915

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT col2 * + col1 + + + col1 - + 94 * + - 12 + - - 28 + CAST ( + 36 AS INTEGER ) + + col2 + - col0 - - col0 * col0 AS col2 FROM tab0 AS cor0
----
10703
5337
8915

query I rowsort
SELECT ( col0 ) + + + col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5114
SELECT col1 + 64, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
145
NULL
65
NULL
85
NULL

skipif mysql # not compatible
query II rowsort label-5114
SELECT col1 + 64, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
145
NULL
65
NULL
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL - - 46 + + + COUNT( * ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - - 46 + + + COUNT ( * ) FROM tab0 AS cor0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT + - 85 * + COUNT( ALL col1 ) + + 49 + + MIN( ALL - - ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT + - 85 * + COUNT ( ALL col1 ) + + 49 + + MIN ( ALL - - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 9 - 55 + - ( col1 ) col2 FROM tab1 cor0
----
-15
321
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT 54 - COUNT( * ) col0 FROM tab0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5118
SELECT DISTINCT 54 - COUNT ( * ) col0 FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT ALL + ( 9 ) - CAST( + 94 AS SIGNED ) * + col1 FROM tab0
----
-1965
-7605
-85

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL + ( 9 ) - CAST ( + 94 AS INTEGER ) * + col1 FROM tab0
----
-1965
-7605
-85

query I rowsort
SELECT ALL ( + 13 ) FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT 81 - - + MIN( - 69 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT 81 - - + MIN ( - 69 ) AS col1 FROM tab2
----
12

query I rowsort
SELECT DISTINCT ( - + 78 ) AS col1 FROM tab1
----
-78

query I rowsort
SELECT DISTINCT - 94 FROM tab2 cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 82 * 32 col2, col0 AS col0 FROM tab1 AS cor0
----
2624
51
2624
85
2624
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT DISTINCT - - col1 * - CAST( col0 AS SIGNED ) + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - - col1 * - CAST ( col0 AS INTEGER ) + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 86 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-86

query II rowsort
SELECT DISTINCT + 43 AS col1, + 84 + - col0 * - - col2 * - col2 * col0 AS col1 FROM tab1
----
43
23970900
43
25150309
43
38291428

query I rowsort
SELECT ALL - col2 * + 87 FROM tab2
----
-2001
-3480
-5046

query I rowsort
SELECT DISTINCT 68 * - 65 FROM tab0 AS cor0
----
-4420

query I rowsort
SELECT + col1 * col1 + + + col2 AS col2 FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT - + 6 * + 91 AS col1 FROM tab2 AS cor0
----
-546

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 NOT BETWEEN + 8 AND col1
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT ALL 26 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL 26 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN 68 AND + - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT + - 29 DIV - col1 FROM tab1 cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-5137
SELECT + - 29 / - col1 FROM tab1 cor0
----
0
2
5

query I rowsort
SELECT DISTINCT - col2 + - - 45 + 86 * col0 * - - 50 AS col0 FROM tab2
----
197822
275205
322487

query II rowsort
SELECT + 53 * - col1, - 78 * + 99 * col1 AS col0 FROM tab2
----
-2703
-393822
-3551
-517374
-4081
-594594

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL + + COUNT( * ) + - + 26 AS col1 FROM tab1 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL + + COUNT ( * ) + - + 26 AS col1 FROM tab1 cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT ALL - - col0 + + 98 + + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
108
185
195

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - - col0 + + 98 + + col1 / - col0 AS col2 FROM tab0 AS cor0
----
108
185
195

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 * - col1 * + 47 * col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT 96 DIV - - col2 AS col0 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-5144
SELECT 96 / - - col2 AS col0 FROM tab0
----
0
2
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / 12 * - col2 + - 63 <> ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL COUNT( * ) * 48 * MIN( + - col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL COUNT ( * ) * 48 * MIN ( + - col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 AND + col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - 4 AS col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND col2 * + - ( ( col0 ) )
----

query II rowsort
SELECT ALL + 52 AS col0, + col1 + - + 91 + col2 + col1 + - col2 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 17 / - - col0 * + + 6 IS NULL
----
52
110
52
140
52
62

query I rowsort
SELECT - - 25 - - 29 * - - col2 AS col1 FROM tab1 AS cor0
----
1736
1997
2809

query I rowsort
SELECT 20 - - col1 FROM tab1 AS cor0
----
25
34
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5153
SELECT DISTINCT + 87 * - - col2 + - + 72 - - 73 + col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT + 87 * - - col2 + - + 72 - - 73 + col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 72 + + 11 AS col0 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE + 97 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT DISTINCT 35 - 31 * + COUNT( DISTINCT + CAST( 12 AS SIGNED ) ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT 35 - 31 * + COUNT ( DISTINCT + CAST ( 12 AS INTEGER ) ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT - + col2 - col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT 85 - - + col2 AS col1 FROM tab0
----
132
184
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL - MAX( DISTINCT ( col2 ) ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - MAX ( DISTINCT ( col2 ) ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT ALL + col2 * + 70 * + col1 * 83 FROM tab2
----
17894800
22577660
6815130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 90 ), + 86 col2 FROM tab1
----
90
86
90
86
90
86

query I rowsort
SELECT + 83 FROM tab2 WHERE NOT ( - 45 <> NULL )
----

query II rowsort
SELECT DISTINCT ( + 92 ) + - 36 + - col2, + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-12
68
-3
59
-40
96

query II rowsort
SELECT DISTINCT - col1, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT ALL CAST( + - col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL CAST ( + - col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5166
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ), COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-5166
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ), COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT col2 DIV - + 78 col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5167
SELECT col2 / - + 78 col0 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5168
SELECT ALL - 26 * + col1 col2, + 94 DIV - 78 AS col0 FROM tab0
----
-2106
-1
-26
-1
-546
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5168
SELECT ALL - 26 * + col1 col2, + 94 / - 78 AS col0 FROM tab0
----
-2106
-1
-26
-1
-546
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT ALL - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 + - - col2 AS col0, 30 * + col1 FROM tab1 AS cor0
----
110
420
115
1410
64
150

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5171
SELECT + - 46 AS col2, 79 + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
-46
15
-46
33
-46
4

skipif mysql # not compatible
query II rowsort label-5171
SELECT + - 46 AS col2, 79 + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
-46
15
-46
33
-46
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT DISTINCT + CAST( 34 AS SIGNED ) + + 20 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + CAST ( 34 AS INTEGER ) + + 20 FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT + + col2 * + + ( + col2 ) + 25 FROM tab0 AS cor0
----
125
2234
9826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5174
SELECT DISTINCT + - CAST( + - 1 AS SIGNED ) AS col1, 31 + - col0 AS col0 FROM tab2 AS cor0
----
1
-15
1
-33
1
-44

skipif mysql # not compatible
query II rowsort label-5174
SELECT DISTINCT + - CAST ( + - 1 AS INTEGER ) AS col1, 31 + - col0 AS col0 FROM tab2 AS cor0
----
1
-15
1
-33
1
-44

query I rowsort
SELECT ALL 36 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL + + MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + + MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5177
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + - col2 + + 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5177
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + - col2 + + 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 40 * - ( + col2 ) + + 50 FROM tab0 AS cor0
----
1930
4010
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5179
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT MAX( DISTINCT col0 ) * + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-5180
SELECT MAX ( DISTINCT col0 ) * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
276

onlyif mysql # DIV for integer division: 
query II rowsort label-5181
SELECT ALL col0 AS col1, - 98 + - col1 DIV - col0 DIV + col2 DIV col2 FROM tab1
----
51
-98
85
-98
91
-98

skipif mysql # not compatible
query II rowsort label-5181
SELECT ALL col0 AS col1, - 98 + - col1 / - col0 / + col2 / col2 FROM tab1
----
51
-98
85
-98
91
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT - MAX( DISTINCT - ( - 28 ) ) AS col2 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT - MAX ( DISTINCT - ( - 28 ) ) AS col2 FROM tab0
----
-28

query I rowsort
SELECT + 22 + + 75 AS col0 FROM tab1
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT + 13 * - - 16 * - COUNT( * ) AS col2 FROM tab1
----
-624

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + 13 * - - 16 * - COUNT ( * ) AS col2 FROM tab1
----
-624

query I rowsort
SELECT 19 + - col2 FROM tab2
----
-21
-39
-4

query I rowsort
SELECT - 27 + + + col2 FROM tab0 cor0
----
-17
20
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT ALL ( + AVG ( ALL + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL ( + AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 34 + 92 * + col2 AS col2 FROM tab0 AS cor0
----
4358
9142
954

query I rowsort
SELECT DISTINCT - col2 + col1 * - + col2 FROM tab0 AS cor0
----
-198
-220
-3854

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 79 * ( col2 ) * + 37 + - - col0 + + col1 + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT + - col1 * 71 DIV + - col2 + + + col1 AS col0 FROM tab0 AS cor0
----
1
170
203

skipif mysql # not compatible
query I rowsort label-5191
SELECT + - col1 * 71 / + - col2 + + + col1 AS col0 FROM tab0 AS cor0
----
1
170
203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT ALL + CAST( - - col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL + CAST ( - - col0 AS INTEGER ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL CAST( - 63 AS SIGNED ) AS col0 FROM tab2
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL CAST ( - 63 AS INTEGER ) AS col0 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE - 19 < 4
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL + MIN( - - 85 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + MIN ( - - 85 ) FROM tab0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT ALL + CAST( - - 32 AS SIGNED ) FROM tab0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + CAST ( - - 32 AS INTEGER ) FROM tab0
----
32
32
32

query II rowsort
SELECT col1, - col0 AS col2 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( + - 73, col0 * col0 )
----

query I rowsort
SELECT + + 97 * + col2 FROM tab0 AS cor0
----
4559
9603
970

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * - col1 + + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT SUM( - 88 ) FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-5201
SELECT SUM ( - 88 ) FROM tab0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT - MIN( DISTINCT - col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5202
SELECT DISTINCT - MIN ( DISTINCT - col2 ) col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT 45 + + 43 FROM tab1
----
88

query I rowsort
SELECT + col0 + 36 AS col2 FROM tab0
----
123
133
51

query I rowsort
SELECT - 60 + + col1 - - col1 + + - ( col1 ) AS col1 FROM tab2
----
-9
17
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NOT + 89 BETWEEN NULL AND - + 20 * - + col2
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NOT + 89 BETWEEN NULL AND - + 20 * - + col2
----
0

query I rowsort
SELECT - - col1 + + 22 FROM tab0 AS cor0
----
103
23
43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 48 / + + 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5209
SELECT DISTINCT - + 19, - COUNT( * ) * - CAST( - - ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-19
9

skipif mysql # not compatible
query II rowsort label-5209
SELECT DISTINCT - + 19, - COUNT ( * ) * - CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-19
9

query I rowsort
SELECT ALL - + col1 * - 95 FROM tab0 AS cor0
----
1995
7695
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT col1 DIV + ( - - col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5211
SELECT col1 / + ( - - col2 ) FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT col2 * + + 2 AS col0 FROM tab2
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT + ( col1 ) DIV - col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5214
SELECT + ( col1 ) / - col1 AS col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col0 FROM tab2 WHERE NOT - 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT - 14 * + MIN( DISTINCT + col1 ) + MIN( ALL + col1 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - 14 * + MIN ( DISTINCT + col1 ) + MIN ( ALL + col1 ) FROM tab0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - 56 ) AS col1, - col0 col0 FROM tab2
----
56
-46
56
-64
56
-75

query II rowsort
SELECT col1 - 14, + col0 AS col1 FROM tab0
----
-13
97
67
15
7
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 81 + - col1 col1, + col1 AS col1 FROM tab1
----
34
47
67
14
76
5

query II rowsort
SELECT ALL col2 * + 42, col2 FROM tab2
----
1680
40
2436
58
966
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5221
SELECT * FROM tab0 AS cor0 WHERE col0 + + CAST( NULL AS SIGNED ) >= + col0 + - - 48
----

skipif mysql # not compatible
query III rowsort label-5221
SELECT * FROM tab0 AS cor0 WHERE col0 + + CAST ( NULL AS INTEGER ) >= + col0 + - - 48
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - - col0 + - + 47 col2 FROM tab0 AS cor0
----
-752
-917
-9650

query I rowsort
SELECT DISTINCT + 61 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT DISTINCT + col1 DIV + ( - col1 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + col1 / + ( - col1 ) FROM tab2
----
-1

query I rowsort
SELECT ( ( + + col2 ) ) AS col2 FROM tab0
----
10
47
99

query II rowsort
SELECT ALL - 8 AS col0, 35 FROM tab1 AS cor0
----
-8
35
-8
35
-8
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT COUNT( * ) - MAX( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT COUNT ( * ) - MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - ( + ( + - col0 ) ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( ( NULL IS NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5230
SELECT ALL 71 DIV - - col0 AS col2, col0 AS col2 FROM tab1
----
0
85
0
91
1
51

skipif mysql # not compatible
query II rowsort label-5230
SELECT ALL 71 / - - col0 AS col2, col0 AS col2 FROM tab1
----
0
85
0
91
1
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 64
----

query I rowsort
SELECT ALL + - 51 FROM tab0 cor0
----
-51
-51
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - COUNT( * ) + + COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL IS NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5235
SELECT - COUNT ( * ) + + COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 BETWEEN + - col1 AND NULL
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - MIN( + 87 ) col2 FROM tab1 cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5238
SELECT - MIN ( + 87 ) col2 FROM tab1 cor0
----
-87

query I rowsort
SELECT - col0 + + + col2 - - col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col2 * - col1
----

query I rowsort
SELECT DISTINCT col2 * + 84 + col0 * - + col2 + - col2 + + + ( 98 ) - col2 * col1 - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-2363
-321
-3466

query I rowsort
SELECT ALL - col1 * 69 + + ( + col1 ) * + col0 - col0 AS col0 FROM tab1 AS cor0
----
-303
-5
943

query III rowsort
SELECT * FROM tab2 WHERE - col1 - + 7 <> + 73 + - 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT DISTINCT 77 - 77 + SUM( + - col2 ), 61 AS col2 FROM tab0
----
-156
61

skipif mysql # not compatible
query II rowsort label-5244
SELECT DISTINCT 77 - 77 + SUM ( + - col2 ), 61 AS col2 FROM tab0
----
-156
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT COUNT( ALL + + col1 ) + - 86 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT COUNT ( ALL + + col1 ) + - 86 FROM tab1
----
-83

query I rowsort
SELECT - - ( - + col0 ) AS col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL + + COUNT( * ) - ( - - COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + + COUNT ( * ) - ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 29 - - col2 FROM tab1 WHERE - - 67 + - + 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT 61 + + - COUNT( * ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT 61 + + - COUNT ( * ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT COUNT( * ) * 82 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-5250
SELECT COUNT ( * ) * 82 FROM tab2 AS cor0
----
246

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ( + 24 ) * + col2 * + 5 FROM tab0 AS cor0
----
11880
1200
5640

query II rowsort
SELECT - col0 * + col0, + 5 + + col2 AS col2 FROM tab0 AS cor0
----
-225
52
-7569
15
-9409
104

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 24 BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 37 IN ( + 41, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 18 / col0 - - 74 FROM tab2 WHERE ( NOT ( NULL BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT ALL ( - 36 ) AS col2 FROM tab1
----
-36
-36
-36

query II rowsort
SELECT 10, 93 AS col0 FROM tab1
----
10
93
10
93
10
93

query II rowsort
SELECT ALL 19, col1 AS col2 FROM tab0
----
19
1
19
21
19
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT 81 * COUNT( * ) AS col0 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT 81 * COUNT ( * ) AS col0 FROM tab1
----
243

query I rowsort
SELECT 95 * - + col0 AS col1 FROM tab1
----
-4845
-8075
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT - SUM( ALL + 15 ) col0 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5262
SELECT - SUM ( ALL + 15 ) col0 FROM tab1 AS cor0
----
-45

query II rowsort
SELECT ALL + col2 + col1 * col1, + col0 FROM tab0 AS cor0
----
100
97
451
87
6608
15

query I rowsort
SELECT DISTINCT ( + + col0 ) FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE 97 <= - col1
----

query I rowsort
SELECT - 14 * + 47 FROM tab2
----
-658
-658
-658

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < col2 * 22
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + col0 IS NULL
----

query I rowsort
SELECT - ( - col0 ) + col1 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 >= - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + MIN( DISTINCT + col2 ) AS col2 FROM tab1 WHERE NULL BETWEEN - 89 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + MIN ( DISTINCT + col2 ) AS col2 FROM tab1 WHERE NULL BETWEEN - 89 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) NOT BETWEEN - 99 * - 75 AND 2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5273
SELECT DISTINCT col1 + CAST( NULL AS DECIMAL ) * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT col1 + CAST ( NULL AS REAL ) * col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 78 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + col1 ) AND 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 89 col2 FROM tab0
----
-1869
-7209
-89

query I rowsort
SELECT col0 - - col1 * 74 FROM tab1
----
1087
3569
455

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT ( + col1 * col2 ) >= NULL
----

query I rowsort
SELECT col1 - + 73 FROM tab2
----
-22
-6
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5280
SELECT + col2 - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT + col2 - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5281
SELECT ALL + 63 * - MAX( + 92 DIV col1 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + 63 * - MAX ( + 92 / col1 ) FROM tab2
----
-63

query I rowsort
SELECT ALL - col2 * 66 FROM tab1
----
-3894
-4488
-6336

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 51 )
----

query I rowsort
SELECT DISTINCT + 41 FROM tab1 WHERE NOT ( - 52 ) <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5285
SELECT * FROM tab2 WHERE - col2 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5285
SELECT * FROM tab2 WHERE - col2 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + COUNT( * ) + 67 col2 FROM tab0 WHERE NOT col0 * + 0 IS NOT NULL
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5286
SELECT + COUNT ( * ) + 67 col2 FROM tab0 WHERE NOT col0 * + 0 IS NOT NULL
----
67

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN - 66 / - col0 + - ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT + SUM( DISTINCT - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5288
SELECT + SUM ( DISTINCT - col0 ) AS col1 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - 85 * 74 + 54 FROM tab2
----
-6236
-6236
-6236

query I rowsort
SELECT - ( - 15 ) * 33 - 61 FROM tab2
----
434
434
434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT 96 DIV COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5292
SELECT 96 / COUNT ( * ) FROM tab2
----
32

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT 48 / 10 + + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 - 46 AS col2 FROM tab0
----
-31
41
51

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0 WHERE + 79 IS NOT NULL
----
47
47
47

query III rowsort
SELECT ALL * FROM tab2 WHERE 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ALL ( COUNT( * ) ) + 55 FROM tab1 WHERE ( - col1 ) <= col0
----
58

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL ( COUNT ( * ) ) + 55 FROM tab1 WHERE ( - col1 ) <= col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT DISTINCT + 60 + ( + 52 ) * COUNT( * ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT + 60 + ( + 52 ) * COUNT ( * ) FROM tab2
----
216

query I rowsort
SELECT + 77 * 79 AS col0 FROM tab2
----
6083
6083
6083

query I rowsort
SELECT - 10 * 54 FROM tab1
----
-540
-540
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT - 87 * - COUNT( * ) AS col2 FROM tab0 WHERE NOT 7 < ( + CAST( 49 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT - 87 * - COUNT ( * ) AS col2 FROM tab0 WHERE NOT 7 < ( + CAST ( 49 AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE 18 > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT MIN( 35 ) * COUNT( * ) - + 83 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT MIN ( 35 ) * COUNT ( * ) - + 83 FROM tab1 AS cor0
----
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 11 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL - ( MAX( col1 ) ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - ( MAX ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT 10 * - COUNT( DISTINCT - 13 ) AS col0 FROM tab2 WHERE NOT 94 / col2 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-5308
SELECT 10 * - COUNT ( DISTINCT - 13 ) AS col0 FROM tab2 WHERE NOT 94 / col2 IS NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT + COUNT( * ) * - 70 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT + COUNT ( * ) * - 70 FROM tab1 AS cor0
----
-210

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 89 >= ( - col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col1 * col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + 87
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 3 + ( col0 ) < + 94
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT + COUNT( ALL + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5314
SELECT + COUNT ( ALL + col1 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - 1 * 22 FROM tab2 cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT + ( AVG ( - CAST( NULL AS SIGNED ) ) ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT + ( AVG ( - CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT + - 17 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + - 17 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT 17 * - col0 AS col0 FROM tab1 AS cor0
----
-1445
-1547
-867

query I rowsort
SELECT DISTINCT - - 18 * 75 FROM tab2 AS cor0
----
1350

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 col0 FROM tab2 cor0
----
53
53
53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5324
SELECT ALL * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) + - 67 * col1 ) >= col1
----

skipif mysql # not compatible
query III rowsort label-5324
SELECT ALL * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) + - 67 * col1 ) >= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + 17 + - 60 - ( COUNT( * ) ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 17 + - 60 - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-46

query I rowsort
SELECT ALL + 26 + 49 * col2 FROM tab1 AS cor0 WHERE - col2 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT ALL - CAST( + ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - CAST ( + ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + 76 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
1115
3663
465

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT DISTINCT 96 DIV - + col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT 96 / - + col0 FROM tab2
----
-1
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - 63 + - col0 + 63 * 92 col1 FROM tab0
----
-412
228
4836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( + - col0 ) * - col2 col1 FROM tab1 AS cor0
----
4800
4956
6120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + + col1 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 35 AS col2 FROM tab1 AS cor0 WHERE ( - col2 ) BETWEEN 10 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5336
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN col2 AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5336
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN col2 AND + CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col2 col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - - 22 + col0 FROM tab2 AS cor0
----
68
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT MIN( 6 ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 * + col1 * - 48 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT MIN ( 6 ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 * + col1 * - 48 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT ALL 22 + col2 DIV + col2 FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL 22 + col2 / + col2 FROM tab1 AS cor0
----
23
23
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 70 BETWEEN - 38 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5342
SELECT ALL * FROM tab1 WHERE NOT - col0 - - 41 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5342
SELECT ALL * FROM tab1 WHERE NOT - col0 - - 41 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT 97 - COUNT( DISTINCT col2 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT 97 - COUNT ( DISTINCT col2 ) FROM tab1
----
94

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 11 - - + col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + 93 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + 16 * - ( SUM( ( - 53 ) ) ) FROM tab2
----
2544

skipif mysql # not compatible
query I rowsort label-5346
SELECT + 16 * - ( SUM ( ( - 53 ) ) ) FROM tab2
----
2544

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ( - SUM( ALL - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5348
SELECT ( - SUM ( ALL - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT 50 - - - col2 + + col1 FROM tab0 AS cor0
----
-48
61
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 + 45 col0 FROM tab1 AS cor0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL - + MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - + MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL 98 * + + col2 * + - col0 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-75651
-85701
-941095

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab2 AS cor0 WHERE 99 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - - 41 * + - 69 / - col1 * col1 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT ALL - CAST( + + 85 AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - CAST ( + + 85 AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
-85
-85
-85

query I rowsort
SELECT - col2 * + + 12 AS col0 FROM tab2
----
-276
-480
-696

query I rowsort
SELECT - col1 * + 81 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL + SUM( - 46 ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + SUM ( - 46 ) FROM tab0 AS cor0
----
-138

query I rowsort
SELECT ALL + 3 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + ( - MIN( DISTINCT - - 43 ) ) AS col2 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + ( - MIN ( DISTINCT - - 43 ) ) AS col2 FROM tab2 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT DISTINCT - 60 * + CAST( NULL AS SIGNED ) * + 99 * - + 51 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - 60 * + CAST ( NULL AS INTEGER ) * + 99 * - + 51 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5362
SELECT 52, + COUNT( * ) AS col1 FROM tab1
----
52
3

skipif mysql # not compatible
query II rowsort label-5362
SELECT 52, + COUNT ( * ) AS col1 FROM tab1
----
52
3

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 42 + - 82 * 48 FROM tab1
----
-3894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT CAST( - - AVG ( col1 ) AS SIGNED ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-5365
SELECT CAST ( - - AVG ( col1 ) AS INTEGER ) FROM tab0
----
34

query III rowsort
SELECT * FROM tab0 WHERE + - 77 BETWEEN NULL AND - col2 * 6 * col2
----

query I rowsort
SELECT DISTINCT + + col0 * + 61 * - col0 AS col0 FROM tab1 AS cor0
----
-158661
-440725
-505141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 cor0 WHERE NULL BETWEEN col0 AND col2 + + - col0
----

query I rowsort
SELECT DISTINCT + col1 + + ( - - 60 ) AS col1 FROM tab1 AS cor0
----
107
65
74

query I rowsort
SELECT 40 + - col2 - - col1 * - col0 FROM tab0
----
-1222
-156
-1797

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5371
SELECT * FROM tab1 cor0 WHERE CAST( - + col0 AS SIGNED ) * col0 + + 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5371
SELECT * FROM tab1 cor0 WHERE CAST ( - + col0 AS INTEGER ) * col0 + + 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 70 + + 42 AS col1 FROM tab1 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL + col0 * col1 - - CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + col0 * col1 - - CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 96 - - 61, col2 FROM tab2 AS cor0
----
157
23
157
40
157
58

query I rowsort
SELECT DISTINCT col2 * + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 - col0 + + - 70 AS col0 FROM tab1 AS cor0
----
-214
-217
-229

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT ALL - 37 DIV col2 - col2 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - 37 / col2 - col2 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT ALL + 53 DIV - + col2 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + 53 / - + col2 AS col1 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5379
SELECT COUNT( * ), + 18 AS col2 FROM tab2
----
3
18

skipif mysql # not compatible
query II rowsort label-5379
SELECT COUNT ( * ), + 18 AS col2 FROM tab2
----
3
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 39, + col1 col0 FROM tab0 AS cor0
----
39
1
39
21
39
81

query I rowsort
SELECT - col1 * - col1 * col0 * - ( - - col2 ) * - col2 + - col2 + + - 36 + ( + col0 + - 19 ) * col0 FROM tab1 AS cor0
----
7402640
92124636
929518304

query I rowsort
SELECT - 47 * col0 FROM tab0 cor0
----
-4089
-4559
-705

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5383
SELECT + - 2 DIV + 53 * CAST( col1 AS SIGNED ) + + - 9 + - col0 + + ( + col2 ) FROM tab1 AS cor0
----
-32
-35
36

skipif mysql # not compatible
query I rowsort label-5383
SELECT + - 2 / + 53 * CAST ( col1 AS INTEGER ) + + - 9 + - col0 + + ( + col2 ) FROM tab1 AS cor0
----
-32
-35
36

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( - + col2 ) + - col0 BETWEEN NULL AND + - col1 + + + 75
----
15
81
47

query I rowsort
SELECT DISTINCT + - 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-40

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 21 * + 27 AS col1 FROM tab0 cor0
----
11907
45927
567

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - 92 * MIN( + - col1 ) FROM tab0 AS cor0
----
7452

skipif mysql # not compatible
query I rowsort label-5388
SELECT - 92 * MIN ( + - col1 ) FROM tab0 AS cor0
----
7452

query I rowsort
SELECT - col1 * + + col0 + col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT - MAX( DISTINCT - + col0 ) + - + 21 col2 FROM tab2
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5390
SELECT - MAX ( DISTINCT - + col0 ) + - + 21 col2 FROM tab2
----
25

query I rowsort
SELECT ALL - ( - 15 ) FROM tab2
----
15
15
15

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - - - 57 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5393
SELECT DISTINCT CAST( + 28 AS SIGNED ) * - col0 AS col1, - CAST( + 78 AS SIGNED ) AS col0 FROM tab0
----
-2436
-78
-2716
-78
-420
-78

skipif mysql # not compatible
query II rowsort label-5393
SELECT DISTINCT CAST ( + 28 AS INTEGER ) * - col0 AS col1, - CAST ( + 78 AS INTEGER ) AS col0 FROM tab0
----
-2436
-78
-2716
-78
-420
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < ( - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - col1
----

query I rowsort
SELECT DISTINCT + - ( - 77 ) - - col2 AS col0 FROM tab1 AS cor0
----
136
145
173

query I rowsort
SELECT + 69 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + col0 - + 19 * col1 AS col0 FROM tab2
----
-1198
-1399
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 cor0 WHERE + col2 <> - + col1 AND NOT + 8 + + 75 > - 78
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE + col2 <> - + col1 AND NOT + 8 + + 75 > - 78
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 / + 60 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL - CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL - CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT - SUM( 97 ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-291

skipif mysql # not compatible
query I rowsort label-5402
SELECT - SUM ( 97 ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-291

query I rowsort
SELECT + 16 * - - ( + 55 ) + 49 FROM tab1 AS cor0
----
929
929
929

query I rowsort
SELECT ALL - col2 + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-116
-46
-80

query II rowsort
SELECT - ( col0 ) * + ( - 28 ) + col0 + + 91, + col1 FROM tab1 AS cor0
----
1570
14
2556
5
2730
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT DISTINCT + + col0 - 8 DIV col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT + + col0 - 8 / col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 88 - ( + + col2 ) col0 FROM tab2 AS cor0
----
-111
-128
-146

query I rowsort
SELECT DISTINCT col2 * + + col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col1 * - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 / - + col1 AND - col0 + - + 1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 27 / - col2 NOT BETWEEN + col2 + + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + - 90 AS col0 FROM tab0 WHERE NULL IS NULL
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5412
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5412
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT + MIN( 64 ) AS col1 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + MIN ( 64 ) AS col1 FROM tab0
----
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + + col0
----

query I rowsort
SELECT 85 * - + 22 AS col2 FROM tab2
----
-1870
-1870
-1870

query I rowsort
SELECT + - col2 / + - 32 FROM tab0 AS cor0 WHERE NOT - 34 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5417
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, - 54 * + col2 FROM tab2 AS cor0
----
NULL
-1242
NULL
-2160
NULL
-3132

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, - 54 * + col2 FROM tab2 AS cor0
----
NULL
-1242
NULL
-2160
NULL
-3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5418
SELECT COUNT( * ) DIV - - 99 + - MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5418
SELECT COUNT ( * ) / - - 99 + - MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= col0 + ( col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5420
SELECT DISTINCT col1, 24 DIV col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5420
SELECT DISTINCT col1, 24 / col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
0
67
0
77
0

query I rowsort
SELECT ALL col2 + 45 * + + col1 FROM tab0
----
144
3692
955

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + 71 NOT BETWEEN + - col1 * + 98 * - 83 * - col0 + 29 - + - col1 AND NULL
----

query II rowsort
SELECT col1 + + col1, col2 AS col2 FROM tab0 AS cor0
----
162
47
2
99
42
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT + SUM( ALL 37 ) AS col2 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + SUM ( ALL 37 ) AS col2 FROM tab1 AS cor0
----
111

query I rowsort
SELECT DISTINCT - - col1 * 9 AS col0 FROM tab2 AS cor0
----
459
603
693

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + ( + + 86 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT + ( - 76 ) * + 35 * COUNT( * ) AS col2 FROM tab0
----
-7980

skipif mysql # not compatible
query I rowsort label-5428
SELECT + ( - 76 ) * + 35 * COUNT ( * ) AS col2 FROM tab0
----
-7980

onlyif mysql # aggregate syntax: 
query II rowsort label-5429
SELECT + COUNT( * ) AS col1, + COUNT( * ) + + - 47 col2 FROM tab1 AS cor0
----
3
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5429
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) + + - 47 col2 FROM tab1 AS cor0
----
3
-44

query I rowsort
SELECT DISTINCT col2 * + col1 * col0 * - col0 FROM tab0 AS cor0
----
-1589490
-856575
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT DISTINCT col1 * - ( + - CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT col1 * - ( + - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ( - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col2 * - 70 FROM tab0
----
-3290
-6930
-700

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5434
SELECT ALL col0 DIV - col2 AS col0, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
-1
NULL
-1
NULL
-2
NULL

skipif mysql # not compatible
query II rowsort label-5434
SELECT ALL col0 / - col2 AS col0, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
-1
NULL
-1
NULL
-2
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, - 90 AS col0 FROM tab0
----
1
-90
21
-90
81
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 25 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-5436
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 25 IS NULL )
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 95 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT ALL + col0 + col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + col0 + col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 71 * + col1 AS col2, - col2 col1 FROM tab0 AS cor0
----
1491
-10
5751
-47
71
-99

query I rowsort
SELECT 89 * - col1 * col2 FROM tab2 AS cor0
----
-104397
-274120
-345854

query I rowsort
SELECT ALL 44 * + - col1 AS col0 FROM tab1 AS cor0
----
-2068
-220
-616

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE col1 = NULL
----

query I rowsort
SELECT ALL - ( + - 96 ) FROM tab0 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col0, + COUNT( * ) * ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-5444
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col0, + COUNT ( * ) * ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT col1 + + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT col1 + + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 12 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 48 col1, + 82 + col2 AS col0 FROM tab0 AS cor0
----
-48
129
-48
181
-48
92

query I rowsort
SELECT DISTINCT col1 * - col1 * col0 + col2 FROM tab0 AS cor0
----
-38357
-98368
2

query I rowsort
SELECT col0 * + ( + + col2 ) AS col0 FROM tab1 AS cor0 WHERE 79 NOT IN ( + - 63 * + 26 + + + col1 )
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + - COUNT( * ) * - - 69 FROM tab1 WHERE NULL IS NULL
----
-207

skipif mysql # not compatible
query I rowsort label-5450
SELECT + - COUNT ( * ) * - - 69 FROM tab1 WHERE NULL IS NULL
----
-207

onlyif mysql # DIV for integer division: 
query II rowsort label-5451
SELECT DISTINCT - 67 DIV + 35 - - - col0 + col1 AS col1, col2 AS col0 FROM tab1
----
-38
96
-45
68
-81
59

skipif mysql # not compatible
query II rowsort label-5451
SELECT DISTINCT - 67 / + 35 - - - col0 + col1 AS col1, col2 AS col0 FROM tab1
----
-38
96
-45
68
-81
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT + COUNT( * ) * SUM( col2 ) AS col1 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-5452
SELECT + COUNT ( * ) * SUM ( col2 ) AS col1 FROM tab0
----
468

query II rowsort
SELECT ALL + col1 * - - 76, col1 AS col2 FROM tab1 AS cor0
----
1064
14
3572
47
380
5

query I rowsort
SELECT - col2 * + - 37 AS col1 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT 14 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5455
SELECT 14 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT + - COUNT( * ) * SUM( - 90 ) col2 FROM tab2 AS cor0
----
810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5456
SELECT + - COUNT ( * ) * SUM ( - 90 ) col2 FROM tab2 AS cor0
----
810

query I rowsort
SELECT DISTINCT + + 45 AS col2 FROM tab1 AS cor0
----
45

query I rowsort
SELECT DISTINCT 52 * col2 * - - col2 FROM tab0 AS cor0
----
114868
509652
5200

query I rowsort
SELECT ALL + col1 * + col2 * + 77 FROM tab2 AS cor0
----
237160
299222
90321

query II rowsort
SELECT 9, col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5461
SELECT DISTINCT + col0 AS col2, - CAST( + col2 AS SIGNED ) + + col1 col0 FROM tab0
----
15
34
87
11
97
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5461
SELECT DISTINCT + col0 AS col2, - CAST ( + col2 AS INTEGER ) + + col1 col0 FROM tab0
----
15
34
87
11
97
-98

onlyif mysql # aggregate syntax: 
query III rowsort label-5462
SELECT COUNT( * ), MAX( col0 ) col0, COUNT( * ) FROM tab2
----
3
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5462
SELECT COUNT ( * ), MAX ( col0 ) col0, COUNT ( * ) FROM tab2
----
3
75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT MAX( - 71 ) AS col2 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-5463
SELECT MAX ( - 71 ) AS col2 FROM tab0
----
-71

query I rowsort
SELECT DISTINCT col0 * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 55 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - 16 col2 FROM tab0 AS cor0 WHERE NOT + 65 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col0 col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL 78 AS col1 FROM tab2 WHERE NOT + col1 <= - col2 * + col1 + + + ( + col2 ) + ( + + col0 ) * + - col0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col0 * col0 col0 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
-59
7225
-68
8281
-96
2601

query I rowsort
SELECT col2 + col0 + - col1 + + col2 FROM tab2
----
124
41
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT 74 + + col2 DIV - - 45 FROM tab2
----
74
74
75

skipif mysql # not compatible
query I rowsort label-5471
SELECT 74 + + col2 / - - 45 FROM tab2
----
74
74
75

query I rowsort
SELECT col1 + + + col0 AS col0 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5473
SELECT - col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT - col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 90 + 57 * 65 * col1 - + + 12 FROM tab0 AS cor0
----
300003
3603
77703

query I rowsort
SELECT DISTINCT + col1 + + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT DISTINCT + - ( - 25 ) DIV + + 4 + + col1 AS col1 FROM tab2 cor0
----
57
73
83

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT + - ( - 25 ) / + + 4 + + col1 AS col1 FROM tab2 cor0
----
57
73
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 - - 77 * col2 ) <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5479
SELECT col1 - col0 AS col0, 63 / + col1 / + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE + 30 * + col0 * 37 IS NOT NULL
----
-37
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-5479
SELECT col1 - col0 AS col0, 63 / + col1 / + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE + 30 * + col0 * 37 IS NOT NULL
----
-37
NULL
-44
NULL
-80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT 10 * + COUNT( * ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-5480
SELECT 10 * + COUNT ( * ) AS col0 FROM tab1
----
30

query I rowsort
SELECT + col1 + + 37 FROM tab1 WHERE - col2 IS NOT NULL
----
42
51
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT - ( + COUNT( * ) ), 41 + COUNT( * ) AS col2 FROM tab1
----
-3
44

skipif mysql # not compatible
query II rowsort label-5482
SELECT - ( + COUNT ( * ) ), 41 + COUNT ( * ) AS col2 FROM tab1
----
-3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT MAX( + - ( + col2 ) ) * - 44 FROM tab1
----
2596

skipif mysql # not compatible
query I rowsort label-5483
SELECT MAX ( + - ( + col2 ) ) * - 44 FROM tab1
----
2596

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT MIN( col0 ) - + COUNT( * ) col1 FROM tab0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5484
SELECT MIN ( col0 ) - + COUNT ( * ) col1 FROM tab0
----
12

query I rowsort
SELECT ALL col2 + + col0 * - 9 AS col2 FROM tab2
----
-391
-536
-617

query I rowsort
SELECT 0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 99 AS col1 FROM tab2 AS cor0 WHERE - 79 - col1 + + col0 IS NULL
----

query I rowsort
SELECT ALL + + 69 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

query II rowsort
SELECT DISTINCT - 12, col0 FROM tab1
----
-12
51
-12
85
-12
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 77 / ( - 54 ) * col2 AND 0 + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL + - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 40 col2 FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT - - MIN( ALL col1 ) col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5494
SELECT - - MIN ( ALL col1 ) col0 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - COUNT( ALL + col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5495
SELECT - COUNT ( ALL + col0 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5496
SELECT + + 73 AS col1, - SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
73
185

skipif mysql # not compatible
query II rowsort label-5496
SELECT + + 73 AS col1, - SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
73
185

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE + col1 / - 41 IS NULL
----

query I rowsort
SELECT - - col2 * - - col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - COUNT( 2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5499
SELECT - COUNT ( 2 ) FROM tab2
----
-3

query I rowsort
SELECT ALL - + 30 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT + col2 + - ( - col2 ) AS col0 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 49 - + col2 * - + 61 > NULL
----

query II rowsort
SELECT - + 77 * col1, + col2 FROM tab2 AS cor0
----
-3927
23
-5159
58
-5929
40

query I rowsort
SELECT ALL ( - - col0 ) * + col1 AS col2 FROM tab0 AS cor0 WHERE col0 + - 63 BETWEEN NULL AND col0 / + col1
----

query I rowsort
SELECT - + 23 * col1 * col1 AS col0 FROM tab0 AS cor0
----
-10143
-150903
-23

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT DISTINCT CAST( + col2 AS SIGNED ) * + 72 * - col0 FROM tab1
----
-352512
-361080
-445536

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * + 72 * - col0 FROM tab1
----
-352512
-361080
-445536

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL - 54 * + COUNT( * ) + + 79 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL - 54 * + COUNT ( * ) + + 79 FROM tab0
----
-83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5510
SELECT ALL col1 * 28 - col1 AS col0, + CAST( - ( + 10 ) AS SIGNED ) * - - 5 * - - col0 * + + col1 + + CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) + col1 + + 24 * - 81 col2 FROM tab0 AS cor0
----
2187
NULL
27
NULL
567
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5510
SELECT ALL col1 * 28 - col1 AS col0, + CAST ( - ( + 10 ) AS INTEGER ) * - - 5 * - - col0 * + + col1 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) + col1 + + 24 * - 81 col2 FROM tab0 AS cor0
----
2187
NULL
27
NULL
567
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + - 98 + COUNT( + - 50 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + - 98 + COUNT ( + - 50 ) FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT - 33 + - - 16 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5513
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT + + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT + + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 21 + 75 AS col2 FROM tab2 cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 61 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 84 * ( + ( + col2 ) ) FROM tab0
----
3948
8316
840

query I rowsort
SELECT ALL + col2 - + col1 + + 12 AS col1 FROM tab1
----
33
66
94

query I rowsort
SELECT DISTINCT 51 - - col1 AS col2 FROM tab0
----
132
52
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + ( - + col0 ) ) col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5521
SELECT MIN( ALL - CAST( - + col2 AS SIGNED ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5521
SELECT MIN ( ALL - CAST ( - + col2 AS INTEGER ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT COUNT( * ) * + 95 * 96 FROM tab1 AS cor0
----
27360

skipif mysql # not compatible
query I rowsort label-5522
SELECT COUNT ( * ) * + 95 * 96 FROM tab1 AS cor0
----
27360

query I rowsort
SELECT DISTINCT col1 + + 42 + + 38 AS col0 FROM tab1 cor0
----
127
85
94

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col2 * + col0 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

query II rowsort
SELECT + 22 - + 36 AS col2, col1 * - ( - + col0 ) FROM tab1 AS cor0 WHERE NOT - 17 * - - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + 74 * - 97, + col0 )
----

query I rowsort
SELECT DISTINCT - - 85 AS col2 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL + MIN( DISTINCT + + 93 ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL + MIN ( DISTINCT + + 93 ) FROM tab1 AS cor0
----
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 36 BETWEEN col1 AND ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col0, 18 AS col0 FROM tab1
----
51
18
85
18
91
18

query II rowsort
SELECT ALL col0, - 13 FROM tab0
----
15
-13
87
-13
97
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT + col0 DIV + - 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5533
SELECT + col0 / + - 87 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT COUNT( - col2 ) * + 13 AS col1 FROM tab2 WHERE NOT + 42 IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-5534
SELECT COUNT ( - col2 ) * + 13 AS col1 FROM tab2 WHERE NOT + 42 IS NULL
----
39

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + 88 NOT BETWEEN - col0 AND - col1 + - col2
----

query I rowsort
SELECT DISTINCT col0 + - 34 FROM tab0
----
-19
53
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col2, ( - - col0 ) AS col1 FROM tab2 AS cor0
----
50
46
50
64
50
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - 7 col2 FROM tab2 AS cor0
----
39
57
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 22 / + - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT ALL 4 AS col0, COUNT( * ) FROM tab0 AS cor0
----
4
3

skipif mysql # not compatible
query II rowsort label-5540
SELECT ALL 4 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
4
3

query I rowsort
SELECT DISTINCT + + 28 + - + col0 FROM tab1 AS cor0
----
-23
-57
-63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 8, + col1 * - 91 * - col0 * - 4 + + col2 )
----

query I rowsort
SELECT ALL ( + - col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - + 46 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL + 56 * - - ( + ( + CAST( NULL AS SIGNED ) ) ) * ( + - COUNT( * ) ) * - 67 + 42 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + 56 * - - ( + ( + CAST ( NULL AS INTEGER ) ) ) * ( + - COUNT ( * ) ) * - 67 + 42 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT COUNT( * ) + + MIN( 8 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-5546
SELECT COUNT ( * ) + + MIN ( 8 ) FROM tab0
----
11

query III rowsort
SELECT * FROM tab0 WHERE + - 2 * + col2 BETWEEN - 39 * + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT - ( col0 ) + - + CAST( - 58 AS SIGNED ) * col1 FROM tab2
----
2912
3811
4402

skipif mysql # not compatible
query I rowsort label-5548
SELECT - ( col0 ) + - + CAST ( - 58 AS INTEGER ) * col1 FROM tab2
----
2912
3811
4402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL - col1 + - 5 * - - col2 FROM tab1
----
-300
-387
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT + COUNT( * ) - - - 48 * - + ( + 50 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2409

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + COUNT ( * ) - - - 48 * - + ( + 50 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT + + 35 DIV + MAX( DISTINCT - col0 ) + COUNT( - - col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5552
SELECT + + 35 / + MAX ( DISTINCT - col0 ) + COUNT ( - - col1 ) AS col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE + 47 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5553
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE + 47 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL COUNT( * ) + - 48 AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL COUNT ( * ) + - 48 AS col2 FROM tab0 AS cor0
----
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 23 IS NULL
----

query I rowsort
SELECT ALL col2 + + - col1 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT DISTINCT + 33 * + 5 FROM tab2 AS cor0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE - 39 < + - CAST( + CAST( - col0 AS SIGNED ) AS SIGNED )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5558
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE - 39 < + - CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER )
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) - + - col1 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - 20 + - - col0 + - 73 + - - col2 * - col1 + - 36 * - 89 NOT BETWEEN - + col0 * - 88 AND - - 15 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 51 - 4 AS col0 FROM tab0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + COUNT( * ) - - - ( - COUNT( * ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5562
SELECT + COUNT ( * ) - - - ( - COUNT ( * ) ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT + col0 - - col1 FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 - col1 + 68 col2 FROM tab2
----
21
31
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT ALL + CAST( NULL AS SIGNED ) - - - 56 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL + CAST ( NULL AS INTEGER ) - - - 56 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - 61 + + - COUNT( * ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-5566
SELECT - 61 + + - COUNT ( * ) FROM tab0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5567
SELECT + COUNT( * ), 47 col2 FROM tab0 AS cor0 WHERE col0 * CAST( - 29 AS SIGNED ) IS NOT NULL
----
3
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5567
SELECT + COUNT ( * ), 47 col2 FROM tab0 AS cor0 WHERE col0 * CAST ( - 29 AS INTEGER ) IS NOT NULL
----
3
47

query I rowsort
SELECT ALL - col1 + + col0 FROM tab1 AS cor0 WHERE NOT NULL > ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT + ( - CAST( + - 70 AS SIGNED ) ) FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-5569
SELECT + ( - CAST ( + - 70 AS INTEGER ) ) FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT DISTINCT 19, - ( + ( MAX( - col1 ) ) ) + - - COUNT( * ) AS col1 FROM tab1
----
19
8

skipif mysql # not compatible
query II rowsort label-5570
SELECT DISTINCT 19, - ( + ( MAX ( - col1 ) ) ) + - - COUNT ( * ) AS col1 FROM tab1
----
19
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - - 44 col0 FROM tab2
----
2684
2684
2684

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT DISTINCT col1 DIV 9 AS col2 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT col1 / 9 AS col2 FROM tab2
----
5
7
8

query I rowsort
SELECT - 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT SUM( DISTINCT - - 37 ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT SUM ( DISTINCT - - 37 ) FROM tab0
----
37

query II rowsort
SELECT ALL - col0 AS col1, - 93 FROM tab2 cor0
----
-46
-93
-64
-93
-75
-93

query II rowsort
SELECT ALL 92 AS col2, - col2 + + col2 FROM tab2 AS cor0
----
92
0
92
0
92
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 9 AND col0
----

query II rowsort
SELECT - + col0, 22 + - 48 + col1 AS col2 FROM tab0 AS cor0
----
-15
55
-87
-5
-97
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT + col2 DIV col2 + col0 AS col0 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-5579
SELECT + col2 / col2 + col0 AS col0 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL 58 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL 58 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
174

query I rowsort
SELECT DISTINCT - + 63 AS col1 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT + col1 / + + col1 - - col0 + 3 FROM tab0 AS cor0 WHERE NOT ( 57 ) NOT BETWEEN + 78 AND NULL
----

query I rowsort
SELECT - ( + col2 ) * - + col0 + - col2 FROM tab0 AS cor0
----
658
860
9504

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 > - col1 - - - 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5585
SELECT DISTINCT * FROM tab1 WHERE - col0 + 79 / col1 + + - col2 + + 83 / CAST( NULL AS SIGNED ) + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5585
SELECT DISTINCT * FROM tab1 WHERE - col0 + 79 / col1 + + - col2 + + 83 / CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 67 + - col2 AS col1 FROM tab0
----
-32
20
57

query II rowsort
SELECT DISTINCT ( + col1 ) AS col2, + col1 * + col1 AS col1 FROM tab1
----
14
196
47
2209
5
25

query I rowsort
SELECT ALL ( col2 ) * col1 * col2 + ( + + 53 ) AS col2 FROM tab0 AS cor0
----
178982
2153
9854

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - 69 + - + MIN( - + col2 ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - 69 + - + MIN ( - + col2 ) FROM tab2 AS cor0
----
-11

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( ( NULL <= col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5591
SELECT 74 DIV - + 92 * 88 + + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5591
SELECT 74 / - + 92 * 88 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + - + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT + ( - CAST( col1 AS SIGNED ) ) + - - 75 AS col0 FROM tab0 AS cor0
----
-6
54
74

skipif mysql # not compatible
query I rowsort label-5593
SELECT + ( - CAST ( col1 AS INTEGER ) ) + - - 75 AS col0 FROM tab0 AS cor0
----
-6
54
74

query I rowsort
SELECT ALL 67 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT 34 - - col0 AS col0 FROM tab1 AS cor0
----
119
125
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL MAX( + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 80 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL MAX ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 80 AND + col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5597
SELECT DISTINCT * FROM tab1 WHERE - col1 * + - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5597
SELECT DISTINCT * FROM tab1 WHERE - col1 * + - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL < - + 42
----
0

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL < - + 42
----
0

query I rowsort
SELECT + col0 * + + col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL + COUNT( ALL - 69 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + COUNT ( ALL - 69 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT - + 45 DIV COUNT( * ) col0 FROM tab1 cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5601
SELECT - + 45 / COUNT ( * ) col0 FROM tab1 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT CAST( + + 46 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5602
SELECT CAST ( + + 46 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5603
SELECT + + 0 - - - COUNT( * ) * 28 DIV 72 AS col0, 63 * + - ( + - COUNT( * ) ) AS col0 FROM tab1 WHERE NOT + - 89 * + - col1 * - 64 + col1 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5603
SELECT + + 0 - - - COUNT ( * ) * 28 / 72 AS col0, 63 * + - ( + - COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT + - 89 * + - col1 * - 64 + col1 IS NOT NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + COUNT( + 41 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5604
SELECT + COUNT ( + 41 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT ALL + col2 col0 FROM tab0 WHERE NULL >= - - col0 + - - ( + 86 ) + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5605
SELECT ALL + col2 col0 FROM tab0 WHERE NULL >= - - col0 + - - ( + 86 ) + - - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT ALL - col2 DIV - 38 AS col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - col2 / - 38 AS col0 FROM tab1
----
1
1
2

query I rowsort
SELECT + + 30 AS col2 FROM tab2 AS cor0
----
30
30
30

query II rowsort
SELECT - - col1 AS col2, 58 FROM tab0 cor0
----
1
58
21
58
81
58

query I rowsort
SELECT ALL + col2 / + col1 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN + col1 AND - - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 - + 33 IN ( - col1, - col1 - - 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 65 * + + col1 FROM tab2 AS cor0
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT - + 66 + - + COUNT( * ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - + 66 + - + COUNT ( * ) FROM tab0 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT ALL + 81 DIV + col0 + + col2 AS col1 FROM tab1 cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + 81 / + col0 + + col2 AS col1 FROM tab1 cor0
----
59
68
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL - col1 + CAST( - - 57 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-10
-20
6

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - col1 + CAST ( - - 57 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-10
-20
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 38 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 + col1 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 29, col1 FROM tab0
----
29
1
29
21
29
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 77 col2, - 68 * + col0 + - + 35 AS col1 FROM tab0
----
77
-1055
77
-5951
77
-6631

query II rowsort
SELECT DISTINCT col0, col0 AS col1 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT - col1 AS col1, col1 AS col0 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ( - 61 ) AS col1 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 < 50
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 18 - col1 + - col2 FROM tab0 AS cor0
----
-118
-146
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5626
SELECT DISTINCT + COUNT( * ) - + + 37 AS col2, - 50 AS col2 FROM tab0 AS cor0
----
-34
-50

skipif mysql # not compatible
query II rowsort label-5626
SELECT DISTINCT + COUNT ( * ) - + + 37 AS col2, - 50 AS col2 FROM tab0 AS cor0
----
-34
-50

query I rowsort
SELECT + - 48 - + col2 - - - 35 + - 82 AS col2 FROM tab2 AS cor0
----
-188
-205
-223

query I rowsort
SELECT ALL ( col2 ) * ( - col0 ) * - 79 - - col1 * + - col1 + + col1 - - col1 AS col0 FROM tab0 cor0
----
49296
68331
758638

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT + + COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT + + COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT 2 * - 98 * - 54 * + + COUNT( * ) FROM tab2
----
31752

skipif mysql # not compatible
query I rowsort label-5630
SELECT 2 * - 98 * - 54 * + + COUNT ( * ) FROM tab2
----
31752

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT - MAX( - col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5631
SELECT - MAX ( - col1 ) col1 FROM tab1
----
5

query I rowsort
SELECT ALL col0 * - + ( - 68 ) AS col0 FROM tab0 AS cor0
----
1020
5916
6596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT + CAST( NULL AS SIGNED ) / + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT + CAST ( NULL AS INTEGER ) / + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 93 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT - col1 * + 66 AS col0 FROM tab1
----
-3102
-330
-924

query I rowsort
SELECT + 94 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + + col0 * + + col1 + - col0 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT ALL ( + 8 ) DIV + col2 * + 4 * - 24 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL ( + 8 ) / + col2 * + 4 * - 24 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT - 23 * - col1 - - + col2 + 61 + - - 72 AS col2 FROM tab2 AS cor0
----
1329
1732
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + 55 + + - COUNT( + + ( col1 ) ) * + COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-5641
SELECT + 55 + + - COUNT ( + + ( col1 ) ) * + COUNT ( * ) FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT DISTINCT CAST( - - col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

query II rowsort
SELECT DISTINCT - col2, + col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + col0 + - 78 > NULL
----

query I rowsort
SELECT DISTINCT + 49 + - col1 AS col1 FROM tab0
----
-32
28
48

query I rowsort
SELECT ALL - col0 * + 20 * - ( 93 ) * col0 AS col2 FROM tab1
----
13438500
15402660
4837860

query III rowsort
SELECT * FROM tab2 WHERE 73 > col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5648
SELECT - MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT - 52, col1 FROM tab2 AS cor0
----
-52
51
-52
67
-52
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - - col2 col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT DISTINCT - CAST( 85 AS SIGNED ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT - CAST ( 85 AS INTEGER ) FROM tab0
----
-85

query I rowsort
SELECT + - 39 + + col0 FROM tab2 AS cor0
----
25
36
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT DISTINCT COUNT( * ), SUM( 20 ) AS col0 FROM tab1 AS cor0
----
3
60

skipif mysql # not compatible
query II rowsort label-5653
SELECT DISTINCT COUNT ( * ), SUM ( 20 ) AS col0 FROM tab1 AS cor0
----
3
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT - ( - COUNT( * ) ) + - - 80 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - ( - COUNT ( * ) ) + - - 80 FROM tab0 AS cor0
----
83

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT + CAST( NULL AS SIGNED ) + col2 + + col2 + - 3 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT + CAST ( NULL AS INTEGER ) + col2 + + col2 + - 3 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT - + MIN( DISTINCT + - 57 ) AS col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT - + MIN ( DISTINCT + - 57 ) AS col2 FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT + + 19 AS col2 FROM tab1 cor0
----
19

query I rowsort
SELECT DISTINCT ( + + 6 ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT ALL + - COUNT( DISTINCT CAST( + + 39 AS SIGNED ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL + - COUNT ( DISTINCT CAST ( + + 39 AS INTEGER ) ) FROM tab0 cor0
----
-1

query I rowsort
SELECT + + 53 + - - 13 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
66
66
66

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NULL <= + col1 / + ( - + col0 ) - - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT 71 * - COUNT( * ) col0 FROM tab2
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5663
SELECT 71 * - COUNT ( * ) col0 FROM tab2
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + MIN( DISTINCT 92 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5664
SELECT + MIN ( DISTINCT 92 ) FROM tab2 AS cor0
----
92

query I rowsort
SELECT + + ( + 18 ) FROM tab2 cor0
----
18
18
18

query I rowsort
SELECT ALL - + col0 * + 98 FROM tab0 AS cor0
----
-1470
-8526
-9506

query I rowsort
SELECT - col1 + - 36 AS col2 FROM tab1
----
-41
-50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT COUNT( * ) + + 57 AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5668
SELECT COUNT ( * ) + + 57 AS col0 FROM tab0
----
60

query I rowsort
SELECT ALL - 15 + - + col2 FROM tab0 AS cor0
----
-114
-25
-62

query II rowsort
SELECT - 4, + 4 AS col0 FROM tab2 AS cor0
----
-4
4
-4
4
-4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 27 AS col1, - col0 col1 FROM tab1 AS cor0
----
27
-51
27
-85
27
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5672
SELECT - MAX( ALL - ( - + ( col2 ) ) ) AS col1, - MIN( - 62 ) col0 FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5672
SELECT - MAX ( ALL - ( - + ( col2 ) ) ) AS col1, - MIN ( - 62 ) col0 FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
NULL
NULL

query I rowsort
SELECT - - AVG ( ALL + col0 ) AS col1 FROM tab1 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT - col2 * - + col0 AS col2 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE - 35 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 - ( - - 4 ) AS col0 FROM tab1
----
1
10
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT ALL ( + col2 ) DIV col0 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL ( + col2 ) / col0 * - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 92 + - col1 FROM tab0 cor0
----
11
71
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + + 33 - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT SUM( DISTINCT + col2 ) + - 26 * - ( - 69 ) FROM tab1 AS cor0
----
-1571

skipif mysql # not compatible
query I rowsort label-5680
SELECT SUM ( DISTINCT + col2 ) + - 26 * - ( - 69 ) FROM tab1 AS cor0
----
-1571

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT + 42 + MAX( - + 12 ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-5681
SELECT + 42 + MAX ( - + 12 ) FROM tab0 cor0
----
30

query II rowsort
SELECT col2 AS col0, - 25 FROM tab1
----
59
-25
68
-25
96
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT DISTINCT + - MAX( ALL - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT + - MAX ( ALL - + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT + - col1 * - 5 FROM tab0 AS cor0
----
105
405
5

query I rowsort
SELECT DISTINCT + 69 FROM tab2 AS cor0 WHERE - col0 + - col2 IS NULL
----

query I rowsort
SELECT ALL - ( + col0 ) + col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT + COUNT( * ) col2, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5687
SELECT + COUNT ( * ) col2, COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT MIN( ALL + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5688
SELECT MIN ( ALL + col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT MAX( ( + ( col2 ) ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5689
SELECT MAX ( ( + ( col2 ) ) ) FROM tab1
----
96

query I rowsort
SELECT ( 31 ) AS col1 FROM tab2
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT - 76 * + COUNT( * ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-5691
SELECT - 76 * + COUNT ( * ) FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT COUNT( ALL - 67 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5692
SELECT COUNT ( ALL - 67 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT DISTINCT + - CAST( + + 53 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT + - CAST ( + + 53 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5694
SELECT - 40 col1, - CAST( col1 AS SIGNED ) + - - col2 + - 28 col1 FROM tab0 AS cor0
----
-40
-39
-40
-62
-40
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5694
SELECT - 40 col1, - CAST ( col1 AS INTEGER ) + - - col2 + - 28 col1 FROM tab0 AS cor0
----
-40
-39
-40
-62
-40
70

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + 9 FROM tab1
----
14
23
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5697
SELECT ALL COUNT( * ) + + COUNT( * ) AS col0, + 36 AS col0 FROM tab0 AS cor0
----
6
36

skipif mysql # not compatible
query II rowsort label-5697
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col0, + 36 AS col0 FROM tab0 AS cor0
----
6
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col2 col1, col1 AS col1 FROM tab2 AS cor0
----
1600
77
3364
67
529
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( - - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 5 * 10 FROM tab0
----
50
50
50

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - - 50 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= 5 - + 50
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5704
SELECT + + col0 DIV + col0 AS col0, + col0 + - ( + + col2 ) col0 FROM tab2 WHERE NULL IS NULL
----
1
17
1
23
1
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5704
SELECT + + col0 / + col0 AS col0, + col0 + - ( + + col2 ) col0 FROM tab2 WHERE NULL IS NULL
----
1
17
1
23
1
24

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 > - - col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT - + 98 + + COUNT( * ) col1 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort labe