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 label-5706
SELECT DISTINCT - + 98 + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT + col1 - - 51 FROM tab2 AS cor0
----
102
118
128

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 * col0 AND col2 / col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT + COUNT( * ) FROM tab1 WHERE NOT + col1 + col1 / 46 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5711
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + col1 + col1 / 46 IS NOT NULL
----
0

query I rowsort
SELECT ALL + 43 + + 89 FROM tab1
----
132
132
132

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

query I rowsort
SELECT ALL 73 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT col0 + col2 DIV - col0 AS col0 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-5716
SELECT col0 + col2 / - col0 AS col0 FROM tab1
----
50
85
91

query I rowsort
SELECT col0 * 86 + 51 FROM tab0 WHERE NOT NULL > col2 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * - col0 col1 FROM tab1 WHERE NOT NULL >= 99
----

query I rowsort
SELECT DISTINCT col1 - 45 AS col2 FROM tab0
----
-24
-44
36

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

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE col1 <= - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT + SUM( ALL 6 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT + SUM ( ALL 6 ) FROM tab1
----
18

query I rowsort
SELECT 83 + - 6 AS col0 FROM tab0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5724
SELECT DISTINCT * FROM tab1 WHERE ( + col0 / ( - 34 ) + - col0 ) BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5724
SELECT DISTINCT * FROM tab1 WHERE ( + col0 / ( - 34 ) + - col0 ) BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 + + col0 col1 FROM tab2
----
109
127
138

query III rowsort
SELECT * FROM tab0 WHERE - ( col2 ) + 19 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 19 * col0 FROM tab2 WHERE NOT ( - 20 / + 24 ) >= col2
----
-1216
-1425
-874

query I rowsort
SELECT ( 10 ) AS col1 FROM tab0
----
10
10
10

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT ALL - col2 * CAST( + 19 AS SIGNED ) + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1909
3923
4168

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - col2 * CAST ( + 19 AS INTEGER ) + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1909
3923
4168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5732
SELECT * FROM tab0 WHERE NULL IN ( ( - col0 ) * CAST( NULL AS SIGNED ) - + col1 * 24 )
----

skipif mysql # not compatible
query III rowsort label-5732
SELECT * FROM tab0 WHERE NULL IN ( ( - col0 ) * CAST ( NULL AS INTEGER ) - + col1 * 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL AVG ( DISTINCT 81 ) + COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) IN ( - col1 * + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL AVG ( DISTINCT 81 ) + COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IN ( - col1 * + 26 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ALL CAST( 56 AS SIGNED ) FROM tab0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL CAST ( 56 AS INTEGER ) FROM tab0
----
56
56
56

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col2 * - col1 + 66 AS col0 FROM tab1 AS cor0
----
1410
3262
361

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT 74 * MIN( DISTINCT col1 ) col0 FROM tab0 AS cor0 WHERE - col0 - col1 IN ( - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5738
SELECT DISTINCT 74 * MIN ( DISTINCT col1 ) col0 FROM tab0 AS cor0 WHERE - col0 - col1 IN ( - col2 )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL - 29 - - COUNT( ALL 73 ) AS col1 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - 29 - - COUNT ( ALL 73 ) AS col1 FROM tab1 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT + ( 4 ) - + 35 * MAX( 81 * col1 ) FROM tab2
----
-218291

skipif mysql # not compatible
query I rowsort label-5743
SELECT + ( 4 ) - + 35 * MAX ( 81 * col1 ) FROM tab2
----
-218291

query I rowsort
SELECT 85 - - col2 * ( col1 ) AS col1 FROM tab0
----
184
295
3892

query I rowsort
SELECT col2 * col1 FROM tab1 WHERE col1 IS NOT NULL
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + 5 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT MIN( - + col1 ) + 51 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-5749
SELECT MIN ( - + col1 ) + 51 FROM tab2
----
-26

query I rowsort
SELECT + col0 + + 29 FROM tab1
----
114
120
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT + COUNT( ALL - 81 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT + COUNT ( ALL - 81 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE + col1 >= 84
----

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

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + MAX ( ALL 51 ) FROM tab2 cor0
----
51

query I rowsort
SELECT ALL - col2 + + col0 + + col0 FROM tab2 AS cor0
----
69
88
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT ALL - col2 DIV 17 AS col0 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - col2 / 17 AS col0 FROM tab0 AS cor0
----
-2
-5
0

query I rowsort
SELECT DISTINCT + - 31 * col2 FROM tab1 AS cor0
----
-1829
-2108
-2976

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 12 / 13 <= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT DISTINCT + col2 * - - col1 + + col2 DIV 67 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT + col2 * - - col1 + + col2 / 67 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT 58 AS col2 FROM tab2 WHERE NOT ( 98 ) NOT IN ( + 7 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - 8 FROM tab2
----
46
-8
64
-8
75
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - col2 + col2 > - 91
----

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

query I rowsort
SELECT + col1 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
2652
4556
6006

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col0 + 24 AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * - ( 6 ) + - col0 * - col0 AS col0 FROM tab2 cor0
----
1810
3634
5223

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

query I rowsort
SELECT DISTINCT + 24 * + col1 AS col2 FROM tab2 AS cor0
----
1224
1608
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT - MIN( ALL + - col2 ) * 84 FROM tab2 AS cor0
----
4872

skipif mysql # not compatible
query I rowsort label-5770
SELECT - MIN ( ALL + - col2 ) * 84 FROM tab2 AS cor0
----
4872

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT ALL + - col2 DIV - col0 - + ( - col2 ) FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + - col2 / - col0 - + ( - col2 ) FROM tab1 AS cor0
----
59
68
97

query I rowsort
SELECT 97 * - - col1 * - - ( 68 ) FROM tab0 AS cor0
----
138516
534276
6596

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT + 0 DIV + col2 + - 58 FROM tab1 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-5773
SELECT + 0 / + col2 + - 58 FROM tab1 AS cor0
----
-58
-58
-58

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + + col0 AS col0 FROM tab1 WHERE - + col1 >= ( - 10 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - + ( col1 ) + col1 * + 90 AS col1 FROM tab0
----
-9
1680
3483

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - + ( col1 ) + col1 * + 90 AS col1 FROM tab0
----
-9
1680
3483

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5779
SELECT ( COUNT( * ) ) + - AVG ( DISTINCT - col1 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 <= - 15 * col1 - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT ( COUNT ( * ) ) + - AVG ( DISTINCT - col1 ) * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 <= - 15 * col1 - col1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - + + col2 > NULL
----

query I rowsort
SELECT DISTINCT + 21 + - + col0 FROM tab2 AS cor0
----
-25
-43
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT ALL - col2 DIV - 42 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL - col2 / - 42 FROM tab2
----
0
0
1

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

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

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

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

query I rowsort
SELECT 63 + - ( - - 71 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT DISTINCT 33 + - CAST( + - 67 AS SIGNED ) + + 82 AS col0 FROM tab2 cor0
----
182

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT 33 + - CAST ( + - 67 AS INTEGER ) + + 82 AS col0 FROM tab2 cor0
----
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 36 + + col0 col0 FROM tab0 AS cor0
----
123
133
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 19 + - + ( - col0 ) col2 FROM tab1 AS cor0
----
163
166
178

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT - COUNT( DISTINCT - col1 ) + - 10 col2 FROM tab2 cor0
----
-13

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - col1 * 12 + 74
----

query I rowsort
SELECT DISTINCT col2 - - col2 - col0 AS col1 FROM tab2
----
0
16
41

query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab1, tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT 62 * - COUNT( * ) FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-5796
SELECT 62 * - COUNT ( * ) FROM tab2
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT col0 DIV + + 22 AS col2 FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5797
SELECT col0 / + + 22 AS col2 FROM tab2
----
2
2
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5798
SELECT 26 + + - 51 - col0 + - CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab1 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-5798
SELECT 26 + + - 51 - col0 + - CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT 3 - + col2 + + col0 * - col2 FROM tab2
----
-1078
-2597
-4405

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT - COUNT( * ) AS col2, - MIN( - - col1 ) FROM tab1 AS cor0
----
-3
-5

skipif mysql # not compatible
query II rowsort label-5800
SELECT - COUNT ( * ) AS col2, - MIN ( - - col1 ) FROM tab1 AS cor0
----
-3
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5803
SELECT - 19 * - + 18, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
342
-3

skipif mysql # not compatible
query II rowsort label-5803
SELECT - 19 * - + 18, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
342
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL - - CAST( NULL AS SIGNED ) * - 23 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 23 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT ALL 91 DIV - + 6 FROM tab0 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL 91 / - + 6 FROM tab0 AS cor0
----
-15
-15
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + col2 + - - col0 * - + col1 + - col0 * col0 * col0 + + col0 AND col1
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-59
-68
-96

query I rowsort
SELECT ALL col1 * + 1 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT col2 * + + 11 AS col0 FROM tab1
----
1056
649
748

query I rowsort
SELECT 38 + col1 * + 33 AS col0 FROM tab0 WHERE NOT + + 79 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5813
SELECT 99 AS col2, + COUNT( * ) FROM tab1
----
99
3

skipif mysql # not compatible
query II rowsort label-5813
SELECT 99 AS col2, + COUNT ( * ) FROM tab1
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT SUM( + ( - + 86 ) ) AS col2 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-5814
SELECT SUM ( + ( - + 86 ) ) AS col2 FROM tab2
----
-258

query II rowsort
SELECT col1 AS col0, col1 + col1 * - 15 * - 53 AS col2 FROM tab0
----
1
796
21
16716
81
64476

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

skipif mysql # not compatible
query I rowsort label-5816
SELECT - 36 AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT DISTINCT - + MAX( 73 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-73

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT - + MAX ( 73 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-73

query I rowsort
SELECT - ( 70 ) - 52 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 97c3ba666d673221fff4e688a6abbea1

query I rowsort
SELECT + col0 * - - col1 FROM tab2
----
2346
4928
5025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 + 12 + + col2 + 80 + - col0 * col1 / - ( + col0 ) NOT BETWEEN ( NULL ) AND ( col1 )
----
9

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 + 12 + + col2 + 80 + - col0 * col1 / - ( + col0 ) NOT BETWEEN ( NULL ) AND ( col1 )
----
9

query I rowsort
SELECT ALL + - col1 - - ( 83 ) + + + col2 - + 19 FROM tab2 cor0
----
27
36
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT DISTINCT - + 69 + + - MAX( - 18 ) + + - 41 AS col2, - 58 FROM tab0 cor0
----
-92
-58

skipif mysql # not compatible
query II rowsort label-5824
SELECT DISTINCT - + 69 + + - MAX ( - 18 ) + + - 41 AS col2, - 58 FROM tab0 cor0
----
-92
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col0 ) AND + col1
----

query II rowsort
SELECT ALL + col1 + + 62, 25 AS col1 FROM tab1 AS cor0
----
109
25
67
25
76
25

query I rowsort
SELECT DISTINCT col1 - - 13 AS col1 FROM tab1
----
18
27
60

query I rowsort
SELECT - col1 - - col0 * - col0 FROM tab0
----
-306
-7590
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT + COUNT( * ) + - + 56 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-5829
SELECT + COUNT ( * ) + - + 56 FROM tab1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5830
SELECT * FROM tab0 WHERE NOT col0 * CAST( 75 AS SIGNED ) IS NOT NULL AND - col1 + + CAST( + CAST( - 19 AS SIGNED ) AS SIGNED ) - - + col2 IN ( - col2 * 17 )
----

skipif mysql # not compatible
query III rowsort label-5830
SELECT * FROM tab0 WHERE NOT col0 * CAST ( 75 AS INTEGER ) IS NOT NULL AND - col1 + + CAST ( + CAST ( - 19 AS INTEGER ) AS INTEGER ) - - + col2 IN ( - col2 * 17 )
----

query I rowsort
SELECT 28 * - - ( + 90 ) + + + col0 AS col1 FROM tab1
----
2571
2605
2611

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL IN ( - + 78, col0 )
----

query I rowsort
SELECT DISTINCT + col1 / + col1 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

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

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

query II rowsort
SELECT ALL col1 AS col0, 79 AS col2 FROM tab0
----
1
79
21
79
81
79

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5836
SELECT * FROM tab0 WHERE NOT - + ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5836
SELECT * FROM tab0 WHERE NOT - + ( CAST ( NULL AS REAL ) ) IS NULL
----

query I rowsort
SELECT - 87 FROM tab1 WHERE NOT - col0 + col2 - + col1 * - 95 * + - col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 15 + col0 * - 18 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT - ( - ( - COUNT( * ) ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT - ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL - ( 84 ) * - col1 AS col2 FROM tab1 AS cor0
----
1176
3948
420

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

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

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col1 + + 43 AS col2 FROM tab0 cor0
----
-581
-806
-9559

query II rowsort
SELECT 6, col2 * - col0 + - + col2 AS col0 FROM tab2 AS cor0
----
6
-1081
6
-2600
6
-4408

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col2 <> - ( - - col2 ) + 55 + 37
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT SUM( + - 71 ) FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5847
SELECT SUM ( + - 71 ) FROM tab1 AS cor0
----
-213

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

query I rowsort
SELECT ALL - col1 + + - ( ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 * + col0 >= - col1 * - - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT - MAX( ALL 2 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT - MAX ( ALL 2 ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT col1 * - - 81 * col0 FROM tab2 AS cor0
----
190026
399168
407025

query II rowsort
SELECT DISTINCT 60 AS col2, - 90 AS col0 FROM tab1 AS cor0
----
60
-90

query I rowsort
SELECT 52 * col2 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 69 col2, 14 AS col0 FROM tab0 AS cor0
----
69
14

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5856
SELECT + MAX ( - col1 ) + ( + CAST ( + - MAX ( + col2 ) AS INTEGER ) ) col2 FROM tab1
----
-101

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

query II rowsort
SELECT - 95 AS col2, + 16 AS col0 FROM tab0 WHERE ( NOT ( NULL ) <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5859
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0, 31 * 67 + - col0 + - col0 + - + 14 AS col0 FROM tab0
----
NULL
1869
NULL
1889
NULL
2033

skipif mysql # not compatible
query II rowsort label-5859
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0, 31 * 67 + - col0 + - col0 + - + 14 AS col0 FROM tab0
----
NULL
1869
NULL
1889
NULL
2033

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + col1, 53 + - - col0 + + col2 col1 FROM tab1 AS cor0
----
-196
200
-2209
212
-25
197

onlyif mysql # DIV for integer division: 
query I rowsort label-5861
SELECT DISTINCT col1 DIV + - 64 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT col1 / + - 64 AS col1 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT - ( - + 40 ) * - ( - + SUM( ALL + 36 ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
4323

skipif mysql # not compatible
query I rowsort label-5862
SELECT - ( - + 40 ) * - ( - + SUM ( ALL + 36 ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
4323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 - col0 * - - col2 col2 FROM tab1 AS cor0
----
-4859
-4935
-6144

query I rowsort
SELECT + + 91 + - col0 AS col2 FROM tab0 AS cor0
----
-6
4
76

query II rowsort
SELECT DISTINCT + - col1 AS col0, - col2 FROM tab1 AS cor0 WHERE + 96 * - col1 / + + ( + col0 ) + - col1 = + col1 * + col0
----

query I rowsort
SELECT DISTINCT 44 * 38 * - - 48 - - ( - col1 ) AS col0 FROM tab0 AS cor0
----
80175
80235
80255

query I rowsort
SELECT col1 * + - 91 - 2 AS col0 FROM tab1 AS cor0 WHERE 48 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT - col2 DIV + col1 col2 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5868
SELECT - col2 / + col1 col2 FROM tab1 AS cor0
----
-1
-11
-6

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

query I rowsort
SELECT ALL - col2 * + + col2 * + col1 AS col1 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL - SUM( DISTINCT 74 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL - SUM ( DISTINCT 74 ) FROM tab2
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-5872
SELECT ALL col1 DIV 1 AS col0, - col1 FROM tab1
----
14
-14
47
-47
5
-5

skipif mysql # not compatible
query II rowsort label-5872
SELECT ALL col1 / 1 AS col0, - col1 FROM tab1
----
14
-14
47
-47
5
-5

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

skipif mysql # not compatible
query I rowsort label-5873
SELECT + 2 / - CAST ( NULL AS INTEGER ) * + 23 * ( - + col0 ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT DISTINCT + MIN( ALL + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 54 AS col1 FROM tab2 cor0 WHERE NOT col2 / + col0 >= + col0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + 69 ) col2 FROM tab1 cor0
----
-69
-69
-69

query I rowsort
SELECT 70 * + col1 + + + col0 AS col1 FROM tab0
----
1557
167
5685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 28 col2 FROM tab2
----
1120
1624
644

query I rowsort
SELECT + 76 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 / - col0 = + CAST( - col2 AS SIGNED ) - + 12
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 / - col0 = + CAST ( - col2 AS INTEGER ) - + 12
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5881
SELECT - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL = col0
----

skipif mysql # not compatible
query I rowsort label-5881
SELECT - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL = col0
----

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

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

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

query I rowsort
SELECT ALL - col0 * ( - - col2 ) * 43 - - ( + col2 ) + - col1 FROM tab2 AS cor0
----
-110117
-187059
-45522

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

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

query I rowsort
SELECT ALL - col0 * + + 38 AS col2 FROM tab0
----
-3306
-3686
-570

query I rowsort
SELECT DISTINCT - col2 * 48 * col0 FROM tab2
----
-122880
-208800
-50784

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT DISTINCT + + MAX( ALL - col1 ) * - - 65 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 / col1 - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT + + MAX ( ALL - col1 ) * - - 65 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 / col1 - + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 * 23, col1 * + col1 col0 FROM tab2
----
1978
2601
1978
4489
1978
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT COUNT( * ) * 76 AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-5890
SELECT COUNT ( * ) * 76 AS col1 FROM tab0
----
228

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT - COUNT( - col0 ) * - 37 - - 39 + - 39 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5892
SELECT - COUNT ( - col0 ) * - 37 - - 39 + - 39 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT + - col1 DIV + 38 + - - 31 FROM tab1 AS cor0
----
30
31
31

skipif mysql # not compatible
query I rowsort label-5893
SELECT + - col1 / + 38 + - - 31 FROM tab1 AS cor0
----
30
31
31

query I rowsort
SELECT DISTINCT - col2 + + + ( - col2 ) + 52 AS col1 FROM tab1 AS cor0
----
-140
-66
-84

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

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

query I rowsort
SELECT ALL - ( + col0 ) * col0 * + col1 AS col1 FROM tab0
----
-158949
-18225
-9409

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5897
SELECT ALL col2 / + - col1 col2 FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5899
SELECT ALL + SUM( ALL - CAST( + col2 AS SIGNED ) ) * + 34 AS col2 FROM tab0 AS cor0
----
-5304

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL + SUM ( ALL - CAST ( + col2 AS INTEGER ) ) * + 34 AS col2 FROM tab0 AS cor0
----
-5304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT CAST( - 0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5900
SELECT CAST ( - 0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col0 * + + col2 / - + 75
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5902
SELECT DISTINCT col0 DIV + 5 AS col1, 67 FROM tab2 AS cor0
----
12
67
15
67
9
67

skipif mysql # not compatible
query II rowsort label-5902
SELECT DISTINCT col0 / + 5 AS col1, 67 FROM tab2 AS cor0
----
12
67
15
67
9
67

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

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( + 27 ) * - + col2 + col1 > + col0
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5908
SELECT DISTINCT COUNT( * ) DIV - 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT COUNT ( * ) / - 85 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5909
SELECT 17 DIV + - 17 col1, 38 FROM tab2
----
-1
38
-1
38
-1
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5909
SELECT 17 / + - 17 col1, 38 FROM tab2
----
-1
38
-1
38
-1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT + MAX( + 63 ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT + MAX ( + 63 ) AS col2 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL col1 + + 89 AS col2 FROM tab2 AS cor0
----
140
156
166

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col1 * - + col2 IN ( 89 + + ( + col2 ) * + col1 )
----
51
85
91

query I rowsort
SELECT - + col0 + - col1 - + 73 FROM tab1 AS cor0
----
-138
-163
-211

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT + - col2 + + col0 DIV col0 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-5914
SELECT + - col2 + + col0 / col0 FROM tab2 AS cor0
----
-22
-39
-57

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 82 NOT BETWEEN - + 10 + - 93 - - 1 * col2 * col1 * + 0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL + MIN( - + col2 ) + - 28 col0 FROM tab0 AS cor0
----
-127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT ALL + MIN ( - + col2 ) + - 28 col0 FROM tab0 AS cor0
----
-127

query II rowsort
SELECT col1 AS col0, - col1 + - - col2 AS col2 FROM tab1 WHERE - col0 + - 7 IS NOT NULL
----
14
82
47
21
5
54

query I rowsort
SELECT ALL - 47 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT col2, col2 - + 53 FROM tab2
----
23
-30
40
-13
58
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT - MIN( DISTINCT 49 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-5921
SELECT - MIN ( DISTINCT 49 ) FROM tab1
----
-49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 41 * 62 IS NOT NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - 44 ) BETWEEN - col0 AND + 26
----

query I rowsort
SELECT ALL 59 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5928
SELECT + MAX( DISTINCT + col1 ), COUNT( * ) + + + MAX( ALL + - col0 ) AS col2 FROM tab1
----
47
-48

skipif mysql # not compatible
query II rowsort label-5928
SELECT + MAX ( DISTINCT + col1 ), COUNT ( * ) + + + MAX ( ALL + - col0 ) AS col2 FROM tab1
----
47
-48

query I rowsort
SELECT ALL - col1 * - col0 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
18280
57152
9702

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

skipif mysql # not compatible
query I rowsort label-5930
SELECT - COUNT ( DISTINCT - col2 ) * - + 49 FROM tab0 cor0
----
147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT COUNT( ALL + + 93 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5932
SELECT COUNT ( ALL + + 93 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 17 * - + 51 FROM tab2 AS cor0
----
867
867
867

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL + + COUNT( * ) * 98 AS col2 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + + COUNT ( * ) * 98 AS col2 FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT - + col2 IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-5936
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + col2 IN ( col1 )
----
3

query I rowsort
SELECT col2 + - - 7 FROM tab2 WHERE NOT - 56 IS NULL
----
30
47
65

query I rowsort
SELECT - col1 + + col2 FROM tab2 WHERE NOT + + 68 NOT IN ( ( - col2 ), col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 96 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5941
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

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

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

query I rowsort
SELECT ALL 20 * - - col0 FROM tab2
----
1280
1500
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT DISTINCT + 76 * - CAST( - CAST( - - col0 AS SIGNED ) AS SIGNED ) * + + col1 * 47 FROM tab0 AS cor0
----
346484
4339980
6526044

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT + 76 * - CAST ( - CAST ( - - col0 AS INTEGER ) AS INTEGER ) * + + col1 * 47 FROM tab0 AS cor0
----
346484
4339980
6526044

query I rowsort
SELECT + 49 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( 93 + + - col1, + 32, col0, - + 81 )
----

query I rowsort
SELECT + ( + - col1 ) + col0 FROM tab1
----
37
44
80

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

query I rowsort
SELECT ALL - col1 + 74 * - col1 FROM tab0 AS cor0
----
-1575
-6075
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT - + SUM( ALL + 62 ) FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - + SUM ( ALL + 62 ) FROM tab1 AS cor0
----
-186

query I rowsort
SELECT + col1 * - 44 AS col2 FROM tab2 AS cor0
----
-2244
-2948
-3388

query II rowsort
SELECT 6 AS col0, col1 / col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 76, + col0 + + ( + col1 ) * - + 96 * - col2 / col0, - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) * + COUNT( * ), + 67 AS col0 FROM tab1 AS cor0
----
12
67

skipif mysql # not compatible
query II rowsort label-5952
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ), + 67 AS col0 FROM tab1 AS cor0
----
12
67

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

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

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

query I rowsort
SELECT - 65 - + col2 AS col2 FROM tab0
----
-112
-164
-75

query I rowsort
SELECT DISTINCT 78 - + - col2 AS col2 FROM tab2
----
101
118
136

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - + 30 + + 30 = - 32 + + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5958
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5958
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ( - 55 ) FROM tab0
----
-55
-55
-55

query I rowsort
SELECT - 35 + - 30 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + COUNT( ALL + + 18 ) AS col2 FROM tab1 WHERE NOT - 91 > 17
----
3

skipif mysql # not compatible
query I rowsort label-5962
SELECT + COUNT ( ALL + + 18 ) AS col2 FROM tab1 WHERE NOT - 91 > 17
----
3

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

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

query I rowsort
SELECT + col0 * 9 + - 16 + + 33 FROM tab0 AS cor0 WHERE NOT ( + ( - + 11 ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 49 + 12 col2 FROM tab1 AS cor0
----
-2879
-3320
-4692

query I rowsort
SELECT ALL - + 11 * + 1 - col1 * - col1 AS col1 FROM tab2 cor0
----
2590
4478
5918

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

query II rowsort
SELECT ALL + 46 AS col0, + 94 FROM tab1 AS cor0
----
46
94
46
94
46
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + SUM( + col0 ) + - + 11 * + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
194

skipif mysql # not compatible
query I rowsort label-5971
SELECT + SUM ( + col0 ) + - + 11 * + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT + - SUM( ALL + 48 ) AS col0 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5972
SELECT + - SUM ( ALL + 48 ) AS col0 FROM tab1 AS cor0
----
-144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5973
SELECT DISTINCT + + col0 / 75 FROM tab2 AS cor0 WHERE NULL IN ( 31 - + col1, - 53 / - col1 + 47 + + + 52 - + col1 / + col0 * 59 * + col0 * - CAST( - col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT + + col0 / 75 FROM tab2 AS cor0 WHERE NULL IN ( 31 - + col1, - 53 / - col1 + 47 + + + 52 - + col1 / + col0 * 59 * + col0 * - CAST ( - col1 AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5974
SELECT + col0 * col0 DIV 36, ( - col1 ) + + col0 AS col1 FROM tab2 cor0
----
113
-13
156
8
58
-5

skipif mysql # not compatible
query II rowsort label-5974
SELECT + col0 * col0 / 36, ( - col1 ) + + col0 AS col1 FROM tab2 cor0
----
113
-13
156
8
58
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5975
SELECT - MAX( DISTINCT + 82 ) DIV + - COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5975
SELECT - MAX ( DISTINCT + 82 ) / + - COUNT ( * ) FROM tab1
----
27

query I rowsort
SELECT DISTINCT 72 * - 30 FROM tab2
----
-2160

query I rowsort
SELECT ALL - - 35 FROM tab1 WHERE NULL BETWEEN NULL AND - ( ( - col0 ) ) + - col0
----

query I rowsort
SELECT ALL - col1 * - - col0 AS col2 FROM tab2
----
-2346
-4928
-5025

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

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

query I rowsort
SELECT + - ( - + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

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

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

query II rowsort
SELECT col0, 88 FROM tab0 AS cor0
----
15
88
87
88
97
88

query I rowsort
SELECT ALL + col2 + + 50 AS col2 FROM tab2 AS cor0
----
108
73
90

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT - 89 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + + 19 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

query I rowsort
SELECT - 7 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - - 30 >= NULL
----

query I rowsort
SELECT + col1 + + 24 + col0 + - - col1 FROM tab2 AS cor0
----
172
233
242

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5990
SELECT + CAST( NULL AS DECIMAL ) + - 46 - + col1 * - - col2 / - col1 * 68 * + - col1, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5990
SELECT + CAST ( NULL AS REAL ) + - 46 - + col1 * - - col2 / - col1 * 68 * + - col1, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

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

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

query II rowsort
SELECT - - col1 + + col0, - col1 AS col1 FROM tab0 AS cor0
----
108
-21
96
-81
98
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 72 IS NULL
----

query I rowsort
SELECT 89 + col2 AS col0 FROM tab2
----
112
129
147

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT DISTINCT - 96 DIV + col2 AS col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - 96 / + col2 AS col2 FROM tab2
----
-1
-2
-4

query II rowsort
SELECT DISTINCT - 96, col1 + - col2 + col1 AS col2 FROM tab2
----
-96
114
-96
76
-96
79

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

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL COUNT ( ALL - - col2 ) FROM tab1
----
3

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

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

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

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

query I rowsort
SELECT ALL - 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 + + + col2 - - - 86 <= + col0
----
15
81
47

query I rowsort
SELECT ALL + 41 * + col1 AS col0 FROM tab1
----
1927
205
574

query II rowsort
SELECT ALL - col0 AS col2, 49 AS col2 FROM tab0
----
-15
49
-87
49
-97
49

query II rowsort
SELECT ALL col2 + + + ( - col1 ), 70 AS col0 FROM tab2
----
-28
70
-37
70
-9
70

query I rowsort
SELECT + col0 * 53 + - col2 FROM tab0 AS cor0
----
4601
5042
748

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT COUNT( * ) + 86 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
86

skipif mysql # not compatible
query I rowsort label-6011
SELECT COUNT ( * ) + 86 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
86

query I rowsort
SELECT ALL col0 + + - 82 * + col0 * 46 AS col0 FROM tab0 AS cor0
----
-328077
-365787
-56565

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6013
SELECT - + col2 + - 3 AS col1, + CAST( 91 AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-26
4186
-43
5824
-61
6825

skipif mysql # not compatible
query II rowsort label-6013
SELECT - + col2 + - 3 AS col1, + CAST ( 91 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-26
4186
-43
5824
-61
6825

onlyif mysql # aggregate syntax: 
query II rowsort label-6014
SELECT 71, COUNT( * ) + + - SUM( 66 ) AS col2 FROM tab1 AS cor0
----
71
-195

skipif mysql # not compatible
query II rowsort label-6014
SELECT 71, COUNT ( * ) + + - SUM ( 66 ) AS col2 FROM tab1 AS cor0
----
71
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 - + col2 AS col0, 9 col2 FROM tab0 AS cor0
----
-100
9
-128
9
-31
9

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

query I rowsort
SELECT ALL col1 + - col2 + - col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT + SUM( ALL col2 ) + + + 33 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + SUM ( ALL col2 ) + + + 33 FROM tab0 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT + SUM( - - ( col1 ) ) FROM tab2 AS cor0 WHERE + col0 > + - col0
----
195

skipif mysql # not compatible
query I rowsort label-6019
SELECT + SUM ( - - ( col1 ) ) FROM tab2 AS cor0 WHERE + col0 > + - col0
----
195

query I rowsort
SELECT DISTINCT col2 - + 97 * + + ( + col2 ) + + 95 - col2 AS col1 FROM tab2 AS cor0
----
-2136
-3785
-5531

query II rowsort
SELECT 78 - - + 86 AS col0, - col1 AS col1 FROM tab2
----
164
-51
164
-67
164
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6022
SELECT AVG ( + - col1 ) - - CAST( NULL AS SIGNED ) AS col0, 12 AS col1 FROM tab0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-6022
SELECT AVG ( + - col1 ) - - CAST ( NULL AS INTEGER ) AS col0, 12 AS col1 FROM tab0
----
NULL
12

query II rowsort
SELECT DISTINCT 73 + + col2, col2 AS col2 FROM tab2
----
113
40
131
58
96
23

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT ALL SUM( DISTINCT + 30 ) DIV + - 47 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL SUM ( DISTINCT + 30 ) / + - 47 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col2 * 80 + - col0 * + col1 FROM tab0
----
-2627
-4975
-8017

query I rowsort
SELECT 27 + + + 66 * col2 AS col2 FROM tab0
----
3129
6561
687

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT COUNT( * ) + + 19 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6029
SELECT COUNT ( * ) + + 19 FROM tab1
----
22

query I rowsort
SELECT ALL 95 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6031
SELECT ALL + 83, 46 + - + COUNT( * ) AS col2 FROM tab2 WHERE NOT - col0 >= NULL
----
83
46

skipif mysql # not compatible
query II rowsort label-6031
SELECT ALL + 83, 46 + - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col0 >= NULL
----
83
46

query I rowsort
SELECT DISTINCT - + col0 + + col0 FROM tab2 AS cor0 WHERE NOT + 4 > - + 20
----

query I rowsort
SELECT - 49 * + col2 * 59 AS col0 FROM tab1 cor0
----
-170569
-196588
-277536

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

query I rowsort
SELECT DISTINCT + 20 FROM tab0 WHERE NULL IS NULL
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT ALL + SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL + SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6037
SELECT + COUNT ( - 61 ) + - COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 81 IS NOT NULL
----

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

query I rowsort
SELECT 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6041
SELECT + COUNT( * ) + + SUM( - col2 ) + + 23 * CAST( NULL AS SIGNED ), - 60 AS col0 FROM tab0 cor0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-6041
SELECT + COUNT ( * ) + + SUM ( - col2 ) + + 23 * CAST ( NULL AS INTEGER ), - 60 AS col0 FROM tab0 cor0
----
NULL
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + - col0 * - - 44 + - + col0 * col2 + - - col1, 49 + + col0 - + col1 col0, col2 FROM tab1 cor0
----
9 values hashing to 83a6ca9153bf9ce6fe544bbf25b92c83

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

query I rowsort
SELECT ALL 36 AS col2 FROM tab0 AS cor0 WHERE - col0 NOT IN ( - col0 * + col0 - + col0 )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT MAX( ALL + col2 ) + - + MIN( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-6045
SELECT MAX ( ALL + col2 ) + - + MIN ( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6046
SELECT DISTINCT + COUNT( - CAST( - col2 AS DECIMAL ) ) - + MIN( + 82 ) + 80 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + COUNT ( - CAST ( - col2 AS REAL ) ) - + MIN ( + 82 ) + 80 AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT col2 + 24 + + + CAST( + col0 AS SIGNED ) - + col2 FROM tab2 AS cor0 WHERE NULL = col0
----

skipif mysql # not compatible
query I rowsort label-6047
SELECT col2 + 24 + + + CAST ( + col0 AS INTEGER ) - + col2 FROM tab2 AS cor0 WHERE NULL = col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT + col2 * - col0 * 19 DIV col0 AS col1 FROM tab2
----
-1102
-437
-760

skipif mysql # not compatible
query I rowsort label-6049
SELECT + col2 * - col0 * 19 / col0 AS col1 FROM tab2
----
-1102
-437
-760

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

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

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

query I rowsort
SELECT col0 * - ( + + col1 ) AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + col0 * + col1 * col0 * + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1476225
-3337929
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6054
SELECT + + COUNT( * ) DIV - - 45 + - CAST( + 24 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6054
SELECT + + COUNT ( * ) / - - 45 + - CAST ( + 24 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL 40 * COUNT( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL 40 * COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
120

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

skipif mysql # not compatible
query I rowsort label-6056
SELECT - COUNT ( * ) * + CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 32
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT ALL - col2 DIV + 37 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL - col2 / + 37 AS col2 FROM tab2
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - col1 * + - col1 - + col2 AND - ( - - ( + + 71 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6061
SELECT + col0 DIV - 52 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6061
SELECT + col0 / - 52 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - ( - 56 ) FROM tab0
----
56
56
56

query II rowsort
SELECT + 8, col2 AS col2 FROM tab0
----
8
10
8
47
8
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT col2 DIV + - col2 + + 54 AS col0 FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-6064
SELECT col2 / + - col2 + + 54 AS col0 FROM tab1
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 58 + + + col2 + - - col0 AS col1, col1 col2 FROM tab1 cor0
----
202
5
205
14
217
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT - 21 * + + COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-6066
SELECT - 21 * + + COUNT ( * ) FROM tab1
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6067
SELECT col0 / + CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT col0 / + CAST ( NULL AS REAL ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT col1 + - col0, - col2 AS col1 FROM tab1 cor0
----
-37
-96
-44
-68
-80
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - 19 + 7 col0 FROM tab1 AS cor0
----
111
117
77

query I rowsort
SELECT ALL - + 10 * + + col1 AS col1 FROM tab2 AS cor0
----
-510
-670
-770

query I rowsort
SELECT ALL - - col0 * - + 41 AS col1 FROM tab2 AS cor0
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT - MAX( + col0 ) * + 32 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT - MAX ( + col0 ) * + 32 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT col0, - col0 * col1 FROM tab1
----
51
-714
85
-425
91
-4277

query I rowsort
SELECT - col2 * + col1 * 70 * + 5 * - col0 FROM tab2
----
102007500
18885300
68992000

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

query I rowsort
SELECT DISTINCT 93 * + col1 * ( ( col1 ) ) FROM tab0
----
41013
610173
93

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

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

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

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

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

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

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

query I rowsort
SELECT 76 AS col0 FROM tab2 AS cor0 WHERE NOT 21 * + 84 IS NULL
----
76
76
76

query I rowsort
SELECT + 53 * + + col1 + col0 FROM tab2 cor0
----
2749
3626
4145

query II rowsort
SELECT - 3 AS col2, 82 * + + 80 FROM tab2
----
-3
6560
-3
6560
-3
6560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6088
SELECT DISTINCT + + 54 DIV - - col0 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT + + 54 / - - col0 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT - col1 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
1134
1806
96

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

query I rowsort
SELECT - + 17 + - 37 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT 69 + - - col2 AS col2 FROM tab1 AS cor0
----
128
137
165

query I rowsort
SELECT + + col2 + - ( - col1 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT col0 DIV + col0 + - + col0 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-6094
SELECT col0 / + col0 + - + col0 FROM tab1
----
-50
-84
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT 41 + + 81 DIV + COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-6095
SELECT 41 + + 81 / + COUNT ( * ) FROM tab2
----
68

query I rowsort
SELECT DISTINCT + 33 * + 20 AS col2 FROM tab2 WHERE NOT 38 * 11 * 56 >= + 35 + + + col2
----

query I rowsort
SELECT DISTINCT 38 + + + ( ( - col1 ) ) FROM tab1
----
-9
24
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT DISTINCT - col2 DIV - 76 + - - 26 FROM tab0
----
26
27

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - col2 / - 76 + - - 26 FROM tab0
----
26
27

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

query I rowsort
SELECT - + 75 FROM tab0 cor0 WHERE + 21 - + + ( - col0 ) IS NOT NULL
----
-75
-75
-75

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - 11 - + col0 AS col2 FROM tab1 AS cor0
----
-102
-62
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - 98 - SUM( + 56 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-602

skipif mysql # not compatible
query I rowsort label-6103
SELECT - 98 - SUM ( + 56 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-602

query I rowsort
SELECT - 57 + col1 AS col2 FROM tab0
----
-36
-56
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT + 23 + CAST( SUM( col1 ) AS SIGNED ) AS col1 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-6105
SELECT + 23 + CAST ( SUM ( col1 ) AS INTEGER ) AS col1 FROM tab0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT 17 * + COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT 17 * + COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 87 col0 FROM tab1 AS cor0
----
-1218
-4089
-435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6108
SELECT + + COUNT( * ) DIV + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6108
SELECT + + COUNT ( * ) / + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - col1 * - 64 AS col0 FROM tab2 AS cor0
----
3264
4288
4928

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 11 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT - col2 + + col1, + 55 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 58 * + + col0 + - col2 * - + 63 FROM tab1 WHERE + + col1 NOT IN ( + 91, col1, 24, + 27 + - - col2, col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6115
SELECT CAST ( - - 72 AS INTEGER ) AS col2 FROM tab1
----
72
72
72

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( + - 82 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT + COUNT( * ) * ( + 82 ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6117
SELECT + COUNT ( * ) * ( + 82 ) FROM tab2 AS cor0
----
246

query I rowsort
SELECT - 58 * - ( - + 11 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 33 + + col1 IS NULL
----
-638
-638
-638

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 84 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT - 41 + - - ( - + col0 ) - + col1 FROM tab2
----
-138
-182
-183

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 29 + col0 >= - + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT DISTINCT + 95 + CAST( 1 AS SIGNED ) FROM tab0 cor0
----
96

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + 95 + CAST ( 1 AS INTEGER ) FROM tab0 cor0
----
96

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

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

query I rowsort
SELECT DISTINCT col2 * + - 44 FROM tab0
----
-2068
-4356
-440

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6126
SELECT 10 DIV - 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6126
SELECT 10 / - 93 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col2 FROM tab2
----
1035
2520
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT col2 - col0 DIV - 7 FROM tab2
----
29
49
68

skipif mysql # not compatible
query I rowsort label-6128
SELECT col2 - col0 / - 7 FROM tab2
----
29
49
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT ALL + COUNT( * ) AS col2, - MAX( DISTINCT + col1 ) FROM tab0
----
3
-81

skipif mysql # not compatible
query II rowsort label-6129
SELECT ALL + COUNT ( * ) AS col2, - MAX ( DISTINCT + col1 ) FROM tab0
----
3
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT + MIN( + + col0 ) + - COUNT( * ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-6130
SELECT + MIN ( + + col0 ) + - COUNT ( * ) AS col2 FROM tab1
----
48

query I rowsort
SELECT + 26 + col1 AS col2 FROM tab2
----
103
77
93

query I rowsort
SELECT 58 + col0 AS col1 FROM tab1
----
109
143
149

query III rowsort
SELECT ALL * FROM tab1 WHERE + 17 > - 78 AND NOT ( NOT + col0 * + col1 IS NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 + - 48 col1 FROM tab2 cor0
----
7

query I rowsort
SELECT DISTINCT - 46 - - + 66 + - + col0 FROM tab0 AS cor0
----
-67
-77
5

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

query I rowsort
SELECT DISTINCT col1 - - 96 FROM tab2
----
147
163
173

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 33 + - col1 + 85 >= col1 - + - 90
----
91
47
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6140
SELECT + COUNT( * ) AS col1, - COUNT( - + 57 ) * MAX( + col1 ) DIV - + 49 FROM tab1 AS cor0 WHERE NOT + 66 IS NULL
----
3
2

skipif mysql # not compatible
query II rowsort label-6140
SELECT + COUNT ( * ) AS col1, - COUNT ( - + 57 ) * MAX ( + col1 ) / - + 49 FROM tab1 AS cor0 WHERE NOT + 66 IS NULL
----
3
2

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6141
SELECT ALL - MAX ( ALL - + 67 ) col0 FROM tab1 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT ALL - + col2 DIV + 68 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - + col2 / + 68 FROM tab1 cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * 75 * + 23 col0 FROM tab1 AS cor0
----
-10674300
-8445600
-8650875

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT - 98 DIV 78 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6145
SELECT - 98 / 78 AS col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT col0 AS col2, - 58 AS col1 FROM tab1
----
51
-58
85
-58
91
-58

query I rowsort
SELECT col0 * + + 97 AS col1 FROM tab2
----
4462
6208
7275

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

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

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

query II rowsort
SELECT - + col0, col2 * + col2 AS col2 FROM tab0 cor0
----
-15
2209
-87
100
-97
9801

query II rowsort
SELECT + col1 AS col2, 42 + ( + ( 16 ) ) FROM tab2 AS cor0
----
51
58
67
58
77
58

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * 37 + 80 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT COUNT( DISTINCT col2 ) * COUNT( + col0 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT COUNT ( DISTINCT col2 ) * COUNT ( + col0 ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT col0 * - 46 FROM tab1
----
-2346
-3910
-4186

query I rowsort
SELECT ALL 84 * ( col0 * col0 ) FROM tab1
----
218484
606900
695604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT + col1 / 4 AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( - ( - CAST( NULL AS SIGNED ) ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6157
SELECT + col1 / 4 AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( - ( - CAST ( NULL AS INTEGER ) ) ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * - col0 ) BETWEEN ( - col0 ) AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab0 WHERE col2 NOT IN ( col2 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6161
SELECT - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 46 * - col0 AS col0 FROM tab1
----
2346
3910
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL 57 + COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL 57 + COUNT ( * ) FROM tab2
----
60

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

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

query I rowsort
SELECT - col1 + + 29 FROM tab1 WHERE NULL IS NULL
----
-18
15
24

query I rowsort
SELECT - 52 + - col1 / col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL + MIN( + 27 ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + MIN ( + 27 ) AS col1 FROM tab0
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT DISTINCT MAX( ALL - 41 ) * 90 FROM tab1
----
-3690

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT MAX ( ALL - 41 ) * 90 FROM tab1
----
-3690

query I rowsort
SELECT - col0 * - 35 + - col1 FROM tab2 WHERE NOT - 83 IS NULL
----
1559
2163
2558

query I rowsort
SELECT 88 * + col1 AS col2 FROM tab0
----
1848
7128
88

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

skipif mysql # not compatible
query I rowsort label-6172
SELECT COUNT ( ALL + col2 ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT col1 - 8 AS col0 FROM tab2
----
43
59
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col1 FROM tab0
----
-2
-32
77

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

query I rowsort
SELECT - 2 / 30 AS col0 FROM tab2 WHERE 33 IS NULL
----

query I rowsort
SELECT ALL col2 * 6 FROM tab2
----
138
240
348

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

skipif mysql # not compatible
query I rowsort label-6178
SELECT 28 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 9 ) IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT COUNT( * ) - 91 col2 FROM tab1 AS cor0
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ( + 31 ) - - COUNT( 36 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6183
SELECT ( + 31 ) - - COUNT ( 36 ) FROM tab2 AS cor0
----
34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT 87 DIV 9 - col1 DIV + col0 col2 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6185
SELECT 87 / 9 - col1 / + col0 col2 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + 1 - 30 AS col1 FROM tab1 AS cor0
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT DISTINCT 76 - + 40 DIV col1 FROM tab1 cor0
----
68
74
76

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT 76 - + 40 / col1 FROM tab1 cor0
----
68
74
76

query I rowsort
SELECT DISTINCT + col0 * + 55 FROM tab0
----
4785
5335
825

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT 69 * - COUNT( * ) FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT 69 * - COUNT ( * ) FROM tab1 AS cor0
----
-207

query I rowsort
SELECT - 36 * - 42 FROM tab2 AS cor0
----
1512
1512
1512

query I rowsort
SELECT 16 * - 60 FROM tab2 AS cor0
----
-960
-960
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT + col2 DIV 7 AS col2 FROM tab2 cor0
----
3
5
8

skipif mysql # not compatible
query I rowsort label-6194
SELECT + col2 / 7 AS col2 FROM tab2 cor0
----
3
5
8

query I rowsort
SELECT DISTINCT ( 56 ) AS col0 FROM tab1 cor0
----
56

query I rowsort
SELECT col1 * + 67 FROM tab0 cor0
----
1407
5427
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col1 ) ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT - 30 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT - 30 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT 24 + COUNT( * ) * + 73 AS col1 FROM tab0 WHERE NOT + col1 + + col0 = ( col2 )
----
243

skipif mysql # not compatible
query I rowsort label-6199
SELECT 24 + COUNT ( * ) * + 73 AS col1 FROM tab0 WHERE NOT + col1 + + col0 = ( col2 )
----
243

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 - - col0 NOT BETWEEN 93 AND NULL
----
15
81
47

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 1 IN ( - 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col1 NOT IN ( + col0 * 47 )
----

query I rowsort
SELECT col1 * - - ( - ( + col0 ) ) * + 38 AS col1 FROM tab0
----
-3686
-46170
-69426

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / col2 col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT COUNT ( DISTINCT col2 ) FROM tab2
----
3

query I rowsort
SELECT ALL 49 + - 16 * - col1 AS col2 FROM tab1
----
129
273
801

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

query I rowsort
SELECT col1 + 18 AS col1 FROM tab0
----
19
39
99

query I rowsort
SELECT 58 * ( + col2 ) + - col2 FROM tab1
----
3363
3876
5472

query I rowsort
SELECT + ( + - 57 ) AS col0 FROM tab0
----
-57
-57
-57

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - 18 ) + + 97 * + col1 > ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-6216
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = ( 75 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT DISTINCT col1 + - col1 - - 4 DIV col0 DIV - col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT col1 + - col1 - - 4 / col0 / - col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT 32 * + col2 - + col2 AS col1 FROM tab1 AS cor0
----
1829
2108
2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6219
SELECT col0 - + col2 * + CAST( 69 AS SIGNED ) FROM tab0 AS cor0
----
-3228
-603
-6734

skipif mysql # not compatible
query I rowsort label-6219
SELECT col0 - + col2 * + CAST ( 69 AS INTEGER ) FROM tab0 AS cor0
----
-3228
-603
-6734

query I rowsort
SELECT DISTINCT - 1 - col2 FROM tab0
----
-100
-11
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + COUNT( * ) - + 66 AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-6221
SELECT + COUNT ( * ) - + 66 AS col0 FROM tab2
----
-63

query II rowsort
SELECT col1 - - + col2, 91 AS col2 FROM tab1
----
110
91
115
91
64
91

query I rowsort
SELECT col2 + + 47 AS col2 FROM tab0
----
146
57
94

query I rowsort
SELECT col0 + - col0 - + col1 + + 1 FROM tab1
----
-13
-4
-46

query III rowsort
SELECT * FROM tab2 WHERE 41 IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT + 74 * - MAX( - 92 ) AS col0 FROM tab2
----
6808

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT + 74 * - MAX ( - 92 ) AS col0 FROM tab2
----
6808

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 * 12 + + col1 ) NOT IN ( - 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) * CAST( + col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) * CAST ( + col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT DISTINCT 94 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
94

query I rowsort
SELECT col2 * col0 + + 17 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 + + 78 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6233
SELECT DISTINCT + SUM( ALL - - CAST( NULL AS SIGNED ) ) + + MAX( - col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + + MAX ( - col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + 96 IS NOT NULL
----

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

query I rowsort
SELECT ALL + ( - 24 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 > NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 57 * col1 < ( + ( + + col2 ) / - 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 39
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT DISTINCT - + 52 DIV 27 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT - + 52 / 27 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - ( - 86 ) * - 50 * + col1 FROM tab0 AS cor0
----
-348300
-4300
-90300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6245
SELECT MAX( 31 ) + + CAST( NULL AS SIGNED ) * - 98 FROM tab1 AS cor0 WHERE NOT 55 <= - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT MAX ( 31 ) + + CAST ( NULL AS INTEGER ) * - 98 FROM tab1 AS cor0 WHERE NOT 55 <= - 17
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( - col0 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT DISTINCT 7 DIV 38 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT 7 / 38 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 38 / - col1 NOT BETWEEN + col1 AND + col0 * - col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 17 / + col1 NOT BETWEEN NULL AND - col2 / 28 / col2 + 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 81 * col0 - col2 * - 0 + - - col2 + + col0 FROM tab2 AS cor0
----
3795
5288
6208

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT - 40 * + ( + - CAST( + SUM( ALL - 21 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-2520

skipif mysql # not compatible
query I rowsort label-6255
SELECT - 40 * + ( + - CAST ( + SUM ( ALL - 21 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-2520

query I rowsort
SELECT col1 + - 24 * col0 FROM tab2
----
-1053
-1459
-1733

query I rowsort
SELECT col1 * 62 + + + col2 + col2 AS col2 FROM tab0 AS cor0
----
1322
260
5116

query I rowsort
SELECT + 42 * - col0 FROM tab0 AS cor0 WHERE 15 * - 52 * - col1 > + + 3 - col1 + - col1
----
-3654
-4074
-630

query I rowsort
SELECT + 11 + - col1 FROM tab2 AS cor0
----
-40
-56
-66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( 17 / col0 ) AND 54
----

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

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

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

query I rowsort
SELECT DISTINCT 15 * - 99 + + - 3 AS col2 FROM tab1 AS cor0
----
-1488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 82 col1 FROM tab0 AS cor0
----
-1
-61
-81

query I rowsort
SELECT ALL 91 + + + col2 AS col0 FROM tab0 AS cor0
----
101
138
190

query I rowsort
SELECT DISTINCT + col1 * - col0 * - col2 - - 35 * - + col2 FROM tab2
----
195720
289420
53153

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

query II rowsort
SELECT - col2 AS col1, - 59 * - - col2 FROM tab0
----
-10
-590
-47
-2773
-99
-5841

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

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

query I rowsort
SELECT ALL - + 54 FROM tab0 AS cor0 WHERE - 90 < col1 * - col0
----

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

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

query I rowsort
SELECT ALL 2 * + + col1 + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
124
162
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + COUNT( ALL + col0 ) * 90 AS col2 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-6273
SELECT + COUNT ( ALL + col0 ) * 90 AS col2 FROM tab0 AS cor0
----
270

query I rowsort
SELECT DISTINCT - + col2 * + + col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NULL BETWEEN - 19 AND NULL
----

query I rowsort
SELECT - + 69 * + col0 - - 28 AS col1 FROM tab2 AS cor0
----
-3146
-4388
-5147

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 72 * - col0 > ( NULL )
----

query I rowsort
SELECT - 88 + + + ( + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * + 11 / + 56 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < - - col1 * - 75 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + 51 + + + 40 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT - + MAX( - 98 ) AS col1 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - + MAX ( - 98 ) AS col1 FROM tab1 AS cor0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6285
SELECT ALL - col1 + col1 + - + col2 + - col2 DIV + col2 AS col0 FROM tab2 cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - col1 + col1 + - + col2 + - col2 / + col2 AS col0 FROM tab2 cor0
----
-24
-41
-59

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

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

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col0 - - col2 BETWEEN ( - + 63 ) AND + col2
----

query II rowsort
SELECT ALL - col2 AS col1, col0 - - + col0 AS col0 FROM tab1
----
-59
170
-68
182
-96
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + 44 + 4 col2 FROM tab1 cor0
----
-3
-37
-43

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

query I rowsort
SELECT ALL - col2 + col0 * + col2 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT ALL + col0 DIV + 6 - + + col1 AS col1 FROM tab1 AS cor0
----
-32
-6
9

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL + col0 / + 6 - + + col1 AS col1 FROM tab1 AS cor0
----
-32
-6
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT 80 - COUNT( * ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT 80 - COUNT ( * ) FROM tab0
----
77

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NULL BETWEEN ( + col1 ) AND - 8 * col1
----

query I rowsort
SELECT ALL + 80 + - ( - - ( + col1 ) ) AS col1 FROM tab0
----
-1
59
79

query I rowsort
SELECT + 49 FROM tab0 WHERE NOT + col0 BETWEEN ( - col0 ) AND col2 + + + 3
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT DISTINCT + COUNT( * ) DIV + 6 * 52 + SUM( DISTINCT - col0 ) AS col2 FROM tab0 WHERE NOT + col2 = - 33
----
-199

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT + COUNT ( * ) / + 6 * 52 + SUM ( DISTINCT - col0 ) AS col2 FROM tab0 WHERE NOT + col2 = - 33
----
-199

query I rowsort
SELECT - - 95 * col1 * + - col0 FROM tab2 WHERE NOT - 41 NOT BETWEEN - 31 AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT - col1 FROM tab2 WHERE col0 <= col1 * + + CAST( + col0 AS SIGNED ) AND ( + col2 ) BETWEEN - col0 + + 99 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6303
SELECT - col1 FROM tab2 WHERE col0 <= col1 * + + CAST ( + col0 AS INTEGER ) AND ( + col2 ) BETWEEN - col0 + + 99 AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL MIN( 51 ) * COUNT( * ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL MIN ( 51 ) * COUNT ( * ) AS col1 FROM tab1
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( - + col0 ) ) * + col1 + + - col2 col2 FROM tab0 AS cor0
----
-2
1168
1817

query II rowsort
SELECT ALL col2 - - col0, 59 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

query II rowsort
SELECT DISTINCT - - 34 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
34
51
34
67
34
77

query II rowsort
SELECT ALL + col1 * - ( - 65 ) AS col1, col0 FROM tab1 AS cor0
----
3055
91
325
85
910
51

query II rowsort
SELECT col0 + + ( - - col0 ) * col2 AS col2, col0 - - col1 AS col2 FROM tab0
----
720
96
957
108
9700
98

query I rowsort
SELECT ALL + col2 * + + 62 * - + col2 AS col2 FROM tab1
----
-215822
-286688
-571392

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL 72 + - 62 * - COUNT( * ) FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL 72 + - 62 * - COUNT ( * ) FROM tab2
----
258

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

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

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

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

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

query I rowsort
SELECT + - 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 63 col2 FROM tab2
----
-1449
-2520
-3654

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT 9 + 70 FROM tab1 cor0
----
79
79
79

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

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

query I rowsort
SELECT - + col2 * + - col1 - - col2 FROM tab2 AS cor0
----
1196
3120
3944

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 15 > NULL
----

query II rowsort
SELECT - 74 AS col2, col0 - + 92 AS col2 FROM tab2 AS cor0
----
-74
-17
-74
-28
-74
-46

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

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

query I rowsort
SELECT DISTINCT + 13 * + - col0 FROM tab2
----
-598
-832
-975

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6333
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + - 74 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6334
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + - 74 ) > NULL
----
0

query I rowsort
SELECT + 71 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

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

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab2 AS cor0 WHERE NOT + col2 * + 30 IS NULL
----
51
67
77

query I rowsort
SELECT + 33 * + col2 AS col0 FROM tab1 AS cor0
----
1947
2244
3168

query I rowsort
SELECT - ( - ( col2 ) ) * + col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL + MIN( + + 24 ) AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + MIN ( + + 24 ) AS col2 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT CAST( - col2 AS SIGNED ) * - 4 AS col1 FROM tab2
----
160
232
92

skipif mysql # not compatible
query I rowsort label-6341
SELECT CAST ( - col2 AS INTEGER ) * - 4 AS col1 FROM tab2
----
160
232
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT col1 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-6342
SELECT col1 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
-1173
-3080
-3886

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

query I rowsort
SELECT DISTINCT - col2 * + ( - 46 ) AS col1 FROM tab0
----
2162
4554
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - 49 col0 FROM tab2
----
-26
-9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6346
SELECT DISTINCT 17 + col0 * - + CAST( + ( + 57 ) AS SIGNED ) FROM tab2 AS cor0
----
-2605
-3631
-4258

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT 17 + col0 * - + CAST ( + ( + 57 ) AS INTEGER ) FROM tab2 AS cor0
----
-2605
-3631
-4258

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT + - 17 * 87 * + MIN( - 84 ) + + 0 AS col1 FROM tab0 AS cor0
----
124236

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + - 17 * 87 * + MIN ( - 84 ) + + 0 AS col1 FROM tab0 AS cor0
----
124236

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT col1 DIV + 46 + - col1 FROM tab0 AS cor0
----
-1
-21
-80

skipif mysql # not compatible
query I rowsort label-6348
SELECT col1 / + 46 + - col1 FROM tab0 AS cor0
----
-1
-21
-80

query I rowsort
SELECT DISTINCT + + col1 + col0 * + + ( + + 20 ) * + col1 + col1 AS col1 FROM tab0 cor0
----
1942
24462
36582

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col1 <= - + ( + col0 ) + col0 + + + 25 * + col1 / + col0
----

query I rowsort
SELECT ALL + + ( ( - col2 ) ) * - + col2 * col2 AS col2 FROM tab1 AS cor0
----
205379
314432
884736

query I rowsort
SELECT DISTINCT col1 * - + 60 * 33 AS col0 FROM tab0
----
-160380
-1980
-41580

query I rowsort
SELECT - 81 * - + col2 FROM tab0
----
3807
8019
810

query I rowsort
SELECT + col0 - - - col0 FROM tab1
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND - 56 * - 82 + - - col1
----

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

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

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT - col2 <= + - col0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT - MAX( ALL col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - MAX ( ALL col2 ) FROM tab2
----
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - + col2 * + col2 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6363
SELECT ALL + 63 DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + 63 / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-21

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

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

query I rowsort
SELECT + + 93 * 14 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 0a33fa990599d1888bd5644a01c64e7d

query I rowsort
SELECT + col0 * - ( + col0 ) * + - 62 * col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
19554304
23366250
6690792

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT - 93 AS col2, - ( + MIN( + 56 ) ) + + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-93
-53

skipif mysql # not compatible
query II rowsort label-6368
SELECT - 93 AS col2, - ( + MIN ( + 56 ) ) + + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-93
-53

query I rowsort
SELECT - col1 + + col0 + - - col1 * - + col2 FROM tab1 cor0
----
-1307
-215
-3152

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL + COUNT( * ) + + 68 AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL + COUNT ( * ) + + 68 AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT - - col1 * - col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 * + 20 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 * + 20 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6373
SELECT CAST( - - 73 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > + col2
----

skipif mysql # not compatible
query I rowsort label-6373
SELECT CAST ( - - 73 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT 78 + - - MAX( ALL - 15 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT 78 + - - MAX ( ALL - 15 ) FROM tab0
----
63

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 - - col1 col1 FROM tab0 AS cor0
----
128
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + - 70 - + + ( - COUNT( * ) ) * - 3 AS col0 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6379
SELECT + - 70 - + + ( - COUNT ( * ) ) * - 3 AS col0 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT - 65 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ( + MIN( ALL + ( 9 ) ) ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6381
SELECT ( + MIN ( ALL + ( 9 ) ) ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ALL + + 23 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

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

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

query I rowsort
SELECT - ( - col1 ) * col1 FROM tab1 cor0
----
196
2209
25

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6387
SELECT - + COUNT( * ) DIV + 32 * + COUNT( 25 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6387
SELECT - + COUNT ( * ) / + 32 * + COUNT ( 25 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * + + col0 * ( - 29 ) AS col2 FROM tab2 AS cor0
----
-118784
-163125
-61364

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT 8 DIV + - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6390
SELECT 8 / + - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 56 * col2 AS col0 FROM tab1 AS cor0
----
3304
3808
5376

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

query I rowsort
SELECT ALL + col2 * col1 * + col2 FROM tab0
----
178929
2100
9801

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT + COUNT( ALL 54 ) * COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6396
SELECT + COUNT ( ALL 54 ) * COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 75 + - 16 AS col2 FROM tab0 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-6398
SELECT DISTINCT - col1 DIV col1 + col0 AS col1, + col2 FROM tab2 AS cor0
----
45
23
63
40
74
58

skipif mysql # not compatible
query II rowsort label-6398
SELECT DISTINCT - col1 / col1 + col0 AS col1, + col2 FROM tab2 AS cor0
----
45
23
63
40
74
58

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

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

query I rowsort
SELECT col2 * + 8 * col0 * col0 + - 74 FROM tab0 cor0
----
605446
7451854
84526

query I rowsort
SELECT col1 * - ( 95 ) - col2 FROM tab1
----
-1426
-4533
-534

query II rowsort
SELECT DISTINCT + col0 AS col2, - 63 * col1 AS col1 FROM tab1
----
51
-882
85
-315
91
-2961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + - col2 col2 FROM tab0
----
-11
-63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL SUM( - - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL SUM ( - - col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT - col2 + col1 + - + ( col1 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT - MIN( - 66 ) + - MAX( + col2 ) DIV 27 col1 FROM tab2
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6407
SELECT - MIN ( - 66 ) + - MAX ( + col2 ) / 27 col1 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT - COUNT( * ) * 57 AS col1 FROM tab0 WHERE + ( + col0 ) * + col0 + - col0 * - col0 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT - COUNT ( * ) * 57 AS col1 FROM tab0 WHERE + ( + col0 ) * + col0 + - col0 * - col0 >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT + ( - MIN( - - col1 ) ) + + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-6409
SELECT + ( - MIN ( - - col1 ) ) + + COUNT ( * ) FROM tab2
----
-48

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

query I rowsort
SELECT ALL - col0 * + 18 AS col1 FROM tab2 AS cor0
----
-1152
-1350
-828

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT - COUNT( * ) * - + 80 AS col2 FROM tab2 cor0
----
240

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT - COUNT ( * ) * - + 80 AS col2 FROM tab2 cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT + - MAX( DISTINCT + - 79 ) + + COUNT( ALL 79 ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + - MAX ( DISTINCT + - 79 ) + + COUNT ( ALL 79 ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
82

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

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

query I rowsort
SELECT DISTINCT + 88 * ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-4136
-8712
-880

query I rowsort
SELECT + 66 * - 43 + - 88 FROM tab0 AS cor0
----
-2926
-2926
-2926

query I rowsort
SELECT ALL - ( col1 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + COUNT( * ) * - + 48 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-6420
SELECT + COUNT ( * ) * - + 48 FROM tab1
----
-144

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6422
SELECT DISTINCT CAST( + 70 AS SIGNED ) FROM tab0 WHERE NULL >= + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT CAST ( + 70 AS INTEGER ) FROM tab0 WHERE NULL >= + CAST ( NULL AS INTEGER ) * col0
----

query I rowsort
SELECT ALL col0 * - - 67 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT - col2 + - 15 AS col2 FROM tab2
----
-38
-55
-73

query I rowsort
SELECT DISTINCT + col0 + - - 47 AS col2 FROM tab1
----
132
138
98

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

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

query I rowsort
SELECT - 2 * - - col2 + + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-120
-174
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6428
SELECT + + COUNT( * ) + - 20 DIV COUNT( * ) FROM tab1 AS cor0
----
-3

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

query II rowsort
SELECT ALL - col0 + - 7, + col2 FROM tab1 AS cor0
----
-58
96
-92
59
-98
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT - - COUNT( * ) + - - 4 + + + COUNT( ALL + - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6430
SELECT - - COUNT ( * ) + - - 4 + + + COUNT ( ALL + - col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 44 - - - 79 AS col2 FROM tab2 AS cor0
----
-35

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

query I rowsort
SELECT DISTINCT - 17 * 7 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-119

query I rowsort
SELECT - 8 * - 2 + 65 AS col1 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL + + col0 - + 64 * + col1 FROM tab1 AS cor0
----
-235
-2917
-845

query I rowsort
SELECT - ( 77 ) * col1 * + ( - col2 ) FROM tab1
----
103488
22715
246092

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

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

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

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

query I rowsort
SELECT ALL - - 96 + - - col2 FROM tab1 AS cor0
----
155
164
192

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT + 1 DIV + 7 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT + 1 / + 7 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6442
SELECT + - 7 AS col0, 54 DIV + col0 FROM tab0 AS cor0
----
-7
0
-7
0
-7
3

skipif mysql # not compatible
query II rowsort label-6442
SELECT + - 7 AS col0, 54 / + col0 FROM tab0 AS cor0
----
-7
0
-7
0
-7
3

query II rowsort
SELECT - 72, 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
18 values hashing to b08dc0590ddba80f3388925f9bf9dcf2

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT COUNT( * ) * - 25 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-6444
SELECT COUNT ( * ) * - 25 FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + COUNT( * ) * + COUNT( * ) + - 25 AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6445
SELECT + COUNT ( * ) * + COUNT ( * ) + - 25 AS col2 FROM tab1 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 61 col1, + ( - - 89 ) AS col1 FROM tab0 AS cor0
----
-5307
89
-5917
89
-915
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT COUNT( + col2 ) AS col0, 10 FROM tab0 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-6447
SELECT COUNT ( + col2 ) AS col0, 10 FROM tab0 AS cor0
----
3
10

query I rowsort
SELECT + 38 * col0 FROM tab1 AS cor0
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT - 76 * - - COUNT( * ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-6449
SELECT - 76 * - - COUNT ( * ) FROM tab2 AS cor0
----
-228

query I rowsort
SELECT ( - 69 ) FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6451
SELECT + + 30, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
30
NULL
30
NULL
30
NULL

skipif mysql # not compatible
query II rowsort label-6451
SELECT + + 30, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
30
NULL
30
NULL
30
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT DISTINCT + + COUNT( * ) AS col1, - 45 FROM tab0 AS cor0
----
3
-45

skipif mysql # not compatible
query II rowsort label-6453
SELECT DISTINCT + + COUNT ( * ) AS col1, - 45 FROM tab0 AS cor0
----
3
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT 27 * - col0 DIV col0 FROM tab1
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-6454
SELECT 27 * - col0 / col0 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + 99 * - 12 AS col0 FROM tab1
----
-1188

onlyif mysql # DIV for integer division: 
query II rowsort label-6456
SELECT + 24 DIV - - 15 AS col2, - col0 AS col1 FROM tab1
----
1
-51
1
-85
1
-91

skipif mysql # not compatible
query II rowsort label-6456
SELECT + 24 / - - 15 AS col2, - col0 AS col1 FROM tab1
----
1
-51
1
-85
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL + SUM( DISTINCT + 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL + SUM ( DISTINCT + 42 ) FROM tab0
----
42

query II rowsort
SELECT ALL col0 + + - col1, - 38 AS col0 FROM tab2
----
-13
-38
-5
-38
8
-38

query I rowsort
SELECT DISTINCT + col2 + - col0 + 95 * + + col2 AS col0 FROM tab2
----
2162
3776
5493

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

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

query I rowsort
SELECT + 8 AS col0 FROM tab1 AS cor0 WHERE + ( 10 ) + + col1 IS NOT NULL
----
8
8
8

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 36 * - col1 BETWEEN NULL AND + + 42
----

query I rowsort
SELECT col0 + - ( col1 ) FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL col1 * - 87 AS col0 FROM tab2
----
-4437
-5829
-6699

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

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

query II rowsort
SELECT - 92, + col2 + - col2 AS col0 FROM tab0
----
-92
0
-92
0
-92
0

query I rowsort
SELECT ALL - + 99 * - - 4 - col2 + - + ( - 6 ) FROM tab0 AS cor0
----
-400
-437
-489

onlyif mysql # DIV for integer division: 
query I rowsort label-6469
SELECT ALL + col0 DIV + col2 + + - 22 DIV - 64 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL + col0 / + col2 + + - 22 / - 64 FROM tab1 cor0
----
0
1
1

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

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

query I rowsort
SELECT ALL 23 + + 72 + - col1 AS col1 FROM tab0 AS cor0
----
14
74
94

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

skipif mysql # not compatible
query III rowsort label-6472
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - CAST ( NULL AS INTEGER ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT + COUNT( * ) - + 37 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6473
SELECT + COUNT ( * ) - + 37 FROM tab1 AS cor0
----
-34

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

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

query I rowsort
SELECT - 31 + + 46 AS col1 FROM tab0
----
15
15
15

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + + 15 AND NULL
----

query I rowsort
SELECT col0 + - + col1 AS col2 FROM tab0
----
-66
66
96

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

query II rowsort
SELECT ( + 29 ) + ( 13 ), + col0 FROM tab1
----
42
51
42
85
42
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6480
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - - col2 + - - 60 + + - 4, + ( + col1 ) FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6480
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - - col2 + - - 60 + + - 4, + ( + col1 ) FROM tab0
----
NULL
1
NULL
21
NULL
81

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

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

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + 98 / + col1 FROM tab2
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT - 75 DIV + + 22 + + 96 + + col0 * - - col2 + col1 AS col1 FROM tab2 AS cor0
----
1202
2730
4510

skipif mysql # not compatible
query I rowsort label-6484
SELECT - 75 / + + 22 + + 96 + + col0 * - - col2 + col1 AS col1 FROM tab2 AS cor0
----
1202
2730
4510

query I rowsort
SELECT DISTINCT + - col2 * - + 2 + - 18 AS col1 FROM tab0 AS cor0
----
180
2
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6486
SELECT - 95 AS col0, - 17 + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-95
-26

skipif mysql # not compatible
query II rowsort label-6486
SELECT - 95 AS col0, - 17 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-95
-26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT 20 DIV - 45 * col2 * + + 10 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6488
SELECT 20 / - 45 * col2 * + + 10 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + - col2 + + + col1 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT + 81 * - col0 + - col2 + + 48 FROM tab0
----
-1214
-7009
-7908

query II rowsort
SELECT DISTINCT + col2 * + col1 AS col0, - col1 AS col1 FROM tab0
----
210
-21
3807
-81
99
-1

query I rowsort
SELECT 66 + - ( - - col2 ) AS col2 FROM tab1
----
-2
-30
7

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6494
SELECT DISTINCT * FROM tab1 WHERE CAST( col2 AS SIGNED ) * + + col0 = - 48 * col2 * - + 62 * - col0
----

skipif mysql # not compatible
query III rowsort label-6494
SELECT DISTINCT * FROM tab1 WHERE CAST ( col2 AS INTEGER ) * + + col0 = - 48 * col2 * - + 62 * - col0
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6497
SELECT COUNT ( ALL + + 78 ) col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT col2, col2 * - - col1 + + col1 AS col1 FROM tab1 AS cor0
----
59
300
68
3243
96
1358

query I rowsort
SELECT DISTINCT + col1 + - 93 FROM tab0 AS cor0
----
-12
-72
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + - ( - - col0 ) + 25 col1 FROM tab2
----
25
25
25

query I rowsort
SELECT DISTINCT - col1 + col0 + col1 AS col2 FROM tab1
----
51
85
91

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 0 + 72 + + col0 / - col1 IN ( col0 / 2 + - 13, 92, + - col2, + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT SUM( + 78 ) + - 6 AS col2 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-6504
SELECT SUM ( + 78 ) + - 6 AS col2 FROM tab2 AS cor0
----
228

query II rowsort
SELECT + - col1 + col1 AS col1, + col2 * + col2 * - + col0 * - - 97 FROM tab1 AS cor0
----
0
-28700845
0
-40816048
0
-45591552

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE 60 >= NULL
----

query I rowsort
SELECT DISTINCT 6 - col2 - 60 FROM tab2 AS cor0
----
-112
-77
-94

query I rowsort
SELECT + + col1 + - 35 AS col1 FROM tab2 WHERE + 66 BETWEEN NULL AND - + col2
----

query I rowsort
SELECT ALL + 37 * col2 FROM tab1
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL COUNT( - 92 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL COUNT ( - 92 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT DISTINCT col1 DIV 17 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT col1 / 17 FROM tab1
----
0
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT 51 DIV col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6516
SELECT 51 / col0 FROM tab0
----
0
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT + 47 DIV 32 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6517
SELECT + 47 / 32 FROM tab1 AS cor0
----
1
1
1

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

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

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

query II rowsort
SELECT ALL 45 AS col0, + col2 * - col1 FROM tab1
----
45
-1344
45
-295
45
-3196

query I rowsort
SELECT col2 * + 35 AS col1 FROM tab2
----
1400
2030
805

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT 35 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6522
SELECT 35 / + col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * - col0 * 48 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT SUM( ALL + 31 ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6525
SELECT SUM ( ALL + 31 ) AS col1 FROM tab1
----
93

query I rowsort
SELECT col2 * 75 + - col2 * + 85 + 35 FROM tab1
----
-555
-645
-925

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

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

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

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

query I rowsort
SELECT + 76 AS col2 FROM tab2 cor0 WHERE NULL > NULL
----

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

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

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

query I rowsort
SELECT ALL 50 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col0 * 98 AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 + + - 44 AS col0 FROM tab0 AS cor0
----
-34
3
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6535
SELECT DISTINCT + 23 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT + 23 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 - + col0 - + + col1 FROM tab2 cor0
----
-120
-181
-200

query II rowsort
SELECT col0, + col1 * col0 + + - col2 AS col1 FROM tab2 AS cor0
----
46
2323
64
4888
75
4967

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= + 85 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL 84 * - SUM( DISTINCT - col2 ) FROM tab1
----
18732

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL 84 * - SUM ( DISTINCT - col2 ) FROM tab1
----
18732

query I rowsort
SELECT ALL + col0 * - 34 AS col2 FROM tab0
----
-2958
-3298
-510

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN - 43 AND - ( col2 )
----

query I rowsort
SELECT DISTINCT - 88 * - - col0 * col2 * + col2 AS col0 FROM tab1
----
-26037880
-37028992
-41361408

query I rowsort
SELECT ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL 36 * - col1 + - col1 FROM tab1 AS cor0
----
-1739
-185
-518

query I rowsort
SELECT + 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6547
SELECT + 40, CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 cor0
----
40
NULL
40
NULL
40
NULL

skipif mysql # not compatible
query II rowsort label-6547
SELECT + 40, CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 cor0
----
40
NULL
40
NULL
40
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6548
SELECT ALL col0 AS col0, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + col0 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6548
SELECT ALL col0 AS col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + col0 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

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

query I rowsort
SELECT ALL + col2 + + 81 AS col0 FROM tab0 AS cor0
----
128
180
91

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + col0 * - col2 = - + col1
----

query I rowsort
SELECT + 57 + - col1 AS col1 FROM tab1 AS cor0
----
10
43
52

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT ( + - col2 <= + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT ALL - col0 DIV - - ( - 95 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL - col0 / - - ( - 95 ) FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6555
SELECT ALL - ( col2 ) / + col1 col0 FROM tab1 AS cor0
----
-1
-11
-6

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

skipif mysql # not compatible
query I rowsort label-6556
SELECT col0 + CAST ( - col0 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT + MIN( DISTINCT - + col1 ) + - - COUNT( * ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + MIN ( DISTINCT - + col1 ) + - - COUNT ( * ) FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6558
SELECT * FROM tab0 WHERE NULL < CAST( NULL AS SIGNED ) * + + col0 * - - col2 + col1
----

skipif mysql # not compatible
query III rowsort label-6558
SELECT * FROM tab0 WHERE NULL < CAST ( NULL AS INTEGER ) * + + col0 * - - col2 + col1
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6560
SELECT ALL col1 + 65 + - - 13 * col2 / + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6561
SELECT * FROM tab0 cor0 WHERE + col1 * + 73 NOT BETWEEN CAST( NULL AS SIGNED ) - - - 28 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6561
SELECT * FROM tab0 cor0 WHERE + col1 * + 73 NOT BETWEEN CAST ( NULL AS INTEGER ) - - - 28 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT ALL 6 - + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
29
46
64

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL 6 - + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND col1 + - + col1 * + ( + col2 ) AND NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6563
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND col1 + - + col1 * + ( + col2 ) AND NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 74 + - col0 col1 FROM tab0 AS cor0
----
-151
-42
-72

query I rowsort
SELECT col0 * - col1 + + 59 AS col1 FROM tab1
----
-366
-4218
-655

onlyif mysql # DIV for integer division: 
query II rowsort label-6566
SELECT col0 DIV col0 * col1 * col1 DIV 3 AS col1, - 25 FROM tab2 cor0
----
1496
-25
1976
-25
867
-25

skipif mysql # not compatible
query II rowsort label-6566
SELECT col0 / col0 * col1 * col1 / 3 AS col1, - 25 FROM tab2 cor0
----
1496
-25
1976
-25
867
-25

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6568
SELECT - 29 col1 FROM tab1 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + + col2 * col2 IS NOT NULL
----
-29
-29
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6568
SELECT - 29 col1 FROM tab1 cor0 WHERE NOT + CAST ( NULL AS REAL ) + + col2 * col2 IS NOT NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT + MAX( DISTINCT - + col0 ) * 64 AS col2 FROM tab1 AS cor0
----
-3264

skipif mysql # not compatible
query I rowsort label-6569
SELECT + MAX ( DISTINCT - + col0 ) * 64 AS col2 FROM tab1 AS cor0
----
-3264

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

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

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

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT - 26 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + CAST ( NULL AS REAL ) + + - col0 NOT BETWEEN NULL AND - CAST ( col2 AS INTEGER ) - 86
----

query I rowsort
SELECT - - 7 * ( ( 81 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
567
567
567

query II rowsort
SELECT ALL - col0 AS col2, + 1 FROM tab0
----
-15
1
-87
1
-97
1

query I rowsort
SELECT + col0 * 56 AS col1 FROM tab0
----
4872
5432
840

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

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

query I rowsort
SELECT ( - + 41 ) FROM tab1
----
-41
-41
-41

query I rowsort
SELECT 44 * + ( col0 ) * - col1 FROM tab0
----
-4268
-53460
-80388

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT DISTINCT - col2 + - CAST( col2 AS SIGNED ) + - 8 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-102
-206
-28

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT - col2 + - CAST ( col2 AS INTEGER ) + - 8 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-102
-206
-28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 28 IN ( + - col2 )
----

query II rowsort
SELECT 46 * + - col2, 76 * + col0 AS col2 FROM tab0 AS cor0
----
-2162
1140
-4554
7372
-460
6612

query I rowsort
SELECT DISTINCT - ( - col0 ) + + - col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - col1 * + 91 + col0 FROM tab0 cor0
----
-1824
-7356
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT + - COUNT( * ) + + 30 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT + - COUNT ( * ) + + 30 FROM tab2 AS cor0
----
27

query II rowsort
SELECT ALL - 76, ( + col0 ) * + col1 + + col1 AS col0 FROM tab1
----
-76
430
-76
4324
-76
728

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT ALL 49 * + ( + + ( - - SUM( + 59 ) ) ) AS col0, COUNT( * ) FROM tab0, tab1 cor0
----
26019
9

skipif mysql # not compatible
query II rowsort label-6587
SELECT ALL 49 * + ( + + ( - - SUM ( + 59 ) ) ) AS col0, COUNT ( * ) FROM tab0, tab1 cor0
----
26019
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT + COUNT( DISTINCT 20 ) AS col1 FROM tab1 WHERE + col1 BETWEEN 63 + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT + COUNT ( DISTINCT 20 ) AS col1 FROM tab1 WHERE + col1 BETWEEN 63 + col0 AND NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN - + 45 * + col0 AND - 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + 74 AS col0 FROM tab2
----
125
141
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + + 68 col2 FROM tab0
----
103
103
103

query I rowsort
SELECT - col2 + - 74 FROM tab1
----
-133
-142
-170

query I rowsort
SELECT DISTINCT col1 * 57 AS col0 FROM tab1
----
2679
285
798

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

query II rowsort
SELECT ALL 18 + - ( col0 ) AS col1, - col0 FROM tab0 AS cor0
----
-69
-87
-79
-97
3
-15

query I rowsort
SELECT DISTINCT ( 3 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL + 50 * - col1 - - col1 - + col0 - + 44 - + col0 * - + 58 * + + col2 + + col1, - col2 AS col0 FROM tab2 cor0
----
144676
-40
248965
-58
58826
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT DISTINCT 12 DIV - 66 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT 12 / - 66 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL 75 + + ( col1 ) AS col2 FROM tab2 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT ALL + 46 FROM tab1 WHERE NOT col0 IS NULL
----
46
46
46

query I rowsort
SELECT - 40 + col0 FROM tab1
----
11
45
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 + 75 col1 FROM tab1
----
110

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( - col0 * - col1 + col0 ) <= ( - ( col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT - 77 * 89 - 23 FROM tab1
----
-6876
-6876
-6876

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

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT 65 / ( + col0 ) + - col2 IS NOT NULL
----

query I rowsort
SELECT + 50 + 77 AS col0 FROM tab2
----
127
127
127

query I rowsort
SELECT ALL 78 + + col1 FROM tab2
----
129
145
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND ( 56 - - col2 * ( + col1 / col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND ( 56 - - col2 * ( + col1 / col0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT - COUNT( * ) * - MAX( ALL 32 * 34 ) AS col2 FROM tab2 WHERE - 5 NOT BETWEEN + col1 AND ( NULL )
----
3264

skipif mysql # not compatible
query I rowsort label-6612
SELECT - COUNT ( * ) * - MAX ( ALL 32 * 34 ) AS col2 FROM tab2 WHERE - 5 NOT BETWEEN + col1 AND ( NULL )
----
3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT 43 - - 90 DIV ( COUNT( ALL + ( - col2 ) ) ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-6613
SELECT 43 - - 90 / ( COUNT ( ALL + ( - col2 ) ) ) FROM tab1
----
73

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) < + 42
----
75
67
58

query I rowsort
SELECT ALL - ( - 36 ) AS col1 FROM tab2
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 49 <= col2
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT - COUNT( * ) FROM tab0 WHERE NOT col1 <> ( + col2 / col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-6617
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col1 <> ( + col2 / col2 )
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col0 NOT BETWEEN col2 AND col0
----
85
5
59

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

query I rowsort
SELECT DISTINCT - col2 + + 8 FROM tab0 cor0
----
-2
-39
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT COUNT( * ) DIV 72 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT COUNT ( * ) / 72 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT 40 > NULL
----

query I rowsort
SELECT 61 * col1 AS col1 FROM tab0 AS cor0
----
1281
4941
61

query I rowsort
SELECT - 32 + col0 AS col1 FROM tab2 AS cor0
----
14
32
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6625
SELECT ALL COUNT( * ) DIV + 39 AS col1 FROM tab2 AS cor0 WHERE ( - 89 DIV col1 ) NOT IN ( ( + CAST( col2 AS SIGNED ) ) * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL COUNT ( * ) / + 39 AS col1 FROM tab2 AS cor0 WHERE ( - 89 / col1 ) NOT IN ( ( + CAST ( col2 AS INTEGER ) ) * col2 )
----
0

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

skipif mysql # not compatible
query I rowsort label-6626
SELECT - COUNT ( * ) * 71 FROM tab0 AS cor0 WHERE - 0 IS NOT NULL
----
-213

query I rowsort
SELECT + - 83 * col2 + col1 AS col2 FROM tab1 AS cor0
----
-4892
-5597
-7954

query I rowsort
SELECT 9 * col0 + + ( + 99 ) * 2 AS col2 FROM tab0 AS cor0
----
1071
333
981

query I rowsort
SELECT + 37 * - 11 + ( col1 ) FROM tab0 AS cor0
----
-326
-386
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-6630
SELECT - col1 DIV + 22 + - 97 AS col1 FROM tab2 AS cor0
----
-100
-100
-99

skipif mysql # not compatible
query I rowsort label-6630
SELECT - col1 / + 22 + - 97 AS col1 FROM tab2 AS cor0
----
-100
-100
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 82 ) IS NULL
----

query I rowsort
SELECT - 31 + + 47 AS col0 FROM tab0 cor0
----
16
16
16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6634
SELECT - - COUNT( * ) DIV - 84 + + 38 col2 FROM tab2 cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6634
SELECT - - COUNT ( * ) / - 84 + + 38 col2 FROM tab2 cor0
----
38

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

query I rowsort
SELECT ALL + 81 * 22 FROM tab2 AS cor0
----
1782
1782
1782

query I rowsort
SELECT ALL 68 - - - 25 FROM tab2
----
43
43
43

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col2 * + col2 AND ( NULL )
----

query I rowsort
SELECT ALL col0 * - 16 AS col2 FROM tab1
----
-1360
-1456
-816

query I rowsort
SELECT DISTINCT ( + + col1 ) * 0 FROM tab0
----
0

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

query I rowsort
SELECT DISTINCT 87 + + - 55 AS col1 FROM tab1 AS cor0
----
32

query I rowsort
SELECT + + col1 - 31 * 78 FROM tab1 AS cor0
----
-2371
-2404
-2413

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT + MAX( - 27 ) * + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-243

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT + MAX ( - 27 ) * + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-243

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT - COUNT( DISTINCT col1 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT - COUNT ( DISTINCT col1 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL <> - CAST( + 99 AS SIGNED ) * col1
----

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL <> - CAST ( + 99 AS INTEGER ) * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col2 FROM tab0 AS cor0 WHERE NOT col1 * + col1 NOT BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 22 / + col1 + + 85 > ( col0 )
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6652
SELECT ALL * FROM tab1 WHERE NOT 80 * + col1 * 42 + CAST( - 84 AS SIGNED ) * col1 + + 4 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6652
SELECT ALL * FROM tab1 WHERE NOT 80 * + col1 * 42 + CAST ( - 84 AS INTEGER ) * col1 + + 4 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6653
SELECT DISTINCT * FROM tab2 WHERE - CAST( - - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6653
SELECT DISTINCT * FROM tab2 WHERE - CAST ( - - col2 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 55 )
----

query I rowsort
SELECT col0 + - 78 AS col0 FROM tab0 cor0
----
-63
19
9

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 40 / + col1 NOT IN ( 34 * 79 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT - MAX( - + 91 ) AS col2 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT - MAX ( - + 91 ) AS col2 FROM tab2
----
91

query I rowsort
SELECT DISTINCT + - 46 + - - col0 FROM tab1 AS cor0
----
39
45
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6660
SELECT DISTINCT - ( - CAST( + 34 AS SIGNED ) ), col0 * + col1 AS col0 FROM tab1 AS cor0
----
34
425
34
4277
34
714

skipif mysql # not compatible
query II rowsort label-6660
SELECT DISTINCT - ( - CAST ( + 34 AS INTEGER ) ), col0 * + col1 AS col0 FROM tab1 AS cor0
----
34
425
34
4277
34
714

query I rowsort
SELECT + - 75 FROM tab1 cor0
----
-75
-75
-75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT ALL - CAST( NULL AS SIGNED ) - + 77 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL - CAST ( NULL AS INTEGER ) - + 77 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - + SUM( + - 80 ) - + 2 * 89 col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6664
SELECT - + SUM ( + - 80 ) - + 2 * 89 col1 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT 95 * COUNT( * ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT 95 * COUNT ( * ) FROM tab1 AS cor0
----
285

query II rowsort
SELECT DISTINCT + 25 AS col0, col0 FROM tab0 AS cor0
----
25
15
25
87
25
97

query I rowsort
SELECT DISTINCT + col1 - + + col2 FROM tab0
----
-98
11
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT CAST( NULL AS SIGNED ) * - + MAX( DISTINCT + 66 ) + + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT CAST ( NULL AS INTEGER ) * - + MAX ( DISTINCT + 66 ) + + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT - 32 + - col1 AS col2 FROM tab2
----
-109
-83
-99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + 77 AS col1 FROM tab1
----
59
77
68
77
96
77

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

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

query I rowsort
SELECT - col0 * + col0 + + - col2 FROM tab2
----
-2139
-4136
-5683

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

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

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

query I rowsort
SELECT DISTINCT + col2 * ( - 42 ) * + 83 FROM tab0 AS cor0
----
-163842
-345114
-34860

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT DISTINCT - - col0 DIV col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - - col0 / col2 FROM tab2 AS cor0
----
1
2

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

query I rowsort
SELECT DISTINCT - col0 * + 78 * + 41 FROM tab2
----
-147108
-204672
-239850

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

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6685
SELECT - COUNT( * ) * - 57 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + + col1 * - col0 > ( + + ( - 46 ) - + col0 + - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6685
SELECT - COUNT ( * ) * - 57 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + + col1 * - col0 > ( + + ( - 46 ) - + col0 + - CAST ( NULL AS REAL ) )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6687
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > - - col1 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6687
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > - - col1 / + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + 5 * + 62 FROM tab1 AS cor0
----
-310
-310
-310

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 21 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6690
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( + col2 * + ( + 15 ) / - + CAST( NULL AS SIGNED ) * col2 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-6690
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( + col2 * + ( + 15 ) / - + CAST ( NULL AS INTEGER ) * col2 * - col2 )
----

query I rowsort
SELECT ALL ( + - 17 ) AS col1 FROM tab1
----
-17
-17
-17

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

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

skipif mysql # not compatible
query I rowsort label-6693
SELECT col2 / + - CAST ( NULL AS INTEGER ) * - + 99 + 59 AS col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6695
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + ( - ( COUNT( * ) ) ) / - 86 + - COUNT( DISTINCT - - col1 ) * + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + ( - ( COUNT ( * ) ) ) / - 86 + - COUNT ( DISTINCT - - col1 ) * + COUNT ( * ) AS col1 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6697
SELECT ALL MAX( ALL 88 ) + COUNT( * ), + COUNT( * ) AS col1 FROM tab2
----
91
3

skipif mysql # not compatible
query II rowsort label-6697
SELECT ALL MAX ( ALL 88 ) + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL 69 + 15 + COUNT( * ) - + - 82 * + COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
825

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 69 + 15 + COUNT ( * ) - + - 82 * + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT + 63 + MIN( ALL + col2 ) * + - 12 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT + 63 + MIN ( ALL + col2 ) * + - 12 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT 60 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-2541
-7165
-8221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6701
SELECT DISTINCT + - ( - + CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab0 AS cor0 WHERE - 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT + - ( - + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab0 AS cor0 WHERE - 6 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT - + MAX( ALL 36 ) FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6702
SELECT - + MAX ( ALL 36 ) FROM tab0 cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT DISTINCT - 39 DIV - col2 + - col1 * - col1 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT - 39 / - col2 + - col1 * - col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - col0 * 41 + + col2 + + col2 AS col0 FROM tab1
----
-1899
-3367
-3595

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT ( + MIN( + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT ( + MIN ( + col0 ) ) FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 44 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT + + 6 * ( + 48 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
288

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - col1 ) * col1 < - ( + + col1 ) / + + col0 / - 10 + + - col0
----

query I rowsort
SELECT ALL - + col2 - + 37 + + col2 FROM tab0 AS cor0
----
-37
-37
-37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6711
SELECT ALL - col0 + ( col2 ) * - - col1, - CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1127
46
3016
64
3811
75

skipif mysql # not compatible
query II rowsort label-6711
SELECT ALL - col0 + ( col2 ) * - - col1, - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1127
46
3016
64
3811
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT SUM( - - 56 ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6712
SELECT SUM ( - - 56 ) FROM tab1 AS cor0
----
168

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - - 52 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT 37 - + - CAST( col1 AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT 37 - + - CAST ( col1 AS INTEGER ) IS NULL
----
1
21
81

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

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

query I rowsort
SELECT + col0 * - - col2 AS col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT 78 DIV + + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6717
SELECT 78 / + + COUNT ( * ) FROM tab1
----
26

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

query I rowsort
SELECT DISTINCT - 91 * col0 AS col0 FROM tab2 AS cor0
----
-4186
-5824
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT - COUNT( * ) * 66 AS col1 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6720
SELECT - COUNT ( * ) * 66 AS col1 FROM tab1 AS cor0
----
-198

query I rowsort
SELECT DISTINCT - 22 * - 26 AS col1 FROM tab2 AS cor0
----
572

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

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

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

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

query I rowsort
SELECT col0 * + 2 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL + col2 * + - col0 * 81 + - + col1 + + + col0 FROM tab0 AS cor0
----
-57171
-70404
-777747

query I rowsort
SELECT ALL col0 * + ( - 57 ) * col2 + 47 AS col1 FROM tab2 AS cor0
----
-145873
-247903
-60259

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

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

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

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

query I rowsort
SELECT col0 * ( - - 76 ) FROM tab2 AS cor0
----
3496
4864
5700

query I rowsort
SELECT 18 * - col1 * - + col2 FROM tab2
----
21114
55440
69948

query I rowsort
SELECT ALL 33 + - col0 FROM tab0
----
-54
-64
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6733
SELECT DISTINCT - SUM( ALL + - CAST( NULL AS SIGNED ) ) + - + 75 + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) + - + 75 + COUNT ( * ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT + SUM( + col1 ) FROM tab0 AS cor0 WHERE + 12 * - col2 NOT BETWEEN NULL AND + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT + SUM ( + col1 ) FROM tab0 AS cor0 WHERE + 12 * - col2 NOT BETWEEN NULL AND + 75
----
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - ( - col0 ) + - col1 AS col2 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT COUNT( * ) + + 30 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
39

skipif mysql # not compatible
query I rowsort label-6740
SELECT COUNT ( * ) + + 30 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> - col1 + col1
----

query I rowsort
SELECT ( - 40 ) - ( - + col1 ) * col2 AS col2 FROM tab0 cor0
----
170
3767
59

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

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

query I rowsort
SELECT col2 - - 8 FROM tab1 AS cor0
----
104
67
76

query I rowsort
SELECT ALL col2 - 89 + + col2 * - col2 * + - col0 - 70 * - + col1 AS col0 FROM tab2 cor0
----
107741
256959
27838

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

query I rowsort
SELECT - 74 + + col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-15
-6
22

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

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT + SUM ( col2 ) + - COUNT ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
153

query I rowsort
SELECT ALL - 38 * 27 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND ( - - col0 )
----

query I rowsort
SELECT ALL col1 - 84 * - 60 FROM tab2 cor0
----
5091
5107
5117

onlyif mysql # aggregate syntax: 
query II rowsort label-6751
SELECT DISTINCT 52 AS col1, - COUNT( * ) FROM tab2 WHERE - + col0 IS NOT NULL
----
52
-3

skipif mysql # not compatible
query II rowsort label-6751
SELECT DISTINCT 52 AS col1, - COUNT ( * ) FROM tab2 WHERE - + col0 IS NOT NULL
----
52
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6752
SELECT DISTINCT CAST( + - col0 AS SIGNED ) col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6752
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) col2 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6753
SELECT DISTINCT - 79 AS col0 FROM tab1 WHERE + 24 + 20 <= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - 79 AS col0 FROM tab1 WHERE + 24 + 20 <= + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6754
SELECT DISTINCT + ( - + 99 ) AS col0, + COUNT( * ) FROM tab2
----
-99
3

skipif mysql # not compatible
query II rowsort label-6754
SELECT DISTINCT + ( - + 99 ) AS col0, + COUNT ( * ) FROM tab2
----
-99
3

query I rowsort
SELECT ALL - col1 * + 57 AS col1 FROM tab0 AS cor0
----
-1197
-4617
-57

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL CAST( + 91 AS SIGNED ) + + col2 - + + col2 * + 93 col2 FROM tab2 cor0
----
-2025
-3589
-5245

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6757
SELECT ALL CAST ( + 91 AS INTEGER ) + + col2 - + + col2 * + 93 col2 FROM tab2 cor0
----
-2025
-3589
-5245

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 61 * + 3
----

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

query I rowsort
SELECT - + col0 + + 0 FROM tab0 cor0
----
-15
-87
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL + MAX( + - 84 ) AS col2 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + MAX ( + - 84 ) AS col2 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6763
SELECT ALL ( - MIN( col0 ) ) col2, ( SUM( ALL + + 68 ) ) * COUNT( + 97 ) FROM tab2 AS cor0
----
-46
612

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6763
SELECT ALL ( - MIN ( col0 ) ) col2, ( SUM ( ALL + + 68 ) ) * COUNT ( + 97 ) FROM tab2 AS cor0
----
-46
612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 29 col0 FROM tab1
----
114
120
80

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

skipif mysql # not compatible
query I rowsort label-6765
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + - 18 AS col2 FROM tab2
----
-21

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

query I rowsort
SELECT DISTINCT + col2 * - + 44 + - - 57 AS col2 FROM tab1
----
-2539
-2935
-4167

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

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

query I rowsort
SELECT col2 * + + col0 * + col0 FROM tab1 AS cor0
----
249696
426275
563108

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6771
SELECT DISTINCT + col0 + + - CAST( NULL AS SIGNED ), 62 AS col2 FROM tab2 AS cor0
----
NULL
62

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

query II rowsort
SELECT DISTINCT col0, + 87 + + col2 AS col2 FROM tab1 AS cor0
----
51
183
85
146
91
155

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6773
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - CAST( NULL AS SIGNED ) + + col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6773
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - CAST ( NULL AS INTEGER ) + + col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col0 FROM tab2 WHERE NULL BETWEEN - 88 AND col1 * - + col1 * - col0 + + 89 + 6
----

query I rowsort
SELECT col0 + + col2 * - + col1 AS col1 FROM tab1
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6776
SELECT ALL - 15 DIV + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - 15 / + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN - col1 AND - col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT COUNT( ALL 40 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6778
SELECT COUNT ( ALL 40 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IN ( 78, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6779
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( 78, col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + col1 FROM tab1 AS cor0 WHERE NOT 61 * col0 > col1
----

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + col1 FROM tab1 AS cor0 WHERE NOT 61 * col0 > col1
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6782
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col1, + 95 - COUNT( * ) FROM tab1 AS cor0
----
-47
92

skipif mysql # not compatible
query II rowsort label-6782
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col1, + 95 - COUNT ( * ) FROM tab1 AS cor0
----
-47
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT + COUNT( * ) * + - 63 AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + COUNT ( * ) * + - 63 AS col1 FROM tab0
----
-189

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - 29
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 87 BETWEEN NULL AND + 30 + + + col2
----

query I rowsort
SELECT + 56 AS col2 FROM tab0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + 86 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * - 72 AS col1 FROM tab2
----
1656
2880
4176

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT DISTINCT - ( - CAST( + - 33 AS SIGNED ) ) * 32 col2 FROM tab2 AS cor0
----
-1056

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6790
SELECT DISTINCT - ( - CAST ( + - 33 AS INTEGER ) ) * 32 col2 FROM tab2 AS cor0
----
-1056

query I rowsort
SELECT + 96 * + 41 FROM tab1 AS cor0
----
3936
3936
3936

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6792
SELECT DISTINCT + col0 * - - 95 * - CAST( + ( col2 ) AS SIGNED ), col0 FROM tab2
----
-100510
46
-243200
64
-413250
75

skipif mysql # not compatible
query II rowsort label-6792
SELECT DISTINCT + col0 * - - 95 * - CAST ( + ( col2 ) AS INTEGER ), col0 FROM tab2
----
-100510
46
-243200
64
-413250
75

query I rowsort
SELECT ALL - 68 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 79 < col2
----
-3128
-4352
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT + MIN( ALL + col1 ) * - 23 AS col2 FROM tab0 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6794
SELECT + MIN ( ALL + col1 ) * - 23 AS col2 FROM tab0 cor0
----
-23

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <> + 3 / + col1 + col1 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT SUM( 97 ) AS col1 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-6797
SELECT SUM ( 97 ) AS col1 FROM tab1
----
291

query I rowsort
SELECT - 40 * - col1 FROM tab1
----
1880
200
560

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

query I rowsort
SELECT DISTINCT col2 * - 32 FROM tab1
----
-1888
-2176
-3072

query I rowsort
SELECT col1 * - 96 + - 15 AS col0 FROM tab0
----
-111
-2031
-7791

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - 73 + COUNT( * ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-6803
SELECT - 73 + COUNT ( * ) FROM tab1
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT COUNT( ALL 65 ) + + 20 * 0 * + 76 col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6805
SELECT COUNT ( ALL 65 ) + + 20 * 0 * + 76 col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT + SUM( col2 ) * 44 + + 86 * - 31 + - COUNT( * ) col1 FROM tab1
----
7143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6806
SELECT + SUM ( col2 ) * 44 + + 86 * - 31 + - COUNT ( * ) col1 FROM tab1
----
7143

onlyif mysql # DIV for integer division: 
query II rowsort label-6807
SELECT ALL 58 * 60 + - - col1 AS col1, + 91 DIV - col2 col0 FROM tab2
----
3531
-3
3547
-1
3557
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6807
SELECT ALL 58 * 60 + - - col1 AS col1, + 91 / - col2 col0 FROM tab2
----
3531
-3
3547
-1
3557
-2

query I rowsort
SELECT col2 + 12 + + col2 AS col1 FROM tab2
----
128
58
92

query I rowsort
SELECT DISTINCT 88 * col1 AS col0 FROM tab0
----
1848
7128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT - ( - 93 ) + - MAX( col0 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - ( - 93 ) + - MAX ( col0 ) FROM tab1 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> - col1 * + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6813
SELECT * FROM tab0 AS cor0 WHERE 63 BETWEEN col0 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6813
SELECT * FROM tab0 AS cor0 WHERE 63 BETWEEN col0 AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6814
SELECT COUNT( * ) DIV + COUNT( * ) + 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-6814
SELECT COUNT ( * ) / + COUNT ( * ) + 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6815
SELECT DISTINCT + ( - - CAST( NULL AS DECIMAL ) ) / col1 + ( - col2 ) - 96 * + + 2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT + ( - - CAST ( NULL AS REAL ) ) / col1 + ( - col2 ) - 96 * + + 2 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6816
SELECT - 64, CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
18 values hashing to bc9f2ce9a89fe238dcd74a8250de17b6

skipif mysql # not compatible
query II rowsort label-6816
SELECT - 64, CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
18 values hashing to bc9f2ce9a89fe238dcd74a8250de17b6

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT + ( + + SUM( ALL + - 30 ) ) AS col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT + ( + + SUM ( ALL + - 30 ) ) AS col2 FROM tab2 AS cor0
----
-90

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, col1 AS col0 FROM tab1 AS cor0 WHERE NOT col1 <= ( - col0 )
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + col0 * - 34 AS col0 FROM tab1 cor0
----
-1734
-2890
-3094

query I rowsort
SELECT - - col0 * - col2 * ( + col2 ) * 27 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + ( 14 ) + - 35 >= + col2 * col1 * ( - - col1 ) * col2
----
-234900
-25668819
-894645

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT DISTINCT - SUM( DISTINCT col0 ) * + COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT - SUM ( DISTINCT col0 ) * + COUNT ( * ) FROM tab1
----
-681

onlyif mysql # DIV for integer division: 
query II rowsort label-6824
SELECT ALL col2 DIV + col0 AS col2, + col1 col1 FROM tab0
----
0
21
1
1
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6824
SELECT ALL col2 / + col0 AS col2, + col1 col1 FROM tab0
----
0
21
1
1
3
81

query I rowsort
SELECT - 81 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + col0 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT COUNT( * ) * + 18 AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6827
SELECT COUNT ( * ) * + 18 AS col0 FROM tab0
----
54

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

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

query I rowsort
SELECT DISTINCT + col1 + + col1 + col0 + - col1 + col0 * + col1 * + + col1 + col1 AS col0 FROM tab2 AS cor0
----
119794
336884
379674

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT DISTINCT MIN( DISTINCT + ( - - col0 ) ) * + + 64 + - 77 FROM tab2 AS cor0
----
2867

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT MIN ( DISTINCT + ( - - col0 ) ) * + + 64 + - 77 FROM tab2 AS cor0
----
2867

query I rowsort
SELECT + + 92 + 77 FROM tab1 AS cor0
----
169
169
169

query I rowsort
SELECT - col0 + - + col1 FROM tab2 AS cor0 WHERE + 66 <= + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col1 * + + col0 col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT - ( - + col1 ) FROM tab0 WHERE col1 * 58 * - + col0 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 / - - col2 col2 FROM tab0 WHERE ( NOT col2 NOT IN ( + + 14, col0, - col1, - ( - col1 ), - ( + col0 ) ) )
----

query I rowsort
SELECT + ( + - 50 ) FROM tab1, tab0 cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT DISTINCT - + col1 DIV - col1 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT - + col1 / - col1 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT - col0 * - col2 - - CAST( + - col1 AS SIGNED ) * + - col1 FROM tab1 AS cor0
----
5040
5092
8397

skipif mysql # not compatible
query I rowsort label-6840
SELECT - col0 * - col2 - - CAST ( + - col1 AS INTEGER ) * + - col1 FROM tab1 AS cor0
----
5040
5092
8397

query I rowsort
SELECT ( col1 ) - + 13 FROM tab2 cor0
----
38
54
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT - 6 FROM tab0 AS cor0 WHERE - ( 63 ) - - CAST( + + col1 AS SIGNED ) > col2
----

skipif mysql # not compatible
query I rowsort label-6842
SELECT - 6 FROM tab0 AS cor0 WHERE - ( 63 ) - - CAST ( + + col1 AS INTEGER ) > col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - 58 = col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, + 79 * - + col0 col1 FROM tab1 AS cor0
----
51
-4029
85
-6715
91
-7189

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6847
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT CAST( - - ( + - 61 ) AS SIGNED ) - - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6847
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT CAST ( - - ( + - 61 ) AS INTEGER ) - - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - 40 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - + 6
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6850
SELECT + 22, COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
22
-9

skipif mysql # not compatible
query II rowsort label-6850
SELECT + 22, COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
22
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - 82 AS col1 FROM tab2
----
23
-82
40
-82
58
-82

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 87 / 25 + - 87 < + + col1 * 68 * + - col1 + - - col0 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ( + - COUNT( DISTINCT + 61 ) ) col0 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6856
SELECT ( + - COUNT ( DISTINCT + 61 ) ) col0 FROM tab2
----
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT - COUNT( * ) - - + MAX( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6860
SELECT - COUNT ( * ) - - + MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT 80 - col0 AS col0 FROM tab2
----
16
34
5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + - col2 + + + col2 col0 FROM tab0
----
-235
-495
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT 17 + col0 - + + 7 - + col1 DIV - 6 FROM tab1
----
108
63
95

skipif mysql # not compatible
query I rowsort label-6864
SELECT 17 + col0 - + + 7 - + col1 / - 6 FROM tab1
----
108
63
95

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

query I rowsort
SELECT ALL - 5 * - + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + 19 FROM tab2 AS cor0
----
42
59
77

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6872
SELECT ALL + + COUNT( * ) * + + COUNT( * ) AS col1, MIN( col2 ) + - + 43 AS col0 FROM tab0 AS cor0
----
9
-33

skipif mysql # not compatible
query II rowsort label-6872
SELECT ALL + + COUNT ( * ) * + + COUNT ( * ) AS col1, MIN ( col2 ) + - + 43 AS col0 FROM tab0 AS cor0
----
9
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL + SUM( ALL + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + SUM ( ALL + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT - col0 * + 66 AS col1 FROM tab2 AS cor0
----
-3036
-4224
-4950

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

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

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

query I rowsort
SELECT 9 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT MAX ( - 53 ) AS col1 FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT ALL - 16 + + COUNT( * ) - + + ( - COUNT( * ) ) + 80 * + + ( - 35 ) AS col2 FROM tab0
----
-2810

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - 16 + + COUNT ( * ) - + + ( - COUNT ( * ) ) + 80 * + + ( - 35 ) AS col2 FROM tab0
----
-2810

query II rowsort
SELECT DISTINCT - 10 + - col2 + ( 55 ) + 67, 25 AS col0 FROM tab2 AS cor0
----
54
25
72
25
89
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT DISTINCT + col1 DIV + + 23 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
0
3

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT + col1 / + + 23 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT COUNT( * ) * + 60 * + COUNT( * ) AS col0 FROM tab2
----
540

skipif mysql # not compatible
query I rowsort label-6882
SELECT COUNT ( * ) * + 60 * + COUNT ( * ) AS col0 FROM tab2
----
540

query I rowsort
SELECT ALL col2 + - col1 + col2 + 96 + - 36 FROM tab0 AS cor0
----
257
59
73

query I rowsort
SELECT DISTINCT - col2 + - 89 * - 46 AS col1 FROM tab1 AS cor0
----
3998
4026
4035

query I rowsort
SELECT - + 26 + + + col2 AS col0 FROM tab2 cor0
----
-3
14
32

query I rowsort
SELECT ALL + + col1 + + 54 AS col2 FROM tab0 AS cor0
----
135
55
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ALL - 7 + + SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL - 7 + + SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
149

query I rowsort
SELECT ALL + col1 - - col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

query II rowsort
SELECT + - 64 AS col1, - 64 AS col0 FROM tab0 AS cor0
----
-64
-64
-64
-64
-64
-64

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6893
SELECT ALL + ( + - 4 ) * CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * + + col1 / 57 + + + col2 / + col1 / col0 + col0, + col2 )
----

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL + ( + - 4 ) * CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * + + col1 / 57 + + + col2 / + col1 / col0 + col0, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6894
SELECT ALL * FROM tab0 WHERE NULL <> - 24 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6894
SELECT ALL * FROM tab0 WHERE NULL <> - 24 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 18 * + + 61 FROM tab2 WHERE NOT - - 67 * - 39 < + col2 / + + 28
----

query I rowsort
SELECT ALL - 36 * - - col2 - + 84 FROM tab2
----
-1524
-2172
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + + col2 ) * + 77 col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + - col1 AND 60
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( + 36 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT BETWEEN - col1 + - 39 AND - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + ( + 59 ) - + - col2 * + 17 < + 55
----

query I rowsort
SELECT + col0 - + + 9 - + col1 AS col2 FROM tab2 AS cor0
----
-1
-14
-22

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT - ( - + ( - 41 ) ) - - COUNT( * ) col1 FROM tab2, tab1 AS cor0
----
-32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6906
SELECT ALL + - COUNT( * ) col1, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6906
SELECT ALL + - COUNT ( * ) col1, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6907
SELECT DISTINCT + - 68 AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-68
-3

skipif mysql # not compatible
query II rowsort label-6907
SELECT DISTINCT + - 68 AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-68
-3

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

query I rowsort
SELECT - 18 + col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
33
49
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 8 col1 FROM tab1 AS cor0 WHERE NOT 74 >= + - ( + + col2 )
----

query I rowsort
SELECT ALL 43 AS col1 FROM tab1 AS cor0
----
43
43
43

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6913
SELECT + + 9, col0 + + ( + ( - col2 ) ) * + col1 / - + 86 AS col1 FROM tab0 WHERE NOT - CAST( - 42 AS DECIMAL ) + - + col0 * - 4 / + - col1 <> + + 66
----

skipif mysql # not compatible
query II rowsort label-6913
SELECT + + 9, col0 + + ( + ( - col2 ) ) * + col1 / - + 86 AS col1 FROM tab0 WHERE NOT - CAST ( - 42 AS REAL ) + - + col0 * - 4 / + - col1 <> + + 66
----

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

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL COUNT ( ALL - 81 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 AS col2 FROM tab0
----
100
231
3888

query I rowsort
SELECT ALL - ( - - col0 ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 56 * + + col1 AS col2 FROM tab0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + COUNT( * ) * + MIN( col2 ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-6918
SELECT + COUNT ( * ) * + MIN ( col2 ) FROM tab1
----
177

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

query I rowsort
SELECT + col0 * + - 64 + - + col1 FROM tab0 cor0
----
-1041
-5589
-6209

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL + 30 + - + COUNT( * ) AS col0 FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + 30 + - + COUNT ( * ) AS col0 FROM tab1 cor0
----
27

query III rowsort
SELECT * FROM tab2 WHERE + - col0 < + - 69 + + 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6924
SELECT ALL - ( + + col1 ) / - col1 FROM tab1 AS cor0 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL AND NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT DISTINCT + COUNT( * ) + - 99 * - 13, 8 AS col1 FROM tab1 AS cor0
----
1290
8

skipif mysql # not compatible
query II rowsort label-6925
SELECT DISTINCT + COUNT ( * ) + - 99 * - 13, 8 AS col1 FROM tab1 AS cor0
----
1290
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6926
SELECT DISTINCT - col1 + + col1 * + + 32 AS col1, - CAST( + 18 AS SIGNED ) * + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
1457
1638
155
1530
434
918

skipif mysql # not compatible
query II rowsort label-6926
SELECT DISTINCT - col1 + + col1 * + + 32 AS col1, - CAST ( + 18 AS INTEGER ) * + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
1457
1638
155
1530
434
918

query I rowsort
SELECT DISTINCT + col1 * 49 - - + 59 + + col2 + 64 AS col0 FROM tab2 cor0
----
2645
3464
3936

query I rowsort
SELECT - - col0 + - col2 + - 83 AS col1 FROM tab0 AS cor0
----
-115
-6
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 - + 19 col0 FROM tab1
----
62
62
62

query I rowsort
SELECT col0 + - + ( col0 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 45 AS col2 FROM tab0 WHERE - 85 BETWEEN + col2 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT 49 AS col0, + COUNT( * ) col0 FROM tab1
----
49
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6933
SELECT 49 AS col0, + COUNT ( * ) col0 FROM tab1
----
49
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6934
SELECT CAST( + 0 AS SIGNED ) col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6934
SELECT CAST ( + 0 AS INTEGER ) col1 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + col0, + col1 * + col1 AS col1 FROM tab1
----
51
196
85
25
91
2209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6936
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6938
SELECT col0, + CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6938
SELECT col0, + CAST ( + CAST ( NULL AS REAL ) AS REAL ) FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

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

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

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE - + 90 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT DISTINCT COUNT( + col2 ) * + - 52 + + - 20 + - 97 * - + 48 * + - SUM( + col0 ) FROM tab2 AS cor0 WHERE NOT + col0 * + col2 IS NULL
----
-861536

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT COUNT ( + col2 ) * + - 52 + + - 20 + - 97 * - + 48 * + - SUM ( + col0 ) FROM tab2 AS cor0 WHERE NOT + col0 * + col2 IS NULL
----
-861536

query II rowsort
SELECT ALL + ( - + 10 ), - col1 * - col1 AS col0 FROM tab0 AS cor0
----
-10
1
-10
441
-10
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( col1 ) col0, col0 + + 15 FROM tab1 AS cor0
----
14
66
47
106
5
100

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT - - CAST( - col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-6948
SELECT - - CAST ( - col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT 33 + + - 5 * + col1 AS col2 FROM tab0 cor0
----
-372
-72
28

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) + col2 col2 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT + AVG ( - 12 ) + - + AVG ( + ( + - col2 ) ) + 18 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT + AVG ( - 12 ) + - + AVG ( + ( + - col2 ) ) + 18 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT DISTINCT 45 + + col1 + - + col0 + col2 DIV 72 * + col0 * 17 FROM tab0
----
-21
111
1598

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT 45 + + col1 + - + col0 + col2 / 72 * + col0 * 17 FROM tab0
----
-21
111
1598

query I rowsort
SELECT ALL 93 * col0 AS col2 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT + + AVG ( - ( - - 56 ) ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 34
----

query I rowsort
SELECT ALL col2 * - 75 AS col2 FROM tab1 AS cor0
----
-4425
-5100
-7200

query I rowsort
SELECT ALL - col1 * col2 - - col0 AS col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

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

query I rowsort
SELECT DISTINCT + col1 * - col0 + 1 + - - ( + 0 ) + - 38 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - + col1 + - col0 FROM tab2 AS cor0
----
-101
-74
-84

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

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

query I rowsort
SELECT DISTINCT + ( - 91 ) + - 14 AS col0 FROM tab1 AS cor0
----
-105

query I rowsort
SELECT DISTINCT col1 * + - 42 FROM tab2
----
-2142
-2814
-3234

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6967
SELECT ALL - 62 DIV + COUNT( * ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - 62 / + COUNT ( * ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT + col0 * 43 AS col0 FROM tab2
----
1978
2752
3225

query II rowsort
SELECT - col2 AS col1, col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6970
SELECT DISTINCT 62, - col1 - - 41 * CAST( + 37 AS SIGNED ) * + col0 AS col1 FROM tab2 WHERE NOT + col2 / - col2 - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6970
SELECT DISTINCT 62, - col1 - - 41 * CAST ( + 37 AS INTEGER ) * + col0 AS col1 FROM tab2 WHERE NOT + col2 / - col2 - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT col0 * - - col2 AS col0 FROM tab1 WHERE NOT ( + col2 * + col1 + + - 94 - + CAST( - - col2 AS SIGNED ) ) IS NULL
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6971
SELECT col0 * - - col2 AS col0 FROM tab1 WHERE NOT ( + col2 * + col1 + + - 94 - + CAST ( - - col2 AS INTEGER ) ) IS NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL MAX( ALL 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL MAX ( ALL 87 ) FROM tab2
----
87

query I rowsort
SELECT col2 * - - 96 * col2 * - col0 AS col2 FROM tab2 AS cor0
----
-2336064
-24220800
-9830400

query I rowsort
SELECT DISTINCT + ( - ( 29 ) ) AS col2 FROM tab0 AS cor0
----
-29

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-6976
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6977
SELECT ALL COUNT( * ), + CAST( NULL AS SIGNED ) * 85 - - 16 AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6977
SELECT ALL COUNT ( * ), + CAST ( NULL AS INTEGER ) * 85 - - 16 AS col1 FROM tab0
----
3
NULL

query I rowsort
SELECT 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - ( - - col1 ) * - 91 * 56 * + 30 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND + + 88 + - + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL + - COUNT( * ) FROM tab1 WHERE + col0 * - 48 + + col2 BETWEEN - 72 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE + col0 * - 48 + + col2 BETWEEN - 72 AND NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6982
SELECT - + SUM ( ALL + col1 ) col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + - SUM( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6983
SELECT + - SUM ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-195

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6985
SELECT - 56 DIV 76 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6985
SELECT - 56 / 76 * COUNT ( * ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + + 8 col2 FROM tab0
----
-697
-862
-9595

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - 82 * + 49 + - + COUNT( ALL - 19 ) AS col1 FROM tab1
----
-4021

skipif mysql # not compatible
query I rowsort label-6988
SELECT - 82 * + 49 + - + COUNT ( ALL - 19 ) AS col1 FROM tab1
----
-4021

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

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + 35 * + + 48 * + CAST ( NULL AS INTEGER ) / 85 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT + 29 DIV 37 DIV - col2 * - col0 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6990
SELECT + 29 / 37 / - col2 * - col0 + col1 FROM tab2 AS cor0
----
51
67
77

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

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

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

query I rowsort
SELECT DISTINCT - 6 - + 86 * + 32 FROM tab0 AS cor0
----
-2758

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT COUNT( ALL - 23 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT COUNT ( ALL - 23 ) FROM tab1
----
3

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

query I rowsort
SELECT ALL + 61 * + - col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT COUNT( DISTINCT 30 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6997
SELECT COUNT ( DISTINCT 30 ) AS col2 FROM tab1 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6999
SELECT DISTINCT + - COUNT( * ) * - CAST( NULL AS DECIMAL ) / + 43 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT + - COUNT ( * ) * - CAST ( NULL AS REAL ) / + 43 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT ALL - col0 DIV - - 86 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL - col0 / - - 86 FROM tab0
----
-1
-1
0

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

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

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT 99 * + col2 IS NULL
----
59
68
96

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT 7 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - - 93 AND col2
----

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

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col2 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL + MAX( DISTINCT CAST( + + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + MAX ( DISTINCT CAST ( + + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
96

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7009
SELECT DISTINCT col0 col0, col1 + - col0 + - - col2 DIV col2 AS col1 FROM tab0
----
15
67
87
-65
97
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7009
SELECT DISTINCT col0 col0, col1 + - col0 + - - col2 / col2 AS col1 FROM tab0
----
15
67
87
-65
97
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT - 57 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7011
SELECT - 57 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT + 67 + + 45 FROM tab1 AS cor0
----
112
112
112

query I rowsort
SELECT + 71 + 41 * + ( + + col1 ) FROM tab0 AS cor0
----
112
3392
932

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT col2 DIV 53 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7014
SELECT col2 / 53 AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE col2 <= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 74 NOT BETWEEN + 73 * - - col1 + col0 + + 46 + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT COUNT( * ) * + MIN( col0 ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7017
SELECT COUNT ( * ) * + MIN ( col0 ) FROM tab2 AS cor0
----
138

query I rowsort
SELECT + col0 - - 33 AS col0 FROM tab2 cor0
----
108
79
97

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

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

query I rowsort
SELECT ALL + + ( - 19 ) - - 10 FROM tab1 AS cor0
----
-9
-9
-9

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

query I rowsort
SELECT - 68 * - 31 * + col1 AS col1 FROM tab2 AS cor0
----
107508
141236
162316

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

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

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

query I rowsort
SELECT DISTINCT - 71 FROM tab0 AS cor0 WHERE NOT 49 + 47 NOT BETWEEN NULL AND - 2
----

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

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

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

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

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL - COUNT( ALL + + 17 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL - COUNT ( ALL + + 17 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT DISTINCT - COUNT( * ) * 76 FROM tab2 cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT - COUNT ( * ) * 76 FROM tab2 cor0
----
-228

onlyif mysql # DIV for integer division: 
query II rowsort label-7031
SELECT ALL 60, col2 + col0 DIV - col0 AS col0 FROM tab0
----
60
46
60
9
60
98

skipif mysql # not compatible
query II rowsort label-7031
SELECT ALL 60, col2 + col0 / - col0 AS col0 FROM tab0
----
60
46
60
9
60
98

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

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

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

query I rowsort
SELECT DISTINCT 4 * - 4 AS col2 FROM tab1
----
-16

query I rowsort
SELECT 35 * ( + 25 ) * col0 AS col0 FROM tab2
----
40250
56000
65625

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT - COUNT( + 49 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - COUNT ( + 49 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT - col2 + 89 AS col0 FROM tab1
----
-7
21
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT DISTINCT 99 + + 40 * + MIN( ALL col1 ) AS col1 FROM tab2
----
2139

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT 99 + + 40 * + MIN ( ALL col1 ) AS col1 FROM tab2
----
2139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL CAST( 94 AS SIGNED ) + 54 AS col0 FROM tab2
----
148
148
148

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL CAST ( 94 AS INTEGER ) + 54 AS col0 FROM tab2
----
148
148
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT - 99 - 47 * COUNT( * ) AS col0 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT - 99 - 47 * COUNT ( * ) AS col0 FROM tab1
----
-240

query I rowsort
SELECT - 78 + - col1 * + 33 AS col1 FROM tab1
----
-1629
-243
-540

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7042
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT IN ( 5 * col0 )
----

skipif mysql # not compatible
query III rowsort label-7042
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( 5 * col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) > col0
----
75
67
58

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( + 22 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7047
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 + - col1 BETWEEN col0 AND col1
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( 22 * col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT + ( 66 ) + COUNT( * ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-7052
SELECT + ( 66 ) + COUNT ( * ) AS col1 FROM tab1
----
69

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

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

query I rowsort
SELECT 67 * - col1 AS col0 FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT DISTINCT - col0 - 20 FROM tab2
----
-66
-84
-95

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7060
SELECT ALL 82 * + col0 AS col2 FROM tab1 WHERE ( col0 - - col2 ) BETWEEN ( col1 ) AND ( CAST( 5 AS DECIMAL ) * ( - col1 * col1 ) )
----

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL 82 * + col0 AS col2 FROM tab1 WHERE ( col0 - - col2 ) BETWEEN ( col1 ) AND ( CAST ( 5 AS REAL ) * ( - col1 * col1 ) )
----

query I rowsort
SELECT 72 * 23 FROM tab1
----
1656
1656
1656

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

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

query I rowsort
SELECT DISTINCT - ( + 24 ) + col2 FROM tab1 AS cor0
----
35
44
72

query I rowsort
SELECT DISTINCT + 50 - 9 * col2 FROM tab0 AS cor0
----
-373
-40
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT + SUM( - col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7066
SELECT + SUM ( - col1 ) col1 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT DISTINCT + col1 DIV - col0 - col2 FROM tab2 cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT + col1 / - col0 - col2 FROM tab2 cor0
----
-24
-41
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7068
SELECT * FROM tab0 WHERE NOT 17 / + CAST( NULL AS SIGNED ) >= ( - 58 )
----

skipif mysql # not compatible
query III rowsort label-7068
SELECT * FROM tab0 WHERE NOT 17 / + CAST ( NULL AS INTEGER ) >= ( - 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ALL - ( COUNT( * ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7069
SELECT ALL - ( COUNT ( * ) ) col2 FROM tab1
----
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7072
SELECT ALL + col1 DIV 76 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
41
58

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + col1 / 76 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
41
58

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

query I rowsort
SELECT col2 + + col0 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 - + ( 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL + ( - - SUM( ALL - col0 ) ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + ( - - SUM ( ALL - col0 ) ) AS col2 FROM tab0
----
-199

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

skipif mysql # not compatible
query I rowsort label-7076
SELECT - ( MIN ( ( col2 ) ) ) FROM tab1
----
-59

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

query I rowsort
SELECT - col0 * 75 + - col2 * col1 FROM tab2 WHERE NOT + col1 <= + col0
----
-4623
-7880

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE - 46 IN ( - 29 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7081
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE - 46 IN ( - 29 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND + 44 * col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) > + col0 + col0
----

query I rowsort
SELECT + 80 * - - col2 FROM tab2 AS cor0
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT SUM( DISTINCT - 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT SUM ( DISTINCT - 14 ) FROM tab1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT + COUNT( * ) DIV - 30 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7087
SELECT + COUNT ( * ) / - 30 FROM tab1
----
0

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 13 - 58 IS NULL
----

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

query I rowsort
SELECT DISTINCT + + col2 * + 50 FROM tab0 AS cor0
----
2350
4950
500

query I rowsort
SELECT + 96 * - col2 + + 12 AS col0 FROM tab1 AS cor0
----
-5652
-6516
-9204

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

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

query I rowsort
SELECT DISTINCT col0 + 90 FROM tab2 AS cor0 WHERE NULL < ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT 17 DIV + 42 + + 76 col2 FROM tab0 cor0
----
76
76
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7097
SELECT 17 / + 42 + + 76 col2 FROM tab0 cor0
----
76
76
76

query I rowsort
SELECT col1 * + 53 + col1 + col0 FROM tab1 AS cor0
----
2629
355
807

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT + COUNT( * ) + - 42 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT + COUNT ( * ) + - 42 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 cor0 WHERE NOT + col1 + - col0 BETWEEN - col2 AND ( col2 * 34 )
----
59

query I rowsort
SELECT ALL - col1 * + + col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL - ( 91 ) / + 48 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT COUNT( * ) * 32 FROM tab1 WHERE NOT ( + + 24 ) IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT COUNT ( * ) * 32 FROM tab1 WHERE NOT ( + + 24 ) IS NULL
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT ALL COUNT( * ) * + 25 DIV + SUM( + 63 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL COUNT ( * ) * + 25 / + SUM ( + 63 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT 84 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 59 + - ( col1 ) FROM tab2
----
-18
-8
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7109
SELECT * FROM tab1 WHERE + + CAST( 73 AS SIGNED ) IN ( 86 )
----

skipif mysql # not compatible
query III rowsort label-7109
SELECT * FROM tab1 WHERE + + CAST ( 73 AS INTEGER ) IN ( 86 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT DISTINCT + col0 DIV - col2 AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + col0 / - col2 AS col2 FROM tab2
----
-1
-2

query I rowsort
SELECT + 9 AS col0 FROM tab0 WHERE col2 - 82 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT + - COUNT( * ) * SUM( - col0 ) + COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
600

skipif mysql # not compatible
query I rowsort label-7113
SELECT + - COUNT ( * ) * SUM ( - col0 ) + COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
600

query I rowsort
SELECT ALL 78 * - 32 FROM tab1
----
-2496
-2496
-2496

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col2 * - - 76 IN ( ( col1 ) )
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT DISTINCT col0 DIV + 6 AS col1 FROM tab0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT col0 / + 6 AS col1 FROM tab0
----
14
16
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT DISTINCT + COUNT( * ), 17 + + 71 * 72 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
5129

skipif mysql # not compatible
query II rowsort label-7117
SELECT DISTINCT + COUNT ( * ), 17 + + 71 * 72 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
5129

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT + 3 * ( - CAST( col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-141
-297
-30

skipif mysql # not compatible
query I rowsort label-7119
SELECT + 3 * ( - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-141
-297
-30

query I rowsort
SELECT + col0 * - + 95 + col1 + + - col0 FROM tab2 AS cor0
----
-4365
-6067
-7133

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT - 13 DIV - 39 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7121
SELECT - 13 / - 39 FROM tab1 cor0
----
0
0
0

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 51 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7124
SELECT ALL 84 FROM tab2 cor0 WHERE NOT col2 * + - 28 BETWEEN + CAST( + col0 AS DECIMAL ) AND NULL
----
84
84
84

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL 84 FROM tab2 cor0 WHERE NOT col2 * + - 28 BETWEEN + CAST ( + col0 AS REAL ) AND NULL
----
84
84
84

query I rowsort
SELECT + col0 * 3 * col2 + + - col1 FROM tab1 AS cor0
----
14674
15040
18517

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL - 30 * 25 + + COUNT( * ) col0 FROM tab1, tab0 AS cor0
----
-741

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7126
SELECT ALL - 30 * 25 + + COUNT ( * ) col0 FROM tab1, tab0 AS cor0
----
-741

query III rowsort
SELECT * FROM tab1 WHERE NOT - 16 * + 51 - + - col0 >= ( col0 - 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT 55 * col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2805
3685
4235

query II rowsort
SELECT 9 AS col1, + 37 AS col1 FROM tab2
----
9
37
9
37
9
37

query I rowsort
SELECT DISTINCT col1 - 25 FROM tab1 WHERE col1 NOT IN ( col1 / + + ( - col0 ) )
----
-11
-20
22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 80 + 66 ) > + 39 / 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL MIN( ALL + + 47 ) + 27 + 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL MIN ( ALL + + 47 ) + 27 + 37 FROM tab0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7135
SELECT - col0, col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-7135
SELECT - col0, col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

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

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

query I rowsort
SELECT ALL - col0 + + - 14 FROM tab2 AS cor0
----
-60
-78
-89

query I rowsort
SELECT col2 + - + col1 FROM tab0 AS cor0
----
-11
-34
98

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

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

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

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

query I rowsort
SELECT 8 + 91 * + col2 + + col1 AS col1 FROM tab0
----
4366
9018
939

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 6 * + 13 * + col2 + 0 NOT IN ( + 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7145
SELECT ALL 88 AS col2 FROM tab0 WHERE NOT 89 * + ( + + CAST( - + CAST( - col1 AS SIGNED ) AS DECIMAL ) ) + + col1 IS NULL
----
88
88
88

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL 88 AS col2 FROM tab0 WHERE NOT 89 * + ( + + CAST ( - + CAST ( - col1 AS INTEGER ) AS REAL ) ) + + col1 IS NULL
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7146
SELECT DISTINCT 56 DIV col1 AS col1 FROM tab0
----
0
2
56

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT 56 / col1 AS col1 FROM tab0
----
0
2
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + COUNT( DISTINCT - ( 30 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7147
SELECT + COUNT ( DISTINCT - ( 30 ) ) AS col2 FROM tab0
----
1

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

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT + + COUNT ( + col2 ) * - 51 / + - ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 80 + - + 33 * - col1 * - col2 + - 3 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - col0 IS NULL
----

query I rowsort
SELECT + 18 / - + 68 AS col0 FROM tab2 WHERE NOT 99 NOT IN ( + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
81

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
81

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

skipif mysql # not compatible
query I rowsort label-7153
SELECT + COUNT ( col0 ) FROM tab1 WHERE NOT + col2 + - 20 IS NULL
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-7155
SELECT - + col2 * col2 * - + 23 * + ( + 28 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 * col1 + - 20 NOT IN ( col0 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 * col1 + - 20 NOT IN ( col0 + col1 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7157
SELECT MAX( col0 ) DIV - 31 AS col1 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7157
SELECT MAX ( col0 ) / - 31 AS col1 FROM tab2 cor0
----
-2

query I rowsort
SELECT ALL col0 * 41 * + - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-28920
-35757
-393820

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

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

query I rowsort
SELECT col2 + - 55 FROM tab1
----
13
4
41

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

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

query I rowsort
SELECT col0 * + col0 + + col2 AS col0 FROM tab0
----
272
7579
9508

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

query I rowsort
SELECT DISTINCT col1 + + - col1 + - 42 + - col0 FROM tab2
----
-106
-117
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7165
SELECT DISTINCT * FROM tab1 WHERE - col0 * + - CAST( + - col0 AS DECIMAL ) NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query III rowsort label-7165
SELECT DISTINCT * FROM tab1 WHERE - col0 * + - CAST ( + - col0 AS REAL ) NOT BETWEEN NULL AND col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7167
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 + + 16 col2, + 52 * - col1 * + col2 + 96 AS col1 FROM tab1 AS cor0
----
NULL
-15244
NULL
-166096
NULL
-69792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7167
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 + + 16 col2, + 52 * - col1 * + col2 + 96 AS col1 FROM tab1 AS cor0
----
NULL
-15244
NULL
-166096
NULL
-69792

query II rowsort
SELECT + 17 AS col0, + 57 FROM tab2 AS cor0
----
17
57
17
57
17
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT ALL col2 + - 73 DIV - + col0 FROM tab2
----
24
41
58

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL col2 + - 73 / - + col0 FROM tab2
----
24
41
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT DISTINCT ( col2 ) + CAST( 63 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
122
131
159

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT ( col2 ) + CAST ( 63 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
122
131
159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - ( + + 92 ) - - COUNT( * ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - ( + + 92 ) - - COUNT ( * ) FROM tab1 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT DISTINCT col2 + - - 87 FROM tab1 cor0 WHERE NOT ( - 50 ) BETWEEN - 93 * + ( + - 2 ) * 35 AND CAST( NULL AS SIGNED )
----
146
155
183

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT col2 + - - 87 FROM tab1 cor0 WHERE NOT ( - 50 ) BETWEEN - 93 * + ( + - 2 ) * 35 AND CAST ( NULL AS INTEGER )
----
146
155
183

query I rowsort
SELECT ALL col1 + + 50 AS col1 FROM tab0 AS cor0
----
131
51
71

query I rowsort
SELECT - ( - - ( - col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - 4 + - col0 AS col0 FROM tab2 AS cor0
----
-50
-68
-79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 cor0 WHERE ( col0 / + col0 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col1 * 75 AS col0 FROM tab1
----
-1050
-3525
-375

query I rowsort
SELECT ALL ( + + 77 ) FROM tab1
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * - col2 col1 FROM tab2
----
-1040
-1508
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT + MAX( DISTINCT - - ( - + col2 ) ) col1 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7183
SELECT DISTINCT + MAX ( DISTINCT - - ( - + col2 ) ) col1 FROM tab0
----
-10

query I rowsort
SELECT - - 13 * + col0 + - - 61 FROM tab2 AS cor0
----
1036
659
893

query II rowsort
SELECT DISTINCT 99 * - - col1, 46 AS col2 FROM tab1 AS cor0
----
1386
46
4653
46
495
46

query I rowsort
SELECT ALL ( - 1 ) FROM tab2
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT - ( - + COUNT( ALL + col1 ) ) * + 80 col1 FROM tab2 cor0
----
240

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 0 * - + col1 AS col1 FROM tab0 AS cor0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-7196
SELECT + + CAST ( NULL AS INTEGER ) * 92 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT COUNT( * ) * + 40 * - ( - SUM( col2 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
26760

skipif mysql # not compatible
query I rowsort label-7197
SELECT COUNT ( * ) * + 40 * - ( - SUM ( col2 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
26760

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

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT - 91 / - - col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7199
SELECT ALL + 72 col2, - 70 DIV - col1 col2 FROM tab0 cor0
----
72
0
72
3
72
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7199
SELECT ALL + 72 col2, - 70 / - col1 col2 FROM tab0 cor0
----
72
0
72
3
72
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT + SUM( + - 29 ) AS col1 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + SUM ( + - 29 ) AS col1 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - MAX( 83 ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-7201
SELECT - MAX ( 83 ) FROM tab0
----
-83

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - col1
----

query I rowsort
SELECT 25 + - col0 AS col1 FROM tab0
----
-62
-72
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + - col0 + - - col1 col1 FROM tab1
----
-102
-138
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + col0 col2 FROM tab1
----
127
133
93

query I rowsort
SELECT ALL col1 + + col2 FROM tab0 cor0 WHERE ( col2 * + - 80 * + 27 ) = NULL
----

query I rowsort
SELECT ALL + - col2 + - + 15 * - col0 FROM tab0 AS cor0
----
1295
1356
178

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT + SUM( ALL col0 ) + - ( + 48 ) * - + COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
329

skipif mysql # not compatible
query I rowsort label-7211
SELECT + SUM ( ALL col0 ) + - ( + 48 ) * - + COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
329

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

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

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

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

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

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

query I rowsort
SELECT - + col2 - + + 71 AS col1 FROM tab0 AS cor0
----
-118
-170
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > ( + + col2 / - col0 + - + col1 * 92 * col1 ) OR NOT NULL <= NULL
----

query I rowsort
SELECT ALL + 86 + col2 AS col2 FROM tab2 cor0
----
109
126
144

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7218
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col1 IN ( + col0, col2, col0 * - - CAST( + + col2 AS DECIMAL ) )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-7218
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col1 IN ( + col0, col2, col0 * - - CAST ( + + col2 AS REAL ) )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT + col2 DIV col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7219
SELECT + col2 / col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, 80 col1 FROM tab2
----
-23
80
-40
80
-58
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL MIN( 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL MIN ( 84 ) FROM tab1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7222
SELECT ( COUNT( * ) ), + 34 DIV MAX( ALL + - 11 ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-7222
SELECT ( COUNT ( * ) ), + 34 / MAX ( ALL + - 11 ) AS col1 FROM tab1
----
3
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7223
SELECT - MAX ( ALL + col0 ) col1 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 9 col0 FROM tab0
----
423
891
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + - MIN( ALL - - 57 ) FROM tab2 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7226
SELECT + - MIN ( ALL - - 57 ) FROM tab2 cor0
----
-57

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 98 = - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - 92 * + col0 + col2 FROM tab0 AS cor0
----
-1333
-7994
-8825

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + 26 + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7231
SELECT + 26 + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
35

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

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

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

query I rowsort
SELECT - col1 * - + col1 + col1 AS col0 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT + + col2 * - + 26 + - col2 + col2 FROM tab0 AS cor0
----
-1222
-2574
-260

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 * - 13 IS NULL )
----

query II rowsort
SELECT + 21 AS col1, col0 FROM tab1
----
21
51
21
85
21
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT ALL 22 DIV ( - 53 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL 22 / ( - 53 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT + - 56 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-56
-56
-56

query I rowsort
SELECT 91 + + col2 * + + 23 + + col0 + + col0 + - - col2 FROM tab0
----
1249
2661
505

query I rowsort
SELECT DISTINCT + col2 * + col2 * - col2 FROM tab0
----
-1000
-103823
-970299

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT + 22 DIV + col0 * col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7243
SELECT + 22 / + col0 * col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + 53 ) AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL - + col0 * + + 84 FROM tab0 AS cor0
----
-1260
-7308
-8148

query I rowsort
SELECT DISTINCT + col1 * col1 - + col2 FROM tab0 AS cor0
----
-98
431
6514

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 25 NOT BETWEEN NULL AND + + col1 * + 88 + - + 18
----

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

query I rowsort
SELECT DISTINCT - - 84 AS col2 FROM tab1 AS cor0
----
84

query I rowsort
SELECT 23 * - col2 + - - 78 FROM tab2 AS cor0
----
-1256
-451
-842

query I rowsort
SELECT + 6 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT - - col0 + - col2 AS col0, 82 AS col1 FROM tab0 AS cor0
----
-2
82
-32
82
77
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT - 95 + ( + COUNT( * ) ) + 53 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT - 95 + ( + COUNT ( * ) ) + 53 FROM tab2 AS cor0
----
-39

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

query I rowsort
SELECT 68 + - col0 * col0 * - + col2 FROM tab2
----
163908
326318
48736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 59 - - ( - - 72 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 59 - - ( - - 72 ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - + col1 col1, - 99 FROM tab1
----
-1344
-99
-295
-99
-3196
-99

query II rowsort
SELECT col1 + + - col0 + col1 * + + col2 * + col0 + + 69 * - col0, 55 AS col2 FROM tab0
----
12201
55
2814
55
56136
55

query I rowsort
SELECT DISTINCT col2 * + - 58 FROM tab0
----
-2726
-5742
-580

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

skipif mysql # not compatible
query II rowsort label-7261
SELECT ALL + col1 / ( + col0 ) AS col0, ( col2 ) FROM tab2
----
0
58
1
23
1
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - + 31 <= NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7264
SELECT 9 AS col2, COUNT( * ) FROM tab1
----
9
3

skipif mysql # not compatible
query II rowsort label-7264
SELECT 9 AS col2, COUNT ( * ) FROM tab1
----
9
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7267
SELECT + SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7268
SELECT ALL + 41 FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( + + ( - - col2 ) ) + + + col2 + col2 + ( + - ( + CAST( NULL AS SIGNED ) ) ) * 48, 6 )
----

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL + 41 FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( + + ( - - col2 ) ) + + + col2 + col2 + ( + - ( + CAST ( NULL AS INTEGER ) ) ) * 48, 6 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7269
SELECT COUNT( * ) DIV - 6 * + 41 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7269
SELECT COUNT ( * ) / - 6 * + 41 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT SUM( ALL - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7271
SELECT SUM ( ALL - col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT ALL 80 AS col2 FROM tab0 WHERE 8 * 58 * - 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT SUM( - col0 ) AS col1, COUNT( * ) AS col1 FROM tab0
----
-199
3

skipif mysql # not compatible
query II rowsort label-7273
SELECT SUM ( - col0 ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
-199
3

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

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

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

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

query I rowsort
SELECT col0 * - + 1 AS col1 FROM tab1
----
-51
-85
-91

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

query I rowsort
SELECT + 95 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT + col1 + - 18 FROM tab2
----
33
49
59

query I rowsort
SELECT DISTINCT + - col1 * - ( + 21 ) + + col1 + - - col1 FROM tab2 AS cor0
----
1173
1541
1771

query I rowsort
SELECT ALL 73 + + col0 + - + 10 AS col2 FROM tab1 cor0
----
114
148
154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL + MAX( + - col0 ) * - COUNT( * ) + - 1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL + MAX ( + - col0 ) * - COUNT ( * ) + - 1 FROM tab0 AS cor0
----
44

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 92 col2 FROM tab1 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT + 59 + + + 17 DIV - col2 AS col1 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-7287
SELECT + 59 + + + 17 / - col2 AS col1 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL COUNT( * ) + - 89 AS col2 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL COUNT ( * ) + - 89 AS col2 FROM tab2 AS cor0
----
-86

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

query I rowsort
SELECT + col1 * - 49 FROM tab2
----
-2499
-3283
-3773

query I rowsort
SELECT DISTINCT - 81 FROM tab2 WHERE NOT - - col1 * col2 IS NULL
----
-81

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

query I rowsort
SELECT DISTINCT + 3 * - + 56 + + 5 AS col0 FROM tab1 AS cor0
----
-163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7294
SELECT + 38 - 1 DIV COUNT( * ) DIV MIN( ALL - col1 ) col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7294
SELECT + 38 - 1 / COUNT ( * ) / MIN ( ALL - col1 ) col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL - col2 + + - col1 * + - 0 * 56 - - 42 AS col1 FROM tab0 AS cor0
----
-5
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE 3 BETWEEN NULL AND - 72 + col1
----

skipif mysql # not compatible
query I rowsort label-7296
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE 3 BETWEEN NULL AND - 72 + col1
----

query I rowsort
SELECT - col1 + + col2 + + col0 FROM tab0 AS cor0
----
-19
195
76

query I rowsort
SELECT DISTINCT + col2 * - - col2 + col1 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL - 41 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-369

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - 41 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-369

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - + 32 * + - 77 + - + col2 / - col1 * + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT COUNT( * ) + + 86 AS col0 FROM tab1 WHERE NOT - + ( - col0 ) * - col2 BETWEEN - col1 AND 63
----
89

skipif mysql # not compatible
query I rowsort label-7301
SELECT COUNT ( * ) + + 86 AS col0 FROM tab1 WHERE NOT - + ( - col0 ) * - col2 BETWEEN - col1 AND 63
----
89

query II rowsort
SELECT DISTINCT + 82, + col2 + + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 53 <= - ( - col2 )
----
82
-28
82
-37

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT COUNT( ALL 38 ) AS col2, 35 FROM tab0 AS cor0
----
3
35

skipif mysql # not compatible
query II rowsort label-7304
SELECT COUNT ( ALL 38 ) AS col2, 35 FROM tab0 AS cor0
----
3
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT - + 50 DIV - - col0 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT - + 50 / - - col0 AS col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL - MIN( 91 ) * - - 12 col0 FROM tab2 AS cor0
----
-1092

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7306
SELECT ALL - MIN ( 91 ) * - - 12 col0 FROM tab2 AS cor0
----
-1092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( col2 ) ) * + 90 col2 FROM tab1 AS cor0
----
5310
6120
8640

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

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

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

query II rowsort
SELECT DISTINCT + 51, 43 AS col0 FROM tab0
----
51
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col0 + col2 AS col0 FROM tab0
----
15
32
87
-77
97
2

query I rowsort
SELECT ALL 15 + + - col1 AS col0 FROM tab2 AS cor0
----
-36
-52
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-7313
SELECT DISTINCT col2 DIV col1 AS col0, - 53 - - col1 AS col2 FROM tab0
----
0
-32
0
28
99
-52

skipif mysql # not compatible
query II rowsort label-7313
SELECT DISTINCT col2 / col1 AS col0, - 53 - - col1 AS col2 FROM tab0
----
0
-32
0
28
99
-52

query I rowsort
SELECT - 46 AS col0 FROM tab2 WHERE col0 * - - 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL + + MAX( col1 ) FROM tab0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL + + MAX ( col1 ) FROM tab0 WHERE NULL IS NULL
----
81

query I rowsort
SELECT DISTINCT - col2 * + col2 + 86 AS col2 FROM tab0 AS cor0
----
-14
-2123
-9715

query II rowsort
SELECT ALL + col2 + - col1, - 85 AS col0 FROM tab2 AS cor0
----
-28
-85
-37
-85
-9
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 9 + - col1 col1 FROM tab1 AS cor0
----
-38
-5
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab1 cor0
----
98
98
98

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

query I rowsort
SELECT ALL - + ( + + col0 ) + - 89 - 21 * 23 * - - 45 AS col1 FROM tab1 cor0
----
-21875
-21909
-21915

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT DISTINCT + - col2 DIV col1 - col2 + + - col0 DIV 21 FROM tab0 AS cor0
----
-14
-202
-47

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT + - col2 / col1 - col2 + + - col0 / 21 FROM tab0 AS cor0
----
-14
-202
-47

query I rowsort
SELECT ALL - col0 - - col0 + + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NOT ( NOT 89 / col0 BETWEEN - - col1 - col1 AND ( + + 84 + col0 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NOT ( NOT 89 / col0 BETWEEN - - col1 - col1 AND ( + + 84 + col0 ) ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT DISTINCT 68 DIV col1 - col1 AS col1 FROM tab1
----
-10
-46
8

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT 68 / col1 - col1 AS col1 FROM tab1
----
-10
-46
8

query III rowsort
SELECT * FROM tab1 WHERE col2 - 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT MIN( DISTINCT - + col1 ) + - 92 FROM tab0
----
-173

skipif mysql # not compatible
query I rowsort label-7327
SELECT MIN ( DISTINCT - + col1 ) + - 92 FROM tab0
----
-173

query I rowsort
SELECT ALL + col2 + 40 * + 19 * + 93 + - col1 FROM tab1
----
70701
70734
70762

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + 34 * COUNT( * ) + + 17 + 68 FROM tab1
----
187

skipif mysql # not compatible
query I rowsort label-7329
SELECT + 34 * COUNT ( * ) + + 17 + 68 FROM tab1
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT COUNT( * ) DIV 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT COUNT ( * ) / 89 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT - col2 + + 99 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 95 / + + 24 <= - - 65
----

skipif mysql # not compatible
query I rowsort label-7331
SELECT - col2 + + 99 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 95 / + + 24 <= - - 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7332
SELECT + + col2, + ( + + 98 ) * - - ( + + col1 ) * - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-7332
SELECT + + col2, + ( + + 98 ) * - - ( + + col1 ) * - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - CAST ( + 19 AS INTEGER ) FROM tab2
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 98 + - col1 * - 99
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT - - col2 DIV + 44 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7338
SELECT - - col2 / + 44 AS col1 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT ALL + col0 DIV - - col1 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL + col0 / - - col1 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7340
SELECT + + COUNT( * ) DIV - 82 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT + + COUNT ( * ) / - 82 AS col0 FROM tab0 AS cor0
----
0

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + col2 <= - col1
----

query I rowsort
SELECT 31 * - 50 FROM tab2
----
-1550
-1550
-1550

query II rowsort
SELECT - ( - - 70 ), 44 AS col1 FROM tab0
----
-70
44
-70
44
-70
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT ALL - col0 DIV - + col1 + col2 * + col1 + col2 FROM tab1 AS cor0
----
1443
3265
371

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - col0 / - + col1 + col2 * + col1 + col2 FROM tab1 AS cor0
----
1443
3265
371

query I rowsort
SELECT col1 * + 38 AS col1 FROM tab0 AS cor0
----
3078
38
798

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

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

query II rowsort
SELECT ALL col2 + col1, col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

query I rowsort
SELECT + 63 FROM tab0 WHERE ( NOT NULL = NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + + col2 col0 FROM tab1 cor0
----
107
135
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL - + COUNT( * ) - + MAX( 52 ) AS col0 FROM tab2 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - + COUNT ( * ) - + MAX ( 52 ) AS col0 FROM tab2 cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT - 79 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - 79 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-76

query II rowsort
SELECT ALL - - 40 + - + ( col0 ) AS col2, - 94 FROM tab1 cor0
----
-11
-94
-45
-94
-51
-94

query I rowsort
SELECT - - 15 * - + ( 52 ) FROM tab0 AS cor0
----
-780
-780
-780

query I rowsort
SELECT ALL + col0 - - + col2 + + col1 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT - 96 * + SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-11616

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - 96 * + SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-11616

query I rowsort
SELECT - 8 * 90 AS col0 FROM tab0 AS cor0
----
-720
-720
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT - 56 - - COUNT( * ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - 56 - - COUNT ( * ) FROM tab0 AS cor0
----
-53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL SUM( ALL col0 ) col2 FROM tab1
----
227

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7363
SELECT 80 DIV - col2 + + 91 DIV 36, col2 FROM tab0 AS cor0
----
-6
10
1
47
2
99

skipif mysql # not compatible
query II rowsort label-7363
SELECT 80 / - col2 + + 91 / 36, col2 FROM tab0 AS cor0
----
-6
10
1
47
2
99

query I rowsort
SELECT + ( - col1 ) * + col2 AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col1 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + 60 FROM tab2 WHERE NOT - + 80 + - col0 - - col2 < + 53
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7368
SELECT DISTINCT - - col2 * + col1 FROM tab2 AS cor0 WHERE NOT + 72 + ( - + col1 ) BETWEEN + col2 * + - col1 + + 67 AND - CAST( + - col2 AS DECIMAL ) / + - col1
----
1173
3886

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT - - col2 * + col1 FROM tab2 AS cor0 WHERE NOT + 72 + ( - + col1 ) BETWEEN + col2 * + - col1 + + 67 AND - CAST ( + - col2 AS REAL ) / + - col1
----
1173
3886

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

skipif mysql # not compatible
query I rowsort label-7369
SELECT + - COUNT ( * ) * 84 AS col1 FROM tab1 cor0
----
-252

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT + col0 DIV - 38 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT + col0 / - 38 FROM tab0
----
-2
-2
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7373
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + ( + col0 ) col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71 col0, 86 FROM tab0
----
71
86

query I rowsort
SELECT DISTINCT 72 + col0 AS col1 FROM tab2
----
118
136
147

query I rowsort
SELECT ALL + 20 * + col1 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT col2 + + col0 + - col0 + + 32 * - + col0 AS col2 FROM tab1
----
-1536
-2661
-2844

query I rowsort
SELECT col0 * + col2 + - 26 FROM tab2 AS cor0
----
1032
2534
4324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 13 + + - col2 col0 FROM tab2 AS cor0
----
30
36
37

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col2 AS col0 FROM tab1 cor0
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT ALL ( - 79 ) - + CAST( - 42 AS SIGNED ) AS col0 FROM tab0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL ( - 79 ) - + CAST ( - 42 AS INTEGER ) AS col0 FROM tab0
----
-37
-37
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7382
SELECT DISTINCT - 4 * - 24 * + 0 DIV + 50 * - MAX( ALL 68 ) * - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - 4 * - 24 * + 0 / + 50 * - MAX ( ALL 68 ) * - COUNT ( * ) FROM tab2
----
0

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

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

query I rowsort
SELECT DISTINCT col1 * + 29 * col0 FROM tab1
----
12325
124033
20706

onlyif mysql # DIV for integer division: 
query II rowsort label-7385
SELECT - col1 DIV - 75 AS col1, - 46 FROM tab2
----
0
-46
0
-46
1
-46

skipif mysql # not compatible
query II rowsort label-7385
SELECT - col1 / - 75 AS col1, - 46 FROM tab2
----
0
-46
0
-46
1
-46

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT IN ( - 56, - col2 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT DISTINCT + 31 DIV col2 * col0 - col2 col1 FROM tab2 AS cor0
----
-40
-58
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7388
SELECT DISTINCT + 31 / col2 * col0 - col2 col1 FROM tab2 AS cor0
----
-40
-58
23

query I rowsort
SELECT ALL - col2 - + col2 - - 43 * + - col0 AS col2 FROM tab1 cor0
----
-2385
-3773
-4049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - + - col1 col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + col0 + + - col2 * col0 AS col2 FROM tab1
----
-4845
-4930
-6097

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 + + - 21 >= + 70 * - + 89 + - col2 + - ( - - ( - + 94 ) ) / - col2
----

query II rowsort
SELECT col0, + col1 * 67 * - col0 AS col0 FROM tab2
----
46
-157182
64
-330176
75
-336675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col2 FROM tab1 WHERE NOT - + col0 + ( + 64 ) + - col0 / col1 IS NULL
----
75
75
75

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 77 + + - 7 * 1 AND NULL
----

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

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab2 cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 6 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 7 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT + MAX( col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT + MAX ( col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT + 55 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
55
55
55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT ALL + col1 DIV col2 + - col2 - + 31 FROM tab2 AS cor0
----
-52
-70
-88

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + col1 / col2 + - col2 - + 31 FROM tab2 AS cor0
----
-52
-70
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT - + COUNT( - + 32 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7405
SELECT - + COUNT ( - + 32 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + 72 + col2 AS col0, col1 AS col0 FROM tab1 cor0
----
131
5
140
47
168
14

query I rowsort
SELECT - col1 + + 72 AS col2 FROM tab2 AS cor0
----
-5
21
5

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

skipif mysql # not compatible
query I rowsort label-7408
SELECT + 17 + CAST ( NULL AS INTEGER ) * + 12 / - + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + col1 + col2 + + + 36 AS col0 FROM tab1
----
159
219
242

query I rowsort
SELECT ALL - col2 * + + col1 AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT DISTINCT + - col2 AS col0 FROM tab1 WHERE + CAST( - col1 AS SIGNED ) + - 72 + - + col1 * + 47 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + - col2 AS col0 FROM tab1 WHERE + CAST ( - col1 AS INTEGER ) + - 72 + - + col1 * + 47 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + 48 * + col2 AS col2 FROM tab1
----
2832
3264
4608

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT - SUM( DISTINCT - + 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT - SUM ( DISTINCT - + 90 ) FROM tab0
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-7415
SELECT DISTINCT 60 DIV col0 * + - 16 + col0 - - + col2 AS col1, col0 FROM tab2
----
104
64
133
75
53
46

skipif mysql # not compatible
query II rowsort label-7415
SELECT DISTINCT 60 / col0 * + - 16 + col0 - - + col2 AS col1, col0 FROM tab2
----
104
64
133
75
53
46

query III rowsort
SELECT * FROM tab2 WHERE + 53 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT + COUNT( * ) - + + 75 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7418
SELECT + COUNT ( * ) - + + 75 FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - COUNT( * ) * - MAX( DISTINCT + + 32 ) * - COUNT( col1 ) + + 69 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7419
SELECT - COUNT ( * ) * - MAX ( DISTINCT + + 32 ) * - COUNT ( col1 ) + + 69 FROM tab0 AS cor0
----
-219

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN - col2 + - - 82 + + + col0 * - col2 AND - 45
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL COUNT( * ) * + 37 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL COUNT ( * ) * + 37 FROM tab1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT ALL - col1 DIV + - 71 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - col1 / + - 71 FROM tab1
----
0
0
0

query I rowsort
SELECT 80 * 16 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1280
1280
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL 54 + COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL 54 + COUNT ( * ) FROM tab1 AS cor0
----
57

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 53 * - col0 AS col1, - col1 + - + 36 FROM tab2
----
2438
-87
3392
-113
3975
-103

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

skipif mysql # not compatible
query I rowsort label-7430
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT DISTINCT - 52 * SUM( col1 ) col2 FROM tab0
----
-5356

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7431
SELECT DISTINCT - 52 * SUM ( col1 ) col2 FROM tab0
----
-5356

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + MAX( + - col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7432
SELECT + MAX ( + - col2 ) col2 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7433
SELECT - - 70 * CAST( - 15 AS SIGNED ) DIV - 71 FROM tab1 cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7433
SELECT - - 70 * CAST ( - 15 AS INTEGER ) / - 71 FROM tab1 cor0
----
14
14
14

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7436
SELECT ALL + + COUNT( * ) DIV ( + + 74 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + + COUNT ( * ) / ( + + 74 ) FROM tab0 AS cor0
----
0

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

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

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

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

query II rowsort
SELECT - col0 AS col1, - col0 * + 45 - + col2 + + 88 FROM tab1
----
-51
-2303
-85
-3796
-91
-4075

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + col0 ) col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT ( col1 ) + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7443
SELECT col0, + CAST( + col1 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

skipif mysql # not compatible
query II rowsort label-7443
SELECT col0, + CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

query II rowsort
SELECT DISTINCT col2 AS col0, 76 * 49 AS col0 FROM tab1 AS cor0
----
59
3724
68
3724
96
3724

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL + 87 * - - COUNT( * ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL + 87 * - - COUNT ( * ) FROM tab1
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT DISTINCT col1 * - - col2 * + 53 * - + CAST( + ( + - 6 ) AS SIGNED ) FROM tab0
----
1210626
31482
66780

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT col1 * - - col2 * + 53 * - + CAST ( + ( + - 6 ) AS INTEGER ) FROM tab0
----
1210626
31482
66780

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

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

query I rowsort
SELECT DISTINCT - 77 FROM tab2 WHERE NOT - - col0 NOT BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT - + col2 / + col0 * + col2 FROM tab0 WHERE - col1 * col0 + - col1 IS NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7453
SELECT CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) + + 24 AS col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL - COUNT( * ) + - 44 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL - COUNT ( * ) + - 44 FROM tab0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 61 col1, - 26 * col1 col0 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT - ( - - MAX( - 89 ) ) * - - 71 + ( - + 3 ) + + COUNT( ALL + col1 ) * + 3 FROM tab0
----
6325

skipif mysql # not compatible
query I rowsort label-7456
SELECT - ( - - MAX ( - 89 ) ) * - - 71 + ( - + 3 ) + + COUNT ( ALL + col1 ) * + 3 FROM tab0
----
6325

onlyif mysql # DIV for integer division: 
query I rowsort label-7457
SELECT - col2 DIV + - col2 + col2 - col1 AS col0 FROM tab0 AS cor0
----
-10
-33
99

skipif mysql # not compatible
query I rowsort label-7457
SELECT - col2 / + - col2 + col2 - col1 AS col0 FROM tab0 AS cor0
----
-10
-33
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 53 = NULL
----

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

query II rowsort
SELECT - col0 AS col0, - 92 FROM tab2 AS cor0 WHERE + col2 <> + 27
----
-46
-92
-64
-92
-75
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT MAX( DISTINCT + - 90 ) AS col0 FROM tab0, tab2 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7461
SELECT MAX ( DISTINCT + - 90 ) AS col0 FROM tab0, tab2 cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query II rowsort
SELECT + col0 * + - col0 AS col1, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL - SUM( ALL - col0 ) * + COUNT( col0 ) AS col0 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - SUM ( ALL - col0 ) * + COUNT ( col0 ) AS col0 FROM tab2 AS cor0
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL COUNT( * ) * + 62 col2 FROM tab2 cor0
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7465
SELECT ALL COUNT ( * ) * + 62 col2 FROM tab2 cor0
----
186

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT ALL + - 74 DIV - 74 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + - 74 / - 74 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT + ( - + 66 ) AS col2 FROM tab0
----
-66
-66
-66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT DISTINCT - COUNT( * ), + 6 AS col2 FROM tab1
----
-3
6

skipif mysql # not compatible
query II rowsort label-7472
SELECT DISTINCT - COUNT ( * ), + 6 AS col2 FROM tab1
----
-3
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT + ( + + COUNT( * ) ) col0 FROM tab0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-7475
SELECT - SUM ( DISTINCT - 1 ) AS col0 FROM tab1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT + - 39 * - COUNT( * ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7477
SELECT + - 39 * - COUNT ( * ) FROM tab2 AS cor0
----
117

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

query II rowsort
SELECT DISTINCT col2 AS col0, 32 AS col2 FROM tab1 AS cor0
----
59
32
68
32
96
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL col1 + col1 AS col2, - 48 AS col1 FROM tab2 AS cor0
----
102
-48
134
-48
154
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT DISTINCT + 49 DIV - 10 + - + col1 FROM tab2 AS cor0
----
-55
-71
-81

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT + 49 / - 10 + - + col1 FROM tab2 AS cor0
----
-55
-71
-81

query I rowsort
SELECT ALL - + col2 * - col0 * + col1 + ( + + 8 ) + + - col1 AS col0 FROM tab2 cor0
----
197051
291391
53915

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7486
SELECT - 34 + CAST( + 62 AS SIGNED ) AS col2, col2 FROM tab0 AS cor0
----
28
10
28
47
28
99

skipif mysql # not compatible
query II rowsort label-7486
SELECT - 34 + CAST ( + 62 AS INTEGER ) AS col2, col2 FROM tab0 AS cor0
----
28
10
28
47
28
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT CAST( + col2 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-7487
SELECT CAST ( + col2 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT - 71 + + col1 FROM tab0 AS cor0
----
-50
-70
10

query II rowsort
SELECT - 75 AS col2, + ( - + col0 ) AS col2 FROM tab0
----
-75
-15
-75
-87
-75
-97

query I rowsort
SELECT ALL ( + + col0 ) AS col2 FROM tab0
----
15
87
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 80 - col1 col0 FROM tab1 AS cor0
----
33
66
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7493
SELECT - col1 * col1 + - 51 + + col1 * 6 + - col1 DIV + + col1 AS col0 FROM tab0 cor0
----
-367
-47
-6127

skipif mysql # not compatible
query I rowsort label-7493
SELECT - col1 * col1 + - 51 + + col1 * 6 + - col1 / + + col1 AS col0 FROM tab0 cor0
----
-367
-47
-6127

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( 11 ) * col1 AND 4
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7495
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT - 75 * 94 FROM tab2
----
-7050
-7050
-7050

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7497
SELECT + 65 + + col0 DIV CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
66
66
66

skipif mysql # not compatible
query I rowsort label-7497
SELECT + 65 + + col0 / CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
66
66
66

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

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

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL MAX ( DISTINCT ( + col2 ) ) FROM tab0
----
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT col2 + 16 DIV - col1 FROM tab0
----
10
47
83

skipif mysql # not compatible
query I rowsort label-7501
SELECT col2 + 16 / - col1 FROM tab0
----
10
47
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT ALL col0 + + col1 * + 79 AS col1 FROM tab2
----
4075
5368
6147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7504
SELECT ALL * FROM tab0 WHERE ( CAST( - col0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7504
SELECT ALL * FROM tab0 WHERE ( CAST ( - col0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL + 19 - + COUNT( ALL col0 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL + 19 - + COUNT ( ALL col0 ) FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT MAX( 16 ) AS col1 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-7506
SELECT MAX ( 16 ) AS col1 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT + COUNT( * ) + 28 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-7507
SELECT + COUNT ( * ) + 28 FROM tab1
----
31

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT 52 / col2 NOT BETWEEN col0 AND ( + col0 * + col0 )
----

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

query I rowsort
SELECT ALL + col0 * 38 AS col1 FROM tab1 WHERE NOT ( 75 * col0 ) IS NOT NULL
----

query I rowsort
SELECT ( - col1 ) FROM tab0 WHERE NOT col0 <> + col2 / col2
----

query I rowsort
SELECT 63 / - AVG ( 67 ) FROM tab1 WHERE ( - 14 ) > - 62 * - col2
----
NULL

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

query I rowsort
SELECT ALL ( - 84 ) FROM tab2
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + 74 * + 11 FROM tab2 AS cor0
----
814

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT ALL + CAST( - col1 AS SIGNED ) * + col2 + + CAST( col0 AS SIGNED ) col1 FROM tab0
----
-123
-2
-3792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7517
SELECT ALL + CAST ( - col1 AS INTEGER ) * + col2 + + CAST ( col0 AS INTEGER ) col1 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT ALL - col0 + 74 AS col1 FROM tab1 AS cor0
----
-11
-17
23

query I rowsort
SELECT DISTINCT - - col1 + 31 FROM tab2 AS cor0
----
108
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT + COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT col0 col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7522
SELECT col0 col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
46
64
75

query I rowsort
SELECT - + 28 - col1 FROM tab0 AS cor0
----
-109
-29
-49

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

query I rowsort
SELECT DISTINCT col0 * 36 + col0 * col2 FROM tab1 AS cor0
----
6732
8075
9464

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 19 * col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7528
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) + - col2 NOT BETWEEN + col2 AND ( - 81 - 53 )
----

skipif mysql # not compatible
query III rowsort label-7528
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) + - col2 NOT BETWEEN + col2 AND ( - 81 - 53 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7529
SELECT - 54 + COUNT( ALL - ( - 4 ) ) DIV - SUM( DISTINCT col2 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-7529
SELECT - 54 + COUNT ( ALL - ( - 4 ) ) / - SUM ( DISTINCT col2 ) FROM tab1
----
-54

query I rowsort
SELECT DISTINCT - col2 + - 9 AS col2 FROM tab2 WHERE NOT col2 + col1 >= NULL
----

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

query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL ) <> ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 15 + - col0 col1 FROM tab1
----
-1111
-1491
-970

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT + col2 + - col2 + - col1 DIV - 36 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7534
SELECT + col2 + - col2 + - col1 / - 36 FROM tab0
----
0
0
2

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

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( - col2 )
----

query I rowsort
SELECT col0 + 14 - col0 AS col2 FROM tab1
----
14
14
14

query I rowsort
SELECT - 88 + + 19 * 53 AS col0 FROM tab1
----
919
919
919

query I rowsort
SELECT col2 + + 57 FROM tab0
----
104
156
67

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE - 29 = NULL
----

skipif mysql # not compatible
query I rowsort label-7541
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - 29 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT MIN( ALL 80 ) + COUNT( + col0 + - 81 ) AS col0 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-7542
SELECT MIN ( ALL 80 ) + COUNT ( + col0 + - 81 ) AS col0 FROM tab1
----
83

query I rowsort
SELECT 92 * - + 31 * col1 + - col1 FROM tab1 AS cor0
----
-134091
-14265
-39942

query I rowsort
SELECT ALL + 98 + + ( - col1 ) FROM tab0 cor0
----
17
77
97

query I rowsort
SELECT DISTINCT ( - - 54 ) + + col1 * col1 FROM tab0 AS cor0
----
495
55
6615

query I rowsort
SELECT DISTINCT + 43 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
43

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - + 60 + - col1 ) AND col2 * - col1
----

query I rowsort
SELECT ALL - ( - - 55 ) FROM tab0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query II rowsort
SELECT DISTINCT 40 AS col1, - col0 - + + col1 FROM tab2
----
40
-141
40
-142
40
-97

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE ( 66 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 <= ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 93 * - + col0 AS col2 FROM tab2 AS cor0
----
4278
5952
6975

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 AND NULL
----

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + col1 IN ( - 88 )
----
23
40
58

query I rowsort
SELECT - 93 * - - 23 AS col2 FROM tab2 cor0
----
-2139
-2139
-2139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT COUNT( 42 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT COUNT ( 42 ) FROM tab2 cor0
----
3

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

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

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

skipif mysql # not compatible
query II rowsort label-7563
SELECT ALL - COUNT ( * ) AS col2, 66 * - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-201

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

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

query II rowsort
SELECT ( 27 ) AS col1, - 32 AS col2 FROM tab1
----
27
-32
27
-32
27
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT col2 * - col2 + CAST( + col0 AS SIGNED ) FROM tab2 WHERE NOT + + 47 <> ( 27 )
----

skipif mysql # not compatible
query I rowsort label-7567
SELECT col2 * - col2 + CAST ( + col0 AS INTEGER ) FROM tab2 WHERE NOT + + 47 <> ( 27 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + 88 col2, - 24 FROM tab0
----
1320
-24
7656
-24
8536
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT ALL col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( - 15 * 88 * 54 + + col2 ) = - 20 + col1 * 40
----

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( - 15 * 88 * 54 + + col2 ) = - 20 + col1 * 40
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7570
SELECT DISTINCT ( - + CAST( NULL AS DECIMAL ) ) AS col0, 22 AS col1 FROM tab1 AS cor0
----
NULL
22

skipif mysql # not compatible
query II rowsort label-7570
SELECT DISTINCT ( - + CAST ( NULL AS REAL ) ) AS col0, 22 AS col1 FROM tab1 AS cor0
----
NULL
22

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

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

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

query I rowsort
SELECT ALL 79 + - col0 - 92 * + col1 FROM tab1 cor0
----
-1260
-4336
-466

query I rowsort
SELECT DISTINCT 88 - - col1 FROM tab0 AS cor0
----
109
169
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 59 AS col0, + col0 * - 66 + - col0 col2 FROM tab2 AS cor0
----
-59
-3082
-59
-4288
-59
-5025

query I rowsort
SELECT DISTINCT - - col0 + - + col1 FROM tab0 AS cor0
----
-66
66
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL - 21 - + MIN( + 47 ) FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - 21 - + MIN ( + 47 ) FROM tab2 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT - MAX( - - 36 ) AS col1 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7579
SELECT - MAX ( - - 36 ) AS col1 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 * - + col1 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7582
SELECT DISTINCT 51 DIV col0 * + col2 * 99 AS col2, + col0 FROM tab2
----
0
64
0
75
2277
46

skipif mysql # not compatible
query II rowsort label-7582
SELECT DISTINCT 51 / col0 * + col2 * 99 AS col2, + col0 FROM tab2
----
0
64
0
75
2277
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + MAX( ALL + - col0 ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-51

skipif mysql # not compatible
query I rowsort label-7584
SELECT + MAX ( ALL + - col0 ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-51

query I rowsort
SELECT DISTINCT 97 * - col0 FROM tab1
----
-4947
-8245
-8827

query I rowsort
SELECT ALL 59 + + col2 AS col0 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT + + col0 DIV - 71 + - col2 col1 FROM tab0 AS cor0
----
-100
-11
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7587
SELECT + + col0 / - 71 + - col2 col1 FROM tab0 AS cor0
----
-100
-11
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= + - 99
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 9 * + - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT + ( - 6 ) * + COUNT( + ( + col0 ) ) * + 45 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2430

skipif mysql # not compatible
query I rowsort label-7592
SELECT + ( - 6 ) * + COUNT ( + ( + col0 ) ) * + 45 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2430

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

query II rowsort
SELECT ALL 53 AS col0, + 56 AS col0 FROM tab0
----
53
56
53
56
53
56

query II rowsort
SELECT 13, + 24 AS col0 FROM tab0
----
13
24
13
24
13
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT ALL - COUNT( + col0 ) AS col0, + COUNT( * ) FROM tab2 WHERE NOT + ( 4 ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7596
SELECT ALL - COUNT ( + col0 ) AS col0, + COUNT ( * ) FROM tab2 WHERE NOT + ( 4 ) IS NOT NULL
----
0
0

query II rowsort
SELECT ALL 61, col1 * col0 AS col2 FROM tab1
----
61
425
61
4277
61
714

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

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

query I rowsort
SELECT ALL + col2 + - 40 FROM tab0
----
-30
59
7

query I rowsort
SELECT DISTINCT + 48 + - 82 AS col0 FROM tab2
----
-34

query I rowsort
SELECT + 81 * + col1 * - + 67 + - 34 FROM tab0 AS cor0
----
-114001
-439621
-5461

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

skipif mysql # not compatible
query II rowsort label-7602
SELECT ALL + 59, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
59
3

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

query I rowsort
SELECT DISTINCT + - 85 + col1 + - - col2 AS col0 FROM tab2 AS cor0
----
-11
32
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL + MAX( DISTINCT 51 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL + MAX ( DISTINCT 51 ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL - col1 * + col0 * - col2 - - - 66 FROM tab2 AS cor0
----
197054
291384
53892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL col1 + CAST( 97 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( - col0 + col0 ) IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT COUNT( * ) + + + 6 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT COUNT ( * ) + + + 6 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7611
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 97 ) <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7611
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 97 ) <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL - SUM( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - SUM ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----
NULL

query I rowsort
SELECT ALL - + 50 * + - col0 + + col1 * - col1 * - + 38 FROM tab1 cor0
----
5200
88492
9998

query I rowsort
SELECT DISTINCT col2 * + 56 AS col0 FROM tab0 cor0
----
2632
5544
560

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT ALL col1 DIV + - 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL col1 / + - 91 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 - + 60 col0 FROM tab1
----
-13

query I rowsort
SELECT ALL col1 * 65 FROM tab0
----
1365
5265
65

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 * - 83 <= ( - - 32 )
----

query I rowsort
SELECT col2 * + - col0 * + - col2 FROM tab2
----
102400
24334
252300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL + - 18 * 57 AS col1 FROM tab0 AS cor0
----
-1026
-1026
-1026

onlyif mysql # aggregate syntax: 
query II rowsort label-7623
SELECT MAX( ALL - 11 ), COUNT( * ) AS col0 FROM tab2
----
-11
3

skipif mysql # not compatible
query II rowsort label-7623
SELECT MAX ( ALL - 11 ), COUNT ( * ) AS col0 FROM tab2
----
-11
3

query I rowsort
SELECT col0 * + - 68 FROM tab1
----
-3468
-5780
-6188

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * col0 - + col1 + + 48 col2 FROM tab1 AS cor0
----
2635
7268
8282

query I rowsort
SELECT ( - 45 ) * col0 FROM tab1 AS cor0
----
-2295
-3825
-4095

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab1 cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT DISTINCT + - col0 DIV - ( - 53 ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT + - col0 / - ( - 53 ) FROM tab0 AS cor0
----
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7632
SELECT ALL - 62 AS col2, CAST( NULL AS SIGNED ) + + ( + col2 ) FROM tab2 AS cor0
----
-62
NULL
-62
NULL
-62
NULL

skipif mysql # not compatible
query II rowsort label-7632
SELECT ALL - 62 AS col2, CAST ( NULL AS INTEGER ) + + ( + col2 ) FROM tab2 AS cor0
----
-62
NULL
-62
NULL
-62
NULL

query I rowsort
SELECT + col0 + + col0 + - col0 FROM tab0 AS cor0
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - 42 + 39 - + SUM( ALL + ( 46 ) ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-7635
SELECT - 42 + 39 - + SUM ( ALL + ( 46 ) ) FROM tab1 AS cor0
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-7636
SELECT DISTINCT - col1 DIV - 67, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-7636
SELECT DISTINCT - col1 / - 67, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL COUNT( * ) FROM tab2 WHERE col1 * + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL COUNT ( * ) FROM tab2 WHERE col1 * + + col0 IS NULL
----
0

query I rowsort
SELECT ALL + 64 * + + 79 + - 64 AS col2 FROM tab0
----
4992
4992
4992

query I rowsort
SELECT ALL + col2 + - col0 - + 10 * col1 AS col2 FROM tab0 AS cor0
----
-287
-778
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> + col1
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7642
SELECT ALL - CAST( NULL AS DECIMAL ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - CAST ( NULL AS REAL ) + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 1 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7645
SELECT - + col2 FROM tab0 AS cor0 WHERE col1 + - - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-7645
SELECT - + col2 FROM tab0 AS cor0 WHERE col1 + - - CAST ( NULL AS REAL ) = NULL
----

query I rowsort
SELECT + col2 * + - 80 * col1 * - 47 * - 10 + col1 * - 18 + + col2 AS col2 FROM tab1 AS cor0
----
-11092031
-120170378
-50534556

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 24 + - col0 - 88 + - col2 / col2 + - col1 + + 47 + CAST( NULL AS SIGNED ) + + - ( + 70 ) + - col1 * + 19 * - col1 * 93 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 24 + - col0 - 88 + - col2 / col2 + - col1 + + 47 + CAST ( NULL AS INTEGER ) + + - ( + 70 ) + - col1 * + 19 * - col1 * 93 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL + MAX( DISTINCT + col1 ) + 95 AS col0 FROM tab2 AS cor0 WHERE ( + - CAST( - col0 AS SIGNED ) ) IS NOT NULL
----
172

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + MAX ( DISTINCT + col1 ) + 95 AS col0 FROM tab2 AS cor0 WHERE ( + - CAST ( - col0 AS INTEGER ) ) IS NOT NULL
----
172

query II rowsort
SELECT - col1 AS col2, col1 * + col2 * - col2 FROM tab0 cor0
----
-1
-9801
-21
-2100
-81
-178929

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

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

query I rowsort
SELECT DISTINCT col2 * + 91 FROM tab0
----
4277
9009
910

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

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

query I rowsort
SELECT + col0 * + 10 AS col0 FROM tab2
----
460
640
750

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * - + col2 * + col1 col0 FROM tab1 AS cor0
----
-102144
-22420
-242896

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 <> - col2
----

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

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

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) * - col1 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT ALL + + CAST( + 4 AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4
4
4

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7662
SELECT ALL - col2 AS col0, - 37 + 35 DIV + col2 AS col0 FROM tab1
----
-59
-37
-68
-37
-96
-37

skipif mysql # not compatible
query II rowsort label-7662
SELECT ALL - col2 AS col0, - 37 + 35 / + col2 AS col0 FROM tab1
----
-59
-37
-68
-37
-96
-37

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

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

query I rowsort
SELECT + 12 * - + col2 AS col2 FROM tab0 AS cor0
----
-1188
-120
-564

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT 31 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7667
SELECT 31 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT ALL + 22 + + 48 AS col0 FROM tab2 AS cor0
----
70
70
70

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

query I rowsort
SELECT col2 * - col0 - - 73 FROM tab2 AS cor0
----
-2487
-4277
-985

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL + COUNT( + + col0 ) * - - MAX( ALL - 92 ) AS col2 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + COUNT ( + + col0 ) * - - MAX ( ALL - 92 ) AS col2 FROM tab0
----
-276

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 6 * + col1 * 12 IS NOT NULL AND - 90 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - + col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT - col2 + ( 14 ) FROM tab0
----
-33
-85
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + col1 col1 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 WHERE + + col1 < + + 30 + + - 35 - - col2 * - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL 95 + COUNT( * ) AS col0 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL 95 + COUNT ( * ) AS col0 FROM tab2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT - col2 DIV - col1 + + col2 + - - 92 AS col0 FROM tab2 AS cor0
----
115
132
150

skipif mysql # not compatible
query I rowsort label-7679
SELECT - col2 / - col1 + + col2 + - - 92 AS col0 FROM tab2 AS cor0
----
115
132
150

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT ALL - - 74 + 8 FROM tab2 AS cor0 WHERE NOT - 87 NOT IN ( - CAST( NULL AS SIGNED ), + col0 + + col0 + - - col0 )
----

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL - - 74 + 8 FROM tab2 AS cor0 WHERE NOT - 87 NOT IN ( - CAST ( NULL AS INTEGER ), + col0 + + col0 + - - col0 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT + 2 DIV - - 16 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7683
SELECT + 2 / - - 16 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT - CAST( + + col1 AS SIGNED ) - + col1 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-7684
SELECT - CAST ( + + col1 AS INTEGER ) - + col1 FROM tab1
----
-10
-28
-94

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

skipif mysql # not compatible
query I rowsort label-7685
SELECT COUNT ( DISTINCT col1 ) / - COUNT ( * ) - + COUNT ( * ) FROM tab1
----
-4

query II rowsort
SELECT col0 - - - col2 AS col0, 54 AS col0 FROM tab0
----
-2
54
-32
54
77
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + 23
----

query I rowsort
SELECT 57 + col1 AS col2 FROM tab2 AS cor0
----
108
124
134

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

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

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

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

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

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

query I rowsort
SELECT + - 75 AS col0 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + + col0 AS col1 FROM tab0 WHERE NOT 57 >= + col2
----
97

query I rowsort
SELECT - 66 * - col1 FROM tab1
----
3102
330
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE + + 80 + - col1 > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE + + 80 + - col1 > + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * + 75 col0 FROM tab1
----
6450
6450
6450

query I rowsort
SELECT + 34 * + + 9 FROM tab2
----
306
306
306

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

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

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT ( + col2 - col1 ) <> NULL
----

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

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

query I rowsort
SELECT ALL 94 + + + col2 + - + 89 AS col0 FROM tab0 AS cor0
----
104
15
52

query I rowsort
SELECT ALL - 59 AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 AND - 85
----

query II rowsort
SELECT + col1 + col2 + ( + + col0 ) + col1 AS col0, 40 * - 27 - - col1 FROM tab2 AS cor0
----
171
-1029
258
-1003
267
-1013

query I rowsort
SELECT ALL col2 * 3 AS col2 FROM tab2
----
120
174
69

query I rowsort
SELECT DISTINCT + ( + ( col2 ) ) AS col0 FROM tab2
----
23
40
58

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

query III rowsort
SELECT * FROM tab2 WHERE - col0 = 29
----

query II rowsort
SELECT col0, ( - - ( 29 ) ) AS col1 FROM tab2
----
46
29
64
29
75
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL + + COUNT( * ) - - - 14 AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL + + COUNT ( * ) - - - 14 AS col0 FROM tab1 AS cor0
----
-11

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

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

query I rowsort
SELECT DISTINCT - + col0 - - 71 FROM tab0 AS cor0
----
-16
-26
56

query I rowsort
SELECT ALL 63 * - - col0 FROM tab0
----
5481
6111
945

query I rowsort
SELECT col0 * 61 AS col1 FROM tab0
----
5307
5917
915

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

query I rowsort
SELECT 97 * - 28 * + + col1 AS col0 FROM tab0
----
-219996
-2716
-57036

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7719
SELECT + - MAX( ALL CAST( + 75 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7719
SELECT + - MAX ( ALL CAST ( + 75 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT + MAX( ALL - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7723
SELECT + MAX ( ALL - col2 ) FROM tab0 cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 26 ) col1 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT COUNT( ALL 37 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7725
SELECT COUNT ( ALL 37 ) AS col0 FROM tab2
----
3

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

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

query II rowsort
SELECT DISTINCT - ( + - 34 ) AS col2, + col1 AS col0 FROM tab1
----
34
14
34
47
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT MIN( - 50 ) * COUNT( * ) AS col2 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT MIN ( - 50 ) * COUNT ( * ) AS col2 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT ALL - ( - 35 ) col1, + COUNT( * ) FROM tab2
----
35
3

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

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

query I rowsort
SELECT - 18 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-13
-4
29

query I rowsort
SELECT ALL - col0 + - col0 + 83 AS col1 FROM tab1
----
-19
-87
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL COUNT( * ) * + + MIN( DISTINCT - + 55 ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL COUNT ( * ) * + + MIN ( DISTINCT - + 55 ) FROM tab1
----
-165

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

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

query II rowsort
SELECT + 11, + 9 AS col0 FROM tab2
----
11
9
11
9
11
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT 70 * - COUNT( * ) AS col2 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-7737
SELECT 70 * - COUNT ( * ) AS col2 FROM tab1
----
-210

query I rowsort
SELECT ALL + - col2 + 71 FROM tab2 AS cor0
----
13
31
48

query I rowsort
SELECT ALL - col2 + + 80 FROM tab2 AS cor0
----
22
40
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - MAX( DISTINCT + ( - + ( + 53 ) ) ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7740
SELECT - MAX ( DISTINCT + ( - + ( + 53 ) ) ) FROM tab1 AS cor0
----
53

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + - 38 FROM tab1
----
-1786
-190
-532

query I rowsort
SELECT ALL ( col2 ) * - col0 AS col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + col1 + 18 + + col2 FROM tab0
----
118
146
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 + + col1 col1 FROM tab1
----
-182
-20
-2162

onlyif mysql # DIV for integer division: 
query II rowsort label-7748
SELECT ALL col0 DIV - 29 + - + col0 + col1 AS col1, col2 AS col1 FROM tab2
----
-10
58
11
40
4
23

skipif mysql # not compatible
query II rowsort label-7748
SELECT ALL col0 / - 29 + - + col0 + col1 AS col1, col2 AS col1 FROM tab2
----
-10
58
11
40
4
23

query I rowsort
SELECT + col0 + - 97 FROM tab0
----
-10
-82
0

query II rowsort
SELECT ALL col2 * 13, col0 * - + col0 AS col0 FROM tab1
----
1248
-2601
767
-7225
884
-8281

query I rowsort
SELECT - col2 * - - col0 FROM tab0 AS cor0 WHERE - col2 * - col1 IS NOT NULL
----
-705
-870
-9603

query II rowsort
SELECT + col1 AS col2, col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT 28 - 83 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT ALL - ( - 32 ) * - + 79 FROM tab1
----
-2528
-2528
-2528

query I rowsort
SELECT 77 * - col1 AS col2 FROM tab1
----
-1078
-3619
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL - COUNT( * ) col0 FROM tab1 AS cor0 WHERE col1 = - 42 + + + col0 * - col1 / + 8
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7756
SELECT ALL - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE col1 = - 42 + + + col0 * - col1 / + 8
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7757
SELECT DISTINCT + col0, - 56 * col2 DIV - col0 - - 81 col2 FROM tab0 cor0
----
15
256
87
87
97
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7757
SELECT DISTINCT + col0, - 56 * col2 / - col0 - - 81 col2 FROM tab0 cor0
----
15
256
87
87
97
138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT + MAX( ALL - 80 ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + MAX ( ALL - 80 ) AS col1 FROM tab1
----
-80

query II rowsort
SELECT ALL + col0, - 95 AS col2 FROM tab0
----
15
-95
87
-95
97
-95

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

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

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT COUNT ( 97 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT CAST( NULL AS SIGNED ) * + - 42 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT CAST ( NULL AS INTEGER ) * + - 42 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7764
SELECT ALL col2 DIV + 36 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL col2 / + 36 FROM tab1
----
1
1
2

query II rowsort
SELECT 20 AS col1, + 50 AS col0 FROM tab0 AS cor0
----
20
50
20
50
20
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 76 col0 FROM tab0 AS cor0 WHERE NOT - 18 <> NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7769
SELECT DISTINCT - COUNT( * ), - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-7769
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 81 * - col2 - + 96 = NULL
----

query I rowsort
SELECT + + col0 + 99 * - 68 FROM tab0 AS cor0
----
-6635
-6645
-6717

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - - 38 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT DISTINCT COUNT( * ) * + + SUM( ALL - col0 ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT COUNT ( * ) * + + SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-597

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) >= - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * + + col0 * + 0 * col0 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 54 + 98 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 21 + + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7784
SELECT * FROM tab1 WHERE - col0 + 18 + + - CAST( 61 AS SIGNED ) * + - col0 * col2 + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7784
SELECT * FROM tab1 WHERE - col0 + 18 + + - CAST ( 61 AS INTEGER ) * + - col0 * col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL 51 * MAX( DISTINCT 20 ) AS col1 FROM tab0
----
1020

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL 51 * MAX ( DISTINCT 20 ) AS col1 FROM tab0
----
1020

query II rowsort
SELECT DISTINCT col2, - 81 FROM tab0
----
10
-81
47
-81
99
-81

query I rowsort
SELECT col1 + + col1 + 70 * - 17 FROM tab1 AS cor0
----
-1096
-1162
-1180

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

query I rowsort
SELECT + 8 + 61 AS col0 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
117
125
74

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 BETWEEN - 64 - 68 * + col2 AND NULL
----

query I rowsort
SELECT + 28 AS col2 FROM tab1 cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL - 94 + - - 58 - COUNT( * ) + - 71 AS col2 FROM tab1 WHERE - col2 - + col1 IS NOT NULL
----
-110

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL - 94 + - - 58 - COUNT ( * ) + - 71 AS col2 FROM tab1 WHERE - col2 - + col1 IS NOT NULL
----
-110

query I rowsort
SELECT ALL + - col0 * + ( 10 ) FROM tab2 AS cor0 WHERE NOT col1 + col1 * + 30 > + - col0 + + - 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT DISTINCT + - 25 DIV - col2 AS col0 FROM tab0 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT + - 25 / - col2 AS col0 FROM tab0 cor0
----
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7797
SELECT DISTINCT + + 27 DIV - ( - 35 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT + + 27 / - ( - 35 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT ALL + - COUNT( - 13 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL + - COUNT ( - 13 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 6 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT ALL 70 * 40 * + col0 DIV - ( + ( 1 ) ) AS col2 FROM tab2
----
-128800
-179200
-210000

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL 70 * 40 * + col0 / - ( + ( 1 ) ) AS col2 FROM tab2
----
-128800
-179200
-210000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT DISTINCT - MIN( + + CAST( col2 AS SIGNED ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT - MIN ( + + CAST ( col2 AS INTEGER ) ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col2 IS NULL
----
-14
-47
-5

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

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT + col1 / - col2 AS col2 FROM tab1
----
0

query II rowsort
SELECT - 77, - 4 AS col1 FROM tab1
----
-77
-4
-77
-4
-77
-4

query I rowsort
SELECT ALL - 72 + col2 FROM tab1
----
-13
-4
24

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

skipif mysql # not compatible
query I rowsort label-7806
SELECT col0 / - 7 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 92 / col1 + - 13 * - 40 + + col2 FROM tab0 AS cor0 WHERE NOT - 22 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 / - 77 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT - 33 col0, COUNT( * ) * - 13 FROM tab1
----
-33
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7809
SELECT - 33 col0, COUNT ( * ) * - 13 FROM tab1
----
-33
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL + - 44 * - ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL + - 44 * - ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
396

query I rowsort
SELECT DISTINCT + col2 + + - col1 + - - 80 FROM tab2 AS cor0
----
43
52
71

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN + 85 AND col0
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT + - 49 - col0 DIV col0 - col1 AS col1 FROM tab2 AS cor0
----
-101
-117
-127

skipif mysql # not compatible
query I rowsort label-7814
SELECT + - 49 - col0 / col0 - col1 AS col1 FROM tab2 AS cor0
----
-101
-117
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + - MIN( - - col2 ) + - SUM( ALL + - 55 ) FROM tab1 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + - MIN ( - - col2 ) + - SUM ( ALL + - 55 ) FROM tab1 AS cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT - COUNT( - col1 ) + - MIN( DISTINCT + col1 ) FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - COUNT ( - col1 ) + - MIN ( DISTINCT + col1 ) FROM tab0 cor0
----
-4

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7818
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + CAST( NULL AS SIGNED ) < - 89
----

skipif mysql # not compatible
query III rowsort label-7818
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + CAST ( NULL AS INTEGER ) < - 89
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7819
SELECT ALL + col1 + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + col1 + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT col1 + 63 * ( - + col0 ) FROM tab1
----
-3199
-5350
-5686

query I rowsort
SELECT ALL - - 1 AS col1 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT + 95 * + col1 * - - 75 + + 34 AS col2 FROM tab0 AS cor0
----
149659
577159
7159

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

query I rowsort
SELECT ALL ( - + col2 ) * - col1 * - - 81 AS col1 FROM tab2
----
249480
314766
95013

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

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT 48 / + + COUNT ( * ) FROM tab1
----
16

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 44 * 86 FROM tab2 AS cor0
----
3784
3784
3784

query I rowsort
SELECT ALL + - col1 * col1 * col1 + + 75 FROM tab0 AS cor0
----
-531366
-9186
74

query I rowsort
SELECT - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 44 * col2 + - + 57 NOT IN ( col1, + col0 * + + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= CAST( NULL AS SIGNED ) + - 32
----

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= CAST ( NULL AS INTEGER ) + - 32
----

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

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

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

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

query I rowsort
SELECT ALL + + col0 * col2 * col0 + col1 + - col0 FROM tab1 AS cor0
----
249659
426195
563064

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

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

query I rowsort
SELECT DISTINCT + 32 * 79 FROM tab1
----
2528

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL - CAST( NULL AS SIGNED ) - - col2 FROM tab0 WHERE 23 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL - CAST ( NULL AS INTEGER ) - - col2 FROM tab0 WHERE 23 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT - - 90 * - COUNT( * ) * 38 FROM tab1 AS cor0
----
-10260

skipif mysql # not compatible
query I rowsort label-7840
SELECT - - 90 * - COUNT ( * ) * 38 FROM tab1 AS cor0
----
-10260

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7841
SELECT ALL col0 DIV - CAST( - + 28 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL col0 / - CAST ( - + 28 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
3
3

query I rowsort
SELECT ALL - col0 + + 80 FROM tab2 AS cor0
----
16
34
5

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

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

query I rowsort
SELECT + + col1 * - col2 + - 65 AS col2 FROM tab1 AS cor0
----
-1409
-3261
-360

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL <> 37
----

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

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

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

query I rowsort
SELECT DISTINCT + - 94 FROM tab0 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + SUM( DISTINCT - 31 ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7849
SELECT + SUM ( DISTINCT - 31 ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT ALL - 87 + + col1 FROM tab1 AS cor0
----
-40
-73
-82

query I rowsort
SELECT DISTINCT + + 66 - - col1 FROM tab0 AS cor0
----
147
67
87

query I rowsort
SELECT ALL + col1 - + - 20 * - 42 AS col2 FROM tab2
----
-763
-773
-789

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - ( + MAX( ALL - col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - ( + MAX ( ALL - col0 ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT COUNT( DISTINCT - + 97 ) AS col0 FROM tab2 WHERE ( NULL IS NULL )
----
1

skipif mysql # not compatible
query I rowsort label-7854
SELECT COUNT ( DISTINCT - + 97 ) AS col0 FROM tab2 WHERE ( NULL IS NULL )
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + + col0 <> 62
----

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

query I rowsort
SELECT ALL col2 * - + col1 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ( + col1 ) * + 61 FROM tab2
----
3111
4087
4697

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + 78 col0 FROM tab0 AS cor0
----
-1170
-6786
-7566

query II rowsort
SELECT DISTINCT + ( - + col1 ) + + col1 AS col1, - 29 AS col0 FROM tab1 AS cor0
----
0
-29

query I rowsort
SELECT DISTINCT + ( + - 12 ) AS col2 FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7863
SELECT ALL col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * col1 * col2, + col0 / + 40, + 75 )
----

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * col1 * col2, + col0 / + 40, + 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT + ( col1 ) DIV + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7864
SELECT + ( col1 ) / + col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT - MIN( ALL + - 68 ) DIV + - COUNT( * ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7865
SELECT - MIN ( ALL + - 68 ) / + - COUNT ( * ) FROM tab0 AS cor0
----
-22

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

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

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - 39 * + CAST ( NULL AS INTEGER ) * + - 43 * - SUM ( + + ( + col2 ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - 14 FROM tab2
----
322
560
812

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7870
SELECT DISTINCT + 29 / + col0 + col0 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + 29 / + col0 + col0 - - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + 32 + - - 93 - - 9 FROM tab1
----
134
134
134

query I rowsort
SELECT col0 + 64 AS col1 FROM tab1
----
115
149
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT DISTINCT - + 46 * + - MIN( 45 ) + - 45 AS col0 FROM tab0 AS cor0
----
2025

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT - + 46 * + - MIN ( 45 ) + - 45 AS col0 FROM tab0 AS cor0
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT - 36 + - COUNT( * ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7874
SELECT - 36 + - COUNT ( * ) FROM tab1 AS cor0
----
-39

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

query II rowsort
SELECT - ( - - col1 ), col0 * + 27 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 20 / + 98 / - col0 IS NULL )
----

query I rowsort
SELECT ALL - 20 * - col0 + - col2 * + 39 AS col2 FROM tab1 AS cor0
----
-2724
-601
-832

query I rowsort
SELECT ALL + col2 + - - 39 + - col1 AS col1 FROM tab0 AS cor0
----
137
28
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT - 77 - 81 FROM tab0 AS cor0
----
-158
-158
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7882
SELECT DISTINCT - + 26 + 14 DIV - - COUNT( * ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - + 26 + 14 / - - COUNT ( * ) FROM tab0 AS cor0
----
-22

query I rowsort
SELECT ALL - col0 + + 63 FROM tab2 AS cor0
----
-1
-12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ALL + - COUNT( ALL + col1 ) + - + 93 AS col1 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + - COUNT ( ALL + col1 ) + - + 93 AS col1 FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + COUNT( DISTINCT + + 44 ) * + 53 + + + 28 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7885
SELECT + COUNT ( DISTINCT + + 44 ) * + 53 + + + 28 FROM tab2 cor0
----
81

query I rowsort
SELECT ALL + col0 - - - col2 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT 5 * - 35 AS col1 FROM tab0
----
-175
-175
-175

query I rowsort
SELECT DISTINCT + col2 * - - col2 * + 45 FROM tab1
----
156645
208080
414720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7889
SELECT 98 DIV - MIN( ALL + col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7889
SELECT 98 / - MIN ( ALL + col2 ) FROM tab0
----
-9

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

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT + 37 / - COUNT ( * ) FROM tab0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7891
SELECT MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT MIN( - + 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7892
SELECT MIN ( - + 32 ) FROM tab0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 + - - col0 IS NULL
----

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

query I rowsort
SELECT - 91 AS col2 FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN - col2 AND + 8 * + 36 * col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7896
SELECT - col1 DIV + col0 AS col0, col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-7896
SELECT - col1 / + col0 AS col0, col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT col2 * - col2 * - + col0 AS col0 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT - ( + 47 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT - col0 + + - 9 + + - col1 AS col2 FROM tab0 AS cor0
----
-105
-107
-117

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col1, 56, + col0, + 8 )
----

query I rowsort
SELECT ( + + col1 ) + - 39 FROM tab2 AS cor0
----
12
28
38

query I rowsort
SELECT col2 * col0 + - 13 + col0 + + col2 AS col1 FROM tab0 AS cor0
----
754
954
9786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, col0 col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

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

query II rowsort
SELECT + 21, col0 + col0 AS col0 FROM tab0 WHERE - - 97 NOT BETWEEN + + 96 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT DISTINCT - 34 AS col1 FROM tab1 WHERE + - col1 * 82 + - 36 + + col0 * - CAST( - + CAST( - 28 AS SIGNED ) AS SIGNED ) = - col0
----

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - 34 AS col1 FROM tab1 WHERE + - col1 * 82 + - 36 + + col0 * - CAST ( - + CAST ( - 28 AS INTEGER ) AS INTEGER ) = - col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT CAST( - - 69 AS SIGNED ) + col1 FROM tab2 AS cor0
----
120
136
146

skipif mysql # not compatible
query I rowsort label-7908
SELECT CAST ( - - 69 AS INTEGER ) + col1 FROM tab2 AS cor0
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT - 23 + - COUNT( * ) + + COUNT( * ) - MIN( DISTINCT 95 ) + + - 87 AS col0 FROM tab0 AS cor0
----
-205

skipif mysql # not compatible
query I rowsort label-7909
SELECT - 23 + - COUNT ( * ) + + COUNT ( * ) - MIN ( DISTINCT 95 ) + + - 87 AS col0 FROM tab0 AS cor0
----
-205

query I rowsort
SELECT + - ( 37 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 24 * + - col0 IN ( + 47 * + col0, + col1, + col0 * + 28, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 92 * - - 78 FROM tab0 AS cor0
----
7176
7176
7176

query I rowsort
SELECT DISTINCT + col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - MAX( - + col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7915
SELECT - MAX ( - + col1 ) AS col0 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL - col0 * col0 * col2 + col0 FROM tab1 AS cor0
----
-249645
-426190
-563017

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - + COUNT( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7917
SELECT - + COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT COUNT( * ), - COUNT( * ) col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7918
SELECT COUNT ( * ), - COUNT ( * ) col0 FROM tab0 AS cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 72 + col0 <> NULL
----

query II rowsort
SELECT 93 AS col2, - 66 * - - col0 FROM tab2 AS cor0
----
93
-3036
93
-4224
93
-4950

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 57 >= NULL
----

query I rowsort
SELECT ( ( col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT ALL + 10 * - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL + 10 * - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7925
SELECT + COUNT( * ) + + 62 AS col0, + 40 FROM tab2 WHERE NOT NULL IS NULL
----
62
40

skipif mysql # not compatible
query II rowsort label-7925
SELECT + COUNT ( * ) + + 62 AS col0, + 40 FROM tab2 WHERE NOT NULL IS NULL
----
62
40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= + col2 + - col0 / + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + col1 ) NOT BETWEEN NULL AND - + col0 + + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7929
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - - CAST( NULL AS DECIMAL ) IN ( ( + 10 ) * - col1, col2 )
----

skipif mysql # not compatible
query III rowsort label-7929
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - - CAST ( NULL AS REAL ) IN ( ( + 10 ) * - col1, col2 )
----

query I rowsort
SELECT DISTINCT + - 36 + + - 70 FROM tab2 WHERE + 32 BETWEEN + ( - col1 ) AND + col1
----
-106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 87, + col2 col0 FROM tab1
----
87
59
87
68
87
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT + MAX( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - COUNT( * ) * - - SUM( DISTINCT - + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-7933
SELECT - COUNT ( * ) * - - SUM ( DISTINCT - + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col2 FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL 28 + col2 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + + COUNT( DISTINCT - 70 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7936
SELECT + + COUNT ( DISTINCT - 70 ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT + col0 * - + col2 AS col2 FROM tab1 cor0 WHERE CAST( + + 35 AS SIGNED ) * col1 = col2 * + - col0 + - + col1
----

skipif mysql # not compatible
query I rowsort label-7938
SELECT + col0 * - + col2 AS col2 FROM tab1 cor0 WHERE CAST ( + + 35 AS INTEGER ) * col1 = col2 * + - col0 + - + col1
----

query I rowsort
SELECT 50 + + col0 AS col1 FROM tab0
----
137
147
65

query I rowsort
SELECT + 91 * + 81 + + + 79 * 91 + 70 FROM tab1
----
14630
14630
14630

onlyif mysql # aggregate syntax: 
query II rowsort label-7941
SELECT ALL - COUNT( * ), - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7941
SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2
----
-3
-3

query I rowsort
SELECT DISTINCT - 50 * - - col1 * - + ( - - 81 ) FROM tab1
----
190350
20250
56700

query I rowsort
SELECT col1 + - col1 * + 96 AS col0 FROM tab0
----
-1995
-7695
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7944
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col2, ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7944
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col2, ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT MAX( - 50 ) AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-7945
SELECT MAX ( - 50 ) AS col1 FROM tab2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT ALL + - 45 * ( - + col1 ) + col2 FROM tab0 WHERE NOT - col2 * + col2 - + col0 * + - col0 * - CAST( NULL AS SIGNED ) + col2 / 90 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + - 45 * ( - + col1 ) + col2 FROM tab0 WHERE NOT - col2 * + col2 - + col0 * + - col0 * - CAST ( NULL AS INTEGER ) + col2 / 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT + MIN( - + 18 ) AS col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7948
SELECT + MIN ( - + 18 ) AS col2 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 69 + + 27 + - col0 * + col0 NOT IN ( - 20 * + col1, - col1, - col0 + - 19 - - - col2 + - + 71, - 65, + + col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 * - col1 AS col0, - 6 - - - col2 * - 15 - 22 + + - col2 + col2 AS col0 FROM tab1 cor0
----
-1344
1412
-295
857
-3196
992

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7953
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - 67 * 36 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - 67 * 36 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL 33 * MIN( - 92 ) FROM tab1 AS cor0
----
-3036

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL 33 * MIN ( - 92 ) FROM tab1 AS cor0
----
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT DISTINCT - 7 * - SUM( col2 ) FROM tab0 AS cor0
----
1092

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT - 7 * - SUM ( col2 ) FROM tab0 AS cor0
----
1092

query I rowsort
SELECT DISTINCT - 92 * - 33 FROM tab0 AS cor0
----
3036

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT ALL COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-7957
SELECT ALL COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab1
----
3
3

query II rowsort
SELECT ALL - 46 AS col2, - col0 + - + col0 + col1 AS col1 FROM tab0
----
-46
-153
-46
-193
-46
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT DISTINCT col2 * col0 / CAST( NULL AS SIGNED ) * col0 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7959
SELECT DISTINCT col2 * col0 / CAST ( NULL AS INTEGER ) * col0 col2 FROM tab2
----
NULL

query II rowsort
SELECT + col1 AS col0, - col1 + - col2 FROM tab2
----
51
-74
67
-125
77
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT 41 DIV - col1 FROM tab0 AS cor0
----
-1
-41
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT 41 / - col1 FROM tab0 AS cor0
----
-1
-41
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT + 51 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7962
SELECT + 51 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
3

query III rowsort
SELECT * FROM tab1 WHERE ( - ( - col2 ) ) <= col0
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + 59 col0 FROM tab2
----
121
121
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT ALL - CAST( NULL AS SIGNED ) * 43 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - CAST ( NULL AS INTEGER ) * 43 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT COUNT( * ) * 64 AS col2 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT COUNT ( * ) * 64 AS col2 FROM tab1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT - 35 + + COUNT( * ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-7967
SELECT - 35 + + COUNT ( * ) FROM tab1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT DISTINCT + CAST( - 42 AS SIGNED ) * 41 AS col1 FROM tab1
----
-1722

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT + CAST ( - 42 AS INTEGER ) * 41 AS col1 FROM tab1
----
-1722

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7969
SELECT * FROM tab1 WHERE NOT ( - 89 * + CAST( + col1 * 22 AS DECIMAL ) ) IN ( - col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7969
SELECT * FROM tab1 WHERE NOT ( - 89 * + CAST ( + col1 * 22 AS REAL ) ) IN ( - col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + - col2 ) >= ( col1 / 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + col1 col0 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL + 65 AS col0 FROM tab2 WHERE ( + col1 + + col0 * col1 ) > col2 / col1
----
65
65
65

query I rowsort
SELECT ALL + 66 + + 26 FROM tab0
----
92
92
92

query I rowsort
SELECT ALL - 86 FROM tab2 WHERE ( NULL ) IS NULL
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT 4 * COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7975
SELECT 4 * COUNT ( * ) AS col2 FROM tab2
----
12

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 39 - 58 ) > ( NULL )
----

query I rowsort
SELECT ALL 21 + + col1 AS col1 FROM tab1
----
26
35
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL + COUNT( * ) * 30 AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + COUNT ( * ) * 30 AS col2 FROM tab1
----
90

query I rowsort
SELECT ALL ( ( col0 ) ) FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT ALL - col2 + + 42 DIV col2 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - col2 + + 42 / col2 FROM tab2
----
-22
-39
-58

query III rowsort
SELECT * FROM tab2 WHERE 99 * 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + col2 FROM tab0 WHERE NOT - 83 IN ( - col2 / col2 )
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - SUM( col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7983
SELECT - SUM ( col0 ) FROM tab1
----
-227

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + col2 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NOT col1 - - col2 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NOT col1 - - col2 IS NULL
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > 66
----

query III rowsort
SELECT * FROM tab2 WHERE ( 21 + ( 36 + + 38 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab1 WHERE col2 * col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( col1 ) IN ( - col0 * + 91 + 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - MIN( ALL col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7991
SELECT - MIN ( ALL col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT ( - col2 ) - - 27 AS col2 FROM tab1
----
-32
-41
-69

query I rowsort
SELECT - col1 - + 40 AS col1 FROM tab0 AS cor0
----
-121
-41
-61

query I rowsort
SELECT ALL + 65 + 42 AS col2 FROM tab0 cor0
----
107
107
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT + COUNT( * ) - MIN( col0 ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7995
SELECT + COUNT ( * ) - MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT ALL col1 * - ( - col1 ) + + col1 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT 16 + col1 * + col0 FROM tab2 AS cor0
----
2362
4944
5041

query I rowsort
SELECT - 68 + col0 * col0 FROM tab1 AS cor0
----
2533
7157
8213

query I rowsort
SELECT DISTINCT col2 - 19 AS col1 FROM tab0 AS cor0
----
-9
28
80

query I rowsort
SELECT col1 * + 69 + - col0 FROM tab2 AS cor0
----
3473
4548
5249

query I rowsort
SELECT ALL - ( + col1 ) - 14 * 51 AS col1 FROM tab2 AS cor0
----
-765
-781
-791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT DISTINCT - 72 FROM tab2 WHERE + col2 - col1 * - col0 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT - 72 FROM tab2 WHERE + col2 - col1 * - col0 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col1 * 95 FROM tab1 AS cor0
----
1330
4465
475

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT + 18 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + 18 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT 89 * - SUM( + col0 * - col1 ) AS col0 FROM tab2 AS cor0
----
1094611

skipif mysql # not compatible
query I rowsort label-8005
SELECT 89 * - SUM ( + col0 * - col1 ) AS col0 FROM tab2 AS cor0
----
1094611

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT ALL 20 DIV + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL 20 / + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT DISTINCT + COUNT( * ) * + 27 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + COUNT ( * ) * + 27 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + + COUNT( ALL col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8008
SELECT + + COUNT ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 40 * col1 FROM tab1 AS cor0
----
1880
200
560

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL - - SUM( col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - - SUM ( col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT MIN( ALL - col0 ) - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 51 + col2 * col0 ) IS NULL
----
-100

skipif mysql # not compatible
query I rowsort label-8011
SELECT MIN ( ALL - col0 ) - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 51 + col2 * col0 ) IS NULL
----
-100

query I rowsort
SELECT col2 + col0 AS col0 FROM tab2 WHERE NOT + 44 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 24 ) > ( + col1 )
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT 72 * + col0 * ( 90 ) AS col0 FROM tab1
----
330480
550800
589680

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8016
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN 47 + col2 * CAST( NULL AS SIGNED ) AND 69 + - col0 / + col0
----

skipif mysql # not compatible
query III rowsort label-8016
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN 47 + col2 * CAST ( NULL AS INTEGER ) AND 69 + - col0 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL > ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT + 62 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT + 62 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 <= ( + col1 )
----
2

skipif mysql # not compatible
query I rowsort label-8020
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 <= ( + col1 )
----
2

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8022
SELECT DISTINCT - COUNT( * ) DIV - MIN( col0 ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8022
SELECT DISTINCT - COUNT ( * ) / - MIN ( col0 ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 + - 15 AS col0 FROM tab1 AS cor0
----
-1
-10
32

query I rowsort
SELECT - + col1 + - 43 FROM tab2 AS cor0
----
-110
-120
-94

query I rowsort
SELECT DISTINCT 23 FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) + 79 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + 79 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
80

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IN ( 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE - 27 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8028
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE - 27 < NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8030
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8030
SELECT + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT + ( + - SUM( - col1 ) ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-8031
SELECT + ( + - SUM ( - col1 ) ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL 16 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL 16 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
13

query I rowsort
SELECT ALL + col0 + + + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8034
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - 57 + - col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - 57 + - col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 8 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( 47 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + col0 * + ( - 1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT + COUNT( DISTINCT col2 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT + COUNT ( DISTINCT col2 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT - 82 DIV 74 * + - ( + + col1 ) * - col2 + - col2 FROM tab1
----
-1440
-3264
-354

skipif mysql # not compatible
query I rowsort label-8038
SELECT - 82 / 74 * + - ( + + col1 ) * - col2 + - col2 FROM tab1
----
-1440
-3264
-354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT ALL ( - CAST( + + 47 AS SIGNED ) ) FROM tab2
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL ( - CAST ( + + 47 AS INTEGER ) ) FROM tab2
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + 44 + + ( - COUNT( * ) ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-8040
SELECT + 44 + + ( - COUNT ( * ) ) FROM tab1
----
41

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT - 16 = ( 33 / + col2 )
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) < col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8043
SELECT col2 * 14 + col1 + - CAST( 61 AS SIGNED ) DIV 92 AS col0 FROM tab2
----
373
637
879

skipif mysql # not compatible
query I rowsort label-8043
SELECT col2 * 14 + col1 + - CAST ( 61 AS INTEGER ) / 92 AS col0 FROM tab2
----
373
637
879

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - 51 * + SUM( ALL col2 ) FROM tab2 WHERE NULL BETWEEN NULL AND + - col2 / - col0 / + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 51 * + SUM ( ALL col2 ) FROM tab2 WHERE NULL BETWEEN NULL AND + - col2 / - col0 / + col1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 56 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 87 * + 40 + 27 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8047
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col0 + - col0 * - CAST( + col0 + + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8047
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col0 + - col0 * - CAST ( + col0 + + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + - COUNT( * ) * COUNT( col0 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8048
SELECT + - COUNT ( * ) * COUNT ( col0 ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + + 29 AS col2 FROM tab2 AS cor0 WHERE 69 = + + 3
----

query I rowsort
SELECT DISTINCT - + col2 + - 19 + 50 FROM tab0 cor0
----
-16
-68
21

query I rowsort
SELECT DISTINCT + col0 + - - col1 * - 43 FROM tab0 AS cor0
----
-3468
-816
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT DISTINCT - col1 - + 85 + - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT - col1 - + 85 + - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT MAX( - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT MAX ( - col0 ) AS col0 FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 85 + col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT COUNT( * ) * 95 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
855

skipif mysql # not compatible
query I rowsort label-8055
SELECT COUNT ( * ) * 95 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
855

query I rowsort
SELECT ALL col2 * + 39 AS col1 FROM tab0
----
1833
3861
390

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8058
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - CAST( - - 12 AS SIGNED ) + - ( - col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8058
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - CAST ( - - 12 AS INTEGER ) + - ( - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 71 ) IN ( + 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8060
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + col1 * - + 22 AS col1 FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT col1 + - - ( - col2 ) FROM tab2 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col0 col1 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT MAX( ALL col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT MAX ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT col2 * - col1 + + - col2 FROM tab1 AS cor0 WHERE + col2 + - col0 IS NOT NULL
----
-1440
-3264
-354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT + SUM( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT 17 + + col0 AS col2 FROM tab2
----
63
81
92

query II rowsort
SELECT ALL ( col1 ) AS col2, + col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ( col1 ) + - + col0 + - - col0 AS col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT CAST( NULL AS SIGNED ) / - col0 + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT CAST ( NULL AS INTEGER ) / - col0 + + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 94 / col0 - + + col2 + + 7 * + + col2 * col2 * - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - ( - col1 ) - + + 86 + + col0 * - - col1 IS NULL
----

query I rowsort
SELECT - col0 * - 35 FROM tab1 AS cor0
----
1785
2975
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT DISTINCT - COUNT( * ) - MAX( ALL 31 ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT - COUNT ( * ) - MAX ( ALL 31 ) FROM tab2 AS cor0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT DISTINCT - col2 * col1 DIV - + col1 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT - col2 * col1 / - + col1 AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL 73 - + + col2 AS col2 FROM tab1
----
-23
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT MIN( + - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8077
SELECT MIN ( + - col2 ) FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col2 col1 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT + COUNT( * ) AS col1, 45 FROM tab2
----
3
45

skipif mysql # not compatible
query II rowsort label-8079
SELECT + COUNT ( * ) AS col1, 45 FROM tab2
----
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - 88 - COUNT( * ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8080
SELECT - 88 - COUNT ( * ) col2 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT - 32 * - - col2 * col2 FROM tab1
----
-111392
-147968
-294912

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - COUNT( * ) - - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT - COUNT ( * ) - - + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL ( - - 55 ) * col1 + - - col1 AS col1 FROM tab1
----
2632
280
784

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + col1 AS col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + + col2 * + 28 AS col0 FROM tab2 AS cor0
----
1120
1624
644

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT - col1 DIV col2 DIV + 7 + + col1 col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8087
SELECT - col1 / col2 / + 7 + + col1 col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + - MIN( + - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8088
SELECT + - MIN ( + - col1 ) FROM tab2 AS cor0
----
77

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE 19 + - ( + ( - + ( - 35 ) ) ) IS NULL
----

query I rowsort
SELECT DISTINCT 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 32 * + 98 + + 76 + 53 NOT IN ( - - col2 - - col1 + + 9 + - col1 * - 40 )
----

query I rowsort
SELECT + 75 * - col0 * - - ( - col2 ) * 29 * - - col1 - + col1 AS col2 FROM tab0 AS cor0
----
124203294
20886524
39737229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT - + CAST( - 35 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
1400
2030
805

skipif mysql # not compatible
query I rowsort label-8093
SELECT - + CAST ( - 35 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT + + 24 * COUNT( * ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8094
SELECT + + 24 * COUNT ( * ) FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL - SUM( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - SUM ( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT - + 70 * - ( + COUNT( * ) ) FROM tab0 cor0
----
210

skipif mysql # not compatible
query I rowsort label-8096
SELECT - + 70 * - ( + COUNT ( * ) ) FROM tab0 cor0
----
210

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col1 NOT IN ( - col1 - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT CAST( + + col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8098
SELECT CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT - col0 + + + 2 FROM tab0
----
-13
-85
-95

query I rowsort
SELECT DISTINCT + 33 * - - col2 + - col2 FROM tab2
----
1280
1856
736

query I rowsort
SELECT col0 + + - col1 * - 34 AS col0 FROM tab1 AS cor0
----
1689
255
527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT + + SUM( - col2 ) AS col1 FROM tab1 AS cor0 WHERE ( col1 + - CAST( - - 38 AS SIGNED ) BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT + + SUM ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE ( col1 + - CAST ( - - 38 AS INTEGER ) BETWEEN NULL AND NULL )
----
NULL

query I rowsort
SELECT col2 * - + col1 * - ( + - 79 ) AS col0 FROM tab2
----
-243320
-306994
-92667

query I rowsort
SELECT 95 AS col2 FROM tab0 WHERE ( + + col2 ) IS NOT NULL
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + - col0, col0 col0 FROM tab0
----
-1215
15
-1827
87
-97
97

query I rowsort
SELECT ALL + col0 + - col2 * + col1 * - 23 AS col0 FROM tab0
----
2374
4917
87576

query I rowsort
SELECT + col2 - - ( 57 ) AS col1 FROM tab0 AS cor0
----
104
156
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT + 57 * - ( + col2 ) - col0 + - CAST( - col2 AS SIGNED ) - + + col1 * col0 AS col2 FROM tab2 AS cor0
----
-3680
-7232
-8348

skipif mysql # not compatible
query I rowsort label-8108
SELECT + 57 * - ( + col2 ) - col0 + - CAST ( - col2 AS INTEGER ) - + + col1 * col0 AS col2 FROM tab2 AS cor0
----
-3680
-7232
-8348

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL + 65 + - - MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + 65 + - - MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT AVG ( - col1 ) * + - COUNT( * ) + + 46 + - + 32 * - MAX( ALL + CAST( NULL AS SIGNED ) ) * 44 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT AVG ( - col1 ) * + - COUNT ( * ) + + 46 + - + 32 * - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * 44 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 52 + + - col0 FROM tab2 AS cor0
----
-12
-23
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8112
SELECT DISTINCT + col1 / - - col0 + + col2 / col1 - - + col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + col1 / - - col0 + + col2 / col1 - - + col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT ALL + 26 * - SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
-5174

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL + 26 * - SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
-5174

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 - - col0 + + 26 * - col0 + 21 - col1 * 0 * + + col2 ) > NULL AND ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT - MIN( - col0 ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT - MIN ( - col0 ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * - + 18 FROM tab1
----
-252
-846
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8117
SELECT DISTINCT - COUNT( * ) DIV + 43 + + COUNT( + + col2 ) col1 FROM tab0 WHERE NOT - ( + CAST( 7 AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8117
SELECT DISTINCT - COUNT ( * ) / + 43 + + COUNT ( + + col2 ) col1 FROM tab0 WHERE NOT - ( + CAST ( 7 AS INTEGER ) ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 82 col2 FROM tab0
----
3854
8118
820

query I rowsort
SELECT ALL col0 * + 79 - - - col1 AS col2 FROM tab0
----
1104
6852
7662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab2
----
-99

query I rowsort
SELECT - col2 * - ( + 37 ) AS col1 FROM tab0
----
1739
3663
370

query I rowsort
SELECT col1 * - - 63 FROM tab2 cor0
----
3213
4221
4851

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8123
SELECT DISTINCT - CAST( + - col1 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = - col0 + - col1
----

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT - CAST ( + - col1 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = - col0 + - col1
----

query I rowsort
SELECT ALL + col0 * col1 + + 43 FROM tab2 AS cor0 WHERE - col2 IN ( - 94 + + col2, + 45 )
----

query I rowsort
SELECT ALL 50 * + 29 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1450
1450
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT MAX( - 40 ) AS col2 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-8126
SELECT MAX ( - 40 ) AS col2 FROM tab1
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 23 col2, 25 FROM tab2
----
-23
25
-23
25
-23
25

query I rowsort
SELECT ALL - col2 + - + 93 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-116
-133
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT COUNT( * ) * - 82 + + SUM( DISTINCT col1 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-8129
SELECT COUNT ( * ) * - 82 + + SUM ( DISTINCT col1 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8130
SELECT ALL - 91, CAST( NULL AS SIGNED ) / + 85 * + col0 col2 FROM tab0 AS cor0
----
-91
NULL
-91
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8130
SELECT ALL - 91, CAST ( NULL AS INTEGER ) / + 85 * + col0 col2 FROM tab0 AS cor0
----
-91
NULL
-91
NULL
-91
NULL

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = - 20
----

query I rowsort
SELECT + - col1 + - - col2 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - 44 * - ( col2 ) FROM tab0 AS cor0
----
2068
4356
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT + COUNT( * ) col2 FROM tab1 WHERE NOT col1 * + 33 - - col0 + CAST( NULL AS SIGNED ) * col0 / + 0 + + col2 * - 19 > ( - 10 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8134
SELECT + COUNT ( * ) col2 FROM tab1 WHERE NOT col1 * + 33 - - col0 + CAST ( NULL AS INTEGER ) * col0 / + 0 + + col2 * - 19 > ( - 10 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT DISTINCT + MAX( DISTINCT - 95 ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT + MAX ( DISTINCT - 95 ) FROM tab0
----
-95

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 / + - col2 / 8 + + col2 + - + 35 IS NULL
----

query I rowsort
SELECT ALL col2 + + col1 + - - col1 * col2 AS col0 FROM tab2
----
1247
3197
4011

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col2 FROM tab0 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 75 - - col1 col2 FROM tab0 AS cor0
----
-54
-74
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8141
SELECT ALL + col0 * - col2 - - 58 AS col0, 87 * - col1 + col0 col1, CAST( NULL AS SIGNED ) + + col0 - - 33 FROM tab1 AS cor0
----
9 values hashing to aff603c7b9093585763cb85b474ea29b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8141
SELECT ALL + col0 * - col2 - - 58 AS col0, 87 * - col1 + col0 col1, CAST ( NULL AS INTEGER ) + + col0 - - 33 FROM tab1 AS cor0
----
9 values hashing to aff603c7b9093585763cb85b474ea29b

query I rowsort
SELECT - 5 - + col1 AS col0 FROM tab1 cor0
----
-10
-19
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8143
SELECT + MIN( - - col1 ) - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT + MIN ( - - col1 ) - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT DISTINCT + 85 - COUNT( * ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + 85 - COUNT ( * ) FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT COUNT( - 66 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8145
SELECT COUNT ( - 66 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - + ( 61 ) * - + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
183

skipif mysql # not compatible
query I rowsort label-8146
SELECT - + ( 61 ) * - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
183

query I rowsort
SELECT DISTINCT + 4 FROM tab2 WHERE + ( + col1 ) IS NULL
----

query I rowsort
SELECT col0 * + 70 AS col2 FROM tab0
----
1050
6090
6790

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8150
SELECT ALL ( MIN( ALL col1 ) ) DIV COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL ( MIN ( ALL col1 ) ) / COUNT ( * ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT ALL COUNT( * ), 72 AS col2 FROM tab0
----
3
72

skipif mysql # not compatible
query II rowsort label-8151
SELECT ALL COUNT ( * ), 72 AS col2 FROM tab0
----
3
72

query II rowsort
SELECT DISTINCT + col0 AS col1, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT 19 * - ( - - 12 ) FROM tab2
----
-228
-228
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL 71 * + 74 * MAX( - + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-5254

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL 71 * + 74 * MAX ( - + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-5254

query I rowsort
SELECT ALL - 35 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + - 72 - + col0 IS NULL
----
-35
-35
-35

query I rowsort
SELECT + - col0 * - + 16 + - - 88 FROM tab2 AS cor0
----
1112
1288
824

query I rowsort
SELECT ALL col1 * + col2 * col0 + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
18291
57186
9604

query I rowsort
SELECT 33 * 79 FROM tab0
----
2607
2607
2607

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT - - ( 95 ) FROM tab1 WHERE - col0 IS NOT NULL
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col1 FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 92 <> NULL
----

query I rowsort
SELECT ALL col0 + + col1 + + + col2 FROM tab2 WHERE NULL BETWEEN col1 - - col1 AND + 71 + + col0 * 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL SUM( ALL - 86 ) FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL SUM ( ALL - 86 ) FROM tab0
----
-258

query I rowsort
SELECT col0 * + 52 + 86 FROM tab0
----
4610
5130
866

query II rowsort
SELECT 21 * - col2 + - - 7, - 36 * - 38 AS col0 FROM tab0
----
-203
1368
-2072
1368
-980
1368

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT 72 + - col2 + col2 DIV + - col1 * - col1 FROM tab2
----
14
32
49

skipif mysql # not compatible
query I rowsort label-8167
SELECT 72 + - col2 + col2 / + - col1 * - col1 FROM tab2
----
14
32
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT + CAST( NULL AS SIGNED ) / - + col1 + + - 23 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT + CAST ( NULL AS INTEGER ) / - + col1 + + - 23 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - 17 * + - col0 * - col2 + + 99 AS col2 FROM tab1
----
-105144
-83147
-85161

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL + MIN( + 71 ) FROM tab1 cor0
----
71

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + MIN ( + 71 ) FROM tab1 cor0
----
71

query I rowsort
SELECT ALL col1 / col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL >= 60
----

query I rowsort
SELECT + - 66 + + + 91 FROM tab0 AS cor0
----
25
25
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - col0 + + 17 NOT BETWEEN - 52 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT - COUNT( ALL col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT - COUNT ( ALL col0 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab2 cor0 WHERE NOT col1 * - 33 - - 37 BETWEEN col2 AND NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT ALL 94 col2, + COUNT( * ) FROM tab0
----
94
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8177
SELECT ALL 94 col2, + COUNT ( * ) FROM tab0
----
94
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + MAX( ALL - - col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + MAX ( ALL - - col0 ) AS col1 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8179
SELECT + 72 AS col0, + CAST( - col1 AS SIGNED ) AS col0, + col0 * 27 + + col0 FROM tab0
----
9 values hashing to 3ceb85e7a1dbad6d1aa7592156cc213d

skipif mysql # not compatible
query III rowsort label-8179
SELECT + 72 AS col0, + CAST ( - col1 AS INTEGER ) AS col0, + col0 * 27 + + col0 FROM tab0
----
9 values hashing to 3ceb85e7a1dbad6d1aa7592156cc213d

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT - MAX( + col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8181
SELECT - MAX ( + col0 ) col2 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT DISTINCT + 21 AS col0 FROM tab2 WHERE - 6 NOT IN ( CAST( - col2 AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + 21 AS col0 FROM tab2 WHERE - 6 NOT IN ( CAST ( - col2 AS INTEGER ) )
----
21

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 52 * + - col1 <> 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + MAX( ALL - 77 ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-8184
SELECT + MAX ( ALL - 77 ) FROM tab1
----
-77

query II rowsort
SELECT col2 * + col1 * 3 AS col1, - 37 + - - col1 FROM tab0
----
11421
44
297
-36
630
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT 88 * - + COUNT( * ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-8186
SELECT 88 * - + COUNT ( * ) FROM tab1
----
-264

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 + - col0 IN ( + + 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL 67 * - - COUNT( * ) FROM tab2 cor0
----
201

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL 67 * - - COUNT ( * ) FROM tab2 cor0
----
201

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 10 <= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
37

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <= + + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( ( - 8 ) ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab1 cor0
----
41

query I rowsort
SELECT - 0 * + + col0 - - col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 75 col0 FROM tab0 AS cor0
----
75

query II rowsort
SELECT ALL ( + 6 ) * - + 5 * + col0 - col2 - 79 * + + 0 AS col1, - col2 * - 94 AS col2 FROM tab2
----
-1403
2162
-1960
3760
-2308
5452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8198
SELECT ( + 21 ) * - - COUNT( * ) col1, - 50 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
63
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8198
SELECT ( + 21 ) * - - COUNT ( * ) col1, - 50 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT MAX( col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8199
SELECT DISTINCT MAX ( col1 ) col0 FROM tab2
----
77

query I rowsort
SELECT ALL col2 + - - col1 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT + col1 * - + col0 * - + ( - col1 ) AS col0 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT 77 DIV col0 * + + col1 + - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
28
50
53

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT 77 / col0 * + + col1 + - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
28
50
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 col0 FROM tab1 AS cor0 WHERE - col0 * + 7 + 85 + col0 NOT IN ( + col2, + 19 )
----
144
147
159

query I rowsort
SELECT ALL col2 * + 35 + + - col0 AS col0 FROM tab0 AS cor0
----
1630
263
3368

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab1 WHERE NULL BETWEEN + col1 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT DISTINCT COUNT( DISTINCT col0 ) * + SUM( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT COUNT ( DISTINCT col0 ) * + SUM ( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT - - MIN( ALL 92 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8207
SELECT - - MIN ( ALL 92 ) FROM tab0 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT - - COUNT( * ) * + + 10 AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8208
SELECT - - COUNT ( * ) * + + 10 AS col1 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT + MAX( DISTINCT - 33 ) AS col0 FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8209
SELECT + MAX ( DISTINCT - 33 ) AS col0 FROM tab2 cor0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8210
SELECT + 94 DIV + COUNT( * ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8210
SELECT + 94 / + COUNT ( * ) FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - - COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8211
SELECT - - COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + - COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8212
SELECT + - COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT + 41 * + + col0 FROM tab1
----
2091
3485
3731

query I rowsort
SELECT ALL - 38 * + - ( + 0 ) FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
0
0
0

query I rowsort
SELECT + - 44 * + + 0 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col2 + 24 * - - 38 FROM tab2 AS cor0
----
935
952
970

query I rowsort
SELECT DISTINCT ( 49 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
49

query II rowsort
SELECT + + 10, col0 FROM tab2 WHERE NOT NULL >= + 19 - + col1 * + 23 * col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT MIN( ALL + col2 ) + + COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT MIN ( ALL + col2 ) + + COUNT ( * ) FROM tab1
----
62

query II rowsort
SELECT + - col1, 76 * + - col2 AS col2 FROM tab2 AS cor0
----
-51
-1748
-67
-4408
-77
-3040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8223
SELECT - CAST( NULL AS SIGNED ), + ( col0 ) col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8223
SELECT - CAST ( NULL AS INTEGER ), + ( col0 ) col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT - MAX( DISTINCT + - ( 60 ) ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8225
SELECT - MAX ( DISTINCT + - ( 60 ) ) FROM tab2 AS cor0
----
60

query I rowsort
SELECT ALL + col2 + - 23 FROM tab1 AS cor0
----
36
45
73

query I rowsort
SELECT - 61 * + col2 AS col0 FROM tab0 cor0
----
-2867
-6039
-610

query I rowsort
SELECT - + col1 * + col0 * - 83 * - - 14 + col1 * - + col1 + - col1 AS col2 FROM tab2 AS cor0
----
2723400
5720330
5834494

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT DISTINCT 13 * + CAST( NULL AS SIGNED ) - - 79 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT 13 * + CAST ( NULL AS INTEGER ) - - 79 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 16 * - - col0 AS col1 FROM tab0
----
-1552
-19440
-29232

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT COUNT( ALL col1 ) + + + 16 AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8232
SELECT COUNT ( ALL col1 ) + + + 16 AS col1 FROM tab2
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 76 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL ( 9 ) + - COUNT( DISTINCT + + 43 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL ( 9 ) + - COUNT ( DISTINCT + + 43 ) FROM tab1
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-8235
SELECT - ( - col0 ) DIV - col1 + col1 AS col1, 97 * col2 FROM tab0
----
-96
9603
17
970
81
4559

skipif mysql # not compatible
query II rowsort label-8235
SELECT - ( - col0 ) / - col1 + col1 AS col1, 97 * col2 FROM tab0
----
-96
9603
17
970
81
4559

query I rowsort
SELECT ALL - col1 + + 34 - - col2 AS col1 FROM tab0
----
0
132
23

query I rowsort
SELECT col0 + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 57 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( 10 / - col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 22 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT + COUNT( * ) * - - COUNT( * ) * - COUNT( DISTINCT - + col0 ) * + - MIN( ALL + - col0 ) AS col0 FROM tab2
----
-2025

skipif mysql # not compatible
query I rowsort label-8241
SELECT + COUNT ( * ) * - - COUNT ( * ) * - COUNT ( DISTINCT - + col0 ) * + - MIN ( ALL + - col0 ) AS col0 FROM tab2
----
-2025

query II rowsort
SELECT col2 AS col0, + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 95 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
95
95
95

query I rowsort
SELECT DISTINCT + - 49 FROM tab2 cor0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8245
SELECT COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-8245
SELECT COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL + MAX( ALL + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + MAX ( ALL + col2 ) FROM tab0
----
99

query II rowsort
SELECT col0 AS col2, - col2 AS col1 FROM tab2
----
46
-23
64
-40
75
-58

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE col2 + - + 84 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL + - MIN( ALL + - 17 ) AS col2 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + - MIN ( ALL + - 17 ) AS col2 FROM tab1 AS cor0
----
17

query I rowsort
SELECT 98 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT + 52 - + - 41 * + col0 IN ( - - col1, - col0 / + - col1 ) )
----

query I rowsort
SELECT + + 44 * + col2 * + col1 FROM tab0 AS cor0
----
167508
4356
9240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT DISTINCT 70 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT 70 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT DISTINCT + 35 * col0 DIV + + col0 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT + 35 * col0 / + + col0 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE ( + col1 ) * - CAST( 86 AS SIGNED ) + + ( col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE ( + col1 ) * - CAST ( 86 AS INTEGER ) + + ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT - 39 + - + col2 FROM tab2 AS cor0
----
-62
-79
-97

query I rowsort
SELECT + 35 AS col1 FROM tab1 cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL + + 34 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + + 34 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT ALL - col1 * - CAST( + + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8258
SELECT ALL - col1 * - CAST ( + + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT + + col2 * 99 * - + 61 + + + col2 * col2 AS col1, - 95 FROM tab1 AS cor0
----
-352820
-95
-406028
-95
-570528
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT - 40 * - 83 + CAST( - - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3335
3407
3417

skipif mysql # not compatible
query I rowsort label-8260
SELECT - 40 * - 83 + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3335
3407
3417

query II rowsort
SELECT DISTINCT ( + + col1 ) * - + col1 + + 13 - + + 0 AS col1, col0 FROM tab0
----
-428
87
-6548
15
12
97

query I rowsort
SELECT DISTINCT col1 * + + 46 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT ( - - 80 ) AS col2 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL + COUNT( * ) * - 64 FROM tab1 WHERE + - 45 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL + COUNT ( * ) * - 64 FROM tab1 WHERE + - 45 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8265
SELECT * FROM tab1 WHERE ( NOT - col0 * CAST( 56 AS SIGNED ) * - - col1 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-8265
SELECT * FROM tab1 WHERE ( NOT - col0 * CAST ( 56 AS INTEGER ) * - - col1 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 19 = - ( + col2 ) - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = 38
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8268
SELECT + CAST( NULL AS DECIMAL ) + - - col2 - + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT + CAST ( NULL AS REAL ) + - - col2 - + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + + 25 ) + + + col1 AS col0 FROM tab0 AS cor0
----
-24
-4
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + col0 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 * + + col0 + + col2 col2 FROM tab1 AS cor0
----
-210
-451
-478

query I rowsort
SELECT - - 34 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT DISTINCT + col1 DIV + - col0 col1 FROM tab0
----
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8273
SELECT DISTINCT + col1 / + - col0 col1 FROM tab0
----
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT + 41 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT + 41 / + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 33 <= NULL
----

query I rowsort
SELECT DISTINCT + + col2 * + ( - 15 ) AS col1 FROM tab1 AS cor0
----
-1020
-1440
-885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 col2 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8278
SELECT CAST( NULL AS DECIMAL ) * - 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT CAST ( NULL AS REAL ) * - 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT COUNT( - ( col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8279
SELECT COUNT ( - ( col2 ) ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT col1, + col2 AS col2 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL - SUM( DISTINCT + 13 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL - SUM ( DISTINCT + 13 ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT + 35 * - + 13 AS col1 FROM tab0 AS cor0
----
-455
-455
-455

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT ALL - - 54 DIV - - col1 AS col0 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL - - 54 / - - col1 AS col0 FROM tab1 AS cor0
----
1
10
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 16 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT DISTINCT - col2 DIV - 15 AS col1 FROM tab0
----
0
3
6

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - col2 / - 15 AS col1 FROM tab0
----
0
3
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8286
SELECT * FROM tab1 WHERE col0 BETWEEN + 2 / 85 * + col2 AND CAST( col2 AS DECIMAL ) + - col0 OR ( ( NULL ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8286
SELECT * FROM tab1 WHERE col0 BETWEEN + 2 / 85 * + col2 AND CAST ( col2 AS REAL ) + - col0 OR ( ( NULL ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * col1 + + + col0 * + col0 * ( - col0 ) * col2 FROM tab2
----
-10480832
-2236382
-24463725

query II rowsort
SELECT col0 + + 79 AS col0, col1 * + col1 FROM tab2 AS cor0
----
125
2601
143
5929
154
4489

query I rowsort
SELECT ALL + 72 AS col2 FROM tab0 cor0 WHERE NOT col0 - - 28 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + - col0 ) + + + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-60
145
2118

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8291
SELECT ALL col0, col0 * + col2 + - + 53 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8291
SELECT ALL col0, col0 * + col2 + - + 53 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT + + CAST( NULL AS SIGNED ) + - + MAX( DISTINCT 75 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT + + CAST ( NULL AS INTEGER ) + - + MAX ( DISTINCT 75 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + ( - - col1 ) - + + 22 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col1 NOT BETWEEN - col2 + + col1 AND NULL
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT col2 + + 61 FROM tab1 AS cor0
----
120
129
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 + 30 * col1 col1 FROM tab1 AS cor0
----
1424
164
434

query I rowsort
SELECT ALL col1 * - + col2 + + col1 AS col2 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT ALL + + col0 - 91 FROM tab2 AS cor0
----
-16
-27
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL + COUNT( * ) - - MAX( - col1 ) AS col2 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + COUNT ( * ) - - MAX ( - col1 ) AS col2 FROM tab2 cor0
----
-48

query I rowsort
SELECT + + col1 FROM tab0 WHERE 96 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + + col2 col2, + 48 AS col1 FROM tab2
----
-28
48
-37
48
-9
48

query I rowsort
SELECT ALL - col2 * - 15 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ( - 76 ) * + MAX( + col1 ) AS col2 FROM tab0
----
-6156

skipif mysql # not compatible
query I rowsort label-8303
SELECT ( - 76 ) * + MAX ( + col1 ) AS col2 FROM tab0
----
-6156

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT col1 * ( - col0 ) * + + ( + + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab0
----
-158949
-18225
-9409

skipif mysql # not compatible
query I rowsort label-8305
SELECT col1 * ( - col0 ) * + + ( + + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab0
----
-158949
-18225
-9409

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 < col2 + + - col1 * - col1
----

query I rowsort
SELECT ALL ( - col0 ) + 83 + + col1 AS col0 FROM tab2
----
75
88
96

query II rowsort
SELECT ALL 71, 86 + + + 7 AS col2 FROM tab1
----
71
93
71
93
71
93

query I rowsort
SELECT DISTINCT + col2 * - 82 FROM tab1
----
-4838
-5576
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT + COUNT( * ) * - + COUNT( - ( - - col2 ) ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8310
SELECT + COUNT ( * ) * - + COUNT ( - ( - - col2 ) ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - - 70 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 13 = 96
----
-3

skipif mysql # not compatible
query I rowsort label-8312
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 13 = 96
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - 82 col0 FROM tab2 AS cor0
----
4182
5494
6314

onlyif mysql # DIV for integer division: 
query II rowsort label-8314
SELECT ALL - 94 * + 74 + + col0, - col1 DIV - + ( 9 ) + - - 94 AS col0 FROM tab0 cor0
----
-6859
94
-6869
96
-6941
103

skipif mysql # not compatible
query II rowsort label-8314
SELECT ALL - 94 * + 74 + + col0, - col1 / - + ( 9 ) + - - 94 AS col0 FROM tab0 cor0
----
-6859
94
-6869
96
-6941
103

query I rowsort
SELECT col2 * + 59 + - col2 + - + 54 * + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
11088
1120
5264

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT + col0 DIV col1 - - 73 + + col1 col1 FROM tab0 AS cor0
----
154
171
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8316
SELECT + col0 / col1 - - 73 + + col1 col1 FROM tab0 AS cor0
----
154
171
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT - + 79 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT - + 79 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-237

query I rowsort
SELECT ALL - 55 AS col0 FROM tab2
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT DISTINCT - 96 DIV - col2 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - 96 / - col2 AS col2 FROM tab2
----
1
2
4

query II rowsort
SELECT ALL - col1 AS col2, + col1 AS col2 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT + col0 DIV - - 77 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8321
SELECT + col0 / - - 77 AS col0 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT DISTINCT - 96 AS col1, + ( - + COUNT( * ) ) AS col1 FROM tab1
----
-96
-3

skipif mysql # not compatible
query II rowsort label-8322
SELECT DISTINCT - 96 AS col1, + ( - + COUNT ( * ) ) AS col1 FROM tab1
----
-96
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT 85 * + - COUNT( * ) FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-8323
SELECT 85 * + - COUNT ( * ) FROM tab1
----
-255

query I rowsort
SELECT DISTINCT col0 * - - ( + + col2 ) * + + col0 + - 32 + + - col2 FROM tab0
----
10496
75648
931360

query I rowsort
SELECT DISTINCT + 89 + 93 AS col1 FROM tab2
----
182

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8326
SELECT DISTINCT - col1 AS col1, - col0 + + col2 - + + 84 - + 31 / - col1 * CAST( NULL AS SIGNED ) * - CAST( - col0 AS DECIMAL ) AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-8326
SELECT DISTINCT - col1 AS col1, - col0 + + col2 - + + 84 - + 31 / - col1 * CAST ( NULL AS INTEGER ) * - CAST ( - col0 AS REAL ) AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 WHERE NULL <> - col0
----

query I rowsort
SELECT 78 * col2 * - col2 FROM tab2 cor0
----
-124800
-262392
-41262

query I rowsort
SELECT + 46 * - + col1 * - - 36 AS col2 FROM tab0 AS cor0
----
-134136
-1656
-34776

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT - COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8331
SELECT DISTINCT + + MIN( ALL + - col0 ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-97
3

skipif mysql # not compatible
query II rowsort label-8331
SELECT DISTINCT + + MIN ( ALL + - col0 ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-97
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * col0 AND 99 * col2 * - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8333
SELECT DISTINCT - - 25 - - 12 AS col0, ( - - ( - - 14 ) ) DIV - 94 + + ( + + ( - col0 ) ) FROM tab0 cor0
----
37
-15
37
-87
37
-97

skipif mysql # not compatible
query II rowsort label-8333
SELECT DISTINCT - - 25 - - 12 AS col0, ( - - ( - - 14 ) ) / - 94 + + ( + + ( - col0 ) ) FROM tab0 cor0
----
37
-15
37
-87
37
-97

query I rowsort
SELECT DISTINCT - + 70 * + - 3 * - 64 - + col1 AS col0 FROM tab0 AS cor0
----
-13441
-13461
-13521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT CAST( MAX( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT CAST ( MAX ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT col2 - - col2 * + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT col2 - - col2 * + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col1 col2 FROM tab2 AS cor0 WHERE NULL <> - 22
----

query I rowsort
SELECT col0 - - + ( 32 ) AS col0 FROM tab2
----
107
78
96

query I rowsort
SELECT ALL - col2 - + 44 * + + 84 FROM tab1
----
-3755
-3764
-3792

query I rowsort
SELECT ALL - col1 * + 33 * - col1 - + 15 AS col0 FROM tab2 AS cor0
----
148122
195642
85818

query I rowsort
SELECT DISTINCT col1 * - 82 * - - col1 AS col0 FROM tab0 AS cor0
----
-36162
-538002
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL COUNT( * ) * - 39 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL COUNT ( * ) * - 39 FROM tab2 AS cor0
----
-117

query I rowsort
SELECT ALL + 81 * + col0 * + - col1 FROM tab1 AS cor0
----
-34425
-346437
-57834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT + 26 + - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT + 23 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT + 26 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT + 23 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL + + COUNT( ALL - - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL + + COUNT ( ALL - - col1 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT + col0 * 53 AS col0, col0 + col1 FROM tab0
----
4611
108
5141
98
795
96

query I rowsort
SELECT - 43 * + ( - 81 ) + - 9 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef09ec475bdd09f786018215e52ea393

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - 0 * MIN( DISTINCT - + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - 0 * MIN ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT - col0 + - 68 + 23 IS NULL
----
1
21
81

query I rowsort
SELECT + - col0 * 4 FROM tab1 AS cor0
----
-204
-340
-364

query I rowsort
SELECT - ( - 21 ) * + col1 AS col1 FROM tab1 AS cor0
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT - - MAX( DISTINCT 21 ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT - - MAX ( DISTINCT 21 ) AS col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT - col0 * + 71 FROM tab2 AS cor0
----
-3266
-4544
-5325

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 13 BETWEEN + 3 AND NULL
----

query I rowsort
SELECT 75 + + col2 - - col0 FROM tab2
----
144
179
208

query I rowsort
SELECT col2 * - + col0 + + col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT - 35 * + col0 AS col1 FROM tab1
----
-1785
-2975
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT DISTINCT - COUNT( * ) + 54 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT - COUNT ( * ) + 54 FROM tab0
----
51

query II rowsort
SELECT ALL + 2 + - - ( - - ( + col1 ) ) - - col1 AS col0, + col0 AS col1 FROM tab0
----
164
15
4
97
44
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 + col2 col1 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT SUM( col0 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-8361
SELECT SUM ( col0 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8362
SELECT ALL - + COUNT( * ) DIV + + 46 * ( - - MIN( ALL - col2 ) ) + + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - + COUNT ( * ) / + + 46 * ( - - MIN ( ALL - col2 ) ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 53 + ( + + 38 ) FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT 51 - + col2 * + col2 AS col0 FROM tab2
----
-1549
-3313
-478

query I rowsort
SELECT DISTINCT + col1 + 56 AS col0 FROM tab0 AS cor0
----
137
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + + MIN( col0 ) + + 58 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8366
SELECT + + MIN ( col0 ) + + 58 FROM tab0 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT DISTINCT + CAST( + ( - - 63 ) AS SIGNED ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + CAST ( + ( - - 63 ) AS INTEGER ) FROM tab0 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col0 col2, - 10 AS col0 FROM tab1
----
2601
-10
7225
-10
8281
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col0 FROM tab1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT MAX( ALL - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8370
SELECT MAX ( ALL - - col1 ) FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8371
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * CAST( - + 16 AS SIGNED ) * + ( - col0 ) * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8371
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * CAST ( - + 16 AS INTEGER ) * + ( - col0 ) * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8373
SELECT + 24, col1 * + col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND + - ( 28 )
----

skipif mysql # not compatible
query II rowsort label-8373
SELECT + 24, col1 * + col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + - ( 28 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 67 AS col1, 21 + - + 18 col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - col0 + + ( - col1 ) FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8376
SELECT ALL 7, - MIN( ALL + col1 ) * ( + + ( 76 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8376
SELECT ALL 7, - MIN ( ALL + col1 ) * ( + + ( 76 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL - MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL - MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - + col0 + + - 75 FROM tab1 cor0
----
-126
-160
-166

query I rowsort
SELECT + - ( - 3 ) FROM tab1 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT - 33 AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8380
SELECT - 33 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT + 35 + - - col2 * 32 * - col0 AS col1 FROM tab1
----
-156637
-160445
-197981

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 - - 60 AS col1, col1 FROM tab0 AS cor0
----
107
81
159
1
70
21

query I rowsort
SELECT DISTINCT - + col2 + + - 30 - col0 * - + col0 AS col0 FROM tab2 AS cor0
----
2063
4026
5537

query I rowsort
SELECT - ( col0 ) + 25 FROM tab2 AS cor0
----
-21
-39
-50

query I rowsort
SELECT + 91 + col2 FROM tab0 AS cor0
----
101
138
190

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT DISTINCT col0 - col1 - col2 DIV + 98 FROM tab0
----
-66
66
95

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT col0 - col1 - col2 / + 98 FROM tab0
----
-66
66
95

query I rowsort
SELECT ALL + col2 - 90 AS col1 FROM tab2
----
-32
-50
-67

query I rowsort
SELECT ALL - col1 * - - col1 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 WHERE - + col1 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 75, - col1 AS col1 FROM tab1 AS cor0
----
-75
-14
-75
-47
-75
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT + COUNT( + - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + COUNT ( + - col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 * - - 91 AS col1 FROM tab2 cor0
----
-2093
-3640
-5278

query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT col0, col0 * + + col1 FROM tab1 AS cor0
----
51
714
85
425
91
4277

query I rowsort
SELECT DISTINCT - 35 * - 43 AS col0 FROM tab0
----
1505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, + col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab2 WHERE col1 + 15 * col0 + - 29 + - col0 IS NOT NULL
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col2 AS col2 FROM tab0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT ALL - col0 AS col2, col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + MAX( + - 69 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8401
SELECT + MAX ( + - 69 ) FROM tab2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8402
SELECT + - 51 DIV - COUNT( * ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8402
SELECT + - 51 / - COUNT ( * ) FROM tab1 AS cor0
----
17

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( - + col1 IS NULL )
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 98 - + 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT ( - COUNT( ALL + + 11 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT ( - COUNT ( ALL + + 11 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + + + col1 < + 53 * col2
----
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + + + col1 < + 53 * col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( 54 ), col2 col0 FROM tab0 AS cor0
----
-54
10
-54
47
-54
99

query II rowsort
SELECT ALL - - col1 * 1 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT - col2 + - + 10 FROM tab1 AS cor0
----
-106
-69
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 4 col1 FROM tab0 cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8411
SELECT * FROM tab1 WHERE - - col2 NOT BETWEEN NULL AND col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8411
SELECT * FROM tab1 WHERE - - col2 NOT BETWEEN NULL AND col2 + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT + 42 AS col0, 36 + + col1 * + col0 AS col1 FROM tab2
----
42
2382
42
4964
42
5061

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT - col1 * + 36 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8414
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - + CAST( NULL AS DECIMAL ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8414
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - + CAST ( NULL AS REAL ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT COUNT( col2 ) + + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT COUNT ( col2 ) + + COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT - col1 + - col0 DIV col0 + - - col2 FROM tab2
----
-10
-29
-38

skipif mysql # not compatible
query I rowsort label-8416
SELECT - col1 + - col0 / col0 + - - col2 FROM tab2
----
-10
-29
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ( 66 ) * + + COUNT( * ) + MAX( - 88 ) FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-8417
SELECT ( 66 ) * + + COUNT ( * ) + MAX ( - 88 ) FROM tab1
----
110

query I rowsort
SELECT - 95 + + 53 * - ( - col0 ) * + - 43 FROM tab0
----
-198368
-221158
-34280

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 95 + col2 - - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col2 / - col0 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + - col1 col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT 24 DIV + ( + col0 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8422
SELECT 24 / + ( + col0 ) AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + 21 * - 60 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( col1 * 26 )
----

query I rowsort
SELECT 87 FROM tab2 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8426
SELECT DISTINCT - 10 DIV + COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT - 10 / + COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL + 54 + col1 FROM tab2
----
105
121
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT DISTINCT - CAST( NULL AS SIGNED ) / ( + col0 ) + 38 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / ( + col0 ) + 38 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col1 + - col2 IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT + 22 DIV 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8431
SELECT + 22 / 96 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - 39 + - COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-8432
SELECT - 39 + - COUNT ( * ) FROM tab2
----
-42

query I rowsort
SELECT - col1 + 40 AS col2 FROM tab0
----
-41
19
39

query I rowsort
SELECT ALL 84 + 21 * col0 AS col2 FROM tab0
----
1911
2121
399

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT + 86 * 12 - 53 DIV col0 AS col1 FROM tab2
----
1031
1032
1032

skipif mysql # not compatible
query I rowsort label-8436
SELECT + 86 * 12 - 53 / col0 AS col1 FROM tab2
----
1031
1032
1032

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 3 IN ( - col0 * + 93 + ( - 15 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * 60 + - col1 FROM tab1
----
2773
295
826

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT ( NULL ) = col2 + + 51
----

query I rowsort
SELECT col2 + col0 FROM tab1 WHERE 5 * + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT col1 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) BETWEEN 56 + 35 AND + 95
----

skipif mysql # not compatible
query I rowsort label-8441
SELECT col1 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) BETWEEN 56 + 35 AND + 95
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT 32 - - col1 AS col1 FROM tab2
----
109
83
99

query I rowsort
SELECT 69 + + col1 * col2 AS col2 FROM tab0
----
168
279
3876

query I rowsort
SELECT DISTINCT col0 - 11 * 78 AS col1 FROM tab0
----
-761
-771
-843

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( ( 82 ) * + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IN ( - col1 / col0 )
----

query I rowsort
SELECT col1 * ( - 53 ) AS col0 FROM tab2 WHERE NOT ( - ( + 80 ) * col2 ) BETWEEN ( + col1 * + col1 ) AND + 29
----
-2703
-3551
-4081

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8449
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 85 - 98 FROM tab2
----
-183
-183
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT DISTINCT 96 + + col1 DIV - col2 AS col0 FROM tab2
----
94
95

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT 96 + + col1 / - col2 AS col0 FROM tab2
----
94
95

query I rowsort
SELECT ALL + 51 + + col2 FROM tab1 WHERE NULL IS NULL
----
110
119
147

query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab1 WHERE + col0 + - col2 NOT BETWEEN ( + col1 + - col1 ) AND ( + col0 )
----
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT 57 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT ALL + col0 DIV 41 FROM tab1 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL + col0 / 41 FROM tab1 cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT COUNT( * ) * + 66 AS col2 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8457
SELECT COUNT ( * ) * + 66 AS col2 FROM tab0 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT + col2 DIV 36 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8458
SELECT + col2 / 36 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT + col1 + + 16 * ( - 50 ) FROM tab0
----
-719
-779
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL + 96 + 0 * COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + 96 + 0 * COUNT ( * ) FROM tab1
----
96

query I rowsort
SELECT DISTINCT 40 + 92 FROM tab0
----
132

query I rowsort
SELECT - col2 * 13 + col0 FROM tab2
----
-253
-456
-679

query I rowsort
SELECT DISTINCT col1 * 63 + + col2 FROM tab2
----
3236
4279
4891

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT DISTINCT col0 DIV col0 + + col0 * col1 FROM tab0
----
1216
1828
98

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT col0 / col0 + + col0 * col1 FROM tab0
----
1216
1828
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 + 62 * col1 col1 FROM tab2
----
3093
4085
4705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT ALL + 27 * COUNT( * ) + + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + 27 * COUNT ( * ) + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT DISTINCT - + col1 + - col0 DIV + col1 FROM tab1 AS cor0
----
-17
-22
-48

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT - + col1 + - col0 / + col1 FROM tab1 AS cor0
----
-17
-22
-48

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE ( 11 ) <> NULL
----

query I rowsort
SELECT - - col1 + + col2 * + col2 AS col1 FROM tab1 cor0
----
3486
4671
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - ( - COUNT( * ) ) + - 9 col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8470
SELECT ALL - ( - COUNT ( * ) ) + - 9 col0 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( ( 62 ) ) > col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT - - col0 + - col1 DIV - 97 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - - col0 + - col1 / - 97 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8473
SELECT ALL CAST( col1 AS SIGNED ) - col1 * col1 AS col2 FROM tab2 cor0 WHERE ( 53 ) IS NOT NULL
----
-2550
-4422
-5852

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL CAST ( col1 AS INTEGER ) - col1 * col1 AS col2 FROM tab2 cor0 WHERE ( 53 ) IS NOT NULL
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL MAX( DISTINCT + 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL MAX ( DISTINCT + 40 ) FROM tab1
----
40

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 59 <> col2 + col1
----

query I rowsort
SELECT + col1 * 35 * 39 FROM tab1
----
19110
64155
6825

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 67
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 46 BETWEEN ( col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col1 + + 66 * + ( col1 + - 93 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 BETWEEN 45 + col1 * - 14 AND ( - col1 )
----

query I rowsort
SELECT + 62 + + + col0 - - 60 FROM tab1 AS cor0
----
173
207
213

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 60 * - ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8482
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 60 * - ( + col2 )
----
0

query I rowsort
SELECT + col0 * + col2 * - col2 + + col2 FROM tab2 AS cor0
----
-102360
-24311
-252242

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT 11 + - + MIN( - 77 ) AS col1 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8484
SELECT 11 + - + MIN ( - 77 ) AS col1 FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT MAX( + col1 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 5 + + col1 BETWEEN NULL AND ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT MAX ( + col1 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 5 + + col1 BETWEEN NULL AND ( + col0 )
----
NULL

query I rowsort
SELECT + 22 + col0 + - 64 FROM tab1 AS cor0
----
43
49
9

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
23
40
58

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 89 < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 64 > ( NULL )
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 cor0 WHERE NOT 17 < 4 + - col0 * col0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col2 * + col2 + + - col1 FROM tab1 AS cor0
----
3476
4577
9202

query I rowsort
SELECT col2 / col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - 42 + + + 34 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT + 9, 43 * + COUNT( * ) * - 50 AS col0 FROM tab0 AS cor0
----
9
-6450

skipif mysql # not compatible
query II rowsort label-8493
SELECT + 9, 43 * + COUNT ( * ) * - 50 AS col0 FROM tab0 AS cor0
----
9
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + - MIN( DISTINCT - 22 ) AS col0 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8494
SELECT + - MIN ( DISTINCT - 22 ) AS col0 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT - ( + + MAX( + col2 ) ) * + 83 FROM tab2 AS cor0
----
-4814

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT - ( + + MAX ( + col2 ) ) * + 83 FROM tab2 AS cor0
----
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( ( 8 ) ) NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8498
SELECT ALL + 84, ( + MAX( + col0 ) ) AS col1 FROM tab0 AS cor0
----
84
97

skipif mysql # not compatible
query II rowsort label-8498
SELECT ALL + 84, ( + MAX ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
84
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8499
SELECT ALL * FROM tab2 WHERE ( - + ( - col2 ) / + col2 + + CAST( NULL AS SIGNED ) ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8499
SELECT ALL * FROM tab2 WHERE ( - + ( - col2 ) / + col2 + + CAST ( NULL AS INTEGER ) ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + 0 * COUNT( DISTINCT col2 ) FROM tab0 WHERE NOT - col1 + - col1 * - ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT + 0 * COUNT ( DISTINCT col2 ) FROM tab0 WHERE NOT - col1 + - col1 * - ( - col0 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 10 <= ( - + 73 / - 15 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 25 NOT IN ( col0 + + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL + 57 * - COUNT( * ) FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + 57 * - COUNT ( * ) FROM tab2
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT + COUNT( * ) * - - CAST( - - 53 AS SIGNED ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-8505
SELECT + COUNT ( * ) * - - CAST ( - - 53 AS INTEGER ) FROM tab0
----
159

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE col2 / - - 45 + col0 * + 92 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 34 = + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + + col0 col0 FROM tab1 AS cor0
----
111
117
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( 76 ) AND + col2 + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT - AVG ( DISTINCT + + 94 ) + + 72 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT - AVG ( DISTINCT + + 94 ) + + 72 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL - + MIN( DISTINCT - - 65 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-65

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - + MIN ( DISTINCT - - 65 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 78 AS col0 FROM tab2
----
-51
78
-67
78
-77
78

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT MAX( - 63 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8515
SELECT MAX ( - 63 ) FROM tab2
----
-63

query II rowsort
SELECT - - 12, col0 AS col1 FROM tab0 AS cor0
----
12
15
12
87
12
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT ALL + CAST( NULL AS SIGNED ) + - 90 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + CAST ( NULL AS INTEGER ) + - 90 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 43 + col1 AS col2 FROM tab2 AS cor0
----
110
120
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT DISTINCT - col2 - - ( - - col0 ) + + + col1 * - + CAST( - col2 AS SIGNED ) * 45 + 41 FROM tab0 AS cor0
----
171324
4494
9568

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT - col2 - - ( - - col0 ) + + + col1 * - + CAST ( - col2 AS INTEGER ) * 45 + 41 FROM tab0 AS cor0
----
171324
4494
9568

query I rowsort
SELECT DISTINCT + ( + col0 ) + + 12 FROM tab0 cor0
----
109
27
99

query I rowsort
SELECT ALL 1 - - - col2 FROM tab2
----
-22
-39
-57

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 + - col0 + - 74 FROM tab0
----
10
-171
47
-136
99
-270

query I rowsort
SELECT DISTINCT ( - col2 ) AS col2 FROM tab1 WHERE NOT + ( - 34 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT + CAST( NULL AS SIGNED ) / + col1 + - col1 * 50 * + col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8525
SELECT + CAST ( NULL AS INTEGER ) / + col1 + - col1 * 50 * + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 98 + 42 FROM tab2
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + 89 + + SUM( + 86 ) FROM tab0
----
347

skipif mysql # not compatible
query I rowsort label-8527
SELECT + 89 + + SUM ( + 86 ) FROM tab0
----
347

onlyif mysql # DIV for integer division: 
query II rowsort label-8528
SELECT DISTINCT col2 DIV + col1 + + ( + 95 ) AS col2, 29 AS col2 FROM tab1
----
101
29
106
29
96
29

skipif mysql # not compatible
query II rowsort label-8528
SELECT DISTINCT col2 / + col1 + + ( + 95 ) AS col2, 29 AS col2 FROM tab1
----
101
29
106
29
96
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - 87 * + + COUNT( * ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-8529
SELECT - 87 * + + COUNT ( * ) FROM tab2
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT 46 * COUNT( * ) AS col1 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-8530
SELECT 46 * COUNT ( * ) AS col1 FROM tab0
----
138

query I rowsort
SELECT ALL - + 81 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - 87 * + col2 FROM tab1
----
-5133
-5916
-8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 62 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT - CAST( + + MAX( DISTINCT 0 ) AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT - CAST ( + + MAX ( DISTINCT 0 ) AS INTEGER ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL - ( - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL - ( - COUNT ( * ) ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 43 col0 FROM tab2 cor0
----
1978
2752
3225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8537
SELECT DISTINCT AVG ( ALL CAST( col0 AS DECIMAL ) ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 16 * - 84 + + col0 NOT BETWEEN 66 / col2 + - col1 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT AVG ( ALL CAST ( col0 AS REAL ) ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 16 * - 84 + + col0 NOT BETWEEN 66 / col2 + - col1 AND col0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * + col2 AND NULL
----

query II rowsort
SELECT - 0, 60 AS col0 FROM tab0
----
0
60
0
60
0
60

query I rowsort
SELECT ALL + 84 FROM tab2 WHERE ( col2 * - - col0 + 25 ) NOT IN ( 56 * + + 25 )
----
84
84
84

query I rowsort
SELECT - 47 AS col1 FROM tab2 WHERE NOT - - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8543
SELECT 60 AS col1, - col0 - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
60
NULL
60
NULL
60
NULL

skipif mysql # not compatible
query II rowsort label-8543
SELECT 60 AS col1, - col0 - col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
60
NULL
60
NULL
60
NULL

query I rowsort
SELECT DISTINCT col1 + - + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT ALL - col0 DIV + col2 + - - col2 + - - ( + col2 ) FROM tab2 AS cor0
----
115
44
79

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - col0 / + col2 + - - col2 + - - ( + col2 ) FROM tab2 AS cor0
----
115
44
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8546
SELECT DISTINCT - COUNT( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT - COUNT ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT DISTINCT col1 + - ( col1 ) + col2 DIV + col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT col1 + - ( col1 ) + col2 / + col2 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN col1 AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 / - + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8550
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT - - ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8551
SELECT - - ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - ( + col0 ) col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8553
SELECT ALL - col1 - - + col2 * - col2 + col0 AS col0, - col1 DIV 26 FROM tab1 AS cor0
----
-3401
0
-4580
-1
-9179
0

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL - col1 - - + col2 * - col2 + col0 AS col0, - col1 / 26 FROM tab1 AS cor0
----
-3401
0
-4580
-1
-9179
0

query I rowsort
SELECT - 45 * - col1 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8555
SELECT ALL - COUNT( * ) - - COUNT( * ) DIV - - COUNT( * ), - COUNT( * ) AS col0 FROM tab0
----
-2
-3

skipif mysql # not compatible
query II rowsort label-8555
SELECT ALL - COUNT ( * ) - - COUNT ( * ) / - - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0
----
-2
-3

query I rowsort
SELECT ALL - col0 * - + col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT 18 - COUNT( * ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8557
SELECT 18 - COUNT ( * ) AS col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - ( - + col0 ) * - - col1 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT 75 + ( - col0 ) FROM tab0
----
-12
-22
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT - 43 AS col0, COUNT( * ) FROM tab2
----
-43
3

skipif mysql # not compatible
query II rowsort label-8560
SELECT - 43 AS col0, COUNT ( * ) FROM tab2
----
-43
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - ( - + 87 ) IS NOT NULL
----

query II rowsort
SELECT ALL - + col1 AS col2, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + col2 * + 50 FROM tab2 AS cor0 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8564
SELECT DISTINCT + - CAST( - - col1 AS SIGNED ) AS col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-8564
SELECT DISTINCT + - CAST ( - - col1 AS INTEGER ) AS col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----

query II rowsort
SELECT col0 AS col2, 84 FROM tab0 AS cor0
----
15
84
87
84
97
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT DISTINCT + MIN( ALL + + 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT + MIN ( ALL + + 80 ) FROM tab2
----
80

query III rowsort
SELECT ALL * FROM tab0 WHERE + 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL + MAX( ALL + 76 ) AS col1 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + MAX ( ALL + 76 ) AS col1 FROM tab1
----
76

query I rowsort
SELECT - 88 FROM tab0 WHERE NULL IS NULL
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 + col1 col1 FROM tab2
----
-20
-4
6

query I rowsort
SELECT DISTINCT + col0 + + 20 * - - col2 * - 2 FROM tab1
----
-2275
-2629
-3789

query I rowsort
SELECT DISTINCT - col2 * ( col1 ) * col0 + - col0 + - 58 - - col2 + + 20 FROM tab2 AS cor0
----
-197182
-291505
-54019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT DISTINCT + col0 + + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT + col0 + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT - 78 DIV - - ( col2 ) FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT - 78 / - - ( col2 ) FROM tab0 AS cor0
----
-1
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8576
SELECT ALL + - col1 DIV + col0 + - col1 + - + 60 AS col0 FROM tab2 AS cor0
----
-112
-127
-138

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + - col1 / + col0 + - col1 + - + 60 AS col0 FROM tab2 AS cor0
----
-112
-127
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT - CAST( NULL AS SIGNED ) * - ( ( 68 ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT - CAST ( NULL AS INTEGER ) * - ( ( 68 ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 98 * - - col0 FROM tab2
----
-4508
-6272
-7350

query I rowsort
SELECT - col0 * + col1 + 28 + - + 25 - - - col2 * - col0 FROM tab0 AS cor0
----
-507
-954
9509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT CAST( NULL AS SIGNED ) + ( - + 68 ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT CAST ( NULL AS INTEGER ) + ( - + 68 ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT DISTINCT + CAST( - col0 AS SIGNED ) - - col1 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - - col1 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT DISTINCT - 88 + + col2 + - col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2593
-7254
-8301

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT - 88 + + col2 + - col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2593
-7254
-8301

query I rowsort
SELECT col0 + - - col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT + - col2 - + - col1 - ( 64 ) FROM tab2 AS cor0
----
-27
-36
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 63 * - - col1 AS col1, 86 col0 FROM tab0
----
1323
86
5103
86
63
86

query I rowsort
SELECT col0 * - ( - 4 ) AS col0 FROM tab1
----
204
340
364

onlyif mysql # DIV for integer division: 
query I rowsort label-8587
SELECT col2 DIV + + col1 * + col1 AS col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8587
SELECT col2 / + + col1 * + col1 AS col1 FROM tab0
----
0
0
99

query I rowsort
SELECT - 49 * + col2 FROM tab0 WHERE NOT 9 NOT BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL - COUNT( - - 65 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - COUNT ( - - 65 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT - 84 + + + COUNT( * ) + - + 23 AS col2 FROM tab1 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - 84 + + + COUNT ( * ) + - + 23 AS col2 FROM tab1 AS cor0
----
-104

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + 23 * + ( 55 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL - - SUM( - col2 ) col1 FROM tab1 cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8593
SELECT ALL - - SUM ( - col2 ) col1 FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT - - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8594
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

query I rowsort
SELECT DISTINCT - - 26 AS col1 FROM tab0 AS cor0
----
26

query I rowsort
SELECT col1 * - 56 AS col1 FROM tab2 cor0
----
-2856
-3752
-4312

onlyif mysql # DIV for integer division: 
query II rowsort label-8597
SELECT col0 * 3 DIV - 76, col0 + - - col0 col1 FROM tab0 AS cor0
----
-3
174
-3
194
0
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8597
SELECT col0 * 3 / - 76, col0 + - - col0 col1 FROM tab0 AS cor0
----
-3
174
-3
194
0
30

query II rowsort
SELECT ALL + col1, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT MAX( + - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8599
SELECT MAX ( + - col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL + 82 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
82
82
82

query III rowsort
SELECT ALL * FROM tab0 WHERE 16 / + - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - col0 * - 99 FROM tab0
----
1532
8623
9702

query I rowsort
SELECT DISTINCT + col0 * - - col2 + col0 * + - col0 AS col0 FROM tab2
----
-1058
-1275
-1536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 * col1 * - 75 + - 7 col2 FROM tab0
----
23127518
330743
7418

query II rowsort
SELECT ALL 61 + + col1 * - col1 + - col1 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-2591
46
-4495
75
-5945
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT 18 + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8606
SELECT 18 + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8607
SELECT 57, - 25 DIV COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 16 <= ( + col2 )
----
57
-2

skipif mysql # not compatible
query II rowsort label-8607
SELECT 57, - 25 / COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 16 <= ( + col2 )
----
57
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL - - COUNT( * ) + 77 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - - COUNT ( * ) + 77 FROM tab0 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT + col0 * - - col2 * + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL >= 87
----

skipif mysql # not compatible
query I rowsort label-8609
SELECT + col0 * - - col2 * + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL >= 87
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + + 81 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + - - col2 col0 FROM tab1
----
124
133
161

query II rowsort
SELECT DISTINCT col2 * - + 6 AS col2, 13 + col2 AS col2 FROM tab0
----
-282
60
-594
112
-60
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8613
SELECT ALL - SUM( ALL 45 ) AS col2, + 69 AS col0 FROM tab1 AS cor0
----
-135
69

skipif mysql # not compatible
query II rowsort label-8613
SELECT ALL - SUM ( ALL 45 ) AS col2, + 69 AS col0 FROM tab1 AS cor0
----
-135
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8614
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ), 13 + + 66 AS col1 FROM tab0 AS cor0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-8614
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ), 13 + + 66 AS col1 FROM tab0 AS cor0
----
NULL
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * - col0 col1 FROM tab1 AS cor0 WHERE - col2 >= ( + ( - 46 ) ) * - + col1 / - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8616
SELECT - CAST( NULL AS DECIMAL ) - - 67 + - col0 * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT - CAST ( NULL AS REAL ) - - 67 + - col0 * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + - 15 ) FROM tab1 AS cor0
----
-15
-15
-15

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) > col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 67 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 + 76 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + 97 * + col1 * 73 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT - col2 * + 7 AS col0 FROM tab0
----
-329
-693
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8623
SELECT DISTINCT col2 AS col2, + CAST( NULL AS SIGNED ) + + + ( - col1 ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8623
SELECT DISTINCT col2 AS col2, + CAST ( NULL AS INTEGER ) + + + ( - col1 ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT + 24 * CAST( NULL AS SIGNED ) * + + 97 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT + 24 * CAST ( NULL AS INTEGER ) * + + 97 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 61 FROM tab1 cor0
----
-61

query II rowsort
SELECT - 87 AS col2, col1 * + col2 FROM tab0 AS cor0
----
-87
210
-87
3807
-87
99

query II rowsort
SELECT DISTINCT - - col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT - col0 AS col0, col2 FROM tab2 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT - 13 / - + 63 - - COUNT( * ) * COUNT( + col2 ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - 13 / - + 63 - - COUNT ( * ) * COUNT ( + col2 ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT + CAST( 19 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-8630
SELECT + CAST ( 19 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT + col0 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8631
SELECT + col0 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL col2 + - col2 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8633
SELECT ALL SUM( col2 ) * - COUNT( * ) * + + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-1404

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL SUM ( col2 ) * - COUNT ( * ) * + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-1404

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8634
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8634
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT ALL + CAST( NULL AS SIGNED ) * + + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL + CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL COUNT( * ) + - 15 FROM tab2 AS cor0 WHERE NOT col2 * - col1 * - col2 > NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL COUNT ( * ) + - 15 FROM tab2 AS cor0 WHERE NOT col2 * - col1 * - col2 > NULL
----
-15

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT + - COUNT( DISTINCT + col2 ) + + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8638
SELECT + - COUNT ( DISTINCT + col2 ) + + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8639
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col2 FROM tab1
----
-99
-99
-99

query I rowsort
SELECT + 67 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col1 * + col2 FROM tab2 WHERE - col0 + col0 / - col2 IS NOT NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-8643
SELECT DISTINCT + COUNT( * ), - 27 AS col1 FROM tab1 WHERE - + col2 / + 93 - 36 + - + col2 NOT BETWEEN col2 AND + col1 + + col0
----
3
-27

skipif mysql # not compatible
query II rowsort label-8643
SELECT DISTINCT + COUNT ( * ), - 27 AS col1 FROM tab1 WHERE - + col2 / + 93 - 36 + - + col2 NOT BETWEEN col2 AND + col1 + + col0
----
3
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT CAST( NULL AS SIGNED ) / + col1 + - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT CAST ( NULL AS INTEGER ) / + col1 + - - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - 64 + - - COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-8645
SELECT - 64 + - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
-58

query III rowsort
SELECT * FROM tab2 WHERE + col0 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT + 83 + + COUNT( * ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT + 83 + + COUNT ( * ) FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT 40 - + col2 AS col1 FROM tab1 AS cor0
----
-19
-28
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT - SUM( DISTINCT - + col0 ) FROM tab1 WHERE + - 66 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT - SUM ( DISTINCT - + col0 ) FROM tab1 WHERE + - 66 IS NULL
----
NULL

query II rowsort
SELECT + 79, - col2 AS col2 FROM tab0 WHERE + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT COUNT( * ) + - 17 - - - COUNT( * ) AS col0 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-8651
SELECT COUNT ( * ) + - 17 - - - COUNT ( * ) AS col0 FROM tab2
----
-17

query I rowsort
SELECT 99 + - 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8653
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT + + SUM( DISTINCT - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT + + SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 59 col1 FROM tab0 AS cor0
----
59
59
59

query II rowsort
SELECT - - col1 AS col1, - 93 + + 38 + + col1 FROM tab1 AS cor0
----
14
-41
47
-8
5
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-8657
SELECT DISTINCT - - 74, + COUNT( * ) AS col1 FROM tab1 cor0
----
74
3

skipif mysql # not compatible
query II rowsort label-8657
SELECT DISTINCT - - 74, + COUNT ( * ) AS col1 FROM tab1 cor0
----
74
3

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - + col0 * - col2, col0 FROM tab1 cor0
----
4896
51
5015
85
6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT - - MIN( - + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8660
SELECT - - MIN ( - + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col2 FROM tab0
----
1
21
81

query I rowsort
SELECT col0 * - 42 * 85 FROM tab1
----
-182070
-303450
-324870

query I rowsort
SELECT col0 * + 3 AS col0 FROM tab2
----
138
192
225

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab1 WHERE NOT col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - ( - MIN( - - 6 ) ) * - - 67 AS col0 FROM tab1
----
402

skipif mysql # not compatible
query I rowsort label-8665
SELECT - ( - MIN ( - - 6 ) ) * - - 67 AS col0 FROM tab1
----
402

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 NOT IN ( - - col1 + - + col1 * col1, - 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * + - col1 - col0 AS col2 FROM tab2 AS cor0
----
-2647
-4564
-5993

query I rowsort
SELECT ALL 30 * + - col1 - col0 AS col0 FROM tab2 cor0
----
-1576
-2085
-2374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8669
SELECT DISTINCT - COUNT( ALL + - col0 ) * - - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT - COUNT ( ALL + - col0 ) * - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col0 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL MIN( ALL 55 ) + 81 col2 FROM tab2
----
136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8671
SELECT ALL MIN ( ALL 55 ) + 81 col2 FROM tab2
----
136

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 41 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND - col1
----
41
41
41

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab1 cor0
----
65

query I rowsort
SELECT + col2 * 80 + - 37 AS col0 FROM tab2 AS cor0
----
1803
3163
4603

query I rowsort
SELECT ALL + col1 + - + 58 + col0 AS col1 FROM tab2 AS cor0
----
39
83
84

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE 97 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8678
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE 97 * + col0 IS NULL
----
0

query I rowsort
SELECT + + col0 * ( 62 ) FROM tab0 AS cor0
----
5394
6014
930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT ALL CAST( - CAST( - 68 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL CAST ( - CAST ( - 68 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT ( - 94 ) AS col2 FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT 38 * - - MAX( DISTINCT - + 81 ) FROM tab2
----
-3078

skipif mysql # not compatible
query I rowsort label-8682
SELECT 38 * - - MAX ( DISTINCT - + 81 ) FROM tab2
----
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT + 7 * - ( COUNT( * ) ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-8683
SELECT + 7 * - ( COUNT ( * ) ) FROM tab0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - col1 + - - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL + MIN( ALL - - ( col0 ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + MIN ( ALL - - ( col0 ) ) AS col1 FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) <= NULL )
----

query II rowsort
SELECT ALL + col2 AS col0, col2 AS col1 FROM tab0 WHERE ( NULL ) <> ( + col0 )
----

query II rowsort
SELECT ALL ( + 88 ), 8 * - - col1 * col0 AS col1 FROM tab0
----
88
14616
88
776
88
9720

query I rowsort
SELECT ALL + col2 / - col0 FROM tab2 WHERE NULL NOT IN ( col1, col0, - col2 * + col0 + - 84 + - ( + col2 ) / - 31 + - + col0 )
----

query I rowsort
SELECT ALL col1 + ( - col0 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT - 23 FROM tab2 AS cor0 WHERE NOT ( + 34 IS NOT NULL )
----

query I rowsort
SELECT - - ( - 64 ) FROM tab1 AS cor0
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + + col1 + + 62
----

query I rowsort
SELECT - - col0 + + 67 FROM tab0 AS cor0 WHERE NOT col1 * + - col1 BETWEEN col1 AND ( - col1 )
----
154
164
82

query I rowsort
SELECT + ( - 64 ) AS col0 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL + COUNT( * ) col0 FROM tab0 cor0 WHERE + col2 NOT BETWEEN - - 28 * + col2 + + 52 AND NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8696
SELECT ALL + COUNT ( * ) col0 FROM tab0 cor0 WHERE + col2 NOT BETWEEN - - 28 * + col2 + + 52 AND NULL
----
3

query I rowsort
SELECT DISTINCT + col0 * - 96 AS col1 FROM tab1 AS cor0
----
-4896
-8160
-8736

query I rowsort
SELECT - 55 AS col2 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL MAX( + col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8699
SELECT ALL MAX ( + col0 ) col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT MIN( ALL + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT MIN ( ALL + col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT ALL - 92 * + col2 AS col1 FROM tab0 cor0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8702
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT - 68 * + col0 * + col2 + + - 21 DIV + ( + 74 ) + col2 FROM tab2 AS cor0
----
-174040
-295742
-71921

skipif mysql # not compatible
query I rowsort label-8703
SELECT - 68 * + col0 * + col2 + + - 21 / + ( + 74 ) + col2 FROM tab2 AS cor0
----
-174040
-295742
-71921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8704
SELECT DISTINCT + COUNT( * ), MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8704
SELECT DISTINCT + COUNT ( * ), MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT DISTINCT + 5 AS col0, SUM( + col1 ) + 98 AS col2 FROM tab1 AS cor0
----
5
164

skipif mysql # not compatible
query II rowsort label-8705
SELECT DISTINCT + 5 AS col0, SUM ( + col1 ) + 98 AS col2 FROM tab1 AS cor0
----
5
164

onlyif mysql # DIV for integer division: 
query II rowsort label-8706
SELECT ALL + col1 col2, 86 DIV + col2 FROM tab0 cor0
----
1
0
21
8
81
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8706
SELECT ALL + col1 col2, 86 / + col2 FROM tab0 cor0
----
1
0
21
8
81
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8708
SELECT DISTINCT - CAST( MAX( - col2 ) AS SIGNED ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT - CAST ( MAX ( - col2 ) AS INTEGER ) AS col1 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT ALL - 53 + - col2 + + ( + col2 ) DIV + col0 FROM tab2
----
-111
-76
-93

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - 53 + - col2 + + ( + col2 ) / + col0 FROM tab2
----
-111
-76
-93

query I rowsort
SELECT ALL 44 + - ( - col1 ) * col2 FROM tab1 AS cor0
----
1388
3240
339

query I rowsort
SELECT DISTINCT col2 + + col0 * + col1 * - col0 + + 6 FROM tab0 AS cor0
----
-158933
-18172
-9304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col0 col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT ALL + 80 + - 18 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT ALL col2 * + 28 AS col0 FROM tab0
----
1316
2772
280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col2 FROM tab0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 * - + 66 col1 FROM tab2
----
-4686

query I rowsort
SELECT 69 + - 10 * 78 AS col1 FROM tab1 WHERE - 83 + + 99 + + ( ( + + 77 ) ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-8718
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT + COUNT( * ), MAX( DISTINCT col1 ) col0 FROM tab2
----
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8719
SELECT + COUNT ( * ), MAX ( DISTINCT col1 ) col0 FROM tab2
----
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL - 93 + 28 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - 93 + 28 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT ALL - col0 - + ( - + ( col2 ) ) + + - col1 * + col0 FROM tab0 AS cor0
----
-1183
-1904
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col2 ) col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8723
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( + - AVG ( - 27 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + - AVG ( - 27 ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT + MIN( + ( CAST( NULL AS SIGNED ) ) ) FROM tab2 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT + MIN ( + ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 WHERE NOT col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT + MIN( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + MIN ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 50 FROM tab0 cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - + 1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT COUNT( - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8729
SELECT COUNT ( - col0 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT ALL col2 AS col1, + 61 FROM tab0
----
10
61
47
61
99
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT SUM( col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8732
SELECT SUM ( col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col1 FROM tab0
----
28
28
28

query I rowsort
SELECT 18 * + col1 * col2 FROM tab2
----
21114
55440
69948

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT - - col2 DIV + 89 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8736
SELECT - - col2 / + 89 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * + 78 col0 FROM tab0 AS cor0
----
4446
4446
4446

query I rowsort
SELECT DISTINCT ( - col2 ) * ( 86 ) * + col1 * + - 75 AS col1 FROM tab1 AS cor0
----
1902750
20614200
8668800

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT DISTINCT - 88 + COUNT( * ) AS col2 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - 88 + COUNT ( * ) AS col2 FROM tab2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8740
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT ALL CAST( + - col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL CAST ( + - col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - col0 + + col1 - col1 * col1 + col1 * - col1 FROM tab2 cor0
----
-11845
-5197
-8986

query I rowsort
SELECT DISTINCT + 71 + col2 * + - 97 AS col0 FROM tab0 cor0
----
-4488
-899
-9532

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT DISTINCT - col0 DIV - col1 + + + col1 AS col2 FROM tab2 AS cor0
----
51
68
77

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - col0 / - col1 + + + col1 AS col2 FROM tab2 AS cor0
----
51
68
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT ALL - + ( col2 ) - + 30 DIV + + col0 AS col1 FROM tab0 AS cor0
----
-10
-49
-99

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - + ( col2 ) - + 30 / + + col0 AS col1 FROM tab0 AS cor0
----
-10
-49
-99

query I rowsort
SELECT ALL 7 + + 13 - + + ( + ( - 1 ) ) AS col1 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT col1 + + + 83 AS col1 FROM tab2 AS cor0 WHERE NULL <> col0 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT - col1 * col1 * - + 17 - - col0 + + 74 DIV col2 AS col1 FROM tab2 AS cor0
----
100858
44266
76389

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - col1 * col1 * - + 17 - - col0 + + 74 / col2 AS col1 FROM tab2 AS cor0
----
100858
44266
76389

query II rowsort
SELECT ALL + col1 * - col0 AS col2, - col2 + col0 FROM tab2
----
-2346
23
-4928
24
-5025
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - MAX( - col1 ) * + COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-8750
SELECT - MAX ( - col1 ) * + COUNT ( * ) FROM tab2
----
153

query I rowsort
SELECT DISTINCT 35 * + col0 AS col1 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT ALL + 15 * + + col1 * + + col1 FROM tab1
----
2940
33135
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) * - ( + col0 ) FROM tab0 WHERE NOT + + 41 + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) * - ( + col0 ) FROM tab0 WHERE NOT + + 41 + + col1 IS NOT NULL
----

query I rowsort
SELECT - ( + - 83 ) AS col0 FROM tab0 WHERE ( col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 * + + 2 col1 FROM tab1
----
-26
49
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 18 / + col2 * - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 55 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL col2 * - col1 * + col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT ( 54 ) FROM tab1
----
54

query I rowsort
SELECT DISTINCT - 53 * 70 AS col1 FROM tab2 AS cor0
----
-3710

query II rowsort
SELECT ALL + col0 AS col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL + - col0 * + col1 * - + col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col0 <> col1
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col0 <> col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT 62 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-8764
SELECT 62 / + col1 AS col0 FROM tab0 AS cor0
----
0
2
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT - col1 DIV 89 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT - col1 / 89 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - ( + 99 ) * - - col0 + col2 AS col0, col1 FROM tab2 AS cor0
----
-4531
51
-6296
77
-7367
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - + col2 + - + col2 < 48 + - col2 * - + ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - 72 + - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 72 + - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * + col2 + - 67 + + 59 * + - col0 col2 FROM tab0
----
-2926
-5620
-9948

query I rowsort
SELECT col2 + - 55 FROM tab2
----
-15
-32
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8771
SELECT + - SUM( col2 ) + CAST( - + 93 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-316

skipif mysql # not compatible
query I rowsort label-8771
SELECT + - SUM ( col2 ) + CAST ( - + 93 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-316

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8772
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 53 ) BETWEEN - CAST( NULL AS SIGNED ) * col1 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8772
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 53 ) BETWEEN - CAST ( NULL AS INTEGER ) * col1 AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8773
SELECT * FROM tab0 AS cor0 WHERE ( NOT + - CAST( col1 AS SIGNED ) >= CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8773
SELECT * FROM tab0 AS cor0 WHERE ( NOT + - CAST ( col1 AS INTEGER ) >= CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT 95 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8775
SELECT + COUNT( * ) DIV 18 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT + COUNT ( * ) / 18 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT - col0 * + col1 - + 62 DIV col2 AS col1 FROM tab1
----
-426
-4277
-714

skipif mysql # not compatible
query I rowsort label-8776
SELECT - col0 * + col1 - + 62 / col2 AS col1 FROM tab1
----
-426
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8777
SELECT DISTINCT - + col2 * CAST( col0 AS SIGNED ) + + - col1 + - 88 + + 72 FROM tab1 AS cor0
----
-4926
-5036
-6251

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT - + col2 * CAST ( col0 AS INTEGER ) + + - col1 + - 88 + + 72 FROM tab1 AS cor0
----
-4926
-5036
-6251

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 + 5 + - col0 * col1 FROM tab0 AS cor0
----
-985
5747
9317

query I rowsort
SELECT DISTINCT + 40 - + + 45 * ( col2 ) FROM tab1 cor0
----
-2615
-3020
-4280

query I rowsort
SELECT + col0 + - 7 * + ( + 16 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-25
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8781
SELECT ALL + SUM( - - 16 ) AS col1 FROM tab0 AS cor0 WHERE + CAST( + col1 AS DECIMAL ) <= 84
----
48

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + SUM ( - - 16 ) AS col1 FROM tab0 AS cor0 WHERE + CAST ( + col1 AS REAL ) <= 84
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8782
SELECT CAST( NULL AS SIGNED ) + col1 AS col0, + 29 FROM tab1
----
NULL
29
NULL
29
NULL
29

skipif mysql # not compatible
query II rowsort label-8782
SELECT CAST ( NULL AS INTEGER ) + col1 AS col0, + 29 FROM tab1
----
NULL
29
NULL
29
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL MAX( - 85 ) FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL MAX ( - 85 ) FROM tab1
----
-85

query I rowsort
SELECT DISTINCT 9 * + + col0 + - col0 FROM tab0
----
120
696
776

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT COUNT( * ) * + 69 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-8785
SELECT COUNT ( * ) * + 69 FROM tab1
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT + 43 DIV col0 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8786
SELECT + 43 / col0 AS col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT - COUNT( * ) AS col0, SUM( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-8787
SELECT - COUNT ( * ) AS col0, SUM ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-3
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8788
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) - + - col0 NOT BETWEEN + col0 * - ( col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8788
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - + - col0 NOT BETWEEN + col0 * - ( col0 ) AND NULL
----

query II rowsort
SELECT DISTINCT - - 25 AS col2, + col0 AS col1 FROM tab1 cor0
----
25
51
25
85
25
91

query I rowsort
SELECT ALL 11 * - - 12 AS col2 FROM tab0
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT + + SUM( + + ( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + + SUM ( + + ( - col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL col2 / + col0 / col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT + COUNT( DISTINCT - 27 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + col0 + + col0 + + ( + 99 ) BETWEEN + col2 * - 41 - + - col2 AND - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + COUNT ( DISTINCT - 27 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + col0 + + col0 + + ( + 99 ) BETWEEN + col2 * - 41 - + - col2 AND - 44 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT + 71 DIV - 23 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8794
SELECT + 71 / - 23 FROM tab1 AS cor0
----
-3
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <> + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 40 NOT BETWEEN - - 47 AND - col2
----

query II rowsort
SELECT ALL + col0 AS col0, + 69 * + 36 FROM tab2
----
46
2484
64
2484
75
2484

query I rowsort
SELECT + col1 * - 73 AS col2 FROM tab0
----
-1533
-5913
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + col2 + - + col2 FROM tab0
----
10
0
47
0
99
0

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + + 92 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT DISTINCT col2 + + CAST( - 42 AS SIGNED ) FROM tab2
----
-19
-2
16

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT col2 + + CAST ( - 42 AS INTEGER ) FROM tab2
----
-19
-2
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8802
SELECT - CAST( NULL AS SIGNED ) + - + 3 - col0, - col0 AS col2 FROM tab0 WHERE - col0 < NULL
----

skipif mysql # not compatible
query II rowsort label-8802
SELECT - CAST ( NULL AS INTEGER ) + - + 3 - col0, - col0 AS col2 FROM tab0 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL + 20 + + COUNT( * ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + 20 + + COUNT ( * ) AS col0 FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT ALL + ( + + col1 ) + - + 2 * ( - 96 ) DIV col2 AS col1 FROM tab1 AS cor0
----
16
49
8

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + ( + + col1 ) + - + 2 * ( - 96 ) / col2 AS col1 FROM tab1 AS cor0
----
16
49
8

query I rowsort
SELECT ALL - + 67 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT 69 * - - CAST( NULL AS SIGNED ) + - 92 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8806
SELECT 69 * - - CAST ( NULL AS INTEGER ) + - 92 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT DISTINCT - 1 * - - AVG ( ALL - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT - 1 * - - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL + 31 + + + ( - col1 ) * - col2 * - col1 FROM tab2 AS cor0
----
-237129
-260331
-59792

query I rowsort
SELECT 79 * + 96 FROM tab2 AS cor0
----
7584
7584
7584

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8811
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + + col1 * col1 BETWEEN + col2 * col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8811
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + + col1 * col1 BETWEEN + col2 * col2 AND NULL
----

query I rowsort
SELECT - 42 - - 58 AS col0 FROM tab0 cor0
----
16
16
16

query II rowsort
SELECT DISTINCT + col0 + + col0 AS col1, col0 * - - col0 AS col1 FROM tab2 AS cor0
----
128
4096
150
5625
92
2116

onlyif mysql # DIV for integer division: 
query II rowsort label-8814
SELECT ALL - col1 * + + 4 - - col0 + col2 * col0 DIV + - col1 AS col2, col1 + col0 AS col2 FROM tab1
----
-228
138
-354
65
-938
90

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL - col1 * + + 4 - - col0 + col2 * col0 / + - col1 AS col2, col1 + col0 AS col2 FROM tab1
----
-228
138
-354
65
-938
90

query I rowsort
SELECT DISTINCT - - col0 * - col1 * - 69 - - + col2 / - col1 AS col2 FROM tab1 WHERE ( - - ( 78 ) ) * - 32 * + col1 IS NULL AND NOT ( - col0 IS NOT NULL )
----

query I rowsort
SELECT + 53 - - col1 AS col1 FROM tab0
----
134
54
74

query I rowsort
SELECT + ( - 98 ) AS col2 FROM tab1
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT ALL - CAST( - ( 20 ) AS SIGNED ) FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - CAST ( - ( 20 ) AS INTEGER ) FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT COUNT( * ) * - COUNT( * ) * - 60 AS col1 FROM tab0 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-8819
SELECT COUNT ( * ) * - COUNT ( * ) * - 60 AS col1 FROM tab0 AS cor0
----
540

onlyif mysql # DIV for integer division: 
query II rowsort label-8820
SELECT 97 AS col0, - col1 DIV - 73 col2 FROM tab0
----
97
0
97
0
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8820
SELECT 97 AS col0, - col1 / - 73 col2 FROM tab0
----
97
0
97
0
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8821
SELECT SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col0 + - col2 AS col0 FROM tab1 cor0
----
281
4118
567

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT - SUM( - col2 ) * - 9 AS col0 FROM tab2 AS cor0
----
-1089

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT - SUM ( - col2 ) * - 9 AS col0 FROM tab2 AS cor0
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + SUM( - 13 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8825
SELECT + SUM ( - 13 ) FROM tab2 AS cor0
----
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8827
SELECT + + col2 DIV - - col1 col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8827
SELECT + + col2 / - - col1 col0 FROM tab0 AS cor0
----
0
0
99

query II rowsort
SELECT DISTINCT - + 68, col0 FROM tab1 AS cor0
----
-68
51
-68
85
-68
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT - + 30 DIV + col1 col0 FROM tab0 cor0
----
-1
-30
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8829
SELECT - + 30 / + col1 col0 FROM tab0 cor0
----
-1
-30
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT DISTINCT - col1 DIV - - 67 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT - col1 / - - 67 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 90 * + col2 AS col0 FROM tab0 AS cor0
----
-4230
-8910
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT + ( - - COUNT( * ) ) + - - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8832
SELECT + ( - - COUNT ( * ) ) + - - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT - CAST( NULL AS SIGNED ) + - + col2 + - - 39 + + col1 * col1 * - 71 + + - col2 + + 46 * - - col0 * - ( CAST( + col0 AS SIGNED ) ) / + col2 * 66 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT - CAST ( NULL AS INTEGER ) + - + col2 + - - 39 + + col1 * col1 * - 71 + + - col2 + + 46 * - - col0 * - ( CAST ( + col0 AS INTEGER ) ) / + col2 * 66 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col1 * - - col2 + ( + + ( - - col2 ) ) * + col1 AS col2 FROM tab0
----
-304560
-4200
0

query I rowsort
SELECT ( + 44 ) + - + ( - col0 ) FROM tab1
----
129
135
95

query I rowsort
SELECT ALL col2 + - + col2 * - col1 * + ( - - col2 ) AS col1 FROM tab2
----
123240
225446
27002

query I rowsort
SELECT DISTINCT + 14 * - + col0 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT + + 49 + 94 AS col2 FROM tab2 AS cor0
----
143
143
143

query I rowsort
SELECT - + 80 + - + col0 AS col0 FROM tab2 AS cor0
----
-126
-144
-155

query I rowsort
SELECT DISTINCT - 25 + - 73 AS col1 FROM tab2 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT COUNT( * ) - + 56 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT COUNT ( * ) - + 56 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT ALL - 51 * + col2 + col2 - - + col0 FROM tab0 cor0
----
-2335
-413
-4853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT + CAST( 14 AS SIGNED ) AS col0 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8844
SELECT + CAST ( 14 AS INTEGER ) AS col0 FROM tab1
----
14
14
14

query I rowsort
SELECT + col0 * - 64 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT ALL + CAST( + 48 AS SIGNED ) AS col2 FROM tab2
----
48
48
48

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + CAST ( + 48 AS INTEGER ) AS col2 FROM tab2
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT + - col1 * - + CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-8847
SELECT + - col1 * - + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1215
1827
97

query I rowsort
SELECT DISTINCT - col1 * + 91 AS col2 FROM tab2
----
-4641
-6097
-7007

query I rowsort
SELECT - - 16 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - + 35 AS col1 FROM tab0 AS cor0 WHERE NOT - 2 IS NULL
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + - 32 AS col2 FROM tab0 AS cor0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT - ( + col0 ) DIV + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-8852
SELECT - ( + col0 ) / + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-12
11
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 > - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8854
SELECT + - col0 / - col1 / - CAST( NULL AS DECIMAL ) 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-8854
SELECT + - col0 / - col1 / - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL + MIN( + - 78 ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL + MIN ( + - 78 ) FROM tab1
----
-78

query I rowsort
SELECT - col1 FROM tab1 WHERE col1 / col0 * col1 * + col1 < 81 * + - 90 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT CAST( + col0 AS SIGNED ) * - col1 AS col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-8857
SELECT CAST ( + col0 AS INTEGER ) * - col1 AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT - col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT - col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 42 * - + col0 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT DISTINCT + col2 + col0 - + 55 * col2 - + col2 FROM tab1
----
-3160
-3649
-5229

query I rowsort
SELECT DISTINCT col2 + + 0 AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE + ( 94 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT DISTINCT - COUNT( ALL - ( - + col0 ) ) * + + COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT - COUNT ( ALL - ( - + col0 ) ) * + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8864
SELECT col2 + + 3 DIV - col1 * + - CAST( + ( 6 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8864
SELECT col2 + + 3 / - col1 * + - CAST ( + ( 6 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8865
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 + CAST( NULL AS SIGNED ) * col1 * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-8865
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 + CAST ( NULL AS INTEGER ) * col1 * + - col2 )
----

query I rowsort
SELECT DISTINCT 94 + - + col2 AS col2 FROM tab2
----
36
54
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + 14 * + - MAX( - ( + col2 ) ) AS col0 FROM tab2 cor0
----
322

skipif mysql # not compatible
query I rowsort label-8867
SELECT + 14 * + - MAX ( - ( + col2 ) ) AS col0 FROM tab2 cor0
----
322

query II rowsort
SELECT + + ( - 76 ) AS col1, 91 - - 36 - col1 + - 37 + - col0 * - - 92 FROM tab2 AS cor0
----
-76
-4193
-76
-5875
-76
-6877

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
153

query I rowsort
SELECT ALL 4 * - 23 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT - - ( 45 ) FROM tab1 AS cor0
----
45
45
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= 94
----

query II rowsort
SELECT DISTINCT - 24 AS col1, - col1 FROM tab2
----
-24
-51
-24
-67
-24
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL ) <= + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 28 IS NOT NULL
----

query II rowsort
SELECT + 53 AS col1, + ( + + 30 ) FROM tab0
----
53
30
53
30
53
30

query III rowsort
SELECT * FROM tab1 WHERE NOT - 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT ALL + 97 DIV + 38 AS col2 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + 97 / + 38 AS col2 FROM tab1
----
2
2
2

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 * - ( + col1 ) AND ( + col2 )
----

query I rowsort
SELECT ALL ( - 36 ) AS col0 FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8881
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE + col0 <= NULL
----
0

query I rowsort
SELECT ALL col0 + - 82 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 78 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT SUM( DISTINCT - col0 ) + 40 * - COUNT( * ) AS col0 FROM tab1
----
-347

skipif mysql # not compatible
query I rowsort label-8884
SELECT SUM ( DISTINCT - col0 ) + 40 * - COUNT ( * ) AS col0 FROM tab1
----
-347

query III rowsort
SELECT * FROM tab2 WHERE 53 <> NULL
----

query I rowsort
SELECT ALL 33 * col0 FROM tab2 WHERE NOT ( - col2 ) IN ( col0 )
----
1518
2112
2475

query I rowsort
SELECT DISTINCT col1 * + ( - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - col0 * 74 FROM tab1
----
-3774
-6290
-6734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT + CAST( - 24 AS SIGNED ) AS col2 FROM tab2
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-8889
SELECT + CAST ( - 24 AS INTEGER ) AS col2 FROM tab2
----
-24
-24
-24

query III rowsort
SELECT * FROM tab2 WHERE - 82 / + col1 + col0 BETWEEN NULL AND 86
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 * 22 ) NOT BETWEEN 17 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 99 col2 FROM tab2
----
150
166
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL COUNT( + 53 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL COUNT ( + 53 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT + 94 * 45 + ( MIN( DISTINCT + 85 ) ) FROM tab2
----
4315

skipif mysql # not compatible
query I rowsort label-8894
SELECT + 94 * 45 + ( MIN ( DISTINCT + 85 ) ) FROM tab2
----
4315

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT + COUNT( * ) * 13 + COUNT( * ) AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-8895
SELECT + COUNT ( * ) * 13 + COUNT ( * ) AS col1 FROM tab0
----
42

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col0 + col1 AND 81 * + ( 53 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT DISTINCT 68 + col0 DIV + 86 FROM tab1
----
68
69

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT 68 + col0 / + 86 FROM tab1
----
68
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT + col2 + - 4 * - 62 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT DISTINCT + 68 DIV 16 + + col0 col0 FROM tab2
----
50
68
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8899
SELECT DISTINCT + 68 / 16 + + col0 col0 FROM tab2
----
50
68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT 55 * COUNT( col2 / col2 ) AS col0 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-8900
SELECT 55 * COUNT ( col2 / col2 ) AS col0 FROM tab1
----
165

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8902
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col1 BETWEEN CAST( - ( 80 ) AS DECIMAL ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8902
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col1 BETWEEN CAST ( - ( 80 ) AS REAL ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 64 * col1 FROM tab1
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL SUM( ALL + col1 ) * COUNT( * ) AS col0 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL SUM ( ALL + col1 ) * COUNT ( * ) AS col0 FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL 4 - - COUNT( * ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL 4 - - COUNT ( * ) AS col0 FROM tab0
----
7

query I rowsort
SELECT - ( col1 ) - 15 FROM tab2
----
-66
-82
-92

query I rowsort
SELECT DISTINCT - col2 * 44 AS col0 FROM tab2
----
-1012
-1760
-2552

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 63 ) AS col2 FROM tab2
----
-63
-63
-63

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 48 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col0
----

query I rowsort
SELECT ALL - ( - 73 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 / 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT col1 / - col2 - + col2 FROM tab0 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) - col1 * CAST( CAST( ( - col0 ) AS SIGNED ) AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-8914
SELECT col1 / - col2 - + col2 FROM tab0 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) - col1 * CAST ( CAST ( ( - col0 ) AS INTEGER ) AS INTEGER ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + 74 col2 FROM tab2 AS cor0
----
-3774
-4958
-5698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT DISTINCT + CAST( NULL AS SIGNED ) / MIN( DISTINCT ( - 10 ) + + col0 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / MIN ( DISTINCT ( - 10 ) + + col0 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 78 AS col0 FROM tab0 WHERE NOT + col1 >= - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT DISTINCT MAX( + 28 ) AS col0 FROM tab1 WHERE ( 44 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT MAX ( + 28 ) AS col0 FROM tab1 WHERE ( 44 ) IS NULL
----
NULL

query I rowsort
SELECT 4 * - 89 FROM tab1
----
-356
-356
-356

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) IN ( - 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 82 / ( + 16 ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT + 64 DIV + + 67 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT + 64 / + + 67 AS col2 FROM tab2
----
0

query I rowsort
SELECT + col2 * col0 FROM tab2 WHERE NOT - col2 IS NULL
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + 8 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT + - 32 DIV - col0 + - col2 FROM tab0 cor0
----
-10
-45
-99

skipif mysql # not compatible
query I rowsort label-8927
SELECT + - 32 / - col0 + - col2 FROM tab0 cor0
----
-10
-45
-99

query I rowsort
SELECT DISTINCT + 3 * + 18 AS col2 FROM tab1 cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL - + CAST( + 0 AS SIGNED ) * MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - + CAST ( + 0 AS INTEGER ) * MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT - col1 DIV - col0 * - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT - col1 / - col0 * - col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT IN ( col0 + - col1 * 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT + MAX( 25 ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-8932
SELECT + MAX ( 25 ) FROM tab1
----
25

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + col2 NOT BETWEEN - 51 / col0 AND col2 - + col0
----
3

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + col2 NOT BETWEEN - 51 / col0 AND col2 - + col0
----
3

query I rowsort
SELECT DISTINCT - - col2 + + + col2 + + - 73 AS col0 FROM tab1 AS cor0
----
119
45
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT MAX( + 41 ) AS col2 FROM tab1 cor0
----
41

skipif mysql # not compatible
query I rowsort label-8936
SELECT MAX ( + 41 ) AS col2 FROM tab1 cor0
----
41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - + 65 ) BETWEEN ( - col2 + + 67 ) AND col1
----

query I rowsort
SELECT - 41 + col2 FROM tab2 AS cor0 WHERE 33 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ( + MAX( - + 7 ) ) col0 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8939
SELECT ( + MAX ( - + 7 ) ) col0 FROM tab2 AS cor0
----
-7

query II rowsort
SELECT col1 AS col1, col2 * - 63 AS col0 FROM tab0 AS cor0
----
1
-6237
21
-630
81
-2961

query I rowsort
SELECT ALL + col2 * + 53 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col0 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT - col0 * col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8942
SELECT - col0 * col1 / col0 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT + - col2 * 39 DIV + 11 FROM tab2 cor0
----
-141
-205
-81

skipif mysql # not compatible
query I rowsort label-8943
SELECT + - col2 * 39 / + 11 FROM tab2 cor0
----
-141
-205
-81

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE ( + col2 ) NOT BETWEEN ( NULL ) AND + col0
----
1
81

query III rowsort
SELECT * FROM tab2 WHERE + - 74 * + + 39 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - + 84
----

query II rowsort
SELECT ALL - col1 * col2 AS col2, - col2 AS col2 FROM tab0
----
-210
-10
-3807
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT SUM( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT SUM ( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 95 * ( col0 ) * + col1 + - 92 FROM tab0
----
-115517
-173657
-9307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT 49 - col0 FROM tab1 WHERE col1 * + 15 + CAST( col2 AS SIGNED ) IS NOT NULL
----
-2
-36
-42

skipif mysql # not compatible
query I rowsort label-8950
SELECT 49 - col0 FROM tab1 WHERE col1 * + 15 + CAST ( col2 AS INTEGER ) IS NOT NULL
----
-2
-36
-42

query I rowsort
SELECT col2 + + 51 AS col0 FROM tab0 AS cor0
----
150
61
98

query I rowsort
SELECT DISTINCT - col1 + col1 * - - col2 - - ( col1 ) + col1 * + col1 AS col2 FROM tab1 AS cor0
----
1540
320
5405

query II rowsort
SELECT - 37 + + col0 AS col0, + col1 * 34 - col0 FROM tab2 AS cor0
----
27
2554
38
2203
9
1688

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 7 NOT IN ( - 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8955
SELECT + 22 + COUNT( * ) DIV + MIN( col1 ) AS col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8955
SELECT + 22 + COUNT ( * ) / + MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT - col2 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-8956
SELECT - col2 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8957
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - CAST( NULL AS SIGNED ) * col1 <> 10
----

skipif mysql # not compatible
query III rowsort label-8957
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - CAST ( NULL AS INTEGER ) * col1 <> 10
----

query I rowsort
SELECT ALL - - 88 + - 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT CAST( + col1 AS SIGNED ) * - + col1 - 14 + + + col2 AS col2 FROM tab2
----
-2592
-4445
-5903

skipif mysql # not compatible
query I rowsort label-8959
SELECT CAST ( + col1 AS INTEGER ) * - + col1 - 14 + + + col2 AS col2 FROM tab2
----
-2592
-4445
-5903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT + CAST( NULL AS SIGNED ) * + col0 * + col0 * + col0 + - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT + CAST ( NULL AS INTEGER ) * + col0 * + col0 * + col0 + - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8961
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 40 <= NULL
----

query I rowsort
SELECT col0 * - + col1 + 17 AS col0 FROM tab2 AS cor0
----
-2329
-4911
-5008

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col0 * - col0 ) > 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + + col2 AS col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL 21 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT 82 * - SUM( ALL + col1 ) * - 41 AS col0 FROM tab0 AS cor0
----
346286

skipif mysql # not compatible
query I rowsort label-8967
SELECT 82 * - SUM ( ALL + col1 ) * - 41 AS col0 FROM tab0 AS cor0
----
346286

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8968
SELECT * FROM tab2 cor0 WHERE NOT - col0 + - + ( CAST( + 20 AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8968
SELECT * FROM tab2 cor0 WHERE NOT - col0 + - + ( CAST ( + 20 AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 87 ) + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN + + col0 + - + col1 AND + 42
----
6

query I rowsort
SELECT ALL + 96 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8971
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT ALL 9, col1 AS col0 FROM tab2
----
9
51
9
67
9
77

query I rowsort
SELECT + col0 + + 50 * + - col2 FROM tab0 AS cor0
----
-2335
-413
-4853

query I rowsort
SELECT - col1 + - - col1 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8975
SELECT DISTINCT - col1 AS col2, CAST( + col0 AS SIGNED ) * - col2 + - + col1 + - 7 + col1 * + col2 * - col0 FROM tab2 AS cor0
----
-51
-55074
-67
-295874
-77
-199764

skipif mysql # not compatible
query II rowsort label-8975
SELECT DISTINCT - col1 AS col2, CAST ( + col0 AS INTEGER ) * - col2 + - + col1 + - 7 + col1 * + col2 * - col0 FROM tab2 AS cor0
----
-51
-55074
-67
-295874
-77
-199764

query II rowsort
SELECT col0, - 80 FROM tab1 AS cor0
----
51
-80
85
-80
91
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT DISTINCT - 95 DIV + col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT - 95 / + col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8978
SELECT + 39 DIV col1 * - CAST( 17 AS SIGNED ) FROM tab1
----
-119
-34
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT + 39 / col1 * - CAST ( 17 AS INTEGER ) FROM tab1
----
-119
-34
0

query I rowsort
SELECT ALL + col2 * + 16 FROM tab2 WHERE ( - + col0 * - col2 ) IS NOT NULL
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT + COUNT( * ) * - + 27 AS col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT + COUNT ( * ) * - + 27 AS col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
0

query I rowsort
SELECT col1 + 54 FROM tab2 AS cor0
----
105
121
131

query I rowsort
SELECT ALL + col0 + 94 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col1 * + col1 - col2 * + 55
----
145
179
185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN ( + 11 ) AND - 23 * - - ( + 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 51 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 4 IS NOT NULL
----

query II rowsort
SELECT ALL + 38 AS col2, 5 FROM tab0
----
38
5
38
5
38
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT + 7 DIV + col1 * - + ( - + ( - col2 ) ) + + ( + 11 ) DIV col2 * + 97 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT + 7 / + col1 * - + ( - + ( - col2 ) ) + + ( + 11 ) / col2 * + 97 FROM tab2
----
0
0
0

query II rowsort
SELECT + col0 * col1 * - col2 AS col0, col1 AS col2 FROM tab1
----
-25075
5
-290836
47
-68544
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT + ( + MAX( - col2 ) ) * + + COUNT( col0 ) AS col2 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-8991
SELECT + ( + MAX ( - col2 ) ) * + + COUNT ( col0 ) AS col2 FROM tab1
----
-177

query I rowsort
SELECT ALL col0 + - - col0 FROM tab0 WHERE NULL IS NULL
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT - 85 + + - COUNT( * ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT - 85 + + - COUNT ( * ) FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL MIN( ALL col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL MIN ( ALL col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT - CAST( - MAX( col0 ) AS SIGNED ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-8995
SELECT - CAST ( - MAX ( col0 ) AS INTEGER ) FROM tab0 cor0
----
97

query I rowsort
SELECT + - 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT 7 * + + col2 * col2 AS col0 FROM tab1
----
24367
32368
64512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT - 75 DIV - - MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8998
SELECT - 75 / - - MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + + 69 * 88 FROM tab1 AS cor0
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL + COUNT( * ) * - + ( 61 ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + COUNT ( * ) * - + ( 61 ) FROM tab0 AS cor0
----
-183

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / - ( - 85 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9004
SELECT col0 * + - 6 col1, 14 - + + 0 + + - CAST( NULL AS SIGNED ) + + 10 FROM tab2 AS cor0
----
-276
NULL
-384
NULL
-450
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9004
SELECT col0 * + - 6 col1, 14 - + + 0 + + - CAST ( NULL AS INTEGER ) + + 10 FROM tab2 AS cor0
----
-276
NULL
-384
NULL
-450
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL + MAX( DISTINCT + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + MAX ( DISTINCT + col0 ) FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT MIN( + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9007
SELECT MIN ( + col1 ) AS col0 FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT DISTINCT - col2 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - col2 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col0 + - - col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL 78 + - COUNT( * ) col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9011
SELECT ALL 78 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT - col0 + + 72 FROM tab1
----
-13
-19
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9013
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL + 68 + - col0 AS col1 FROM tab2 AS cor0
----
-7
22
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9015
SELECT + CAST( NULL AS SIGNED ) AS col0, col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9015
SELECT + CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL - col0 - + 39 AS col2 FROM tab1 AS cor0
----
-124
-130
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + 4 col1 FROM tab1 AS cor0
----
100
63
72

query I rowsort
SELECT ALL + + ( col1 ) * + - 83 FROM tab2 AS cor0
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9019
SELECT * FROM tab0 WHERE ( + 94 / + - 19 = CAST( - + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9019
SELECT * FROM tab0 WHERE ( + 94 / + - 19 = CAST ( - + col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL + CAST( - 25 AS SIGNED ) * + col0 AS col2 FROM tab2
----
-1150
-1600
-1875

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL + CAST ( - 25 AS INTEGER ) * + col0 AS col2 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # DIV for integer division: 
query I rowsort label-9021
SELECT 33 DIV col1 - - 77 FROM tab1
----
77
79
83

skipif mysql # not compatible
query I rowsort label-9021
SELECT 33 / col1 - - 77 FROM tab1
----
77
79
83

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 NOT IN ( + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT - COUNT( ALL + 0 ) AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9023
SELECT - COUNT ( ALL + 0 ) AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-3

query I rowsort
SELECT - 93 FROM tab1 WHERE NOT ( col0 + - + col1 IS NULL )
----
-93
-93
-93

query II rowsort
SELECT ALL 91, 77 AS col0 FROM tab0
----
91
77
91
77
91
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - - ( - + SUM( - 8 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-9026
SELECT - - ( - + SUM ( - 8 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

query I rowsort
SELECT DISTINCT - col1 * - - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

query II rowsort
SELECT ALL - - col0, + 54 AS col0 FROM tab1 AS cor0
----
51
54
85
54
91
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + + COUNT( * ) * + COUNT( * ) col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9029
SELECT + + COUNT ( * ) * + COUNT ( * ) col1 FROM tab0 cor0
----
9

query II rowsort
SELECT ALL 68 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
68
-10
68
-47
68
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0, - col1 col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT + ( - ( + 40 ) ) FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL - - COUNT( ALL - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - - COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 70 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + 14 + - + COUNT( * ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-9035
SELECT + 14 + - + COUNT ( * ) AS col2 FROM tab2
----
11

query I rowsort
SELECT DISTINCT - col2 + 6 AS col2 FROM tab1
----
-53
-62
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + - ( - - col0 ) col0 FROM tab2
----
-127
-145
-156

query III rowsort
SELECT * FROM tab0 WHERE - 28 NOT IN ( 4, 42 * + col1 / - - col1, - ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT ( - - CAST( - - col0 AS SIGNED ) ) + + + 25 * + col1 + - + col1 FROM tab1
----
1219
205
387

skipif mysql # not compatible
query I rowsort label-9039
SELECT ( - - CAST ( - - col0 AS INTEGER ) ) + + + 25 * + col1 + - + col1 FROM tab1
----
1219
205
387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT ALL CAST( + col1 AS SIGNED ) + - 55 FROM tab1
----
-41
-50
-8

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL CAST ( + col1 AS INTEGER ) + - 55 FROM tab1
----
-41
-50
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT + - MAX( - + 14 ) AS col0 FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT + - MAX ( - + 14 ) AS col0 FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

query II rowsort
SELECT ( + ( - 15 ) ) + col2 * + + col2 AS col2, col0 AS col0 FROM tab1 cor0
----
3466
85
4609
91
9201
51

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + - 10 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT + col0 * + col1 * + 16 - + 95 FROM tab1
----
11329
6705
68337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 * + col1 * + - 88 col2 FROM tab1
----
129800
13218656
1655808

query I rowsort
SELECT 0 + col0 AS col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT - CAST( NULL AS SIGNED ) + 31 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT - CAST ( NULL AS INTEGER ) + 31 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT - col1 DIV - + 62 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT - col1 / - + 62 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + + ( col2 ) - + col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT - - 86 + + COUNT( * ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9051
SELECT - - 86 + + COUNT ( * ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE + col1 + - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL + COUNT( * ) + + MIN( col1 ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + COUNT ( * ) + + MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
54

query I rowsort
SELECT + - 32 FROM tab0 AS cor0 WHERE NULL <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT DISTINCT - col0 DIV 9 - col0 FROM tab1
----
-101
-56
-94

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT - col0 / 9 - col0 FROM tab1
----
-101
-56
-94

query II rowsort
SELECT col2 AS col1, + ( - col2 ) * - + col2 AS col2 FROM tab0
----
10
100
47
2209
99
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9057
SELECT MIN( - col2 ) * - MAX( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT MIN ( - col2 ) * - MAX ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9058
SELECT DISTINCT - col1, + col0 DIV col0 AS col0 FROM tab0
----
-1
1
-21
1
-81
1

skipif mysql # not compatible
query II rowsort label-9058
SELECT DISTINCT - col1, + col0 / col0 AS col0 FROM tab0
----
-1
1
-21
1
-81
1

query II rowsort
SELECT ALL col1, - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - 25 FROM tab2 AS cor0 WHERE ( NOT + col1 + + + 15 - - + col1 / + col1 * + 1 IS NULL )
----
-25
-25
-25

query I rowsort
SELECT - 22 AS col2 FROM tab2 cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT DISTINCT + MIN( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + MIN ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9063
SELECT ALL CAST( - col1 AS SIGNED ) col1, - ( + + col1 ) FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9063
SELECT ALL CAST ( - col1 AS INTEGER ) col1, - ( + + col1 ) FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT - 91 * col1 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT ALL - 11 * + 60 DIV COUNT( * ) AS col2 FROM tab2
----
-220

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - 11 * + 60 / COUNT ( * ) AS col2 FROM tab2
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT + COUNT( * ) * ( - 73 ) AS col1 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-9066
SELECT + COUNT ( * ) * ( - 73 ) AS col1 FROM tab2
----
-219

query III rowsort
SELECT * FROM tab2 WHERE + - 16 + col0 * + 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + 36 * - col0 AS col1 FROM tab0
----
-3111
-3491
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - COUNT( * ) + - 77 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - COUNT ( * ) + - 77 FROM tab0
----
-80

query I rowsort
SELECT DISTINCT col2 + 19 * - + 92 FROM tab2
----
-1690
-1708
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT + MIN( ALL - 40 ) + + - SUM( col2 ) FROM tab2 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-9071
SELECT + MIN ( ALL - 40 ) + + - SUM ( col2 ) FROM tab2 AS cor0
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT - SUM( DISTINCT + - CAST( + col0 AS SIGNED ) ) + + 89 + + - 1 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-9072
SELECT - SUM ( DISTINCT + - CAST ( + col0 AS INTEGER ) ) + + 89 + + - 1 FROM tab2
----
273

query I rowsort
SELECT 31 + - 5 AS col2 FROM tab0
----
26
26
26

query I rowsort
SELECT ALL - col2 * + - 20 * - 80 AS col2 FROM tab0
----
-158400
-16000
-75200

query I rowsort
SELECT ALL - - 85 FROM tab1 WHERE ( 17 + col1 ) NOT IN ( 92 / 81, - 19 )
----
85
85
85

query I rowsort
SELECT ( + col2 ) + + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT - 48 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # DIV for integer division: 
query II rowsort label-9078
SELECT ALL + col2 DIV - col0, + col1 DIV - col2 AS col0 FROM tab1
----
-1
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL + col2 / - col0, + col1 / - col2 AS col0 FROM tab1
----
-1
0
0
0
0
0

query I rowsort
SELECT DISTINCT + 29 + col1 FROM tab2 AS cor0
----
106
80
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT DISTINCT COUNT( * ) * - MIN( - col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT COUNT ( * ) * - MIN ( - col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT + SUM( + col1 ) AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-9081
SELECT + SUM ( + col1 ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66
3

query I rowsort
SELECT ALL - col0 * 59 * col2 * + - 38 - 91 FROM tab0 AS cor0
----
1580519
1950449
21529835

query I rowsort
SELECT DISTINCT col0 * - - 12 FROM tab2 AS cor0
----
552
768
900

query I rowsort
SELECT col0 * + 8 AS col1 FROM tab2
----
368
512
600

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT ALL ( - 37 ) DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL ( - 37 ) / - col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 86 * + col1 IS NOT NULL
----

query II rowsort
SELECT + col0, - 5 AS col2 FROM tab0 AS cor0
----
15
-5
87
-5
97
-5

query I rowsort
SELECT 96 * + 5 FROM tab2 AS cor0
----
480
480
480

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9089
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + CAST( - 68 AS DECIMAL ) * + 71 + + col2
----

skipif mysql # not compatible
query III rowsort label-9089
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + CAST ( - 68 AS REAL ) * + 71 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT + ( + + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9090
SELECT + ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 86 AS col1 FROM tab1 AS cor0 WHERE NOT 23 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT - 96 * + - COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - 96 * + - COUNT ( * ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < col1
----

query I rowsort
SELECT ALL 80 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL ) NOT BETWEEN NULL AND - ( 47 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9096
SELECT ALL + + CAST( NULL AS DECIMAL ) * COUNT( ALL + 79 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL + + CAST ( NULL AS REAL ) * COUNT ( ALL + 79 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * - 99 + + 20 col2 FROM tab2 cor0
----
-8296
-8296
-8296

query I rowsort
SELECT ALL + col1 + 82 AS col2 FROM tab1 AS cor0
----
129
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL ( + SUM( DISTINCT + + col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL ( + SUM ( DISTINCT + + col1 ) ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - col2 ) * - col0 col0 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT col1 + col0 + - col1 AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT ALL ( - CAST( col2 AS SIGNED ) ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 14 + - - col1 - - - 23 + + - col2 - - 39 + + - 68 col1 FROM tab2
----
-1093
-738
-981

query I rowsort
SELECT - 95 * + col1 + - 11 FROM tab0
----
-106
-2006
-7706

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT MAX( ( - col0 ) ) + SUM( DISTINCT col0 ) AS col0 FROM tab2
----
139

skipif mysql # not compatible
query I rowsort label-9105
SELECT MAX ( ( - col0 ) ) + SUM ( DISTINCT col0 ) AS col0 FROM tab2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL - - SUM( - col0 ) - + COUNT( * ) FROM tab1 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - - SUM ( - col0 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-230

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2, + col0 + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT - 82 - - COUNT( * ) AS col0 FROM tab0 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - 82 - - COUNT ( * ) AS col0 FROM tab0 cor0
----
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN + col0 - col0 + + col0 AND + + col1
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9110
SELECT 79 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 14 IS NOT NULL
----
-26

skipif mysql # not compatible
query I rowsort label-9110
SELECT 79 / - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 14 IS NOT NULL
----
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + 24
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 21 / + - 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT DISTINCT + COUNT( ALL + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT + COUNT ( ALL + col2 ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9114
SELECT ALL - + ( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - + ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 17, + 73 AS col1 FROM tab0 AS cor0
----
17
73
17
73
17
73

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( - 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - MAX( ALL - - 87 ) AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9117
SELECT - MAX ( ALL - - 87 ) AS col0 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL COUNT( ALL col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL COUNT ( ALL col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT ALL 5 * - SUM( + CAST( - col1 AS SIGNED ) ) AS col1 FROM tab0
----
515

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL 5 * - SUM ( + CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab0
----
515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col2 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL ( - - COUNT( * ) ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL ( - - COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT DISTINCT - ( MIN( col0 ) ) + 96 FROM tab2 AS cor0 WHERE NOT col2 * - col2 * 26 IS NULL
----
50

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - ( MIN ( col0 ) ) + 96 FROM tab2 AS cor0 WHERE NOT col2 * - col2 * 26 IS NULL
----
50

query I rowsort
SELECT ALL col0 * + + col0 * 78 FROM tab0 AS cor0 WHERE 97 * 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col1 + + 10 AS col0 FROM tab1 AS cor0
----
-37
-4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT MIN( - 38 ) AS col1 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9126
SELECT MIN ( - 38 ) AS col1 FROM tab0 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab2 AS cor0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, col2 col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT + 44 DIV + + 72 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9129
SELECT + 44 / + + 72 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9130
SELECT ALL - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT col0 * - + col1 * + ( CAST( NULL AS SIGNED ) ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT col0 * - + col1 * + ( CAST ( NULL AS INTEGER ) ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 34 - + - 39 + + 1 FROM tab0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT ALL - - CAST( - col0 AS SIGNED ) + + + col2 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - - CAST ( - col0 AS INTEGER ) + + + col2 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 44 * + - col2 * + - 77 BETWEEN ( NULL ) AND 88 * col1 / - 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT + 93 + - col2 DIV + col0 col2 FROM tab0 AS cor0
----
90
92
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9136
SELECT + 93 + - col2 / + col0 col2 FROM tab0 AS cor0
----
90
92
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT + MAX( + 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT + MAX ( + 73 ) FROM tab0 AS cor0
----
73

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE col1 * + - col0 * + 22 + + 25 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT CAST( NULL AS SIGNED ) * 19 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT CAST ( NULL AS INTEGER ) * 19 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9140
SELECT DISTINCT col1 + col2 col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9140
SELECT DISTINCT col1 + col2 col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 59 * + col0 * + - col0 FROM tab2 AS cor0
----
124844
241664
331875

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT - COUNT( * ) * + 86 AS col1 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT - COUNT ( * ) * + 86 AS col1 FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT MAX( + 48 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT MAX ( + 48 ) AS col1 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + MIN( col0 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9144
SELECT + MIN ( col0 ) col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT - ( SUM( - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT - ( SUM ( - col1 ) ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + - col0 + col0 col2 FROM tab2 WHERE NOT - col2 + + col2 > - col0
----

query I rowsort
SELECT ALL + + 3 * + col0 * + 5 + 18 * - 85 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 - 7 * - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9148
SELECT - 95 + 64 DIV - - col1 AS col1, 83 FROM tab1 AS cor0
----
-83
83
-91
83
-94
83

skipif mysql # not compatible
query II rowsort label-9148
SELECT - 95 + 64 / - - col1 AS col1, 83 FROM tab1 AS cor0
----
-83
83
-91
83
-94
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT DISTINCT - ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT - ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * 5 AS col2 FROM tab2 AS cor0
----
-255
-335
-385

query III rowsort
SELECT * FROM tab2 WHERE - 71 * - + 8 < - col0
----

query I rowsort
SELECT ALL - - ( + col0 ) * - 60 - - + col2 - col0 FROM tab2 WHERE NULL >= col2 * - col1
----

query I rowsort
SELECT + ( col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 21 col1 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT 51 * col2 + + + col2 FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + COUNT( * ) + 27 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-9156
SELECT + COUNT ( * ) + 27 FROM tab0 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL MAX( + + 46 ) + COUNT( * ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL MAX ( + + 46 ) + COUNT ( * ) FROM tab1 AS cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9158
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9158
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT - SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT - SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + 88 - - col0 + + + 17 FROM tab1 AS cor0
----
156
190
196

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( + col2 NOT IN ( + col1, - col1, - + col2, col0, col0 * - + 62 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT DISTINCT CAST( col2 AS SIGNED ) * - 69 + col2 AS col1 FROM tab0
----
-3196
-6732
-680

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - 69 + col2 AS col1 FROM tab0
----
-3196
-6732
-680

query III rowsort
SELECT * FROM tab0 WHERE + - col0 NOT BETWEEN 22 + - + col0 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9164
SELECT MIN( + CAST( col1 AS SIGNED ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9164
SELECT MIN ( + CAST ( col1 AS INTEGER ) ) FROM tab2
----
51

query I rowsort
SELECT col2 * + 39 * + - col2 FROM tab0
----
-382239
-3900
-86151

query I rowsort
SELECT DISTINCT col1 + + - col1 + - col1 * - ( col0 ) FROM tab2
----
2346
4928
5025

query II rowsort
SELECT col1 AS col1, col2 AS col1 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT + col0 FROM tab0 WHERE + ( + - col1 ) * - - col2 <= col1 * - + col1 * + 47
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT - + CAST( NULL AS SIGNED ) / - 53 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT - + CAST ( NULL AS INTEGER ) / - 53 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 - + ( col0 ) AS col2, col1 FROM tab0 AS cor0
----
-66
21
-96
1
66
81

query I rowsort
SELECT DISTINCT 50 FROM tab1 cor0 WHERE NULL IS NULL
----
50

query I rowsort
SELECT col0 * + - 86 * + ( ( + 83 ) ) AS col2 FROM tab2
----
-328348
-456832
-535350

query II rowsort
SELECT 51, - col2 + - + col0 AS col2 FROM tab1
----
51
-144
51
-147
51
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT SUM( + 85 ) * + 18 FROM tab1
----
4590

skipif mysql # not compatible
query I rowsort label-9174
SELECT SUM ( + 85 ) * + 18 FROM tab1
----
4590

query II rowsort
SELECT - col1, - 28 AS col1 FROM tab1
----
-14
-28
-47
-28
-5
-28

query II rowsort
SELECT ALL + - 8 AS col1, 38 * - 78 AS col0 FROM tab0 AS cor0
----
-8
-2964
-8
-2964
-8
-2964

query I rowsort
SELECT ALL 21 * col2 * - + col0 FROM tab1 AS cor0
----
-102816
-105315
-129948

query I rowsort
SELECT DISTINCT ( + 88 ) AS col2 FROM tab2 AS cor0
----
88

query II rowsort
SELECT ALL + col1 AS col2, - 87 AS col2 FROM tab1 AS cor0
----
14
-87
47
-87
5
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + 27 AS col0 FROM tab0 AS cor0
----
15
27
87
27
97
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT + 19 DIV col0 DIV - - col0 * col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9181
SELECT + 19 / col0 / - - col0 * col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9182
SELECT * FROM tab2 WHERE NOT ( - col1 ) NOT IN ( CAST( + - 96 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9182
SELECT * FROM tab2 WHERE NOT ( - col1 ) NOT IN ( CAST ( + - 96 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 + col2 AS col1 FROM tab0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab1
----
22
22
22

query I rowsort
SELECT DISTINCT - col2 * - ( - 15 ) FROM tab2
----
-345
-600
-870

query I rowsort
SELECT ( + + 95 ) FROM tab0
----
95
95
95

query I rowsort
SELECT DISTINCT col2 + + col2 - + col2 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + 92 + 66 * + col1 + - + 4 FROM tab2 cor0
----
3454
4510
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT DISTINCT - - ( - MAX( col0 ) ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT - - ( - MAX ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-91

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 23 * - 2 FROM tab0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9192
SELECT - ( COUNT( * ) ) DIV - COUNT( * ) FROM tab1 AS cor0 WHERE 92 - + - col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9192
SELECT - ( COUNT ( * ) ) / - COUNT ( * ) FROM tab1 AS cor0 WHERE 92 - + - col1 IS NOT NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= - - 45
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9194
SELECT 2 + COUNT( * ) DIV + CAST( - - 9 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-9194
SELECT 2 + COUNT ( * ) / + CAST ( - - 9 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9195
SELECT DISTINCT + col0 * - CAST( NULL AS DECIMAL ) + - ( + col0 ) + 85 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) + - ( + col0 ) + 85 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9196
SELECT DISTINCT + 89 - + col0 + - col0 DIV + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-8
10
74

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT + 89 - + col0 + - col0 / + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-8
10
74

query I rowsort
SELECT ALL - + ( + + ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT + - 26 - - 32 * + + col2 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
1478
81
294
21
3142
1

query I rowsort
SELECT - + col1 * 53 AS col1 FROM tab0 AS cor0
----
-1113
-4293
-53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - 79 NOT BETWEEN NULL AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + 5 - + - COUNT( * ) AS col1 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9201
SELECT + 5 - + - COUNT ( * ) AS col1 FROM tab1
----
8

query I rowsort
SELECT DISTINCT - 29 - + col1 * col1 AS col2 FROM tab1
----
-2238
-225
-54

query I rowsort
SELECT + 37 - + - col0 + col0 + + col2 * + col1 FROM tab0
----
330
3874
421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9204
SELECT DISTINCT COUNT( * ) * + + CAST( MIN( DISTINCT - - col2 ) AS SIGNED ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT COUNT ( * ) * + + CAST ( MIN ( DISTINCT - - col2 ) AS INTEGER ) AS col0 FROM tab2
----
69

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 46 AND + 70
----

query I rowsort
SELECT + col0 FROM tab1 WHERE 13 + - col1 * - - 32 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + 72 * 40 AS col1 FROM tab0 AS cor0
----
2880
2880
2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT 91 * - + COUNT( * ) AS col1 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT 91 * - + COUNT ( * ) AS col1 FROM tab2
----
-273

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 + - - 32 + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 40 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + 14 * - - MIN( ALL col1 ) FROM tab2 AS cor0
----
714

skipif mysql # not compatible
query I rowsort label-9212
SELECT + 14 * - - MIN ( ALL col1 ) FROM tab2 AS cor0
----
714

query I rowsort
SELECT + + 90 AS col1 FROM tab0 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT COUNT( 15 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT COUNT ( 15 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 + - + 32 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col0, col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query II rowsort
SELECT - - 6, col2 * 89 AS col0 FROM tab1 AS cor0
----
6
5251
6
6052
6
8544

query II rowsort
SELECT col0, 76 FROM tab2 AS cor0
----
46
76
64
76
75
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT - - col1 DIV 36 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9219
SELECT - - col1 / 36 AS col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT ALL + 7 AS col2 FROM tab1 cor0 WHERE NOT NULL > col0 - + - 63 * ( + col2 ) / + 86 + - 20
----

query II rowsort
SELECT ALL + col2 AS col0, col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9222
SELECT DISTINCT + 71 DIV + 57, - col1 * + - col0 * col0 AS col2 FROM tab2
----
1
107916
1
315392
1
376875

skipif mysql # not compatible
query II rowsort label-9222
SELECT DISTINCT + 71 / + 57, - col1 * + - col0 * col0 AS col2 FROM tab2
----
1
107916
1
315392
1
376875

query I rowsort
SELECT DISTINCT - col0 * + 57 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 44 + - 91 AS col2 FROM tab0
----
-135

query I rowsort
SELECT ( + 48 ) + 32 * col0 FROM tab1
----
1680
2768
2960

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT - + col1 DIV 21 col0 FROM tab1 WHERE + 26 IS NOT NULL
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9226
SELECT - + col1 / 21 col0 FROM tab1 WHERE + 26 IS NOT NULL
----
-2
0
0

query I rowsort
SELECT 78 + ( - 42 ) + - 18 - + col0 - - 41 AS col2 FROM tab0 AS cor0
----
-28
-38
44

query I rowsort
SELECT + - col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + MAX( DISTINCT - - 66 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-9229
SELECT + MAX ( DISTINCT - - 66 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
66

query I rowsort
SELECT DISTINCT - + 73 * 92 FROM tab0 cor0 WHERE 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL COUNT( * ) - + 62 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL COUNT ( * ) - + 62 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT - - col0 + + col0 - + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - + col1 + - + 86 FROM tab0 AS cor0
----
-107
-167
-87

query I rowsort
SELECT ALL - col0 * 36 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT DISTINCT + 35 DIV + col0 - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + 35 / + col0 - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND ( 79 )
----

query I rowsort
SELECT ALL - - col1 * - 85 FROM tab2 AS cor0
----
-4335
-5695
-6545

query III rowsort
SELECT * FROM tab1 WHERE - 26 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9239
SELECT ALL 20, CAST( NULL AS SIGNED ) * + col0 + col0 + - + col0 + - 80 + + 50 + + col1 AS col0 FROM tab2
----
20
NULL
20
NULL
20
NULL

skipif mysql # not compatible
query II rowsort label-9239
SELECT ALL 20, CAST ( NULL AS INTEGER ) * + col0 + col0 + - + col0 + - 80 + + 50 + + col1 AS col0 FROM tab2
----
20
NULL
20
NULL
20
NULL

query I rowsort
SELECT ALL - 54 AS col2 FROM tab2 WHERE + ( + col0 ) * col2 / - - 97 + + 49 >= - - col0 * + - col0 * - + col0
----

query I rowsort
SELECT ALL - col0 - - col0 * + + col0 + col1 AS col0 FROM tab1
----
2564
7145
8237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9242
SELECT 47 DIV COUNT( * ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-9242
SELECT 47 / COUNT ( * ) AS col2 FROM tab2
----
15

query I rowsort
SELECT + 21 * + 59 AS col1 FROM tab0
----
1239
1239
1239

onlyif mysql # aggregate syntax: 
query II rowsort label-9244
SELECT ALL 44 AS col0, 93 * - 88 * ( + COUNT( * ) ) * 98 FROM tab2
----
44
-2406096

skipif mysql # not compatible
query II rowsort label-9244
SELECT ALL 44 AS col0, 93 * - 88 * ( + COUNT ( * ) ) * 98 FROM tab2
----
44
-2406096

query I rowsort
SELECT - 15 * - 20 * col0 FROM tab1
----
15300
25500
27300

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL 54 * SUM( + 42 ) AS col0 FROM tab1
----
6804

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL 54 * SUM ( + 42 ) AS col0 FROM tab1
----
6804

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT + col1 DIV - col2 * col2 + - 64 FROM tab1 cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-9247
SELECT + col1 / - col2 * col2 + - 64 FROM tab1 cor0
----
-64
-64
-64

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = col2
----

query I rowsort
SELECT + 6 * + col2 AS col2 FROM tab2
----
138
240
348

query I rowsort
SELECT ALL - - 60 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + 18 * - col0 AS col0 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND + 51
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 7 + + - col0 NOT BETWEEN + 96 * + col2 AND NULL
----

query II rowsort
SELECT - + col1 * - col0 - + 50 AS col0, - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - ( - col2 ) + + col2 IS NULL
----
2296
-23
4878
-40
4975
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 2 + - 64 > + - col2 * - col2 - 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col0 FROM tab1
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 83 col0 FROM tab2
----
25
43
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + - - 38 col2 FROM tab1
----
-387
-4239
-676

query I rowsort
SELECT ALL + - col0 + - col1 - - + 30 + - 37 * + col1 FROM tab0 cor0
----
-105
-3063
-855

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 * + col1
----

query I rowsort
SELECT - col0 + - - 14 AS col0 FROM tab1 AS cor0
----
-37
-71
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 80 ) + 17 <= NULL
----

query I rowsort
SELECT + - 2 FROM tab1 AS cor0 WHERE - col0 + - + ( + col1 ) * + + 63 IS NOT NULL
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL - MAX( - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL - MAX ( - col2 ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # aggregate syntax: 
query II rowsort label-9266
SELECT + COUNT( * ), 6 col1 FROM tab2
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9266
SELECT + COUNT ( * ), 6 col1 FROM tab2
----
3
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT ALL CAST( - - 39 AS SIGNED ) FROM tab2 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL CAST ( - - 39 AS INTEGER ) FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT ( - 77 ) AS col0 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE - col0 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL + - SUM( DISTINCT - col1 ) - + 82 + - COUNT( * ) FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL + - SUM ( DISTINCT - col1 ) - + 82 + - COUNT ( * ) FROM tab2 AS cor0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT - 66 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT - 66 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - col2 - 13 FROM tab1 AS cor0
----
-109
-72
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + - 29 * col1 < - - 61 / ( - col0 ) + + - col0
----

query II rowsort
SELECT DISTINCT col2 * + - ( 33 ), col1 AS col0 FROM tab2 cor0
----
-1320
77
-1914
67
-759
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT + col1 DIV + - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9275
SELECT + col1 / + - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + 60 * - col2 FROM tab2 AS cor0
----
-1380
-2400
-3480

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT - 14 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9278
SELECT - 14 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 28, col2 col2 FROM tab2
----
28
23
28
40
28
58

query I rowsort
SELECT DISTINCT 83 * - col1 FROM tab1
----
-1162
-3901
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT COUNT( * ) * - - 93 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT COUNT ( * ) * - - 93 FROM tab0 AS cor0
----
279

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - ( + - col0 ) < - col0 + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9283
SELECT - 58 DIV 31 DIV 91 * + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9283
SELECT - 58 / 31 / 91 * + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9284
SELECT DISTINCT + - col0 DIV - col0 - 39 AS col1, ( 33 ) AS col1 FROM tab1 AS cor0
----
-38
33

skipif mysql # not compatible
query II rowsort label-9284
SELECT DISTINCT + - col0 / - col0 - 39 AS col1, ( 33 ) AS col1 FROM tab1 AS cor0
----
-38
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ( - COUNT( * ) ) * + 81 AS col0 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-9285
SELECT ( - COUNT ( * ) ) * + 81 AS col0 FROM tab2 AS cor0
----
-243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9286
SELECT ALL - MAX( ALL - col0 ) DIV - 3 col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9286
SELECT ALL - MAX ( ALL - col0 ) / - 3 col2 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
23
40
58

query I rowsort
SELECT - ( + - 20 ) FROM tab2 AS cor0
----
20
20
20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - ( + 81 )
----

query I rowsort
SELECT DISTINCT - 18 * col0 AS col0 FROM tab1
----
-1530
-1638
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL + COUNT( * ) + - - ( - 41 ) AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + COUNT ( * ) + - - ( - 41 ) AS col1 FROM tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT + 91 + + COUNT( * ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT + 91 + + COUNT ( * ) FROM tab2
----
94

query I rowsort
SELECT DISTINCT col2 * 35 * - col1 + col1 FROM tab2
----
-107723
-135943
-41004

query I rowsort
SELECT ALL col2 + + 51 * 76 AS col1 FROM tab1 AS cor0
----
3935
3944
3972

query I rowsort
SELECT DISTINCT - col1 + + col2 * + col2 FROM tab0 AS cor0
----
2128
79
9800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9296
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9296
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL + 39 * + 1 * + + col0 * col2 AS col1 FROM tab1
----
190944
195585
241332

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT 32 + + - COUNT( * ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-9299
SELECT 32 + + - COUNT ( * ) AS col2 FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT - COUNT( * ) + + 49 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9300
SELECT - COUNT ( * ) + + 49 FROM tab1 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT ALL col2 - - ( + - col1 ) DIV + col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL col2 - - ( + - col1 ) / + col1 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT + SUM( DISTINCT + - col2 ) * - + 54 AS col0 FROM tab2 AS cor0
----
6534

skipif mysql # not compatible
query I rowsort label-9302
SELECT + SUM ( DISTINCT + - col2 ) * - + 54 AS col0 FROM tab2 AS cor0
----
6534

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 0 BETWEEN col2 AND - + ( + 90 ) * + + 88 / 64
----

query I rowsort
SELECT ( - + 56 ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-56
-56
-56

query I rowsort
SELECT ALL col2 * - col0 + - + 25 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-4921
-5040
-6213

query II rowsort
SELECT + 43 AS col1, 72 AS col0 FROM tab0
----
43
72
43
72
43
72

query I rowsort
SELECT ( col2 ) * + col2 - - col0 AS col0 FROM tab2
----
1664
3439
575

query II rowsort
SELECT col2 AS col1, - 44 FROM tab2
----
23
-44
40
-44
58
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT MIN( ALL + CAST( col2 AS SIGNED ) ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9309
SELECT MIN ( ALL + CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ( + - SUM( + 65 ) ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-9310
SELECT ( + - SUM ( + 65 ) ) FROM tab0
----
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + - ( 0 ) + - + col1 * + + col2 / + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col1 * - 79 * 3 * - col0 FROM tab2 AS cor0
----
1167936
1190925
556002

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 AS cor0 WHERE + 57 * + col1 * 0 IS NOT NULL
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL - SUM( 93 ) FROM tab0 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL - SUM ( 93 ) FROM tab0 cor0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT DISTINCT + 38 * + col0 + - - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1794
2496
2925

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT + 38 * + col0 + - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1794
2496
2925

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 + + col0 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + + 4 + + col0 + 34 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 18 + + 91 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 34 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 34 * - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT - - COUNT( * ) * - - 52 + - SUM( - + col0 ) * - + 77, MIN( DISTINCT 44 ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9320
SELECT - - COUNT ( * ) * - - 52 + - SUM ( - + col0 ) * - + 77, MIN ( DISTINCT 44 ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9321
SELECT + CAST( NULL AS DECIMAL ) * - 62 + - - col1 - + 92 FROM tab1 WHERE NULL >= - 16
----

skipif mysql # not compatible
query I rowsort label-9321
SELECT + CAST ( NULL AS REAL ) * - 62 + - - col1 - + 92 FROM tab1 WHERE NULL >= - 16
----

query I rowsort
SELECT + 46 * - col2 AS col2 FROM tab1
----
-2714
-3128
-4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9323
SELECT COUNT( * ) DIV + - MAX( DISTINCT 92 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT COUNT ( * ) / + - MAX ( DISTINCT 92 ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT col2 DIV - 1 AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9324
SELECT col2 / - 1 AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT MAX( + col2 ) * 67 AS col2 FROM tab0
----
6633

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT MAX ( + col2 ) * 67 AS col2 FROM tab0
----
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT - COUNT( * ) * - + 5 AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT - COUNT ( * ) * - + 5 AS col0 FROM tab2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT DISTINCT - col0 + - - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - col0 + - - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT ( - + col2 ) + col1 AS col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT - col0 + + 93 AS col1 FROM tab2 AS cor0
----
18
29
47

query I rowsort
SELECT - col1 + + 89 FROM tab1 AS cor0
----
42
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT MIN( col0 ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9332
SELECT DISTINCT MIN ( col0 ) col0 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT CAST( col0 AS SIGNED ) col1 FROM tab1 WHERE - col1 * + col0 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT CAST ( col0 AS INTEGER ) col1 FROM tab1 WHERE - col1 * + col0 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col1 * 71 + - 53 FROM tab1
----
302
3284
941

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT ( + COUNT( DISTINCT col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT ( + COUNT ( DISTINCT col2 ) ) FROM tab2
----
3

query I rowsort
SELECT + col2 * col1 + col0 AS col0 FROM tab0
----
196
297
3822

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 48 ) IS NOT NULL
----

query I rowsort
SELECT col0 * + 11 + ( col1 ) AS col0 FROM tab1
----
1048
575
940

query I rowsort
SELECT 69 + - col1 AS col2 FROM tab2
----
-8
18
2

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL > ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9343
SELECT * FROM tab2 WHERE NULL <= - ( + CAST( NULL AS SIGNED ) ) + + col0
----

skipif mysql # not compatible
query III rowsort label-9343
SELECT * FROM tab2 WHERE NULL <= - ( + CAST ( NULL AS INTEGER ) ) + + col0
----

query I rowsort
SELECT + col0 / - col1 + - col2 * col1 AS col2 FROM tab1 WHERE NOT NULL <> ( col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ( + COUNT( - col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9345
SELECT ( + COUNT ( - col2 ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT + MIN( + col2 ) FROM tab1 WHERE NULL NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT + MIN ( + col2 ) FROM tab1 WHERE NULL NOT IN ( - col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT - 10 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT - 10 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9348
SELECT DISTINCT CAST( NULL AS DECIMAL ) + CAST( - COUNT( * ) + 74 * + 72 AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT CAST ( NULL AS REAL ) + CAST ( - COUNT ( * ) + 74 * + 72 AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + + col0 AS col0 FROM tab1 WHERE + col2 = 72
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( + 17 * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9351
SELECT ALL * FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) * + ( 32 ) ) NOT BETWEEN NULL AND col2 * 42
----

skipif mysql # not compatible
query III rowsort label-9351
SELECT ALL * FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) * + ( 32 ) ) NOT BETWEEN NULL AND col2 * 42
----

query I rowsort
SELECT col0 - + 17 AS col1 FROM tab0
----
-2
70
80

query I rowsort
SELECT DISTINCT + 26 + + 38 AS col1 FROM tab2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9354
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9354
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT 33 + + ( col1 ) * + col2 col1 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
1206
3113
3919

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9355
SELECT 33 + + ( col1 ) * + col2 col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
1206
3113
3919

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) > - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9357
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT DISTINCT - col2 * + 54 + col2 AS col0 FROM tab2 WHERE NOT ( - col0 ) > CAST( - col1 AS SIGNED )
----
-3074

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - col2 * + 54 + col2 AS col0 FROM tab2 WHERE NOT ( - col0 ) > CAST ( - col1 AS INTEGER )
----
-3074

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col0 / + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( col0 * col1 - col0 )
----

query I rowsort
SELECT 49 * - 85 FROM tab2 AS cor0
----
-4165
-4165
-4165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9362
SELECT + 24 DIV - COUNT( * ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9362
SELECT + 24 / - COUNT ( * ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT 39 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col1 FROM tab0 WHERE NULL IN ( ( - ( - col1 ) ) + + 64 / 64 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE ( ( 30 ) ) IN ( col1 * - col2 - - 65 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 7 col0 FROM tab2 cor0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9367
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( 40 ) >= ( - CAST( NULL AS SIGNED ) * - col2 - - 9 )
----
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( 40 ) >= ( - CAST ( NULL AS INTEGER ) * - col2 - - 9 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * col2 BETWEEN ( NULL ) AND 49 * - col1
----

query I rowsort
SELECT ALL - 53 * col1 + - 90 * col1 FROM tab0 AS cor0
----
-11583
-143
-3003

query I rowsort
SELECT ALL - ( + 24 ) AS col1 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT - 92 * col2 FROM tab1 AS cor0 WHERE NOT col2 <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 92 + - col1 col0 FROM tab1 AS cor0
----
45
78
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 94 + ( + ( col2 ) + 67 ) * - col0 col2 FROM tab0 cor0
----
-300
-6984
1479

query I rowsort
SELECT - 94 + + col2 FROM tab2 cor0
----
-36
-54
-71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - col0 ) NOT BETWEEN col1 AND col2 + 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9376
SELECT * FROM tab0 AS cor0 WHERE NULL > CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9376
SELECT * FROM tab0 AS cor0 WHERE NULL > CAST ( col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE 99 <= ( NULL )
----

query I rowsort
SELECT ALL + ( + + ( col0 ) ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT 71 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 23 * col0 * col2 FROM tab0
----
16215
20010
220869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9381
SELECT + CAST( + ( - COUNT( * ) ) AS SIGNED ) DIV - 11 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9381
SELECT + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) / - 11 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT + + SUM( 28 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9382
SELECT + + SUM ( 28 ) FROM tab0 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 73 * col0 ) NOT BETWEEN col1 AND ( 46 ) AND NOT ( 57 * + col1 + - 29 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + - col0 <= - col1 * ( 45 * col0 )
----

query I rowsort
SELECT DISTINCT - 49 * + + 41 FROM tab0 AS cor0
----
-2009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) - - 47 col2 FROM tab0 cor0
----
-52
0
37

query I rowsort
SELECT DISTINCT - - 98 AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
98

query I rowsort
SELECT ALL + 12 * col0 FROM tab2
----
552
768
900

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9389
SELECT DISTINCT 50 / + CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9389
SELECT DISTINCT 50 / + CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT DISTINCT + col0 DIV + + col0 col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9391
SELECT DISTINCT + col0 / + + col0 col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9392
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT 22 * + 90 * - - col2 * - 5 FROM tab0 AS cor0
----
-465300
-980100
-99000

query I rowsort
SELECT DISTINCT - ( - - 93 ) FROM tab2 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 12 + - col2 col2 FROM tab0 AS cor0
----
1089
110
517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9396
SELECT DISTINCT + CAST( - + MAX( DISTINCT + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT + CAST ( - + MAX ( DISTINCT + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - col2 * + + 19 * - + col0 * + 66 FROM tab0 AS cor0
----
1090980
12042162
884070

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IS NULL OR NOT ( + col0 + + col1 ) NOT BETWEEN 82 + + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + - COUNT( * ) * 7 AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9399
SELECT + - COUNT ( * ) * 7 AS col0 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT 54 AS col1 FROM tab0 cor0
----
54
54
54

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 88 ) col2 FROM tab2
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9403
SELECT ALL CAST( + 43 AS SIGNED ) DIV - + col1 FROM tab0
----
-2
-43
0

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL CAST ( + 43 AS INTEGER ) / - + col1 FROM tab0
----
-2
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT - COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9404
SELECT - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE 58 + + + col1 NOT BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT MAX( + 33 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9406
SELECT MAX ( + 33 ) FROM tab2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT DISTINCT SUM( ALL - CAST( col2 AS SIGNED ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT SUM ( ALL - CAST ( col2 AS INTEGER ) ) FROM tab1
----
-223

query I rowsort
SELECT DISTINCT + 14 FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN - 8 * + col2 AND - 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9409
SELECT ALL * FROM tab1 WHERE ( - col2 * - col2 + - CAST( - col0 AS SIGNED ) + + 13 * - 24 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9409
SELECT ALL * FROM tab1 WHERE ( - col2 * - col2 + - CAST ( - col0 AS INTEGER ) + + 13 * - 24 ) IS NULL
----

query I rowsort
SELECT ALL col2 + + + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
198
20
94

query I rowsort
SELECT DISTINCT col1 * 46 + - - ( - col1 ) + - 59 AS col0 FROM tab0
----
-14
3586
886

query I rowsort
SELECT + 95 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( col1 / + 73 ) NOT BETWEEN ( ( col0 ) ) AND col2 * + col2 )
----

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-46

query I rowsort
SELECT + 7 + 73 AS col2 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT + MAX( - + col0 ) + ( COUNT( - - col2 ) ) AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9415
SELECT + MAX ( - + col0 ) + ( COUNT ( - - col2 ) ) AS col2 FROM tab0
----
-12

query III rowsort
SELECT * FROM tab0 WHERE 95 NOT IN ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT DISTINCT - - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 94 * + 23 >= ( ( + - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT - + 59 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT - + 59 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) >= - 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT 98 col0, + ( + + COUNT( * ) ) FROM tab2
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9421
SELECT 98 col0, + ( + + COUNT ( * ) ) FROM tab2
----
98
3

query I rowsort
SELECT col1 FROM tab2 WHERE ( ( NOT + + 86 * + col2 <> - 93 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT + 39 - - col1 + CAST( + 20 AS SIGNED ) FROM tab0
----
140
60
80

skipif mysql # not compatible
query I rowsort label-9423
SELECT + 39 - - col1 + CAST ( + 20 AS INTEGER ) FROM tab0
----
140
60
80

query I rowsort
SELECT + - col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND 85 * - col2 - col2 * + + col0 + + col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT COUNT( * ) - + - 3 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9426
SELECT COUNT ( * ) - + - 3 AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT COUNT( * ) - + 0 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9427
SELECT COUNT ( * ) - + 0 AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL - COUNT( * ) * COUNT( * ) col2 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9428
SELECT ALL - COUNT ( * ) * COUNT ( * ) col2 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 * + col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 * + col1 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9430
SELECT ALL + col2 + + 72 + CAST( - + col1 AS SIGNED ) AS col1, col1 * + 73 FROM tab2
----
35
5621
44
3723
63
4891

skipif mysql # not compatible
query II rowsort label-9430
SELECT ALL + col2 + + 72 + CAST ( - + col1 AS INTEGER ) AS col1, col1 * + 73 FROM tab2
----
35
5621
44
3723
63
4891

query I rowsort
SELECT - col1 + + + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + - + col0 + + col2 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT ALL + - col0 - - + ( - col1 ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT + COUNT( * ) * - COUNT( ALL - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - col0 * + - col2 ) NOT BETWEEN NULL AND 62 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT + COUNT ( * ) * - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - col0 * + - col2 ) NOT BETWEEN NULL AND 62 + - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL - COUNT( * ) * + ( + + 13 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL - COUNT ( * ) * + ( + + 13 ) FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT SUM( ALL - ( + + col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9436
SELECT SUM ( ALL - ( + + col1 ) ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - COUNT( * ) * + ( - 86 ) AS col1 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - COUNT ( * ) * + ( - 86 ) AS col1 FROM tab1 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT + - 72 * - ( + COUNT( DISTINCT + - 97 ) ) col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9438
SELECT + - 72 * - ( + COUNT ( DISTINCT + - 97 ) ) col0 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT 79 * + - 61 col2 FROM tab2 AS cor0 WHERE NOT col1 + - col1 - - CAST( NULL AS SIGNED ) NOT IN ( 58 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9439
SELECT 79 * + - 61 col2 FROM tab2 AS cor0 WHERE NOT col1 + - col1 - - CAST ( NULL AS INTEGER ) NOT IN ( 58 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT - col1 DIV - + col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9440
SELECT - col1 / - + col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL - + 92 + + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
-89

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL - + 92 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9442
SELECT ALL + col2 * + CAST( NULL AS DECIMAL ) + + 59 + + col1 * + - 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + col2 * + CAST ( NULL AS REAL ) + + 59 + + col1 * + - 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 90 AS col0 FROM tab1 cor0
----
90
90
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 97, col2, + col2 )
----

query II rowsort
SELECT ALL + - col2 * - + col0 AS col0, + 9 AS col2 FROM tab2 AS cor0
----
1058
9
2560
9
4350
9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - 88 NOT IN ( - col0 + + 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT DISTINCT - col0 DIV - col1 col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9447
SELECT DISTINCT - col0 / - col1 col0 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL SUM( ALL + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL SUM ( ALL + col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab0 WHERE + 68 * - 62 + - - col2 IN ( - 36 )
----

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT - MIN( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9451
SELECT DISTINCT - MIN ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

query I rowsort
SELECT col0 + + - col2 + + col1 FROM tab0
----
-1
49
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9453
SELECT + 4 * + - AVG ( + - col2 ) * + 66 + - - ( + 46 ) - 78 - - 42 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT + 4 * + - AVG ( + - col2 ) * + 66 + - - ( + 46 ) - 78 - - 42 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 9 + - - col0 + col0 * + - col2 + 73 FROM tab0 AS cor0
----
-608
-701
-9424

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9455
SELECT * FROM tab0 cor0 WHERE + CAST( - 65 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9455
SELECT * FROM tab0 cor0 WHERE + CAST ( - 65 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT + col1 AS col2 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9456
SELECT + col1 AS col2 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col2 + - col1 * + - ( - 73 ) AS col2 FROM tab0
----
-1523
-5866
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( col0 )
----

query I rowsort
SELECT 76 + + - col0 * - + col0 FROM tab0
----
301
7645
9485

query I rowsort
SELECT - 76 + col0 FROM tab0 AS cor0
----
-61
11
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9461
SELECT + col2 + - CAST( NULL AS SIGNED ) AS col1, + 15 AS col2 FROM tab1 AS cor0
----
NULL
15
NULL
15
NULL
15

skipif mysql # not compatible
query II rowsort label-9461
SELECT + col2 + - CAST ( NULL AS INTEGER ) AS col1, + 15 AS col2 FROM tab1 AS cor0
----
NULL
15
NULL
15
NULL
15

query I rowsort
SELECT - - 52 + 30 AS col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT - SUM( DISTINCT - col0 ) - - 62 AS col2 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT - SUM ( DISTINCT - col0 ) - - 62 AS col2 FROM tab0 AS cor0
----
261

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col0 / + 6
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col1 + + - col2 - + - 89 * - - 22 + + col2 BETWEEN - col1 * col0 + col2 AND 99 * + 32 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 25 + + col0 + - col0 + - - col1 + - - ( + - col2 ) + + ( 48 ) FROM tab1 cor0
----
-9
19
52

query I rowsort
SELECT ALL - 48 + + ( + col0 ) * + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-25123
-290884
-68592

query I rowsort
SELECT + + 91 FROM tab2 AS cor0 WHERE - col0 BETWEEN + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 78 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 78 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 50 * col2 + - + col2 AS col1 FROM tab0 AS cor0
----
2303
4851
490

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 32 / col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9472
SELECT - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9473
SELECT 12 * - 64 / CAST( NULL AS SIGNED ), col2 col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9473
SELECT 12 * - 64 / CAST ( NULL AS INTEGER ), col2 col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + col1 * - col0, col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9475
SELECT COUNT( * ) AS col0, 49 * 0 AS col1 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-9475
SELECT COUNT ( * ) AS col0, 49 * 0 AS col1 FROM tab0
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT + 89 DIV - 55 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9476
SELECT + 89 / - 55 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT - 55 DIV - col1 FROM tab1
----
1
11
3

skipif mysql # not compatible
query I rowsort label-9477
SELECT - 55 / - col1 FROM tab1
----
1
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT - 23 - - col2 NOT BETWEEN - 63 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 23 - - col2 NOT BETWEEN - 63 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL - - MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - - MIN ( - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1 * 66 )
----

query I rowsort
SELECT DISTINCT - 20 FROM tab2 AS cor0 WHERE NULL IN ( col0 * + + 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT MAX( ALL + + col0 ) * - COUNT( DISTINCT - + col0 ) AS col0 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-9482
SELECT MAX ( ALL + + col0 ) * - COUNT ( DISTINCT - + col0 ) AS col0 FROM tab0
----
-291

query I rowsort
SELECT DISTINCT col0 * - col2 * + col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT ALL - 72 + + col1 FROM tab0 AS cor0 WHERE NOT col1 - - + ( + col2 ) + + 33 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + col1 + - + col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT DISTINCT - 54 DIV col0 AS col0 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - 54 / col0 AS col0 FROM tab2 cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL - 4 * MIN( DISTINCT + 15 ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - 4 * MIN ( DISTINCT + 15 ) AS col0 FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT - col0 col1 FROM tab2 AS cor0 WHERE NOT col1 * + CAST( + col1 AS SIGNED ) < + 57 + 40 + + col1
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9488
SELECT - col0 col1 FROM tab2 AS cor0 WHERE NOT col1 * + CAST ( + col1 AS INTEGER ) < + 57 + 40 + + col1
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - - col1 )
----

query I rowsort
SELECT DISTINCT - - col0 * - + 64 AS col0 FROM tab1 AS cor0
----
-3264
-5440
-5824

query I rowsort
SELECT + col1 * - 21 + col0 FROM tab1 AS cor0 WHERE NOT - 87 / + + 50 * col2 IS NULL
----
-20
-243
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT - 88 DIV - col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9492
SELECT - 88 / - col2 AS col1 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9493
SELECT - ( + col2 ) AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-9493
SELECT - ( + col2 ) AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9494
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + 21 AS SIGNED ) / + ( 85 ) - + + 57 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9494
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + 21 AS INTEGER ) / + ( 85 ) - + + 57 * - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 + - col2 * + + 29 AS col0 FROM tab0
----
-1410
-2970
-300

query I rowsort
SELECT DISTINCT + col0 + + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT + + 92 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT + + 92 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-9498
SELECT ALL - col2 + col0 DIV + col0, - col0 AS col1 FROM tab0 cor0
----
-46
-15
-9
-87
-98
-97

skipif mysql # not compatible
query II rowsort label-9498
SELECT ALL - col2 + col0 / + col0, - col0 AS col1 FROM tab0 cor0
----
-46
-15
-9
-87
-98
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT + + 89 AS col1, COUNT( * ) + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
89
6

skipif mysql # not compatible
query II rowsort label-9499
SELECT + + 89 AS col1, COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
89
6

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col1 * + col1 >= + col1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 76 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
3557
4700
9292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + col2 col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * col0 - col2 AS col1 FROM tab2 AS cor0
----
-1081
-2600
-4408

query II rowsort
SELECT ALL 67 * - col2 * 87 - - col2, col1 FROM tab2 AS cor0
----
-134044
51
-233120
77
-338024
67

query I rowsort
SELECT col1 + + 86 + - + col1 FROM tab1
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT COUNT( * ) + - 28 + - - MIN( - - col1 ) AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-9507
SELECT COUNT ( * ) + - 28 + - - MIN ( - - col1 ) AS col1 FROM tab0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - - col2 * - + 39 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9509
SELECT ALL col1 DIV + col1, col2 * + 35 AS col2 FROM tab2
----
1
1400
1
2030
1
805

skipif mysql # not compatible
query II rowsort label-9509
SELECT ALL col1 / + col1, col2 * + 35 AS col2 FROM tab2
----
1
1400
1
2030
1
805

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 AND - col2 + - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT + COUNT( * ) * + - 32 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9511
SELECT + COUNT ( * ) * + - 32 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - 42 * + 47 + - col0 FROM tab1 AS cor0 WHERE NOT + 75 IS NULL
----
-2025
-2059
-2065

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9513
SELECT * FROM tab2 cor0 WHERE NOT - 5 / col0 * + col1 NOT IN ( col2, col0 * + CAST( NULL AS DECIMAL ), + 10 / + col0 + 45 + - + CAST( NULL AS DECIMAL ) + - 19 )
----

skipif mysql # not compatible
query III rowsort label-9513
SELECT * FROM tab2 cor0 WHERE NOT - 5 / col0 * + col1 NOT IN ( col2, col0 * + CAST ( NULL AS REAL ), + 10 / + col0 + 45 + - + CAST ( NULL AS REAL ) + - 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + ( + - COUNT( * ) ) + - + SUM( - 87 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
774

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9514
SELECT ALL + ( + - COUNT ( * ) ) + - + SUM ( - 87 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
774

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab2 WHERE - + 67 * - 48 * col1 BETWEEN ( - - col1 / + col0 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT - - MIN( ALL - + col1 ) AS col0 FROM tab0 WHERE NOT ( col0 IS NULL )
----
-81

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - - MIN ( ALL - + col1 ) AS col0 FROM tab0 WHERE NOT ( col0 IS NULL )
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - col1 + + col0 + col1 * - 48 * + - col2 FROM tab2 AS cor0
----
153833
191092
58951

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE NOT + 65 IS NOT NULL
----

query I rowsort
SELECT + col1 * col0 * - 17 * + col0 * + 39 AS col1 FROM tab1 cor0
----
-23950875
-24142482
-258044241

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9521
SELECT - COUNT( ALL col1 ) DIV 73 * ( COUNT( - 73 ) ), MAX( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
0
-1

skipif mysql # not compatible
query II rowsort label-9521
SELECT - COUNT ( ALL col1 ) / 73 * ( COUNT ( - 73 ) ), MAX ( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
0
-1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( 77 * + + col2, - col2, col2 )
----

query I rowsort
SELECT ALL + - ( - - 11 ) AS col2 FROM tab0 AS cor0
----
-11
-11
-11

query II rowsort
SELECT DISTINCT col2 AS col1, col0 AS col0 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 59 * - + 2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL + SUM( 55 ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + SUM ( 55 ) FROM tab2 AS cor0
----
165

query I rowsort
SELECT DISTINCT col1 * + - col2 + + 47 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - + 48 + + 99 FROM tab1
----
2547
4179
4467

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 37 * col1 * - - 39 <= + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 39 + 65 + ( col0 ) * - col0 + - - col2 * + col2, col2 AS col1 FROM tab1
----
-3631
68
-3718
59
6641
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT - SUM( - CAST( - col0 AS SIGNED ) ) + + 60 * - COUNT( * ) col2 FROM tab2
----
-365

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9531
SELECT - SUM ( - CAST ( - col0 AS INTEGER ) ) + + 60 * - COUNT ( * ) col2 FROM tab2
----
-365

query II rowsort
SELECT - 76 AS col0, col0 AS col1 FROM tab1
----
-76
51
-76
85
-76
91

query I rowsort
SELECT DISTINCT - col1 * - col0 + - 24 FROM tab2 AS cor0
----
2322
4904
5001

query I rowsort
SELECT ALL + col1 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - ( + 2 ) * + SUM( + - col1 ) FROM tab2 AS cor0
----
390

skipif mysql # not compatible
query I rowsort label-9535
SELECT - ( + 2 ) * + SUM ( + - col1 ) FROM tab2 AS cor0
----
390

query I rowsort
SELECT ALL - - 80 + - - 69 FROM tab1 AS cor0
----
149
149
149

query I rowsort
SELECT DISTINCT - col0 * + + 81 FROM tab2 AS cor0
----
-3726
-5184
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= ( NULL )
----
0

query II rowsort
SELECT - - col0 + - col1 AS col0, ( + + col1 ) FROM tab0 AS cor0
----
-66
81
66
21
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9540
SELECT ALL * FROM tab2 AS cor0 WHERE 16 * + col0 - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9540
SELECT ALL * FROM tab2 AS cor0 WHERE 16 * + col0 - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 - + + col1 * 59 FROM tab1 AS cor0
----
-2841
-354
-922

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL COUNT( * ) * - 9 FROM tab0, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL COUNT ( * ) * - 9 FROM tab0, tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT COUNT( ALL + + 34 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9544
SELECT COUNT ( ALL + + 34 ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 * + - col1 * col2 AS col0 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN + - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9546
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN + - col2 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col2 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT 4 AS col0, 37 + - + col1 + + col1 FROM tab0
----
4
37
4
37
4
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT SUM( ALL - 25 ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-9549
SELECT SUM ( ALL - 25 ) FROM tab0
----
-75

query I rowsort
SELECT + col0 * - col0 * + col0 AS col2 FROM tab2
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9551
SELECT DISTINCT COUNT( * ) DIV + COUNT( ALL - col0 ), 30 AS col1 FROM tab1
----
1
30

skipif mysql # not compatible
query II rowsort label-9551
SELECT DISTINCT COUNT ( * ) / + COUNT ( ALL - col0 ), 30 AS col1 FROM tab1
----
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL + COUNT( * ) * 80 FROM tab2 cor0
----
240

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL + COUNT ( * ) * 80 FROM tab2 cor0
----
240

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 41 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT SUM( 39 ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-9554
SELECT SUM ( 39 ) FROM tab1
----
117

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + col0 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 + + col1 col0 FROM tab0 cor0
----
100
20
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9559
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) / + 48 - - 64 * + 14 - - 72 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + 48 - - 64 * + 14 - - 72 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT + - COUNT( * ) * 60 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9560
SELECT + - COUNT ( * ) * 60 FROM tab0 AS cor0
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - 55 col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) + - - 42 IS NULL
----
106
140
146

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT - col2 * + col2 + + 55 DIV + col1 AS col0 FROM tab0 AS cor0
----
-2209
-9746
-98

skipif mysql # not compatible
query I rowsort label-9562
SELECT - col2 * + col2 + + 55 / + col1 AS col0 FROM tab0 AS cor0
----
-2209
-9746
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 * + ( + - col2 ) col0 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT MAX( - + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9564
SELECT MAX ( - + col1 ) AS col1 FROM tab1
----
-5

query II rowsort
SELECT ( - ( - col2 ) ) AS col1, + col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab1 WHERE - + 33 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 * + + 1 AS col1 FROM tab2
----
2624
4547
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL COUNT( * ) * 23 AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL COUNT ( * ) * 23 AS col1 FROM tab0
----
69

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 WHERE col2 + 13 BETWEEN col2 AND - col0 / + col0 * - + 23
----

query I rowsort
SELECT + col1 + + - 79 + - col2 + + 77 FROM tab1
----
-23
-56
-84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9571
SELECT DISTINCT - 74 + - - CAST( + + col1 AS SIGNED ) AS col0, + CAST( + CAST( + col0 AS DECIMAL ) AS SIGNED ) col1 FROM tab2
----
-23
46
-7
75
3
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9571
SELECT DISTINCT - 74 + - - CAST ( + + col1 AS INTEGER ) AS col0, + CAST ( + CAST ( + col0 AS REAL ) AS INTEGER ) col1 FROM tab2
----
-23
46
-7
75
3
64

query I rowsort
SELECT DISTINCT + - col1 * + + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - 23 + + col0 FROM tab1 AS cor0
----
28
62
68

query I rowsort
SELECT - - 42 + - + col1 FROM tab0 AS cor0
----
-39
21
41

query I rowsort
SELECT DISTINCT + + 8 - - col1 FROM tab1 AS cor0
----
13
22
55

query I rowsort
SELECT - - 25 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # DIV for integer division: 
query I rowsort label-9577
SELECT col0 * col0 DIV + + col2 FROM tab0
----
4
756
95

skipif mysql # not compatible
query I rowsort label-9577
SELECT col0 * col0 / + + col2 FROM tab0
----
4
756
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT MIN( ALL + - 57 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-57

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT MIN ( ALL + - 57 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT - + col2 + - col1 / CAST( NULL AS SIGNED ) * col2 * + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT - + col2 + - col1 / CAST ( NULL AS INTEGER ) * col2 * + col2 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 41
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT DISTINCT 64 * 65 AS col1, MIN( ALL 26 ) AS col1 FROM tab0 AS cor0
----
4160
26

skipif mysql # not compatible
query II rowsort label-9581
SELECT DISTINCT 64 * 65 AS col1, MIN ( ALL 26 ) AS col1 FROM tab0 AS cor0
----
4160
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + 59 + - col1 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9583
SELECT CAST( NULL AS SIGNED ), + col2 + + col2 AS col2 FROM tab1 AS cor0
----
NULL
118
NULL
136
NULL
192

skipif mysql # not compatible
query II rowsort label-9583
SELECT CAST ( NULL AS INTEGER ), + col2 + + col2 AS col2 FROM tab1 AS cor0
----
NULL
118
NULL
136
NULL
192

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
59
68
96

query II rowsort
SELECT 66, + col1 AS col2 FROM tab2 AS cor0
----
66
51
66
67
66
77

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <> - + col0 + - ( - 21 ) / - + 12 + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 27 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT ALL CAST( NULL AS SIGNED ) * - 90 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL CAST ( NULL AS INTEGER ) * - 90 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE - - 52 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 12 * - col0 + - col2 - + 10 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9591
SELECT DISTINCT 86 DIV + 63, col1 AS col1 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-9591
SELECT DISTINCT 86 / + 63, col1 AS col1 FROM tab0
----
1
1
1
21
1
81

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2, - col0 - col2, - + col2 )
----

query I rowsort
SELECT col1 * - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9594
SELECT - MAX( ALL 83 ) DIV CAST( + 61 AS SIGNED ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9594
SELECT - MAX ( ALL 83 ) / CAST ( + 61 AS INTEGER ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT COUNT( * ) - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-9595
SELECT COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9596
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * col1 - + + 40 - - col0 + - col0 NOT IN ( + 2 + + 61 + - - col0 * + + col0 * + col0, col1 * + 63, + - col1, - + 79, - col0 * col2 )
----

skipif mysql # not compatible
query III rowsort label-9596
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 - + + 40 - - col0 + - col0 NOT IN ( + 2 + + 61 + - - col0 * + + col0 * + col0, col1 * + 63, + - col1, - + 79, - col0 * col2 )
----

query II rowsort
SELECT - col2 AS col2, col2 * - col0 AS col2 FROM tab1
----
-59
-5015
-68
-6188
-96
-4896

query II rowsort
SELECT + - 61 AS col0, col2 FROM tab1 AS cor0
----
-61
59
-61
68
-61
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + MIN( DISTINCT + 97 ) AS col0 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9599
SELECT + MIN ( DISTINCT + 97 ) AS col0 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT - 8 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-8
3

skipif mysql # not compatible
query II rowsort label-9600
SELECT - 8 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-8
3

query I rowsort
SELECT - 56 * - col1 FROM tab1 AS cor0
----
2632
280
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT + + CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT + col2 BETWEEN ( NULL ) AND NULL AND + 18 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT + + CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT + col2 BETWEEN ( NULL ) AND NULL AND + 18 * + col2 IS NULL
----
0

query I rowsort
SELECT + col2 + 86 FROM tab2
----
109
126
144

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9604
SELECT ALL * FROM tab0 WHERE NOT NULL > - CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9604
SELECT ALL * FROM tab0 WHERE NOT NULL > - CAST ( col2 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT - 41 + - + COUNT( * ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - 41 + - + COUNT ( * ) FROM tab1
----
-44

query III rowsort
SELECT ALL * FROM tab1 WHERE - 6 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT - CAST( + 44 AS SIGNED ) AS col1 FROM tab0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-9607
SELECT - CAST ( + 44 AS INTEGER ) AS col1 FROM tab0
----
-44
-44
-44

query I rowsort
SELECT - col2 * - col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + col2 * - col2 + - - 44 + - col1 AS col2 FROM tab2
----
-1633
-3387
-536

query II rowsort
SELECT col0 AS col1, + 53 AS col1 FROM tab0 AS cor0
----
15
53
87
53
97
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT DISTINCT - 54 * col2 DIV ( 8 ) - + 13 * - + col1 FROM tab2 AS cor0
----
480
508
731

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - 54 * col2 / ( 8 ) - + 13 * - + col1 FROM tab2 AS cor0
----
480
508
731

query I rowsort
SELECT ALL - - 31 * 21 FROM tab1 AS cor0
----
651
651
651

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - 86 <= NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 * 22 NOT IN ( + col1, - col2 * + + col2 * + col0 + - + col1 )
----

query I rowsort
SELECT ALL col2 * + + ( - col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

query II rowsort
SELECT + - 95 / - col0 * col2, + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT col2, + 84 FROM tab1
----
59
84
68
84
96
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9618
SELECT 58 AS col2, + COUNT( * ) FROM tab2
----
58
3

skipif mysql # not compatible
query II rowsort label-9618
SELECT 58 AS col2, + COUNT ( * ) FROM tab2
----
58
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT col0 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 AS col1, - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL MIN( 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL MIN ( 49 ) FROM tab1
----
49

query II rowsort
SELECT DISTINCT + 9 AS col2, col1 FROM tab0
----
9
1
9
21
9
81

query I rowsort
SELECT DISTINCT col2 * - - col0 * + 86 AS col2 FROM tab2
----
220160
374100
90988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col2 col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT DISTINCT COUNT( DISTINCT + col1 ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT COUNT ( DISTINCT + col1 ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT + col1 DIV - - col2 AS col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT + col1 / - - col2 AS col1 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - + 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9629
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 BETWEEN - col2 + + col1 AND - - 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT + CAST( + - ( - - 64 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-9631
SELECT + CAST ( + - ( - - 64 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + col1 * + ( + + col0 ) * + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + + col1 NOT IN ( col2, + 26 )
----

query I rowsort
SELECT ALL - 77 + - col0 FROM tab1 AS cor0
----
-128
-162
-168

query I rowsort
SELECT + col2 * - 89 AS col1 FROM tab2 cor0
----
-2047
-3560
-5162

query II rowsort
SELECT DISTINCT + col1, col0 + col1 + - col1 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT - 27 AS col2, 7 FROM tab2
----
-27
7
-27
7
-27
7

query I rowsort
SELECT DISTINCT 76 + - + col0 AS col1 FROM tab1
----
-15
-9
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT ALL + - col1 + - + CAST( - 56 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-25
35
55

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + - col1 + - + CAST ( - 56 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-25
35
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT COUNT( * ) - + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col1 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT ALL - 36 * col2 FROM tab1 AS cor0
----
-2124
-2448
-3456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9643
SELECT ALL - - ( - CAST( + 75 AS SIGNED ) ) * + - col2, col2 AS col1 FROM tab1 AS cor0
----
4425
59
5100
68
7200
96

skipif mysql # not compatible
query II rowsort label-9643
SELECT ALL - - ( - CAST ( + 75 AS INTEGER ) ) * + - col2, col2 AS col1 FROM tab1 AS cor0
----
4425
59
5100
68
7200
96

query I rowsort
SELECT ALL - 97 * ( + ( + 94 ) ) FROM tab0 AS cor0
----
-9118
-9118
-9118

query I rowsort
SELECT + col0 * - ( - col1 ) * + + col2 + + col2 FROM tab1 AS cor0
----
25134
290904
68640

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + MIN( DISTINCT + col1 ) * - ( + COUNT( ALL + col2 ) ) col2 FROM tab1 cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9646
SELECT + MIN ( DISTINCT + col1 ) * - ( + COUNT ( ALL + col2 ) ) col2 FROM tab1 cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9648
SELECT - + COUNT( * ) DIV + ( - SUM( ALL + col2 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT - + COUNT ( * ) / + ( - SUM ( ALL + col2 ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 / + col0 FROM tab2 AS cor0 WHERE NOT - 56 * + col2 <> NULL
----

query II rowsort
SELECT ALL 67 AS col0, col0 AS col0 FROM tab1
----
67
51
67
85
67
91

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT 73 + + col2 + - col0 FROM tab0
----
-4
105
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + SUM( DISTINCT + col2 ) * - ( + 38 ) AS col1 FROM tab0 AS cor0
----
-5928

skipif mysql # not compatible
query I rowsort label-9653
SELECT + SUM ( DISTINCT + col2 ) * - ( + 38 ) AS col1 FROM tab0 AS cor0
----
-5928

query I rowsort
SELECT DISTINCT + col2 * - - 22 AS col2 FROM tab2 AS cor0
----
1276
506
880

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 23 + 37 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT ALL + 3 DIV + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL + 3 / + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9657
SELECT + 46 * CAST( 37 AS SIGNED ) * - COUNT( * ) + + MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-5202

skipif mysql # not compatible
query I rowsort label-9657
SELECT + 46 * CAST ( 37 AS INTEGER ) * - COUNT ( * ) + + MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-5202

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN + col1 + - 31 AND NULL
----

query I rowsort
SELECT - 25 + - - ( - col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL - - col2 + + ( + 74 ) AS col1 FROM tab1 AS cor0
----
133
142
170

query I rowsort
SELECT 56 * + - 41 AS col1 FROM tab1
----
-2296
-2296
-2296

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9662
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NULL BETWEEN + + 19 AND col0 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9662
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NULL BETWEEN + + 19 AND col0 * - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9664
SELECT 71 DIV 26 DIV + - 18 AS col2, + col1 * col2 + + + 27 AS col2 FROM tab1
----
0
1371
0
322
0
3223

skipif mysql # not compatible
query II rowsort label-9664
SELECT 71 / 26 / + - 18 AS col2, + col1 * col2 + + + 27 AS col2 FROM tab1
----
0
1371
0
322
0
3223

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT DISTINCT - col2 DIV + + ( + - col1 ) + - + 31 FROM tab0
----
-31
68

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT - col2 / + + ( + - col1 ) + - + 31 FROM tab0
----
-31
68

query I rowsort
SELECT DISTINCT col0 + 54 + + col1 * + col0 FROM tab2
----
2446
5046
5154

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT ALL - 63 + + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL - 63 + + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT 12 DIV + MAX( ALL 93 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT 12 / + MAX ( ALL 93 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 - - - col2 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - col2 - + col2 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 89 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT + ( + COUNT( DISTINCT + - col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + ( + COUNT ( DISTINCT + - col1 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / col2 + 89 * col1 * ( - ( - col1 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT SUM( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT - CAST( + 79 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 4 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9675
SELECT - CAST ( + 79 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - MAX( + 81 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9676
SELECT ALL - MAX ( + 81 ) col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + 5 * + - COUNT( * ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 5 * + - COUNT ( * ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT ALL + + 12 AS col1 FROM tab0 AS cor0
----
12
12
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9680
SELECT + 72 AS col0, COUNT( * ) + - MIN( DISTINCT 17 ) - + MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
72
-19

skipif mysql # not compatible
query II rowsort label-9680
SELECT + 72 AS col0, COUNT ( * ) + - MIN ( DISTINCT 17 ) - + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
72
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT + 86, - COUNT( * ) + - 19 + COUNT( * ) * - 62 * + 41 AS col1 FROM tab2 AS cor0
----
86
-7648

skipif mysql # not compatible
query II rowsort label-9681
SELECT + 86, - COUNT ( * ) + - 19 + COUNT ( * ) * - 62 * + 41 AS col1 FROM tab2 AS cor0
----
86
-7648

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1, + 7 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 50 / - col1 NOT BETWEEN - ( + 72 ) AND 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL - SUM( ALL 7 ) AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL - SUM ( ALL 7 ) AS col2 FROM tab1 AS cor0
----
-21

query II rowsort
SELECT DISTINCT col2, col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL 90 * - col0 * + col2 FROM tab0
----
-63450
-78300
-864270

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <> NULL
----

query I rowsort
SELECT ALL col0 * - 8 FROM tab1
----
-408
-680
-728

query I rowsort
SELECT 11 * + + 9 FROM tab2
----
99
99
99

query I rowsort
SELECT - + 78 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - - ( + col1 ) + - col2 * + 88 * 90 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT - + col0 * + col1 + - 9 DIV - 91 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-9692
SELECT - + col0 * + col1 + - 9 / - 91 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 87 IS NOT NULL
----

query I rowsort
SELECT 31 + - + 10 AS col1 FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * - 44 * + - 29 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9697
SELECT DISTINCT COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT + ( + - 58 ) + + + MIN( + 29 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + ( + - 58 ) + + + MIN ( + 29 ) FROM tab1 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col1
----

query I rowsort
SELECT ALL - col2 + + + ( 97 ) FROM tab2 AS cor0
----
39
57
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT DISTINCT - CAST( col1 AS SIGNED ) - + col0 + col2 + 1 FROM tab0 AS cor0
----
-48
-97
2

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - + col0 + col2 + 1 FROM tab0 AS cor0
----
-48
-97
2

query I rowsort
SELECT DISTINCT ( + + col0 ) + - - 22 * - col0 FROM tab1 AS cor0
----
-1071
-1785
-1911

query I rowsort
SELECT ALL + 32 + - + col1 + + col1 * col1 FROM tab0 AS cor0
----
32
452
6512

query I rowsort
SELECT - 42 + + + col2 + 33 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
1
38
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT + COUNT( ALL 71 ) * + 12 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9705
SELECT + COUNT ( ALL 71 ) * + 12 FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL col1 - + + 53 AS col1 FROM tab2 AS cor0
----
-2
14
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT - ( - col2 ) - + 33 DIV col2 FROM tab2 AS cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-9708
SELECT - ( - col2 ) - + 33 / col2 FROM tab2 AS cor0
----
22
40
58

query I rowsort
SELECT DISTINCT + col0 - + + 87 AS col0 FROM tab1 AS cor0
----
-2
-36
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col0 - - + col1 + - col1 * col0 AS col0, - col0 FROM tab0
----
-1119
-15
-1719
-87
1
-97

query I rowsort
SELECT 77 - col2 * - - col2 AS col1 FROM tab0
----
-2132
-23
-9724

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT COUNT( * ) + 88 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-9713
SELECT COUNT ( * ) + 88 FROM tab2
----
91

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - + 57 + COUNT( - + 95 ) - COUNT( * ) AS col2 FROM tab2 WHERE - - 10 BETWEEN + ( - col1 ) AND col0 / + 10
----
-57

skipif mysql # not compatible
query I rowsort label-9715
SELECT - + 57 + COUNT ( - + 95 ) - COUNT ( * ) AS col2 FROM tab2 WHERE - - 10 BETWEEN + ( - col1 ) AND col0 / + 10
----
-57

query I rowsort
SELECT + col0 FROM tab1 WHERE + 4 / + 63 + col1 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT DISTINCT + - COUNT( * ), MAX( - 20 ) col1 FROM tab2 cor0
----
-3
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9717
SELECT DISTINCT + - COUNT ( * ), MAX ( - 20 ) col1 FROM tab2 cor0
----
-3
-20

query I rowsort
SELECT DISTINCT + - col1 * - 63 AS col0 FROM tab2 AS cor0
----
3213
4221
4851

query II rowsort
SELECT col2, - ( + col1 ) FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT DISTINCT - 29 DIV - + MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT - 29 / - + MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= 41 / + 82 * + col1 + - + col0 + - ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT + 43 * + CAST( + CAST( + - 49 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6f1a5c1cb180cb564526b44232c440a3

skipif mysql # not compatible
query I rowsort label-9722
SELECT + 43 * + CAST ( + CAST ( + - 49 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6f1a5c1cb180cb564526b44232c440a3

query I rowsort
SELECT ALL + - 88 AS col0 FROM tab0 cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT - MIN( - 75 ), 24 col2 FROM tab1 AS cor0
----
75
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9724
SELECT - MIN ( - 75 ), 24 col2 FROM tab1 AS cor0
----
75
24

query II rowsort
SELECT DISTINCT + 91 AS col0, - col0 * col2 * - col2 - col1 FROM tab0
----
91
33054
91
8679
91
950696

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + ( + 91 ) AS col0 FROM tab1
----
0
40
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9728
SELECT ALL col0 DIV - ( - - ( - - col1 ) ) + + col1 * - col1 + 93 * + - col1 DIV + + col1 col0 FROM tab0
----
-191
-538
-6654

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9728
SELECT ALL col0 / - ( - - ( - - col1 ) ) + + col1 * - col1 + 93 * + - col1 / + + col1 col0 FROM tab0
----
-191
-538
-6654

query I rowsort
SELECT + 7 * col1 + + col0 FROM tab0 AS cor0
----
104
234
582

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE col1 <> + col1
----

query I rowsort
SELECT - ( + 69 ) * ( - 27 ) + - + col2 FROM tab1 AS cor0
----
1767
1795
1804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19 * 50, col2 col2 FROM tab0
----
950
10
950
47
950
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT DISTINCT ( - 31 ) * - COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT ( - 31 ) * - COUNT ( * ) FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL - COUNT( * ) * 95 + + SUM( - col2 ) AS col2 FROM tab0
----
-441

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - COUNT ( * ) * 95 + + SUM ( - col2 ) AS col2 FROM tab0
----
-441

query I rowsort
SELECT - + col1 + + 90 FROM tab1 AS cor0
----
43
76
85

query I rowsort
SELECT - - col2 + 15 * + col0 FROM tab1 AS cor0
----
1334
1433
861

query I rowsort
SELECT ( col0 ) + - col0 + + 11 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT ALL - + ( + 78 ) + - ( - - MAX( - CAST( NULL AS SIGNED ) ) ) * + 5 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - + ( + 78 ) + - ( - - MAX ( - CAST ( NULL AS INTEGER ) ) ) * + 5 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 26 FROM tab0 AS cor0 WHERE col0 * - 89 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 32 BETWEEN NULL AND 10 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT + 25 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT + 25 / - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 35 * + col2 AS col2 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL + - SUM( DISTINCT - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL + - SUM ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT ( NOT - - col1 IS NULL ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 * col2 * - + col2 ) IS NOT NULL
----

query I rowsort
SELECT + - 61 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT ALL + CAST( - - col1 AS SIGNED ) col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9749
SELECT ALL + CAST ( - - col1 AS INTEGER ) col0 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - 58 * - col1 FROM tab2
----
2958
3886
4466

query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab1 WHERE NOT + - ( - - 10 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, + 19 * - col2 AS col0 FROM tab2
----
-51
-437
-67
-1102
-77
-760

query I rowsort
SELECT ALL col2 * - col0 - - - col0 AS col0 FROM tab2 AS cor0 WHERE + 77 IS NOT NULL
----
-1104
-2624
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL + SUM( + col0 ) FROM tab0 AS cor0 WHERE NOT - col0 <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL + SUM ( + col0 ) FROM tab0 AS cor0 WHERE NOT - col0 <= col2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col2, 40 * col0, + 5 + - ( + col0 ), + 62 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 24 AS col0, - col0 FROM tab2 AS cor0
----
24
-46
24
-64
24
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT DISTINCT - col0 DIV col2 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT - col0 / col2 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-102
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT + COUNT( + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + COUNT ( + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + COUNT( + col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9759
SELECT + COUNT ( + col0 ) FROM tab1 cor0
----
3

query I rowsort
SELECT col1 + - 74 - + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9761
SELECT ALL - 36 DIV 57 AS col1, - CAST( NULL AS DECIMAL ) FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-9761
SELECT ALL - 36 / 57 AS col1, - CAST ( NULL AS REAL ) FROM tab1
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT + 16 DIV SUM( ALL + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 16 / SUM ( ALL + col2 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9763
SELECT + col2 * col2 AS col2, - col0 DIV - col2 + - col2 + + + col1 FROM tab1 WHERE + + col2 + - col0 - 11 IS NOT NULL
----
3481
-53
4624
-20
9216
-82

skipif mysql # not compatible
query II rowsort label-9763
SELECT + col2 * col2 AS col2, - col0 / - col2 + - col2 + + + col1 FROM tab1 WHERE + + col2 + - col0 - 11 IS NOT NULL
----
3481
-53
4624
-20
9216
-82

query I rowsort
SELECT DISTINCT - - ( - + col1 ) * - + col2 AS col1 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT + col1 * ( - 68 ) * col2 * + 4 * col0 AS col0 FROM tab0
----
-15532560
-2612016
-4969440

query I rowsort
SELECT DISTINCT + ( + - col2 ) FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * + col2 / 90 IS NULL
----

query II rowsort
SELECT DISTINCT + 3 + - + col1 AS col0, col1 AS col0 FROM tab1
----
-11
14
-2
5
-44
47

query II rowsort
SELECT + ( + + col2 ), + ( + - col0 ) FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT 13 + + 94 - + + 23 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - 35 + + - col2 AS col0 FROM tab0
----
-134
-45
-82

query I rowsort
SELECT ALL - col1 + - col1 + + + col2 * ( - - col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
-29
2032
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + 3 col2, + 85 AS col0 FROM tab2 cor0
----
-43
85
-61
85
-72
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT + MIN( ALL + ( + + col0 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + MIN ( ALL + ( + + col0 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9775
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 >= + CAST( NULL AS SIGNED ) * + 31 - - col1
----

skipif mysql # not compatible
query III rowsort label-9775
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 >= + CAST ( NULL AS INTEGER ) * + 31 - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE - col0 = - 96
----

query I rowsort
SELECT + 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # aggregate syntax: 
query II rowsort label-9779
SELECT DISTINCT 24 AS col0, + SUM( DISTINCT + + col2 ) AS col0 FROM tab2
----
24
121

skipif mysql # not compatible
query II rowsort label-9779
SELECT DISTINCT 24 AS col0, + SUM ( DISTINCT + + col2 ) AS col0 FROM tab2
----
24
121

query I rowsort
SELECT + - col2 + + 7 AS col1 FROM tab1 cor0 WHERE 28 * 42 * - col0 = - 35
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 13 = + 24 * - 73
----

query I rowsort
SELECT DISTINCT + col2 - + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT - - 89 - - ( - + ( + + col1 ) ) FROM tab2 AS cor0
----
12
22
38

query II rowsort
SELECT ALL 92 * + - col1 - - - col2, + col1 FROM tab1 AS cor0
----
-1384
14
-4392
47
-519
5

query I rowsort
SELECT + + col1 - - + col0 AS col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9786
SELECT ALL COUNT( * ), 38 AS col1 FROM tab1 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-9786
SELECT ALL COUNT ( * ), 38 AS col1 FROM tab1 AS cor0
----
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT DISTINCT MIN( ALL + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT MIN ( ALL + col0 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT - ( + + COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT ALL - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * + + ( + + col2 ) + - + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + + ( + + col2 ) + - + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + 33 ) FROM tab0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 83 NOT BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL COUNT( DISTINCT 4 ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL COUNT ( DISTINCT 4 ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL - COUNT( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9794
SELECT ALL - COUNT ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT CAST( 38 AS SIGNED ) * - 36 FROM tab0 AS cor0
----
-1368
-1368
-1368

skipif mysql # not compatible
query I rowsort label-9795
SELECT CAST ( 38 AS INTEGER ) * - 36 FROM tab0 AS cor0
----
-1368
-1368
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT - - 48 * CAST( - 58 AS SIGNED ) FROM tab2 AS cor0
----
-2784

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - - 48 * CAST ( - 58 AS INTEGER ) FROM tab2 AS cor0
----
-2784

query I rowsort
SELECT ALL - 69 * - - 97 FROM tab1 AS cor0
----
-6693
-6693
-6693

query III rowsort
SELECT * FROM tab2 cor0 WHERE 53 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 57 col1 FROM tab0 AS cor0
----
104
156
67

query I rowsort
SELECT + col2 + - 40 AS col1 FROM tab1 AS cor0
----
19
28
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT + + COUNT( * ) + + 47 * - ( + - 10 ) FROM tab0 AS cor0
----
473

skipif mysql # not compatible
query I rowsort label-9801
SELECT + + COUNT ( * ) + + 47 * - ( + - 10 ) FROM tab0 AS cor0
----
473

query II rowsort
SELECT DISTINCT 96 AS col1, col1 - col2 AS col2 FROM tab2 cor0
----
96
28
96
37
96
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT ALL - col1 / - col1 + - 8 * + + CAST( NULL AS SIGNED ) + - col1 + + 70 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - col1 / - col1 + - 8 * + + CAST ( NULL AS INTEGER ) + - col1 + + 70 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - col2 + + col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9805
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + - CAST( + 87 AS SIGNED ) * - + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9805
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + - CAST ( + 87 AS INTEGER ) * - + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0 AS col0, + 59 FROM tab1
----
51
59
85
59
91
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT DISTINCT CAST( - - 68 AS SIGNED ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT CAST ( - - 68 AS INTEGER ) FROM tab0
----
68

query I rowsort
SELECT DISTINCT 81 + + + 94 AS col2 FROM tab2
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-9809
SELECT DISTINCT 66 DIV + ( col2 ) + col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT 66 / + ( col2 ) + col2 FROM tab2
----
25
41
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9810
SELECT DISTINCT 66 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT 66 + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 32 * col1 * + col1 * col2 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT ( + MIN( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT ( + MIN ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> 63
----

query I rowsort
SELECT ALL 65 + - col2 FROM tab0
----
-34
18
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT col1 / col0 + - col2 / - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT col1 / col0 + - col2 / - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - + col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - 50 ) * + 28 FROM tab0 AS cor0
----
1400
1400
1400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 61 * + 12 col0 FROM tab2 AS cor0
----
-732
-732
-732

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9820
SELECT + - ( COUNT( * ) ) * - + 17 + - ( + COUNT( * ) ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
48
3

skipif mysql # not compatible
query II rowsort label-9820
SELECT + - ( COUNT ( * ) ) * - + 17 + - ( + COUNT ( * ) ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
48
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9821
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, 20 + + + 71 FROM tab1
----
NULL
91
NULL
91
NULL
91

skipif mysql # not compatible
query II rowsort label-9821
SELECT ALL CAST ( NULL AS REAL ) AS col1, 20 + + + 71 FROM tab1
----
NULL
91
NULL
91
NULL
91

query II rowsort
SELECT ALL + col1 AS col1, + col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT DISTINCT - ( + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT - ( + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 19 * + 59 AS col0 FROM tab1
----
1121
1121
1121

query I rowsort
SELECT - 37 * 63 AS col1 FROM tab0
----
-2331
-2331
-2331

query I rowsort
SELECT 84 * + col2 FROM tab1
----
4956
5712
8064

query II rowsort
SELECT ALL + col2 AS col0, ( - col1 ) * + + col1 + - 56 AS col1 FROM tab2
----
23
-2657
40
-5985
58
-4545

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE NOT + + 26 <= 10
----
-3

skipif mysql # not compatible
query I rowsort label-9828
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + + 26 <= 10
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT MAX( + col2 ) * + ( + 87 ) FROM tab2
----
5046

skipif mysql # not compatible
query I rowsort label-9829
SELECT MAX ( + col2 ) * + ( + 87 ) FROM tab2
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL + MIN( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + MIN ( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 76 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 + + - col0 IS NULL
----
76
76
76

query I rowsort
SELECT + ( - col1 ) + ( col2 ) FROM tab0
----
-11
-34
98

query I rowsort
SELECT - 48 + col0 FROM tab1
----
3
37
43

query I rowsort
SELECT + 65 * + col2 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT ALL + 83 - 84 * col0 AS col1 FROM tab0 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 - 78 * col1 NOT BETWEEN ( NULL ) AND ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) - - 32 * + 3 col0 FROM tab0
----
-2113
-4
-9705

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN + 18 AND ( 18 )
----

query I rowsort
SELECT 43 - + 28 AS col2 FROM tab2
----
15
15
15

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0 + + ( - col2 ) * col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN col2 AND col0 - - 26
----

query I rowsort
SELECT DISTINCT - 22 * + col1 FROM tab2
----
-1122
-1474
-1694

query I rowsort
SELECT col2 / col1 FROM tab1 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL col1 * - 74 AS col0 FROM tab1
----
-1036
-3478
-370

query III rowsort
SELECT * FROM tab0 WHERE NOT - 27 IN ( col1 / + col1 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT + COUNT( * ) + - ( - COUNT( * ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9846
SELECT + COUNT ( * ) + - ( - COUNT ( * ) ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9847
SELECT * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9847
SELECT * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col0 ) ) IS NOT NULL
----

query I rowsort
SELECT 67 * - col2 - col1 * + col1 FROM tab0
----
-1111
-6634
-9710

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 3 + + 18 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * col2 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9852
SELECT + 11 DIV + COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9852
SELECT + 11 / + COUNT ( * ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 WHERE + 55 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + col1 NOT BETWEEN ( NULL ) AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * col2 col0 FROM tab0
----
0

query I rowsort
SELECT ALL col2 * col0 + - col0 AS col1 FROM tab0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT + MAX( + 16 ) * COUNT( - col2 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9857
SELECT + MAX ( + 16 ) * COUNT ( - col2 ) FROM tab2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT ALL 15 DIV 92 + + 38 * - col1 FROM tab2 cor0
----
-1938
-2546
-2926

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL 15 / 92 + + 38 * - col1 FROM tab2 cor0
----
-1938
-2546
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT + 9 + - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9859
SELECT + 9 + - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT 83 * col1 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
1165
3902
432

skipif mysql # not compatible
query I rowsort label-9860
SELECT 83 * col1 + col0 / col1 AS col1 FROM tab1 AS cor0
----
1165
3902
432

query I rowsort
SELECT col1 * 75 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT DISTINCT + ( 92 ) * - SUM( ALL col2 * + col2 ) col0 FROM tab0
----
-1114120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9862
SELECT DISTINCT + ( 92 ) * - SUM ( ALL col2 * + col2 ) col0 FROM tab0
----
-1114120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT - CAST( - MIN( DISTINCT + 99 ) AS SIGNED ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9863
SELECT - CAST ( - MIN ( DISTINCT + 99 ) AS INTEGER ) col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL - MIN( + ( col1 ) ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - MIN ( + ( col1 ) ) AS col1 FROM tab2
----
-51

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 ) WHERE NOT 96 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9866
SELECT ALL + COUNT( * ) DIV COUNT( ALL - col1 * CAST( + ( col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL + COUNT ( * ) / COUNT ( ALL - col1 * CAST ( + ( col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT COUNT( * ) * 41 FROM tab1 AS cor0 WHERE NOT ( + ( + col0 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT COUNT ( * ) * 41 FROM tab1 AS cor0 WHERE NOT ( + ( + col0 ) ) IS NOT NULL
----
0

query I rowsort
SELECT - col0 * 28 FROM tab1 AS cor0
----
-1428
-2380
-2548

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT - 64 AS col1 FROM tab1 cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT - SUM( - col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9871
SELECT - SUM ( - col1 ) AS col2 FROM tab0 cor0
----
103

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 63 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT COUNT( * ) - + 92 AS col0 FROM tab0 WHERE NOT col0 * - 39 + col0 / - col1 > + 28
----
-89

skipif mysql # not compatible
query I rowsort label-9873
SELECT COUNT ( * ) - + 92 AS col0 FROM tab0 WHERE NOT col0 * - 39 + col0 / - col1 > + 28
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE + 45 + + col0 * col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 49 * + col1 FROM tab2
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL - COUNT( * ) * 80 * + SUM( DISTINCT col2 ) FROM tab2
----
-29040

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - COUNT ( * ) * 80 * + SUM ( DISTINCT col2 ) FROM tab2
----
-29040

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 60 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) IN ( col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT COUNT( + col1 ) + 17 * COUNT( * ) AS col0 FROM tab1 WHERE NOT + 91 BETWEEN 1 AND col0
----
36

skipif mysql # not compatible
query I rowsort label-9879
SELECT COUNT ( + col1 ) + 17 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 91 BETWEEN 1 AND col0
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - COUNT( * ) * - + ( 32 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9883
SELECT - COUNT ( * ) * - + ( 32 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + MAX( col0 ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9884
SELECT + MAX ( col0 ) AS col1 FROM tab2 cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT 69 DIV - col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT 69 / - col0 FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT DISTINCT + 15 + - COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT + 15 + - COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
6

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT 88 * + MAX( - ( 41 ) ) * COUNT( ALL 96 * + 64 ) AS col0 FROM tab1, tab2 AS cor0
----
-32472

skipif mysql # not compatible
query I rowsort label-9889
SELECT 88 * + MAX ( - ( 41 ) ) * COUNT ( ALL 96 * + 64 ) AS col0 FROM tab1, tab2 AS cor0
----
-32472

query I rowsort
SELECT - 52 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL - 8 + - + col2 AS col0 FROM tab0
----
-107
-18
-55

query I rowsort
SELECT + 67 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) IN ( + 51 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT COUNT( * ) + - + 78 + - COUNT( DISTINCT - 51 ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9893
SELECT COUNT ( * ) + - + 78 + - COUNT ( DISTINCT - 51 ) FROM tab1 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT - 59 * CAST( NULL AS SIGNED ) * + - col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT - 59 * CAST ( NULL AS INTEGER ) * + - col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9895
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) / 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9895
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) / 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE col2 <> NULL
----

query I rowsort
SELECT col0 / - col2 + col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1 * + col0
----

query I rowsort
SELECT 37 * + + col0 FROM tab0
----
3219
3589
555

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + ( - 84 ) + - col2 AND col2
----

query I rowsort
SELECT ( 31 ) - col1 / + col2 AS col1 FROM tab1 WHERE - 60 - - + col1 < ( 45 + col1 * - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - - col1 NOT IN ( + 51 * - col2 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 0 * - - col2 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT 77 DIV ( + col1 ) AS col1 FROM tab0
----
0
3
77

skipif mysql # not compatible
query I rowsort label-9903
SELECT 77 / ( + col1 ) AS col1 FROM tab0
----
0
3
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT DISTINCT col1 * col2 / + + col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT col1 * col2 / + + col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 - - - col1 AS col1 FROM tab1 cor0
----
-110
-115
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - 1 <> - + 94 + - 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + - 72 FROM tab0
----
-1080
-6264
-6984

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT + col1 DIV - ( - col0 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9909
SELECT + col1 / - ( - col0 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT DISTINCT CAST( + - ( + CAST( col2 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT CAST ( + - ( + CAST ( col2 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT + 57 * col0 AS col1 FROM tab2 AS cor0
----
2622
3648
4275

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - - 44 + + col0 / - + col0 <> 56 - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL - ( MAX( ALL col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - ( MAX ( ALL col2 ) ) FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + 79 AND - 21 + + col2
----
33
33
33

query I rowsort
SELECT DISTINCT col2 * + 37 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT MAX( ALL - - ( - 59 ) ) * - 48 AS col1 FROM tab0
----
2832

skipif mysql # not compatible
query I rowsort label-9917
SELECT MAX ( ALL - - ( - 59 ) ) * - 48 AS col1 FROM tab0
----
2832

query I rowsort
SELECT ALL - 31 FROM tab0 WHERE ( NOT ( NULL ) <> - 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT DISTINCT col1 FROM tab2 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT col1 FROM tab2 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT MAX( 43 ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT MAX ( 43 ) AS col2 FROM tab2
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT CAST( - - col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9922
SELECT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - MAX( - 38 ) AS col1 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-9923
SELECT - MAX ( - 38 ) AS col1 FROM tab0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( - - col0 ) NOT IN ( - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col1 col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9927
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + - col2 IN ( - - col1 * + col1 - - col1 ) OR NOT 93 + ( + CAST( + col0 AS DECIMAL ) ) * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9927
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + - col2 IN ( - - col1 * + col1 - - col1 ) OR NOT 93 + ( + CAST ( + col0 AS REAL ) ) * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT DISTINCT - 46 * + - ( COUNT( * ) ) * - - 85 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT - 46 * + - ( COUNT ( * ) ) * - - 85 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT col2 + - ( + - col0 ) * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT - 78 + - col2 + col2 DIV - 56 AS col0 FROM tab0
----
-125
-178
-88

skipif mysql # not compatible
query I rowsort label-9930
SELECT - 78 + - col2 + col2 / - 56 AS col0 FROM tab0
----
-125
-178
-88

query I rowsort
SELECT 55 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT - MAX( ALL + 99 ) AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9932
SELECT - MAX ( ALL + 99 ) AS col1 FROM tab2 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - col0 + col2 + + + col2
----

query I rowsort
SELECT - + 62 FROM tab2 cor0 WHERE col2 <> NULL
----

query II rowsort
SELECT - 60, + col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-60
59
-60
68
-60
96

query II rowsort
SELECT ALL + col1 + + + col1 - - - col1 + + col1 * - col1 * + + col1 AS col0, col2 * + - col0 AS col1 FROM tab1
----
-103776
-6188
-120
-5015
-2730
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + col1 + - 43, - col0 - + 42 col2 FROM tab0
----
53
-57
55
-139
65
-129

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab2 WHERE NOT - col0 + - + col0 IS NULL
----
102
134
154

query I rowsort
SELECT ALL col1 * col0 + + + ( - 64 ) FROM tab2
----
2282
4864
4961

query II rowsort
SELECT DISTINCT - col1 AS col1, + 7 AS col2 FROM tab0
----
-1
7
-21
7
-81
7

query II rowsort
SELECT DISTINCT - 6 AS col1, col1 * + + col0 FROM tab2
----
-6
2346
-6
4928
-6
5025

query I rowsort
SELECT DISTINCT - - 85 * - col2 AS col2 FROM tab2 AS cor0
----
-1955
-3400
-4930

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 10 / col2 / - col2 + ( - 47 ) - + col2 * col0 * 49 )
----

query II rowsort
SELECT 99, + col0 FROM tab2 cor0
----
99
46
99
64
99
75

query I rowsort
SELECT DISTINCT 92 * - - 26 * - 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
-133952

onlyif mysql # DIV for integer division: 
query II rowsort label-9946
SELECT ALL - - 79 * + - 74 + + col0 DIV - + 72, ( + 96 ) * - col2 AS col0 FROM tab2 AS cor0
----
-5846
-2208
-5846
-3840
-5847
-5568

skipif mysql # not compatible
query II rowsort label-9946
SELECT ALL - - 79 * + - 74 + + col0 / - + 72, ( + 96 ) * - col2 AS col0 FROM tab2 AS cor0
----
-5846
-2208
-5846
-3840
-5847
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT ALL - - CAST( 45 AS SIGNED ) FROM tab0 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - - CAST ( 45 AS INTEGER ) FROM tab0 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9950
SELECT ALL CAST( - CAST( 74 AS DECIMAL ) AS SIGNED ) * - + col0 FROM tab0 AS cor0
----
1110
6438
7178

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL CAST ( - CAST ( 74 AS REAL ) AS INTEGER ) * - + col0 FROM tab0 AS cor0
----
1110
6438
7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9951
SELECT + - 12 * CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND - + 40
----
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT + - 12 * CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND - + 40
----
0

query I rowsort
SELECT + col2 * - 21 + - 28 FROM tab1 cor0
----
-1267
-1456
-2044

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT - SUM( ALL - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9953
SELECT - SUM ( ALL - col2 ) FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 16 col2 FROM tab1 AS cor0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col0 * - ( col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * col1 - col2 * 44 FROM tab1 AS cor0
----
-3021
-4938
-7269

onlyif mysql # aggregate syntax: 
query II rowsort label-9957
SELECT DISTINCT + COUNT( * ), 3 FROM tab0 WHERE NOT + col0 IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-9957
SELECT DISTINCT + COUNT ( * ), 3 FROM tab0 WHERE NOT + col0 IS NULL
----
3
3

query I rowsort
SELECT ALL - col1 + + 65 AS col0 FROM tab2
----
-12
-2
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col0 col2 FROM tab1 AS cor0
----
-37
-44
-80

query II rowsort
SELECT DISTINCT col1 + + col2 AS col0, col2 AS col1 FROM tab1 AS cor0
----
110
96
115
68
64
59

query I rowsort
SELECT - - 10 + + ( - + 75 ) * - col0 + - 44 AS col1 FROM tab1 cor0
----
3791
6341
6791

query I rowsort
SELECT + 26 + + + col1 FROM tab2 cor0
----
103
77
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT 7 + + + COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT 7 + + + COUNT ( * ) FROM tab2 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 32 = - 52 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab2 WHERE + - 61 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + - COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 WHERE - + col2 * + col2 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9966
SELECT + - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 WHERE - + col2 * + col2 IS NOT NULL
----
-9

query II rowsort
SELECT ( + col1 ) * + col2 AS col0, ( + col2 ) FROM tab2
----
1173
23
3080
40
3886
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 27 <= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT col1 * - - 25 * + 96 FROM tab0 AS cor0
----
194400
2400
50400

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT - SUM( - 56 ) AS col2 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-9971
SELECT - SUM ( - 56 ) AS col2 FROM tab1
----
168

query I rowsort
SELECT DISTINCT + col0 * + col1 * + col1 * + col1 FROM tab1
----
10625
139944
9447893

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT - col1 DIV - + ( col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT - col1 / - + ( col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 58 AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - 77 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * + 48 * + - 18 col2, + col1 FROM tab2 cor0
----
-39744
51
-55296
77
-64800
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9978
SELECT col1, - col1 FROM tab1 WHERE + CAST( col0 AS SIGNED ) + - + ( - col2 ) NOT BETWEEN - 16 + - col0 AND ( NULL )
----

skipif mysql # not compatible
query II rowsort label-9978
SELECT col1, - col1 FROM tab1 WHERE + CAST ( col0 AS INTEGER ) + - + ( - col2 ) NOT BETWEEN - 16 + - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL IN ( + 46 - + col2 + - - col2 + + - col0 * - - col2 * + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL IN ( + 46 - + col2 + - - col2 + + - col0 * - - col2 * + + col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) + 81 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 81 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 12 <> - + col0 - - col1
----

query I rowsort
SELECT ALL + - 63 FROM tab1 cor0
----
-63
-63
-63

query I rowsort
SELECT - 29 * + + col1 + + + col1 * 39 AS col1 FROM tab2 AS cor0
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL - 46 * + + CAST( + 36 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb1a165c890b96304ad3e49ff0d84286

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - 46 * + + CAST ( + 36 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb1a165c890b96304ad3e49ff0d84286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9987
SELECT + 31 + + col1 + - - CAST( - 1 AS SIGNED ) DIV - + col2 - - + 62 FROM tab1
----
107
140
98

skipif mysql # not compatible
query I rowsort label-9987
SELECT + 31 + + col1 + - - CAST ( - 1 AS INTEGER ) / - + col2 - - + 62 FROM tab1
----
107
140
98

query III rowsort
SELECT * FROM tab0 WHERE ( + 95 ) > ( 76 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 * col0 col1 FROM tab0 AS cor0
----
1218
1358
210

query I rowsort
SELECT DISTINCT - col2 * + + 78 * col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9991
SELECT ALL - CAST( NULL AS SIGNED ) - + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - CAST ( NULL AS INTEGER ) - + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col1 + col0 col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT DISTINCT + COUNT( * ) - + ( - 35 ) + COUNT( ALL - + 22 ) AS col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT + COUNT ( * ) - + ( - 35 ) + COUNT ( ALL - + 22 ) AS col0 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9995
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - 67 FROM tab0
----
-114
-166
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9997
SELECT ALL col1 - - + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + 8 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL col1 - - + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + 8 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 24 AS col1 FROM tab2
----
-1
16
34

query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 * col2 FROM tab1
----
-1475
-150212
-18816

