sqllogictest
Artifact Content
Not logged in

Artifact d8b9bf51214ab7c515b0472a6fb5f90b6799f264:


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)

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

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

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

query I rowsort
SELECT ALL ( col1 ) + 36 FROM tab1
----
41
50
83

query III rowsort
SELECT * FROM tab0 WHERE ( 61 / + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT MAX( - col1 ) - + MAX( DISTINCT - col0 + + col2 * col2 ) * 25 AS col1 FROM tab0
----
-242601

skipif mysql # not compatible
query I rowsort label-5
SELECT MAX ( - col1 ) - + MAX ( DISTINCT - col0 + + col2 * col2 ) * 25 AS col1 FROM tab0
----
-242601

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( ( 75 ) )
----

query I rowsort
SELECT - col1 * col0 + + col2 AS col2 FROM tab1 WHERE NOT NULL > + col2 / 22
----

query I rowsort
SELECT col2 * 8 AS col2 FROM tab2 WHERE NOT col2 >= ( col0 * + 56 )
----
184
320
464

onlyif mysql # DIV for integer division: 
query I rowsort label-9
SELECT - ( col1 ) - + ( 76 + + col2 ) DIV 40 FROM tab1
----
-18
-50
-8

skipif mysql # not compatible
query I rowsort label-9
SELECT - ( col1 ) - + ( 76 + + col2 ) / 40 FROM tab1
----
-18
-50
-8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + 34 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-11
SELECT DISTINCT col0 FROM tab1 WHERE NOT + CAST( col0 AS DECIMAL ) - + col2 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT col0 FROM tab1 WHERE NOT + CAST ( col0 AS REAL ) - + col2 IS NULL
----
51
85
91

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - col0 col1 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-13
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - col0 col1 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - 36 - - 32 AS col0 FROM tab2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT + col0 + + col1 DIV 17 AS col2 FROM tab2
----
49
68
78

skipif mysql # not compatible
query I rowsort label-15
SELECT + col0 + + col1 / 17 AS col2 FROM tab2
----
49
68
78

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 2 ) * + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT + 57 DIV + col2 col2 FROM tab2 cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-20
SELECT + 57 / + col2 col2 FROM tab2 cor0
----
0
1
2

query I rowsort
SELECT ALL - ( - col0 ) * 33 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT ( COUNT( * ) ) - - 35 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT ( COUNT ( * ) ) - - 35 FROM tab2 AS cor0
----
38

query I rowsort
SELECT - 90 - col2 AS col1 FROM tab2 AS cor0
----
-113
-130
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT MIN( ALL - 79 ) + COUNT( * ) FROM tab0 AS cor0 WHERE - 3 * 17 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT MIN ( ALL - 79 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE - 3 * 17 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 58 * 9 AS col0 FROM tab2 AS cor0 WHERE - 29 <= ( + col1 / - col1 )
----
522

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-29
SELECT - + 85 + + col2 DIV + col2 FROM tab2 cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-29
SELECT - + 85 + + col2 / + col2 FROM tab2 cor0
----
-84
-84
-84

query I rowsort
SELECT + + col0 + col2 * - 40 FROM tab0 AS cor0
----
-1865
-313
-3863

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

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

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

query I rowsort
SELECT 76 + - col2 FROM tab2
----
18
36
53

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-36
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND + col0 * CAST( NULL AS DECIMAL ) + + col2 * - col2
----

skipif mysql # not compatible
query III rowsort label-36
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND + col0 * CAST ( NULL AS REAL ) + + col2 * - col2
----

query I rowsort
SELECT ALL + 45 FROM tab0 WHERE NOT ( - 5 ) BETWEEN col0 AND col0 * col0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-38
SELECT DISTINCT CAST( - 71 AS SIGNED ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-38
SELECT DISTINCT CAST ( - 71 AS INTEGER ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-71

query I rowsort
SELECT + col1 * + col0 * - 21 AS col0 FROM tab1
----
-14994
-8925
-89817

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

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT SUM( DISTINCT + - col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-41
SELECT SUM ( DISTINCT + - col1 ) FROM tab2 cor0
----
-195

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

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

skipif mysql # not compatible
query I rowsort label-43
SELECT COUNT ( * ) * - + 10 FROM tab1
----
-30

query I rowsort
SELECT 19 + 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - + col1 * - col0 * - - 43 * col1 FROM tab2 AS cor0
----
14477025
16316608
5144778

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

skipif mysql # not compatible
query I rowsort label-46
SELECT + 57 / + - col2 AS col0 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + 70 * - + COUNT( DISTINCT - col1 ) + 91 AS col0 FROM tab2 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + 70 * - + COUNT ( DISTINCT - col1 ) + 91 AS col0 FROM tab2 AS cor0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL + SUM( col0 ) * - 86 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + ( + col1 ) / col0 < + col1
----
-19522

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + SUM ( col0 ) * - 86 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + ( + col1 ) / col0 < + col1
----
-19522

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

query I rowsort
SELECT DISTINCT 97 * + 43 FROM tab1 cor0 WHERE NOT NULL IN ( col2 )
----

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

query I rowsort
SELECT ALL + + ( + + 37 ) * + col1 AS col2 FROM tab0 AS cor0
----
2997
37
777

query I rowsort
SELECT ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - 90 ) NOT BETWEEN ( ( - col1 ) / + col0 ) AND ( NULL )
----

query I rowsort
SELECT - + 11 + + col2 FROM tab0 cor0
----
-1
36
88

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT + 71 * - + 16 * - - 9 * + COUNT( * ) FROM tab0 AS cor0
----
-30672

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + 71 * - + 16 * - - 9 * + COUNT ( * ) FROM tab0 AS cor0
----
-30672

query I rowsort
SELECT + + 12 * + col1 + - 48 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - 51 + - col1 * + ( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
1122
3029
3835

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 61 + 14 ) <= col0 * col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT ALL - - 60 * + + col2 + col2 DIV col2 FROM tab2 AS cor0
----
1381
2401
3481

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - - 60 * + + col2 + col2 / col2 FROM tab2 AS cor0
----
1381
2401
3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) * + col2 col2 FROM tab1
----
-4896
-5015
-6188

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

query I rowsort
SELECT DISTINCT + 20 * + + 54 AS col1 FROM tab0
----
1080

query I rowsort
SELECT DISTINCT ( + col1 ) + - col1 + - col0 * + 94 FROM tab2
----
-4324
-6016
-7050

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

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT - MAX( DISTINCT - - 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-66
SELECT - MAX ( DISTINCT - - 47 ) FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT + SUM( - col0 ) * 65 FROM tab2 WHERE + col2 * + - col0 * + col0 + - col1 IS NOT NULL
----
-12025

skipif mysql # not compatible
query I rowsort label-67
SELECT + SUM ( - col0 ) * 65 FROM tab2 WHERE + col2 * + - col0 * + col0 + - col1 IS NOT NULL
----
-12025

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

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL CAST ( NULL AS REAL ) + + MIN ( ALL col2 ) * + + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 19 FROM tab0 WHERE - col1 + col0 = 95 * 43
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 54 > ( - 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT 54 + 95 FROM tab2
----
149
149
149

query I rowsort
SELECT col1 * - 73 + + + col0 FROM tab2
----
-3677
-4816
-5557

query I rowsort
SELECT ALL + col0 + - ( + col2 ) + + - col2 * 84 AS col1 FROM tab1 AS cor0
----
-4930
-5689
-8109

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT COUNT( * ) + SUM( - - col1 ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT COUNT ( * ) + SUM ( - - col1 ) FROM tab1 AS cor0
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - col1 + col2 AND + col2 * + col2
----
51
14
96

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

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) * 44 + col2 * + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL - + MIN( + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - + MIN ( + col1 ) FROM tab1 AS cor0
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT - COUNT( * ) - - + COUNT( * ) FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-82
SELECT - COUNT ( * ) - - + COUNT ( * ) FROM tab0, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT - 42 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 42 IS NULL
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT 15 + + COUNT( * ) col0 FROM tab1 cor0 WHERE NOT ( col2 ) * col2 * + + col2 + col2 * - col0 NOT IN ( - col1 + col2 )
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-85
SELECT 15 + + COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT ( col2 ) * col2 * + + col2 + col2 * - col0 NOT IN ( - col1 + col2 )
----
15

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 68 ) IS NULL
----

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

query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab1 WHERE + col2 + + 72 BETWEEN - col2 * - + col2 - - col2 AND + 23
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 71 * 8 col2 FROM tab2 cor0
----
-568

query I rowsort
SELECT DISTINCT + 64 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT 54 NOT IN ( + col1 ) )
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT - - 35 * - - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-94
SELECT - - 35 * - - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-105

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-96
SELECT 29 DIV + + MIN( - ( 94 ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-96
SELECT 29 / + + MIN ( - ( 94 ) ) AS col2 FROM tab0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-99
SELECT + 91 * - CAST( col2 AS SIGNED ) DIV + col2 + + - col2 + + + col2 FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-99
SELECT + 91 * - CAST ( col2 AS INTEGER ) / + col2 + + - col2 + + + col2 FROM tab0
----
-91
-91
-91

query I rowsort
SELECT ALL - + 57 FROM tab0 WHERE + 67 IS NOT NULL
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL MAX( + + col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-101
SELECT ALL MAX ( + + col0 ) col2 FROM tab0
----
97

query I rowsort
SELECT ALL col0 + 53 AS col0 FROM tab2
----
117
128
99

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL - 29 * + COUNT( DISTINCT + - 32 ) AS col0 FROM tab0 WHERE NOT ( + 57 ) BETWEEN col2 AND col1
----
-29

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL - 29 * + COUNT ( DISTINCT + - 32 ) AS col0 FROM tab0 WHERE NOT ( + 57 ) BETWEEN col2 AND col1
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 + + col2 col0 FROM tab2
----
53
70
88

query I rowsort
SELECT DISTINCT - col0 * + 91 + - + col0 FROM tab1 AS cor0
----
-4692
-7820
-8372

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

query I rowsort
SELECT - 77 * 47 FROM tab2
----
-3619
-3619
-3619

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

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

query I rowsort
SELECT 22 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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

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

query I rowsort
SELECT DISTINCT + 49 * - col1 - col0 + - + col0 * col0 * col0 AS col2 FROM tab2 AS cor0
----
-265981
-425233
-99881

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT ALL col0 DIV col1 col2 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-115
SELECT ALL col0 / col1 col2 FROM tab1 cor0
----
1
17
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-119
SELECT - col0 col0, 87 * + CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab0
----
-15
4089
-87
870
-97
8613

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-119
SELECT - col0 col0, 87 * + CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab0
----
-15
4089
-87
870
-97
8613

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ALL + COUNT( * ) * - 27 AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL + COUNT ( * ) * - 27 AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT + - col1 DIV - + 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-124
SELECT + - col1 / - + 96 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 22 + - - col0 + - + col1 FROM tab1 AS cor0
----
1159
1950
2046

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

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

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

query I rowsort
SELECT ALL 22 AS col0 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT + 68 FROM tab0 WHERE NOT 78 + - + col2 * + 68 * + + 75 * + + col1 = ( + + col1 + - 76 )
----
68
68
68

query I rowsort
SELECT + 76 AS col1 FROM tab1 WHERE NOT NULL > + - col1
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + - col1 ) * col1, + 17 * + 84 - - col2 ) AND NOT - col2 NOT BETWEEN + col2 - - col2 + 38 / - 96 / - col0 AND NULL
----

query I rowsort
SELECT - - 26 + - col1 FROM tab0 AS cor0
----
-55
25
5

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

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

query I rowsort
SELECT - col1 + + col0 * - + col2 AS col2 FROM tab1 AS cor0
----
-4910
-5020
-6235

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

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

query I rowsort
SELECT 72 * col0 * - col0 + 36 * + col2 FROM tab1 AS cor0
----
-183816
-518076
-593784

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

query I rowsort
SELECT DISTINCT + col2 + - 8 FROM tab2 AS cor0
----
15
32
50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 / + col1 IN ( + 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 * + col0 * ( - + col2 ) + + col2 + - 92 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 31 * - + col0 col0, - col1 col0 FROM tab0
----
-2697
-21
-3007
-1
-465
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT 37 = + col2
----
3

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT 37 = + col2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - col0 col0, ( col1 ) FROM tab0
----
0
1
0
21
0
81

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-146
SELECT ALL + + MIN( + 23 ) * + + 31 - + - COUNT( * ) DIV + + 17 AS col2, 70 FROM tab0 AS cor0
----
713
70

skipif mysql # not compatible
query II rowsort label-146
SELECT ALL + + MIN ( + 23 ) * + + 31 - + - COUNT ( * ) / + + 17 AS col2, 70 FROM tab0 AS cor0
----
713
70

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + COUNT( * ) * + COUNT( * ) * MAX( - col2 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-147
SELECT + COUNT ( * ) * + COUNT ( * ) * MAX ( - col2 ) FROM tab0
----
-90

query II rowsort
SELECT col2, + 99 FROM tab2
----
23
99
40
99
58
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT 52 * + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT 39 DIV - 97 * - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - - col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-150
SELECT 39 / - 97 * - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - - col2 IS NULL
----
0
0
0

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

query II rowsort
SELECT DISTINCT col0, 23 AS col1 FROM tab2 AS cor0
----
46
23
64
23
75
23

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 5
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + + SUM( ALL - - 28 ) AS col0 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-156
SELECT + + SUM ( ALL - - 28 ) AS col0 FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL + MIN( col0 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + MIN ( col0 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15

query I rowsort
SELECT ALL 31 * - ( + col0 ) AS col2 FROM tab2
----
-1426
-1984
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT DISTINCT - COUNT( * ) * - + 75 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT - COUNT ( * ) * - + 75 FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-160
SELECT - CAST( col1 AS SIGNED ) col0, col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-160
SELECT - CAST ( col1 AS INTEGER ) col0, col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT col0 * - 63 AS col1 FROM tab1
----
-3213
-5355
-5733

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

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT COUNT ( * ) / - 10 AS col0 FROM tab1
----
0

query II rowsort
SELECT + 26 * col2 AS col2, col0 AS col1 FROM tab0
----
1222
15
2574
97
260
87

query I rowsort
SELECT ALL col0 * - - col2 * + + 60 FROM tab2
----
153600
261000
63480

query II rowsort
SELECT DISTINCT 28, col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 86 * + col0 AS col1 FROM tab0
----
1290
7482
8342

query I rowsort
SELECT ALL - 15 * col1 * 87 AS col2 FROM tab2
----
-100485
-66555
-87435

query I rowsort
SELECT + - 13 * + + col1 AS col2 FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT + - 48 * + col1 + 24 FROM tab1 AS cor0
----
-216
-2232
-648

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL <> 21 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-172
SELECT DISTINCT + 58 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT + 58 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 + - 82 FROM tab0 AS cor0
----
-103
-163
-83

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

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

skipif mysql # not compatible
query I rowsort label-175
SELECT + COUNT ( + - ( - + col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col1 + + col2 + - 27 FROM tab1 AS cor0
----
37
83
88

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

query I rowsort
SELECT 11 + + col1 AS col2 FROM tab1
----
16
25
58

query I rowsort
SELECT 29 + - 92 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT col2 + - + 74 + - col2 * + 1 + - 62 + ( + col1 ) FROM tab1
----
-122
-131
-89

query I rowsort
SELECT ALL 51 * - 73 AS col2 FROM tab0
----
-3723
-3723
-3723

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

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab2 WHERE NOT - 43 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 WHERE NOT - 43 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-184
SELECT + ( - col1 ) AS col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-184
SELECT + ( - col1 ) AS col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT ALL + col2 + col2 DIV + col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL + col2 + col2 / + col2 FROM tab2
----
24
41
59

query I rowsort
SELECT 77 + - - 1 * col1 * - + col0 FROM tab0
----
-1138
-1750
-20

query II rowsort
SELECT ALL + col2 AS col1, + col1 * + - 57 FROM tab2
----
23
-2907
40
-4389
58
-3819

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-188
SELECT * FROM tab2 WHERE + col0 * - col0 * - CAST( + - col2 AS SIGNED ) / 73 * col0 / - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-188
SELECT * FROM tab2 WHERE + col0 * - col0 * - CAST ( + - col2 AS INTEGER ) / 73 * col0 / - col1 IS NULL
----

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

query I rowsort
SELECT ALL - + 69 + + + col1 FROM tab0 AS cor0
----
-48
-68
12

query I rowsort
SELECT ALL col1 + 7 FROM tab1 AS cor0
----
12
21
54

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( ( + - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT - + MIN( - - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-193
SELECT - + MIN ( - - col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - - 95 AS col2 FROM tab1 AS cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-195
SELECT + CAST( - + 86 AS SIGNED ) AS col0, + 66 FROM tab2 AS cor0
----
-86
66
-86
66
-86
66

skipif mysql # not compatible
query II rowsort label-195
SELECT + CAST ( - + 86 AS INTEGER ) AS col0, + 66 FROM tab2 AS cor0
----
-86
66
-86
66
-86
66

query I rowsort
SELECT ALL + col0 * + col1 * + col2 * + col0 FROM tab2 AS cor0
----
12615680
21858750
2482068

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-199
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV + + col1 AS col0 FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT CAST ( col2 AS INTEGER ) / + + col1 AS col0 FROM tab0
----
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( 18 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( 18 ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 26 - - 5 * - + col0 ) IS NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 24
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-203
SELECT - 46 * 39 * + COUNT( * ) * - - 52 * - - 89 * - + 60, 63 * 89 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( + + col1 AS DECIMAL ) * - col1 + - col0 * - ( - - col1 ) IS NOT NULL
----
0
5607

skipif mysql # not compatible
query II rowsort label-203
SELECT - 46 * 39 * + COUNT ( * ) * - - 52 * - - 89 * - + 60, 63 * 89 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( + + col1 AS REAL ) * - col1 + - col0 * - ( - - col1 ) IS NOT NULL
----
0
5607

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT 36 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 26, + 58 col0 FROM tab1 cor0
----
-26
58
-26
58
-26
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT 22 NOT IN ( - col1, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( - 21 * - + ( + col1 ) ) IS NULL
----

query I rowsort
SELECT ALL 0 FROM ( tab0 cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT - COUNT( * ) + - + ( - 81 ) col2 FROM tab0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-209
SELECT - COUNT ( * ) + - + ( - 81 ) col2 FROM tab0
----
78

query I rowsort
SELECT - col0 * col2 * - + 59 AS col0 FROM tab0 WHERE NULL IS NULL
----
41595
51330
566577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT DISTINCT + + 73 FROM tab0 AS cor0 WHERE 93 / + - col1 + - + CAST( + + col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + + 73 FROM tab0 AS cor0 WHERE 93 / + - col1 + - + CAST ( + + col2 AS INTEGER ) < NULL
----

query I rowsort
SELECT + col1 + + + 3 AS col2 FROM tab1 AS cor0
----
17
50
8

query II rowsort
SELECT col1 + - - col1 AS col0, col0 AS col2 FROM tab1 AS cor0
----
10
85
28
51
94
91

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

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL 48 + COUNT ( * ) / - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT ALL 15 DIV 23 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL 15 / 23 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT ALL + 48 DIV - ( 68 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL + 48 / - ( 68 ) FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT - col0 DIV + col1 col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-218
SELECT - col0 / + col1 col2 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT DISTINCT COUNT( ALL 68 ) + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT COUNT ( ALL 68 ) + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT DISTINCT col1 + - 28 AS col2 FROM tab0
----
-27
-7
53

query I rowsort
SELECT - 46 - - col0 AS col0 FROM tab2
----
0
18
29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 26 ) * - ( + col2 ) * - col2 + + + 55 + - + 36 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT - 18 * - COUNT( * ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-224
SELECT - 18 * - COUNT ( * ) AS col2 FROM tab1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT CAST( 38 AS SIGNED ) * - - 11 * col0 AS col2 FROM tab2
----
19228
26752
31350

skipif mysql # not compatible
query I rowsort label-225
SELECT CAST ( 38 AS INTEGER ) * - - 11 * col0 AS col2 FROM tab2
----
19228
26752
31350

query I rowsort
SELECT ALL + + col1 * 37 FROM tab0 AS cor0
----
2997
37
777

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

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

query I rowsort
SELECT col2 / - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 70 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 70 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT DISTINCT - MAX( + - col2 ) * MAX( + - col1 ) DIV - 82 + - SUM( + 92 ) FROM tab1 cor0 WHERE NULL IS NULL
----
-273

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT - MAX ( + - col2 ) * MAX ( + - col1 ) / - 82 + - SUM ( + 92 ) FROM tab1 cor0 WHERE NULL IS NULL
----
-273

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT 30 DIV - 24 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-232
SELECT 30 / - 24 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 72 * + col2 + + + col2 + col1 FROM tab0
----
-3256
-689
-7028

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-236
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col2, 73 FROM tab2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-236
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2, 73 FROM tab2
----
NULL
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + - col2 col2 FROM tab2 AS cor0
----
-110
-128
-93

query I rowsort
SELECT - ( - + col2 ) + - 68 FROM tab1 cor0
----
-9
0
28

query I rowsort
SELECT DISTINCT + + 53 + - + ( 0 ) * - 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
53

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

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

query I rowsort
SELECT ALL + - 9 + - col2 FROM tab1 AS cor0
----
-105
-68
-77

query I rowsort
SELECT col1 + - 90 FROM tab0 AS cor0 WHERE + col1 = col2
----

query I rowsort
SELECT ALL + 10 + - + col2 AS col2 FROM tab1 AS cor0
----
-49
-58
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 - - ( - col1 ) + - col2 col0 FROM tab0 cor0
----
-111
-180
-208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-247
SELECT + col0 - CAST( - - col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-247
SELECT + col0 - CAST ( - - col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
37
44
80

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

query I rowsort
SELECT - 50 + - 88 AS col0 FROM tab2 AS cor0
----
-138
-138
-138

query I rowsort
SELECT - col0 * + 71 + - 40 + col1 AS col0 FROM tab1 AS cor0
----
-3647
-6070
-6454

query II rowsort
SELECT DISTINCT + - col2 + 74 * + col0 AS col0, - col1 FROM tab2 AS cor0
----
3381
-51
4696
-77
5492
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-252
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - CAST( - col1 AS SIGNED ), + 22 )
----

skipif mysql # not compatible
query III rowsort label-252
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - CAST ( - col1 AS INTEGER ), + 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL - 87 - - + COUNT( * ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL - 87 - - + COUNT ( * ) FROM tab2 AS cor0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 / - col1, - col2 ) AND NULL < ( NULL )
----

query I rowsort
SELECT 19 + - - col1 FROM tab0 cor0
----
100
20
40

query II rowsort
SELECT + 24 + + 88 AS col0, col0 AS col1 FROM tab1
----
112
51
112
85
112
91

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT DISTINCT + SUM( DISTINCT + + 26 ) AS col2, 51 * + COUNT( * ) AS col0 FROM tab0
----
26
153

skipif mysql # not compatible
query II rowsort label-257
SELECT DISTINCT + SUM ( DISTINCT + + 26 ) AS col2, 51 * + COUNT ( * ) AS col0 FROM tab0
----
26
153

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

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

query II rowsort
SELECT ALL ( col2 ), + col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL 63 * - 42 FROM tab0, tab2 AS cor0
----
9 values hashing to d8797e8a4b094f055ae1b7f5ec28a232

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

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

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

query I rowsort
SELECT DISTINCT - 97 * + col1 * - - col1 FROM tab0
----
-42777
-636417
-97

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

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

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

query I rowsort
SELECT ALL - 68 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT 95 * + 29 <= - col1 )
----

query I rowsort
SELECT col2 * + col1 * + 86 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col2 * - 52 + - + col2 * col2 FROM tab1 AS cor0
----
-1088
-413
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + - SUM( + 55 ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-271
SELECT + - SUM ( + 55 ) FROM tab2 AS cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + 17 + + - MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-272
SELECT + 17 + + - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
16

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-275
SELECT col1 col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + 36 * + - col0 BETWEEN NULL AND - 55 / - 18 + + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-275
SELECT col1 col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + 36 * + - col0 BETWEEN NULL AND - 55 / - 18 + + + col1
----

query I rowsort
SELECT - 31 * - col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 14, + col1 )
----

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

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL BETWEEN - col2 AND + + col0
----

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

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

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

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( - col2 + + + col2 - col1 * - + col1 ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT + col0, col0 * + - col0 FROM tab2 cor0
----
46
-2116
64
-4096
75
-5625

query I rowsort
SELECT ALL + 22 * col0 + - 84 + - col2 + + col2 FROM tab0 AS cor0
----
1830
2050
246

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( + 72 * 65 IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-286
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1, COUNT( * ) DIV + COUNT( * ) FROM tab1
----
0
1

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1, COUNT ( * ) / + COUNT ( * ) FROM tab1
----
0
1

query I rowsort
SELECT ALL col1 * ( col0 ) + + col0 + + 77 AS col2 FROM tab0
----
1307
1991
271

query I rowsort
SELECT DISTINCT col0 * - 25 + - 17 FROM tab0
----
-2192
-2442
-392

query II rowsort
SELECT col1 + - ( - col1 ), + col0 - + 63 AS col2 FROM tab2
----
102
-17
134
12
154
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-290
SELECT CAST( col2 AS SIGNED ), - col1 AS col2 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
query II rowsort label-290
SELECT CAST ( col2 AS INTEGER ), - col1 AS col2 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL - + 90 + col2 AS col1 FROM tab2 AS cor0
----
-32
-50
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - COUNT( DISTINCT - 46 ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-292
SELECT - COUNT ( DISTINCT - 46 ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 70 * + col0 - + col0 AS col2 FROM tab1
----
3519
5865
6279

query I rowsort
SELECT - col1 - + - col1 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT col2 AS col1, 14 * - 83 * - - col0 FROM tab2
----
23
-53452
40
-74368
58
-87150

query I rowsort
SELECT DISTINCT - ( col1 ) * 57 * + 79 FROM tab1 WHERE + 30 + + col1 + + col2 / col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT MAX( - 29 ) AS col1 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT MAX ( - 29 ) AS col1 FROM tab0
----
-29

query I rowsort
SELECT DISTINCT + 64 * + col0 AS col2 FROM tab2
----
2944
4096
4800

onlyif mysql # aggregate syntax: 
query II rowsort label-299
SELECT - COUNT( * ) AS col2, MAX( 23 ) FROM tab0
----
-3
23

skipif mysql # not compatible
query II rowsort label-299
SELECT - COUNT ( * ) AS col2, MAX ( 23 ) FROM tab0
----
-3
23

query III rowsort
SELECT * FROM tab1 WHERE NOT + 6 BETWEEN + 13 + + + col2 * - 43 AND + col2
----

query II rowsort
SELECT ALL 43 + + - ( - col2 ), col1 FROM tab1 WHERE NOT NULL > col2
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

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

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

query II rowsort
SELECT - 15 AS col0, - col2 * - 89 FROM tab0 AS cor0
----
-15
4183
-15
8811
-15
890

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-305
SELECT * FROM tab1 WHERE NOT - 11 * + col2 >= col0 + - 97 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-305
SELECT * FROM tab1 WHERE NOT - 11 * + col2 >= col0 + - 97 / CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-307
SELECT ALL + 16 * + CAST( NULL AS SIGNED ), + col2 col0 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-307
SELECT ALL + 16 * + CAST ( NULL AS INTEGER ), + col2 col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 88 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-310
SELECT DISTINCT - - col1 DIV - 70 col2, + 73 FROM tab1 AS cor0
----
0
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-310
SELECT DISTINCT - - col1 / - 70 col2, + 73 FROM tab1 AS cor0
----
0
73

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT MAX( DISTINCT - col0 ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-311
SELECT DISTINCT MAX ( DISTINCT - col0 ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-312
SELECT + - COUNT( DISTINCT + 98 ) AS col1, MAX( DISTINCT - col2 ) DIV + 82 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query II rowsort label-312
SELECT + - COUNT ( DISTINCT + 98 ) AS col1, MAX ( DISTINCT - col2 ) / + 82 FROM tab1 AS cor0
----
-1
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT + 99, COUNT( * ) AS col1 FROM tab2 WHERE + col2 * - col2 < NULL
----
99
0

skipif mysql # not compatible
query II rowsort label-316
SELECT + 99, COUNT ( * ) AS col1 FROM tab2 WHERE + col2 * - col2 < NULL
----
99
0

query I rowsort
SELECT - col0 + + - 33 FROM tab0
----
-120
-130
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT COUNT( * ) * - COUNT( * ) + 35 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-319
SELECT COUNT ( * ) * - COUNT ( * ) + 35 FROM tab0 AS cor0
----
26

query I rowsort
SELECT + ( + 18 ) AS col2 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT + COUNT( * ) * COUNT( * ) - + 65 + - + 69 * 37 AS col0 FROM tab0 AS cor0
----
-2609

skipif mysql # not compatible
query I rowsort label-321
SELECT + COUNT ( * ) * COUNT ( * ) - + 65 + - + 69 * 37 AS col0 FROM tab0 AS cor0
----
-2609

query I rowsort
SELECT ( - col1 ) * - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT + 68 DIV + col2 + + col2 AS col2 FROM tab0 AS cor0
----
16
48
99

skipif mysql # not compatible
query I rowsort label-323
SELECT + 68 / + col2 + + col2 AS col2 FROM tab0 AS cor0
----
16
48
99

query I rowsort
SELECT - - col1 * col0 + - + col0 FROM tab0 AS cor0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT - + MIN( + - 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-325
SELECT - + MIN ( + - 72 ) FROM tab1 AS cor0
----
72

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT 34 + 14 <= - col2
----
-46
-64
-75

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 23 <> + col0 * col1 + 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + + 82 * + SUM( DISTINCT - + 46 ) FROM tab0 AS cor0
----
-3772

skipif mysql # not compatible
query I rowsort label-329
SELECT + + 82 * + SUM ( DISTINCT - + 46 ) FROM tab0 AS cor0
----
-3772

query I rowsort
SELECT ALL - col0 * - col0 - 33 FROM tab0 AS cor0
----
192
7536
9376

onlyif mysql # DIV for integer division: 
query I rowsort label-331
SELECT ALL 52 * - col0 DIV + col0 FROM tab0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL 52 * - col0 / + col0 FROM tab0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL COUNT( * ) * - 24 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL COUNT ( * ) * - 24 FROM tab2
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL + ( MAX( DISTINCT 56 ) ) * + + 9 FROM tab1
----
504

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL + ( MAX ( DISTINCT 56 ) ) * + + 9 FROM tab1
----
504

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

query I rowsort
SELECT + col1 * - col1 AS col0 FROM tab0 WHERE NOT - + 31 * - + 69 IS NULL
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + 37 <= - + col1
----
3

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + 37 <= - + col1
----
3

query I rowsort
SELECT ALL 11 * + - ( - col0 ) * - col0 + - - 96 + 26 FROM tab1 AS cor0
----
-28489
-79353
-90969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - col2 col2 FROM tab1 AS cor0 WHERE NOT 88 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT - ( + COUNT( * ) ) * + ( - 66 ) + + 1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-340
SELECT - ( + COUNT ( * ) ) * + ( - 66 ) + + 1 FROM tab0 cor0
----
199

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

query II rowsort
SELECT DISTINCT - col0, + col0 * - + 34 AS col1 FROM tab1 cor0
----
-51
-1734
-85
-2890
-91
-3094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - 94 FROM tab0 AS cor0
----
-10
-94
-47
-94
-99
-94

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

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

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

query I rowsort
SELECT ALL 23 * + + 23 FROM tab1
----
529
529
529

query I rowsort
SELECT ALL - 71 + - col2 FROM tab0
----
-118
-170
-81

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

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT COUNT ( * ) / + COUNT ( col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-349
SELECT ALL CAST( NULL AS SIGNED ) + - col2 col1, - 52 DIV ( - col2 ) + - - 75 AS col1 FROM tab2
----
NULL
75
NULL
76
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-349
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 col1, - 52 / ( - col2 ) + - - 75 AS col1 FROM tab2
----
NULL
75
NULL
76
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + SUM( + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-350
SELECT + SUM ( + col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT DISTINCT 95 + 98 * col2 AS col1 FROM tab1
----
5877
6759
9503

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

query I rowsort
SELECT DISTINCT + col2 - - 37 * + col2 AS col2 FROM tab0 AS cor0
----
1786
3762
380

query I rowsort
SELECT ALL - 64 * + AVG ( + col1 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + 90 + - col1 AND col2 * - + ( - col2 ) + 16
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= ( col0 / 75 )
----

query I rowsort
SELECT - ( - 81 ) FROM tab0 cor0
----
81
81
81

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

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

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

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

query II rowsort
SELECT ALL col1 AS col1, - col1 * + col1 AS col0 FROM tab0
----
1
-1
21
-441
81
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * + + col0 col2 FROM tab0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT COUNT( * ) AS col1, 18 * - + COUNT( * ) FROM tab0
----
3
-54

skipif mysql # not compatible
query II rowsort label-361
SELECT COUNT ( * ) AS col1, 18 * - + COUNT ( * ) FROM tab0
----
3
-54

query I rowsort
SELECT col1 * - - 99 AS col0 FROM tab2
----
5049
6633
7623

query II rowsort
SELECT - col1 AS col0, col2 AS col1 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-364
SELECT DISTINCT ( + CAST( + col2 AS SIGNED ) ) * - col1 + - - col0 FROM tab2
----
-1127
-3016
-3811

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT ( + CAST ( + col2 AS INTEGER ) ) * - col1 + - - col0 FROM tab2
----
-1127
-3016
-3811

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 25 * 31 IS NOT NULL
----

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

query I rowsort
SELECT - + col1 + - 98 + 38 AS col1 FROM tab2 AS cor0
----
-111
-127
-137

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 84 * - 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - 43 * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
387

skipif mysql # not compatible
query I rowsort label-369
SELECT - 43 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
387

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

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT ALL + 56 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-504

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL + 56 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-504

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

query I rowsort
SELECT DISTINCT - 60 * + + col2 FROM tab0 AS cor0
----
-2820
-5940
-600

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

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

query I rowsort
SELECT ALL - col2 + 67 * - col0 FROM tab1 AS cor0
----
-3513
-5754
-6165

onlyif mysql # DIV for integer division: 
query II rowsort label-376
SELECT DISTINCT ( + - col0 ) AS col1, 66 DIV + - col2 FROM tab0 AS cor0
----
-15
-1
-87
-6
-97
0

skipif mysql # not compatible
query II rowsort label-376
SELECT DISTINCT ( + - col0 ) AS col1, 66 / + - col2 FROM tab0 AS cor0
----
-15
-1
-87
-6
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT 1 + - COUNT( * ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-377
SELECT 1 + - COUNT ( * ) AS col0 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL - COUNT( * ) * + + COUNT( * ) * - 53 FROM tab0
----
477

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) * - 53 FROM tab0
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-379
SELECT CAST( + ( + SUM( ALL col1 ) ) AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-379
SELECT CAST ( + ( + SUM ( ALL col1 ) ) AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - 65 + SUM( col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-380
SELECT - 65 + SUM ( col1 ) FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-381
SELECT + CAST( - MAX( DISTINCT col1 ) AS SIGNED ) FROM tab0 WHERE - + col0 IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-381
SELECT + CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) FROM tab0 WHERE - + col0 IS NOT NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT 42 + + COUNT( * ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-382
SELECT 42 + + COUNT ( * ) AS col2 FROM tab0
----
45

query I rowsort
SELECT DISTINCT col1 + + + col0 + col0 AS col2 FROM tab0
----
111
195

query I rowsort
SELECT ALL 52 + + 79 AS col0 FROM tab2
----
131
131
131

query I rowsort
SELECT + col1 * col2 + - + col2 AS col1 FROM tab1 AS cor0
----
1248
236
3128

query I rowsort
SELECT DISTINCT - + col2 - - 98 AS col1 FROM tab2 AS cor0
----
40
58
75

query I rowsort
SELECT 82 AS col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + + 46 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 67
----

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT DISTINCT + COUNT( - + 81 ) AS col1, COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-389
SELECT DISTINCT + COUNT ( - + 81 ) AS col1, COUNT ( * ) AS col0 FROM tab1
----
3
3

query I rowsort
SELECT - - 20 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-391
SELECT ALL - col1 * col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-425
NULL
-4277
NULL
-714
NULL

skipif mysql # not compatible
query II rowsort label-391
SELECT ALL - col1 * col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-425
NULL
-4277
NULL
-714
NULL

query I rowsort
SELECT DISTINCT + 15 FROM tab2 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT + MIN( + + 26 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
26

skipif mysql # not compatible
query I rowsort label-394
SELECT + MIN ( + + 26 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT MAX( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-395
SELECT MAX ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-59

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

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT SUM ( DISTINCT - + ( + + col2 ) ) FROM tab0 AS cor0
----
-156

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-398
SELECT - col2 * - + CAST( NULL AS SIGNED ) AS col1, + col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-398
SELECT - col2 * - + CAST ( NULL AS INTEGER ) AS col1, + col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-399
SELECT - + CAST( - - 47 AS SIGNED ) DIV - col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-399
SELECT - + CAST ( - - 47 AS INTEGER ) / - col2 FROM tab2 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 + - 58 col0 FROM tab1 AS cor0
----
-4335
-483
-772

query I rowsort
SELECT - col2 * col1 + - - col2 AS col1 FROM tab1 AS cor0
----
-1248
-236
-3128

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 20 AND - col2 - col1
----

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

query II rowsort
SELECT - ( + 39 ) * - 45, col1 FROM tab1 AS cor0
----
1755
14
1755
47
1755
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT 24 * + 83 * - col1 * + CAST( col2 AS SIGNED ) + + - 67 AS col0 FROM tab0
----
-197275
-418387
-7583611

skipif mysql # not compatible
query I rowsort label-409
SELECT 24 * + 83 * - col1 * + CAST ( col2 AS INTEGER ) + + - 67 AS col0 FROM tab0
----
-197275
-418387
-7583611

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT + COUNT( * ) + COUNT( * ) + - 43 AS col1 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-410
SELECT + COUNT ( * ) + COUNT ( * ) + - 43 AS col1 FROM tab1
----
-37

query I rowsort
SELECT DISTINCT + ( - + 49 ) + col1 FROM tab0
----
-28
-48
32

query I rowsort
SELECT col2 + - col2 + - col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL 58 + - col2 + + 84 FROM tab2 AS cor0
----
102
119
84

query I rowsort
SELECT + 36 + - + col2 AS col0 FROM tab0 AS cor0
----
-11
-63
26

query I rowsort
SELECT + col1 + - 43 FROM tab1 AS cor0
----
-29
-38
4

onlyif mysql # DIV for integer division: 
query I rowsort label-416
SELECT ALL col2 DIV - - 88 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL col2 / - - 88 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-417
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL IN ( col1, col1, col0, + col2 + - col0 * + 33, 37 * - col1 / + CAST( 93 AS DECIMAL ) * - + col1, + 6 )
----

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL IN ( col1, col1, col0, + col2 + - col0 * + 33, 37 * - col1 / + CAST ( 93 AS REAL ) * - + col1, + 6 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT DISTINCT + col2 * - col0 + col0 + + col0 + + col2 DIV + - col2 AS col2 FROM tab0 AS cor0
----
-676
-697
-9410

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT + col2 * - col0 + col0 + + col0 + + col2 / + - col2 AS col2 FROM tab0 AS cor0
----
-676
-697
-9410

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT - CAST( + col2 AS SIGNED ) * + 89 FROM tab2
----
-2047
-3560
-5162

skipif mysql # not compatible
query I rowsort label-421
SELECT - CAST ( + col2 AS INTEGER ) * + 89 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT col0 DIV + - ( - - col0 ) col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-422
SELECT col0 / + - ( - - col0 ) col1 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-423
SELECT col0 - + 66 * + - CAST( + 89 AS SIGNED ) FROM tab1
----
5925
5959
5965

skipif mysql # not compatible
query I rowsort label-423
SELECT col0 - + 66 * + - CAST ( + 89 AS INTEGER ) FROM tab1
----
5925
5959
5965

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT 30 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + 59 ) * + 84 + + - 72 col1 FROM tab2 AS cor0
----
-5028

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

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

query II rowsort
SELECT + col0 AS col0, + 48 + col1 FROM tab1
----
51
62
85
53
91
95

query I rowsort
SELECT + + 13 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> - 4
----

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

query II rowsort
SELECT ALL + - col1, col2 FROM tab1 cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT + + ( ( + 28 ) ) * + 58 FROM tab0 AS cor0
----
1624

query I rowsort
SELECT + col1 * + ( - col0 ) * 58 * + - col2 + + col1 AS col2 FROM tab2 AS cor0
----
11433037
16904167
3129615

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT ALL - COUNT( * ), 81 AS col2 FROM tab1 AS cor0
----
-3
81

skipif mysql # not compatible
query II rowsort label-433
SELECT ALL - COUNT ( * ), 81 AS col2 FROM tab1 AS cor0
----
-3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT MAX( DISTINCT + 70 ) col0 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-434
SELECT MAX ( DISTINCT + 70 ) col0 FROM tab1
----
70

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-437
SELECT + MAX ( + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT COUNT( * ) + 95 AS col2 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT COUNT ( * ) + 95 AS col2 FROM tab0 AS cor0
----
98

query I rowsort
SELECT 96 + 64 AS col1 FROM tab1 AS cor0
----
160
160
160

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + col1 ) + + 18 - col0 AS col1 FROM tab2 AS cor0
----
10
23
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT 85 - + ( + ( COUNT( * ) ) ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT 85 - + ( + ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT DISTINCT + - COUNT( * ) - MIN( DISTINCT + 16 ) AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT + - COUNT ( * ) - MIN ( DISTINCT + 16 ) AS col1 FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT 83 * + 14 + + 7, ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
1169
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-448
SELECT 83 * + 14 + + 7, ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
1169
3

query I rowsort
SELECT ALL - 6 - col2 FROM tab2
----
-29
-46
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT DISTINCT - 67 + - - MIN( DISTINCT col2 ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT - 67 + - - MIN ( DISTINCT col2 ) FROM tab1
----
-8

query I rowsort
SELECT - col1 + - 7 + col2 + + col0 AS col2 FROM tab2
----
11
20
59

query I rowsort
SELECT DISTINCT + + col0 + - - col2 + 35 + - 89 * - + col1 FROM tab0 AS cor0
----
2001
320
7306

onlyif mysql # DIV for integer division: 
query II rowsort label-453
SELECT + col1, 82 + - col2 * + col0 DIV + col0 FROM tab0 AS cor0
----
1
-17
21
72
81
35

skipif mysql # not compatible
query II rowsort label-453
SELECT + col1, 82 + - col2 * + col0 / + col0 FROM tab0 AS cor0
----
1
-17
21
72
81
35

query II rowsort
SELECT ALL col0, - col2 + col0 AS col1 FROM tab0 AS cor0
----
15
-32
87
77
97
-2

query I rowsort
SELECT ALL 63 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - 34 * - col0 col2, col2 AS col2 FROM tab0
----
3298
99
41310
47
62118
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 col2, + 22 * col2 + + 16 FROM tab2 WHERE NOT - + col1 >= 81
----
32
1292
32
522
32
896

query I rowsort
SELECT + col1 * - + 27 FROM tab0
----
-2187
-27
-567

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

onlyif mysql # aggregate syntax: 
query II rowsort label-460
SELECT + + MAX( ALL + 46 ) AS col1, 84 FROM tab1 AS cor0
----
46
84

skipif mysql # not compatible
query II rowsort label-460
SELECT + + MAX ( ALL + 46 ) AS col1, 84 FROM tab1 AS cor0
----
46
84

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT col2 >= - + 16 + - col1
----

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

query I rowsort
SELECT ALL + - col1 + + 0 * - + 10 AS col2 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-464
SELECT col1 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-464
SELECT col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-465
SELECT ALL - CAST( col2 AS SIGNED ) * col1 AS col2, + 59 FROM tab2
----
-1173
59
-3080
59
-3886
59

skipif mysql # not compatible
query II rowsort label-465
SELECT ALL - CAST ( col2 AS INTEGER ) * col1 AS col2, + 59 FROM tab2
----
-1173
59
-3080
59
-3886
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 + - col2 col2 FROM tab1
----
-2
-30
7

query I rowsort
SELECT ALL col0 + 94 + + + 2 * + 57 FROM tab1
----
259
293
299

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

query I rowsort
SELECT ALL + - 31 * + - 31 AS col0 FROM tab0 AS cor0
----
961
961
961

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( - col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT 61 * 20 + COUNT( * ) AS col2 FROM tab2
----
1223

skipif mysql # not compatible
query I rowsort label-472
SELECT 61 * 20 + COUNT ( * ) AS col2 FROM tab2
----
1223

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

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT DISTINCT COUNT( ALL 93 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT COUNT ( ALL 93 ) FROM tab0
----
3

query I rowsort
SELECT 82 * col2 AS col2 FROM tab1
----
4838
5576
7872

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

query I rowsort
SELECT - 89 * col2 AS col2 FROM tab1
----
-5251
-6052
-8544

query I rowsort
SELECT DISTINCT col0 * 22 + - col0 AS col2 FROM tab2
----
1344
1575
966

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

query I rowsort
SELECT + col1 * 86 AS col1 FROM tab0
----
1806
6966
86

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT COUNT( - col2 ) * + 44 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT COUNT ( - col2 ) * + 44 FROM tab1
----
132

query I rowsort
SELECT DISTINCT + ( 20 ) * - col0 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - ( - MAX( + 86 ) * + AVG ( DISTINCT col0 * - 27 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - ( - MAX ( + 86 ) * + AVG ( DISTINCT col0 * - 27 ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-484
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-484
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 23 * col2 AS col0 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT COUNT( * ) + + 94 AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-486
SELECT COUNT ( * ) + + 94 AS col0 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT COUNT( * ) * - 46 AS col1 FROM tab0 WHERE NOT col0 * + col1 + 38 NOT BETWEEN + col2 + col0 AND col0 + + 53
----
0

skipif mysql # not compatible
query I rowsort label-487
SELECT COUNT ( * ) * - 46 AS col1 FROM tab0 WHERE NOT col0 * + col1 + 38 NOT BETWEEN + col2 + col0 AND col0 + + 53
----
0

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

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

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT 92 - + col0 <= col2
----

query I rowsort
SELECT - 92 - 46 FROM tab2
----
-138
-138
-138

query I rowsort
SELECT DISTINCT col0 + col0 FROM tab0 WHERE NOT - 4 + + 31 / + ( - 98 ) IS NULL
----
174
194
30

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

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

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

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

skipif mysql # not compatible
query I rowsort label-494
SELECT col0 / ( 95 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT col1 DIV - 59 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-495
SELECT col1 / - 59 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 54 FROM tab1 WHERE NOT - col0 / + col0 + col1 > ( NULL )
----

query I rowsort
SELECT ALL - col0 + + ( + 17 + - col2 ) FROM tab1
----
-127
-130
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL MAX( DISTINCT 41 ) * + SUM( DISTINCT col1 ) + MIN( col1 ) FROM tab0
----
4224

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL MAX ( DISTINCT 41 ) * + SUM ( DISTINCT col1 ) + MIN ( col1 ) FROM tab0
----
4224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + 16 col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL + AVG ( col2 ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 * col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + AVG ( col2 ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 * col0 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT SUM( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT SUM ( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) * - ( + 27 ) AS col2 FROM tab0
----
2349
2619
405

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT ALL + 34 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL + 34 / - col0 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL + COUNT( DISTINCT + 82 ) FROM tab1 WHERE ( NULL ) > ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + COUNT ( DISTINCT + 82 ) FROM tab1 WHERE ( NULL ) > ( col1 )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL SUM( ALL + col1 ) + - 20 FROM tab0 AS cor0 WHERE NOT - col2 + + 84 NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL SUM ( ALL + col1 ) + - 20 FROM tab0 AS cor0 WHERE NOT - col2 + + 84 NOT IN ( col1 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT 75 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT 75 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 / + 60 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 / + 60 IS NOT NULL
----
3

query I rowsort
SELECT + + 16 * 9 AS col1 FROM tab2 AS cor0
----
144
144
144

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

query I rowsort
SELECT ALL - col0 * - ( - col2 ) AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL - ( + 50 ) * - col1 AS col1 FROM tab2
----
2550
3350
3850

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( - 29 ) <= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT col1 DIV 12 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-520
SELECT col1 / 12 AS col2 FROM tab0
----
0
1
6

query I rowsort
SELECT DISTINCT - col0 + col2 - col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - ( + - 81 ) + 77 FROM tab0
----
158
158
158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL - COUNT( * ) + SUM( + ( - col0 ) ) FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - COUNT ( * ) + SUM ( + ( - col0 ) ) FROM tab0
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE 28 < ( col0 / - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE 28 < ( col0 / - 29 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT + COUNT( DISTINCT - col2 ) + - SUM( ALL col0 + + col2 * + col0 ) FROM tab1 AS cor0
----
-16323

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) + - SUM ( ALL col0 + + col2 * + col0 ) FROM tab1 AS cor0
----
-16323

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT + - COUNT( * ) + 19 AS col0 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT + - COUNT ( * ) + 19 AS col0 FROM tab0 AS cor0
----
16

query I rowsort
SELECT - - 7 + + col1 FROM tab1 AS cor0
----
12
21
54

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

query I rowsort
SELECT ALL - col0 * - + 1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT + + COUNT( * ) * + ( - 70 ) AS col0 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-533
SELECT + + COUNT ( * ) * + ( - 70 ) AS col0 FROM tab2 AS cor0
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT + col1 DIV + + ( - col2 ) col1 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-534
SELECT + col1 / + + ( - col2 ) col1 FROM tab0 cor0
----
-1
-2
0

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

query I rowsort
SELECT - 47 * - 43 FROM tab2
----
2021
2021
2021

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * + ( + col0 ) col1 FROM tab0
----
1218
1358
210

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 BETWEEN NULL AND ( 73 ) / - ( + col1 - ( 26 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-540
SELECT ALL - CAST( NULL AS SIGNED ) + - 99 * + 27 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL - CAST ( NULL AS INTEGER ) + - 99 * + 27 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 91 * 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e5395b402ffa451ced4e0ffa751b848

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-543
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) + + COUNT( * ) FROM tab0 WHERE + col0 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE + col0 * + col1 IS NULL
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-545
SELECT ALL + 44 DIV + 13 - - SUM( - CAST( ( + col1 ) AS SIGNED ) ) + 46 * - COUNT( * ) + 79 AS col2 FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + 44 / + 13 - - SUM ( - CAST ( ( + col1 ) AS INTEGER ) ) + 46 * - COUNT ( * ) + 79 AS col2 FROM tab1 AS cor0
----
-122

query I rowsort
SELECT ALL col1 * 33 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 < NULL
----

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

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

query I rowsort
SELECT DISTINCT + 23 - + 29 AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT DISTINCT + + MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT + + MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT 68 + + + col1 + - col1 + - + col0 AS col2 FROM tab1
----
-17
-23
17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 24 col1 FROM tab0
----
-2088
-2328
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT - MAX( col0 ) * 57 AS col2 FROM tab0 cor0
----
-5529

skipif mysql # not compatible
query I rowsort label-555
SELECT - MAX ( col0 ) * 57 AS col2 FROM tab0 cor0
----
-5529

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-557
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) + 39 )
----

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) + 39 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT + MIN( DISTINCT - col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-559
SELECT + MIN ( DISTINCT - col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

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

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

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

query I rowsort
SELECT DISTINCT + 21 AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
21

query I rowsort
SELECT + 72 * + col1 AS col1 FROM tab2
----
3672
4824
5544

query I rowsort
SELECT ALL - + ( + col2 ) * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT 37 * + + col0 FROM tab0 cor0
----
3219
3589
555

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > col1 + + - col1
----

query I rowsort
SELECT DISTINCT + 73 * - col0 AS col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT DISTINCT + - SUM( ALL + col1 ) FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT + - SUM ( ALL + col1 ) FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-195

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-572
SELECT col2 + + + CAST( 36 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
59
76
94

skipif mysql # not compatible
query I rowsort label-572
SELECT col2 + + + CAST ( 36 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
59
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL + MAX( ALL + 93 ) FROM tab2 WHERE ( + 81 * + + 37 ) BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + MAX ( ALL + 93 ) FROM tab2 WHERE ( + 81 * + + 37 ) BETWEEN NULL AND col2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - ( + 85 ) IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-576
SELECT ( - - 38 ) / ( + ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-578
SELECT ALL col1 + CAST( + col1 AS SIGNED ) FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL col1 + CAST ( + col1 AS INTEGER ) FROM tab1
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT DISTINCT col1 + + + 26 DIV - - 68 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT col1 + + + 26 / - - 68 AS col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT + ( COUNT( * ) ) AS col1, SUM( - 70 ) AS col2 FROM tab2
----
3
-210

skipif mysql # not compatible
query II rowsort label-580
SELECT + ( COUNT ( * ) ) AS col1, SUM ( - 70 ) AS col2 FROM tab2
----
3
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT DISTINCT - ( - col2 ) DIV + ( + col0 ) + - + col2 DIV + 9 + 53 * + col2 AS col2 FROM tab2 AS cor0
----
1217
2116
3068

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT - ( - col2 ) / + ( + col0 ) + - + col2 / + 9 + 53 * + col2 AS col2 FROM tab2 AS cor0
----
1217
2116
3068

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT DISTINCT + 20 DIV + - col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + 20 / + - col0 FROM tab0 AS cor0
----
-1
0

query II rowsort
SELECT + - col1 + + - 10 * - 54 * col2, 43 AS col1 FROM tab0 AS cor0
----
25299
43
53459
43
5379
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT ALL - 90 + + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - 90 + + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-587
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 2 + 0 + + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 2 + 0 + + COUNT ( * ) FROM tab1 cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-589
SELECT ALL + col1 DIV - col0 * CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-589
SELECT ALL + col1 / - col0 * CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 48 ) > + col0
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-592
SELECT DISTINCT - MIN ( - col0 ) col0 FROM tab0
----
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 AS col0, + col0 * + col0 * + col2 col1 FROM tab0
----
-22
10575
-22
75690
-22
931491

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-596
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + 22 AND CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-596
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + 22 AND CAST ( - + col2 AS INTEGER )
----

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

query I rowsort
SELECT - 62 * + 79 AS col2 FROM tab1
----
-4898
-4898
-4898

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - - col1 AND + col2
----
97
1
99

query II rowsort
SELECT ALL + - col2 + - 45 AS col1, 14 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-604
SELECT * FROM tab1 AS cor0 WHERE + 49 / - col1 / - 5 * col2 - + CAST( NULL AS SIGNED ) * col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-604
SELECT * FROM tab1 AS cor0 WHERE + 49 / - col1 / - 5 * col2 - + CAST ( NULL AS INTEGER ) * col2 >= NULL
----

query II rowsort
SELECT DISTINCT - col0, col2 FROM tab0 AS cor0 WHERE NOT - col2 <= - - col2
----

query I rowsort
SELECT + + 32 AS col2 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT + 15 + 80 * + COUNT( * ) AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-607
SELECT + 15 + 80 * + COUNT ( * ) AS col0 FROM tab2
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT 67 DIV - col0 + + + 48 + - - 25 AS col2 FROM tab2
----
72
72
73

skipif mysql # not compatible
query I rowsort label-608
SELECT 67 / - col0 + + + 48 + - - 25 AS col2 FROM tab2
----
72
72
73

query II rowsort
SELECT 82 * - + col1 * + + 94 * col0 + + + col1, 16 AS col2 FROM tab1
----
-3275895
16
-32967069
16
-5503498
16

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

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

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

query I rowsort
SELECT ALL col2 - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * - - col2 * + - 62 col1 FROM tab2 AS cor0
----
-27094
-47120
-68324

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-614
SELECT CAST( NULL AS DECIMAL ) - + COUNT( ALL ( 80 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT CAST ( NULL AS REAL ) - + COUNT ( ALL ( 80 ) ) FROM tab0
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 71 + - col2 + - 72 * 9 + col1 + 12 ) NOT BETWEEN col2 AND 74
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6 col0, + 27 col2 FROM tab1 AS cor0
----
-6
27
-6
27
-6
27

onlyif mysql # aggregate syntax: 
query II rowsort label-619
SELECT - MIN( + + col0 ) AS col2, COUNT( * ) + + + 27 AS col0 FROM tab2
----
-46
30

skipif mysql # not compatible
query II rowsort label-619
SELECT - MIN ( + + col0 ) AS col2, COUNT ( * ) + + + 27 AS col0 FROM tab2
----
-46
30

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 77 AND + + 58
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IN ( col0 / - 97 + + 96, + col2, col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-622
SELECT COUNT( * ) DIV + - COUNT( * ) col2, COUNT( * ) FROM tab0 AS cor0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-622
SELECT COUNT ( * ) / + - COUNT ( * ) col2, COUNT ( * ) FROM tab0 AS cor0
----
-1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL - COUNT( DISTINCT 26 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL - COUNT ( DISTINCT 26 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT 85 + + col1 FROM tab0 cor0
----
106
166
86

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-627
SELECT DISTINCT + col0 AS col2, CAST( + 74 AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-627
SELECT DISTINCT + col0 AS col2, CAST ( + 74 AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

query II rowsort
SELECT DISTINCT + 50 AS col0, col0 FROM tab0 AS cor0
----
50
15
50
87
50
97

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE - col1 + + 58 * col1 IS NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL = - + col0
----

query II rowsort
SELECT ALL - 94 + col1 + col0 + + col2 AS col2, + col2 AS col1 FROM tab0
----
103
99
24
10
49
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT CAST( - + col0 AS SIGNED ) * 65 AS col0 FROM tab1
----
-3315
-5525
-5915

skipif mysql # not compatible
query I rowsort label-633
SELECT CAST ( - + col0 AS INTEGER ) * 65 AS col0 FROM tab1
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT + 98 DIV + + COUNT( ALL + col2 ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-634
SELECT + 98 / + + COUNT ( ALL + col2 ) AS col1 FROM tab1
----
32

query I rowsort
SELECT 64 * - col1 AS col2 FROM tab1
----
-3008
-320
-896

query I rowsort
SELECT ALL - col1 * - 65 + - col2 AS col1 FROM tab2 AS cor0
----
3292
4297
4965

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

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

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

skipif mysql # not compatible
query I rowsort label-638
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT 40 * + col0 * + - col1 AS col2 FROM tab2
----
-197120
-201000
-93840

query I rowsort
SELECT + 26 AS col1 FROM tab0 AS cor0 WHERE NOT - 5 * - col0 IS NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT - MIN( 91 ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-642
SELECT - MIN ( 91 ) AS col0 FROM tab0 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col1 FROM tab2 AS cor0
----
-45
-45
-45

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

query I rowsort
SELECT ALL 69 * col1 FROM tab1
----
3243
345
966

query I rowsort
SELECT ALL ( col0 ) * - + 15 AS col0 FROM tab0
----
-1305
-1455
-225

query I rowsort
SELECT DISTINCT - col2 * - col2 * col0 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT + COUNT( * ) AS col0, - 55 FROM tab1
----
3
-55

skipif mysql # not compatible
query II rowsort label-648
SELECT + COUNT ( * ) AS col0, - 55 FROM tab1
----
3
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT - 36 * COUNT( * ) FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-649
SELECT - 36 * COUNT ( * ) FROM tab1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT ALL ( + 70 ) * CAST( NULL AS SIGNED ) - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL ( + 70 ) * CAST ( NULL AS INTEGER ) - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-651
SELECT DISTINCT 24 DIV ( - COUNT( * ) ) AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT 24 / ( - COUNT ( * ) ) AS col2 FROM tab2
----
-8

query I rowsort
SELECT + col0 * - - 92 AS col1 FROM tab1
----
4692
7820
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE NOT - - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-653
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - col1 IS NULL
----
-3

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

query I rowsort
SELECT 87 + - 0 FROM tab0 AS cor0
----
87
87
87

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

query I rowsort
SELECT DISTINCT - 88 * col2 FROM tab0 AS cor0
----
-4136
-8712
-880

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 53 * + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-662
SELECT ALL - col2 * - col2 + - ( CAST( - - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
3476
4577
9202

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL - col2 * - col2 + - ( CAST ( - - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
3476
4577
9202

query I rowsort
SELECT - col0 + 5 AS col2 FROM tab0 cor0
----
-10
-82
-92

query I rowsort
SELECT - + 3 + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-428
-4280
-717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT + - COUNT( * ) DIV ( + 3 ) + - MIN( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-665
SELECT + - COUNT ( * ) / ( + 3 ) + - MIN ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-666
SELECT + ( COUNT( * ) ) + 69, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-666
SELECT + ( COUNT ( * ) ) + 69, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
72
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT col1 * - - col1 + - + col2 DIV + 49 - + col2 * col1 FROM tab0
----
-100
231
2754

skipif mysql # not compatible
query I rowsort label-668
SELECT col1 * - - col1 + - + col2 / + 49 - + col2 * col1 FROM tab0
----
-100
231
2754

query II rowsort
SELECT + 34, + 13 AS col1 FROM tab0 AS cor0
----
34
13
34
13
34
13

query I rowsort
SELECT + - col0 * col0 AS col0 FROM tab1 AS cor0 WHERE 0 >= + 19 + + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL - COUNT( * ) * + - MAX( DISTINCT + 87 ) AS col0 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL - COUNT ( * ) * + - MAX ( DISTINCT + 87 ) AS col0 FROM tab0
----
261

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

query I rowsort
SELECT col2 * - + 70 + col1 FROM tab0 AS cor0
----
-3209
-679
-6929

query I rowsort
SELECT + 91 + - 48 + + + col2 + + + col0 AS col0 FROM tab1 cor0 WHERE NOT + 40 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT + col2 / - col0 + + - col1 - - + col2 + 36 / + + col2 * + + CAST( NULL AS SIGNED ) * + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT + col2 / - col0 + + - col1 - - + col2 + 36 / + + col2 * + + CAST ( NULL AS INTEGER ) * + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - 33 AS col1 FROM tab1 AS cor0
----
1551
165
462

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * 41 <> NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT 98 * + ( + col1 ) FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - - COUNT( * ) * - - 14 FROM tab2 WHERE NOT ( NULL ) IN ( col2 * - 29 * - - 46 + - col2 * 12, 54, + + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-684
SELECT - - COUNT ( * ) * - - 14 FROM tab2 WHERE NOT ( NULL ) IN ( col2 * - 29 * - - 46 + - col2 * 12, 54, + + 18 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT + 20 * - - SUM( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
-3700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-687
SELECT DISTINCT + 20 * - - SUM ( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
-3700

query I rowsort
SELECT 85 FROM tab1 WHERE NULL <= + 90
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 50 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 + 1 * + + col2 col1 FROM tab0
----
-48
-85
4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT ALL - COUNT( DISTINCT 61 ) * + + 89 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL - COUNT ( DISTINCT 61 ) * + + 89 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 64 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT ALL + + col2 - col0 DIV - - 35 AS col2 FROM tab1 AS cor0
----
57
66
95

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL + + col2 - col0 / - - 35 AS col2 FROM tab1 AS cor0
----
57
66
95

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0
----
-6

query I rowsort
SELECT - col0 * + ( + ( + col2 ) ) AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT 89 - - 68 FROM tab1
----
157
157
157

query I rowsort
SELECT + ( 69 ) * + col2 - + col1 FROM tab1
----
4066
4645
6610

onlyif mysql # aggregate syntax: 
query II rowsort label-702
SELECT - SUM( DISTINCT - col1 ) * + + COUNT( * ) * + - COUNT( * ) - + 29 AS col2, - ( - 50 ) AS col0 FROM tab1
----
-623
50

skipif mysql # not compatible
query II rowsort label-702
SELECT - SUM ( DISTINCT - col1 ) * + + COUNT ( * ) * + - COUNT ( * ) - + 29 AS col2, - ( - 50 ) AS col0 FROM tab1
----
-623
50

onlyif mysql # DIV for integer division: 
query II rowsort label-703
SELECT - col1 - + 48 AS col1, - 39 DIV - - col0 AS col1 FROM tab1
----
-53
0
-62
0
-95
0

skipif mysql # not compatible
query II rowsort label-703
SELECT - col1 - + 48 AS col1, - 39 / - - col0 AS col1 FROM tab1
----
-53
0
-62
0
-95
0

query II rowsort
SELECT col2 - 14, ( - col0 ) AS col1 FROM tab0
----
-4
-87
33
-15
85
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT 11 * + 16 - + - ( COUNT( * ) ) FROM tab2
----
179

skipif mysql # not compatible
query I rowsort label-705
SELECT 11 * + 16 - + - ( COUNT ( * ) ) FROM tab2
----
179

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-706
SELECT ALL - COUNT ( * ) + 26 col0 FROM tab1
----
23

query I rowsort
SELECT - 13 + + - col2 AS col2 FROM tab0 cor0
----
-112
-23
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT DISTINCT - MIN( - col2 ) AS col0, 51 AS col1 FROM tab0 AS cor0
----
99
51

skipif mysql # not compatible
query II rowsort label-708
SELECT DISTINCT - MIN ( - col2 ) AS col0, 51 AS col1 FROM tab0 AS cor0
----
99
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( + + col0 ) col1 FROM tab1 AS cor0 WHERE NOT - col2 <> + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL + + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL col2 AS col1, col2 * - col2 FROM tab0
----
10
-100
47
-2209
99
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT + col1 DIV + - 7 AS col1 FROM tab0 AS cor0
----
-11
-3
0

skipif mysql # not compatible
query I rowsort label-713
SELECT + col1 / + - 7 AS col1 FROM tab0 AS cor0
----
-11
-3
0

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 47 / + - col0 > - + col0
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-717
SELECT ALL - MAX ( - - col1 ) col0 FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-718
SELECT ALL - + col2 * - - col0 * 77, 22 DIV col1 AS col0 FROM tab2 AS cor0
----
-197120
0
-334950
0
-81466
0

skipif mysql # not compatible
query II rowsort label-718
SELECT ALL - + col2 * - - col0 * 77, 22 / col1 AS col0 FROM tab2 AS cor0
----
-197120
0
-334950
0
-81466
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT ALL - MAX( + CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 WHERE NULL NOT IN ( + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL - MAX ( + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 WHERE NULL NOT IN ( + - 70 )
----
NULL

query I rowsort
SELECT 37 * - col1 * - col1 FROM tab0
----
16317
242757
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-721
SELECT - 53 DIV + 58 * - COUNT( * ) * COUNT( * ) col0 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-721
SELECT - 53 / + 58 * - COUNT ( * ) * COUNT ( * ) col0 FROM tab1, tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL - 89 + + - COUNT( * ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - 89 + + - COUNT ( * ) FROM tab1
----
-92

query III rowsort
SELECT * FROM tab1 WHERE NOT + 7 + - col2 > 41 * - - 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-725
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 59 * - 90 * - col1 + - 33 + col2 = - + 16 * col0
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-728
SELECT ALL - col2 DIV - col2, 20 * col2 + - col1 col2 FROM tab0 AS cor0
----
1
179
1
1979
1
859

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-728
SELECT ALL - col2 / - col2, 20 * col2 + - col1 col2 FROM tab0 AS cor0
----
1
179
1
1979
1
859

query I rowsort
SELECT 95 * + 51 AS col1 FROM tab1 AS cor0
----
4845
4845
4845

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

onlyif mysql # aggregate syntax: 
query II rowsort label-731
SELECT + COUNT( * ) col0, + 25 AS col2 FROM tab0
----
3
25

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

query I rowsort
SELECT + col1 - - 77 * - col2 FROM tab0 AS cor0
----
-3538
-749
-7622

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 6 AND NULL
----

query II rowsort
SELECT + ( + col0 ) - ( - col2 ) * col0 AS col0, + col0 * 20 AS col1 FROM tab2 AS cor0
----
1104
920
2624
1280
4425
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - + 1 * + 55 * - 40 * - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6603

skipif mysql # not compatible
query I rowsort label-735
SELECT - + 1 * + 55 * - 40 * - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6603

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT ALL + 62 DIV + + col0 - + 3 + + 4 - ( + 5 ) AS col0 FROM tab2 AS cor0
----
-3
-4
-4

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + 62 / + + col0 - + 3 + + 4 - ( + 5 ) AS col0 FROM tab2 AS cor0
----
-3
-4
-4

query I rowsort
SELECT DISTINCT - + 41 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-2045
-2672
-3093

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

query I rowsort
SELECT col1 + - - col1 - - col2 FROM tab0
----
101
209
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 col2, 75 * ( + col1 ) FROM tab1
----
-17
1050
-17
3525
-17
375

query I rowsort
SELECT + + 9 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 47 AND + col1
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-744
SELECT COUNT( * ) DIV 24 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-744
SELECT COUNT ( * ) / 24 col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT - 14 + + 63 AS col0, - col1 * - - col2 + col0 + col1 + + col0 * - - col2 AS col1 FROM tab0 AS cor0
----
49
-3006
49
768
49
9602

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT DISTINCT ( - 14 ) AS col1, MIN( ALL 69 ) AS col1 FROM tab2 AS cor0
----
-14
69

skipif mysql # not compatible
query II rowsort label-746
SELECT DISTINCT ( - 14 ) AS col1, MIN ( ALL 69 ) AS col1 FROM tab2 AS cor0
----
-14
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - + COUNT( ALL + col2 ) * - - MAX( ALL - col0 ) * + 4 + + SUM( 5 ) FROM tab2 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-748
SELECT - + COUNT ( ALL + col2 ) * - - MAX ( ALL - col0 ) * + 4 + + SUM ( 5 ) FROM tab2 AS cor0
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT - + ( + COUNT( * ) ) FROM tab0 cor0 WHERE - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT - + ( + COUNT ( * ) ) FROM tab0 cor0 WHERE - col0 = NULL
----
0

query I rowsort
SELECT + 18 + + 49 AS col0 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
67
67
67

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2 + - + 7 )
----

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

query I rowsort
SELECT + 50 + - + col2 FROM tab0 WHERE NOT + - 60 IS NULL
----
-49
3
40

query I rowsort
SELECT ALL col1 FROM tab0 WHERE 34 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab0 WHERE 69 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 79
----

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

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

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

query I rowsort
SELECT - col1 * + 42 * + - ( - - col0 ) FROM tab0 AS cor0
----
4074
51030
76734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab1 cor0 WHERE NOT NULL <> col0
----

query I rowsort
SELECT ALL + + 2 * + col0 + - 19 AS col0 FROM tab2 AS cor0
----
109
131
73

query I rowsort
SELECT - col2 * - col0 + + col0 * + col0 * + - 36 * 49 + - col1 FROM tab2
----
-3731617
-7222861
-9918217

query I rowsort
SELECT DISTINCT + + col1 - + + col0 * - + col0 FROM tab2 AS cor0
----
2167
4173
5692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col2 col1 FROM tab1 AS cor0
----
-118
-136
-192

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

query I rowsort
SELECT ( - ( - 32 ) ) AS col0 FROM tab0 cor0
----
32
32
32

query I rowsort
SELECT + - 49 * + col2 * - col0 - - 48 FROM tab0 AS cor0
----
34593
42678
470595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * col0 col2 FROM tab2
----
1280
1500
920

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT - 77 * - SUM( + col0 ) col1 FROM tab0
----
15323

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-769
SELECT - 77 * - SUM ( + col0 ) col1 FROM tab0
----
15323

query I rowsort
SELECT DISTINCT col1 * - 75 FROM tab2
----
-3825
-5025
-5775

query I rowsort
SELECT DISTINCT + col0 * 63 * 92 FROM tab1
----
295596
492660
527436

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

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

query I rowsort
SELECT ALL 17 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT DISTINCT 66 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT 66 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT - col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( 70 / - - col0, - col0, + CAST( NULL AS SIGNED ) - 68 * + 96, - col1, + col1 * + col1, + col0 )
----

skipif mysql # not compatible
query I rowsort label-776
SELECT - col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( 70 / - - col0, - col0, + CAST ( NULL AS INTEGER ) - 68 * + 96, - col1, + col1 * + col1, + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-777
SELECT ALL + + 13 DIV + COUNT( * ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + + 13 / + COUNT ( * ) FROM tab1 cor0
----
4

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

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

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

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

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

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

query II rowsort
SELECT 24 - + + 11 AS col2, - 31 * - - 19 FROM tab1 cor0 WHERE + 21 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT SUM( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT SUM ( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 67 col1 FROM tab0 AS cor0
----
-3149
-6633
-670

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 * + - col0 FROM tab1 AS cor0
----
-14
-4896
-47
-6188
-5
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT + COUNT( * ) * MIN( + + col1 ) col2 FROM tab2
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-786
SELECT + COUNT ( * ) * MIN ( + + col1 ) col2 FROM tab2
----
153

query II rowsort
SELECT ALL + col1, 72 FROM tab2 WHERE 84 > + + col0
----
51
72
67
72
77
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + ( 82 ) + - + MIN( ALL col2 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-789
SELECT + ( 82 ) + - + MIN ( ALL col2 ) FROM tab0
----
72

query I rowsort
SELECT - col0 * col0 + - col1 + - 32 AS col0 FROM tab2
----
-2199
-4205
-5724

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT DISTINCT + col2 DIV - - col0 + + 27 AS col2 FROM tab0
----
27
28
30

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + col2 / - - col0 + + 27 AS col2 FROM tab0
----
27
28
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * col0 col2 FROM tab1
----
4800
4956
6120

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

skipif mysql # not compatible
query I rowsort label-793
SELECT + - MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT + - col2 * 28, 36 * + col0 AS col1 FROM tab1 AS cor0
----
-1652
3060
-1904
3276
-2688
1836

query I rowsort
SELECT col0 * - - 48 * + 59 AS col2 FROM tab1 AS cor0
----
144432
240720
257712

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

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

query I rowsort
SELECT ALL + col0 * + + col0 AS col2 FROM tab1 cor0
----
2601
7225
8281

query II rowsort
SELECT + col0 AS col1, 66 FROM tab1 AS cor0
----
51
66
85
66
91
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT DISTINCT + col0 * + col2 + + CAST( + col2 AS SIGNED ) * - col1 + - col2 FROM tab0 AS cor0
----
-3149
650
9405

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + col0 * + col2 + + CAST ( + col2 AS INTEGER ) * - col1 + - col2 FROM tab0 AS cor0
----
-3149
650
9405

query III rowsort
SELECT * FROM tab0 WHERE NOT + 22 NOT BETWEEN - col2 AND + col2
----
15
81
47
97
1
99

query I rowsort
SELECT - col0 + + col1 FROM tab1 WHERE NOT NULL <> ( + - 43 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-802
SELECT DISTINCT 13 DIV + COUNT( ALL 7 ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT 13 / + COUNT ( ALL 7 ) AS col1 FROM tab2
----
4

query II rowsort
SELECT DISTINCT - ( - + col0 ) * + + col2 * col1 * + 90, - 64 AS col1 FROM tab1 AS cor0
----
2256750
-64
26175240
-64
6168960
-64

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT ALL + CAST( - col1 AS SIGNED ) * col0 - - + col1 - 7 FROM tab0
----
-103
-1141
-1813

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + CAST ( - col1 AS INTEGER ) * col0 - - + col1 - 7 FROM tab0
----
-103
-1141
-1813

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT ALL + - COUNT( * ) col1, - 51 FROM tab0 WHERE NULL IS NULL
----
-3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-806
SELECT ALL + - COUNT ( * ) col1, - 51 FROM tab0 WHERE NULL IS NULL
----
-3
-51

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

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

query II rowsort
SELECT + 67 * + col1, - col0 AS col2 FROM tab0
----
1407
-87
5427
-15
67
-97

query I rowsort
SELECT ALL + col1 + - + 28 AS col0 FROM tab2
----
23
39
49

query I rowsort
SELECT ALL + col1 + + 63 * + col0 AS col0 FROM tab1 AS cor0
----
3227
5360
5780

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 5 + + col0 IS NULL
----

query I rowsort
SELECT - 4 * ( + col1 ) + 46 + 0 + - col0 FROM tab2 AS cor0
----
-204
-297
-326

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT - MAX( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT - MAX ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT + + 8 + - + COUNT( * ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT + + 8 + - + COUNT ( * ) FROM tab2 AS cor0
----
5

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 96 <> NULL
----

query I rowsort
SELECT ALL + ( + + col2 ) * 30 - + 10 * + col0 + + - col2 AS col2 FROM tab0
----
-580
1213
1901

query I rowsort
SELECT - 12 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

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

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

query I rowsort
SELECT + col2 * - 88 AS col1 FROM tab0
----
-4136
-8712
-880

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

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

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col1 FROM tab2 cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query II rowsort label-825
SELECT ALL - - MAX( ALL + col0 ) AS col2, + ( ( + + 15 ) ) FROM tab2 cor0
----
75
15

skipif mysql # not compatible
query II rowsort label-825
SELECT ALL - - MAX ( ALL + col0 ) AS col2, + ( ( + + 15 ) ) FROM tab2 cor0
----
75
15

query I rowsort
SELECT DISTINCT + col2 + - ( + + col2 ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - - col1, col2, + 48, + 61, 53, - 41 )
----

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

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

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

query I rowsort
SELECT ALL - 35 * - 75 AS col2 FROM tab2
----
2625
2625
2625

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

skipif mysql # not compatible
query I rowsort label-830
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 18 IS NULL
----
-3

query II rowsort
SELECT 58 AS col0, - col0 - - 13 + + + col0 AS col1 FROM tab1
----
58
13
58
13
58
13

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-835
SELECT + CAST ( + 17 AS INTEGER ) FROM tab0
----
17
17
17

query II rowsort
SELECT ALL col1 * - 67, col2 FROM tab0
----
-1407
10
-5427
47
-67
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - ( col1 ) col2 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT ALL - 22 + + 26 * + - col0 AS col0 FROM tab1 cor0
----
-1348
-2232
-2388

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT DISTINCT + 60 DIV + + 74 * + 10 * - - col1 DIV - col2 DIV - col2 + - col0 + - - 48 + + - 30 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-28
-46
-57

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT + 60 / + + 74 * + 10 * - - col1 / - col2 / - col2 + - col0 + - - 48 + + - 30 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-28
-46
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51
67
77

query II rowsort
SELECT 89 + - 85, ( - 18 ) AS col0 FROM tab1 AS cor0
----
4
-18
4
-18
4
-18

query I rowsort
SELECT 3 + - col2 * + 67 FROM tab1
----
-3950
-4553
-6429

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT DISTINCT - col0 DIV - 96 col2 FROM tab0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-843
SELECT DISTINCT - col0 / - 96 col2 FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( col2, - 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT - AVG ( DISTINCT - col0 ) + MAX( ALL 68 ) AS col0 FROM tab0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT - AVG ( DISTINCT - col0 ) + MAX ( ALL 68 ) AS col0 FROM tab0 WHERE col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 59 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 37 / ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-848
SELECT ALL - 4 * - CAST( NULL AS DECIMAL ) + + col2 AS col0, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-848
SELECT ALL - 4 * - CAST ( NULL AS REAL ) + + col2 AS col0, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL 58 + COUNT( * ) * - - ( 4 ) AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL 58 + COUNT ( * ) * - - ( 4 ) AS col0 FROM tab2
----
70

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

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

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

query I rowsort
SELECT DISTINCT 81 + + col1 AS col0 FROM tab1 AS cor0
----
128
86
95

query I rowsort
SELECT + col0 - - col1 * - 32 AS col0 FROM tab2 AS cor0
----
-1586
-2069
-2400

query I rowsort
SELECT col2 - - 33 AS col2 FROM tab2
----
56
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL COUNT( ALL 42 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL COUNT ( ALL 42 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 95
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < col0
----

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

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

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

skipif mysql # not compatible
query III rowsort label-859
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= + + col2 - - + col1 - - - CAST ( ( col0 ) AS INTEGER ) * 0
----

query II rowsort
SELECT - 47 AS col2, + 26 + - 28 * + + col0 AS col1 FROM tab1 cor0
----
-47
-1402
-47
-2354
-47
-2522

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT + 14 * + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT DISTINCT CAST( + - MAX( ALL - col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT CAST ( + - MAX ( ALL - col2 ) AS INTEGER ) FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 71 IS NOT NULL
----

query II rowsort
SELECT ALL - ( - - 99 ) AS col2, ( col2 ) FROM tab0 AS cor0
----
-99
10
-99
47
-99
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 99, col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-867
SELECT ALL col2 * - col2 * - + col2 + col2 - - 19 * - 22 * + + col1 + - - CAST( + 32 AS SIGNED ) FROM tab1
----
203380
294886
879012

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL col2 * - col2 * - + col2 + col2 - - 19 * - 22 * + + col1 + - - CAST ( + 32 AS INTEGER ) FROM tab1
----
203380
294886
879012

query II rowsort
SELECT ALL ( - col0 ) + + col1 + - + col1 AS col2, - col2 * + + col1 * - + col1 FROM tab0
----
-15
308367
-87
4410
-97
99

query I rowsort
SELECT DISTINCT col2 - 59 AS col2 FROM tab0 AS cor0
----
-12
-49
40

query II rowsort
SELECT DISTINCT + 42 + ( + + col1 ), col2 FROM tab0 AS cor0
----
123
47
43
99
63
10

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT 99 DIV + - 22 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-874
SELECT 99 / + - 22 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT COUNT( * ) * - 41 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-875
SELECT COUNT ( * ) * - 41 FROM tab0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-876
SELECT + CAST( - MAX( ALL 27 ) AS SIGNED ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-876
SELECT + CAST ( - MAX ( ALL 27 ) AS INTEGER ) FROM tab1
----
-27

query I rowsort
SELECT 80 * + 9 FROM tab0
----
720
720
720

query I rowsort
SELECT 87 - + col2 AS col1 FROM tab1
----
-9
19
28

query I rowsort
SELECT - col0 - + 78 AS col0 FROM tab2
----
-124
-142
-153

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 43 <> + 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 87 * 36 * + ( + - 63 ) AS col2 FROM tab2 cor0 WHERE col1 BETWEEN - col0 AND col1
----
197316
197316
197316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-884
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL = - 52 * CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = - 52 * CAST ( NULL AS INTEGER )
----
0

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

query I rowsort
SELECT ALL - ( col0 ) * + col2 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT - SUM( ALL - + ( - 45 ) ) AS col2 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-887
SELECT - SUM ( ALL - + ( - 45 ) ) AS col2 FROM tab0
----
-135

query II rowsort
SELECT ALL - 66, - col0 AS col0 FROM tab2
----
-66
-46
-66
-64
-66
-75

query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab2, tab1 cor0
----
-16

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

query I rowsort
SELECT 69 * - + col2 FROM tab1 AS cor0
----
-4071
-4692
-6624

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

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT - 7 * MIN( DISTINCT col2 ) * + + ( - + 20 ) AS col2 FROM tab0 cor0
----
1400

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT - 7 * MIN ( DISTINCT col2 ) * + + ( - + 20 ) AS col2 FROM tab0 cor0
----
1400

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT DISTINCT - 77 DIV col2 AS col2 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT - 77 / col2 AS col2 FROM tab2 AS cor0
----
-1
-3

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

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

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

query II rowsort
SELECT DISTINCT col0 AS col0, 0 * - 26 FROM tab1 AS cor0 WHERE + col2 * + + ( - 35 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT - + MAX( col2 ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-898
SELECT - + MAX ( col2 ) col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT 53 * - + col2 AS col0 FROM tab2
----
-1219
-2120
-3074

query I rowsort
SELECT - col1 * 11 + 3 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-558
-734
-844

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL COUNT( DISTINCT 61 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL COUNT ( DISTINCT 61 ) AS col2 FROM tab0
----
1

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-906
SELECT + 22 AS col1, COUNT( * ) AS col1 FROM tab2
----
22
3

skipif mysql # not compatible
query II rowsort label-906
SELECT + 22 AS col1, COUNT ( * ) AS col1 FROM tab2
----
22
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT 2 * - + COUNT( - col2 ) * + - 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-907
SELECT 2 * - + COUNT ( - col2 ) * + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - + ( - col1 ) + col0 AS col2 FROM tab0 WHERE NOT + 28 IS NULL
----
108
96
98

query I rowsort
SELECT - - 17 + + - col0 AS col1 FROM tab0 AS cor0
----
-70
-80
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL col1 + + + CAST( 22 AS SIGNED ) FROM tab1 cor0
----
27
36
69

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL col1 + + + CAST ( 22 AS INTEGER ) FROM tab1 cor0
----
27
36
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + + col2 col0 FROM tab2 AS cor0
----
103
68
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-912
SELECT DISTINCT col2 AS col2, + CAST( - 69 AS SIGNED ) FROM tab2 AS cor0
----
23
-69
40
-69
58
-69

skipif mysql # not compatible
query II rowsort label-912
SELECT DISTINCT col2 AS col2, + CAST ( - 69 AS INTEGER ) FROM tab2 AS cor0
----
23
-69
40
-69
58
-69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT ALL COUNT( DISTINCT 50 ) + - + CAST( NULL AS SIGNED ) * + 84 + SUM( col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL COUNT ( DISTINCT 50 ) + - + CAST ( NULL AS INTEGER ) * + 84 + SUM ( col1 ) FROM tab1
----
NULL

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

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

query I rowsort
SELECT ALL col1 + - 88 * - col1 FROM tab2 AS cor0
----
4539
5963
6853

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT + 11 + - 74 DIV + col2 + col0 - - - col0 FROM tab2 AS cor0
----
10
10
8

skipif mysql # not compatible
query I rowsort label-917
SELECT + 11 + - 74 / + col2 + col0 - - - col0 FROM tab2 AS cor0
----
10
10
8

query I rowsort
SELECT - col0 + + + col0 * + + col0 AS col0 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT ALL 91 + + + col1 + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-3635
-7
-98

query I rowsort
SELECT + 72 * + + col2 * - + col1 + + 29 - - - col0 FROM tab2
----
-221795
-279838
-84473

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

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

query I rowsort
SELECT ALL - col0 * - - ( col1 ) FROM tab2 cor0
----
-2346
-4928
-5025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT - 61 + + COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT col1 BETWEEN ( NULL ) AND NULL
----
-61

skipif mysql # not compatible
query I rowsort label-924
SELECT - 61 + + COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT col1 BETWEEN ( NULL ) AND NULL
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT ( + col1 ) - CAST( NULL AS SIGNED ) / + 51 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT ( + col1 ) - CAST ( NULL AS INTEGER ) / + 51 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + 72 + - 57 AS col1 FROM tab2
----
-3369
-4665
-5457

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT COUNT( * ) + 58 col0 FROM tab1
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-927
SELECT COUNT ( * ) + 58 col0 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT MIN( + col2 ) + 83 AS col1 FROM tab2
----
106

skipif mysql # not compatible
query I rowsort label-928
SELECT MIN ( + col2 ) + 83 AS col1 FROM tab2
----
106

query I rowsort
SELECT + 33 * + 23 FROM tab0 WHERE NOT NULL IS NOT NULL
----
759
759
759

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

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT MIN( col1 ) + + 92 FROM tab1 WHERE NOT NULL IN ( - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT MIN ( col1 ) + + 92 FROM tab1 WHERE NOT NULL IN ( - 88 )
----
NULL

query I rowsort
SELECT col1 * 56 - 69 AS col1 FROM tab0 WHERE NULL IS NULL
----
-13
1107
4467

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT COUNT( * ) - 64 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-933
SELECT COUNT ( * ) - 64 FROM tab2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-934
SELECT ALL + col2 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL + col2 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT 60 * + COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-935
SELECT DISTINCT 60 * + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
180

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-936
SELECT + CAST ( + 96 AS INTEGER ) col1 FROM tab2
----
96
96
96

query I rowsort
SELECT DISTINCT + ( - col0 ) * + 42 FROM tab1 WHERE NULL NOT BETWEEN - 39 AND - 99
----

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT - ( 67 ) - - ( + 97 - col0 ) DIV - 82 FROM tab2
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-938
SELECT - ( 67 ) - - ( + 97 - col0 ) / - 82 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT DISTINCT col1 * 96 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT + COUNT( * ) FROM tab0 WHERE NOT + 60 * + 4 + + ( col0 ) <= col1
----
3

skipif mysql # not compatible
query I rowsort label-941
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + 60 * + 4 + + ( col0 ) <= col1
----
3

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + - 29 FROM tab1
----
-125
-88
-97

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT ( + col2 - col2 ) NOT BETWEEN col1 + col0 AND - ( col0 ) + 50
----

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

query I rowsort
SELECT - 56 * - 14 AS col1 FROM tab2 AS cor0
----
784
784
784

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

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

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

query I rowsort
SELECT ALL + col2 + + 3 * col0 FROM tab1 WHERE NOT col1 * col1 IN ( + col2 )
----
249
314
341

query I rowsort
SELECT col2 FROM tab1 WHERE - 19 BETWEEN col1 + + col1 AND ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL - col0 + - 29 AS col2 FROM tab0
----
-116
-126
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT SUM( + col0 ) + - COUNT( * ) AS col1 FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-954
SELECT SUM ( + col0 ) + - COUNT ( * ) AS col1 FROM tab2
----
182

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-956
SELECT MAX( ALL col1 ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-956
SELECT MAX ( ALL col1 ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-958
SELECT ALL - + ( - 88 ) * + AVG ( + col2 ) - SUM( CAST( NULL AS DECIMAL ) + 7 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - + ( - 88 ) * + AVG ( + col2 ) - SUM ( CAST ( NULL AS REAL ) + 7 ) FROM tab0 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT - MIN( DISTINCT + 12 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-960
SELECT - MIN ( DISTINCT + 12 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query III rowsort label-961
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col0 NOT BETWEEN NULL AND + col0 + 15
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT DISTINCT - COUNT( * ) - - 74 AS col2 FROM tab1 cor0
----
71

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT - COUNT ( * ) - - 74 AS col2 FROM tab1 cor0
----
71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 90 <= + 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - 14 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL MIN( DISTINCT + - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL MIN ( DISTINCT + - col2 ) AS col1 FROM tab2
----
-58

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

query III rowsort
SELECT * FROM tab0 WHERE 13 + col1 BETWEEN + col2 AND - 56 - + col0 * - col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - col0 NOT IN ( 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT + 13 - + ( 1 ) - COUNT( * ) * + 91 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-970
SELECT + 13 - + ( 1 ) - COUNT ( * ) * + 91 FROM tab0
----
-261

query I rowsort
SELECT - col1 - + col0 + 21 * + col2 FROM tab1
----
1149
1290
1951

query I rowsort
SELECT - col0 - + + 27 FROM tab2
----
-102
-73
-91

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

query I rowsort
SELECT + 80 * col2 * col2 AS col1 FROM tab0
----
176720
784080
8000

query I rowsort
SELECT DISTINCT ( + col2 ) * + 91 FROM tab1
----
5369
6188
8736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-976
SELECT ALL + 70 * - CAST( col0 AS SIGNED ) col1 FROM tab0
----
-1050
-6090
-6790

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-976
SELECT ALL + 70 * - CAST ( col0 AS INTEGER ) col1 FROM tab0
----
-1050
-6090
-6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 25 ) col2 FROM tab0 WHERE NOT 12 IS NULL
----
25

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

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

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

query I rowsort
SELECT ALL + 78 + col2 * + 76 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) < ( NULL )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-984
SELECT CAST( NULL AS SIGNED ) * col2 - - col0 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT CAST ( NULL AS INTEGER ) * col2 - - col0 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 <= 94 * 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + + col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + 35 ) + col1 NOT IN ( + 13 + + col0 )
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 15 >= + 13 + ( - col2 ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col0, col0 - 14 FROM tab2 cor0
----
46
32
64
50
75
61

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

skipif mysql # not compatible
query I rowsort label-991
SELECT - ( COUNT ( * ) ) * + CAST ( - 82 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 < NULL
----
0

query II rowsort
SELECT ALL 38 * + 59 AS col1, - col0 AS col2 FROM tab2
----
2242
-46
2242
-64
2242
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT DISTINCT + 63 DIV 69 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT + 63 / 69 AS col0 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL COUNT ( * ) * - COUNT ( ALL - 73 ) FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 2 IN ( - + ( 99 ) )
----

query I rowsort
SELECT - 19 + + 76 + 61 * - + 67 FROM tab0
----
-4030
-4030
-4030

query I rowsort
SELECT DISTINCT ( + 17 ) + - 18 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT 38 + - + col2 AS col0 FROM tab2
----
-2
-20
15

query I rowsort
SELECT DISTINCT col1 * - + col1 + + 81 AS col2 FROM tab1
----
-115
-2128
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1000
SELECT - 13 * - 39 - COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT - 13 * - 39 - COUNT ( * ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 / - col0 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT 14 AS col0 FROM tab2 cor0
----
14
14
14

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

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

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

query I rowsort
SELECT ALL col1 * + - col0 - + + col1 AS col1 FROM tab2
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT DISTINCT 39 - + ( COUNT( * ) ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT 39 - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
36

query I rowsort
SELECT + + col1 + col1 AS col1 FROM tab2 cor0
----
102
134
154

query III rowsort
SELECT * FROM tab0 cor0 WHERE 24 / + - 68 > ( + col0 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT + COUNT( * ) + - - 84 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1010
SELECT + COUNT ( * ) + - - 84 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT - + MIN( - col2 ) - - COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - + MIN ( - col2 ) - - COUNT ( * ) FROM tab0 AS cor0
----
102

query I rowsort
SELECT col1 / - - col1 FROM tab2 AS cor0 WHERE NULL = + 74
----

query I rowsort
SELECT + 76 * + col0 FROM tab0 cor0 WHERE NULL IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + ( - ( 3 ) ) <= col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 49 * - col2 AS col0 FROM tab1 WHERE NOT ( NOT col1 + - - 63 NOT IN ( + 3 ) )
----
-2891
-3332
-4704

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 19 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - ( - + COUNT( * ) ) - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( - col1 ) BETWEEN ( NULL ) AND col2
----
4

skipif mysql # not compatible
query I rowsort label-1017
SELECT - ( - + COUNT ( * ) ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( - col1 ) BETWEEN ( NULL ) AND col2
----
4

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
64

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 96 * - + col1 * 46 NOT BETWEEN - 60 * + col2 / - + col1 * col1 + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - 2 * + col0 FROM tab1 AS cor0
----
-135
-165
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT + - col0 + 1 - - - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-137
-64
-89

skipif mysql # not compatible
query I rowsort label-1022
SELECT + - col0 + 1 - - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-137
-64
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT - MIN( ALL - 31 ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT - MIN ( ALL - 31 ) AS col1 FROM tab2 AS cor0
----
31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT + col1 * + col0 DIV - col0 + - 20 + + - col1 FROM tab0 AS cor0
----
-182
-22
-62

skipif mysql # not compatible
query I rowsort label-1025
SELECT + col1 * + col0 / - col0 + - 20 + + - col1 FROM tab0 AS cor0
----
-182
-22
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 * - col2 col0 FROM tab0 AS cor0
----
-4324
-9108
-920

query I rowsort
SELECT ALL + col1 * 30 FROM tab0 AS cor0
----
2430
30
630

query II rowsort
SELECT ALL + - col1 * - 42, - col0 AS col0 FROM tab0 AS cor0
----
3402
-15
42
-97
882
-87

query I rowsort
SELECT DISTINCT - 31 FROM tab2 WHERE ( ( - col2 ) * + col1 ) BETWEEN - col2 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT + 12, COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
12
0

skipif mysql # not compatible
query II rowsort label-1031
SELECT + 12, COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
12
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 6 IS NULL OR ( ( + col0 ) >= col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT - 18 * - MIN( DISTINCT 73 ) FROM tab2 WHERE NULL IS NULL
----
1314

skipif mysql # not compatible
query I rowsort label-1033
SELECT - 18 * - MIN ( DISTINCT 73 ) FROM tab2 WHERE NULL IS NULL
----
1314

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT DISTINCT 48 + + - ( - col0 ) DIV - col2 col0 FROM tab2
----
46
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1035
SELECT DISTINCT 48 + + - ( - col0 ) / - col2 col0 FROM tab2
----
46
47

query I rowsort
SELECT DISTINCT 45 + + - col1 + - + col0 / col2 + + 25 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT + MIN( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( NULL ) > + 30 / + - col1 + - + 69 + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT + MIN ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( NULL ) > + 30 / + - col1 + - + 69 + + 55
----
NULL

query II rowsort
SELECT DISTINCT - 82 - col0 * + 96, + col0 AS col0 FROM tab1 AS cor0
----
-4978
51
-8242
85
-8818
91

query I rowsort
SELECT DISTINCT + col2 - + + col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1041
SELECT ALL + col0 DIV + col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
0
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-1041
SELECT ALL + col0 / + col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
0
NULL
1
NULL
1
NULL

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( col1 > - col1 )
----
59
68
96

query I rowsort
SELECT DISTINCT + - 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT 57 * + COUNT( * ) FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-1044
SELECT 57 * + COUNT ( * ) FROM tab0
----
171

query I rowsort
SELECT ALL + 79 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT DISTINCT - col0 DIV + + 99 + - + col1 AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT - col0 / + + 99 + - + col1 AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( + col1 ) * col1 * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL + - COUNT( * ) * - + 60 - - + COUNT( * ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + - COUNT ( * ) * - + 60 - - + COUNT ( * ) FROM tab2 AS cor0
----
183

query I rowsort
SELECT - + 38 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 / col1 AND NULL
----

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

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

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

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

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

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

query I rowsort
SELECT - + col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * 98 IS NULL
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND ( - 2 + ( - + 54 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - MAX( DISTINCT - col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1057
SELECT - MAX ( DISTINCT - col0 ) col2 FROM tab0
----
15

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT + - col1 DIV + col0 + + 13 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
13
13
13

skipif mysql # not compatible
query I rowsort label-1059
SELECT + - col1 / + col0 + + 13 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1060
SELECT ALL 83 AS col2, - MIN( - col1 ) + + - 61 AS col0 FROM tab0
----
83
20

skipif mysql # not compatible
query II rowsort label-1060
SELECT ALL 83 AS col2, - MIN ( - col1 ) + + - 61 AS col0 FROM tab0
----
83
20

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

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col2, 61 - + + 96 FROM tab0
----
10
-35
47
-35
99
-35

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col0 * - - col0 + - + 29 * + col2 * - + col2 = col2 * - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1066
SELECT MAX( ALL - 76 ) AS col2, COUNT( * ) AS col1 FROM tab2
----
-76
3

skipif mysql # not compatible
query II rowsort label-1066
SELECT MAX ( ALL - 76 ) AS col2, COUNT ( * ) AS col1 FROM tab2
----
-76
3

query II rowsort
SELECT ALL 12, + 36 AS col0 FROM tab2 cor0
----
12
36
12
36
12
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1068
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1069
SELECT DISTINCT + col1 + + col0 FROM tab2 AS cor0 WHERE NOT col1 * + CAST( NULL AS SIGNED ) >= - + col0
----

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + col1 + + col0 FROM tab2 AS cor0 WHERE NOT col1 * + CAST ( NULL AS INTEGER ) >= - + col0
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - + 16 ) + - - 50 col1 FROM tab1 AS cor0
----
34
34
34

query II rowsort
SELECT - col2 + - + 42 AS col2, + ( col1 ) FROM tab0 AS cor0
----
-141
1
-52
21
-89
81

query I rowsort
SELECT col0 + + col0 * + col2 * + 99 AS col1 FROM tab1
----
484755
496570
612703

query I rowsort
SELECT DISTINCT 37 / + col1 AS col0 FROM tab1 WHERE NOT + 3 + + col1 < NULL
----

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

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

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

query I rowsort
SELECT DISTINCT ( + 89 ) * 59 + + col1 AS col1 FROM tab1 cor0
----
5256
5265
5298

query I rowsort
SELECT + + 32 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - 83 AND - - col2
----

query II rowsort
SELECT ALL col2 - 6, + col0 FROM tab2 AS cor0
----
17
46
34
64
52
75

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

query I rowsort
SELECT ALL - ( + col0 ) * col0 * + - col0 FROM tab1 AS cor0
----
132651
614125
753571

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT ALL - 70 DIV col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - 70 / col0 FROM tab0 AS cor0
----
-4
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT 85 DIV + 53 col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1086
SELECT 85 / + 53 col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT + - col1 * + col0 * - col2 DIV - - col2 AS col1 FROM tab2 cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-1087
SELECT + - col1 * + col0 * - col2 / - - col2 AS col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - - 83 AS col2 FROM tab2 AS cor0
----
83

query I rowsort
SELECT ALL 72 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > 20
----

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

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

query I rowsort
SELECT ( - ( 69 ) ) FROM tab2
----
-69
-69
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 80 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT 41 * + ( 36 ) AS col1 FROM tab1
----
1476
1476
1476

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 78
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT ALL - CAST( + SUM( - - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-223

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT - + 30 DIV + 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1097
SELECT - + 30 / + 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT + col1 + - 35 - - + ( 65 ) + + + col0 * + col1 * - - col1 FROM tab2 AS cor0
----
119727
336772
379563

query I rowsort
SELECT col1 + + 13 + ( - ( 88 ) ) AS col1 FROM tab2 AS cor0
----
-24
-8
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1101
SELECT 6 AS col2, + MAX( ALL col1 ) + - + ( + - MAX( DISTINCT + ( + col1 ) ) ) + + + 47 FROM tab2 AS cor0 WHERE + 89 * col0 IN ( col0 )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-1101
SELECT 6 AS col2, + MAX ( ALL col1 ) + - + ( + - MAX ( DISTINCT + ( + col1 ) ) ) + + + 47 FROM tab2 AS cor0 WHERE + 89 * col0 IN ( col0 )
----
6
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1103
SELECT ALL - CAST( NULL AS DECIMAL ) + + MAX( ( 47 ) ) - - COUNT( * ) * - COUNT( * ) * - 96 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - CAST ( NULL AS REAL ) + + MAX ( ( 47 ) ) - - COUNT ( * ) * - COUNT ( * ) * - 96 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1104
SELECT - col2 DIV 97, - 78 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
-78
0
-78
0
-78

skipif mysql # not compatible
query II rowsort label-1104
SELECT - col2 / 97, - 78 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
-78
0
-78
0
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1105
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + CAST( + - col2 AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + CAST ( + - col2 AS INTEGER ) IS NULL
----
1
21
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - 38 * + 59 AS col0 FROM tab2
----
46
-2242
64
-2242
75
-2242

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1108
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, - col0 * + - 50 * - - col1 FROM tab2
----
NULL
117300
NULL
246400
NULL
251250

skipif mysql # not compatible
query II rowsort label-1108
SELECT ALL + CAST ( NULL AS REAL ) AS col1, - col0 * + - 50 * - - col1 FROM tab2
----
NULL
117300
NULL
246400
NULL
251250

onlyif mysql # aggregate syntax: 
query II rowsort label-1109
SELECT 11 AS col2, ( + MAX( ALL - col0 ) ) FROM tab1
----
11
-51

skipif mysql # not compatible
query II rowsort label-1109
SELECT 11 AS col2, ( + MAX ( ALL - col0 ) ) FROM tab1
----
11
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1110
SELECT ALL col0 + - + ( - + col0 ) DIV - CAST( + col2 AS SIGNED ) FROM tab0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL col0 + - + ( - + col0 ) / - CAST ( + col2 AS INTEGER ) FROM tab0
----
15
79
97

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

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

query I rowsort
SELECT DISTINCT col1 + - + col0 + 84 * + col0 + - - col1 FROM tab0
----
1407
7263
8053

query III rowsort
SELECT * FROM tab2 WHERE + col0 * 68 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT DISTINCT col0 + col1 * ( + - col2 ), + col1 AS col1 FROM tab2
----
-1127
51
-3016
77
-3811
67

query I rowsort
SELECT - 43 - 55 AS col0 FROM tab1 cor0
----
-98
-98
-98

query I rowsort
SELECT ALL 15 + - col1 * - col1 FROM tab1 AS cor0
----
211
2224
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1118
SELECT col0 + col2 DIV + ( + col2 ) + + col2 AS col1 FROM tab2 AS cor0
----
105
134
70

skipif mysql # not compatible
query I rowsort label-1118
SELECT col0 + col2 / + ( + col2 ) + + col2 AS col1 FROM tab2 AS cor0
----
105
134
70

query II rowsort
SELECT ALL + col1 - col1 AS col0, col0 FROM tab0 cor0
----
0
15
0
87
0
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 / col1 BETWEEN - + col1 * col1 AND NULL
----

query I rowsort
SELECT ALL - col0 + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-174
-194
-30

query I rowsort
SELECT ALL - + 49 - - col2 + - col2 + col2 FROM tab1 AS cor0
----
10
19
47

query I rowsort
SELECT ALL - - col1 - - 24 * + 97 * 1 * + col2 FROM tab1 AS cor0
----
137357
158351
223502

query I rowsort
SELECT DISTINCT ( + - 49 ) * - + col1 FROM tab0
----
1029
3969
49

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

query I rowsort
SELECT ALL + col0 * + 70 AS col0 FROM tab2
----
3220
4480
5250

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 42 <> col2
----

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

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

query I rowsort
SELECT + + ( - 99 ) FROM tab2 cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - - col0 ), + 81 col1 FROM tab0 AS cor0
----
-15
81
-87
81
-97
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT - COUNT( - 2 ) FROM tab2 WHERE NOT NULL <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT - COUNT ( - 2 ) FROM tab2 WHERE NOT NULL <= - col1
----
0

query I rowsort
SELECT ALL + 25 * - + ( col2 ) AS col1 FROM tab1
----
-1475
-1700
-2400

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE 71 + - col1 NOT IN ( col0 / - - 55 )
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT MAX( ALL - 7 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-1136
SELECT MAX ( ALL - 7 ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT DISTINCT - COUNT( * ) col2, + 26 AS col0 FROM tab2
----
-3
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1137
SELECT DISTINCT - COUNT ( * ) col2, + 26 AS col0 FROM tab2
----
-3
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL - MIN( ALL - 93 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL - MIN ( ALL - 93 ) FROM tab2 AS cor0
----
93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT DISTINCT + + col0 DIV + 82 + - + 8 + + 55 AS col2 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT + + col0 / + 82 + - + 8 + + 55 AS col2 FROM tab2 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1141
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - CAST( NULL AS SIGNED ) * - col1 AND 48
----
97
1
99

skipif mysql # not compatible
query III rowsort label-1141
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - CAST ( NULL AS INTEGER ) * - col1 AND 48
----
97
1
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 60
----

query I rowsort
SELECT DISTINCT - + 64 + - 41 FROM tab0 AS cor0
----
-105

query II rowsort
SELECT - + ( + col1 ) + + + ( + col2 ), col1 FROM tab2 AS cor0
----
-28
51
-37
77
-9
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) = - 61
----

query I rowsort
SELECT + + col0 + + - col2 AS col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + COUNT( * ) + 73 col0 FROM tab0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1147
SELECT + COUNT ( * ) + 73 col0 FROM tab0
----
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 28 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1149
SELECT DISTINCT 17 AS col0 FROM tab0 WHERE NOT - - col0 * col2 + col2 - - col0 + + col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
17

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT 17 AS col0 FROM tab0 WHERE NOT - - col0 * col2 + col2 - - col0 + + col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 AS col2, - 78 col2 FROM tab2
----
9
-78
9
-78
9
-78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col0 + - + col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT 39 * col0 * + 18 AS col2 FROM tab1
----
35802
59670
63882

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL ( + - 72 ) * - COUNT( * ) + + 81 + ( + COUNT( * ) ) col2 FROM tab0
----
300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1155
SELECT ALL ( + - 72 ) * - COUNT ( * ) + + 81 + ( + COUNT ( * ) ) col2 FROM tab0
----
300

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT ALL - 64 * + col2 DIV - col2 + - + 67 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - 64 * + col2 / - col2 + - + 67 FROM tab1 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col0 * + col1 + col2 col2 FROM tab0 AS cor0
----
-1121
-1807
101

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= 89
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT - col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-1161
SELECT - col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
4896
5015
6188

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL + SUM ( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
-156

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1164
SELECT + 31 AS col2, - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
31
-3

skipif mysql # not compatible
query II rowsort label-1164
SELECT + 31 AS col2, - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
31
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL MIN( - - 52 ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL MIN ( - - 52 ) FROM tab1 AS cor0
----
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - - col2 AS col0, + 73 col1 FROM tab0 AS cor0
----
-100
73
-2209
73
-9801
73

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + col0 AND ( NULL )
----
-58

query I rowsort
SELECT DISTINCT col0 * - col2 * + + 90 AS col1 FROM tab2
----
-230400
-391500
-95220

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 43 * - col2 BETWEEN NULL AND - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + - 31 FROM tab0 cor0 WHERE NOT - col0 IS NULL
----
-10
-30
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col0 FROM tab1 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
-4896
-5015
-6188

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

query I rowsort
SELECT - col2 + + 53 AS col1 FROM tab1
----
-15
-43
-6

query I rowsort
SELECT DISTINCT + 42 - col0 FROM tab2 AS cor0
----
-22
-33
-4

query II rowsort
SELECT ALL - - col1 * 74 + + 80 * col1 * ( + + col1 ) AS col2, col0 AS col0 FROM tab0 AS cor0
----
154
97
36834
87
530874
15

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 / - - col1 AND 92 + col1
----
0

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 / - - col1 AND 92 + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT DISTINCT + 48 DIV col2 AS col0 FROM tab2 WHERE NOT + ( - col0 ) - + + col1 IS NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT + 48 / col2 AS col0 FROM tab2 WHERE NOT + ( - col0 ) - + + col1 IS NULL
----
0
1
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col2 = - col0 - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT - COUNT( * ) * + 17 - + 63 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-1184
SELECT - COUNT ( * ) * + 17 - + 63 FROM tab2
----
-114

query I rowsort
SELECT + 85 * + col1 - col1 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT ALL col2 / + ( - 35 ) * + col0 FROM tab0 WHERE NOT ( NOT - 4 < NULL )
----

query I rowsort
SELECT 45 - - 30 - + col0 FROM tab0
----
-12
-22
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT + COUNT( * ) + + COUNT( * ) + - + COUNT( * ) * 65 AS col1 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-1188
SELECT + COUNT ( * ) + + COUNT ( * ) + - + COUNT ( * ) * 65 AS col1 FROM tab2
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT + 51 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1189
SELECT + 51 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-153

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1191
SELECT 66 / 32 * MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT 66 / 32 * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT + col0 >= + - col0
----

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1196
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 * + col1 * + + 96 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1196
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 * + col1 * + + 96 AND - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / + - 96 = - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1198
SELECT DISTINCT - ( + col0 ) DIV CAST( - + 67 AS SIGNED ) - col0 + + 53 FROM tab2
----
-11
-21
7

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT - ( + col0 ) / CAST ( - + 67 AS INTEGER ) - col0 + + 53 FROM tab2
----
-11
-21
7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT + COUNT( * ) + + 71 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-1201
SELECT + COUNT ( * ) + + 71 FROM tab2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1202
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) * + 72 + - 94 FROM tab2
----
-2038

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) * + 72 + - 94 FROM tab2
----
-2038

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL + + 47 * + COUNT( * ) * - - MIN( - col1 ) AS col1 FROM tab1 cor0
----
-6627

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + + 47 * + COUNT ( * ) * - - MIN ( - col1 ) AS col1 FROM tab1 cor0
----
-6627

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT ALL + col1 DIV - - 70 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL + col1 / - - 70 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col2 * + 88 * + col2 FROM tab1 AS cor0
----
306328
406912
811008

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + 96 + 88 NOT BETWEEN + - col1 * - col2 AND - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 21 * + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 569b3f23c089d36d31b3948fa7290eba

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT ALL - col1 * - col2 + col1 DIV - 34 FROM tab0 AS cor0
----
210
3805
99

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - col1 * - col2 + col1 / - 34 FROM tab0 AS cor0
----
210
3805
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1212
SELECT + CAST( NULL AS SIGNED ) + 38 AS col0, col0 * + 3 AS col2 FROM tab0 AS cor0
----
NULL
261
NULL
291
NULL
45

skipif mysql # not compatible
query II rowsort label-1212
SELECT + CAST ( NULL AS INTEGER ) + 38 AS col0, col0 * + 3 AS col2 FROM tab0 AS cor0
----
NULL
261
NULL
291
NULL
45

query II rowsort
SELECT + + col2 * - 66 + + col2 AS col2, + col1 FROM tab2 AS cor0
----
-1495
51
-2600
77
-3770
67

query I rowsort
SELECT ALL - 61 - col1 AS col0 FROM tab1 AS cor0
----
-108
-66
-75

query I rowsort
SELECT - - col2 + 39 FROM tab0 AS cor0
----
138
49
86

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT DISTINCT - 33 DIV - col0 - col1 + + col2 FROM tab0
----
-11
-32
98

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - 33 / - col0 - col1 + + col2 FROM tab0
----
-11
-32
98

query I rowsort
SELECT col0 + 37 FROM tab0
----
124
134
52

query III rowsort
SELECT * FROM tab1 WHERE + 21 + + ( - - ( col1 ) ) - 18 - + 71 IS NULL
----

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

query II rowsort
SELECT col0, + 43 FROM tab0
----
15
43
87
43
97
43

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

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

query I rowsort
SELECT DISTINCT + col2 * - + 98 * col1 + + - col1 AS col1 FROM tab1 WHERE NULL BETWEEN - col1 * - 98 * + col0 AND - 54
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 53 AND NULL
----

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

query I rowsort
SELECT + ( - - col1 ) + - col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT + col2 DIV - ( - 28 ) - + + 18 + - 24 + col2 DIV - 54 - - col2 * + - col0 FROM tab1 AS cor0
----
-4936
-5056
-6229

skipif mysql # not compatible
query I rowsort label-1228
SELECT + col2 / - ( - 28 ) - + + 18 + - 24 + col2 / - 54 - - col2 * + - col0 FROM tab1 AS cor0
----
-4936
-5056
-6229

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT COUNT( * ) col0 FROM tab0 cor0 WHERE NULL > + col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL + SUM( - 42 ) * COUNT( + col1 ) FROM tab0 AS cor0
----
-378

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + SUM ( - 42 ) * COUNT ( + col1 ) FROM tab0 AS cor0
----
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1231
SELECT ALL col2 + + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - 98 * 33 NOT IN ( - - col2 + 61 + 73 + + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL col2 + + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - 98 * 33 NOT IN ( - - col2 + 61 + 73 + + ( + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1232
SELECT DISTINCT - - COUNT( - + 52 ) * + ( + 72 ) AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
216
NULL

skipif mysql # not compatible
query II rowsort label-1232
SELECT DISTINCT - - COUNT ( - + 52 ) * + ( + 72 ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
216
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1233
SELECT DISTINCT COUNT( * ) AS col2, + 48 AS col0 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-1233
SELECT DISTINCT COUNT ( * ) AS col2, + 48 AS col0 FROM tab2
----
3
48

query I rowsort
SELECT ALL + + 85 - - col2 + col2 + 77 * - col1 * - 49 + - col2 - col2 / - + 15 * + + 61 FROM tab0 WHERE - col2 * col1 - + - 67 * - + col1 BETWEEN NULL AND - col2
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NULL > col2
----

query I rowsort
SELECT DISTINCT + ( + col2 ) + + - col1 AS col1 FROM tab2
----
-28
-37
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 * + - col1 col0 FROM tab1
----
110
2300
247

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT COUNT( * ) + - - 6 * 71 col2 FROM tab1 AS cor0
----
429

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1239
SELECT COUNT ( * ) + - - 6 * 71 col2 FROM tab1 AS cor0
----
429

query I rowsort
SELECT + - 43 + - col2 AS col0 FROM tab0 AS cor0
----
-142
-53
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT 99 + SUM( DISTINCT + ( + 44 ) ) * - + 96 col1 FROM tab0
----
-4125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1242
SELECT 99 + SUM ( DISTINCT + ( + 44 ) ) * - + 96 col1 FROM tab0
----
-4125

query II rowsort
SELECT ALL col2, + col1 * - + col0 AS col2 FROM tab1
----
59
-425
68
-4277
96
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ( + 23 ) + - COUNT( * ) col1 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1244
SELECT ( + 23 ) + - COUNT ( * ) col1 FROM tab0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT + 85 + COUNT( * ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-1245
SELECT + 85 + COUNT ( * ) FROM tab2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1246
SELECT + col2 AS col1 FROM tab1 WHERE + col2 + - 99 + - CAST( NULL AS SIGNED ) + - col1 <= + col1 + + 31 + - col2 - - 12
----

skipif mysql # not compatible
query I rowsort label-1246
SELECT + col2 AS col1 FROM tab1 WHERE + col2 + - 99 + - CAST ( NULL AS INTEGER ) + - col1 <= + col1 + + 31 + - col2 - - 12
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1248
SELECT MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT col2 AS col2, 68 + - + col1 FROM tab0 AS cor0
----
10
47
47
-13
99
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL + col1 - - 96 / - - CAST( NULL AS SIGNED ) + - ( + col1 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + col1 - - 96 / - - CAST ( NULL AS INTEGER ) + - ( + col1 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL 76 - SUM( - + ( - + col1 ) ) + + 60 col0 FROM tab0 cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1251
SELECT ALL 76 - SUM ( - + ( - + col1 ) ) + + 60 col0 FROM tab0 cor0
----
33

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

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - col0 - - 70 + + - col1 + 99 * + col1 * + - col0 * - + col2 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - col2 * - + 53 / col2 + + col0 - - col2 - - 37 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 24 * - 28 AS col1 FROM tab1
----
672
672
672

query I rowsort
SELECT + col1 * - 37 AS col2 FROM tab1
----
-1739
-185
-518

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

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT 65 + - col0 IS NULL
----
14
47
5

query II rowsort
SELECT col2 * + col2, col2 FROM tab2
----
1600
40
3364
58
529
23

onlyif mysql # DIV for integer division: 
query II rowsort label-1258
SELECT ALL - col1 * - - 78, 30 DIV - - col0 AS col1 FROM tab2
----
-3978
0
-5226
0
-6006
0

skipif mysql # not compatible
query II rowsort label-1258
SELECT ALL - col1 * - - 78, 30 / - - col0 AS col1 FROM tab2
----
-3978
0
-5226
0
-6006
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT 45 DIV - col0 * 73 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1259
SELECT 45 / - col0 * 73 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT + SUM( + + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1260
SELECT + SUM ( + + col2 ) AS col1 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT ALL + - 88 DIV col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL + - 88 / col1 FROM tab1 AS cor0
----
-1
-17
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1262
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN 43 AND col0
----

skipif mysql # not compatible
query III rowsort label-1262
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN 43 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT DISTINCT col1 DIV + 72 * - col0 * 21 + + + 71 - - col0 + + col2 * - - col0 * + col0 AS col2 FROM tab1 AS cor0
----
249818
426431
563270

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT col1 / + 72 * - col0 * 21 + + + 71 - - col0 + + col2 * - - col0 * + col0 AS col2 FROM tab1 AS cor0
----
249818
426431
563270

query I rowsort
SELECT ALL - + ( - 3 ) AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT - + 26 * + + col1 + - ( - - col1 ) - - + 66 AS col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + ( + ( 3 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 / col0 < + col0 * + 26
----
0

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 / col0 < + col0 * + 26
----
0

query II rowsort
SELECT - col0 + - - 61 AS col1, + col2 FROM tab2
----
-14
58
-3
40
15
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 4 col0 FROM tab1
----
18
51
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1270
SELECT COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT ALL CAST( + SUM( - col2 ) AS SIGNED ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL CAST ( + SUM ( - col2 ) AS INTEGER ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT ALL + col1 + + - col1 - - col1 + col2 * + 83 - + + col2 AS col0 FROM tab1
----
4843
5623
7886

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT - col1 DIV + + col0 + - col1 col1 FROM tab2
----
-52
-67
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1273
SELECT - col1 / + + col0 + - col1 col1 FROM tab2
----
-52
-67
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT COUNT( DISTINCT - 50 ) + - - 48 AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-1274
SELECT COUNT ( DISTINCT - 50 ) + - - 48 AS col2 FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL - ( + COUNT( * ) ) + - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - ( + COUNT ( * ) ) + - + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT - + MAX( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1276
SELECT - + MAX ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
59

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

skipif mysql # not compatible
query I rowsort label-1277
SELECT col1 * 15 * + CAST ( NULL AS INTEGER ) * - 64 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE col0 * 10 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - COUNT( * ) - 53 AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-1279
SELECT - COUNT ( * ) - 53 AS col0 FROM tab2
----
-56

query I rowsort
SELECT - col0 - + 46 FROM tab0
----
-133
-143
-61

query II rowsort
SELECT + - 26 + col2 + - + col0 AS col1, 30 FROM tab1 AS cor0
----
-49
30
-52
30
19
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1282
SELECT - COUNT( * ) AS col2, 48 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
48

skipif mysql # not compatible
query II rowsort label-1282
SELECT - COUNT ( * ) AS col2, 48 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
48

query I rowsort
SELECT + + ( + 64 ) AS col2 FROM tab0 AS cor0
----
64
64
64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT DISTINCT - 32 * - 95, COUNT( * ) AS col1 FROM tab0
----
3040
3

skipif mysql # not compatible
query II rowsort label-1285
SELECT DISTINCT - 32 * - 95, COUNT ( * ) AS col1 FROM tab0
----
3040
3

query II rowsort
SELECT - + 62 * + 19 AS col2, col2 * - 36 FROM tab1 AS cor0
----
-1178
-2124
-1178
-2448
-1178
-3456

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1288
SELECT DISTINCT 5 + - COUNT( * ) - - 93 AS col2, - 69 FROM tab2
----
95
-69

skipif mysql # not compatible
query II rowsort label-1288
SELECT DISTINCT 5 + - COUNT ( * ) - - 93 AS col2, - 69 FROM tab2
----
95
-69

query I rowsort
SELECT col1 + - - 16 * ( - 98 ) FROM tab0 AS cor0
----
-1487
-1547
-1567

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

query II rowsort
SELECT + - ( + col0 ) AS col2, col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT - 9 * - col2 * - col2 * - - col0 - + - 70 FROM tab2 AS cor0
----
-218936
-2270630
-921530

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

query II rowsort
SELECT - col2, col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT ALL ( + CAST( + col2 AS SIGNED ) ) + - col1 AS col0 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL ( + CAST ( + col2 AS INTEGER ) ) + - col1 AS col0 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - 23 * + col2 AS col2 FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT - col1 - 16 AS col2 FROM tab1
----
-21
-30
-63

query I rowsort
SELECT ALL col2 + 74 FROM tab0
----
121
173
84

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

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

query I rowsort
SELECT ALL - col1 * - col2 * + 85 AS col1 FROM tab2 AS cor0
----
261800
330310
99705

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 2 + + col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT + COUNT( * ) DIV 99 + - - 46 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1302
SELECT + COUNT ( * ) / 99 + - - 46 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col2 col1, col2 + + col0 col0 FROM tab2
----
116
133
46
69
80
104

query I rowsort
SELECT DISTINCT - ( 9 ) + 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < + 11
----

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

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

query I rowsort
SELECT col1 * 35 * + col0 FROM tab2
----
172480
175875
82110

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT + 95 DIV + 53 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 95 / + 53 AS col1 FROM tab0
----
1
1
1

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1309
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE CAST( + - col0 AS SIGNED ) NOT BETWEEN ( + + 11 ) AND - 25 / col2 + + col0 + CAST( NULL AS DECIMAL ) + + col2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) NOT BETWEEN ( + + 11 ) AND - 25 / col2 + + col0 + CAST ( NULL AS REAL ) + + col2
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + - ( - 12 ) AS col1, + ( col0 ) + + col1 AS col0 FROM tab2 cor0
----
12
141
12
142
12
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT ALL col0 DIV - - ( col1 ) AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL col0 / - - ( col1 ) AS col2 FROM tab1
----
1
17
3

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

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

query I rowsort
SELECT ALL + col2 * 3 AS col2 FROM tab1
----
177
204
288

query I rowsort
SELECT 26 * + + 53 * + col2 AS col2 FROM tab2
----
31694
55120
79924

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - ( ( - + MAX( col2 ) ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1315
SELECT - ( ( - + MAX ( col2 ) ) ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT ALL - + COUNT( * ) * - 27 AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL - + COUNT ( * ) * - 27 AS col2 FROM tab0 cor0
----
81

query I rowsort
SELECT - 1 * - col0 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT DISTINCT col0 DIV 74 + - col2 FROM tab0
----
-47
-9
-98

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT col0 / 74 + - col2 FROM tab0
----
-47
-9
-98

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

query II rowsort
SELECT DISTINCT col2 + + col1 AS col2, col0 FROM tab0
----
100
97
128
15
31
87

query I rowsort
SELECT DISTINCT col0 * + 9 + + col2 * + col0 FROM tab1
----
5355
5780
7007

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

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

query I rowsort
SELECT DISTINCT col2 * 56 * col1 FROM tab1 AS cor0
----
16520
178976
75264

query I rowsort
SELECT ALL - col2 + + col0 + 49 AS col0 FROM tab2 AS cor0
----
66
72
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT + - col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT + - col0 / - col2 AS col1 FROM tab0 AS cor0
----
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT - 98 + - - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-23
-34
-52

skipif mysql # not compatible
query I rowsort label-1326
SELECT - 98 + - - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-23
-34
-52

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

query I rowsort
SELECT - col1 + 20 FROM tab1
----
-27
15
6

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE - col2 NOT BETWEEN col1 / - col1 AND - + col2
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + ( + MIN( DISTINCT col2 ) ) + - - 62 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-1331
SELECT + ( + MIN ( DISTINCT col2 ) ) + - - 62 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL - COUNT( * ) * + COUNT( * ) + MIN( ALL + col2 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + MIN ( ALL + col2 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT COUNT( * ) + COUNT( - + 91 ) + 36 AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-1333
SELECT COUNT ( * ) + COUNT ( - + 91 ) + 36 AS col0 FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT - SUM( + 57 ) FROM tab2 WHERE 94 IS NOT NULL
----
-171

skipif mysql # not compatible
query I rowsort label-1334
SELECT - SUM ( + 57 ) FROM tab2 WHERE 94 IS NOT NULL
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + + COUNT( + - col1 ) - - 73 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
73

skipif mysql # not compatible
query I rowsort label-1335
SELECT + + COUNT ( + - col1 ) - - 73 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT 57 - - SUM( - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-1337
SELECT 57 - - SUM ( - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-170

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

query II rowsort
SELECT DISTINCT 63 AS col2, col2 FROM tab1
----
63
59
63
68
63
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT DISTINCT + SUM( 4 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT + SUM ( 4 ) FROM tab0 AS cor0
----
12

query II rowsort
SELECT + col0 AS col1, + 18 FROM tab1 AS cor0
----
51
18
85
18
91
18

query I rowsort
SELECT 79 * - col1 FROM tab2 AS cor0
----
-4029
-5293
-6083

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

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

query II rowsort
SELECT ALL + col0, col2 * - col1 / ( + col1 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query II rowsort
SELECT col1, col2 + - - col1 AS col0 FROM tab1 AS cor0
----
14
110
47
115
5
64

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

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

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

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

query I rowsort
SELECT DISTINCT + - 34 - 83 * + 79 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - - col0, col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + col0 * + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 * + col0 + + col2 + + - 94 AS col1 FROM tab0 AS cor0
----
-189
-527
6615

query I rowsort
SELECT col2 * + + col1 + - col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT 82 + + - col2 FROM tab0
----
-17
35
72

query I rowsort
SELECT + 10 + col0 AS col2 FROM tab2
----
56
74
85

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

query I rowsort
SELECT ALL - col0 * + 48 * - - col2 + + ( 58 ) AS col0 FROM tab0 AS cor0
----
-33782
-41702
-460886

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN - col1 AND + - col1
----

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

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

query II rowsort
SELECT ALL col0 AS col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT DISTINCT 17 * - - MIN( DISTINCT col1 ) AS col1 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT 17 * - - MIN ( DISTINCT col1 ) AS col1 FROM tab0
----
17

query I rowsort
SELECT DISTINCT + col1 + - 58 AS col0 FROM tab1
----
-11
-44
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT col0 * 75 - - - col0 - - CAST( - 0 AS SIGNED ) AS col1 FROM tab0
----
1110
6438
7178

skipif mysql # not compatible
query I rowsort label-1364
SELECT col0 * 75 - - - col0 - - CAST ( - 0 AS INTEGER ) AS col1 FROM tab0
----
1110
6438
7178

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT ALL + 54 + + COUNT( * ) AS col1, + COUNT( * ) FROM tab0
----
57
3

skipif mysql # not compatible
query II rowsort label-1365
SELECT ALL + 54 + + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0
----
57
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + COUNT( * ) * - - MAX( DISTINCT - + 75 ) + - 61 FROM tab2 AS cor0
----
-286

skipif mysql # not compatible
query I rowsort label-1366
SELECT + COUNT ( * ) * - - MAX ( DISTINCT - + 75 ) + - 61 FROM tab2 AS cor0
----
-286

query I rowsort
SELECT + ( + + col0 ) + - 13 AS col2 FROM tab0 AS cor0
----
2
74
84

query I rowsort
SELECT DISTINCT - - col2 * col0 + - col2 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT - 15 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-6

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - 15 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT + col2 * CAST( NULL AS SIGNED ) * + col1 * + - 4 * - + 79 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT + col2 * CAST ( NULL AS INTEGER ) * + col1 * + - 4 * - + 79 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 50 FROM tab1 cor0 WHERE NOT col2 >= + ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT + col2 * col2 DIV - col2 AS col1 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1372
SELECT + col2 * col2 / - col2 AS col1 FROM tab0 cor0
----
-10
-47
-99

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT + col0 * - col0 BETWEEN NULL AND + - ( + + 10 ) * + + 77 * col1 * + 97
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + + col0 / + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 / + + col0 * col2 + col0, + col1, - 82, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1376
SELECT * FROM tab1 AS cor0 WHERE NOT 21 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1376
SELECT * FROM tab1 AS cor0 WHERE NOT 21 * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - - 90 FROM tab1 cor0
----
90
90
90

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE ( + ( 86 ) ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL + col1 * - - 10 AS col2 FROM tab0 AS cor0
----
10
210
810

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT - 13 * - SUM( ALL + + col2 ) FROM tab0 AS cor0
----
2028

skipif mysql # not compatible
query I rowsort label-1381
SELECT - 13 * - SUM ( ALL + + col2 ) FROM tab0 AS cor0
----
2028

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + ( + MAX( DISTINCT col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1383
SELECT + ( + MAX ( DISTINCT col1 ) ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1384
SELECT DISTINCT - CAST( 58 AS SIGNED ) AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT - CAST ( 58 AS INTEGER ) AS col2 FROM tab0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT DISTINCT 70 * - MIN( DISTINCT + 54 ) AS col2 FROM tab2 WHERE NOT col2 - + 60 NOT BETWEEN + 73 AND + col1 + col1 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT 70 * - MIN ( DISTINCT + 54 ) AS col2 FROM tab2 WHERE NOT col2 - + 60 NOT BETWEEN + 73 AND + col1 + col1 * + col1
----
NULL

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

query I rowsort
SELECT col0 FROM tab0 WHERE + 60 NOT BETWEEN 48 AND ( + col2 )
----
15
87

query I rowsort
SELECT + 42 FROM tab2 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT DISTINCT - ( 79 ) * - col0 FROM tab0
----
1185
6873
7663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1390
SELECT DISTINCT ( + 59 ) DIV - ( MAX( ALL 33 ) ) - COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT ( + 59 ) / - ( MAX ( ALL 33 ) ) - COUNT ( * ) FROM tab2
----
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 13 ) <= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT - col0 / + 94 AS col0 FROM tab2
----
0

query I rowsort
SELECT ( + 56 ) * col0 FROM tab2
----
2576
3584
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT + MIN( + 48 ) + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + MIN ( + 48 ) + COUNT ( * ) FROM tab2
----
51

query I rowsort
SELECT 60 * col0 AS col2 FROM tab0
----
5220
5820
900

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + col1 - - col2 AS col2 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT 66 * - col2 FROM tab1
----
-3894
-4488
-6336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1399
SELECT DISTINCT MIN( DISTINCT - col0 ) DIV - COUNT( * ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT MIN ( DISTINCT - col0 ) / - COUNT ( * ) AS col2 FROM tab1
----
30

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

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

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab0 WHERE NOT - col2 * col2 + - col2 IN ( - col0 )
----
1
21
81

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

query I rowsort
SELECT DISTINCT + 84 * + 17 FROM tab1 WHERE NOT - ( col2 ) > NULL
----

query I rowsort
SELECT + ( - col1 ) * col1 AS col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-1406
SELECT DISTINCT - 7 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT - 7 / + col2 FROM tab1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1408
SELECT DISTINCT * FROM tab1 WHERE NOT 43 + - CAST( NULL AS SIGNED ) * col1 > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1408
SELECT DISTINCT * FROM tab1 WHERE NOT 43 + - CAST ( NULL AS INTEGER ) * col1 > ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT SUM( + 56 ) * COUNT( * ) + + 26 AS col0 FROM tab1 WHERE + 36 / - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT SUM ( + 56 ) * COUNT ( * ) + + 26 AS col0 FROM tab1 WHERE + 36 / - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL col1 * + col0 FROM tab2 WHERE NOT - 77 IN ( col1 + col2 )
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col1 * + 16 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT 89 * 21 - + 12 FROM tab2
----
1857
1857
1857

query I rowsort
SELECT 99 * col0 AS col2 FROM tab0 cor0
----
1485
8613
9603

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT 94 + col0 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1 WHERE NOT ( + col1 + + 78 ) IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT 75 * - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 28 * + col2 FROM tab0 AS cor0
----
-1316
-2772
-280

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT + 46 DIV 40 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1425
SELECT + 46 / 40 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - 58 * - col2 AS col1 FROM tab1 cor0
----
-3422
-3944
-5568

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1428
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) - 54 * + 67 IN ( - 71 )
----

skipif mysql # not compatible
query III rowsort label-1428
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS REAL ) - 54 * + 67 IN ( - 71 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT - CAST( CAST( + SUM( - col2 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1429
SELECT - CAST ( CAST ( + SUM ( - col2 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT col0 + col0 AS col2 FROM tab2 WHERE + col1 <= ( - 49 )
----

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

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

query I rowsort
SELECT ALL 3 * 23 * 72 + - col0 FROM tab1
----
4877
4883
4917

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL MAX( 75 ) AS col1 FROM tab1 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL MAX ( 75 ) AS col1 FROM tab1 WHERE ( NULL ) <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * 20 col1 FROM tab0
----
-1980
-4200
-76140

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT + 15 * - col0 DIV col0 + - col1 AS col0 FROM tab0 AS cor0
----
-16
-36
-96

skipif mysql # not compatible
query I rowsort label-1436
SELECT + 15 * - col0 / col0 + - col1 AS col0 FROM tab0 AS cor0
----
-16
-36
-96

query I rowsort
SELECT ( - - col0 ) + - 87 AS col1 FROM tab1 AS cor0
----
-2
-36
4

query I rowsort
SELECT ( ( col1 ) ) + - 4 AS col1 FROM tab1
----
1
10
43

query I rowsort
SELECT ALL - 7 + 50 * + 77 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 045990d66cd63225861487949a0cc0bd

query I rowsort
SELECT + 72 * - 40 * - + col2 AS col1 FROM tab2
----
115200
167040
66240

query I rowsort
SELECT DISTINCT + + 60 - col1 FROM tab2 AS cor0
----
-17
-7
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1442
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) / + ( - col2 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1442
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) / + ( - col2 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 80 * + + ( + col1 ) * 1 + - col0 AS col2 FROM tab0 AS cor0
----
-17
1593
6465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, - col1 + + 74 * - col1 col2 FROM tab0 AS cor0
----
1
-75
21
-1575
81
-6075

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

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

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

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

query I rowsort
SELECT ALL - 7 * - 48 - + 83 * col1 AS col1 FROM tab1 cor0
----
-3565
-79
-826

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT COUNT( * ) AS col2 FROM tab2 WHERE ( 71 ) IS NOT NULL AND - 52 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1450
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE ( 71 ) IS NOT NULL AND - 52 IS NULL
----
0

query I rowsort
SELECT - 91 - + - col0 FROM tab2
----
-16
-27
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1452
SELECT DISTINCT - col0 * col0, col0 * + - 23 + CAST( 83 + + col1 DIV - col0 AS SIGNED ) col1 FROM tab2
----
-2116
-976
-4096
-1390
-5625
-1642

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1452
SELECT DISTINCT - col0 * col0, col0 * + - 23 + CAST ( 83 + + col1 / - col0 AS INTEGER ) col1 FROM tab2
----
-2116
-976
-4096
-1390
-5625
-1642

query III rowsort
SELECT * FROM tab0 WHERE NOT 12 + - 56 BETWEEN col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL - COUNT( * ) * - 24 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL - COUNT ( * ) * - 24 FROM tab1
----
72

query I rowsort
SELECT col2 * + - col2 * col2 FROM tab1
----
-205379
-314432
-884736

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT - 25 / + - col1 AS col2 FROM tab0
----
0
1
25

query II rowsort
SELECT col1 * - col1, col1 FROM tab1
----
-196
14
-2209
47
-25
5

query I rowsort
SELECT DISTINCT + 59 * 30 AS col2 FROM tab2
----
1770

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1459
SELECT CAST( NULL AS DECIMAL ) * - col2, + ( CAST( NULL AS DECIMAL ) ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1459
SELECT CAST ( NULL AS REAL ) * - col2, + ( CAST ( NULL AS REAL ) ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT - 22 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - col0 ) + + 45 * + col2 ) > ( - 46 / + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT ( - SUM( + - col0 ) ), + SUM( + 48 ) AS col1 FROM tab0
----
199
144

skipif mysql # not compatible
query II rowsort label-1463
SELECT ( - SUM ( + - col0 ) ), + SUM ( + 48 ) AS col1 FROM tab0
----
199
144

query I rowsort
SELECT 24 * + - col0 AS col1 FROM tab2
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL 57 * - ( - - COUNT( * ) ) AS col2 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL 57 * - ( - - COUNT ( * ) ) AS col2 FROM tab2
----
-171

query I rowsort
SELECT DISTINCT + 49 * - col2 AS col0 FROM tab1
----
-2891
-3332
-4704

query I rowsort
SELECT ALL + 63 * - + col1 + col1 * + col0 FROM tab0
----
-3888
34
504

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1472
SELECT ALL + col2 * + + 86 DIV col1 * CAST( col0 DIV col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
0
160
825858

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL + col2 * + + 86 / col1 * CAST ( col0 / col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
0
160
825858

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + - - 12 col0 FROM tab2 AS cor0
----
1185
3092
3898

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT DISTINCT 2 DIV - 31 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT 2 / - 31 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( ( col1 ) NOT BETWEEN ( 89 ) AND - ( col2 ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT DISTINCT + SUM( DISTINCT + col1 ) * SUM( - col0 ) DIV COUNT( - ( col0 ) ) * 11 + + COUNT( * ) AS col0 FROM tab0
----
-75149

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT + SUM ( DISTINCT + col1 ) * SUM ( - col0 ) / COUNT ( - ( col0 ) ) * 11 + + COUNT ( * ) AS col0 FROM tab0
----
-75149

query I rowsort
SELECT 42 + col0 AS col1 FROM tab1
----
127
133
93

query I rowsort
SELECT ALL + col2 + 71 + + + col2 * col1 FROM tab1
----
1511
3335
425

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT DISTINCT + 26 + COUNT( * ) * + + MAX( - col2 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT + 26 + COUNT ( * ) * + + MAX ( - col2 ) FROM tab2
----
-43

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT - COUNT( * ) * - COUNT( * ) * + 16 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1484
SELECT - COUNT ( * ) * - COUNT ( * ) * + 16 FROM tab1 AS cor0
----
144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT - 29 * - COUNT( * ) col0 FROM tab0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1486
SELECT - 29 * - COUNT ( * ) col0 FROM tab0
----
87

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL - 87 + + MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - 87 + + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT ALL + - col1 - - + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL + - col1 - - + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT + COUNT( * ) - + ( + ( 63 ) ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + COUNT ( * ) - + ( + ( 63 ) ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT - col1 * + 41 * - - 9 + + - 93 + + - col0 AS col1 FROM tab2 AS cor0
----
-18958
-24891
-28570

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT - - 21 DIV + col1 + - + col2 col1 FROM tab1 AS cor0
----
-55
-68
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1493
SELECT - - 21 / + col1 + - + col2 col1 FROM tab1 AS cor0
----
-55
-68
-95

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

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

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

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 15, ( 16 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT - MAX( - 64 ) AS col0 FROM tab0 cor0
----
64

skipif mysql # not compatible
query I rowsort label-1497
SELECT - MAX ( - 64 ) AS col0 FROM tab0 cor0
----
64

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1499
SELECT DISTINCT - col0 * + + 0 * + 58 AS col2, CAST( 39 AS SIGNED ) FROM tab0
----
0
39

skipif mysql # not compatible
query II rowsort label-1499
SELECT DISTINCT - col0 * + + 0 * + 58 AS col2, CAST ( 39 AS INTEGER ) FROM tab0
----
0
39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = col0 / col1
----

query II rowsort
SELECT ALL col2 AS col1, col1 AS col2 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT + 51 * MAX( ( + 36 ) ) AS col2 FROM tab0 AS cor0
----
1836

skipif mysql # not compatible
query I rowsort label-1502
SELECT + 51 * MAX ( ( + 36 ) ) AS col2 FROM tab0 AS cor0
----
1836

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL + 79 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + 79 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-237

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT + ( - + COUNT( col0 ) ) + 19 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT + ( - + COUNT ( col0 ) ) + 19 FROM tab1 AS cor0
----
16

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

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

query I rowsort
SELECT + - 88 + col1 + + col1 * - col2 FROM tab1 AS cor0
----
-1418
-3237
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-1509
SELECT ALL + col2 * col2 DIV - + 26 col2 FROM tab2 AS cor0
----
-129
-20
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1509
SELECT ALL + col2 * col2 / - + 26 col2 FROM tab2 AS cor0
----
-129
-20
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT DISTINCT + - col0 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + - col0 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= col1 + + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1513
SELECT DISTINCT col0 DIV col0 * + col0 AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT col0 / col0 * + col0 AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE - ( - - col0 ) + - 51 NOT BETWEEN + + col0 AND NULL
----
1
21
81

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1517
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + - col0 * - col0 AS col2 FROM tab2
----
-262144
-421875
-97336

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + - col0 * - col0 AS col2 FROM tab2
----
-262144
-421875
-97336

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) < col1
----

query I rowsort
SELECT + 51 + + col2 + + 36 FROM tab2 AS cor0
----
110
127
145

query I rowsort
SELECT + col0 + - col2 + - ( + 76 ) FROM tab2 AS cor0
----
-52
-53
-59

query I rowsort
SELECT ALL - ( col0 ) * col2 - col2 AS col1 FROM tab0 AS cor0
----
-752
-880
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1522
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 34 + - col2 AS col0, col2 col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1522
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 34 + - col2 AS col0, col2 col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT + 29 DIV col1 FROM tab1 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-1523
SELECT + 29 / col1 FROM tab1 AS cor0
----
0
2
5

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

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

query II rowsort
SELECT + col2 AS col1, col0 + + + col1 FROM tab1 AS cor0
----
59
90
68
138
96
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1527
SELECT DISTINCT - col1, + 15 * - + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1527
SELECT DISTINCT - col1, + 15 * - + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL - + SUM( DISTINCT - 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - + SUM ( DISTINCT - 69 ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL + col2 + + col2 FROM tab1 AS cor0 WHERE NOT col2 * - 17 IS NULL
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col2 col0, 53 * + + col2 + col2 * - + col0 col2 FROM tab0
----
100
-340
2209
1786
9801
-4356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL - CAST( - 32 AS SIGNED ) FROM tab2
----
32
32
32

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - CAST ( - 32 AS INTEGER ) FROM tab2
----
32
32
32

query I rowsort
SELECT + col0 * - - col0 AS col1 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT - col1 + col0 FROM tab1 WHERE NOT + 70 + - + ( - CAST( NULL AS SIGNED ) ) - col0 IS NOT NULL
----
37
44
80

skipif mysql # not compatible
query I rowsort label-1534
SELECT - col1 + col0 FROM tab1 WHERE NOT + 70 + - + ( - CAST ( NULL AS INTEGER ) ) - col0 IS NOT NULL
----
37
44
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT + COUNT( * ) * + + 33 * - - ( + - COUNT( * ) ) AS col0 FROM tab2 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1536
SELECT + COUNT ( * ) * + + 33 * - - ( + - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-297

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

skipif mysql # not compatible
query III rowsort label-1537
SELECT * FROM tab1 WHERE NOT ( + - col0 * - CAST ( NULL AS REAL ) + 62 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL 4 + + + COUNT( * ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL 4 + + + COUNT ( * ) AS col0 FROM tab2
----
7

query I rowsort
SELECT + 96 * + + col1 FROM tab2 AS cor0
----
4896
6432
7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * 79 col0 FROM tab2 AS cor0 WHERE ( + col0 NOT BETWEEN + col2 AND NULL )
----

query I rowsort
SELECT ALL 82 * + 33 FROM tab2 AS cor0
----
2706
2706
2706

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

query I rowsort
SELECT ALL - col1 * 45 AS col2 FROM tab2 cor0
----
-2295
-3015
-3465

query I rowsort
SELECT + col1 * + 76 + + col2 FROM tab2
----
3899
5150
5892

query I rowsort
SELECT ALL 33 / col0 FROM tab2 WHERE col0 > NULL
----

query I rowsort
SELECT - 51 + + col2 AS col1 FROM tab1
----
17
45
8

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

query I rowsort
SELECT + col0 + 51 AS col2 FROM tab2
----
115
126
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL - 17 + MIN( 70 ) AS col2 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - 17 + MIN ( 70 ) AS col2 FROM tab0
----
53

query I rowsort
SELECT ALL - 1 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN + col0 AND - + col0 * col0 + - - ( 93 ) + + + col1
----

query I rowsort
SELECT DISTINCT + - 27 + - col1 FROM tab0 AS cor0
----
-108
-28
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT + col1 - - - 54 DIV + 22 FROM tab2 AS cor0
----
49
65
75

skipif mysql # not compatible
query I rowsort label-1552
SELECT + col1 - - - 54 / + 22 FROM tab2 AS cor0
----
49
65
75

query I rowsort
SELECT + - col0 - - - col1 + - 34 AS col0 FROM tab0 AS cor0
----
-130
-132
-142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT + COUNT( * ) * - COUNT( DISTINCT col0 ) * + SUM( ALL 62 ) AS col2 FROM tab2
----
-1674

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + COUNT ( * ) * - COUNT ( DISTINCT col0 ) * + SUM ( ALL 62 ) AS col2 FROM tab2
----
-1674

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1557
SELECT - CAST( + col0 AS SIGNED ) FROM tab0 cor0 WHERE NOT + 80 * 57 * + col1 * + CAST( + col0 AS DECIMAL ) < ( + 68 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1557
SELECT - CAST ( + col0 AS INTEGER ) FROM tab0 cor0 WHERE NOT + 80 * 57 * + col1 * + CAST ( + col0 AS REAL ) < ( + 68 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT - MIN( - + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1558
SELECT - MIN ( - + col2 ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT - col1 DIV + 60 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT - col1 / + 60 FROM tab0 AS cor0
----
-1
0
0

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

skipif mysql # not compatible
query I rowsort label-1560
SELECT - ( + MIN ( ( - 96 ) ) ) FROM tab2 AS cor0
----
96

query II rowsort
SELECT ALL 25, col1 * - col1 AS col2 FROM tab1 AS cor0
----
25
-196
25
-2209
25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT + COUNT( * ) * - MAX( ALL + col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + COUNT ( * ) * - MAX ( ALL + col1 ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT DISTINCT - MAX( ALL - ( - + col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT - MAX ( ALL - ( - + col2 ) ) FROM tab2
----
-58

query II rowsort
SELECT DISTINCT + 74 AS col2, + 22 FROM tab0
----
74
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1565
SELECT DISTINCT - + 39 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - + 39 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
13

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

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

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT - - COUNT ( * ) + 37 FROM tab2 AS cor0 WHERE NOT - 53 IS NOT NULL
----
37

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1570
SELECT DISTINCT + CAST( - CAST( + col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + CAST ( - CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1572
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( + - col1 AS SIGNED ) * + col2 * - - 28 + 40 BETWEEN NULL AND - - col0 + + 46 + - col2
----

skipif mysql # not compatible
query III rowsort label-1572
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( + - col1 AS INTEGER ) * + col2 * - - 28 + 40 BETWEEN NULL AND - - col0 + + 46 + - col2
----

query I rowsort
SELECT + 79 * + col0 FROM tab1 AS cor0
----
4029
6715
7189

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1576
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col2 * + col1 IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1576
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col2 * + col1 IN ( + CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT ALL col1 AS col2, 0 * 24 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT DISTINCT 34 + - col2 AS col0 FROM tab0
----
-13
-65
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1579
SELECT * FROM tab0 WHERE NULL < 76 / - col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1579
SELECT * FROM tab0 WHERE NULL < 76 / - col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1580
SELECT + col2 - - col0 DIV + 31 AS col0, + ( + - col2 ) col2 FROM tab2
----
24
-23
42
-40
60
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1580
SELECT + col2 - - col0 / + 31 AS col0, + ( + - col2 ) col2 FROM tab2
----
24
-23
42
-40
60
-58

query II rowsort
SELECT - col0 + + col1 * col0 + + col1 AS col2, col0 AS col0 FROM tab0
----
1
97
1281
15
1761
87

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

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

query I rowsort
SELECT ALL - col2 + + + 59 AS col2 FROM tab0 AS cor0
----
-40
12
49

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

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

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

query II rowsort
SELECT - col0 + + 89 * col1, - col1 AS col2 FROM tab0 AS cor0
----
-8
-1
1782
-21
7194
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT + 87 FROM tab1 AS cor0 WHERE - ( - CAST( NULL AS SIGNED ) ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1587
SELECT + 87 FROM tab1 AS cor0 WHERE - ( - CAST ( NULL AS INTEGER ) ) * col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT DISTINCT 32 * + - COUNT( + col1 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT 32 * + - COUNT ( + col1 ) AS col0 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT DISTINCT + 10 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT + 10 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1592
SELECT 51, + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
51
0

skipif mysql # not compatible
query II rowsort label-1592
SELECT 51, + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
51
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 cor0 WHERE NOT ( NOT + + 5 >= - 78 * ( - 74 ) )
----

query II rowsort
SELECT - + ( 89 ) AS col0, col0 FROM tab0 AS cor0
----
-89
15
-89
87
-89
97

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab2 cor0
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-1596
SELECT DISTINCT - 50 * - col0 DIV - col0, - col1 + + + col1 * col1 + - + 97 * + + 69 AS col1 FROM tab1
----
-50
-4531
-50
-6511
-50
-6673

skipif mysql # not compatible
query II rowsort label-1596
SELECT DISTINCT - 50 * - col0 / - col0, - col1 + + + col1 * col1 + - + 97 * + + 69 AS col1 FROM tab1
----
-50
-4531
-50
-6511
-50
-6673

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL ( + + COUNT( * ) ) * 11 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL ( + + COUNT ( * ) ) * 11 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT COUNT( + - 28 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1598
SELECT COUNT ( + - 28 ) FROM tab0
----
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * - col2 * + col2 col0 FROM tab1
----
-129075
-17490
-217419

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT - 4 * + + SUM( - 13 ) AS col1 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - 4 * + + SUM ( - 13 ) AS col1 FROM tab1
----
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 BETWEEN + col0 * col0 * - - col1 + + + col0 AND - + col2
----

query I rowsort
SELECT DISTINCT - 28 - + 3 AS col2 FROM tab2 AS cor0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) * + - COUNT( * ) FROM tab1 AS cor0 WHERE + 49 - - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) FROM tab1 AS cor0 WHERE + 49 - - - col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1605
SELECT col2 DIV 4 + - - col0 AS col2, 53 AS col0 FROM tab1
----
108
53
75
53
99
53

skipif mysql # not compatible
query II rowsort label-1605
SELECT col2 / 4 + - - col0 AS col2, 53 AS col0 FROM tab1
----
108
53
75
53
99
53

query II rowsort
SELECT + 77 + - - col1 AS col2, 22 FROM tab2
----
128
22
144
22
154
22

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

skipif mysql # not compatible
query III rowsort label-1607
SELECT DISTINCT * FROM tab0 WHERE NULL = - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * col0 FROM tab2 WHERE NULL IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 * col2 col0, col0 / - 1 + - + col2 + - col1 + - - 7 / - col1 AS col2 FROM tab0 AS cor0 WHERE 97 + + + 18 BETWEEN - col0 + + 14 AND col1
----

query II rowsort
SELECT DISTINCT ( - + col0 ) AS col2, 61 + + col0 AS col1 FROM tab2 AS cor0
----
-46
107
-64
125
-75
136

onlyif mysql # aggregate syntax: 
query II rowsort label-1612
SELECT DISTINCT + 10 AS col0, COUNT( * ) * + MIN( ALL - + 18 ) * - + 55 + + 43 FROM tab1
----
10
3013

skipif mysql # not compatible
query II rowsort label-1612
SELECT DISTINCT + 10 AS col0, COUNT ( * ) * + MIN ( ALL - + 18 ) * - + 55 + + 43 FROM tab1
----
10
3013

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT + SUM( 4 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT + SUM ( 4 ) FROM tab2 AS cor0
----
12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, 95 * - col1 col0 FROM tab1 AS cor0
----
51
-1330
85
-475
91
-4465

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 26 * ( - col0 ) * - + 55 / + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT DISTINCT MIN( DISTINCT + - 9 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT MIN ( DISTINCT + - 9 ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col2 * - col1 * - col2 + + - col1 * - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
185490
2541
9802

query I rowsort
SELECT - col1 * + - 83 AS col0 FROM tab0 AS cor0
----
1743
6723
83

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

query I rowsort
SELECT ALL col0 * - + 46 AS col1 FROM tab0 AS cor0
----
-4002
-4462
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT - 39 * MIN( DISTINCT - col0 ) FROM tab2
----
2925

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - 39 * MIN ( DISTINCT - col0 ) FROM tab2
----
2925

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

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

query I rowsort
SELECT ALL col0 * - - col2 * - 84 AS col0 FROM tab1
----
-411264
-421260
-519792

query I rowsort
SELECT ( - 16 ) FROM tab1, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ALL COUNT( * ) + + COUNT( DISTINCT - 48 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL COUNT ( * ) + + COUNT ( DISTINCT - 48 ) FROM tab2
----
4

query I rowsort
SELECT 71 * - + col1 FROM tab2
----
-3621
-4757
-5467

query I rowsort
SELECT ALL - col1 * - - col0 * + 10 FROM tab0 AS cor0
----
-12150
-18270
-970

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + - 42 + + 22 AS col2 FROM tab2
----
-71
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT col0 FROM tab0 WHERE + col0 DIV + 52 IN ( + 80 * - ( + col1 ), + col1 )
----
97

skipif mysql # not compatible
query I rowsort label-1634
SELECT col0 FROM tab0 WHERE + col0 / + 52 IN ( + 80 * - ( + col1 ), + col1 )
----
97

query II rowsort
SELECT ALL + col0, - col0 * + - 43 FROM tab1
----
51
2193
85
3655
91
3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 66 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 66 AS col1 FROM tab0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + 47 + 10 * col1 FROM tab1 AS cor0
----
187
517
97

query I rowsort
SELECT ALL col2 - 74 FROM tab2 AS cor0
----
-16
-34
-51

query I rowsort
SELECT 96 AS col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col1 AND + col2
----

query I rowsort
SELECT 13 - - + col2 FROM tab1
----
109
72
81

query III rowsort
SELECT * FROM tab2 WHERE + + 46 IN ( + - 28 * + 58, col0 * + 49, - col1 + - - col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT 21 - COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1644
SELECT 21 - COUNT ( * ) FROM tab2
----
18

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

query I rowsort
SELECT + 96 * - col2 - + ( + 80 ) AS col1 FROM tab2
----
-2288
-3920
-5648

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + 80 col2 FROM tab0
----
15
80
87
80
97
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1649
SELECT DISTINCT col1 + + 89 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT col1 + + 89 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT - col1 + + + 43 AS col2 FROM tab1
----
-4
29
38

query I rowsort
SELECT col1 * + 16 + col2 AS col1 FROM tab1
----
139
320
820

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT 67, COUNT( * ) AS col2 FROM tab2
----
67
3

skipif mysql # not compatible
query II rowsort label-1652
SELECT 67, COUNT ( * ) AS col2 FROM tab2
----
67
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL - MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1654
SELECT DISTINCT COUNT( * ), + 35 AS col2 FROM tab2 cor0
----
3
35

skipif mysql # not compatible
query II rowsort label-1654
SELECT DISTINCT COUNT ( * ), + 35 AS col2 FROM tab2 cor0
----
3
35

query I rowsort
SELECT - 85 + + 36 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + + SUM( - ( + 10 ) ) FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1657
SELECT + + SUM ( - ( + 10 ) ) FROM tab1 cor0
----
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT 46 DIV + SUM( ( + ( + 88 ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT 46 / + SUM ( ( + ( + 88 ) ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT ALL - ( - 23 ) DIV - col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - ( - 23 ) / - col2 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT + COUNT( + col0 ) AS col1, 40 - 78 FROM tab0 AS cor0
----
3
-38

skipif mysql # not compatible
query II rowsort label-1661
SELECT + COUNT ( + col0 ) AS col1, 40 - 78 FROM tab0 AS cor0
----
3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL 57 * + + MAX( + - 4 ) AS col0 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL 57 * + + MAX ( + - 4 ) AS col0 FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT MAX( DISTINCT - - col0 ) * + - COUNT( * ) + - - COUNT( col1 ) AS col1 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-1663
SELECT MAX ( DISTINCT - - col0 ) * + - COUNT ( * ) + - - COUNT ( col1 ) AS col1 FROM tab1
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT col0 + CAST( + 47 AS SIGNED ) - + + 21 AS col1 FROM tab0
----
113
123
41

skipif mysql # not compatible
query I rowsort label-1664
SELECT col0 + CAST ( + 47 AS INTEGER ) - + + 21 AS col1 FROM tab0
----
113
123
41

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1665
SELECT CAST ( NULL AS INTEGER ) + 21 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 55 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + - ( + - col1 ) AS col1 FROM tab2
----
141
142
97

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

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

query I rowsort
SELECT ALL - 83 * + - 42 FROM tab0 AS cor0
----
3486
3486
3486

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 31 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT - 63 DIV + 26 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1671
SELECT - 63 / + 26 FROM tab1
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1672
SELECT + CAST( NULL AS DECIMAL ) - + SUM( + - 30 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT + CAST ( NULL AS REAL ) - + SUM ( + - 30 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 0 + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

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

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

query I rowsort
SELECT - col1 + + + 40 * - + 2 * - col2 AS col0 FROM tab0 AS cor0
----
3679
779
7919

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT - + MAX( ALL col0 ) FROM tab0 AS cor0 WHERE NULL > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT - + MAX ( ALL col0 ) FROM tab0 AS cor0 WHERE NULL > col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL - ( - - col2 ) * - col2 - CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
3486
4671
9230

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - ( - - col2 ) * - col2 - CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
3486
4671
9230

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( col1, - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL SUM( ALL col1 ) - - + 16 FROM tab0 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL SUM ( ALL col1 ) - - + 16 FROM tab0 AS cor0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT ALL 68 DIV - - 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL 68 / - - 75 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col2 IS NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT ( + + SUM( DISTINCT - 94 ) ) FROM tab0, tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT ( + + SUM ( DISTINCT - 94 ) ) FROM tab0, tab1 AS cor0
----
-94

query I rowsort
SELECT ALL - 79 * col2 AS col0 FROM tab0 AS cor0
----
-3713
-7821
-790

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

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

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

skipif mysql # not compatible
query III rowsort label-1686
SELECT * FROM tab0 AS cor0 WHERE NOT - 39 * - col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - + 45
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1687
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1687
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT - col0 * + col0 + 82 + - col0 * + col2 + - + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-10035
-3189
-6715

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT - ( MIN( ALL + + col1 ) ) * COUNT( * ) * + 40 FROM tab1 AS cor0
----
-600

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT - ( MIN ( ALL + + col1 ) ) * COUNT ( * ) * + 40 FROM tab1 AS cor0
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - SUM( - - 62 ) FROM tab2 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1690
SELECT - SUM ( - - 62 ) FROM tab2 cor0
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1691
SELECT + CAST( NULL AS SIGNED ) col0, MAX( - + ( - - col0 ) ) FROM tab2 AS cor0
----
NULL
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1691
SELECT + CAST ( NULL AS INTEGER ) col0, MAX ( - + ( - - col0 ) ) FROM tab2 AS cor0
----
NULL
-46

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

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

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

query II rowsort
SELECT + + col2 AS col1, - col2 * - 60 - + col0 AS col2 FROM tab2 AS cor0
----
23
1334
40
2336
58
3405

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

query I rowsort
SELECT DISTINCT 42 + - 5 FROM tab2
----
37

query I rowsort
SELECT DISTINCT - col1 + - - col1 FROM tab1
----
0

query I rowsort
SELECT + 27 + - + col0 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 8 * col2 AS col1 FROM tab2
----
-184
-320
-464

query I rowsort
SELECT ALL - col0 + - + ( + 51 ) AS col1 FROM tab0
----
-138
-148
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT COUNT( ALL - col1 ) + + 99 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT COUNT ( ALL - col1 ) + + 99 FROM tab0 AS cor0
----
102

query I rowsort
SELECT col1 * + 9 * - col2 AS col0 FROM tab1
----
-12096
-2655
-28764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT ALL - 57 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - 57 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - 67 AS col2, + 8 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
18 values hashing to e7ac63508840668777ca24c986aad42f

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT MAX( ALL col2 ) * COUNT( * ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
174
3

skipif mysql # not compatible
query II rowsort label-1706
SELECT MAX ( ALL col2 ) * COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
174
3

query I rowsort
SELECT + col0 * + col2 - col1 FROM tab0 AS cor0
----
624
849
9602

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

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NULL IS NULL
----
24
24
24

query I rowsort
SELECT DISTINCT - - col0 - + + col2 AS col1 FROM tab2 AS cor0
----
17
23
24

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT DISTINCT + 32 DIV - col2 col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1712
SELECT DISTINCT + 32 / - col2 col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT - col1 * + + col1 * + 32 FROM tab2 cor0
----
-143648
-189728
-83232

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + col0 * + 16 * + col1
----

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

query I rowsort
SELECT col2 * + 7 AS col0 FROM tab1
----
413
476
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * + 56 col1 FROM tab1
----
3472
3472
3472

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

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

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

query I rowsort
SELECT col0 * + 27 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 77 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + 12 * - col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND - - 97
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT COUNT( * ) * + 39 FROM tab0 cor0
----
117

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT COUNT ( * ) * + 39 FROM tab0 cor0
----
117

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

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

query I rowsort
SELECT DISTINCT col2 + - 93 FROM tab2 AS cor0
----
-35
-53
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1729
SELECT COUNT( * ) DIV COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-1729
SELECT COUNT ( * ) / COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT SUM( + - 9 ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT SUM ( + - 9 ) AS col2 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT + col2 + + col2 + - col2 - - col2 * + - col1 FROM tab1
----
-1248
-236
-3128

query II rowsort
SELECT 66 + + 31 AS col1, col2 * ( + 74 ) FROM tab1
----
97
4366
97
5032
97
7104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1733
SELECT DISTINCT 6 + - - CAST( NULL AS DECIMAL ) * - - MAX( + 33 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1733
SELECT DISTINCT 6 + - - CAST ( NULL AS REAL ) * - - MAX ( + 33 ) col1 FROM tab1
----
NULL

query I rowsort
SELECT - - 8 AS col1 FROM tab0 WHERE NULL BETWEEN col1 AND - ( - - col1 )
----

query I rowsort
SELECT ALL + col1 + + 50 FROM tab0
----
131
51
71

query I rowsort
SELECT DISTINCT + 23 + + col2 FROM tab1 WHERE NOT NULL > - + col2 + col0 * - col2 + + - col2 - + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT COUNT( * ) FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1737
SELECT COUNT ( * ) FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT + col0 + - - col1 AS col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1739
SELECT ALL col0 + - CAST( + + col0 AS SIGNED ) - - - col1 - ( + col1 ), + col2 FROM tab1 cor0
----
-10
59
-28
96
-94
68

skipif mysql # not compatible
query II rowsort label-1739
SELECT ALL col0 + - CAST ( + + col0 AS INTEGER ) - - - col1 - ( + col1 ), + col2 FROM tab1 cor0
----
-10
59
-28
96
-94
68

onlyif mysql # DIV for integer division: 
query II rowsort label-1740
SELECT DISTINCT - - col1 DIV col2 + + 3 - col1 AS col1, col1 FROM tab0 AS cor0
----
-16
21
-77
81
2
1

skipif mysql # not compatible
query II rowsort label-1740
SELECT DISTINCT - - col1 / col2 + + 3 - col1 AS col1, col1 FROM tab0 AS cor0
----
-16
21
-77
81
2
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 69 - + 62 FROM tab2 AS cor0
----
7

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL AND NOT NULL BETWEEN + col1 + - 47 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT ALL col0 + col1 DIV + - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL col0 + col1 / + - col0 FROM tab1
----
51
85
91

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT ALL + - col2 * - CAST( + - ( + 26 ) AS SIGNED ) FROM tab2 AS cor0
----
-1040
-1508
-598

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL + - col2 * - CAST ( + - ( + 26 ) AS INTEGER ) FROM tab2 AS cor0
----
-1040
-1508
-598

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

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

query I rowsort
SELECT ALL + ( + col1 ) * + 82 AS col1 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL - COUNT( - 60 ) * + 5 AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL - COUNT ( - 60 ) * + 5 AS col2 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - col1 * 21 FROM tab0
----
-1701
-21
-441

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = 22 + + 89 * 29
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-15
-87
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL - - COUNT( * ) FROM tab1 cor0 WHERE 40 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - - COUNT ( * ) FROM tab1 cor0 WHERE 40 IS NOT NULL
----
3

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

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

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

query I rowsort
SELECT ALL 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL + MIN( DISTINCT + col0 ) + 24 col2 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1761
SELECT ALL + MIN ( DISTINCT + col0 ) + 24 col2 FROM tab1
----
75

query I rowsort
SELECT ALL + 73 AS col1 FROM tab1 WHERE - 99 NOT BETWEEN - col1 AND + col0
----
73
73
73

query I rowsort
SELECT + col1 * col1 + - 30 AS col1 FROM tab2
----
2571
4459
5899

query I rowsort
SELECT DISTINCT - 75 + col0 FROM tab1 AS cor0
----
-24
10
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT - - 11 * ( - - SUM( - + 83 ) ) + + 58 AS col1 FROM tab0 AS cor0
----
-2681

skipif mysql # not compatible
query I rowsort label-1765
SELECT - - 11 * ( - - SUM ( - + 83 ) ) + + 58 AS col1 FROM tab0 AS cor0
----
-2681

query I rowsort
SELECT + 56 * + - col2 FROM tab2 cor0 WHERE + 8 IS NULL
----

query I rowsort
SELECT col0 * + col2 + col1 AS col1 FROM tab0 cor0
----
786
891
9604

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

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

query I rowsort
SELECT - 36 AS col1 FROM tab1 AS cor0 WHERE + 74 IS NOT NULL
----
-36
-36
-36

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1770
SELECT - CAST ( + + col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + 71 + - col1 AS col2 FROM tab0 AS cor0
----
-10
50
70

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1774
SELECT DISTINCT MIN( ALL - 42 ), + 23 AS col1 FROM tab1 cor0
----
-42
23

skipif mysql # not compatible
query II rowsort label-1774
SELECT DISTINCT MIN ( ALL - 42 ), + 23 AS col1 FROM tab1 cor0
----
-42
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT 96 - - + ( SUM( ALL - col0 ) ) + + 8 AS col1 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-1775
SELECT 96 - - + ( SUM ( ALL - col0 ) ) + + 8 AS col1 FROM tab1
----
-123

query I rowsort
SELECT ALL - ( col2 ) + - + 18 AS col1 FROM tab0
----
-117
-28
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT COUNT( * ) - 95 * + - 45 AS col2 FROM tab2
----
4278

skipif mysql # not compatible
query I rowsort label-1777
SELECT COUNT ( * ) - 95 * + - 45 AS col2 FROM tab2
----
4278

query I rowsort
SELECT DISTINCT + col2 + - col0 * ( - + 98 ) + - col2 AS col1 FROM tab0
----
1470
8526
9506

query I rowsort
SELECT ( - col0 ) * + col2 + - + ( - 82 ) FROM tab1
----
-4814
-4933
-6106

query I rowsort
SELECT ALL + 89 * - 43 + col0 * col0 AS col0 FROM tab0
----
-3602
3742
5582

query I rowsort
SELECT 94 + col1 AS col2 FROM tab2
----
145
161
171

query I rowsort
SELECT - 1 + + ( + col2 ) AS col2 FROM tab1
----
58
67
95

query I rowsort
SELECT ALL + - col0 - + 7 AS col0 FROM tab0 cor0
----
-104
-22
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1784
SELECT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-1784
SELECT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) < NULL
----

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

query II rowsort
SELECT + col0 * + col2 AS col2, col0 - - 20 AS col1 FROM tab2
----
1058
66
2560
84
4350
95

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT - CAST( NULL AS SIGNED ) * + 2 * - AVG ( + + 96 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT - CAST ( NULL AS INTEGER ) * + 2 * - AVG ( + + 96 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 64 * + col0 AS col2 FROM tab1 AS cor0
----
14
-3264
47
-5824
5
-5440

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

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

query I rowsort
SELECT DISTINCT + 39 * - col2 AS col2 FROM tab2 cor0
----
-1560
-2262
-897

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT - 40 * - COUNT( * ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-1793
SELECT - 40 * - COUNT ( * ) FROM tab2
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT 26 * - - 21 + SUM( ALL + col2 ) FROM tab0
----
702

skipif mysql # not compatible
query I rowsort label-1795
SELECT 26 * - - 21 + SUM ( ALL + col2 ) FROM tab0
----
702

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1797
SELECT CAST( NULL AS SIGNED ) * + ( + col0 ) AS col1, 49 FROM tab1
----
NULL
49
NULL
49
NULL
49

skipif mysql # not compatible
query II rowsort label-1797
SELECT CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col1, 49 FROM tab1
----
NULL
49
NULL
49
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT COUNT( * ) + 31 + + 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
134

skipif mysql # not compatible
query I rowsort label-1798
SELECT COUNT ( * ) + 31 + + 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
134

query I rowsort
SELECT ALL col1 + + col0 * - ( - col1 ) + + + 83 FROM tab0
----
1379
181
1931

query I rowsort
SELECT DISTINCT + 43 * - + col2 * - 54 + 3 AS col2 FROM tab1 AS cor0
----
137001
157899
222915

query II rowsort
SELECT DISTINCT - + ( - col2 ) * 27 * - col2, col0 FROM tab1 AS cor0
----
-124848
91
-248832
51
-93987
85

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) = 13
----

query I rowsort
SELECT + col1 + - - ( col2 ) FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - 29 * 77 + - 28 + - MAX( ALL ( 89 ) ) AS col0 FROM tab0
----
-2350

skipif mysql # not compatible
query I rowsort label-1804
SELECT - 29 * 77 + - 28 + - MAX ( ALL ( 89 ) ) AS col0 FROM tab0
----
-2350

query I rowsort
SELECT 58 + - col0 AS col0 FROM tab1
----
-27
-33
7

query I rowsort
SELECT 65 + + - col2 AS col2 FROM tab2
----
25
42
7

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

query II rowsort
SELECT col2 * + + 95, col1 * 15 * + col1 * col0 AS col0 FROM tab0
----
4465
1476225
9405
1455
950
575505

query I rowsort
SELECT + 44 + - 98 FROM tab2 WHERE col0 IS NOT NULL
----
-54
-54
-54

query I rowsort
SELECT DISTINCT - 97 * - col2 * - + col0 * col2 + 21 FROM tab2 cor0
----
-2360377
-24473079
-9932779

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 63 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( - 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1814
SELECT ALL - - 72 DIV MIN( - + 81 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - - 72 / MIN ( - + 81 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1815
SELECT ALL - col1 DIV col2 + 70 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + + - 7 >= - - col1 + + col0
----
1608
2799
4059

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - col1 / col2 + 70 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + + - 7 >= - - col1 + + col0
----
1608
2799
4059

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

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

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

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

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

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

query II rowsort
SELECT + col2 AS col0, ( - col1 ) FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

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

query I rowsort
SELECT ALL - - 36 * + col0 FROM tab1 AS cor0
----
1836
3060
3276

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT ALL - COUNT( * ) AS col1, 97 + - - ( - 81 ) AS col2 FROM tab2
----
-3
16

skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL - COUNT ( * ) AS col1, 97 + - - ( - 81 ) AS col2 FROM tab2
----
-3
16

query II rowsort
SELECT DISTINCT - col2, 70 AS col2 FROM tab0
----
-10
70
-47
70
-99
70

query I rowsort
SELECT ALL + col0 + - 66 AS col0 FROM tab1
----
-15
19
25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT + col2 + - col0 DIV 3 col1 FROM tab0
----
-19
42
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1827
SELECT DISTINCT + col2 + - col0 / 3 col1 FROM tab0
----
-19
42
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 <= 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + + col2 * 67 FROM tab0 cor0
----
3134
583
6536

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT - ( + SUM( DISTINCT + - col2 ) ) AS col0 FROM tab2 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - ( + SUM ( DISTINCT + - col2 ) ) AS col0 FROM tab2 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT - ( - ( - COUNT( DISTINCT - col1 ) ) ) * SUM( - + col0 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-1831
SELECT - ( - ( - COUNT ( DISTINCT - col1 ) ) ) * SUM ( - + col0 ) FROM tab2
----
555

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 * + col0 + - 26 + - + col2 FROM tab1 AS cor0
----
-25160
-290930
-68666

query I rowsort
SELECT DISTINCT 0 - - - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + - 2 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT - 3 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( - + 67 * + col1 ) IS NOT NULL
----
59
68
96

query II rowsort
SELECT col2 - - 32 * - + col2 + + col1 AS col1, col2 FROM tab2
----
-1163
40
-1731
58
-662
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT ALL + CAST( + col2 AS SIGNED ) + + 17 FROM tab1
----
113
76
85

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + CAST ( + col2 AS INTEGER ) + + 17 FROM tab1
----
113
76
85

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

query I rowsort
SELECT + ( col2 ) * + - ( 57 ) - + 36 + - col2 * - - 49 AS col2 FROM tab0
----
-10530
-1096
-5018

onlyif mysql # DIV for integer division: 
query II rowsort label-1842
SELECT ALL - col1 AS col2, 82 * - - 20 + + col1 DIV + + col1 FROM tab1
----
-14
1641
-47
1641
-5
1641

skipif mysql # not compatible
query II rowsort label-1842
SELECT ALL - col1 AS col2, 82 * - - 20 + + col1 / + + col1 FROM tab1
----
-14
1641
-47
1641
-5
1641

query I rowsort
SELECT DISTINCT + 79 + col0 FROM tab0
----
166
176
94

query I rowsort
SELECT 42 + + col0 FROM tab1
----
127
133
93

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

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

query I rowsort
SELECT ALL - 71 - - - col0 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-71
1129
1669

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + + MAX( - col0 ) + + MAX( ALL col1 ) + - 29 * 84 AS col1 FROM tab0 AS cor0
----
-2370

skipif mysql # not compatible
query I rowsort label-1847
SELECT + + MAX ( - col0 ) + + MAX ( ALL col1 ) + - 29 * 84 AS col1 FROM tab0 AS cor0
----
-2370

query II rowsort
SELECT - col1, col1 * + 78 AS col2 FROM tab2 cor0
----
-51
3978
-67
5226
-77
6006

query I rowsort
SELECT ALL + col0 * 58 * + col1 * + 94 + - 96 AS col2 FROM tab0 AS cor0
----
528748
6624084
9960708

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 / + 59 * - col1 + col2 <> + + 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT + col1 DIV col0 + + col1 FROM tab1 WHERE NOT ( - col0 DIV + ( col1 * - col2 ) ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1851
SELECT + col1 / col0 + + col1 FROM tab1 WHERE NOT ( - col0 / + ( col1 * - col2 ) ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col0 FROM tab2
----
-195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - SUM( 72 ) AS col2 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-1854
SELECT - SUM ( 72 ) AS col2 FROM tab0
----
-216

query I rowsort
SELECT ALL - 31 + col1 AS col0 FROM tab2
----
20
36
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT SUM( ALL - ( 60 ) ) AS col2 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-1856
SELECT SUM ( ALL - ( 60 ) ) AS col2 FROM tab0
----
-180

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

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

query I rowsort
SELECT DISTINCT - 81 * + 38 AS col1 FROM tab0 WHERE ( + 55 * - 88 ) IS NULL
----

query I rowsort
SELECT DISTINCT 16 + - 91 AS col2 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT COUNT( * ) FROM tab1 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1861
SELECT COUNT ( * ) FROM tab1 WHERE col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT + CAST( ( CAST( AVG ( 19 ) AS SIGNED ) ) AS SIGNED ) / 50 - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT + CAST ( ( CAST ( AVG ( 19 ) AS INTEGER ) ) AS INTEGER ) / 50 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT SUM( - 66 ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-1863
SELECT SUM ( - 66 ) FROM tab0
----
-198

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) = ( - col2 + - col1 * 19 )
----

query I rowsort
SELECT DISTINCT 99 * - 46 AS col2 FROM tab0
----
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT COUNT( * ) * SUM( DISTINCT - 15 * col2 ) FROM tab2
----
-5445

skipif mysql # not compatible
query I rowsort label-1867
SELECT COUNT ( * ) * SUM ( DISTINCT - 15 * col2 ) FROM tab2
----
-5445

query I rowsort
SELECT DISTINCT - 8 * + 64 FROM tab2
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT - COUNT( 77 ) + - 78 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1869
SELECT - COUNT ( 77 ) + - 78 FROM tab0
----
-81

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 >= - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 23 FROM tab1 WHERE ( - 89 ) > ( NULL )
----

query I rowsort
SELECT + 78 * + col0 AS col2 FROM tab0
----
1170
6786
7566

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

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

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 WHERE ( col2 ) + col0 <> + 70
----
6

query I rowsort
SELECT 36 * col2 FROM tab2
----
1440
2088
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT ALL - 78 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-31
-64
-73

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - 78 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-31
-64
-73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL + 51 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + 51 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT DISTINCT + col0 DIV - ( - col0 ) + - col1 DIV + 51 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT + col0 / - ( - col0 ) + - col1 / + 51 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT - - COUNT( * ) + ( 37 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - - COUNT ( * ) + ( 37 ) FROM tab1 AS cor0
----
40

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

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

query I rowsort
SELECT DISTINCT + 32 * col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT - col1 * + col2 + + col1 DIV + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1885
SELECT - col1 * + col2 + + col1 / + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1886
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) + 10 ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1886
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) + 10 ) = ( NULL )
----

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

skipif mysql # not compatible
query III rowsort label-1887
SELECT * FROM tab1 AS cor0 WHERE col1 / - CAST ( NULL AS INTEGER ) + - 23 BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL - + SUM( DISTINCT - col0 ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - + SUM ( DISTINCT - col0 ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
182

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * - 29 * col1 col0 FROM tab1
----
-32712
-3480
-9744

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ( COUNT( * ) ) * 30 AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-1893
SELECT ( COUNT ( * ) ) * 30 AS col0 FROM tab1
----
90

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

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

query I rowsort
SELECT + 7 FROM tab2 WHERE NOT NULL > + col1 * + 63
----

query I rowsort
SELECT DISTINCT - 45 * - col1 FROM tab0
----
3645
45
945

query I rowsort
SELECT ALL + 54 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT + col1 * col0 * - - 62 FROM tab1
----
26350
265174
44268

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE + 79 BETWEEN - 90 AND NULL
----

query I rowsort
SELECT DISTINCT 97 + 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
174

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

query I rowsort
SELECT 63 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - + 73 - 49
----

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

skipif mysql # not compatible
query III rowsort label-1904
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - - 61 - CAST ( NULL AS INTEGER ) AND col2
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1906
SELECT + COUNT( * ) DIV ( + COUNT( * ) ) * 20 AS col0 FROM tab0 AS cor0
----
20

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

query II rowsort
SELECT - - 80, - 46 AS col1 FROM tab2 AS cor0
----
80
-46
80
-46
80
-46

query II rowsort
SELECT - 38 AS col0, - col1 * col0 FROM tab1 AS cor0
----
-38
-425
-38
-4277
-38
-714

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

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

query I rowsort
SELECT ALL - 43 AS col2 FROM tab2 AS cor0 WHERE NOT 34 NOT BETWEEN - 26 * + col2 AND + col2 * col0 + col0 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT - col1 * ( col1 ) DIV col0 + - 47 FROM tab0 AS cor0
----
-47
-484
-52

skipif mysql # not compatible
query I rowsort label-1911
SELECT - col1 * ( col1 ) / col0 + - 47 FROM tab0 AS cor0
----
-47
-484
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 / + - CAST( 14 AS SIGNED ) ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1912
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 / + - CAST ( 14 AS INTEGER ) ) IS NULL
----
1
21
81

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1914
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * - 23 * 10 NOT IN ( ( col2 ) - + col2 )
----

skipif mysql # not compatible
query III rowsort label-1914
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) * - 23 * 10 NOT IN ( ( col2 ) - + col2 )
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( + col2 ) = NULL
----

query II rowsort
SELECT - + col2 AS col2, - 41 AS col2 FROM tab1 cor0
----
-59
-41
-68
-41
-96
-41

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

query I rowsort
SELECT - 62 + - 28 * + 51 AS col1 FROM tab0 WHERE NOT + + col0 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + col1 BETWEEN + 10 AND - col0
----

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

query I rowsort
SELECT - - 17 * + col2 * - - col2 + - col1 + + ( 15 ) FROM tab0 AS cor0
----
166631
1694
37487

query III rowsort
SELECT * FROM tab0 cor0 WHERE 98 <= NULL
----

query I rowsort
SELECT 57 * + 22 * - ( 52 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3ae4b1242ccf8bd6ea79310b37d29f30

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( NULL ) BETWEEN ( - col0 ) AND ( - + 31 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1925
SELECT + 24 * 2 + - col1 * - col2 * col2 * + col1 + col2 DIV 70 FROM tab1
----
10214464
1806385
87073

skipif mysql # not compatible
query I rowsort label-1925
SELECT + 24 * 2 + - col1 * - col2 * col2 * + col1 + col2 / 70 FROM tab1
----
10214464
1806385
87073

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NULL >= - - 40
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 11 * - 77 + col2 BETWEEN ( NULL ) AND + 33
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT ALL - + 88 - 10 * + CAST( + + col0 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
4162
42682
7052

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL - + 88 - 10 * + CAST ( + + col0 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
4162
42682
7052

query II rowsort
SELECT 42 * + - col1, 23 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1931
SELECT DISTINCT + col0 AS col1, + 94 + + + CAST( + col2 AS SIGNED ) + + col1 AS col0 FROM tab0 cor0
----
15
222
87
125
97
194

skipif mysql # not compatible
query II rowsort label-1931
SELECT DISTINCT + col0 AS col1, + 94 + + + CAST ( + col2 AS INTEGER ) + + col1 AS col0 FROM tab0 cor0
----
15
222
87
125
97
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT + + COUNT( * ) - - - 25 * - + CAST( + 61 AS SIGNED ) FROM tab2 AS cor0
----
1528

skipif mysql # not compatible
query I rowsort label-1932
SELECT + + COUNT ( * ) - - - 25 * - + CAST ( + 61 AS INTEGER ) FROM tab2 AS cor0
----
1528

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT - ( COUNT( * ) ) FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( col0 IS NULL )
----
14
47
5

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT ( - 93 * + col0 ) < - 65
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT + 84 * - COUNT( * ) AS col1 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT + 84 * - COUNT ( * ) AS col1 FROM tab2
----
-252

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT + 34 * + + COUNT( * ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + 34 * + + COUNT ( * ) FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT - COUNT( * ) * - - ( MIN( DISTINCT - 31 ) ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - COUNT ( * ) * - - ( MIN ( DISTINCT - 31 ) ) FROM tab1 AS cor0
----
93

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 10 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 * - 96 + 99 + - 36 = - col2 * + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - - MIN( - + col0 ) * - ( - MIN( ALL - col0 ) ) + + 62 AS col1 FROM tab1 AS cor0
----
8343

skipif mysql # not compatible
query I rowsort label-1946
SELECT - - MIN ( - + col0 ) * - ( - MIN ( ALL - col0 ) ) + + 62 AS col1 FROM tab1 AS cor0
----
8343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT DISTINCT + 3 DIV + MIN( DISTINCT 61 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + 3 / + MIN ( DISTINCT 61 ) FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT - - 59 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
236
2705
730

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

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

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

query I rowsort
SELECT - col0 + 76 AS col2 FROM tab2 AS cor0
----
1
12
30

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 + - - 14 col0 FROM tab0
----
-64
-64
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 37 * CAST( + - 92 AS SIGNED ) NOT BETWEEN - - col1 AND + col1 + + - 41 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 37 * CAST ( + - 92 AS INTEGER ) NOT BETWEEN - - col1 AND + col1 + + - 41 * 29
----
NULL

query I rowsort
SELECT ALL col0 * 5 AS col2 FROM tab0
----
435
485
75

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT + col2 + + + 24 - + col0 DIV 95 AS col2 FROM tab2
----
47
64
82

skipif mysql # not compatible
query I rowsort label-1959
SELECT + col2 + + + 24 - + col0 / 95 AS col2 FROM tab2
----
47
64
82

query II rowsort
SELECT col0 - - ( - col0 ), 60 AS col2 FROM tab1 WHERE - - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + + 94 )
----

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

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + + 54 - col2 + + + col1 + - col2 / - col0 * + CAST ( NULL AS INTEGER ) - - - 16 * 77 / + 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 28 FROM ( tab0 cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query II rowsort
SELECT DISTINCT - 9 - - 40, col2 AS col0 FROM tab0 AS cor0
----
31
10
31
47
31
99

query I rowsort
SELECT - - col0 + - 97 + - col2 * - col2 FROM tab0 cor0
----
2127
90
9801

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT - MIN( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1968
SELECT - MIN ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT - 39 * - COUNT( * ) AS col2 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-1970
SELECT - 39 * - COUNT ( * ) AS col2 FROM tab1
----
117

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + - 75 AS col1 FROM tab1
----
-4425
-5100
-7200

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

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

query I rowsort
SELECT ALL - 64 + - + 98 + col2 AS col1 FROM tab2
----
-104
-122
-139

query I rowsort
SELECT DISTINCT 5 + - col0 / - + 72 * + col2 / - - 27 FROM tab1 WHERE NOT NULL <= - 94 / 6
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT + + MAX( - col0 ) * + COUNT( * ) + 38 AS col0 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-1978
SELECT + + MAX ( - col0 ) * + COUNT ( * ) + 38 AS col0 FROM tab2 AS cor0
----
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * + col1 + - - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1029
-3969
-49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT DISTINCT 5 AS col1, MIN( 18 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( + + col2 ), - col2 * - - 57 )
----
5
NULL

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT 5 AS col1, MIN ( 18 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( + + col2 ), - col2 * - - 57 )
----
5
NULL

query I rowsort
SELECT DISTINCT col1 + - + ( 77 ) FROM tab0 AS cor0 WHERE NOT 29 * + - col1 * + 29 < + + col0 + + + col1 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT + 17 DIV col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1983
SELECT + 17 / col0 AS col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT ALL - 29 + 21 FROM tab2
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-1986
SELECT + col0 col0, + col2 * ( - + col1 ) DIV - col2 + - col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1986
SELECT + col0 col0, + col2 * ( - + col1 ) / - col2 + - col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1990
SELECT + COUNT( * ) DIV - COUNT( * ) - - + 24 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1990
SELECT + COUNT ( * ) / - COUNT ( * ) - - + 24 FROM tab0 AS cor0
----
23

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

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT SUM ( 57 ) FROM tab0 AS cor0
----
171

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1992
SELECT ALL + col0, CAST( + CAST( col2 AS DECIMAL ) AS SIGNED ) - - col2 FROM tab0 cor0
----
15
94
87
20
97
198

skipif mysql # not compatible
query II rowsort label-1992
SELECT ALL + col0, CAST ( + CAST ( col2 AS REAL ) AS INTEGER ) - - col2 FROM tab0 cor0
----
15
94
87
20
97
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + 25 * - 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1994
SELECT CAST( NULL AS SIGNED ) * - + col0, + 80 AS col0 FROM tab0
----
NULL
80
NULL
80
NULL
80

skipif mysql # not compatible
query II rowsort label-1994
SELECT CAST ( NULL AS INTEGER ) * - + col0, + 80 AS col0 FROM tab0
----
NULL
80
NULL
80
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT COUNT( - col1 ) * - MAX( ALL - - col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-1995
SELECT COUNT ( - col1 ) * - MAX ( ALL - - col1 ) FROM tab2
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 48 * 78 col1 FROM tab2
----
-190944
-250848
-288288

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT - col0 DIV - + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1997
SELECT - col0 / - + col0 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 1 + - 56 >= - 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT + 18 * CAST( 45 AS SIGNED ) FROM tab1 AS cor0
----
810
810
810

skipif mysql # not compatible
query I rowsort label-1999
SELECT + 18 * CAST ( 45 AS INTEGER ) FROM tab1 AS cor0
----
810
810
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 + col2 + + 95 > - 58
----
-3

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 + col2 + + 95 > - 58
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT ( COUNT( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2002
SELECT ( COUNT ( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2003
SELECT * FROM tab2 AS cor0 WHERE + col0 <= ( - CAST( + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2003
SELECT * FROM tab2 AS cor0 WHERE + col0 <= ( - CAST ( + col0 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + ( - MAX( + + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE col2 * col1 <> col2 * - col1 / - 30
----
-75

skipif mysql # not compatible
query I rowsort label-2004
SELECT + ( - MAX ( + + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE col2 * col1 <> col2 * - col1 / - 30
----
-75

query I rowsort
SELECT DISTINCT - col0 * - + col2 * + - 69 AS col2 FROM tab0 cor0
----
-48645
-60030
-662607

query I rowsort
SELECT DISTINCT - col0 - - col0 + - 78 AS col2 FROM tab2 AS cor0 WHERE NOT - 14 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT ( + MAX( ( + col2 ) ) ) * + - 62 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-5955

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT ( + MAX ( ( + col2 ) ) ) * + - 62 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-5955

query I rowsort
SELECT + 64 + + col1 FROM tab1 AS cor0
----
111
69
78

query I rowsort
SELECT DISTINCT - 57 * - col1 FROM tab1 AS cor0 WHERE NOT NULL >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT + - ( ( - CAST( + ( + + col0 ) AS SIGNED ) ) ) col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2010
SELECT + - ( ( - CAST ( + ( + + col0 ) AS INTEGER ) ) ) col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + col0 ) + + + 82 FROM tab0
----
169
179
97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT 86 * - MAX( ALL - - CAST( - - col0 AS SIGNED ) ) + + COUNT( * ) FROM tab1
----
-7823

skipif mysql # not compatible
query I rowsort label-2013
SELECT 86 * - MAX ( ALL - - CAST ( - - col0 AS INTEGER ) ) + + COUNT ( * ) FROM tab1
----
-7823

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

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

query II rowsort
SELECT DISTINCT 46 + + - col0, + col1 FROM tab1
----
-39
5
-45
47
-5
14

query I rowsort
SELECT ALL - - col0 * + col2 + - col0 / - col1 / + col1 + - - 22 + 17 + - - 68 * + col2 FROM tab0 WHERE ( + col0 ) BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL col2 * col2 + + col1 AS col1 FROM tab2
----
1677
3431
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - - col0 col1 FROM tab2 AS cor0
----
17
23
24

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / + 26 * + - col2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2023
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 8 * CAST( - - col0 AS SIGNED ) / - col2 BETWEEN + 52 / - ( col2 ) + - 11 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2023
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 8 * CAST ( - - col0 AS INTEGER ) / - col2 BETWEEN + 52 / - ( col2 ) + - 11 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT DISTINCT - - col0 DIV 39 + + + col2 * - col0 FROM tab1 AS cor0
----
-4895
-5013
-6186

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT - - col0 / 39 + + + col2 * - col0 FROM tab1 AS cor0
----
-4895
-5013
-6186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT - COUNT( * ) DIV 13 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2025
SELECT - COUNT ( * ) / 13 FROM tab1 AS cor0
----
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * - 44 * col1 + + + ( ( 15 ) ) + - 85 - - col1 < NULL
----

query I rowsort
SELECT + 85 * + 20 FROM tab1
----
1700
1700
1700

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

query I rowsort
SELECT + 52 * + + 41 FROM tab2
----
2132
2132
2132

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT + 87 DIV + - 39 + + 23 AS col1 FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-2035
SELECT + 87 / + - 39 + + 23 AS col1 FROM tab2
----
21
21
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 76 >= + col0
----
15
81
47

query I rowsort
SELECT + col1 * - 14 * 88 FROM tab2 AS cor0
----
-62832
-82544
-94864

query II rowsort
SELECT DISTINCT - 89 * + col1 + + 42 + + 91, col0 AS col0 FROM tab2 AS cor0
----
-4406
46
-5830
75
-6720
64

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

query I rowsort
SELECT ( + + col1 ) * + 61 AS col0 FROM tab2 cor0
----
3111
4087
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + MAX( ALL - 15 ) * 26 + + 20 AS col0 FROM tab0 AS cor0
----
-370

skipif mysql # not compatible
query I rowsort label-2041
SELECT + MAX ( ALL - 15 ) * 26 + + 20 AS col0 FROM tab0 AS cor0
----
-370

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= 91 + + + 18
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 <= - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT SUM( ALL + + 14 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT SUM ( ALL + + 14 ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT + COUNT( * ) + - 73 AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-2045
SELECT + COUNT ( * ) + - 73 AS col0 FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL COUNT( * ) + + - 52 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL COUNT ( * ) + + - 52 FROM tab1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT DISTINCT col2 + col1 DIV - - col2 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT col2 + col1 / - - col2 FROM tab0 AS cor0
----
12
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + + COUNT( * ) + 46 col0 FROM tab0 cor0
----
49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 40 * - 70 col2 FROM tab2 AS cor0
----
2846
2864
2875

query I rowsort
SELECT - + 63 + + col0 AS col1 FROM tab1 AS cor0
----
-12
22
28

query I rowsort
SELECT - 59 AS col0 FROM tab1 WHERE NOT NULL > NULL
----

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

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

query I rowsort
SELECT ALL col2 * - col2 - + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-3906
-8901
-9930

query I rowsort
SELECT ALL - col0 * - col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 + + col2 col2 FROM tab0 AS cor0 WHERE col0 * col1 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 65 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
146
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT + MAX( - - 87 ) FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT + MAX ( - - 87 ) FROM tab2 cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT ALL ( - col0 ) DIV + - 32 - + col0 AS col2 FROM tab2 AS cor0
----
-45
-62
-73

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL ( - col0 ) / + - 32 - + col0 AS col2 FROM tab2 AS cor0
----
-45
-62
-73

query I rowsort
SELECT + - 76 FROM tab0 cor0
----
-76
-76
-76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT DISTINCT + ( + 52 ), + COUNT( * ) * + 60 AS col0 FROM tab2
----
52
180

skipif mysql # not compatible
query II rowsort label-2063
SELECT DISTINCT + ( + 52 ), + COUNT ( * ) * + 60 AS col0 FROM tab2
----
52
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) * 20 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 20 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + col2 * + col2 * + col0 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT ALL + 12 + - col1 FROM tab1
----
-2
-35
7

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

skipif mysql # not compatible
query I rowsort label-2067
SELECT - col1 + - col2 / + - col2 AS col1 FROM tab0
----
-20
-80
0

query I rowsort
SELECT DISTINCT + ( - + 12 ) FROM tab0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + + col2 col0 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2070
SELECT 57 AS col0, CAST( NULL AS SIGNED ) - + - COUNT( 49 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2070
SELECT 57 AS col0, CAST ( NULL AS INTEGER ) - + - COUNT ( 49 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT MAX( - 66 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2071
SELECT MAX ( - 66 ) FROM tab0 AS cor0
----
-66

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + 76 >= - + 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + - 76 AS col1 FROM tab0 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - 59 + col1 * + + col1 AS col0 FROM tab0 AS cor0
----
-58
382
6502

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL - CAST( NULL AS SIGNED ) - + 78 + - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - CAST ( NULL AS INTEGER ) - + 78 + - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab1 AS cor0 WHERE NOT + 37 BETWEEN 20 AND NULL
----

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

query I rowsort
SELECT col2 FROM tab2 WHERE - col2 >= + + 42 + col1 * + col1 * - col0
----
23
40
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT DISTINCT COUNT( - - 24 ) AS col2 FROM tab0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT COUNT ( - - 24 ) AS col2 FROM tab0 WHERE NOT ( NULL IS NULL )
----
0

query I rowsort
SELECT DISTINCT col2 + - 27 * + col0 AS col2 FROM tab0
----
-2339
-2520
-358

query II rowsort
SELECT - 81 - + + 16 AS col2, - col1 - + + col1 + - col1 FROM tab0 AS cor0
----
-97
-243
-97
-3
-97
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT + col0 DIV ( - - 13 ) FROM tab1 cor0
----
3
6
7

skipif mysql # not compatible
query I rowsort label-2087
SELECT + col0 / ( - - 13 ) FROM tab1 cor0
----
3
6
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2088
SELECT 45 * + ( col0 ) AS col2, 47 DIV - 21 + - col0 - + 78 FROM tab1
----
2295
-131
3825
-165
4095
-171

skipif mysql # not compatible
query II rowsort label-2088
SELECT 45 * + ( col0 ) AS col2, 47 / - 21 + - col0 - + 78 FROM tab1
----
2295
-131
3825
-165
4095
-171

query I rowsort
SELECT ALL 81 + - - col2 + - + col0 * - col2 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 65 col0, 6 AS col2 FROM tab2 AS cor0
----
65
6
65
6
65
6

query I rowsort
SELECT ALL col2 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
1600
3364
529

query II rowsort
SELECT - - 90, - col1 / - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - ( - 96 ) IS NOT NULL
----

query I rowsort
SELECT + - col2 * - - 51 AS col1 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT ALL col1 * 77 AS col2 FROM tab0 AS cor0
----
1617
6237
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - MIN( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - MIN ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - + 27 * - - col2 AS col2 FROM tab2 cor0
----
-1080
-1566
-621

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

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

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

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE col0 + - col2 + + 43 * - col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL col0 * 89 AS col1 FROM tab1
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT ALL - COUNT( * ) col0, MIN( ALL - 6 ) * - - COUNT( * ) FROM tab1
----
-3
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2101
SELECT ALL - COUNT ( * ) col0, MIN ( ALL - 6 ) * - - COUNT ( * ) FROM tab1
----
-3
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2102
SELECT DISTINCT * FROM tab1 WHERE 58 NOT IN ( - - col0, CAST( - col0 AS SIGNED ), - col2, col2 * + col0 + - 53, - col1 + - col2, + 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2102
SELECT DISTINCT * FROM tab1 WHERE 58 NOT IN ( - - col0, CAST ( - col0 AS INTEGER ), - col2, col2 * + col0 + - 53, - col1 + - col2, + 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 37 + 91 * + col0 AS col0 FROM tab1 AS cor0
----
4678
7772
8318

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= 19
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= 19
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT - - col0 + + col0 DIV - - col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-2105
SELECT - - col0 + + col0 / - - col2 FROM tab2 AS cor0
----
48
65
76

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE col0 >= - col2 - - 34 * + 9 * col1
----

query I rowsort
SELECT col1 * col1 / + 87 + 59 * + col2 FROM tab0 AS cor0 WHERE 29 > 90 * + col2
----

query I rowsort
SELECT + 48 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 - 50 col0 FROM tab1 AS cor0
----
2551
7175
8231

query I rowsort
SELECT + - 46 AS col1 FROM tab1 cor0
----
-46
-46
-46

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

skipif mysql # not compatible
query II rowsort label-2111
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, + 21 FROM tab0 AS cor0
----
-3
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL - + COUNT( * ) + SUM( - col1 ) * 96 FROM tab1 AS cor0
----
-6339

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - + COUNT ( * ) + SUM ( - col1 ) * 96 FROM tab1 AS cor0
----
-6339

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col1 / + 43 + col0 ) IS NULL
----

query II rowsort
SELECT ALL - 6, + ( col0 ) * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 65 * col0 - col0 AS col0 FROM tab2 AS cor0
----
2944
4096
4800

query I rowsort
SELECT ALL + + 67 AS col2 FROM tab0 AS cor0
----
67
67
67

query III rowsort
SELECT * FROM tab2 WHERE 90 > NULL
----

query I rowsort
SELECT + 97 + - col1 - + 12 FROM tab1
----
38
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT MIN( ALL - 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT MIN ( ALL - 23 ) FROM tab2
----
-23

query II rowsort
SELECT - col1 + + col1 + + 26, - col2 AS col0 FROM tab0
----
26
-10
26
-47
26
-99

query I rowsort
SELECT 10 * + col0 FROM tab2
----
460
640
750

query I rowsort
SELECT ALL - ( - col1 ) * 2 * 75 AS col1 FROM tab1
----
2100
7050
750

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

query I rowsort
SELECT ALL + 21 + - 11 FROM tab0 AS cor0 WHERE - col0 IN ( + - 66 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT ALL + 16 + col2 AS col2 FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
115
26
63

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL + 16 + col2 AS col2 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
115
26
63

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

skipif mysql # not compatible
query I rowsort label-2127
SELECT + - MAX ( - 13 ) AS col0 FROM tab1 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT ALL MIN( DISTINCT + col0 ) * - 65 - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2993

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL MIN ( DISTINCT + col0 ) * - 65 - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < + col1 * + + CAST( - 11 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < + col1 * + + CAST ( - 11 AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 60 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 85 * + + col1 FROM tab2
----
-221085
-381565
-503965

query I rowsort
SELECT ALL - col2 * - 27 + - 63 FROM tab1
----
1530
1773
2529

query I rowsort
SELECT + 88 + + 30 + + - 84 AS col0 FROM tab2
----
34
34
34

query I rowsort
SELECT DISTINCT col2 * + 24 AS col1 FROM tab2
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT 1 + - 75 + + COUNT( * ) AS col2 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-2136
SELECT 1 + - 75 + + COUNT ( * ) AS col2 FROM tab2
----
-71

query I rowsort
SELECT 90 + + + col2 FROM tab0
----
100
137
189

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

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT col2 * 95 * - 76 + + col1 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT 31 + - col0 + + col2 + + + 62 * + col0 + - - col1 + - ( - - col0 ), col1 + col1 * - col2 AS col1 FROM tab2
----
2865
-1122
3988
-3003
4656
-3819

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT DISTINCT CAST( - - 32 AS SIGNED ) FROM tab2, tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT CAST ( - - 32 AS INTEGER ) FROM tab2, tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL + SUM( - - col2 ) + + COUNT( * ) FROM tab2 WHERE - + col0 NOT IN ( + 22, col0, + + col2 )
----
124

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + SUM ( - - col2 ) + + COUNT ( * ) FROM tab2 WHERE - + col0 NOT IN ( + 22, col0, + + col2 )
----
124

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + + 37 + - 98 AS col0 FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT ALL + CAST( ( - - 37 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + CAST ( ( - - 37 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2146
SELECT DISTINCT - col1 / col0 / - col1 col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL - 6 * + MAX( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-450

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - 6 * + MAX ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + SUM( DISTINCT col1 ) * - COUNT( * ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-2148
SELECT + SUM ( DISTINCT col1 ) * - COUNT ( * ) AS col1 FROM tab1
----
-198

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

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

query I rowsort
SELECT DISTINCT + col1 + col0 - + - col0 * - + 85 FROM tab0 AS cor0
----
-1179
-7287
-8147

query I rowsort
SELECT ALL - - col1 + + 35 FROM tab2 AS cor0
----
102
112
86

query I rowsort
SELECT + 55 + + col1 AS col1 FROM tab1 AS cor0
----
102
60
69

query I rowsort
SELECT DISTINCT - col1 - - + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL - ( MAX( col0 ) ) - - 9 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - ( MAX ( col0 ) ) - - 9 FROM tab0 AS cor0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT ALL - + col0 DIV - - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - + col0 / - - col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT + 75 * COUNT( * ), 51 AS col0 FROM tab1
----
225
51

skipif mysql # not compatible
query II rowsort label-2156
SELECT + 75 * COUNT ( * ), 51 AS col0 FROM tab1
----
225
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - - COUNT( * ) FROM tab1 WHERE NOT NULL <> - - 93
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NOT NULL <> - - 93
----
0

query I rowsort
SELECT DISTINCT + + ( - col0 ) * + 28 AS col1 FROM tab1 WHERE NOT ( - + ( 5 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2159
SELECT - col2 / - + 66 * CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2159
SELECT - col2 / - + 66 * CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2160
SELECT ALL - ( - col2 ) + - col0 DIV - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - ( - col2 ) + - col0 / - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT ALL + 42 * col0 DIV + 96 FROM tab1 AS cor0
----
22
37
39

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + 42 * col0 / + 96 FROM tab1 AS cor0
----
22
37
39

onlyif mysql # DIV for integer division: 
query II rowsort label-2162
SELECT ( 53 ) * col2 col2, 65 DIV - col2 FROM tab1 cor0
----
3127
-1
3604
0
5088
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2162
SELECT ( 53 ) * col2 col2, 65 / - col2 FROM tab1 cor0
----
3127
-1
3604
0
5088
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + + 62 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT DISTINCT + col0 + + 72 + col1 - + 34 DIV - col2 FROM tab2
----
170
213
214

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT + col0 + + 72 + col1 - + 34 / - col2 FROM tab2
----
170
213
214

query I rowsort
SELECT DISTINCT col1 + 72 - + - 28 AS col2 FROM tab2
----
151
167
177

query I rowsort
SELECT ALL + 9 + 30 FROM tab2
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL COUNT( * ) + - - 47 AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL COUNT ( * ) + - - 47 AS col1 FROM tab1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT + CAST( + - ( SUM( DISTINCT col0 ) ) AS SIGNED ) + COUNT( * ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-2169
SELECT + CAST ( + - ( SUM ( DISTINCT col0 ) ) AS INTEGER ) + COUNT ( * ) FROM tab2
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT col0 + + col2 DIV + + col2 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-2170
SELECT col0 + + col2 / + + col2 FROM tab0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL + + SUM( ALL + col2 ) + + COUNT( * ) col1 FROM tab2 AS cor0
----
124

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT DISTINCT - COUNT( col0 ) * + COUNT( * ) - - + CAST( MIN( - + col2 ) AS SIGNED ) - - - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) * + - SUM( - - col2 ) * 99 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - COUNT ( col0 ) * + COUNT ( * ) - - + CAST ( MIN ( - + col2 ) AS INTEGER ) - - - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * + - SUM ( - - col2 ) * 99 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL 52 + 94 FROM tab1
----
146
146
146

query I rowsort
SELECT + 67 - - col1 FROM tab1 AS cor0
----
114
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT + - 64 + + MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + - 64 + + MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT DISTINCT col2 + 20 AS col0 FROM tab1 AS cor0
----
116
79
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + - col1 AS col0, ( col2 ) AS col2, - - 99 col2 FROM tab1 AS cor0
----
9 values hashing to 2aeaac1bb9368524d426e5ae23740ef7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2180
SELECT ALL MIN( + - 25 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL MIN ( + - 25 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 12 FROM tab1 AS cor0 WHERE NOT col2 / 36 / + + col2 IS NOT NULL
----

query I rowsort
SELECT col2 - + + col1 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 / + col1 * - 43 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT - 29 FROM tab1 WHERE NOT - col0 + - + CAST( NULL AS SIGNED ) + col1 * + col1 * - col1 * - col0 + + + 6 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2185
SELECT - 29 FROM tab1 WHERE NOT - col0 + - + CAST ( NULL AS INTEGER ) + col1 * + col1 * - col1 * - col0 + + + 6 IS NULL
----

query I rowsort
SELECT DISTINCT 32 * - - col1 + - col1 - + - col2 + 45 AS col2 FROM tab2
----
1649
2180
2472

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 67 + col2 BETWEEN - - col0 + + + 31 AND NULL
----
87
21
10

query I rowsort
SELECT ALL + 74 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
125
159
165

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

query I rowsort
SELECT ALL - - col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 / - 37 * + + col2 IS NULL
----
198
20
94

query I rowsort
SELECT - - 57 + - col0 AS col2 FROM tab1 AS cor0
----
-28
-34
6

query I rowsort
SELECT col0 + col1 - - + 31 FROM tab2
----
128
172
173

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2193
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN col0 + 63 / + - 12 AND - CAST( - col2 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-2193
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN col0 + 63 / + - 12 AND - CAST ( - col2 AS INTEGER )
----
85
5
59
91
47
68

query I rowsort
SELECT ( 66 ) + + 31 FROM tab0
----
97
97
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2195
SELECT DISTINCT - CAST ( + 88 AS INTEGER ) col2 FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + COUNT( * ) FROM tab0 WHERE 14 <= + - 21 * 10 - 74 - - - col1 * - ( col0 )
----
2

skipif mysql # not compatible
query I rowsort label-2196
SELECT + COUNT ( * ) FROM tab0 WHERE 14 <= + - 21 * 10 - 74 - - - col1 * - ( col0 )
----
2

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 NOT BETWEEN - 45 AND col2
----
15
81
47
97
1
99

query I rowsort
SELECT ALL - col0 + 38 FROM tab0 AS cor0
----
-49
-59
23

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

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

query I rowsort
SELECT DISTINCT - - 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + + 16 * - COUNT( * ) + - - 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-137

skipif mysql # not compatible
query I rowsort label-2201
SELECT + + 16 * - COUNT ( * ) + - - 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-137

query I rowsort
SELECT ALL - + 35 * + col1 AS col0 FROM tab2 cor0
----
-1785
-2345
-2695

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT ALL - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2204
SELECT ALL - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----
NULL

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

query I rowsort
SELECT ALL + col2 * ( - - col2 ) * + col0 * col0 FROM tab1 AS cor0
----
23970816
25150225
38291344

query I rowsort
SELECT ALL + col0 * ( - col2 ) * - - col2 + 63 + + col1 FROM tab1 AS cor0
----
-295817
-420674
-469939

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

query I rowsort
SELECT - - col2 * + - 95 FROM tab2 cor0
----
-2185
-3800
-5510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - ( - 34 ) * - - 40 col2 FROM tab2
----
104720
69360
91120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * col0 col2 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT 30 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT + col0 DIV - 3 FROM tab1 AS cor0
----
-17
-28
-30

skipif mysql # not compatible
query I rowsort label-2213
SELECT + col0 / - 3 FROM tab1 AS cor0
----
-17
-28
-30

query I rowsort
SELECT DISTINCT - - col0 + + ( + 35 ) + + col1 FROM tab0 AS cor0
----
131
133
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - + 37 col0 FROM tab0 AS cor0
----
-124
-134
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2216
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col0 + - - col1 + - 3 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2216
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col0 + - - col1 + - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT DISTINCT 94 AS col0, COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
94
0

skipif mysql # not compatible
query II rowsort label-2217
SELECT DISTINCT 94 AS col0, COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
94
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + + MIN( 62 ) FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + + MIN ( 62 ) FROM tab1 cor0
----
62

query III rowsort
SELECT * FROM tab1 WHERE NULL < - 35
----

query I rowsort
SELECT - 25 * - col2 FROM tab1
----
1475
1700
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT + ( + - COUNT( * ) ) + + MAX( ALL 51 ) AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2222
SELECT + ( + - COUNT ( * ) ) + + MAX ( ALL 51 ) AS col2 FROM tab2
----
48

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - col0 - col0 FROM tab1 AS cor0
----
4845
4930
6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 24 + 90 col1, col1 AS col2 FROM tab2 cor0
----
114
51
114
67
114
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2227
SELECT ALL + - 18 col1, COUNT( * ) * - ( MIN( DISTINCT col0 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
-18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2227
SELECT ALL + - 18 col1, COUNT ( * ) * - ( MIN ( DISTINCT col0 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
-18
NULL

query II rowsort
SELECT DISTINCT - 4 * - col0 * - col2 * 91 AS col0, 28 AS col2 FROM tab2
----
-1583400
28
-385112
28
-931840
28

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + 84 - - 54 - col0 NOT BETWEEN NULL AND 65
----

query I rowsort
SELECT DISTINCT col0 * + 47 AS col2 FROM tab2
----
2162
3008
3525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT CAST( NULL AS SIGNED ) / + 37 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT CAST ( NULL AS INTEGER ) / + 37 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 41 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT + ( + COUNT( * ) ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + ( + COUNT ( * ) ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * - 59 FROM tab0
----
-1239
-4779
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 64 col0 FROM tab1 cor0
----
3008
320
896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2238
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + + col1 * - - col0 NOT BETWEEN col0 AND - - col0 * + 0 + - - 69
----

skipif mysql # not compatible
query III rowsort label-2238
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + + col1 * - - col0 NOT BETWEEN col0 AND - - col0 * + 0 + - - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - COUNT( ALL ( + col0 ) ) * + 42 col0 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2239
SELECT - COUNT ( ALL ( + col0 ) ) * + 42 col0 FROM tab0 AS cor0
----
-126

query I rowsort
SELECT ALL + + 63 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query II rowsort
SELECT col2, - col0 * - col1 + - + 16 FROM tab2
----
23
2330
40
4912
58
5009

query I rowsort
SELECT DISTINCT + ( + 13 ) FROM tab0
----
13

query I rowsort
SELECT + - 82 FROM tab2 WHERE + col2 * - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL < + col2
----

query I rowsort
SELECT ALL + 96 - 68 AS col1 FROM tab0 cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT + + 42 + + col1 DIV 68 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-2246
SELECT + + 42 + + col1 / 68 / ( col0 ) AS col1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL + 3 - + - col2 AS col0 FROM tab2 AS cor0
----
26
43
61

query I rowsort
SELECT + col2 + - 78 AS col0 FROM tab1
----
-10
-19
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT 78 * - + 88 + - - COUNT( * ) FROM tab0
----
-6861

skipif mysql # not compatible
query I rowsort label-2249
SELECT 78 * - + 88 + - - COUNT ( * ) FROM tab0
----
-6861

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col0 NOT IN ( 71 * - col2 - + col1 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL + COUNT( ALL - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + COUNT ( ALL - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT COUNT( + 20 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2252
SELECT COUNT ( + 20 ) FROM tab2
----
3

query I rowsort
SELECT ALL col1 + - + col0 + + - 18 AS col1 FROM tab2
----
-13
-26
-5

query I rowsort
SELECT DISTINCT - 65 - + - ( + 32 ) FROM tab0
----
-33

query III rowsort
SELECT * FROM tab0 WHERE NOT + 16 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col1 * - - col1 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2257
SELECT - COUNT( * ) DIV - + 47 * - 98 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2257
SELECT - COUNT ( * ) / - + 47 * - 98 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT MAX( ALL + 94 ) AS col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2258
SELECT MAX ( ALL + 94 ) AS col1 FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT - - col2 * col2 - + 57 AS col1 FROM tab1 AS cor0 WHERE NOT + ( + - col1 ) * + 18 * + 10 - col2 + - col1 IS NULL
----
3424
4567
9159

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT + - 64 DIV 23 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2260
SELECT + - 64 / 23 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL - 97 * - 16 AS col2 FROM tab0
----
1552
1552
1552

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) * col2 AS col2 FROM tab2
----
1600
3364
529

query II rowsort
SELECT + col0 AS col1, 19 FROM tab1
----
51
19
85
19
91
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT - MIN( ALL + col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2264
SELECT - MIN ( ALL + col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT ALL + - col1 + - + col1 FROM tab2 AS cor0
----
-102
-134
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 9 col1 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT col2 * col0 + col0 AS col2 FROM tab0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT DISTINCT - col0 + - CAST( + 78 AS SIGNED ) FROM tab0
----
-165
-175
-93

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - col0 + - CAST ( + 78 AS INTEGER ) FROM tab0
----
-165
-175
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 26 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col1 + 7 FROM tab1
----
-1337
-288
-3189

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NULL >= - col2
----
0

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NULL >= - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - COUNT( * ) * + MAX( DISTINCT - 41 ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-2273
SELECT - COUNT ( * ) * + MAX ( DISTINCT - 41 ) FROM tab1
----
123

query I rowsort
SELECT - col2 + + 77 FROM tab0
----
-22
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT DISTINCT COUNT( DISTINCT - col0 ) FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + ( + ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT COUNT ( DISTINCT - col0 ) FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + ( + ( - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL - COUNT( col0 ) * 54 AS col2 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL - COUNT ( col0 ) * 54 AS col2 FROM tab2
----
-162

query I rowsort
SELECT DISTINCT col0 * + 40 AS col2 FROM tab2
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT + col1 - col2 * + col1 AS col0 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + COUNT( * ) FROM tab0 WHERE NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT + COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT 37 * + SUM( DISTINCT CAST( - col0 AS SIGNED ) ) FROM tab0
----
-7363

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT 37 * + SUM ( DISTINCT CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-7363

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> + 24 * 42
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * col1 ) NOT BETWEEN - col0 / + col2 AND + 83 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 98 * + col2 AS col1 FROM tab2
----
2254
3920
5684

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * 92 + - 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT ALL - col1 DIV 2 AS col1 FROM tab1
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - col1 / 2 AS col1 FROM tab1
----
-2
-23
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT col2 + CAST( NULL AS SIGNED ) / + 96 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT col2 + CAST ( NULL AS INTEGER ) / + 96 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 69 AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL MIN( + ( + col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL MIN ( + ( + col1 ) ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2290
SELECT COUNT( * ) DIV SUM( ALL + col2 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT COUNT ( * ) / SUM ( ALL + col2 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( col0 ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT 11 DIV col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2292
SELECT 11 / col1 FROM tab1
----
0
0
2

query I rowsort
SELECT 17 * - col0 FROM tab0
----
-1479
-1649
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT MAX( ALL - 22 ) * - 13 AS col0 FROM tab1
----
286

skipif mysql # not compatible
query I rowsort label-2294
SELECT MAX ( ALL - 22 ) * - 13 AS col0 FROM tab1
----
286

query I rowsort
SELECT + 65 * + col1 AS col1 FROM tab1
----
3055
325
910

query I rowsort
SELECT + col0 * - 85 AS col0 FROM tab1
----
-4335
-7225
-7735

query I rowsort
SELECT - col0 + col2 * + ( col1 ) AS col2 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT ALL - 17 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col1 <= - col1 * + col2
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( - 77 - - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 37 BETWEEN col0 + 86 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 49 FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + + col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT COUNT( * ) * + 27 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( col2 ) * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT COUNT ( * ) * + 27 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( col2 ) * + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT ALL - col0 DIV 89 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL - col0 / 89 FROM tab1
----
-1
0
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( 58 ) BETWEEN NULL AND col0
----
47

query I rowsort
SELECT + 39 * col1 AS col0 FROM tab0 AS cor0
----
3159
39
819

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + ( MAX( DISTINCT + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2308
SELECT + ( MAX ( DISTINCT + col0 ) ) FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT 89 DIV 61 + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
16
88
98

skipif mysql # not compatible
query I rowsort label-2309
SELECT 89 / 61 + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
16
88
98

query I rowsort
SELECT + col2 * - + col2 AS col1 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ( - 3 ) + 88 * + col1 FROM tab2
----
4485
5893
6773

query III rowsort
SELECT ALL * FROM tab0 WHERE - 51 IN ( - 1 )
----

query I rowsort
SELECT col2 + + 25 AS col0 FROM tab0
----
124
35
72

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT DISTINCT + SUM( ALL + - 64 ) * COUNT( * ) + + MAX( ALL - col1 ) AS col2 FROM tab2
----
-627

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT + SUM ( ALL + - 64 ) * COUNT ( * ) + + MAX ( ALL - col1 ) AS col2 FROM tab2
----
-627

query I rowsort
SELECT - ( - + 27 ) + + 96 FROM tab2
----
123
123
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT 37 + + - COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT 37 + + - COUNT ( * ) FROM tab2
----
34

query I rowsort
SELECT ( - 20 ) + 74 FROM tab0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL + 36 + + SUM( col0 ) AS col1 FROM tab1
----
263

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + 36 + + SUM ( col0 ) AS col1 FROM tab1
----
263

query I rowsort
SELECT col0 * + 73 + col1 FROM tab1
----
3737
6210
6690

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( + 55 / - 56 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( + 55 / - 56 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + 76 * + col1 + + 84 AS col0 FROM tab2 cor0
----
3960
5176
5936

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2324
SELECT CAST( NULL AS DECIMAL ) / + ( - col2 * ( col2 / col0 ) ) FROM tab2 WHERE ( NULL ) IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-2324
SELECT CAST ( NULL AS REAL ) / + ( - col2 * ( col2 / col0 ) ) FROM tab2 WHERE ( NULL ) IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col1 + col2 >= ( 98 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 59 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 16 * - + col2 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 1 / - col0 ) NOT IN ( 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT DISTINCT - 57 - + CAST( + 61 AS SIGNED ) - col0 AS col1 FROM tab0 cor0
----
-133
-205
-215

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - 57 - + CAST ( + 61 AS INTEGER ) - col0 AS col1 FROM tab0 cor0
----
-133
-205
-215

query I rowsort
SELECT - + col2 + ( - col2 ) FROM tab0 cor0
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + 92 / + 66 <= ( NULL )
----

query I rowsort
SELECT - 47 FROM tab2 cor0 WHERE + col2 * - - 30 BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT + 51 + + 80 AS col2 FROM tab2 AS cor0
----
131
131
131

query I rowsort
SELECT ALL 26 - - + col2 FROM tab2 AS cor0
----
49
66
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT + 48 - - 34 + + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + 48 - - 34 + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * - + col0 >= col2
----
97
1
99

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL > + col2 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 31 ) col2 FROM tab2
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col0 FROM tab1
----
144
147
159

query I rowsort
SELECT + 82 + + col1 * + col0 AS col0 FROM tab1 WHERE NOT col2 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + - col1 AND + 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT DISTINCT col0 * col1 DIV + col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT col0 * col1 / + col0 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND + - 58 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL + COUNT( * ) * + 7 AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + COUNT ( * ) * + 7 AS col1 FROM tab0
----
21

query I rowsort
SELECT DISTINCT 55 * - 6 AS col1 FROM tab0
----
-330

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 NOT IN ( - 67 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT - 75 DIV + + 62 + - + col1 AS col0 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-2349
SELECT - 75 / + + 62 + - + col1 AS col0 FROM tab1 AS cor0
----
-15
-48
-6

query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab2 WHERE ( col0 - 17 ) IS NOT NULL
----
-13
-5
8

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT - COUNT( * ) * + 52 AS col0 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2352
SELECT - COUNT ( * ) * + 52 AS col0 FROM tab2 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL COUNT( DISTINCT - 87 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL COUNT ( DISTINCT - 87 ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT ALL + col2, ( - + col2 ) AS col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT - col1 * + + 45 * col2 AS col0 FROM tab1 AS cor0
----
-13275
-143820
-60480

query I rowsort
SELECT - - 39 * + col0 AS col1 FROM tab1 AS cor0
----
1989
3315
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL COUNT( DISTINCT 88 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL COUNT ( DISTINCT 88 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2358
SELECT 28 * col1 DIV + 71 + col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
107
71
93

skipif mysql # not compatible
query I rowsort label-2358
SELECT 28 * col1 / + 71 + col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
107
71
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL 1 + + COUNT( * ) + 32 AS col0 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL 1 + + COUNT ( * ) + 32 AS col0 FROM tab1
----
36

query II rowsort
SELECT - 7, + col0 FROM tab1
----
-7
51
-7
85
-7
91

query I rowsort
SELECT ALL + 75 + + - ( + col2 ) - - - col2 FROM tab0
----
-123
-19
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT ALL - CAST( NULL AS SIGNED ) + + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - CAST ( NULL AS INTEGER ) + + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + ( ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT + ( - 60 ) * COUNT( * ) FROM tab2 AS cor0 WHERE - 60 NOT IN ( - col1, 30 * + col1 * - + col2 + 11 )
----
-180

skipif mysql # not compatible
query I rowsort label-2364
SELECT + ( - 60 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE - 60 NOT IN ( - col1, 30 * + col1 * - + col2 + 11 )
----
-180

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + - 81 + 12 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT - ( - 29 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2367
SELECT - ( - 29 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - ( + col0 ) ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - - 47 + + + 27 - - col0 * - 44 AS col1 FROM tab0 AS cor0
----
-3754
-4194
-586

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( 78 - + + col2 - col1 )
----

query I rowsort
SELECT - col1 + ( - col2 ) / ( + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 - - - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 40 - col0 * - 9 - + + col2 FROM tab0 AS cor0
----
128
813
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2374
SELECT DISTINCT - + MAX( - CAST( + + col2 AS SIGNED ) ) - 10 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - + MAX ( - CAST ( + + col2 AS INTEGER ) ) - 10 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 2 AS col0 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col1 / + + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col1 / + + col2 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT col0 DIV - 21 FROM tab2
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-2378
SELECT col0 / - 21 FROM tab2
----
-2
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2379
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND CAST( - + 47 AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-2379
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND CAST ( - + 47 AS INTEGER ) * - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - 39 ) < 82
----

query I rowsort
SELECT DISTINCT - col1 * ( - col1 ) AS col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT 26 * 34 + COUNT( * ) AS col0 FROM tab2 WHERE NOT + 72 NOT BETWEEN ( col1 / - + col1 * ( + - 45 ) ) AND ( NULL )
----
884

skipif mysql # not compatible
query I rowsort label-2382
SELECT 26 * 34 + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 72 NOT BETWEEN ( col1 / - + col1 * ( + - 45 ) ) AND ( NULL )
----
884

query I rowsort
SELECT DISTINCT - col0 + - col0 FROM tab2 WHERE NOT + col0 + - ( + col2 ) - - + col2 * - col1 <> - 27
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + col2 <= - 81
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT - 25 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT - 25 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * 9 col2 FROM tab1
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL MIN( - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL MIN ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT + + MAX( DISTINCT - col1 ) DIV 96 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2388
SELECT + + MAX ( DISTINCT - col1 ) / 96 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( + col0 ) col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL - - 59 * MAX( + 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
236

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - - 59 * MAX ( + 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT ALL + col2 DIV 37 DIV 61 * col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + col2 / 37 / 61 * col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < 10
----

query I rowsort
SELECT + 90 + col2 AS col0 FROM tab0 AS cor0
----
100
137
189

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT COUNT( * ) + + SUM( DISTINCT + col0 ) - + COUNT( col2 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2396
SELECT COUNT ( * ) + + SUM ( DISTINCT + col0 ) - + COUNT ( col2 ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 > ( - 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2398
SELECT DISTINCT + ( + col0 ) AS col2, - CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT + ( + col0 ) AS col2, - CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT 68 DIV 54 DIV - + col1 - - - 30 * - 0 + - col1 FROM tab0 AS cor0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-2399
SELECT 68 / 54 / - + col1 - - - 30 * - 0 + - col1 FROM tab0 AS cor0
----
-2
-21
-81

query I rowsort
SELECT DISTINCT + - 58 FROM tab0 WHERE - + 62 IN ( - col1, + col1 * + + col0 )
----

query I rowsort
SELECT - 26 + + ( - col1 ) AS col2 FROM tab2
----
-103
-77
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col0 FROM tab0 WHERE NULL > ( - 7 )
----

query I rowsort
SELECT DISTINCT col2 + - col0 - + + col1 FROM tab2
----
-101
-74
-84

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + - col2 FROM tab2
----
NULL

query I rowsort
SELECT 73 + + 70 FROM tab2
----
143
143
143

query I rowsort
SELECT + 24 + - + col2 AS col1 FROM tab0
----
-23
-75
14

query III rowsort
SELECT * FROM tab0 WHERE - ( - 75 ) IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 / - col0 col2 FROM tab0 WHERE + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT DISTINCT 43 + - col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT 43 + - col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT DISTINCT SUM( col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT SUM ( col2 ) FROM tab2
----
121

query III rowsort
SELECT * FROM tab1 WHERE - 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 + 82 * + + col0 + + ( - 96 ) AS col2, 81 AS col0 FROM tab1 AS cor0
----
4137
81
6959
81
7457
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 79 - + col0 col0 FROM tab1 cor0
----
-130
-164
-170

query I rowsort
SELECT - - 8 * col0 AS col2 FROM tab2 AS cor0
----
368
512
600

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + - col1 / - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL COUNT( DISTINCT + 72 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL COUNT ( DISTINCT + 72 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT 70 - - col2 FROM tab2
----
110
128
93

query I rowsort
SELECT 68 AS col1 FROM tab2 WHERE + - 55 <> + 50
----
68
68
68

query III rowsort
SELECT * FROM tab1 WHERE + - col1 NOT BETWEEN NULL AND + 25 + + ( + col1 ) + - col0 * col1 * + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 25 * + col2 * + + 5 + + ( - - col0 ) * + col2 FROM tab2
----
11600
3933
7560

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT + SUM( + + ( + 41 ) ) + - 64 col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2424
SELECT DISTINCT + SUM ( + + ( + 41 ) ) + - 64 col2 FROM tab0 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL + col0 + + col1 + + CAST( + 14 AS SIGNED ) + - 0 FROM tab1 cor0
----
104
152
79

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + col0 + + col1 + + CAST ( + 14 AS INTEGER ) + - 0 FROM tab1 cor0
----
104
152
79

query I rowsort
SELECT 30 - 47 / 56 FROM tab0 cor0 WHERE 25 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 38 * + col0 AS col0 FROM tab0 AS cor0
----
3393
3783
585

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT ALL COUNT( * ), + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-2428
SELECT ALL COUNT ( * ), + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2429
SELECT + 50 + - 25 + 7 AS col1, COUNT( * ) col1 FROM tab2 cor0 WHERE NOT col1 < col0
----
32
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2429
SELECT + 50 + - 25 + 7 AS col1, COUNT ( * ) col1 FROM tab2 cor0 WHERE NOT col1 < col0
----
32
2

query II rowsort
SELECT ALL + + col1 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT ( + 34 ) AS col2 FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - SUM( DISTINCT - + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2432
SELECT - SUM ( DISTINCT - + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ( MIN( + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2433
SELECT ( MIN ( + col1 ) ) FROM tab0
----
1

query I rowsort
SELECT ALL - 16 FROM tab1 WHERE NOT ( - col0 * + col1 + - + 87 ) NOT BETWEEN + 4 * - col0 / - - col2 AND 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2435
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-2435
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 32 * + col0 AS col1 FROM tab1
----
-1632
-2720
-2912

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( NOT NULL > ( 14 / 77 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 > - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 55 * + - col2 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-44

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE + 96 * col0 + - + col2 IS NOT NULL
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 12 <= + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT - COUNT( * ) * - + 59 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2444
SELECT - COUNT ( * ) * - + 59 FROM tab0 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - - COUNT( * ) * - + MIN( + + ( - col1 ) ) * + 70 FROM tab2 AS cor0
----
16170

skipif mysql # not compatible
query I rowsort label-2445
SELECT - - COUNT ( * ) * - + MIN ( + + ( - col1 ) ) * + 70 FROM tab2 AS cor0
----
16170

query II rowsort
SELECT ALL + col2, + 18 + + col0 + - col0 + col0 AS col1 FROM tab1 AS cor0
----
59
103
68
109
96
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT COUNT( * ) * + 95 AS col2 FROM tab0 cor0
----
285

skipif mysql # not compatible
query I rowsort label-2448
SELECT COUNT ( * ) * + 95 AS col2 FROM tab0 cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT + MIN( DISTINCT - + 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2449
SELECT + MIN ( DISTINCT - + 0 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * + col1 + 25 FROM tab2 AS cor0
----
1198
3105
3911

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col0 * + col2 * + + col1 * - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab2 cor0 WHERE NOT ( NOT + col0 IS NOT NULL )
----
-23
-40
-58

query I rowsort
SELECT ALL + 66 * 22 * + 74 FROM tab2 AS cor0
----
107448
107448
107448

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col2 + col1 NOT BETWEEN + col2 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col0 * - 3 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2456
SELECT DISTINCT - ( + col1 ) * - 32 + + - col2 - - CAST( NULL AS SIGNED ) AS col2, + 30 col2 FROM tab2
----
NULL
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2456
SELECT DISTINCT - ( + col1 ) * - 32 + + - col2 - - CAST ( NULL AS INTEGER ) AS col2, + 30 col2 FROM tab2
----
NULL
30

query III rowsort
SELECT * FROM tab0 WHERE + 63 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 20 + + col1 AS col1 FROM tab2
----
1071
1407
1617

query I rowsort
SELECT DISTINCT + 30 + 25 FROM tab2
----
55

query I rowsort
SELECT DISTINCT ( + col1 ) - - col1 AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL - col2 + - - 91 FROM tab1
----
-5
23
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT + + col1 + - 51 DIV + col2 - - - col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-2462
SELECT + + col1 + - 51 / + col2 - - - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ( + col1 ) + + + col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT - col0 DIV + col0 col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2464
SELECT - col0 / + col0 col1 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + 80 FROM tab0 AS cor0
----
15
80
87
80
97
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT - - MAX( ALL + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 * - + col2 BETWEEN 76 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT - - MAX ( ALL + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 * - + col2 BETWEEN 76 AND NULL
----
NULL

query I rowsort
SELECT + col2 * + 64 FROM tab0
----
3008
6336
640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2468
SELECT DISTINCT ( + - 18 ) * + - col0 - + + 93 * - CAST( NULL AS SIGNED ) + + col0 col0, + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2468
SELECT DISTINCT ( + - 18 ) * + - col0 - + + 93 * - CAST ( NULL AS INTEGER ) + + col0 col0, + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2469
SELECT ALL - col0 AS col0, col1 DIV col2 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-2469
SELECT ALL - col0 AS col0, col1 / col2 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

query I rowsort
SELECT ( - + col0 ) FROM tab1 WHERE NOT col1 * 38 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 47 * col2 AS col0 FROM tab2
----
1081
1880
2726

query II rowsort
SELECT + col2 * - - col2 AS col0, - 60 * col0 * - 85 FROM tab2
----
1600
326400
3364
382500
529
234600

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2473
SELECT - col1 * CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT - col1 * CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - col1 ) * - col2 + + - 53 AS col1 FROM tab1 AS cor0
----
1291
242
3143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2475
SELECT - - COUNT( DISTINCT - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT - - COUNT ( DISTINCT - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + col2 * - - col1 * + 14 FROM tab0 AS cor0
----
1386
2940
53298

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( - 89 ) <> ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL COUNT( * ) + + SUM( - - col0 ) AS col0 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL COUNT ( * ) + + SUM ( - - col0 ) AS col0 FROM tab1 AS cor0
----
230

query II rowsort
SELECT ALL + col2 + 58, - col0 AS col1 FROM tab1 AS cor0
----
117
-85
126
-91
154
-51

query I rowsort
SELECT ALL - col0 * + - 41 AS col2 FROM tab0 cor0
----
3567
3977
615

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col0 > col0
----

query I rowsort
SELECT DISTINCT + 18 * 53 FROM tab1 cor0
----
954

query I rowsort
SELECT + + ( - col2 ) + + col0 AS col2 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT DISTINCT - col1 DIV - - 28 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT - col1 / - - 28 AS col1 FROM tab2
----
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 21 NOT BETWEEN NULL AND - col2 * + 38 - - col2 * - 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2488
SELECT * FROM tab0 WHERE + CAST( + col2 AS SIGNED ) <= + col0
----
87
21
10

skipif mysql # not compatible
query III rowsort label-2488
SELECT * FROM tab0 WHERE + CAST ( + col2 AS INTEGER ) <= + col0
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + 61 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT ALL col0 - - CAST( + + ( col0 ) AS SIGNED ) AS col2 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL col0 - - CAST ( + + ( col0 ) AS INTEGER ) AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT + col2 + + - 48 FROM tab2 AS cor0
----
-25
-8
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL col0 DIV - col2 + col1 - + col1 col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2492
SELECT ALL col0 / - col2 + col1 - + col1 col0 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT + + 11 * + 77 + - + 37 + COUNT( * ) + 89 FROM tab0 AS cor0
----
902

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT + + 11 * + 77 + - + 37 + COUNT ( * ) + 89 FROM tab0 AS cor0
----
902

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL AND NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT - MAX( DISTINCT 97 ) AS col0 FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2495
SELECT - MAX ( DISTINCT 97 ) AS col0 FROM tab1 cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2496
SELECT + - COUNT( * ) DIV - - 26 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2496
SELECT + - COUNT ( * ) / - - 26 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT DISTINCT MIN( - 88 ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT MIN ( - 88 ) FROM tab0 AS cor0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - 26 * - 80 FROM tab1 cor0
----
2080
2080
2080

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT col2 >= col0 ) )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT SUM( 20 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2502
SELECT SUM ( 20 ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT DISTINCT - + SUM( DISTINCT + ( + col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - + SUM ( DISTINCT + ( + col2 ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL - SUM( + + 83 ) FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - SUM ( + + 83 ) FROM tab2
----
-249

onlyif mysql # aggregate syntax: 
query II rowsort label-2505
SELECT - 5 AS col2, + ( COUNT( * ) ) AS col0 FROM tab1
----
-5
3

skipif mysql # not compatible
query II rowsort label-2505
SELECT - 5 AS col2, + ( COUNT ( * ) ) AS col0 FROM tab1
----
-5
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) = col2 + - + ( - 71 ) + + + 46 + - col0 + + col1 * + + col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2507
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT + + col1 > + 58
----
1

skipif mysql # not compatible
query I rowsort label-2507
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT + + col1 > + 58
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT 72 >= + + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + 21 / - 92 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + 21 / - 92 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT + MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2511
SELECT + MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT ( - col0 ) + col0 DIV + 27 FROM tab2 AS cor0
----
-45
-62
-73

skipif mysql # not compatible
query I rowsort label-2512
SELECT ( - col0 ) + col0 / + 27 FROM tab2 AS cor0
----
-45
-62
-73

query I rowsort
SELECT - - col2 * + + col2 + - + col2 + + ( ( - col2 ) ) * - col0 AS col0 FROM tab1 AS cor0
----
10744
14016
8437

query I rowsort
SELECT ALL - 94 AS col1 FROM tab0 cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - + 79 col1 FROM tab2 AS cor0 WHERE 48 * - col1 IS NOT NULL
----
3634
5056
5925

query I rowsort
SELECT + col1 * - + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + - 46 * - col2 AS col1 FROM tab0 AS cor0
----
2162
4554
460

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND + - col1 + col1 / - col0 - + - 78
----

query I rowsort
SELECT + - 31 * col2 AS col0 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT ( MAX( - col1 ) ) - + - COUNT( ALL - + 72 ) AS col0 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT ( MAX ( - col1 ) ) - + - COUNT ( ALL - + 72 ) AS col0 FROM tab0 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL + MAX( - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL + MAX ( - + col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 72 * col2 BETWEEN ( + - col1 + + col2 ) AND + col0 AND + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL - CAST( 11 AS SIGNED ) AS col2 FROM tab0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - CAST ( 11 AS INTEGER ) AS col2 FROM tab0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL 0 + COUNT( ALL + - 79 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL 0 + COUNT ( ALL + - 79 ) FROM tab2
----
3

query I rowsort
SELECT col0 + - col2 + - col2 AS col1 FROM tab0
----
-101
-79
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - 8 + 4 AS col2, + col1 col2 FROM tab1
----
412
14
684
5
732
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT COUNT( * ) FROM tab1 WHERE + + col1 * - 99 - + 92 IN ( + col0 * + col1, col0, + col2 * - 43, + + ( - 13 ), + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-2527
SELECT COUNT ( * ) FROM tab1 WHERE + + col1 * - 99 - + 92 IN ( + col0 * + col1, col0, + col2 * - 43, + + ( - 13 ), + 59 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT - SUM( + col1 ) * + 78 AS col0 FROM tab1
----
-5148

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT - SUM ( + col1 ) * + 78 AS col0 FROM tab1
----
-5148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 38 col2 FROM tab1 AS cor0
----
-43
-52
-85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL = - - col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT MIN( - - 25 ) AS col2 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT MIN ( - - 25 ) AS col2 FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT - 36 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT ALL + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT 44 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
44
44
44

query I rowsort
SELECT ALL + + ( - - col1 ) * - col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE col2 * 18 IS NOT NULL
----
237160
260362
59823

query I rowsort
SELECT ALL - + 19 AS col2 FROM tab2 cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + ( + + col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT - + col1 DIV - 65 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2539
SELECT - + col1 / - 65 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * 35 * col0 FROM tab2
----
172480
175875
82110

query I rowsort
SELECT + ( + 3 ) AS col2 FROM tab2
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + - 27 + - col1 col1 FROM tab1
----
-15
-48
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + - col1
----

query I rowsort
SELECT + col2 + - col2 + col2 AS col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT ALL - CAST( NULL AS SIGNED ) + + + 42 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 42 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 54 col2 FROM tab2 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT MIN( ALL - - 72 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT MIN ( ALL - - 72 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
72

query I rowsort
SELECT + 72 + - col2 FROM tab2
----
14
32
49

query I rowsort
SELECT ALL 92 * - col0 * col0 + + 39 FROM tab1
----
-239253
-664661
-761813

query I rowsort
SELECT - - ( + + 90 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> 15
----

query I rowsort
SELECT - - col2 + - col1 * + 49 FROM tab1 AS cor0
----
-186
-2235
-590

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 4 * - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT DISTINCT col1 + - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT col1 + - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2555
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( 10 AS SIGNED ) + + 61 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2555
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( 10 AS INTEGER ) + + 61 IS NULL
----

query I rowsort
SELECT col0 * - 11 + - ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-455
-627
-758

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2557
SELECT + col2 DIV + - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2557
SELECT + col2 / + - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col1 col0, + col0 AS col2 FROM tab0 AS cor0
----
1
97
441
87
6561
15

query I rowsort
SELECT - 11 AS col2 FROM tab2 AS cor0 WHERE NOT - 10 IS NULL
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT + col0 * col1 + + + 42 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2
----

query II rowsort
SELECT ALL 48, + ( + col2 ) FROM tab0 AS cor0
----
48
10
48
47
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL >= + 47
----
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL >= + 47
----
0

query I rowsort
SELECT DISTINCT 30 * + col2 FROM tab0
----
1410
2970
300

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 < - 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 14, + 59 AS col2 FROM tab2 WHERE NOT + col2 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT MIN( ALL - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT MIN ( ALL - col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT ALL + - 1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1 AS cor0 WHERE NOT 11 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT DISTINCT - 54 * - + 10 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT - 54 * - + 10 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * 72 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT 84 * COUNT( * ) AS col1 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2574
SELECT 84 * COUNT ( * ) AS col1 FROM tab2
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col0 + + 47 col2, + ( + + 93 ) AS col0 FROM tab1
----
-2554
93
-7178
93
-8234
93

query I rowsort
SELECT ALL - 59 + + col1 FROM tab1
----
-12
-45
-54

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE + ( col1 ) IS NULL
----

query I rowsort
SELECT + col1 * col0 + - 89 + + col2 * - col1 * - + 25 AS col2 FROM tab2 AS cor0
----
102086
31582
81839

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT col2 DIV 12 + - 11 FROM tab0 AS cor0
----
-11
-3
-8

skipif mysql # not compatible
query I rowsort label-2579
SELECT col2 / 12 + - 11 FROM tab0 AS cor0
----
-11
-3
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL + 23 * CAST( - col2 AS SIGNED ) + + - 57 FROM tab2
----
-1391
-586
-977

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + 23 * CAST ( - col2 AS INTEGER ) + + - 57 FROM tab2
----
-1391
-586
-977

query I rowsort
SELECT + + 97 + + + 68 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ba887a18b86a2c64d4b2c70e5cbb32da

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT - - ( + col0 ) DIV + col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2582
SELECT - - ( + col0 ) / + col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2583
SELECT - - MAX( col0 ) AS col1, 51 FROM tab1 AS cor0
----
91
51

skipif mysql # not compatible
query II rowsort label-2583
SELECT - - MAX ( col0 ) AS col1, 51 FROM tab1 AS cor0
----
91
51

query I rowsort
SELECT DISTINCT col0 - + col1 * + + col2 FROM tab0 AS cor0
----
-123
-2
-3792

query I rowsort
SELECT ALL - + col2 + ( + 35 ) FROM tab1 AS cor0
----
-24
-33
-61

query I rowsort
SELECT col1 - + + 82 + - col1 - + + 48 AS col1 FROM tab0 AS cor0
----
-130
-130
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT - COUNT( * ) - + MIN( - col2 ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - COUNT ( * ) - + MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT + COUNT( DISTINCT + 88 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + COUNT ( DISTINCT + 88 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE + + col2 <> - ( + col1 ) * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + + 69 * + 60 FROM tab2
----
4063
4073
4089

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL - 66 * - ( - COUNT( * ) ) AS col0 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - 66 * - ( - COUNT ( * ) ) AS col0 FROM tab2
----
-198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2593
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + + ( col2 ) FROM tab0 WHERE NOT NULL = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT + col1 * col0 DIV - + 45 - - col1 * + col0 FROM tab2 AS cor0
----
2294
4819
4914

skipif mysql # not compatible
query I rowsort label-2595
SELECT + col1 * col0 / - + 45 - - col1 * + col0 FROM tab2 AS cor0
----
2294
4819
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT + - SUM( ALL + - 69 ) col0 FROM tab2 cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2596
SELECT + - SUM ( ALL + - 69 ) col0 FROM tab2 cor0
----
207

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + + 41 col2 FROM tab0 AS cor0
----
-1927
-4059
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE ( col1 * + CAST( NULL AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE ( col1 * + CAST ( NULL AS INTEGER ) ) IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT DISTINCT COUNT( * ) * + CAST( - + 98 AS SIGNED ) AS col0 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT COUNT ( * ) * + CAST ( - + 98 AS INTEGER ) AS col0 FROM tab2
----
-294

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2601
SELECT ALL 95 * - ( - 2 ) * + col2 - col0 DIV + 17 AS col2, - CAST( NULL AS SIGNED ) FROM tab2
----
11016
NULL
4368
NULL
7597
NULL

skipif mysql # not compatible
query II rowsort label-2601
SELECT ALL 95 * - ( - 2 ) * + col2 - col0 / + 17 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
11016
NULL
4368
NULL
7597
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + col1 * 62 <> + 37 + + 99 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 70 * ( + + col2 ) AS col0 FROM tab2 AS cor0
----
1610
2800
4060

query II rowsort
SELECT ALL - col2 AS col0, 36 FROM tab1 AS cor0
----
-59
36
-68
36
-96
36

query I rowsort
SELECT ALL + - 16 * + - ( + 27 ) FROM tab2 AS cor0
----
432
432
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT col0 + CAST( - + 61 AS SIGNED ) FROM tab1 AS cor0
----
-10
24
30

skipif mysql # not compatible
query I rowsort label-2606
SELECT col0 + CAST ( - + 61 AS INTEGER ) FROM tab1 AS cor0
----
-10
24
30

query I rowsort
SELECT ALL - 59 + + col2 - 7 AS col0 FROM tab2 AS cor0
----
-26
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + COUNT( * ) + + MAX( - + 28 ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2608
SELECT + COUNT ( * ) + + MAX ( - + 28 ) FROM tab1 AS cor0
----
-25

query I rowsort
SELECT 77 + ( + col1 ) AS col2 FROM tab2
----
128
144
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL + CAST( NULL AS SIGNED ) / + + 3 / - - ( + col2 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2610
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 3 / - - ( + col2 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * col1 col2 FROM tab1
----
1293
210
3105

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT 0 + + 96 * - - col0 - + col2 DIV + 98 AS col1 FROM tab0
----
1440
8352
9311

skipif mysql # not compatible
query I rowsort label-2612
SELECT 0 + + 96 * - - col0 - + col2 / + 98 AS col1 FROM tab0
----
1440
8352
9311

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT - 73 + + 12 DIV - col1 FROM tab2
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2613
SELECT - 73 + + 12 / - col1 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT ALL 13 + + - 72 * + + 95 AS col0 FROM tab0
----
-6827
-6827
-6827

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT DISTINCT - 33 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - 33 / col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NOT NULL OR col2 BETWEEN - col1 AND + col0
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT DISTINCT col0 DIV - 69 + 42 + + - col1 * + 39 AS col1 FROM tab2
----
-1947
-2572
-2961

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT col0 / - 69 + 42 + + - col1 * + 39 AS col1 FROM tab2
----
-1947
-2572
-2961

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2618
SELECT ALL - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 29 + + - ( + - col2 ) BETWEEN NULL AND + + 92 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT 15 + CAST( - - 81 AS SIGNED ) AS col0 FROM tab0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-2620
SELECT 15 + CAST ( - - 81 AS INTEGER ) AS col0 FROM tab0
----
96
96
96

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col2, - 55 FROM tab2
----
28
-55
37
-55
9
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + + + 87 col0 FROM tab1
----
146
155
183

query III rowsort
SELECT ALL * FROM tab2 WHERE - 76 / + 43 + 34 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 16 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IN ( - + 82 )
----

query I rowsort
SELECT - col0 - 35 FROM tab0
----
-122
-132
-50

query I rowsort
SELECT + col0 * 45 - - 68 * + col1 FROM tab1
----
3247
4165
7291

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL + COUNT( * ) + 5 AS col2 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL + COUNT ( * ) + 5 AS col2 FROM tab2 AS cor0
----
8

query II rowsort
SELECT - col0 AS col2, 35 AS col2 FROM tab1 cor0
----
-51
35
-85
35
-91
35

query I rowsort
SELECT DISTINCT - col2 * col0 - col0 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT - - MAX( ALL - 17 ) AS col1 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT - - MAX ( ALL - 17 ) AS col1 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT col1 * + - 74 FROM tab2 AS cor0
----
-3774
-4958
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2633
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT ( + 81 ) FROM tab1
----
81
81
81

query III rowsort
SELECT ALL * FROM tab1 WHERE + 97 IS NULL
----

query I rowsort
SELECT ALL ( + - ( - + 85 ) ) * + col2 FROM tab0
----
3995
8415
850

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab0 WHERE ( - col2 ) IS NOT NULL
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - ( - 68 ) * - col2 + col0 col0 FROM tab0 AS cor0 WHERE NOT - col2 IN ( + col1 * + col2, + 71 )
----
150227
666565
6887

query II rowsort
SELECT DISTINCT + 78 / + - col0 AS col2, - col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col2 * col1 * - + col0 + - 1 AS col2 FROM tab0 cor0
----
-18271
-57106
-9604

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 75 <> NULL
----

query I rowsort
SELECT ALL - - 24 + + 89 * col0 AS col2 FROM tab1 AS cor0
----
4563
7589
8123

query I rowsort
SELECT ALL + + 42 AS col1 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT + + col1 DIV + + 50 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2644
SELECT + + col1 / + + 50 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT col2 * - 28 FROM tab0 AS cor0
----
-1316
-2772
-280

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - col0 * + col1
----

query I rowsort
SELECT ALL - col1 * + col1 * ( 20 ) AS col2 FROM tab1 AS cor0
----
-3920
-44180
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT + - COUNT( * ) col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2648
SELECT + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL - + 45 * + 49 + + - COUNT( * ) col0 FROM tab1 AS cor0
----
-2208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2649
SELECT ALL - + 45 * + 49 + + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT COUNT( * ) + - + ( - MIN( DISTINCT 9 ) ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT COUNT ( * ) + - + ( - MIN ( DISTINCT 9 ) ) FROM tab1
----
12

query II rowsort
SELECT - 24 + ( + ( + 9 ) ) AS col1, - ( col2 ) AS col0 FROM tab2
----
-15
-23
-15
-40
-15
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT - ( - - 68 ) + + - COUNT( * ) AS col1 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT - ( - - 68 ) + + - COUNT ( * ) AS col1 FROM tab2
----
-71

query I rowsort
SELECT + 88 + - col1 AS col2 FROM tab0 AS cor0
----
67
7
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 95 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / - 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col2 * - 98 * 75 AS col1 FROM tab2 AS cor0
----
-169050
-294000
-426300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2658
SELECT ALL + - col2 - CAST( NULL AS SIGNED ) AS col0, + 28 DIV 42 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL + - col2 - CAST ( NULL AS INTEGER ) AS col0, + 28 / 42 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT col1 + - col1 * + 90 FROM tab0 AS cor0
----
-1869
-7209
-89

query I rowsort
SELECT ALL + 71 FROM tab2 AS cor0 WHERE ( ( NOT ( NULL IS NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2661
SELECT DISTINCT + 37 DIV + + col0 * - - 37, + col1 col1 FROM tab2 cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2661
SELECT DISTINCT + 37 / + + col0 * - - 37, + col1 col1 FROM tab2 cor0
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT - col0 <= 0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col0, col0 * + col1 * - 76 AS col0 FROM tab1
----
-14
-54264
-47
-325052
-5
-32300

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT DISTINCT col1 DIV - - 36 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT col1 / - - 36 FROM tab2
----
1
2

query I rowsort
SELECT DISTINCT - 7 FROM tab0 WHERE NOT + + col0 IS NULL
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT + COUNT( ALL col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2667
SELECT + COUNT ( ALL col2 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT MAX( DISTINCT - 53 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-2668
SELECT MAX ( DISTINCT - 53 ) FROM tab2
----
-53

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 WHERE NOT - 38 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 92 + col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - - col1 * col2 AS col0 FROM tab1 cor0
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT + 80 * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL >= col2 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT + 80 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL >= col2 / + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ( + COUNT( * ) ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2673
SELECT ( + COUNT ( * ) ) FROM tab1, tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL + SUM( ALL + ( - 73 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL + SUM ( ALL + ( - 73 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 + - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT + - CAST( - col1 AS SIGNED ) + + col0 FROM tab0 cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-2677
SELECT + - CAST ( - col1 AS INTEGER ) + + col0 FROM tab0 cor0
----
108
96
98

query II rowsort
SELECT - 25 + + + col2, 27 AS col1 FROM tab1 cor0
----
34
27
43
27
71
27

query I rowsort
SELECT + 96 + 28 * - 36 FROM tab1 AS cor0
----
-912
-912
-912

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT - - 72 * + - ( - - 96 ) + - 86 + - col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-6998
-6999
-7000

skipif mysql # not compatible
query I rowsort label-2680
SELECT - - 72 * + - ( - - 96 ) + - 86 + - col1 / + col2 AS col2 FROM tab0 AS cor0
----
-6998
-6999
-7000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT ALL + 35 AS col1 FROM tab0 WHERE - CAST( - + 75 AS SIGNED ) <= + col0 + + - col1
----
35

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + 35 AS col1 FROM tab0 WHERE - CAST ( - + 75 AS INTEGER ) <= + col0 + + - col1
----
35

query I rowsort
SELECT - 52 + + - col0 * - col2 FROM tab1
----
4844
4963
6136

query I rowsort
SELECT DISTINCT - 73 FROM tab0 WHERE NULL >= + - col1 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT col0 * + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2684
SELECT col0 * + - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + 93, col0 + + - col2 AS col1 FROM tab1
----
93
-45
93
23
93
26

query II rowsort
SELECT ALL - 97 AS col0, col1 FROM tab2
----
-97
51
-97
67
-97
77

query I rowsort
SELECT DISTINCT - 67 * + col1 * - 80 * + 1 + + 22 + 39 AS col2 FROM tab1
----
251981
26861
75101

query I rowsort
SELECT ALL + col1 * + col2 + - col0 AS col2 FROM tab0 AS cor0
----
123
2
3792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( - col1 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * + - 53 + 91 col1 FROM tab2
----
2552
3523
4124

onlyif mysql # aggregate syntax: 
query II rowsort label-2691
SELECT COUNT( * ) * - - 44 + COUNT( DISTINCT + - col0 ) AS col1, + COUNT( * ) FROM tab0
----
135
3

skipif mysql # not compatible
query II rowsort label-2691
SELECT COUNT ( * ) * - - 44 + COUNT ( DISTINCT + - col0 ) AS col1, + COUNT ( * ) FROM tab0
----
135
3

query I rowsort
SELECT ALL 39 * + + col0 FROM tab2
----
1794
2496
2925

query I rowsort
SELECT ALL col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) col0 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2696
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) col0 FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT ( + 49 ) FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT - SUM( - 14 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-2698
SELECT - SUM ( - 14 ) FROM tab1
----
42

query II rowsort
SELECT ALL + col1 * - col2, + col1 AS col1 FROM tab2
----
-1173
51
-3080
77
-3886
67

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL IN ( + 35 + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT MIN( DISTINCT - col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2701
SELECT MIN ( DISTINCT - col2 ) col2 FROM tab0
----
-99

query II rowsort
SELECT 98 * 24 * + col1 AS col0, + 70 FROM tab0 AS cor0
----
190512
70
2352
70
49392
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT ALL + MAX( ALL + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + MAX ( ALL + col2 ) FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab0 cor0 WHERE NOT NULL <= 22
----

query I rowsort
SELECT + - 48 FROM tab0 cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2706
SELECT ALL * FROM tab2 WHERE + - CAST( - col0 AS DECIMAL ) * - 1 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2706
SELECT ALL * FROM tab2 WHERE + - CAST ( - col0 AS REAL ) * - 1 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 29 + col2 * - col1 * + - col0 FROM tab0
----
18299
57134
9632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT ALL + CAST( + - 32 AS SIGNED ) + COUNT( * ) * - COUNT( * ) * - 82 FROM tab2
----
706

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + CAST ( + - 32 AS INTEGER ) + COUNT ( * ) * - COUNT ( * ) * - 82 FROM tab2
----
706

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT DISTINCT col1 * + 16 - col2 + - - col1 DIV + col1 FROM tab1
----
129
22
685

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT col1 * + 16 - col2 + - - col1 / + col1 FROM tab1
----
129
22
685

query I rowsort
SELECT col2 * - 6 + col1 + col2 FROM tab2 AS cor0
----
-123
-223
-64

query I rowsort
SELECT DISTINCT + col1 + - 10 FROM tab0 AS cor0
----
-9
11
71

query I rowsort
SELECT DISTINCT - + 49 - + col0 + col1 * + + col1 AS col1 FROM tab2 AS cor0
----
2506
4365
5816

query I rowsort
SELECT + 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 2 * + col1 * 91 col2 FROM tab1 AS cor0
----
129948
77350
778414

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT COUNT( * ) col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2715
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 94 + - - 29 + - ( + 17 ) * + 72 IN ( + 31 / + - col2 + + ( - col2 ) + - col2 + + 65 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * + 93 * - col1 AS col2 FROM tab1
----
124992
27435
297228

query I rowsort
SELECT ALL - col1 * + - col2 FROM tab1
----
1344
295
3196

query II rowsort
SELECT col1, 24 FROM tab1
----
14
24
47
24
5
24

query II rowsort
SELECT 39 AS col0, col1 AS col0 FROM tab0
----
39
1
39
21
39
81

query I rowsort
SELECT ALL - 95 * col0 FROM tab0
----
-1425
-8265
-9215

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 / - col2 - + - col0 * - - col0 + - - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT SUM( ALL - - col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2723
SELECT SUM ( ALL - - col0 ) AS col0 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, + col1 col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT + 48 * + ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT + 48 * + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 60 * + col2 < col2 * - - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + - 93 * + col2 AS col0 FROM tab2
----
109089
286440
361398

query I rowsort
SELECT ALL 11 + + - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT ( - - CAST( NULL AS SIGNED ) ) + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT ( - - CAST ( NULL AS INTEGER ) ) + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT DISTINCT - col0 * - col1 + - - col1 DIV + col2 AS col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - col0 * - col1 + - - col1 / + col2 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + col0 * - 60 FROM tab2
----
-2760
-3840
-4500

query II rowsort
SELECT ALL col2, - col1 AS col2 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + - 42 * 87 - - 67 * - col2 FROM tab2 AS cor0
----
-5195
-6334
-7540

query I rowsort
SELECT + - 47 * - - 88 + col0 + + 22 * + col1 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-3011
-3777
-3941

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT DISTINCT - - COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT - - COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 6 * + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-14076
-29568
-30150

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT MIN( col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2738
SELECT MIN ( col0 ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT + col1 / col2 - CAST( NULL AS SIGNED ) * 55 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT + col1 / col2 - CAST ( NULL AS INTEGER ) * 55 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL - MAX( - 27 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - MAX ( - 27 ) FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL 32 * - 58 + - CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL 32 * - 58 + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 26 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT COUNT( - ( - col1 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT COUNT ( - ( - col1 ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( 78 ) / col2 - + ( - 27 ) ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> col0
----

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + 6 + - 72 FROM tab2
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT + 28 - + CAST( col2 + col2 AS SIGNED ) AS col2 FROM tab0
----
-170
-66
8

skipif mysql # not compatible
query I rowsort label-2750
SELECT + 28 - + CAST ( col2 + col2 AS INTEGER ) AS col2 FROM tab0
----
-170
-66
8

query I rowsort
SELECT 4 - col2 * ( 31 ) AS col1 FROM tab1
----
-1825
-2104
-2972

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( + col0 * col0 ) NOT BETWEEN - 57 AND + 82
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col2 - col1 )
----

query I rowsort
SELECT ALL 23 FROM tab2 WHERE NOT ( col2 / - col2 ) > + ( + 6 )
----
23
23
23

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) BETWEEN col1 * + 45 AND - 45 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT - CAST( - col1 AS SIGNED ) + col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2756
SELECT - CAST ( - col1 AS INTEGER ) + col2 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE NOT col1 >= 2
----

query I rowsort
SELECT DISTINCT 37 * 86 AS col0 FROM tab1 AS cor0
----
3182

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - ( 97 ) ) <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + - col2 col2 FROM tab1 AS cor0
----
1248
236
3128

query I rowsort
SELECT ALL 64 * - col2 FROM tab0 AS cor0
----
-3008
-6336
-640

query I rowsort
SELECT - col1 + + 22 FROM tab2 AS cor0
----
-29
-45
-55

query I rowsort
SELECT + 83 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-14
-4
68

query I rowsort
SELECT ALL - ( + col1 ) * 82 AS col0 FROM tab1 AS cor0
----
-1148
-3854
-410

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( ( - 79 ) ) + col2 ) NOT BETWEEN ( - col2 ) AND - col2 * + col0 + + 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT MIN( ALL + col2 ) * 35 FROM tab0 WHERE col2 * col2 - 63 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT MIN ( ALL + col2 ) * 35 FROM tab0 WHERE col2 * col2 - 63 IS NULL
----
NULL

query I rowsort
SELECT ALL 18 + col1 * - 20 AS col1 FROM tab1
----
-262
-82
-922

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT ALL + + col2 + - 27 DIV 36 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + + col2 + - 27 / 36 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT + - COUNT( ALL col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2769
SELECT + - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - - MAX( + col1 ) - 87 AS col1 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2770
SELECT - - MAX ( + col1 ) - 87 AS col1 FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + col0 )
----
0

query I rowsort
SELECT ALL + ( - col1 ) FROM tab0 cor0 WHERE NOT NULL IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2773
SELECT + col1 - - CAST( col1 + ( ( 16 ) ) AS SIGNED ) * + 99 FROM tab2 AS cor0
----
6684
8284
9284

skipif mysql # not compatible
query I rowsort label-2773
SELECT + col1 - - CAST ( col1 + ( ( 16 ) ) AS INTEGER ) * + 99 FROM tab2 AS cor0
----
6684
8284
9284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2774
SELECT DISTINCT - 97 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - 97 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
32

query I rowsort
SELECT ( + col0 ) - + ( + col2 ) AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT - 28 - COUNT( * ) AS col0 FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - 28 - COUNT ( * ) AS col0 FROM tab0 cor0
----
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( + col0 * + 8 )
----

query I rowsort
SELECT col1 + + col1 * - col1 FROM tab0 WHERE ( - col0 ) BETWEEN ( NULL ) AND ( - ( - 82 ) + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2779
SELECT DISTINCT * FROM tab1 WHERE NOT 60 + col1 IS NULL OR NOT - CAST( NULL AS SIGNED ) IN ( + 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2779
SELECT DISTINCT * FROM tab1 WHERE NOT 60 + col1 IS NULL OR NOT - CAST ( NULL AS INTEGER ) IN ( + 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( - 78 * 30 ) NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT DISTINCT - col2 DIV + - col1 AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT - col2 / + - col1 AS col1 FROM tab1
----
1
11
6

query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 AS col0 FROM tab0
----
-11
-34
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= 83
----

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE + col2 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 16 col2 FROM tab2
----
-39
-56
-74

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) <> ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT - COUNT( DISTINCT - 78 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT - COUNT ( DISTINCT - 78 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 85 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 85 NOT IN ( col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT ALL - col1 DIV col0 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - col1 / col0 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= ( - col1 ) AND NOT ( + ( + col0 ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2790
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= ( - col1 ) AND NOT ( + ( + col0 ) ) > NULL
----

query I rowsort
SELECT + ( - + 81 ) FROM tab1
----
-81
-81
-81

query I rowsort
SELECT 96 * - col1 FROM tab2
----
-4896
-6432
-7392

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) < - - 41
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT DISTINCT - 84 * - + CAST( - + 68 AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
-5709

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - 84 * - + CAST ( - + 68 AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
-5709

query I rowsort
SELECT 58 AS col1 FROM tab1 AS cor0 WHERE NOT ( 53 ) IS NOT NULL
----

query I rowsort
SELECT 15 * + col0 + + - col1 + + col0 AS col1 FROM tab0 AS cor0
----
1371
1551
159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2797
SELECT ALL - MIN( DISTINCT - - ( CAST( NULL AS DECIMAL ) ) ) * - - 27 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - MIN ( DISTINCT - - ( CAST ( NULL AS REAL ) ) ) * - - 27 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE NOT 25 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL + COUNT( DISTINCT - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + COUNT ( DISTINCT - col2 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT ALL + 88 + col1 * + + 42 * + - CAST( NULL AS SIGNED ) / - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL + 88 + col1 * + + 42 * + - CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT 99 / 79 + + col0 / + col0 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT 99 / 79 + + col0 / + col0 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE - col1 - 65 * col1 <> col1
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col1 FROM tab2
----
9
9
9

query I rowsort
SELECT ALL - 11 * + 45 FROM tab0
----
-495
-495
-495

query I rowsort
SELECT ALL col0 + col2 + - + 57 + - - col0 * - col2 FROM tab1
----
-4806
-4928
-6086

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL < - 53 )
----

query I rowsort
SELECT DISTINCT 47 * - col2 + + 56 FROM tab2 cor0
----
-1025
-1824
-2670

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT ( col0 + - 61 * col0 ) IN ( col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL - COUNT( * ) * 10 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL - COUNT ( * ) * 10 FROM tab0 AS cor0
----
-30

query II rowsort
SELECT DISTINCT 75, col1 AS col2 FROM tab1
----
75
14
75
47
75
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2811
SELECT 62 * 0 - + - COUNT( * ) AS col0, + MAX( DISTINCT 73 ) + + 10 FROM tab1
----
3
83

skipif mysql # not compatible
query II rowsort label-2811
SELECT 62 * 0 - + - COUNT ( * ) AS col0, + MAX ( DISTINCT 73 ) + + 10 FROM tab1
----
3
83

query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab0 WHERE NOT - col2 NOT BETWEEN col1 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + + 42 col2 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NULL IN ( + 67 * - col1 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NULL IN ( + 67 * - col1 * + col0 )
----
0

query I rowsort
SELECT DISTINCT 98 * - col1 * - ( - col0 ) + + col2 - + col0 * col0 FROM tab0 cor0
----
-119248
-186605
-18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE 74 IN ( - + col0 * - - 96 - - col0 + col1 * + 10 )
----

query I rowsort
SELECT ( col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) - col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) - col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 IN ( - + col2 * - col1 * + 35 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT SUM( DISTINCT + - 10 ) AS col1 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2820
SELECT SUM ( DISTINCT + - 10 ) AS col1 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT - 54 AS col0 FROM tab2 AS cor0 WHERE ( 22 + + col2 ) IS NOT NULL
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * + - 9 col0 FROM tab2
----
-126
-126
-126

query I rowsort
SELECT + 23 FROM tab2 WHERE NULL IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 42 * col0 <= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 80 * col0 AS col0 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT + 98 * - + COUNT( * ) FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-2826
SELECT + 98 * - + COUNT ( * ) FROM tab2
----
-294

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= ( + 71 )
----

query I rowsort
SELECT ALL col1 * + 32 * - col2 FROM tab0
----
-121824
-3168
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL COUNT( * ) * ( + 43 ) AS col2 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL COUNT ( * ) * ( + 43 ) AS col2 FROM tab0
----
129

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / 96 >= + - 23 * + col2 * - - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT ALL CAST( - + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2833
SELECT + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2833
SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab1 WHERE NOT - 37 >= - col1
----
-36
-36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 38 IN ( - col2 )
----

query I rowsort
SELECT ALL + col1 * - 34 * + + col2 AS col2 FROM tab1
----
-10030
-108664
-45696

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 45 ) NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - MIN( col0 ) * COUNT( * ) * - 58 + - 36 + 66 + 6 * + 11 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
8232

skipif mysql # not compatible
query I rowsort label-2839
SELECT - MIN ( col0 ) * COUNT ( * ) * - 58 + - 36 + 66 + 6 * + 11 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
8232

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2840
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + + CAST( + - col2 AS DECIMAL ) + - 12
----

skipif mysql # not compatible
query III rowsort label-2840
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + + CAST ( + - col2 AS REAL ) + - 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * - - 68 col1 FROM tab0 AS cor0
----
544
544
544

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 77 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + ( + 62 ) AS col1 FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2844
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-2844
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT CAST( NULL AS SIGNED ) * + + ( + col2 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT CAST ( NULL AS INTEGER ) * + + ( + col2 ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE + 32 IN ( 86 )
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE + 32 IN ( 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT COUNT( 36 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2847
SELECT COUNT ( 36 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE + 71 = + col2 * col1 / col1
----

query II rowsort
SELECT DISTINCT col2 AS col2, 8 * col1 FROM tab1
----
59
40
68
376
96
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE + 21 + + 46 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE + 21 + + 46 IS NULL
----
0

query II rowsort
SELECT ALL - 19 * col2 * - col2 + col1, col0 AS col2 FROM tab0
----
186220
97
1921
87
42052
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ( - + ( COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2852
SELECT ( - + ( COUNT ( * ) ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE col0 < - 80 + - 56 * 30 + + col2
----

query I rowsort
SELECT ALL 53 + + 0 AS col1 FROM tab0
----
53
53
53

query I rowsort
SELECT + col2 + + 70 FROM tab0
----
117
169
80

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN ( - 97 * - 80 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT 71 + COUNT( * ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT 71 + COUNT ( * ) FROM tab2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT - COUNT( * ) + + COUNT( * ) DIV - COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-2858
SELECT - COUNT ( * ) + + COUNT ( * ) / - COUNT ( * ) FROM tab2
----
-4

query I rowsort
SELECT - + 11 + - 70 + - 48 AS col0 FROM tab1 AS cor0
----
-129
-129
-129

query II rowsort
SELECT + 58 + - col0 * - col1 AS col0, ( col2 ) FROM tab2 AS cor0
----
2404
23
4986
40
5083
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2861
SELECT * FROM tab1 AS cor0 WHERE + 20 + + - CAST( - + 50 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2861
SELECT * FROM tab1 AS cor0 WHERE + 20 + + - CAST ( - + 50 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
55

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( ( NULL ) IS NOT NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - SUM( + ( - + 80 ) ) - + + COUNT( * ) + - 71 * + 62 FROM tab1 AS cor0
----
-4165

skipif mysql # not compatible
query I rowsort label-2864
SELECT - SUM ( + ( - + 80 ) ) - + + COUNT ( * ) + - 71 * + 62 FROM tab1 AS cor0
----
-4165

query I rowsort
SELECT ALL col0 + col1 FROM tab2 cor0 WHERE 83 BETWEEN ( - - col2 / + - col0 - + 12 - + + 63 * col0 * - col2 ) AND col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - col1 col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT 95 + - col1 AS col2 FROM tab1 AS cor0 WHERE - col2 * + col1 IS NULL
----

query I rowsort
SELECT col1 - col0 + - col0 FROM tab2 AS cor0
----
-41
-51
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT 83 - - MIN( + - 1 ) AS col1 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2869
SELECT 83 - - MIN ( + - 1 ) AS col1 FROM tab0 AS cor0
----
82

query I rowsort
SELECT DISTINCT - + 26 + + 52 FROM tab1 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ( + - col1 ) DIV + 96 - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2871
SELECT ( + - col1 ) / + 96 - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 BETWEEN - 67 * 31 AND - col0 * - col2 + - col2 * 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT - 44 * - COUNT( * ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - 44 * - COUNT ( * ) FROM tab0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT - CAST( - col1 AS SIGNED ) * - + 4 AS col0 FROM tab2
----
-204
-268
-308

skipif mysql # not compatible
query I rowsort label-2874
SELECT - CAST ( - col1 AS INTEGER ) * - + 4 AS col0 FROM tab2
----
-204
-268
-308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT DISTINCT + 23 * col2 * + - col2 * - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2875
SELECT DISTINCT + 23 * col2 * + - col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT DISTINCT + 17 DIV col1 AS col2 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + 17 / col1 AS col2 FROM tab1
----
0
1
3

query I rowsort
SELECT ALL 44 * + - col1 * + col0 FROM tab2
----
-103224
-216832
-221100

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT + 83 DIV + col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2878
SELECT + 83 / + col2 AS col1 FROM tab2
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2879
SELECT DISTINCT col1 DIV - 53 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT col1 / - 53 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT 92 * COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-2880
SELECT 92 * COUNT ( * ) FROM tab1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - COUNT( * ) * - + 25 AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-2881
SELECT - COUNT ( * ) * - + 25 AS col1 FROM tab0
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 40 IS NULL
----

query II rowsort
SELECT DISTINCT - col1, 0 + + 98 + + col2 AS col0 FROM tab1
----
-14
194
-47
166
-5
157

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT ALL 2 DIV + - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL 2 / + - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 + - col2 * col1 AS col2 FROM tab1 cor0
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT + + 46 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2887
SELECT - MAX( - - 21 ) FROM tab2 AS cor0 WHERE NOT - CAST( - col0 AS DECIMAL ) IS NULL
----
-21

skipif mysql # not compatible
query I rowsort label-2887
SELECT - MAX ( - - 21 ) FROM tab2 AS cor0 WHERE NOT - CAST ( - col0 AS REAL ) IS NULL
----
-21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - col1 / + 57 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 9 * + col2 FROM tab0 AS cor0 WHERE NOT NULL = - ( 12 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2891
SELECT + AVG ( + + col1 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT + AVG ( + + col1 ) + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2892
SELECT col2 * - col1 * col2 * - - 35 * + 96 + + - col1 DIV CAST( ( + col1 ) AS SIGNED ) AS col0 FROM tab0
----
-32931361
-601201441
-7056001

skipif mysql # not compatible
query I rowsort label-2892
SELECT col2 * - col1 * col2 * - - 35 * + 96 + + - col1 / CAST ( ( + col1 ) AS INTEGER ) AS col0 FROM tab0
----
-32931361
-601201441
-7056001

query I rowsort
SELECT + col2 + 18 + col1 * col1 FROM tab1
----
102
2295
310

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2894
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 + + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL CAST ( NULL AS REAL ) * + col1 + + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 + + 26, col1 FROM tab0
----
107
81
27
1
47
21

query III rowsort
SELECT ALL * FROM tab0 WHERE 99 NOT IN ( + 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + - 23 * + col0 AS col1 FROM tab0
----
-2088
-2328
-360

query I rowsort
SELECT ALL + - 51 FROM tab1 cor0
----
-51
-51
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 1 * - - col1 ) BETWEEN ( NULL ) AND 21
----

query I rowsort
SELECT ALL + 66 - + + 0 AS col0 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT 26 + - + CAST( - 30 AS SIGNED ) FROM tab1
----
56
56
56

skipif mysql # not compatible
query I rowsort label-2902
SELECT 26 + - + CAST ( - 30 AS INTEGER ) FROM tab1
----
56
56
56

query I rowsort
SELECT DISTINCT col0 * col1 * col0 AS col0 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT DISTINCT COUNT( * ), COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-2904
SELECT DISTINCT COUNT ( * ), COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
3
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + 61 * + ( - COUNT( * ) ) FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2905
SELECT + 61 * + ( - COUNT ( * ) ) FROM tab1 cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - 66 * + COUNT( * ) - + COUNT( + - 94 ) + + MAX( - 96 ) AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2906
SELECT - 66 * + COUNT ( * ) - + COUNT ( + - 94 ) + + MAX ( - 96 ) AS col1 FROM tab0 AS cor0
----
-297

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - 94 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = 73
----

query I rowsort
SELECT ( - col2 ) * + col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT - COUNT( DISTINCT + col1 ) * - ( 1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) * - ( 1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT 63 * 66 FROM tab2
----
4158
4158
4158

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT ALL + col1 * col0 DIV - - col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + col1 * col0 / - - col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ( + 61 ) * 25 AS col0 FROM tab2
----
1525
1525
1525

query I rowsort
SELECT DISTINCT - col2 * col1 * - - col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL COUNT( * ) * + - 86 AS col2 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL COUNT ( * ) * + - 86 AS col2 FROM tab2
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT - CAST( + 66 AS SIGNED ) FROM tab0 cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-2917
SELECT - CAST ( + 66 AS INTEGER ) FROM tab0 cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT + MAX( DISTINCT + - 49 ) * 53 AS col0 FROM tab0 AS cor0
----
-2597

skipif mysql # not compatible
query I rowsort label-2918
SELECT + MAX ( DISTINCT + - 49 ) * 53 AS col0 FROM tab0 AS cor0
----
-2597

query I rowsort
SELECT - 12 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT + - ( + CAST( NULL AS SIGNED ) ) * - AVG ( 61 ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT + - ( + CAST ( NULL AS INTEGER ) ) * - AVG ( 61 ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 47 * + + col2 AS col2 FROM tab0 cor0
----
-2209
-4653
-470

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT + + col2 DIV - 32 AS col0 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2922
SELECT + + col2 / - 32 AS col0 FROM tab1 AS cor0
----
-1
-2
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 48 ) NOT BETWEEN - col0 * + col1 AND - 41 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT MAX( DISTINCT + - 85 ) AS col0 FROM tab0 WHERE - 80 IS NOT NULL
----
-85

skipif mysql # not compatible
query I rowsort label-2924
SELECT MAX ( DISTINCT + - 85 ) AS col0 FROM tab0 WHERE - 80 IS NOT NULL
----
-85

query I rowsort
SELECT DISTINCT + 24 + - 37 AS col0 FROM tab0
----
-13

query I rowsort
SELECT DISTINCT ( + col0 ) * + 21 AS col0 FROM tab0
----
1827
2037
315

query II rowsort
SELECT DISTINCT - 57 + + 81 + + col1 + col2 * - col0 * - - col2, col1 FROM tab0 AS cor0
----
-33030
81
-8655
21
-950672
1

query I rowsort
SELECT ALL + + 65 + + 61 AS col0 FROM tab0 AS cor0
----
126
126
126

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 4 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( - - ( col0 ) ) * + col0 + - 50 + - 70 - + col0 * + col0 * + col1 * + + 2 * + - col2 ) NOT BETWEEN 90 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT + 15 * + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
135

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 15 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
135

query II rowsort
SELECT + ( - + col2 ), + col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75

query II rowsort
SELECT DISTINCT - col2 * + col2, col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( - + col2 )
----

query I rowsort
SELECT DISTINCT - - 44 AS col2 FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2936
SELECT - COUNT( * ) DIV + MIN( ALL + 8 ) + + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2936
SELECT - COUNT ( * ) / + MIN ( ALL + 8 ) + + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < col1
----

query II rowsort
SELECT col1, + 55 AS col0 FROM tab1
----
14
55
47
55
5
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - COUNT( * ) * 20 AS col2 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - COUNT ( * ) * 20 AS col2 FROM tab0
----
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + 47 * + col0 IN ( col2 * - - 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2, - col0 AS col2 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT 33 * + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-2943
SELECT 33 * + COUNT ( * ) FROM tab2
----
99

query I rowsort
SELECT DISTINCT 36 * + col0 AS col0 FROM tab1
----
1836
3060
3276

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 65 * - 40 * - - 80 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT + COUNT( DISTINCT + 14 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2947
SELECT + COUNT ( DISTINCT + 14 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 53 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 76 col2 FROM tab0 cor0
----
-76
-76
-76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < + col2 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 16 * col0 = + 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col0 col0 FROM tab0 WHERE + col2 BETWEEN col0 AND 21 - - col2
----
1215
97

query I rowsort
SELECT - ( + + 29 ) FROM tab1
----
-29
-29
-29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 / + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT DISTINCT + 80 + + col0 + + col0 * col2 + + col0 * col0 DIV - col0 FROM tab2 cor0
----
1138
2640
4430

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT + 80 + + col0 + + col0 * col2 + + col0 * col0 / - col0 FROM tab2 cor0
----
1138
2640
4430

query I rowsort
SELECT DISTINCT + col0 * - col0 * col1 FROM tab1 cor0
----
-36125
-36414
-389207

query I rowsort
SELECT 16 + - + col2 FROM tab1
----
-43
-52
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 96 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + + col1 - col1 - 81 * 64 + - 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT DISTINCT SUM( ALL - col1 ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT SUM ( ALL - col1 ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL + COUNT( - 72 ) + - ( + + COUNT( * ) ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2961
SELECT ALL + COUNT ( - 72 ) + - ( + + COUNT ( * ) ) col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 96 - - ( 60 ) AS col0 FROM tab2 cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2963
SELECT + 63 - - CAST( + - COUNT( * ) AS SIGNED ) + 28 AS col1 FROM tab2 cor0
----
88

skipif mysql # not compatible
query I rowsort label-2963
SELECT + 63 - - CAST ( + - COUNT ( * ) AS INTEGER ) + 28 AS col1 FROM tab2 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - - MIN( + + 96 ) - + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2964
SELECT - - MIN ( + + 96 ) - + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL - + col2, 60 + - - col1 AS col1 FROM tab1 AS cor0
----
-59
65
-68
107
-96
74

query I rowsort
SELECT ALL + - 8 AS col0 FROM tab2 AS cor0
----
-8
-8
-8

query II rowsort
SELECT DISTINCT - - col2 AS col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT col0 AS col2, 22 AS col0 FROM tab0 AS cor0
----
15
22
87
22
97
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2969
SELECT + + 35 AS col0 FROM tab0 cor0 WHERE - ( + - 35 ) BETWEEN - CAST( NULL AS DECIMAL ) AND 14 OR NOT - 64 <> + - col1
----

skipif mysql # not compatible
query I rowsort label-2969
SELECT + + 35 AS col0 FROM tab0 cor0 WHERE - ( + - 35 ) BETWEEN - CAST ( NULL AS REAL ) AND 14 OR NOT - 64 <> + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2970
SELECT ( + col2 ), - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2970
SELECT ( + col2 ), - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1, + 73 col0 FROM tab0 AS cor0
----
-1
73
-21
73
-81
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col0 FROM tab0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL + MIN( DISTINCT 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL + MIN ( DISTINCT 12 ) FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2974
SELECT ALL * FROM tab2 WHERE NOT + + col2 - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2974
SELECT ALL * FROM tab2 WHERE NOT + + col2 - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) = ( + ( - 57 ) * + - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT ( COUNT( * ) ) AS col1, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-2976
SELECT ( COUNT ( * ) ) AS col1, - COUNT ( * ) FROM tab1
----
3
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + + 96
----

query I rowsort
SELECT DISTINCT + col0 + col0 + - col2 + - col2 FROM tab1
----
-90
46
52

query I rowsort
SELECT ALL + 43 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT - COUNT( * ) + - ( - 42 ) + - - 66 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( ( NULL IS NOT NULL ) ) )
----
105

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT - COUNT ( * ) + - ( - 42 ) + - - 66 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( ( NULL IS NOT NULL ) ) )
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col1 AS col2, + col2 col0 FROM tab2 AS cor0
----
141
40
142
58
97
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL - col1 + - + 70 + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - col1 + - + 70 + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2983
SELECT ALL + 38 * col1 / - CAST( NULL AS SIGNED ) + + col2 AS col1, - CAST( - 99 AS SIGNED ) + - col2 AS col1 FROM tab0
----
NULL
0
NULL
52
NULL
89

skipif mysql # not compatible
query II rowsort label-2983
SELECT ALL + 38 * col1 / - CAST ( NULL AS INTEGER ) + + col2 AS col1, - CAST ( - 99 AS INTEGER ) + - col2 AS col1 FROM tab0
----
NULL
0
NULL
52
NULL
89

query I rowsort
SELECT ALL - + 3 * - - 66 FROM tab0 AS cor0
----
-198
-198
-198

query II rowsort
SELECT DISTINCT col2 + - - col1 + - 47 AS col2, ( 88 ) AS col2 FROM tab1 AS cor0
----
17
88
63
88
68
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2986
SELECT ALL + + CAST( NULL AS DECIMAL ) - + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + + CAST ( NULL AS REAL ) - + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + 91
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col0 - + + col1 - + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2990
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT DISTINCT + 74 DIV - col0 * + 39 DIV + 23 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + 74 / - col0 * + 39 / + 23 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT col0 + 2 FROM tab0
----
17
89
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT + COUNT( * ) + + + COUNT( * ) + - 39 + + + AVG ( ALL col2 ) * + - 1 + + 95 / + AVG ( + 39 ) col0, 77 col2 FROM tab0 WHERE + col0 / 43 * + col0 * col1 - 2 * col2 IS NULL
----
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2993
SELECT + COUNT ( * ) + + + COUNT ( * ) + - 39 + + + AVG ( ALL col2 ) * + - 1 + + 95 / + AVG ( + 39 ) col0, 77 col2 FROM tab0 WHERE + col0 / 43 * + col0 * col1 - 2 * col2 IS NULL
----
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL = - + col1 - - col1
----

query I rowsort
SELECT ALL + col2 + - 90 * - - 77 + - col2 + ( 75 ) AS col2 FROM tab0
----
-6855
-6855
-6855

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <= - + col0
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT + MIN( col2 ) * 98 AS col2 FROM tab2
----
2254

skipif mysql # not compatible
query I rowsort label-2999
SELECT + MIN ( col2 ) * 98 AS col2 FROM tab2
----
2254

query I rowsort
SELECT - ( - 54 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT col2 * 95 FROM tab1 AS cor0
----
5605
6460
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT SUM( - + 28 ) AS col1 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT SUM ( - + 28 ) AS col1 FROM tab2 AS cor0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - col1 >= - col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + - MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3004
SELECT + - MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3006
SELECT - - 55 AS col0, 99 * + MIN( ALL col0 ) FROM tab0 AS cor0
----
55
1485

skipif mysql # not compatible
query II rowsort label-3006
SELECT - - 55 AS col0, 99 * + MIN ( ALL col0 ) FROM tab0 AS cor0
----
55
1485

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col2 * + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL - ( + + COUNT( * ) ) + 90 AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - ( + + COUNT ( * ) ) + 90 AS col1 FROM tab1
----
87

query II rowsort
SELECT + col1 + + + col0 AS col0, + col2 * + - 59 AS col0 FROM tab2
----
141
-2360
142
-3422
97
-1357

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3010
SELECT ALL - col1 AS col2, CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-3010
SELECT ALL - col1 AS col2, CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT 32 + + MIN( ALL col0 ) + + ( 30 ) FROM tab1
----
113

skipif mysql # not compatible
query I rowsort label-3011
SELECT 32 + + MIN ( ALL col0 ) + + ( 30 ) FROM tab1
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3012
SELECT CAST( NULL AS DECIMAL ) AS col2, - col1 * - - col0 AS col0 FROM tab0
----
NULL
-1215
NULL
-1827
NULL
-97

skipif mysql # not compatible
query II rowsort label-3012
SELECT CAST ( NULL AS REAL ) AS col2, - col1 * - - col0 AS col0 FROM tab0
----
NULL
-1215
NULL
-1827
NULL
-97

query I rowsort
SELECT ALL col0 * + 88 FROM tab2
----
4048
5632
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + col1 * + 11 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3016
SELECT - CAST( - col1 AS SIGNED ) DIV - 59 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
2116
4095
5624

skipif mysql # not compatible
query I rowsort label-3016
SELECT - CAST ( - col1 AS INTEGER ) / - 59 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
2116
4095
5624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3017
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3017
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT + 25 * - COUNT( * ) - 39 * - 10 AS col0 FROM tab2
----
315

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 25 * - COUNT ( * ) - 39 * - 10 AS col0 FROM tab2
----
315

query I rowsort
SELECT ( + + col1 ) - - col2 + - - col2 FROM tab1 WHERE - 6 - - + 24 < - - col0
----
123
183
206

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT DISTINCT + ( - + SUM( DISTINCT - col0 ) ) + - - COUNT( * ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT + ( - + SUM ( DISTINCT - col0 ) ) + - - COUNT ( * ) FROM tab1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL COUNT( * ) * + 14 + COUNT( * ) + - + 45 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL COUNT ( * ) * + 14 + COUNT ( * ) + - + 45 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT + 65 * - + 30 + + + 12 + COUNT( * ) FROM tab0 cor0
----
-1935

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + 65 * - + 30 + + + 12 + COUNT ( * ) FROM tab0 cor0
----
-1935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 89 - - + ( - - col0 ) col2 FROM tab2 AS cor0
----
-102
-81
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( - + col2 ) + + - col0 * + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - + col2 ) + + - col0 * + col1 IS NOT NULL
----
3

query I rowsort
SELECT + ( + col1 ) + + ( ( - col1 ) ) FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 91 ) col1 FROM tab2
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 49 * + + col0 * + col0 FROM tab0
----
11025
370881
461041

query I rowsort
SELECT ALL - 31 * + - 49 AS col2 FROM tab0 AS cor0
----
1519
1519
1519

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3030
SELECT ALL - col0 AS col2, - CAST( + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-3030
SELECT ALL - col0 AS col2, - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT + COUNT( + 8 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT + COUNT ( + 8 ) col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - col0, + col0 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT - SUM( - 15 ) AS col1, SUM( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
45
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3033
SELECT - SUM ( - 15 ) AS col1, SUM ( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
45
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3034
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) AS col1, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-3034
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col1, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT MIN( ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3035
SELECT MIN ( ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + COUNT( * ) * - MIN( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3036
SELECT + COUNT ( * ) * - MIN ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + ( 92 ) AS col1 FROM tab0
----
92

query I rowsort
SELECT DISTINCT + col1 * + 82 AS col0 FROM tab0 WHERE NULL IS NULL
----
1722
6642
82

query I rowsort
SELECT DISTINCT 40 + col2 FROM tab2
----
63
80
98

query I rowsort
SELECT ALL + ( 37 ) AS col2 FROM tab2
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + 60 * SUM( + col1 ) col2 FROM tab1
----
3960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3042
SELECT + 60 * SUM ( + col1 ) col2 FROM tab1
----
3960

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT ALL + + ( CAST( - 74 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3044
SELECT ALL + + ( CAST ( - 74 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3045
SELECT DISTINCT + - ( - CAST( 53 AS SIGNED ) ) * + col2 + - 97 AS col1, 33 AS col1 FROM tab2 AS cor0
----
1122
33
2023
33
2977
33

skipif mysql # not compatible
query II rowsort label-3045
SELECT DISTINCT + - ( - CAST ( 53 AS INTEGER ) ) * + col2 + - 97 AS col1, 33 AS col1 FROM tab2 AS cor0
----
1122
33
2023
33
2977
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3046
SELECT 88 DIV - MAX( DISTINCT - ( - col1 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3046
SELECT 88 / - MAX ( DISTINCT - ( - col1 ) ) FROM tab2
----
-1

query I rowsort
SELECT + 93 * - col1 * 11 AS col0 FROM tab1
----
-14322
-48081
-5115

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 74 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0, + col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - 41 - + ( + + col1 ) FROM tab1 AS cor0
----
-46
-55
-88

query I rowsort
SELECT + - col2 * 10 - col2 + + col1 FROM tab0 AS cor0
----
-1088
-436
-89

query I rowsort
SELECT - col0 * - - col0 - + - col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL COUNT( * ) - + + SUM( ALL + 10 ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL COUNT ( * ) - + + SUM ( ALL + 10 ) AS col0 FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT ALL - - CAST( - 86 AS SIGNED ) FROM tab2 AS cor0 WHERE + 56 IS NOT NULL
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - - CAST ( - 86 AS INTEGER ) FROM tab2 AS cor0 WHERE + 56 IS NOT NULL
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3055
SELECT + + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT + + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 51 AS col0 FROM tab2 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT 13 * - col1 AS col2 FROM tab2
----
-1001
-663
-871

query I rowsort
SELECT ALL - - col0 * - col0 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 * - 70 FROM tab2 AS cor0
----
-164220
-344960
-351750

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 64 ) < NULL
----

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 67 / col2 < - - col0
----

query II rowsort
SELECT ALL + 29 AS col0, + 89 AS col2 FROM tab1 AS cor0
----
29
89
29
89
29
89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE - 62 * col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3066
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) / + + 44 * + col1 / - - 60 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL + ( + CAST ( NULL AS REAL ) ) / + + 44 * + col1 / - - 60 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 / + col1 NOT BETWEEN 81 - - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 51 * 61 FROM tab0
----
3111

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3071
SELECT DISTINCT + COUNT( * ) + COUNT( * ) DIV - - 23 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) / - - 23 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT DISTINCT - SUM( + + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT - SUM ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL + + 42 * col0 AS col2 FROM tab0 AS cor0
----
3654
4074
630

query I rowsort
SELECT + ( + + ( + 92 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 90 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT DISTINCT col1 - + CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT col1 - + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT ALL ( - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT DISTINCT COUNT( - 16 ) - 9 + 56 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT COUNT ( - 16 ) - 9 + 56 FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT + + SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT + + SUM ( col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT 10 + - col1 FROM tab0 AS cor0 WHERE NOT col0 + + + col2 NOT IN ( - col1, - col2 )
----

query I rowsort
SELECT - col2 * - + col1 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT col0, - col1 * - col0 AS col1 FROM tab2
----
46
2346
64
4928
75
5025

query I rowsort
SELECT ALL col0 * - - 13 * - 5 AS col2 FROM tab1
----
-3315
-5525
-5915

query III rowsort
SELECT ALL col1, + 34 AS col1, + col1 AS col2 FROM tab0
----
9 values hashing to d49ad81da468bd6c82edb42eccabe253

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT - col0 * + + 73 NOT BETWEEN + col1 * + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL COUNT( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL COUNT ( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col2 col1 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL - SUM( col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - SUM ( col2 ) FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT + 35 - 41 + + 92 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST( - 63 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3089
SELECT + 35 - 41 + + 92 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( - 63 AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
38

query I rowsort
SELECT DISTINCT + col1 * + ( - + 64 ) + + - col2 AS col0 FROM tab2 AS cor0
----
-3287
-4346
-4968

query I rowsort
SELECT + + col0 * - - col2 * - - col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + MAX( + + col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-3093
SELECT + MAX ( + + col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-273

query I rowsort
SELECT ALL 78 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 NOT BETWEEN col1 AND - + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - 3 * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - 3 * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT - col1 * 62 AS col2 FROM tab1 AS cor0
----
-2914
-310
-868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT ALL + + CAST( NULL AS SIGNED ) * COUNT( - 31 ) * 83 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + + CAST ( NULL AS INTEGER ) * COUNT ( - 31 ) * 83 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3098
SELECT - CAST( NULL AS SIGNED ) / + - AVG ( - + col0 ) - - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT - CAST ( NULL AS INTEGER ) / + - AVG ( - + col0 ) - - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 48 + - col1 FROM tab2
----
-19
-29
-3

query II rowsort
SELECT DISTINCT col1 AS col0, 20 + - col0 AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
14
-31
47
-71
5
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT - COUNT( ALL + col1 ) * 44 FROM tab0 WHERE NULL IS NULL
----
-132

skipif mysql # not compatible
query I rowsort label-3101
SELECT - COUNT ( ALL + col1 ) * 44 FROM tab0 WHERE NULL IS NULL
----
-132

query I rowsort
SELECT DISTINCT - 24 + col2 FROM tab0
----
-14
23
75

query I rowsort
SELECT DISTINCT col0 + + - col1 AS col0 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT CAST( NULL AS SIGNED ) + + col1 + + + col2 / col1 + + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT CAST ( NULL AS INTEGER ) + + col1 + + + col2 / col1 + + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 68 + - + col2 AS col1 FROM tab0 AS cor0
----
-31
21
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - - col0 * - col2 col2, - col2 FROM tab0 cor0
----
-624
-47
-849
-10
-9602
-99

query I rowsort
SELECT + col1 + - 21 FROM tab2 AS cor0
----
30
46
56

query I rowsort
SELECT ALL + 58 - + - col0 AS col0 FROM tab1 AS cor0
----
109
143
149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3109
SELECT + + 62 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3109
SELECT + + 62 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT DISTINCT + col0 DIV - 16 AS col0 FROM tab2 AS cor0
----
-2
-4

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT + col0 / - 16 AS col0 FROM tab2 AS cor0
----
-2
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL + 52 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + 52 / - col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT + MIN( ALL - 84 ) FROM tab0 WHERE NULL IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-3112
SELECT + MIN ( ALL - 84 ) FROM tab0 WHERE NULL IS NULL
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3113
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT col1 * col1 * + + ( + + 29 ) + - + col0 * col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL - + COUNT( 12 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - + COUNT ( 12 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT - MIN( ALL + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3116
SELECT - MIN ( ALL + col0 ) AS col1 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT + 22 / + 63 * + col0 - + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - SUM( - 82 ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-3118
SELECT - SUM ( - 82 ) FROM tab1
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT DISTINCT - COUNT( DISTINCT + - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - COUNT ( DISTINCT + - col1 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT - 60 * col1 AS col0 FROM tab1 AS cor0
----
-2820
-300
-840

query I rowsort
SELECT DISTINCT - col0 * 96 AS col2 FROM tab1 cor0
----
-4896
-8160
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - MAX( 87 ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3122
SELECT - MAX ( 87 ) FROM tab0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 31 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT ALL col0 DIV - 59 + + - col2 AS col0 FROM tab0
----
-100
-11
-47

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL col0 / - 59 + + - col2 AS col0 FROM tab0
----
-100
-11
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT - CAST( NULL AS SIGNED ) * + 4 + - 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3125
SELECT - CAST ( NULL AS INTEGER ) * + 4 + - 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col2 * + col2 + - ( - col2 ) FROM tab2 AS cor0
----
1640
3422
552

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND - - 82
----

query I rowsort
SELECT DISTINCT ( - + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 41 + 67 FROM tab1 AS cor0
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT COUNT( * ) + - - MAX( ALL + 37 ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-3130
SELECT COUNT ( * ) + - - MAX ( ALL + 37 ) AS col2 FROM tab0
----
40

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT col0 * - + col2 AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL 24 + - 96 * - col0 AS col2 FROM tab2
----
4440
6168
7224

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT COUNT( * ) + - + ( + MIN( ALL - col0 ) ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT COUNT ( * ) + - + ( + MIN ( ALL - col0 ) ) AS col0 FROM tab1
----
94

query I rowsort
SELECT DISTINCT + col2 + - - col1 AS col0 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT COUNT( * ) + - 52 col0 FROM tab2, tab1 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3136
SELECT COUNT ( * ) + - 52 col0 FROM tab2, tab1 AS cor0
----
-43

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE + ( col2 ) + + 24 IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 99 * 90 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3139
SELECT + - 82 - + CAST( NULL AS SIGNED ) AS col0, + 45 AS col2 FROM tab0 AS cor0
----
NULL
45
NULL
45
NULL
45

skipif mysql # not compatible
query II rowsort label-3139
SELECT + - 82 - + CAST ( NULL AS INTEGER ) AS col0, + 45 AS col2 FROM tab0 AS cor0
----
NULL
45
NULL
45
NULL
45

query I rowsort
SELECT col1 * - col0 + 80 FROM tab2
----
-2266
-4848
-4945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 + - - col1 AS col2 FROM tab1
----
51
65
85
90
91
138

query I rowsort
SELECT + 78 + + col2 FROM tab0
----
125
177
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT + 25 DIV + - 37 + - - col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3143
SELECT + 25 / + - 37 + - - col1 AS col0 FROM tab1
----
14
47
5

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + 2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3146
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - col0 + col1
----

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - + col2 AS col0, col1 FROM tab0 cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL - 7 * - COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - 7 * - COUNT ( * ) FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT - + ( col2 ) = + + col1
----
51
85
91

query I rowsort
SELECT 5 * + AVG ( - + col0 ) FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND - + col1 * + col2 * + + 20
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 58 * - - col0 NOT IN ( + col1, - 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT - + CAST( NULL AS SIGNED ) / ( - + col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT - + CAST ( NULL AS INTEGER ) / ( - + col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 36 + 33 AS col2 FROM tab2 AS cor0
----
1869
2445
2805

query I rowsort
SELECT col2 * col0 FROM tab2 WHERE - col0 * + col1 = NULL
----

query I rowsort
SELECT + 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT - ( + 93 ) / - + MAX( - 32 ) - + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT - ( + 93 ) / - + MAX ( - 32 ) - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 39 * col0 AS col2 FROM tab2 cor0
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - COUNT( + 35 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3161
SELECT - COUNT ( + 35 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + 99 * - 62 FROM tab1 AS cor0
----
6138
6138
6138

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + ( col1 ) <> NULL
----

query I rowsort
SELECT - ( 54 ) - ( col2 ) FROM tab2
----
-112
-77
-94

query II rowsort
SELECT ALL 21 * col0 AS col1, - 99 + + - col2 AS col2 FROM tab0
----
1827
-109
2037
-198
315
-146

query II rowsort
SELECT DISTINCT + col1 + + col1, ( - col1 ) AS col2 FROM tab0
----
162
-81
2
-1
42
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3167
SELECT ALL + col1 + CAST( NULL AS SIGNED ) AS col0, 53 * - col1 - - CAST( + + col2 AS SIGNED ) FROM tab2
----
NULL
-2680
NULL
-3493
NULL
-4041

skipif mysql # not compatible
query II rowsort label-3167
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) AS col0, 53 * - col1 - - CAST ( + + col2 AS INTEGER ) FROM tab2
----
NULL
-2680
NULL
-3493
NULL
-4041

query I rowsort
SELECT + col2 + - 88 AS col0 FROM tab0
----
-41
-78
11

query I rowsort
SELECT - col0 + + col0 + + + col2 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - + 6 - + ( col2 ) - col0 * - 84 AS col2 FROM tab2 AS cor0
----
3835
5330
6236

query II rowsort
SELECT - + col2 * 87 AS col2, - 73 FROM tab1 AS cor0
----
-5133
-73
-5916
-73
-8352
-73

query I rowsort
SELECT ALL - col0 - ( + + 97 ) FROM tab2 AS cor0
----
-143
-161
-172

query I rowsort
SELECT - 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT + 66 + - - 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f95a510ef7a720583a4639131b2cccc3

query I rowsort
SELECT + - col2 * - - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT 56 * - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) + - MIN( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT 56 * - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - MIN ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE + col1 BETWEEN - col1 + + col2 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 BETWEEN - col1 + + col2 AND - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3179
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0, + col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

skipif mysql # not compatible
query II rowsort label-3179
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0, + col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL 26 + - col0 AS col1 FROM tab2
----
-20
-38
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT COUNT( * ) * - 65 AS col1 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT COUNT ( * ) * - 65 AS col1 FROM tab1
----
-195

query I rowsort
SELECT DISTINCT + ( + 21 ) AS col0 FROM tab0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3183
SELECT ALL - 50 DIV + - col0 - + - col1 FROM tab0 AS cor0
----
1
21
84

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - 50 / + - col0 - + - col1 FROM tab0 AS cor0
----
1
21
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL MAX( ALL + ( + col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL MAX ( ALL + ( + col0 ) ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT col2 AS col0, 4 AS col0 FROM tab0 AS cor0
----
10
4
47
4
99
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3186
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( CAST( + col0 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( CAST ( + col0 AS REAL ) )
----
0

query I rowsort
SELECT ALL - ( - ( 84 ) ) * 48 AS col0 FROM tab1
----
4032
4032
4032

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT + col1 - + col2 NOT IN ( - col1 * ( col0 * + col2 ) )
----

query I rowsort
SELECT ALL col2 - - 52 FROM tab2
----
110
75
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3190
SELECT DISTINCT + 27 * - CAST( CAST( - 56 AS DECIMAL ) * 34 AS SIGNED ) FROM tab0
----
51408

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT + 27 * - CAST ( CAST ( - 56 AS REAL ) * 34 AS INTEGER ) FROM tab0
----
51408

query I rowsort
SELECT ALL - 2 + 60 AS col2 FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - ( 0 ) * - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3192
SELECT - ( 0 ) * - COUNT ( * ) AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab2 WHERE NULL NOT BETWEEN ( - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL + MIN( + 5 ) + + COUNT( 54 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + MIN ( + 5 ) + + COUNT ( 54 ) FROM tab2
----
8

query I rowsort
SELECT + 45 AS col0 FROM tab2 WHERE NULL BETWEEN ( col1 ) AND ( 99 )
----

query I rowsort
SELECT 54 * + ( + 12 * - ( + 72 ) ) AS col2 FROM tab1
----
-46656
-46656
-46656

query I rowsort
SELECT + col1 * 42 AS col0 FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL MIN( DISTINCT - 52 ) AS col0 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL MIN ( DISTINCT - 52 ) AS col0 FROM tab0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3200
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3200
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT SUM( ALL 4 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT SUM ( ALL 4 ) AS col1 FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3202
SELECT ALL * FROM tab2 WHERE NOT ( 87 + ( - CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3202
SELECT ALL * FROM tab2 WHERE NOT ( 87 + ( - CAST ( NULL AS INTEGER ) ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 10 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * AVG ( col1 ) col1 FROM tab1 WHERE NOT 0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT - MAX( DISTINCT - col2 ) col1 FROM tab1 WHERE ( NULL ) <= - 39
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3205
SELECT - MAX ( DISTINCT - col2 ) col1 FROM tab1 WHERE ( NULL ) <= - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL - COUNT( + col2 ) * + 15 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL - COUNT ( + col2 ) * + 15 FROM tab0
----
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 12 ) NOT BETWEEN ( NULL ) AND + col2
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT + ( col2 ) DIV col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3208
SELECT + ( col2 ) / col0 FROM tab0
----
0
1
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 55 IN ( + 65 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT ALL + col2 + col0 DIV + 51 FROM tab2 cor0
----
23
41
59

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + col2 + col0 / + 51 FROM tab2 cor0
----
23
41
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + 29 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 26 * ( + col2 * col1 ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab1 WHERE NULL NOT BETWEEN 27 * 48 AND - col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3215
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT DISTINCT + 40 FROM tab1 AS cor0 CROSS JOIN tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT SUM( + 44 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
396

skipif mysql # not compatible
query I rowsort label-3217
SELECT SUM ( + 44 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
396

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) NOT IN ( + col1 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( col2 * col0 ) BETWEEN + 93 + 48 AND col2
----
14
47
5

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - COUNT( ALL 11 ) * 67 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3221
SELECT - COUNT ( ALL 11 ) * 67 FROM tab1 AS cor0
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT ALL + 14 * + 97 AS col1 FROM tab0 AS cor0
----
1358
1358
1358

query I rowsort
SELECT DISTINCT - 64 * + 42 FROM tab0 AS cor0
----
-2688

query I rowsort
SELECT ( + - 54 ) FROM tab0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT - 14 FROM tab0 WHERE NOT - CAST( - 93 AS SIGNED ) * col0 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3227
SELECT - 14 FROM tab0 WHERE NOT - CAST ( - 93 AS INTEGER ) * col0 = ( NULL )
----

query I rowsort
SELECT 98 * - 44 + 34 FROM tab1 WHERE NOT - col2 - col0 IN ( 0 + col0 * + col0 )
----
-4278
-4278
-4278

query I rowsort
SELECT DISTINCT - 12 * - - 22 FROM tab2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL MIN( + ( - 67 ) ) col2 FROM tab2
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3230
SELECT ALL MIN ( + ( - 67 ) ) col2 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * + 11 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * + 11 FROM tab0
----
36

query I rowsort
SELECT ALL 56 * 44 FROM tab1
----
2464
2464
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL 78 * - 70 + COUNT( * ) FROM tab0 WHERE NOT + col1 - col1 / + col0 IS NULL OR NOT - col2 / col0 IS NULL
----
-5457

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL 78 * - 70 + COUNT ( * ) FROM tab0 WHERE NOT + col1 - col1 / + col0 IS NULL OR NOT - col2 / col0 IS NULL
----
-5457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col1 FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3236
SELECT + 65 + + + 3 + COUNT( - ( - 56 ) ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3236
SELECT + 65 + + + 3 + COUNT ( - ( - 56 ) ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT - + CAST( NULL AS SIGNED ) + + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT - + CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + COUNT( * ) + + MAX( ALL - 55 ) AS col2 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3238
SELECT + COUNT ( * ) + + MAX ( ALL - 55 ) AS col2 FROM tab2 AS cor0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT - 80 DIV - COUNT( DISTINCT 52 ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT - 80 / - COUNT ( DISTINCT 52 ) AS col0 FROM tab0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT DISTINCT - 20 FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT - 20 FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
23

query I rowsort
SELECT 98 * col2 FROM tab0 AS cor0
----
4606
9702
980

query I rowsort
SELECT 21 FROM tab0 AS cor0 WHERE - ( - col0 ) + + col2 * + col1 IS NOT NULL
----
21
21
21

query I rowsort
SELECT ALL + 7 * col0 * + - col2 + - 48 + + ( 89 + - col0 ) AS col1 FROM tab2 AS cor0
----
-17943
-30484
-7411

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT - + COUNT( ALL - 31 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - + COUNT ( ALL - 31 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT COUNT( DISTINCT + 98 ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3247
SELECT COUNT ( DISTINCT + 98 ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - - col0 * + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3249
SELECT ALL + col1 DIV col0 AS col1, ( + col1 ) AS col0 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-3249
SELECT ALL + col1 / col0 AS col1, ( + col1 ) AS col0 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT ALL - CAST( NULL AS SIGNED ) + - SUM( + col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - CAST ( NULL AS INTEGER ) + - SUM ( + col2 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - + 35 AS col0 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT 50 + + + COUNT( * ) col0 FROM tab1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3252
SELECT 50 + + + COUNT ( * ) col0 FROM tab1
----
53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 / - 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 63 * - col0 + 17 + col2 * ( col0 - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3255
SELECT - SUM( DISTINCT + col1 ) * + 89 + - COUNT( * ) + 20 DIV COUNT( * ) FROM tab2
----
-17352

skipif mysql # not compatible
query I rowsort label-3255
SELECT - SUM ( DISTINCT + col1 ) * + 89 + - COUNT ( * ) + 20 / COUNT ( * ) FROM tab2
----
-17352

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + 67 * + SUM( col2 ) * - + COUNT( * ) FROM tab1
----
-44823

skipif mysql # not compatible
query I rowsort label-3256
SELECT + 67 * + SUM ( col2 ) * - + COUNT ( * ) FROM tab1
----
-44823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT ALL CAST( - + col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - COUNT( * ) * + + 90 AS col1 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-3258
SELECT - COUNT ( * ) * + + 90 AS col1 FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - ( - MIN( ALL + + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3259
SELECT - ( - MIN ( ALL + + col0 ) ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN ( - - col2 ) AND - 34 * - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 11 col1, 66 + col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
11
113
11
165
11
76

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - 25 = - 33
----
46
64
75

query II rowsort
SELECT DISTINCT + 14 AS col2, + ( + + ( - + 89 ) ) FROM tab1 AS cor0
----
14
-89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL + - ( + COUNT( * ) ) * COUNT( * ) * + - 96 AS col2 FROM tab1 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL + - ( + COUNT ( * ) ) * COUNT ( * ) * + - 96 AS col2 FROM tab1 AS cor0
----
864

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3269
SELECT * FROM tab2 AS cor0 WHERE ( - + CAST( NULL AS SIGNED ) - - - CAST( - - col1 AS DECIMAL ) ) NOT IN ( + 4 ) AND + CAST( NULL AS SIGNED ) + - col1 IN ( - 75 )
----

skipif mysql # not compatible
query III rowsort label-3269
SELECT * FROM tab2 AS cor0 WHERE ( - + CAST ( NULL AS INTEGER ) - - - CAST ( - - col1 AS REAL ) ) NOT IN ( + 4 ) AND + CAST ( NULL AS INTEGER ) + - col1 IN ( - 75 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE 85 NOT IN ( col1, + ( col0 ) + ( col0 ) )
----
10
47
99

query I rowsort
SELECT - 48 * - - col0 + 16 AS col2 FROM tab1
----
-2432
-4064
-4352

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3272
SELECT DISTINCT - 88 * 83 + + 4 + CAST( NULL AS DECIMAL ) * - - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - 88 * 83 + + 4 + CAST ( NULL AS REAL ) * - - col2 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( + ( 22 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0, - 1 col2 FROM tab2 WHERE + + 12 <= NULL
----

query I rowsort
SELECT ALL 65 + - - col2 AS col0 FROM tab1
----
124
133
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83, 36 * col1 col1 FROM tab1
----
83
1692
83
180
83
504

query III rowsort
SELECT * FROM tab1 WHERE - + 31 - + col0 <= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 64 + - + col1 * - + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 28 <> ( 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 34 + - col0 + + - col0 NOT BETWEEN - col2 + + col2 * 50 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3282
SELECT DISTINCT col1, + 79 * CAST( NULL AS SIGNED ) * + col0 col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3282
SELECT DISTINCT col1, + 79 * CAST ( NULL AS INTEGER ) * + col0 col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL col2 * + 10 + - - 98 + col1 + 67 AS col0 FROM tab1 AS cor0
----
1139
760
892

query I rowsort
SELECT - 53 * col2 * - col2 - + - col2 * + 26 - 71 * + col2 FROM tab2 AS cor0
----
175682
27002
83000

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN col0 - col2 AND ( NULL )
----

query I rowsort
SELECT 71 FROM tab2 AS cor0 WHERE - col1 / col1 NOT BETWEEN NULL AND ( col0 + - col1 - col1 * + col1 )
----
71
71
71

query I rowsort
SELECT col0 + - 0 AS col1 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 13 - + + col1 + - col2 col2, - 35 FROM tab0
----
-113
-35
-141
-35
-44
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 - - 95 col1, 38 FROM tab2 cor0
----
146
38
162
38
172
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT DISTINCT ( + + col1 ) + - - col2 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT ( + + col1 ) + - - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 21 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL - ( + - COUNT( * ) ) + + MIN( + + col2 ) col0 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3292
SELECT ALL - ( + - COUNT ( * ) ) + + MIN ( + + col2 ) col0 FROM tab2 AS cor0
----
26

query I rowsort
SELECT 59 * + 14 FROM tab0 AS cor0
----
826
826
826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL - col1 - - + CAST( NULL AS SIGNED ) + col0 / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - col1 - - + CAST ( NULL AS INTEGER ) + col0 / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col0 ) NOT IN ( 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 20 AS col2, + 60 + 67 * col0 + + col0 * col1 + + col0 FROM tab1
----
20
10525
20
4242
20
6265

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT SUM( 46 ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT SUM ( 46 ) FROM tab1
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3298
SELECT DISTINCT - COUNT( * ) DIV + 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - COUNT ( * ) / + 85 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 84 > col0
----

query II rowsort
SELECT - col0 AS col2, + col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 88 * + col2 FROM tab0
----
4136
8712
880

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT + - COUNT( DISTINCT - col0 ) * - 77 AS col1 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + - COUNT ( DISTINCT - col0 ) * - 77 AS col1 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----
0

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT - ( + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT 12 * + COUNT( * ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT 12 * + COUNT ( * ) AS col1 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT 9 * + - SUM( - + ( 6 ) ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-3305
SELECT 9 * + - SUM ( - + ( 6 ) ) FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 IN ( + + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 IN ( + + 16 )
----
0

query I rowsort
SELECT + 20 * + 17 AS col1 FROM tab2 AS cor0
----
340
340
340

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3308
SELECT ALL + col2 * col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST( NULL AS DECIMAL ) + - col2 + - + col1 + + col1 * - 13 / + 5 )
----

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL + col2 * col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( NULL AS REAL ) + - col2 + - + col1 + + col1 * - 13 / + 5 )
----

query I rowsort
SELECT ALL + col2 + + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + + 4 AS col2 FROM tab0 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT + + COUNT( * ) * 15 + + ( COUNT( * ) ) + + ( - COUNT( * ) ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3311
SELECT + + COUNT ( * ) * 15 + + ( COUNT ( * ) ) + + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT - - col1 * 49 AS col2 FROM tab1 AS cor0
----
2303
245
686

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE + col0 * + 56 + + 9 - + col1 IS NULL
----

query I rowsort
SELECT - 93 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL SUM( DISTINCT 7 ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL SUM ( DISTINCT 7 ) AS col1 FROM tab1
----
7

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + + col1
----

query II rowsort
SELECT DISTINCT + ( - 49 ) + - 94 AS col2, col1 FROM tab2
----
-143
51
-143
67
-143
77

query II rowsort
SELECT ALL + col0 + 26 * - col0, col2 FROM tab0
----
-2175
10
-2425
99
-375
47

query I rowsort
SELECT + 82 + - col0 FROM tab0
----
-15
-5
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3320
SELECT + CAST( col1 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT + CAST ( col1 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3321
SELECT + col1 * + col0 + CAST( NULL AS SIGNED ) AS col1, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3321
SELECT + col1 * + col0 + CAST ( NULL AS INTEGER ) AS col1, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL - col2 * - 37 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - - 96 * - col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + + col2 + - + col2 FROM tab0 WHERE + - 48 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - col2 + - - col2 + + + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3329
SELECT col1 - col1 / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT col1 - col1 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT - + COUNT( * ) - - COUNT( * ) + + 82 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3330
SELECT - + COUNT ( * ) - - COUNT ( * ) + + 82 FROM tab0 AS cor0
----
82

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - COUNT( DISTINCT + ( + col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3332
SELECT - COUNT ( DISTINCT + ( + col1 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT 54 * CAST( - col2 AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3333
SELECT 54 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 9 * - col2 FROM tab0
----
-423
-891
-90

query I rowsort
SELECT - 81 AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-81
-81
-81

query I rowsort
SELECT - col1 * - 99 FROM tab0
----
2079
8019
99

query I rowsort
SELECT ( + col2 ) * col1 FROM tab2 WHERE NOT ( NULL >= NULL )
----

query I rowsort
SELECT ALL - 7 * col2 AS col1 FROM tab0
----
-329
-693
-70

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) > 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col2 * - + col1, 16 AS col1 FROM tab0
----
-210
16
-3807
16
-99
16

query I rowsort
SELECT ( - 73 ) * + col1 FROM tab1
----
-1022
-3431
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT - COUNT( DISTINCT + 26 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - COUNT ( DISTINCT + 26 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 94 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3343
SELECT - + ( - ( + + SUM( DISTINCT col2 ) ) ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3343
SELECT - + ( - ( + + SUM ( DISTINCT col2 ) ) ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT + ( - 68 ) AS col2 FROM tab1 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL - COUNT( + - 28 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - COUNT ( + - 28 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ( - + MIN( DISTINCT col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3346
SELECT ( - + MIN ( DISTINCT col0 ) ) FROM tab0
----
-15

query I rowsort
SELECT col1 * 62 FROM tab2 AS cor0 WHERE NOT + col2 * + col2 * + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 <> ( - col0 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT ALL - CAST( - + 3 AS SIGNED ) FROM tab2 cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - CAST ( - + 3 AS INTEGER ) FROM tab2 cor0
----
3
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 / col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3351
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > - col0 * + + 71 + - - ( col2 ) + - CAST( NULL AS SIGNED ) + - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3351
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > - col0 * + + 71 + - - ( col2 ) + - CAST ( NULL AS INTEGER ) + - ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 61 * - - col1 + + + 34 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT + COUNT( * ) col0 FROM tab2 WHERE NULL = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3353
SELECT + COUNT ( * ) col0 FROM tab2 WHERE NULL = NULL
----
0

query I rowsort
SELECT col0 * - - col0 * - 37 AS col0 FROM tab0
----
-280053
-348133
-8325

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT SUM( DISTINCT - - 43 ) AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-3355
SELECT SUM ( DISTINCT - - 43 ) AS col0 FROM tab0
----
43

query III rowsort
SELECT * FROM tab0 WHERE - col1 < + 13 + 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL COUNT( * ) * + + 20 + + 5 AS col2 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL COUNT ( * ) * + + 20 + + 5 AS col2 FROM tab2
----
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <> - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT + 46 + + col2 DIV + 8 + col1 * + 9 * + 99 AS col2 FROM tab0
----
18758
72222
949

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT + 46 + + col2 / + 8 + col1 * + 9 * + 99 AS col2 FROM tab0
----
18758
72222
949

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT SUM( ALL col0 ) FROM tab0 WHERE ( - col1 ) IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-3360
SELECT SUM ( ALL col0 ) FROM tab0 WHERE ( - col1 ) IS NOT NULL
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT SUM( ALL - 18 ) AS col0 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT SUM ( ALL - 18 ) AS col0 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 93 IS NULL
----

query I rowsort
SELECT - 32 + 37 + 46 FROM tab1
----
51
51
51

query I rowsort
SELECT 89 * - - 35 AS col0 FROM tab0, tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL - SUM( + - 87 ) * - MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
12006

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL - SUM ( + - 87 ) * - MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
12006

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - 84 IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE + 76 / + col1 / 47 - col1 - + 0 - + + 6 + col0 * + col2 NOT BETWEEN NULL AND + 67
----
51
67
77

query II rowsort
SELECT - 70 AS col2, 89 * + col2 FROM tab2
----
-70
2047
-70
3560
-70
5162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3369
SELECT col1 AS col2, col0 * + col1 + - - CAST( - 19 AS SIGNED ) + + col2 col0 FROM tab1
----
14
791
47
4326
5
465

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3369
SELECT col1 AS col2, col0 * + col1 + - - CAST ( - 19 AS INTEGER ) + + col2 col0 FROM tab1
----
14
791
47
4326
5
465

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - 30 * + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-3370
SELECT - 30 * + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query II rowsort label-3371
SELECT COUNT( * ) AS col2, - COUNT( + - 53 ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-3371
SELECT COUNT ( * ) AS col2, - COUNT ( + - 53 ) AS col1 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - COUNT( * ) * - 54 * 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3372
SELECT - COUNT ( * ) * - 54 * 0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 * - ( + col0 ) * - col0 + col1 FROM tab0
----
3456
658524
912674

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + col1 * 85 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT + 46 * - MIN( + col0 ) FROM tab0
----
-690

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + 46 * - MIN ( + col0 ) FROM tab0
----
-690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3376
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 >= - + col2
----

query I rowsort
SELECT DISTINCT col1 * + + ( + - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT - SUM( DISTINCT col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3379
SELECT - SUM ( DISTINCT col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT DISTINCT + SUM( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE - col0 + - 42 * - 52 + + - col0 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT + SUM ( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE - col0 + - 42 * - 52 + + - col0 IS NOT NULL
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT - col1 * col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
2
32

skipif mysql # not compatible
query I rowsort label-3381
SELECT - col1 * col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
2
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3382
SELECT + + col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND CAST( NULL AS DECIMAL ) + + - col2
----

skipif mysql # not compatible
query I rowsort label-3382
SELECT + + col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND CAST ( NULL AS REAL ) + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + 21 * + + COUNT( * ) + 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
283

skipif mysql # not compatible
query I rowsort label-3383
SELECT + 21 * + + COUNT ( * ) + 94 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 16 ) col0 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL ( col0 ) + ( + + 0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 36 < 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - - SUM( - col1 ) AS col2 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3387
SELECT - - SUM ( - col1 ) AS col2 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT MAX( ALL + - 59 ) AS col2 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3388
SELECT MAX ( ALL + - 59 ) AS col2 FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT - SUM( ALL + 17 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - SUM ( ALL + 17 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - 57 * 49 AS col2 FROM tab1 AS cor0
----
-2793
-2793
-2793

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 11 NOT BETWEEN - col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - + 60 * + col1 AS col0 FROM tab0 cor0
----
-109620
-5820
-72900

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL - MAX( ALL - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL - MAX ( ALL - col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL - COUNT( * ) * - 92 AS col0 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - COUNT ( * ) * - 92 AS col0 FROM tab2
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3395
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN + - col2 + CAST( NULL AS SIGNED ) + - + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3395
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN + - col2 + CAST ( NULL AS INTEGER ) + - + col0 AND NULL
----

query I rowsort
SELECT 88 + col2 + + 10 * + col0 - + 60 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1006
634
937

query II rowsort
SELECT ALL 28 * - + col2 * 59, col1 FROM tab1
----
-112336
47
-158592
14
-97468
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + 95 * - + COUNT( * ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 95 * - + COUNT ( * ) FROM tab2
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT - 61 * COUNT( * ) AS col1 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-3399
SELECT - 61 * COUNT ( * ) AS col1 FROM tab2
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col0 FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT + + 17 * + + 31 + - + 91 + + - 48 AS col0 FROM tab0 cor0
----
388

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3403
SELECT - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query II rowsort
SELECT col2, + 67 AS col2 FROM tab1
----
59
67
68
67
96
67

query II rowsort
SELECT DISTINCT col0 + ( 57 ) - - - 99 * - 51 + col1 AS col0, - 9 * + + col2 + col2 FROM tab2 AS cor0
----
5203
-184
5247
-320
5248
-464

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col2 * col2
----

query I rowsort
SELECT DISTINCT + col1 * - 66 FROM tab1 AS cor0
----
-3102
-330
-924

query I rowsort
SELECT - 99 + - 72 AS col1 FROM tab2 AS cor0
----
-171
-171
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * - - 83 * - col1 * col0 col2 FROM tab0 AS cor0
----
13192767
1512675
780947

query I rowsort
SELECT DISTINCT 74 * + col1 FROM tab2 AS cor0
----
3774
4958
5698

query III rowsort
SELECT * FROM tab0 WHERE + - col1 - - col1 NOT BETWEEN NULL AND col0 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT col2 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT col2 / - - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT - MAX( + col0 ) + 4 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT - MAX ( + col0 ) + 4 FROM tab1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3414
SELECT DISTINCT 19 DIV COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab0
----
6
3

skipif mysql # not compatible
query II rowsort label-3414
SELECT DISTINCT 19 / COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0
----
6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL MAX( - 80 ) + + + 87 AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL MAX ( - 80 ) + + + 87 AS col1 FROM tab2
----
7

query II rowsort
SELECT ALL + col2 + + - col1 AS col1, 24 FROM tab2 AS cor0
----
-28
24
-37
24
-9
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT + 41 AS col1, + MIN( - - col0 ) FROM tab2 cor0
----
41
46

skipif mysql # not compatible
query II rowsort label-3418
SELECT + 41 AS col1, + MIN ( - - col0 ) FROM tab2 cor0
----
41
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT + - 44 DIV + - 77 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT + - 44 / + - 77 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ( - 20 ) * - + MIN( ALL - + col0 ) AS col0 FROM tab2 cor0
----
-1500

skipif mysql # not compatible
query I rowsort label-3420
SELECT ( - 20 ) * - + MIN ( ALL - + col0 ) AS col0 FROM tab2 cor0
----
-1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3421
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - ( + col0 ), col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT DISTINCT SUM( DISTINCT - + col1 ) AS col0, 80 AS col0 FROM tab1
----
-66
80

skipif mysql # not compatible
query II rowsort label-3423
SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col0, 80 AS col0 FROM tab1
----
-66
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL COUNT( DISTINCT 34 ) AS col0 FROM tab0, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL COUNT ( DISTINCT 34 ) AS col0 FROM tab0, tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 81 * + ( + ( - col1 ) ) + + + 95 FROM tab2
----
4226
5522
6332

query I rowsort
SELECT DISTINCT - col2 + - 6 - - col2 * 66 * - 47 AS col0 FROM tab1
----
-183083
-211010
-297894

query II rowsort
SELECT DISTINCT + col2 * + - col0 AS col0, col2 AS col1 FROM tab0
----
-705
47
-870
10
-9603
99

query I rowsort
SELECT ALL col0 * - 25 + - 2 + + col1 * 8 * - col1 * col0 AS col0 FROM tab1
----
-1610429
-19127
-81245

query I rowsort
SELECT ALL col2 + + - col1 + 19 * + ( 56 ) - - + col0 FROM tab0 AS cor0
----
1045
1140
1259

query I rowsort
SELECT DISTINCT - col0 * - - col0 + 44 AS col1 FROM tab1 AS cor0
----
-2557
-7181
-8237

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT - - 75 + 43 + + + 9 + - COUNT( * ) - + COUNT( * ) col1 FROM tab0 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3431
SELECT - - 75 + 43 + + + 9 + - COUNT ( * ) - + COUNT ( * ) col1 FROM tab0 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + + 65 + COUNT( * ) FROM tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-3432
SELECT + + 65 + COUNT ( * ) FROM tab1 cor0
----
68

query II rowsort
SELECT ALL + col2 * + col1 * - - ( col0 ) AS col0, col2 FROM tab0 AS cor0
----
18270
10
57105
47
9603
99

query I rowsort
SELECT ALL + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT - col1 + - 61 + - col0 + - + 32 FROM tab1
----
-158
-183
-231

query I rowsort
SELECT ALL ( - - col0 ) + + col0 AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT col0 + ( - 94 ) FROM tab2
----
-19
-30
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 63 + + 89 IS NULL
----

query II rowsort
SELECT ALL col2 * + + col1 + 48 AS col1, - col1 * - + col1 AS col0 FROM tab1 AS cor0
----
1392
196
3244
2209
343
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3440
SELECT DISTINCT + SUM( DISTINCT col1 ) + - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT + SUM ( DISTINCT col1 ) + - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( 72 ) - - col2 FROM tab2 AS cor0
----
112
130
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT ALL - CAST( col0 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - CAST ( col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT COUNT( * ) * - + 5 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT COUNT ( * ) * - + 5 FROM tab1 AS cor0
----
-15

query II rowsort
SELECT ALL 83 AS col1, col0 AS col2 FROM tab0
----
83
15
83
87
83
97

query II rowsort
SELECT ALL + col0 AS col0, col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT - col0 DIV - col2 + - col1 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-3447
SELECT - col0 / - col2 + - col1 FROM tab2
----
-49
-66
-76

query I rowsort
SELECT ALL + 35 + 16 FROM tab2
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT COUNT( * ) * - 62 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-3449
SELECT COUNT ( * ) * - 62 FROM tab2
----
-186

query III rowsort
SELECT * FROM tab0 WHERE + - 58 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - 54 col2 FROM tab2
----
-3
13
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 30 * 96 - + col0 * - 40 AS col0 FROM tab0 AS cor0
----
3480
6360
6760

query II rowsort
SELECT + col0, 8 AS col2 FROM tab2 AS cor0
----
46
8
64
8
75
8

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( + col1 ) = + 91 * + 55 / - - col1 )
----

query I rowsort
SELECT + col2 * col0 * - - col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT COUNT( DISTINCT - col0 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3458
SELECT COUNT ( DISTINCT - col0 ) col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT col0 DIV + - col1 + col2 AS col0 FROM tab2 AS cor0
----
23
40
57

skipif mysql # not compatible
query I rowsort label-3459
SELECT col0 / + - col1 + col2 AS col0 FROM tab2 AS cor0
----
23
40
57

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT 8 + 14 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL SUM( DISTINCT - ( - 83 ) ) FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL SUM ( DISTINCT - ( - 83 ) ) FROM tab0 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT SUM( - 76 ) * - - COUNT( * ) + - MIN( + col1 ) FROM tab2
----
-735

skipif mysql # not compatible
query I rowsort label-3462
SELECT SUM ( - 76 ) * - - COUNT ( * ) + - MIN ( + col1 ) FROM tab2
----
-735

query I rowsort
SELECT DISTINCT + 43 + + col2 FROM tab0
----
142
53
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3464
SELECT ALL - CAST( NULL AS DECIMAL ) + + - col1 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - CAST ( NULL AS REAL ) + + - col1 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 44 AS col2 FROM tab2
----
1012
1760
2552

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 40 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 34 ) FROM tab1 cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT - - MIN( + col1 ) + - - SUM( ALL + 51 ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3469
SELECT - - MIN ( + col1 ) + - - SUM ( ALL + 51 ) FROM tab2 AS cor0
----
204

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND + 10
----

query II rowsort
SELECT ALL 55 - col2 AS col0, - col0 AS col1 FROM tab0 AS cor0
----
-44
-97
45
-87
8
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT ALL + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT DISTINCT + + col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + + col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - + col0 + col2 FROM tab2 AS cor0
----
28
50
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col2 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT DISTINCT + 10 * - 14 * + - col0 FROM tab2
----
10500
6440
8960

query I rowsort
SELECT + col0 * + col2 AS col2 FROM tab0 WHERE 85 - col1 * 32 NOT BETWEEN + + 54 * - col0 AND NULL
----
705

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab1 WHERE NOT ( NOT ( NOT 49 = col2 + - col2 ) )
----
14
47
5

query I rowsort
SELECT DISTINCT - col2 * - - 32 FROM tab1
----
-1888
-2176
-3072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col1 FROM tab1 AS cor0
----
30

query I rowsort
SELECT + - col1 * col0 * + 36 FROM tab1 AS cor0
----
-15300
-153972
-25704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3482
SELECT + CAST( + MIN( col0 ) AS SIGNED ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3482
SELECT + CAST ( + MIN ( col0 ) AS INTEGER ) FROM tab2 cor0
----
46

query I rowsort
SELECT + ( + 29 ) FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT + col1 * - 25 AS col0 FROM tab1 AS cor0
----
-1175
-125
-350

query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( - + col0 * + + col2 ) < ( NULL ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col2 * 7 + + 94 AND NULL
----

query I rowsort
SELECT + ( + 23 ) FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT COUNT( * ) - COUNT( * ) * + MAX( ALL - col2 ) + + - MIN( DISTINCT + 85 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-13

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * + MAX ( ALL - col2 ) + + - MIN ( DISTINCT + 85 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT ALL - 29 * + COUNT( * ), - COUNT( * ) FROM tab1 AS cor0 WHERE 20 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3489
SELECT ALL - 29 * + COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 WHERE 20 IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + - COUNT( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3490
SELECT + - COUNT ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 >= - ( + 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 28 + - - 59
----

query I rowsort
SELECT ALL + ( - - col1 ) + + col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3494
SELECT ALL + 30 + + COUNT( * ) AS col1, COUNT( * ) * 38 FROM tab2 AS cor0
----
33
114

skipif mysql # not compatible
query II rowsort label-3494
SELECT ALL + 30 + + COUNT ( * ) AS col1, COUNT ( * ) * 38 FROM tab2 AS cor0
----
33
114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3495
SELECT ( 96 ) + + COUNT( * ) - - - CAST( NULL AS DECIMAL ) * + 79 * - + COUNT( * ) * - + COUNT( * ) col2, - COUNT( * ) FROM tab2 cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3495
SELECT ( 96 ) + + COUNT ( * ) - - - CAST ( NULL AS REAL ) * + 79 * - + COUNT ( * ) * - + COUNT ( * ) col2, - COUNT ( * ) FROM tab2 cor0
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT - 23 DIV + + 54 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3496
SELECT - 23 / + + 54 + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + ( - - col2 ) + 43 FROM tab1 AS cor0 WHERE col1 * + col2 IN ( - col0, col1, - col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT + 85 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3498
SELECT + 85 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
82

query I rowsort
SELECT + + 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + col0 * - + 28 - - col1 + - 51 FROM tab1 AS cor0
----
-1465
-2426
-2552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3501
SELECT DISTINCT CAST( 38 AS SIGNED ) + - 54 AS col2, 74 col1 FROM tab2 AS cor0
----
-16
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3501
SELECT DISTINCT CAST ( 38 AS INTEGER ) + - 54 AS col2, 74 col1 FROM tab2 AS cor0
----
-16
74

query I rowsort
SELECT col2 - + 16 FROM tab0 AS cor0
----
-6
31
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT ALL - 12 * + - col2 + + + col2 + - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - 12 * + - col2 + + + col2 + - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 + - - col1 * + 87 FROM tab2 AS cor0
----
4460
5887
6739

query II rowsort
SELECT ALL - 97 + + 67 + 52 * 42 + - - 28 * - 39 + col2 * - + ( + col1 ) * - ( - col0 ), - 8 * 83 AS col1 FROM tab2 AS cor0
----
-196058
-664
-290388
-664
-52896
-664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT - col0 + + 62 + + col1 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-18
18
25

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - col0 + + 62 + + col1 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-18
18
25

query I rowsort
SELECT 96 + + - 70 FROM tab1 AS cor0 WHERE col2 >= - col0
----
26
26
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3508
SELECT DISTINCT - 98, 67 + + col2 DIV + ( col1 ) AS col2 FROM tab0 cor0
----
-98
166
-98
67

skipif mysql # not compatible
query II rowsort label-3508
SELECT DISTINCT - 98, 67 + + col2 / + ( col1 ) AS col2 FROM tab0 cor0
----
-98
166
-98
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT - col1 DIV + 94 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3509
SELECT - col1 / + 94 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL 78 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT ( 10 ) AS col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT - - 58 AS col1 FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3514
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-3515
SELECT ALL col2, col1 - - - col0 DIV + - ( col1 ) FROM tab0
----
10
25
47
81
99
98

skipif mysql # not compatible
query II rowsort label-3515
SELECT ALL col2, col1 - - - col0 / + - ( col1 ) FROM tab0
----
10
25
47
81
99
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - col1 col1 FROM tab1
----
2021
215
602

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + MIN( + 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3517
SELECT + MIN ( + 80 ) FROM tab1 AS cor0
----
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 61 / col1 < - ( + - col1 )
----
85
5
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 75 >= 43 + + - col0 + col2
----
51
14
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - + col2 IS NULL AND ( NULL ) BETWEEN + + 73 AND + col2 * + + col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 84 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 84 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL - 40 + - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
-40

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL - 40 + - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
-40

query I rowsort
SELECT + col2 + + 12 FROM tab1 AS cor0
----
108
71
80

query I rowsort
SELECT - 28 + - 26 FROM tab2
----
-54
-54
-54

query III rowsort
SELECT * FROM tab0 WHERE ( ( - + col1 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + - ( col1 ) ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL + 48 + + ( + col0 ) FROM tab2
----
112
123
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3528
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 col1, col0 AS 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-3528
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 col1, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN + + 68 AND + 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - ( 33 ) AND - col0 / col0
----

query I rowsort
SELECT DISTINCT - + col0 - - col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 49 - 63 FROM tab1 AS cor0
----
-14
-14
-14

query II rowsort
SELECT DISTINCT 54 AS col0, - 93 + - + ( - ( col0 ) ) FROM tab0 cor0
----
54
-6
54
-78
54
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT + col2 + + col1 DIV - - 92 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3534
SELECT + col2 + + col1 / - - 92 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT col2 + + - col1 - 34 * + - 50 * col1 * col0 AS col0 FROM tab0
----
164998
2065466
3105889

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 89, ( - + col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3537
SELECT DISTINCT - 48 + + - SUM( - - col1 ) DIV + ( - COUNT( * ) ) FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - 48 + + - SUM ( - - col1 ) / + ( - COUNT ( * ) ) FROM tab1 cor0
----
-26

query I rowsort
SELECT + col1 * - - ( col2 ) FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT 12 * + col0 AS col2 FROM tab2
----
552
768
900

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + COUNT( + + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + COUNT ( + + col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT col2 * - - CAST( + 58 AS SIGNED ) AS col2 FROM tab2
----
1334
2320
3364

skipif mysql # not compatible
query I rowsort label-3541
SELECT col2 * - - CAST ( + 58 AS INTEGER ) AS col2 FROM tab2
----
1334
2320
3364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT CAST( + - 2 AS SIGNED ) FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3542
SELECT CAST ( + - 2 AS INTEGER ) FROM tab2
----
-2
-2
-2

query I rowsort
SELECT ALL + 15 * + - col1 * + + col1 FROM tab2
----
-39015
-67335
-88935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, ( + 71 ) * - - 59 FROM tab1
----
14
4189
47
4189
5
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT + COUNT( + + 28 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT + COUNT ( + + 28 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT + + ( 20 ) / - 84 * + 66 * col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT + + ( 20 ) / - 84 * + 66 * col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3547
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3547
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col1 + - col2 + + 41 FROM tab2 AS cor0
----
-33
-76
-84

query I rowsort
SELECT ALL + 98 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT - COUNT( + 47 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT - COUNT ( + 47 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3551
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + 26, + col0 + + + col1 DIV + + 21 AS col0 FROM tab2
----
NULL
48
NULL
67
NULL
78

skipif mysql # not compatible
query II rowsort label-3551
SELECT DISTINCT CAST ( NULL AS REAL ) + - + 26, + col0 + + + col1 / + + 21 AS col0 FROM tab2
----
NULL
48
NULL
67
NULL
78

query I rowsort
SELECT DISTINCT + col1 * - + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL - MIN( + 62 ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL - MIN ( + 62 ) FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3554
SELECT + 86 DIV + + COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3554
SELECT + 86 / + + COUNT ( * ) FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL + + COUNT( * ) * - MAX( 45 ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + + COUNT ( * ) * - MAX ( 45 ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT + - 62 * - col0 AS col1 FROM tab1 AS cor0
----
3162
5270
5642

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + - col0 < - 15
----

query II rowsort
SELECT ALL col2 + + - ( - ( - 87 ) ) * + 42 AS col1, 48 AS col2 FROM tab1
----
-3558
48
-3586
48
-3595
48

query I rowsort
SELECT + col2 + col0 + - 24 FROM tab1
----
120
123
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( - + 40 ) col0 FROM tab1
----
125
131
91

query I rowsort
SELECT DISTINCT col1 + 50 AS col1 FROM tab0
----
131
51
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3562
SELECT ALL - ( - 35 ) DIV - - COUNT( * ) col2 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3562
SELECT ALL - ( - 35 ) / - - COUNT ( * ) col2 FROM tab1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3563
SELECT + COUNT( * ) DIV + + 73 + COUNT( * ) AS col1, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3563
SELECT + COUNT ( * ) / + + 73 + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT ALL 36 + - col2 + + + col0 AS col1 FROM tab2
----
53
59
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT - col1 * 46 + - CAST( NULL AS SIGNED ) + + ( - ( col2 ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT - col1 * 46 + - CAST ( NULL AS INTEGER ) + + ( - ( col2 ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3566
SELECT + 60 + col0 - CAST( - col2 AS SIGNED ) * col1 AS col2, col1 * - 14 * + col2 * col1 FROM tab0 cor0
----
256
-1386
357
-61740
3882
-4317138

skipif mysql # not compatible
query II rowsort label-3566
SELECT + 60 + col0 - CAST ( - col2 AS INTEGER ) * col1 AS col2, col1 * - 14 * + col2 * col1 FROM tab0 cor0
----
256
-1386
357
-61740
3882
-4317138

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT ALL col0 + + 84 + col0 DIV col2 col1 FROM tab0 AS cor0
----
179
181
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3567
SELECT ALL col0 + + 84 + col0 / col2 col1 FROM tab0 AS cor0
----
179
181
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT - CAST( 43 AS SIGNED ) + - 3 FROM tab1 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-3568
SELECT - CAST ( 43 AS INTEGER ) + - 3 FROM tab1 AS cor0
----
-46
-46
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + 74 * + col0
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT ALL 71 DIV - 79 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL 71 / - 79 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 54 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0 AS col0, + 12 AS col1 FROM tab2 AS cor0
----
46
12
64
12
75
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + - col0 ), + 93 col1 FROM tab1 AS cor0
----
-51
93
-85
93
-91
93

query I rowsort
SELECT col1 * - col1 + - 73 FROM tab1 AS cor0
----
-2282
-269
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col0 FROM tab0 AS cor0
----
55
55
55

query II rowsort
SELECT col0 AS col0, - 52 + - 12 AS col2 FROM tab0 AS cor0
----
15
-64
87
-64
97
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT DISTINCT + + col2 DIV - 65 * + col1 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + + col2 / - 65 * + col1 AS col1 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 AS col1, col1 col0 FROM tab1 AS cor0
----
35
14
35
47
35
5

query I rowsort
SELECT ALL col1 * + + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT - + MIN( DISTINCT + col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - + MIN ( DISTINCT + col1 ) FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL <= NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 95 + + col1 + - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT - SUM( ALL + - col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3584
SELECT - SUM ( ALL + - col2 ) col2 FROM tab1
----
223

query II rowsort
SELECT + ( - ( col2 ) ) AS col2, - col2 + - - col2 AS col1 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NOT + 90 <> - - col1
----
0

skipif mysql # not compatible
query I rowsort label-3586
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 90 <> - - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + COUNT( * ) * - + ( ( COUNT( * ) ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3587
SELECT + COUNT ( * ) * - + ( ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + col1 * - - col0 * + - col1 AS col2 FROM tab2 cor0
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL - ( + + ( COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - ( + + ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT ( NOT NULL NOT BETWEEN ( NULL ) AND NULL ) WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT 61 * COUNT( * ) AS col2 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT 61 * COUNT ( * ) AS col2 FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL MIN( ALL - 26 ) + + COUNT( * ) FROM tab1 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL MIN ( ALL - 26 ) + + COUNT ( * ) FROM tab1 cor0
----
-23

query I rowsort
SELECT ALL + col1 + - 21 FROM tab1 AS cor0
----
-16
-7
26

query II rowsort
SELECT ALL + 47 AS col2, col2 AS col2 FROM tab1 cor0
----
47
59
47
68
47
96

query I rowsort
SELECT ( - 98 ) * + + 41 * - + 89 FROM tab2
----
357602
357602
357602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT ALL ( - - SUM( + - col0 ) ) * ( CAST( - 33 AS SIGNED ) ) AS col0 FROM tab1
----
7491

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL ( - - SUM ( + - col0 ) ) * ( CAST ( - 33 AS INTEGER ) ) AS col0 FROM tab1
----
7491

query I rowsort
SELECT ALL - col1 + - 85 + + + 97 AS col1 FROM tab1
----
-2
-35
7

query I rowsort
SELECT col0 * + col1 * + 68 + 54 + - col0 / + col0 AS col1 FROM tab0 WHERE NULL <= NULL
----

query II rowsort
SELECT DISTINCT col0 + + col0 AS col1, - col2 * - col0 AS col2 FROM tab0
----
174
870
194
9603
30
705

onlyif mysql # DIV for integer division: 
query I rowsort label-3600
SELECT DISTINCT - 97 - col2 DIV col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-196
-97

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - 97 - col2 / col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-196
-97

query II rowsort
SELECT DISTINCT + + col1 - + - col0, 12 AS col2 FROM tab0 AS cor0
----
108
12
96
12
98
12

query I rowsort
SELECT - 19 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 16 * ( - col2 ) FROM tab2
----
-368
-640
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL - - COUNT( ALL 55 ) * + 89 * + ( + SUM( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
53133

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL - - COUNT ( ALL 55 ) * + 89 * + ( + SUM ( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
53133

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN + - col2 AND + col0
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + - col0 FROM tab1 cor0 WHERE + col0 / + col1 - + col1 + col0 * col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT + col0, col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( - col2 - + 42 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) * col0 * - col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT + MAX( DISTINCT col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3610
SELECT + MAX ( DISTINCT col1 ) FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3612
SELECT + COUNT( * ) AS col0, 77 FROM tab2
----
3
77

skipif mysql # not compatible
query II rowsort label-3612
SELECT + COUNT ( * ) AS col0, 77 FROM tab2
----
3
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col2 FROM tab2
----
-23
23
-40
40
-58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2 AS col1, - ( - + col1 ) + + 33 col2, col1 AS col0 FROM tab2
----
9 values hashing to e2b6836bf5c7b8b3c4dea09521ed666e

query I rowsort
SELECT - col1 * - col0 - + col0 + + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT - col0 * + col2 * col0 * - + col0 AS col2 FROM tab0 AS cor0
----
158625
6585030
90354627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 91 ) col2 FROM tab1 AS cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + + + col1 col2 FROM tab0
----
121
41
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT ALL SUM( ALL - - 53 ) DIV + + COUNT( * ) + 40 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL SUM ( ALL - - 53 ) / + + COUNT ( * ) + 40 FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + COUNT( * ) * - 44 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-3620
SELECT + COUNT ( * ) * - 44 FROM tab1 AS cor0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL + + CAST( + 87 AS SIGNED ) + + + 77 col1 FROM tab1 AS cor0
----
164
164
164

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3621
SELECT ALL + + CAST ( + 87 AS INTEGER ) + + + 77 col1 FROM tab1 AS cor0
----
164
164
164

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT col0 - 23 - - col1 DIV col0 - + col1 FROM tab0 AS cor0
----
-84
43
73

skipif mysql # not compatible
query I rowsort label-3622
SELECT col0 - 23 - - col1 / col0 - + col1 FROM tab0 AS cor0
----
-84
43
73

query I rowsort
SELECT DISTINCT - ( + 2 ) AS col0 FROM tab2
----
-2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 8 <= - - col1
----

query I rowsort
SELECT ( + 98 ) FROM tab0 WHERE ( NOT - 38 IS NULL )
----
98
98
98

query I rowsort
SELECT DISTINCT 11 * - + col2 * - col1 + - col0 FROM tab2
----
12857
33816
42671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) - + 68 AS col1 FROM tab1
----
-9
0
28

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) - + 68 AS col1 FROM tab1
----
-9
0
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT DISTINCT ( + - 11 ) - col2 / - CAST( NULL AS SIGNED ) - + 93 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT ( + - 11 ) - col2 / - CAST ( NULL AS INTEGER ) - + 93 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3629
SELECT - - COUNT( * ), COUNT( * ) DIV + 8 AS col1 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-3629
SELECT - - COUNT ( * ), COUNT ( * ) / + 8 AS col1 FROM tab0 AS cor0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL - CAST( + 18 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - CAST ( + 18 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT col0 * 77 + + col2 * 21 AS col0 FROM tab1
----
5943
7784
8435

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT CAST( ( col1 ) AS SIGNED ) col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3633
SELECT CAST ( ( col1 ) AS INTEGER ) col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - 77 - + SUM( ALL + 37 ) FROM tab1
----
-188

skipif mysql # not compatible
query I rowsort label-3634
SELECT - 77 - + SUM ( ALL + 37 ) FROM tab1
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL CAST( col2 AS SIGNED ) AS col1 FROM tab0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL CAST ( col2 AS INTEGER ) AS col1 FROM tab0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col2 + 57 * + 27 AND NULL
----

query I rowsort
SELECT DISTINCT ( 71 ) FROM tab0
----
71

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - 98 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 81 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL COUNT( * ) * COUNT( * ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3641
SELECT ALL COUNT ( * ) * COUNT ( * ) col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL > 98
----

query I rowsort
SELECT - 41 + col1 * 46 AS col2 FROM tab2
----
2305
3041
3501

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + col2 IN ( col1 )
----

query I rowsort
SELECT DISTINCT 36 + - col2 AS col2 FROM tab1
----
-23
-32
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 * + 57 col1 FROM tab1 cor0
----
2632
280
784

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - MAX( col1 ) col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3647
SELECT ALL - MAX ( col1 ) col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 - + 71 * + ( + col2 * - col2 ) AS col1 FROM tab0 AS cor0
----
156854
695968
7187

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3649
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3649
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 24 col2 FROM tab1 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 62 * col0 AND ( - col0 ) - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) - col0 col0 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 - 35 AS col1 FROM tab1 AS cor0
----
-120
-126
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - MAX( DISTINCT 6 ) FROM tab2 AS cor0 WHERE + ( + col1 ) + col0 * col0 >= + 92
----
-6

skipif mysql # not compatible
query I rowsort label-3655
SELECT - MAX ( DISTINCT 6 ) FROM tab2 AS cor0 WHERE + ( + col1 ) + col0 * col0 >= + 92
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL - - COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - - COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 * + 29 FROM tab2
----
1479
1943
2233

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 54 + - 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + col1 * + 12 FROM tab1 WHERE NOT col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 13 - - col1 + 3 FROM tab2
----
67
83
93

query I rowsort
SELECT ALL - col2 * - col2 + 58 FROM tab0
----
158
2267
9859

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT + col2 - - col0 DIV + col2 FROM tab0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-3662
SELECT + col2 - - col0 / + col2 FROM tab0
----
18
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT 77 DIV col1 DIV ( - 70 ) + + 73 * col2 col2 FROM tab2
----
1679
2920
4234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3663
SELECT DISTINCT 77 / col1 / ( - 70 ) + + 73 * col2 col2 FROM tab2
----
1679
2920
4234

query I rowsort
SELECT ALL col0 FROM tab2 WHERE ( ( + 19 ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 - + 80 AS col0 FROM tab1
----
-33
-66
-75

query I rowsort
SELECT AVG ( + col0 ) + + 69 FROM tab2 WHERE + 14 / + col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 70 / col2 + + col2 ) NOT BETWEEN NULL AND ( col0 )
----
51
14
96

query I rowsort
SELECT - 82 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query III rowsort
SELECT * FROM tab0 WHERE NOT - 26 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3670
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + CAST( col1 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3670
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + CAST ( col1 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0, col1 + + - 18 AS col0 FROM tab1 AS cor0
----
51
-4
85
-13
91
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL >= 79
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL >= 79
----
0

query II rowsort
SELECT DISTINCT - 54, ( - - col0 ) AS col0 FROM tab1 AS cor0
----
-54
51
-54
85
-54
91

query I rowsort
SELECT DISTINCT + - 57 * - - col1 + + col1 FROM tab0 AS cor0
----
-1176
-4536
-56

query I rowsort
SELECT DISTINCT + col1 * + - col2 - ( col0 ) FROM tab0 AS cor0
----
-196
-297
-3822

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3676
SELECT CAST( NULL AS SIGNED ) AS col0, col2 + + 66 + 37 DIV + ( + col1 ) AS col1 FROM tab0 AS cor0
----
NULL
113
NULL
202
NULL
77

skipif mysql # not compatible
query II rowsort label-3676
SELECT CAST ( NULL AS INTEGER ) AS col0, col2 + + 66 + 37 / + ( + col1 ) AS col1 FROM tab0 AS cor0
----
NULL
113
NULL
202
NULL
77

query I rowsort
SELECT ALL - 22 * 12 AS col1 FROM tab2 AS cor0
----
-264
-264
-264

query I rowsort
SELECT ALL 66 * + col1 FROM tab0 AS cor0 WHERE NOT - 75 * col2 / col0 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3679
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 17 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT CAST ( NULL AS REAL ) * 17 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 36 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3681
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( col0 * - col1 ) AND ( + col0 + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3681
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( col0 * - col1 ) AND ( + col0 + - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col1 + - 82 * + col0 NOT IN ( col1 )
----

query I rowsort
SELECT ALL 32 * - 2 FROM tab0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab2 WHERE + 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT DISTINCT - COUNT( * ) + - 68 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT - COUNT ( * ) + - 68 FROM tab2
----
-71

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT + - col1 + 57 FROM tab0 AS cor0
----
-24
36
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT + 61 DIV + col2 + + + col1 FROM tab0 AS cor0
----
1
27
82

skipif mysql # not compatible
query I rowsort label-3688
SELECT + 61 / + col2 + + + col1 FROM tab0 AS cor0
----
1
27
82

query I rowsort
SELECT - + ( col1 ) + - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT - col1 * - + ( + col1 ) * col2 + - col2 FROM tab2 WHERE - col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) NOT IN ( col2 + + col2 + - col1 * ( + ( col2 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 24 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT + col1 * col0 FROM tab2 AS cor0 WHERE + col0 = - - ( + + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3693
SELECT + col1 * col0 FROM tab2 AS cor0 WHERE + col0 = - - ( + + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + 41 - col0 + + 36 FROM tab1 AS cor0
----
-14
-8
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL + COUNT( * ) - + 1 + + ( - MIN( DISTINCT + col1 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + COUNT ( * ) - + 1 + + ( - MIN ( DISTINCT + col1 ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT + 10 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3696
SELECT + 10 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7

query I rowsort
SELECT - col1 - - - 0 - + col2 + - col1 - + col1 + - col1 * - col0 * 3 FROM tab1 AS cor0
----
1201
12622
2004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT DISTINCT - - 96 DIV - col2 - col1 AS col0 FROM tab0 AS cor0
----
-1
-30
-83

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - - 96 / - col2 - col1 AS col0 FROM tab0 AS cor0
----
-1
-30
-83

query I rowsort
SELECT - col2 + col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( + - 84 * col1 ) AND 96
----

query I rowsort
SELECT DISTINCT + + 79 - - 27 FROM tab2 AS cor0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT DISTINCT + col2 DIV + col2 + + col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + col2 / + col2 + + col1 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT ALL + col0 - col1 + + - col2 + ( + col1 ) DIV col2 FROM tab1 AS cor0
----
-24
-59
21

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + col0 - col1 + + - col2 + ( + col1 ) / col2 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT ALL + - col2 DIV + col0 - 9 FROM tab0 cor0
----
-10
-12
-9

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + - col2 / + col0 - 9 FROM tab0 cor0
----
-10
-12
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * + 96 col2 FROM tab0 WHERE + 89 NOT BETWEEN ( NULL ) AND + col0 * + - col1
----
8160
8160
8160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT DISTINCT + SUM( ALL - CAST( NULL AS SIGNED ) ) + + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT col1 - + + 49 AS col1 FROM tab0 WHERE NOT + 71 IS NULL
----
-28
-48
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT + ( - SUM( ALL col0 ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3708
SELECT + ( - SUM ( ALL col0 ) ) AS col1 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT - SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3709
SELECT - SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL + 84 * - + col0 AS col1 FROM tab0 AS cor0 WHERE col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 17 * - col1 + + col2 ) NOT BETWEEN col1 AND 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT 51 DIV + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3712
SELECT 51 / + col1 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT DISTINCT CAST( + + ( - 59 ) AS SIGNED ) * 1 col2 FROM tab0 cor0 WHERE NOT 11 IN ( - 79 )
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3713
SELECT DISTINCT CAST ( + + ( - 59 ) AS INTEGER ) * 1 col2 FROM tab0 cor0 WHERE NOT 11 IN ( - 79 )
----
-59

query I rowsort
SELECT 58 * + ( + col0 ) + col0 AS col1 FROM tab1 AS cor0
----
3009
5015
5369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( ( NOT col1 <> ( NULL ) ) )
----

skipif mysql # not compatible
query I rowsort label-3715
SELECT - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( ( NOT col1 <> ( NULL ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( - col2 )
----

query I rowsort
SELECT col2 + + 81 AS col2 FROM tab0 AS cor0
----
128
180
91

query I rowsort
SELECT ALL - - col1 * 16 FROM tab0 AS cor0 WHERE - col1 - + 58 IS NOT NULL
----
1296
16
336

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 0 / - + col1 - - 51 * col2 + - - col0 ) NOT BETWEEN - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL + COUNT( * ) * COUNT( col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + COUNT ( * ) * COUNT ( col1 ) FROM tab0
----
9

query I rowsort
SELECT ALL col1 + 78 AS col0 FROM tab1
----
125
83
92

query II rowsort
SELECT + 96 AS col0, - col2 * - 60 FROM tab1
----
96
3540
96
4080
96
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL - 0 + + + MAX( - + col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3723
SELECT ALL - 0 + + + MAX ( - + col0 ) col1 FROM tab1
----
-51

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab1 WHERE - + col0 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 + - 2 - + - ( + col2 ) - col1 * col2 col2 FROM tab0
----
-100
-191
-3728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, 2 col1 FROM tab2
----
-51
2
-67
2
-77
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3727
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col0 AND + + CAST( - 67 AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-3727
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col0 AND + + CAST ( - 67 AS INTEGER ) * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT DISTINCT CAST( + - col0 AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT DISTINCT + col1 DIV + + col2 + + + 76 AS col0 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + col1 / + + col2 + + + 76 AS col0 FROM tab1 AS cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 43 <= + - 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 44 - - col1 FROM tab1 AS cor0
----
49
58
91

query I rowsort
SELECT ALL 28 + - - 97 * col1 AS col0 FROM tab0
----
125
2065
7885

query I rowsort
SELECT DISTINCT + - 9 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT + 98 DIV - col0 + - 51 AS col2 FROM tab1
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-3734
SELECT + 98 / - col0 + - 51 AS col2 FROM tab1
----
-52
-52
-52

query I rowsort
SELECT ALL - col1 + 65 FROM tab0 AS cor0
----
-16
44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT + COUNT( * ) * 71 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-3736
SELECT + COUNT ( * ) * 71 FROM tab1 AS cor0
----
213

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - + col2 + - col1 / ( + + col1 ) - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3738
SELECT DISTINCT CAST( NULL AS SIGNED ), CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3738
SELECT DISTINCT CAST ( NULL AS INTEGER ), CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 WHERE NOT + - col2 + col0 > + col1 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + - col2 + col0 > + col1 * - col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT + ( - + 3 ) * + + MAX( col2 ) * + 50 - - MIN( DISTINCT + col1 ) + + + 2, + 96 AS col1 FROM tab2
----
-8647
96

skipif mysql # not compatible
query II rowsort label-3740
SELECT + ( - + 3 ) * + + MAX ( col2 ) * + 50 - - MIN ( DISTINCT + col1 ) + + + 2, + 96 AS col1 FROM tab2
----
-8647
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - COUNT( - - 12 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3742
SELECT - COUNT ( - - 12 ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT DISTINCT - col2 * col1 DIV + - ( - - 80 ) FROM tab2
----
14
38
48

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - col2 * col1 / + - ( - - 80 ) FROM tab2
----
14
38
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - 38 col1 FROM tab0 AS cor0
----
15
-38
87
-38
97
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT - + COUNT( * ) * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT - + COUNT ( * ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL col2 AS col1, col2 + col2 AS col0 FROM tab1 AS cor0
----
59
118
68
136
96
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3747
SELECT DISTINCT col0 AS col1, + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3747
SELECT DISTINCT col0 AS col1, + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT COUNT( + col0 ) DIV 43 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3748
SELECT COUNT ( + col0 ) / 43 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT - - 18 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT - - 18 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 85 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + col2 + 81 AS col2 FROM tab0
----
181
2290
9882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT DISTINCT - col1 * + + col0 / - + col2 + col2 + col1 * - CAST( NULL AS SIGNED ) + - + col0 AS col0 FROM tab2 WHERE + 14 * + - 23 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - col1 * + + col0 / - + col2 + col2 + col1 * - CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab2 WHERE + 14 * + - 23 * + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT CAST( NULL AS SIGNED ) * + col2 + + 98 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT CAST ( NULL AS INTEGER ) * + col2 + + 98 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL COUNT( * ) + - - COUNT( * ) + - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL COUNT ( * ) + - - COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + COUNT( * ) + 29 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-3756
SELECT + COUNT ( * ) + 29 FROM tab2
----
32

query I rowsort
SELECT DISTINCT col0 + - 53 AS col0 FROM tab0
----
-38
34
44

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = + 4
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3760
SELECT + ( + 7 ) + CAST( NULL AS DECIMAL ) AS col0, - col1 - - col1 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-3760
SELECT + ( + 7 ) + CAST ( NULL AS REAL ) AS col0, - col1 - - col1 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT ALL 2 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL 2 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT ALL 67 DIV 95 - + col1 - - col2 * + col1 AS col2 FROM tab1 AS cor0
----
1330
290
3149

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL 67 / 95 - + col1 - - col2 * + col1 AS col2 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT - col0 * + col2 - + + 26 AS col1 FROM tab0 AS cor0
----
-731
-896
-9629

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT + - 8 + + 86 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
250

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + - 8 + + 86 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
250

query I rowsort
SELECT 26 - + - col0 AS col1 FROM tab2 cor0
----
101
72
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - + 60 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 32 + - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( + 11 ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT - 55 * col2 AS col1 FROM tab0 cor0
----
-2585
-5445
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - 98 * - + COUNT( * ) FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-3770
SELECT - 98 * - + COUNT ( * ) FROM tab2
----
294

query I rowsort
SELECT col2 * + col2 * 82 AS col2 FROM tab0
----
181138
803682
8200

query I rowsort
SELECT ALL - 32 * 46 FROM tab0
----
-1472
-1472
-1472

query I rowsort
SELECT + 65 * col1 AS col0 FROM tab2
----
3315
4355
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - col1 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3774
SELECT col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 / - col1 * - - col1 > - + 16 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL SUM( + - 9 ) * 96 AS col0 FROM tab0
----
-2592

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL SUM ( + - 9 ) * 96 AS col0 FROM tab0
----
-2592

query I rowsort
SELECT - 31 * - col1 AS col0 FROM tab0
----
2511
31
651

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT col0 DIV col1 * - - ( + col0 ) AS col2 FROM tab0
----
0
348
9409

skipif mysql # not compatible
query I rowsort label-3778
SELECT col0 / col1 * - - ( + col0 ) AS col2 FROM tab0
----
0
348
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT DISTINCT - COUNT( * ) DIV + 15 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - COUNT ( * ) / + 15 AS col1 FROM tab2
----
0

query I rowsort
SELECT + 83 AS col0 FROM tab2 cor0
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL - + col2 * - 79 AS col1 FROM tab0 AS cor0 WHERE - 89 * - + col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - + col2 * - 79 AS col1 FROM tab0 AS cor0 WHERE - 89 * - + col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3782
SELECT DISTINCT - col1 * + 40 * + 46 - - + col1 DIV + - CAST( + 32 AS SIGNED ) AS col0 FROM tab1 cor0
----
-25760
-86481
-9200

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT - col1 * + 40 * + 46 - - + col1 / + - CAST ( + 32 AS INTEGER ) AS col0 FROM tab1 cor0
----
-25760
-86481
-9200

query I rowsort
SELECT - 70 + + - 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 91769d5056ff0f0f5b60806b3bdc6ef2

query II rowsort
SELECT ALL + col0, col1 + 54 FROM tab2 AS cor0
----
46
105
64
131
75
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col1 FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT 0 + col1 * - ( + - col2 ) + - 63 * + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - SUM( ALL - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3788
SELECT - SUM ( ALL - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT + ( + + col1 ) FROM tab0 WHERE 54 + col0 = NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NULL <> - 95
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT DISTINCT - 4 + + COUNT( * ) AS col1, - 92 FROM tab0
----
-1
-92

skipif mysql # not compatible
query II rowsort label-3791
SELECT DISTINCT - 4 + + COUNT ( * ) AS col1, - 92 FROM tab0
----
-1
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT ( + 12 ) DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT ( + 12 ) / + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT CAST( 81 AS SIGNED ) AS col2 FROM tab0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-3793
SELECT CAST ( 81 AS INTEGER ) AS col2 FROM tab0
----
81
81
81

query II rowsort
SELECT 90, + col1 FROM tab2
----
90
51
90
67
90
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT COUNT( ALL 95 ) col0, + MAX( ALL + + 71 ) AS col2 FROM tab0
----
3
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3795
SELECT COUNT ( ALL 95 ) col0, + MAX ( ALL + + 71 ) AS col2 FROM tab0
----
3
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3796
SELECT ALL - - ( - ( + + col1 ) ) * - - 25 / + 58 + + CAST( NULL AS DECIMAL ) + col2 + - ( + + 35 ) * + col0 + - col1 / - col1 + col2 + - - 18 * + ( 17 ) + ( + 17 ) * col0 * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - - ( - ( + + col1 ) ) * - - 25 / + 58 + + CAST ( NULL AS REAL ) + col2 + - ( + + 35 ) * + col0 + - col1 / - col1 + col2 + - - 18 * + ( 17 ) + ( + 17 ) * col0 * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab0 AS cor0 WHERE - col0 / + 70 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + 89 + ( col2 ) FROM tab0
----
-1288
-7733
-8534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT DISTINCT - CAST( - 86 AS SIGNED ) * MIN( - col1 ) AS col0 FROM tab1 AS cor0
----
-4042

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - CAST ( - 86 AS INTEGER ) * MIN ( - col1 ) AS col0 FROM tab1 AS cor0
----
-4042

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + - MIN( + - 85 ) col2 FROM tab0 AS cor0 WHERE NULL >= col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3800
SELECT ALL + - MIN ( + - 85 ) col2 FROM tab0 AS cor0 WHERE NULL >= col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3801
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + ( - + col2 ) * + col1 - - 12 AND NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3801
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + ( - + col2 ) * + col1 - - 12 AND NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT + + ( 6 ) AS col2, 17 + - 34 AS col0 FROM tab2 AS cor0
----
6
-17
6
-17
6
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT ( - CAST( + col1 AS SIGNED ) ) * + col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-3803
SELECT ( - CAST ( + col1 AS INTEGER ) ) * + col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT + + SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3804
SELECT + + SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3805
SELECT col1 AS col2, CAST( NULL AS SIGNED ) + 77 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3805
SELECT col1 AS col2, CAST ( NULL AS INTEGER ) + 77 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < + - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + col0 col2 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT - - col2 * ( col2 ) + col2 FROM tab0 WHERE NOT + col0 BETWEEN ( - + col2 ) AND 98 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL COUNT( * ) * - 36 AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL COUNT ( * ) * - 36 AS col2 FROM tab2
----
-108

query II rowsort
SELECT ALL - col2 AS col0, 82 AS col0 FROM tab0
----
-10
82
-47
82
-99
82

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NULL IN ( - 29 )
----

query I rowsort
SELECT + col1 * - + 90 FROM tab1
----
-1260
-4230
-450

query I rowsort
SELECT ALL - col1 + + 34 AS col1 FROM tab1 AS cor0
----
-13
20
29

query I rowsort
SELECT + ( - 17 ) * + col0 AS col1 FROM tab2 AS cor0
----
-1088
-1275
-782

query I rowsort
SELECT DISTINCT - - 2 + + + col1 AS col0 FROM tab0 AS cor0
----
23
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + COUNT( ALL - ( col1 ) ) * - + 33 * - 82 FROM tab2 AS cor0
----
8118

skipif mysql # not compatible
query I rowsort label-3816
SELECT + COUNT ( ALL - ( col1 ) ) * - + 33 * - 82 FROM tab2 AS cor0
----
8118

query II rowsort
SELECT DISTINCT 76 AS col2, col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
76
23
76
40
76
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN ( NULL ) AND - col1 * - + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + ( - MIN( - 75 ) ) AS col1 FROM tab1 WHERE + 69 / - + col0 * - col2 NOT BETWEEN col0 * + 48 AND col1
----
75

skipif mysql # not compatible
query I rowsort label-3820
SELECT + ( - MIN ( - 75 ) ) AS col1 FROM tab1 WHERE + 69 / - + col0 * - col2 NOT BETWEEN col0 * + 48 AND col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL - ( + MAX( DISTINCT + - col1 ) ) + - + 78 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - ( + MAX ( DISTINCT + - col1 ) ) + - + 78 FROM tab1
----
-73

query I rowsort
SELECT - col0 + + - col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - COUNT( * ) + 81 col1 FROM tab0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3823
SELECT - COUNT ( * ) + 81 col1 FROM tab0
----
78

query II rowsort
SELECT + col1 AS col1, - 71 AS col2 FROM tab2 AS cor0
----
51
-71
67
-71
77
-71

query I rowsort
SELECT DISTINCT col2 - - + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 76 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 33 AS col0, - 72 FROM tab1
----
33
-72
33
-72
33
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT DISTINCT - + 8, COUNT( * ) col2 FROM tab0 AS cor0
----
-8
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3829
SELECT DISTINCT - + 8, COUNT ( * ) col2 FROM tab0 AS cor0
----
-8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT + + MIN( ALL ( - col2 ) ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3830
SELECT DISTINCT + + MIN ( ALL ( - col2 ) ) col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + + + col1 <> + col2 * - - 38
----

query I rowsort
SELECT col2 * - col0 * - col2 * col1 * - col2 + - col1 FROM tab2 AS cor0
----
-28543833
-315392077
-980437867

query II rowsort
SELECT - + col0 AS col1, col2 + + 46 * + col0 AS col1 FROM tab2 AS cor0
----
-46
2139
-64
2984
-75
3508

query I rowsort
SELECT ALL - col1 * + 12 FROM tab0
----
-12
-252
-972

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT + + col1 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE + 37 * 66 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE + 37 * 66 IS NOT NULL
----
NULL

query I rowsort
SELECT - 53 * + - col0 AS col2 FROM tab0
----
4611
5141
795

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT col0 * + col1, 38 * col1 AS col0 FROM tab0
----
1215
3078
1827
798
97
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + ( + col1 ) ) + - 16 col2 FROM tab2
----
-67
-83
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 37 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 37 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + COUNT( * ) FROM tab0 WHERE ( - 7 ) BETWEEN - 78 AND + col1 * + col0
----
3

skipif mysql # not compatible
query I rowsort label-3842
SELECT + COUNT ( * ) FROM tab0 WHERE ( - 7 ) BETWEEN - 78 AND + col1 * + col0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 25 * col2 > NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col1 + - 67 AS col0 FROM tab2 AS cor0
----
-2413
-4995
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT - - MIN( + - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT - - MIN ( + - col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL + col0 * - ( - 77 ) - 59 FROM tab0 cor0
----
1096
6640
7410

query II rowsort
SELECT + col2 * + 68 + - col2, + col1 * + col1 AS col2 FROM tab0 AS cor0
----
3149
6561
6633
1
670
441

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT col1 DIV col0 + + + 70 col1 FROM tab2 AS cor0
----
70
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3848
SELECT DISTINCT col1 / col0 + + + 70 col1 FROM tab2 AS cor0
----
70
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL CAST( NULL AS SIGNED ) + - + CAST( - col0 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL CAST ( NULL AS INTEGER ) + - + CAST ( - col0 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3850
SELECT + COUNT( * ) * COUNT( * ) AS col1, 21 AS col0 FROM tab2
----
9
21

skipif mysql # not compatible
query II rowsort label-3850
SELECT + COUNT ( * ) * COUNT ( * ) AS col1, 21 AS col0 FROM tab2
----
9
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT - COUNT( * ) * + MAX( DISTINCT + 41 ) - - - COUNT( * ) col1 FROM tab1
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT - COUNT ( * ) * + MAX ( DISTINCT + 41 ) - - - COUNT ( * ) col1 FROM tab1
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + col1 col1 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT + col1 * + col2 + ( - + 95 ) * + - col2 * col1 + + + col1 + + 98 / + + col1 + - 26 * + - col2 * + CAST( NULL AS SIGNED ) + - + 53 * + - col2 + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT + col1 * + col2 + ( - + 95 ) * + - col2 * col1 + + + col1 + + 98 / + + col1 + - 26 * + - col2 * + CAST ( NULL AS INTEGER ) + - + 53 * + - col2 + - col0 FROM tab0
----
NULL

query II rowsort
SELECT - col0, - col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 49 + col0 + - 70 + col1 / - col1 FROM tab1 AS cor0 WHERE 32 NOT IN ( - + 90 + - col2 / col0, + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 49 + col0 + - 70 + col1 / - col1 FROM tab1 AS cor0 WHERE 32 NOT IN ( - + 90 + - col2 / col0, + 61 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 20 col0 FROM tab0 AS cor0
----
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( ( - col1 ), col1, col0 * - - 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT 3 DIV + 59 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT 3 / + 59 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) > ( NULL )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 * + 89, 67 )
----

query II rowsort
SELECT + 85 AS col2, col1 AS col0 FROM tab1 AS cor0
----
85
14
85
47
85
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 93 NOT BETWEEN + col1 / - 34 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT CAST( + 52 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-3864
SELECT CAST ( + 52 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT - MAX( ( 37 ) ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - MAX ( ( 37 ) ) FROM tab1 AS cor0
----
-37

query II rowsort
SELECT - col0, - 56 + ( + + col1 ) + col2 AS col2 FROM tab1
----
-51
54
-85
8
-91
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3867
SELECT + COUNT( * ) AS col0, - COUNT( * ) * + 94 FROM tab1
----
3
-282

skipif mysql # not compatible
query II rowsort label-3867
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * + 94 FROM tab1
----
3
-282

onlyif mysql # DIV for integer division: 
query II rowsort label-3868
SELECT DISTINCT + col2 AS col0, col2 + + col2 * col2 - + ( + - col0 ) DIV + 15 AS col2 FROM tab2
----
23
555
40
1644
58
3427

skipif mysql # not compatible
query II rowsort label-3868
SELECT DISTINCT + col2 AS col0, col2 + + col2 * col2 - + ( + - col0 ) / + 15 AS col2 FROM tab2
----
23
555
40
1644
58
3427

query I rowsort
SELECT ALL col2 * - col0 + - col1 FROM tab0
----
-786
-891
-9604

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 49 <> col1
----

query I rowsort
SELECT ALL - + col1 * - + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - - 38 + - col1 FROM tab2 AS cor0
----
-13
-29
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * - col2 col1 FROM tab0 AS cor0
----
-4136
-8712
-880

query I rowsort
SELECT DISTINCT + col0 * - - col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT col1 DIV + + 9 AS col1 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-3875
SELECT col1 / + + 9 AS col1 FROM tab2
----
5
7
8

query III rowsort
SELECT * FROM tab2 WHERE ( 48 IS NULL )
----

query I rowsort
SELECT DISTINCT + - 85 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col1 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3878
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col1 FROM tab1
----
6

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - col2 * + col2 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT ALL + col2 DIV - col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + col2 / - col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT COUNT( * ) * + ( + COUNT( * ) ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3881
SELECT COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3882
SELECT + 81 - - CAST( NULL AS SIGNED ) AS col1, ( + col2 ) + + ( - - 66 ) AS col2 FROM tab2 AS cor0
----
NULL
106
NULL
124
NULL
89

skipif mysql # not compatible
query II rowsort label-3882
SELECT + 81 - - CAST ( NULL AS INTEGER ) AS col1, ( + col2 ) + + ( - - 66 ) AS col2 FROM tab2 AS cor0
----
NULL
106
NULL
124
NULL
89

query I rowsort
SELECT - - 13 - - 22 AS col0 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - - SUM( - 16 ) + - - 61 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3884
SELECT - - SUM ( - 16 ) + - - 61 FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT 20 + + COUNT( * ) AS col1 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 20 + + COUNT ( * ) AS col1 FROM tab1
----
23

query III rowsort
SELECT * FROM tab1 WHERE 95 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3887
SELECT ALL - col2 + 43 / + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - col2 + 43 / + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + MIN( DISTINCT + 36 ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + MIN ( DISTINCT + 36 ) AS col0 FROM tab0
----
36

query I rowsort
SELECT ALL 54 - + + 50 + - - col2 * - 46 * - col1 FROM tab1
----
13574
147020
61828

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT + 72 DIV - ( - + 74 ) * col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT + 72 / - ( - + 74 ) * col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT + - 33 DIV 73 - 57 AS col2 FROM tab2 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-3891
SELECT + - 33 / 73 - 57 AS col2 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ( - - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL + - MIN( ALL 59 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL + - MIN ( ALL 59 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT 55 * + 9 FROM tab2
----
495
495
495

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 45 * - 59 / + col1 * 28 * + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 78, col2 * - col2 col2 FROM tab0
----
1638
-100
6318
-2209
78
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3897
SELECT + - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT - col2 DIV - col1 * - col0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - col2 / - col1 * - col0 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - - col1 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 23
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 99 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT - 94 + ( COUNT( * ) ) * - COUNT( - - col2 ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-3903
SELECT - 94 + ( COUNT ( * ) ) * - COUNT ( - - col2 ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-103

query I rowsort
SELECT ALL - col0 + + - ( - col1 ) + + col2 AS col1 FROM tab2
----
28
50
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT 66 * + + 37 / col2 - + 86 + CAST( NULL AS SIGNED ) / - - col0 * - col2 + col0 + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT 66 * + + 37 / col2 - + 86 + CAST ( NULL AS INTEGER ) / - - col0 * - col2 + col0 + + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL = - 37
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT COUNT( * ) * ( COUNT( * ) ) + + - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3908
SELECT COUNT ( * ) * ( COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) + + 68 FROM tab0
----
155
165
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 - + + 60 + + + col2 + - 94 + + ( + col0 ) * - + col0 col2 FROM tab1 AS cor0
----
-1945
-4090
-6895

query I rowsort
SELECT ALL - 37 - col0 AS col1 FROM tab2 AS cor0
----
-101
-112
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - COUNT( * ) - 31 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-3912
SELECT - COUNT ( * ) - 31 FROM tab1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL COUNT( * ) * - 52 AS col0 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL COUNT ( * ) * - 52 AS col0 FROM tab1
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT col1 DIV - - col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3914
SELECT col1 / - - col1 AS col1 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3915
SELECT DISTINCT 3 DIV 68 AS col1, + col0 + - - 90 AS col1 FROM tab2
----
0
136
0
154
0
165

skipif mysql # not compatible
query II rowsort label-3915
SELECT DISTINCT 3 / 68 AS col1, + col0 + - - 90 AS col1 FROM tab2
----
0
136
0
154
0
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT - ( + CAST( + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3916
SELECT - ( + CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - + 88 * - - ( + 64 ) * - - col1 FROM tab1 AS cor0
----
-264704
-28160
-78848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3918
SELECT - CAST( + 57 AS SIGNED ), col2 AS col2 FROM tab2 AS cor0
----
-57
23
-57
40
-57
58

skipif mysql # not compatible
query II rowsort label-3918
SELECT - CAST ( + 57 AS INTEGER ), col2 AS col2 FROM tab2 AS cor0
----
-57
23
-57
40
-57
58

query I rowsort
SELECT ALL - 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) * - - col0 AS col2 FROM tab2
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - COUNT( * ) * + + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3921
SELECT - COUNT ( * ) * + + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + 95 + + + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + 95 + + + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT col1 * + 81 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + 47 + + + col2 + 56 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT col1 * + 81 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + 47 + + + col2 + 56 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col0, - 15 AS col1 FROM tab0 AS cor0
----
-1
-15
-21
-15
-81
-15

query I rowsort
SELECT ALL - col0 * - ( - ( + col0 ) ) * - 31 AS col1 FROM tab2
----
126976
174375
65596

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT col1 DIV + + col2 + - + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-3926
SELECT col1 / + + col2 + - + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL BETWEEN + 91 AND + + 3 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT + COUNT( * ) + 77 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
86

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT + COUNT ( * ) + 77 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT - col2 * + - col0 - - - col1 * - col0 AS col2 FROM tab0
----
1920
2697
9700

query I rowsort
SELECT ALL col1 - - - 92 + - + 15 + - + ( + col1 ) FROM tab2 AS cor0
----
-107
-107
-107

query I rowsort
SELECT DISTINCT 45 * - + col0 - + + col1 FROM tab2 AS cor0
----
-2121
-2957
-3442

query I rowsort
SELECT ALL - 39 - - col2 FROM tab1 AS cor0
----
20
29
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT DISTINCT - CAST( col0 AS SIGNED ) - - 40 * + + col1 col2 FROM tab1 AS cor0
----
115
1789
509

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3934
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - - 40 * + + col1 col2 FROM tab1 AS cor0
----
115
1789
509

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - + COUNT( * ) * + - MIN( DISTINCT + col0 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3935
SELECT - + COUNT ( * ) * + - MIN ( DISTINCT + col0 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT + + SUM( DISTINCT + + col2 ) * + COUNT( * ) col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3936
SELECT + + SUM ( DISTINCT + + col2 ) * + COUNT ( * ) col1 FROM tab0 AS cor0
----
468

query II rowsort
SELECT ALL 83 AS col1, + 10 AS col1 FROM tab1
----
83
10
83
10
83
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT ALL - CAST( NULL AS SIGNED ) * 13 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - CAST ( NULL AS INTEGER ) * 13 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col0 * - col0 / - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query III rowsort label-3940
SELECT ALL 52, 49 AS col1, + COUNT( * ) AS col2 FROM tab1
----
52
49
3

skipif mysql # not compatible
query III rowsort label-3940
SELECT ALL 52, 49 AS col1, + COUNT ( * ) AS col2 FROM tab1
----
52
49
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3941
SELECT - col2 col2, CAST( NULL AS SIGNED ) + + 54 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3941
SELECT - col2 col2, CAST ( NULL AS INTEGER ) + + 54 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + + 14 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3942
SELECT + + 14 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
42

query II rowsort
SELECT - col0 * + col2 AS col0, 7 FROM tab0
----
-705
7
-870
7
-9603
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT + 64 + - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-3944
SELECT + 64 + - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
55

query I rowsort
SELECT col1 * - 12 + 62 * - col2 + 56 + 20 FROM tab0 cor0
----
-3810
-6074
-796

query I rowsort
SELECT ALL + 51 AS col0 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT ALL + + col2 * - - 36 AS col0 FROM tab1 cor0
----
2124
2448
3456

query I rowsort
SELECT col0 * - - col1 * 69 * - + ( + 68 ) * - 39 FROM tab1
----
130653432
77769900
782639676

query II rowsort
SELECT col2 AS col2, col0 + - col2 - 85 FROM tab1
----
59
-59
68
-62
96
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3950
SELECT DISTINCT 52 DIV CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT 52 / CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
17

query II rowsort
SELECT col1 * col0 * - 28, col2 FROM tab1
----
-11900
59
-119756
68
-19992
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3952
SELECT - MIN( + col1 ) AS col2 FROM tab2 WHERE col0 = CAST( - + col2 AS SIGNED ) * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT - MIN ( + col1 ) AS col2 FROM tab2 WHERE col0 = CAST ( - + col2 AS INTEGER ) * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3953
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE - - col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL 76 * - col2 + + 17 AS col0 FROM tab1
----
-4467
-5151
-7279

query III rowsort
SELECT * FROM tab0 WHERE - col2 + ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3956
SELECT ALL * FROM tab1 WHERE col1 + CAST( + - col0 AS DECIMAL ) NOT BETWEEN NULL AND - 85 - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3956
SELECT ALL * FROM tab1 WHERE col1 + CAST ( + - col0 AS REAL ) NOT BETWEEN NULL AND - 85 - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * 70 AS col2 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT ALL - 62 * - 26 + - 85 - 51 * + - col2 - - 57 AS col0 FROM tab2 cor0
----
2757
3624
4542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + col0 - + - col0 FROM tab2 AS cor0
----
46
92
64
128
75
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT + col2 FROM tab1 AS cor0 WHERE NOT CAST( 94 AS SIGNED ) <> + col2 * - 97
----

skipif mysql # not compatible
query I rowsort label-3960
SELECT + col2 FROM tab1 AS cor0 WHERE NOT CAST ( 94 AS INTEGER ) <> + col2 * - 97
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3962
SELECT ALL CAST( col1 AS DECIMAL ), col0 * 33 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL CAST ( col1 AS REAL ), col0 * 33 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - - COUNT( DISTINCT - - ( + col2 ) ) * - 90 AS col1 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3963
SELECT - - COUNT ( DISTINCT - - ( + col2 ) ) * - 90 AS col1 FROM tab0 AS cor0
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT DISTINCT - col2 + + ( CAST( col1 AS SIGNED ) ) + - col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT - col2 + + ( CAST ( col1 AS INTEGER ) ) + - col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT ALL + COUNT( * ) AS col0, + 17 FROM tab0
----
3
17

skipif mysql # not compatible
query II rowsort label-3965
SELECT ALL + COUNT ( * ) AS col0, + 17 FROM tab0
----
3
17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 65 NOT IN ( - + 67 )
----

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) * col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT ALL - col0 + + 27 + + + col1 FROM tab0 AS cor0
----
-39
-69
93

query I rowsort
SELECT DISTINCT - - ( + + col1 ) * col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 87 * - col0, + 36 col2 FROM tab0 AS cor0
----
-1305
36
-7569
36
-8439
36

onlyif mysql # DIV for integer division: 
query II rowsort label-3971
SELECT 76 DIV - 19, + col1 AS col0 FROM tab1 AS cor0
----
-4
14
-4
47
-4
5

skipif mysql # not compatible
query II rowsort label-3971
SELECT 76 / - 19, + col1 AS col0 FROM tab1 AS cor0
----
-4
14
-4
47
-4
5

query I rowsort
SELECT ALL 72 * - col2 AS col0 FROM tab2 AS cor0
----
-1656
-2880
-4176

query I rowsort
SELECT + col1 + + ( - - 53 ) - + col2 AS col2 FROM tab2 AS cor0
----
62
81
90

query I rowsort
SELECT ALL 62 + + + col0 * - 60 AS col0 FROM tab0
----
-5158
-5758
-838

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL = 22
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT ALL - 38 + - COUNT( * ), + 93 AS col1 FROM tab2
----
-41
93

skipif mysql # not compatible
query II rowsort label-3976
SELECT ALL - 38 + - COUNT ( * ), + 93 AS col1 FROM tab2
----
-41
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT MAX( - col0 ) + + SUM( - - 34 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT MAX ( - col0 ) + + SUM ( - - 34 ) FROM tab2
----
56

query I rowsort
SELECT DISTINCT + col1 * - 52 * - - col2 - - col0 * - col2 FROM tab0
----
-11790
-14751
-198669

query I rowsort
SELECT 50 * - 28 + + col0 + + col0 + col2 AS col0 FROM tab1
----
-1150
-1171
-1202

query I rowsort
SELECT ALL + ( col2 ) + - - col0 AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT COUNT( * ) + + + SUM( col0 ) FROM tab1 cor0
----
230

skipif mysql # not compatible
query I rowsort label-3981
SELECT COUNT ( * ) + + + SUM ( col0 ) FROM tab1 cor0
----
230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 27 col1 FROM tab1 AS cor0
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3984
SELECT ALL col1 AS col2, + 27 * + CAST( NULL AS SIGNED ) + - col2 - - col2 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3984
SELECT ALL col1 AS col2, + 27 * + CAST ( NULL AS INTEGER ) + - col2 - - col2 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL + 8 / + 45 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

query II rowsort
SELECT - - col0 * - 33 * 83, col0 FROM tab2 AS cor0
----
-125994
46
-175296
64
-205425
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * - col2 * + 49 + - col2 - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT MAX( DISTINCT + - 71 ) FROM tab2 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3988
SELECT MAX ( DISTINCT + - 71 ) FROM tab2 cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL + ( + + COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + ( + + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT MAX( DISTINCT + col1 ) col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3990
SELECT DISTINCT MAX ( DISTINCT + col1 ) col0 FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL - COUNT( ALL - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - COUNT ( ALL - col2 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - 34 * ( + + 91 ) * 85 FROM tab0
----
-262990
-262990
-262990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 64 ) col0 FROM tab1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT + ( - - CAST( NULL AS SIGNED ) ) / - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT + ( - - CAST ( NULL AS INTEGER ) ) / - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL SUM( DISTINCT - 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL SUM ( DISTINCT - 21 ) FROM tab0 AS cor0
----
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col2 + - col0
----

query II rowsort
SELECT DISTINCT + - col1 * + 59 AS col0, col2 FROM tab0 cor0
----
-1239
10
-4779
47
-59
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT - COUNT( * ) * + MAX( + col2 ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-3999
SELECT - COUNT ( * ) * + MAX ( + col2 ) FROM tab1
----
-288

query I rowsort
SELECT + - 98 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT - COUNT( * ) - + 90 FROM tab2, tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4001
SELECT - COUNT ( * ) - + 90 FROM tab2, tab0 cor0
----
-99

query I rowsort
SELECT - col1 + - + col2 * 15 + - col1 AS col0 FROM tab2
----
-1004
-447
-754

query I rowsort
SELECT 30 + - col0 AS col2 FROM tab2 cor0
----
-16
-34
-45

query II rowsort
SELECT ALL + ( ( - 42 ) ) AS col1, + 61 AS col0 FROM tab0 AS cor0
----
-42
61
-42
61
-42
61

query I rowsort
SELECT DISTINCT col0 * 48 FROM tab2 AS cor0
----
2208
3072
3600

query I rowsort
SELECT col2 * 67 * + col2 FROM tab1 AS cor0 WHERE - col1 * - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 + + + ( - col2 ) FROM tab1 AS cor0
----
366
4209
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col1 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT - ( + + 89 ) FROM tab1
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT - SUM( - 14 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4010
SELECT - SUM ( - 14 ) FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT COUNT( * ) * - - MAX( - - col0 ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-4011
SELECT COUNT ( * ) * - - MAX ( - - col0 ) AS col1 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL 20 - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL 20 - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 > NULL
----

query I rowsort
SELECT DISTINCT + 76 - - col1 FROM tab1 AS cor0
----
123
81
90

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL - col0 - - + col2 + - - col1 FROM tab2 AS cor0
----
28
50
53

query I rowsort
SELECT - 34 * - col0 + + col2 AS col2 FROM tab1 cor0
----
1830
2949
3162

query I rowsort
SELECT ALL + 53 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + - 12 - COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4019
SELECT ALL + - 12 - COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-21

query I rowsort
SELECT + ( + 57 ) AS col1 FROM tab2
----
57
57
57

query I rowsort
SELECT col0 * - + 75 * - col2 * + - col0 AS col0 FROM tab2
----
-12288000
-24468750
-3650100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT ALL + - col1 * + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + - col1 * + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4024
SELECT DISTINCT 42 * CAST( NULL AS SIGNED ) AS col1, ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4024
SELECT DISTINCT 42 * CAST ( NULL AS INTEGER ) AS col1, ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL + - COUNT( ALL 40 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + - COUNT ( ALL 40 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 64 - + ( + 97 ) >= - + 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - MIN( + - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4027
SELECT - MIN ( + - col2 ) AS col0 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-4028
SELECT + col2 AS col2, + col0 * 93 DIV + 51 AS col1 FROM tab0
----
10
158
47
27
99
176

skipif mysql # not compatible
query II rowsort label-4028
SELECT + col2 AS col2, + col0 * 93 / + 51 AS col1 FROM tab0
----
10
158
47
27
99
176

query II rowsort
SELECT DISTINCT 87 AS col2, - 41 FROM tab1
----
87
-41

query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col0 FROM tab1 WHERE NOT - 92 * 71 * col0 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT - col1 DIV - - col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT - col1 / - - col2 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 54 / - + col0 * + 17 IS NOT NULL
----

query I rowsort
SELECT + + 98 + + col0 FROM tab0 AS cor0
----
113
185
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 * - col1 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + ( + 78 ) + 19 * + 3 col0 FROM tab0 AS cor0
----
-1581
-21
-6261

query II rowsort
SELECT DISTINCT col2, col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 / - 98 * 82 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT ( + MAX( col1 ) ) AS col2 FROM tab0 WHERE - 6 + + 61 * 54 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT ( + MAX ( col1 ) ) AS col2 FROM tab0 WHERE - 6 + + 61 * 54 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 < ( - 72 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + COUNT( * ) - - 68 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-4041
SELECT + COUNT ( * ) - - 68 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT COUNT( DISTINCT - 19 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4042
SELECT COUNT ( DISTINCT - 19 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT COUNT( ALL 46 ) AS col2 FROM tab1 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT COUNT ( ALL 46 ) AS col2 FROM tab1 WHERE NOT ( NULL ) >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + 5 + + COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4044
SELECT + 5 + + COUNT ( * ) FROM tab0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 87 col1 FROM tab1
----
5133
5916
8352

query I rowsort
SELECT col1 FROM tab0 WHERE NULL NOT IN ( - col0 + col2 / - col2 )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col0 * 76 + 38
----

query III rowsort
SELECT * FROM tab0 WHERE - 33 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - MIN( - 74 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-4049
SELECT - MIN ( - 74 ) AS col0 FROM tab2
----
74

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( 87 * col2 )
----

query I rowsort
SELECT ALL 74 * + col1 FROM tab1
----
1036
3478
370

query I rowsort
SELECT ALL 85 + 19 FROM tab0
----
104
104
104

query I rowsort
SELECT 86 * + ( + col1 / ( + col0 ) ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT - 85 NOT IN ( 18 )
----

query I rowsort
SELECT - 64 * 90 AS col0 FROM tab2
----
-5760
-5760
-5760

query I rowsort
SELECT ALL 75 - 34 AS col1 FROM tab2
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 98 < NULL
----

query I rowsort
SELECT DISTINCT - col1 + col2 * + col0 FROM tab0
----
624
849
9602

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND 38
----

query I rowsort
SELECT + 53 * - 22 AS col1 FROM tab1
----
-1166
-1166
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL 43 * SUM( DISTINCT 74 ) AS col2 FROM tab0
----
3182

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL 43 * SUM ( DISTINCT 74 ) AS col2 FROM tab0
----
3182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT ALL 46 + 55 AS col1 FROM tab1 WHERE col2 * CAST( + 21 AS SIGNED ) NOT BETWEEN ( 75 * + 14 ) AND ( - col0 )
----
101
101
101

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL 46 + 55 AS col1 FROM tab1 WHERE col2 * CAST ( + 21 AS INTEGER ) NOT BETWEEN ( 75 * + 14 ) AND ( - col0 )
----
101
101
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT COUNT( * ) + 18 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT COUNT ( * ) + 18 FROM tab0
----
21

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + col2 + 19 > ( + col1 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT 88 * + COUNT( * ) FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-4065
SELECT 88 * + COUNT ( * ) FROM tab1
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4066
SELECT MAX( + col2 ) * CAST( ( - COUNT( * ) ) * 30 AS SIGNED ) FROM tab2
----
-5220

skipif mysql # not compatible
query I rowsort label-4066
SELECT MAX ( + col2 ) * CAST ( ( - COUNT ( * ) ) * 30 AS INTEGER ) FROM tab2
----
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - COUNT( * ) * + 87 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - COUNT ( * ) * + 87 FROM tab2
----
-261

query I rowsort
SELECT ( 96 ) * col0 FROM tab0
----
1440
8352
9312

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT COUNT( * ) + 99 AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT COUNT ( * ) + 99 AS col2 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT + 48 * - MAX( DISTINCT + 85 ) AS col0 FROM tab1
----
-4080

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT + 48 * - MAX ( DISTINCT + 85 ) AS col0 FROM tab1
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL + COUNT( DISTINCT - 76 ) AS col2 FROM tab1 WHERE NOT col1 + - 31 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + COUNT ( DISTINCT - 76 ) AS col2 FROM tab1 WHERE NOT col1 + - 31 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT - CAST( NULL AS SIGNED ) * 57 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT - CAST ( NULL AS INTEGER ) * 57 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4074
SELECT ALL * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4074
SELECT ALL * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col0 + col1 * + 46
----

query I rowsort
SELECT DISTINCT + col2 * + 70 AS col2 FROM tab1
----
4130
4760
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * - col0 col2 FROM tab1
----
4539
7565
8099

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( 21 - - col2 * 19 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT - COUNT( * ) * + 71 col2 FROM tab0
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4079
SELECT DISTINCT - COUNT ( * ) * + 71 col2 FROM tab0
----
-213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4080
SELECT ALL COUNT( * ) / + 38 + + ( + CAST( NULL AS SIGNED ) + + 21 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL COUNT ( * ) / + 38 + + ( + CAST ( NULL AS INTEGER ) + + 21 ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 39 * col2 + - col0 * + col0 IN ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4082
SELECT ALL 22 * CAST( NULL AS DECIMAL ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL 22 * CAST ( NULL AS REAL ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col1 ) * 55 AS col0 FROM tab2 AS cor0 WHERE 22 * col0 - + col2 IS NOT NULL
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL COUNT( ALL - col0 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4084
SELECT ALL COUNT ( ALL - col0 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL 54 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL 54 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
162

query I rowsort
SELECT + col1 - col2 * col1 FROM tab0 WHERE NOT 62 > ( 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
-9

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4089
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - ( CAST( NULL AS SIGNED ) ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-4089
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - ( CAST ( NULL AS INTEGER ) ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT + SUM( + 51 ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT + SUM ( + 51 ) FROM tab0 AS cor0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-4091
SELECT - 39 DIV 9 FROM tab2 cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-4091
SELECT - 39 / 9 FROM tab2 cor0
----
-4
-4
-4

query I rowsort
SELECT - 2 * + ( col2 * + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( ( + col1 ) * + 30 )
----

query I rowsort
SELECT + 42 * col2 FROM tab0 cor0
----
1974
4158
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT DISTINCT COUNT( * ) DIV MAX( - 68 + col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT COUNT ( * ) / MAX ( - 68 + col0 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 94 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 2 ) NOT IN ( - 31 )
----

query I rowsort
SELECT ALL - col0 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 32 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab2 cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT - SUM( col2 ) * + 4 FROM tab2
----
-484

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - SUM ( col2 ) * + 4 FROM tab2
----
-484

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT COUNT( * ) + - ( + MAX( col2 ) ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT COUNT ( * ) + - ( + MAX ( col2 ) ) FROM tab1
----
-93

query I rowsort
SELECT ALL 18 * - + 34 + + col1 * - 57 FROM tab0
----
-1809
-5229
-669

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 WHERE NOT col1 * - 90 + - 55 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4102
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + 73 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4102
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + 73 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 / + 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4104
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4104
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + SUM( DISTINCT - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + SUM ( DISTINCT - col2 ) AS col1 FROM tab0
----
-156

query I rowsort
SELECT ALL 0 + ( - - col0 ) * col0 AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT 44 FROM tab2 WHERE col2 / + ( 60 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT - col2 + - ( 25 ) AS col1 FROM tab1
----
-121
-84
-93

query I rowsort
SELECT col0 * col2 AS col2 FROM tab1 AS cor0 WHERE 57 IS NOT NULL
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + 71 col1 FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT DISTINCT - col0 + - - 79 * - + ( - 66 ) FROM tab2 cor0
----
5139
5150
5168

query I rowsort
SELECT ALL col0 - - - ( - col2 ) AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT DISTINCT ( + CAST( - - 80 AS SIGNED ) ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT ( + CAST ( - - 80 AS INTEGER ) ) FROM tab0 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT - + 32 + - col2 FROM tab0 AS cor0 WHERE NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4115
SELECT - + 32 + - col2 FROM tab0 AS cor0 WHERE NULL <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * - ( + col2 ) FROM tab1
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT - col0 DIV - - 59 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT - col0 / - - 59 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col1 ) col0 FROM tab1
----
14
47
5

query I rowsort
SELECT - 33 - col2 * - + 42 FROM tab0
----
1941
387
4125

query I rowsort
SELECT DISTINCT + 18 + - col1 AS col1 FROM tab2
----
-33
-49
-59

query II rowsort
SELECT + col2 - - 69, col1 FROM tab1
----
128
5
137
47
165
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL + COUNT( * ) * - MIN( DISTINCT - ( + - col1 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + COUNT ( * ) * - MIN ( DISTINCT - ( + - col1 ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col1 FROM tab2 WHERE NOT + col2 IS NOT NULL AND NOT - ( - col1 ) IS NULL
----

query I rowsort
SELECT 61 - 32 FROM tab0
----
29
29
29

query I rowsort
SELECT DISTINCT + 74 + + 7 FROM tab2
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 97 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT - - 5 - COUNT( DISTINCT - col0 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT - - 5 - COUNT ( DISTINCT - col0 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT - + CAST( - 75 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-4128
SELECT - + CAST ( - 75 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + col1 - 37 * + col1 col1 FROM tab0 WHERE NOT ( 42 ) IS NULL
----
-3159
-39
-819

query I rowsort
SELECT - ( 20 ) * + 54 AS col0 FROM tab2 WHERE NOT - 26 IS NULL
----
-1080
-1080
-1080

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 88 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT ALL + ( col2 ) DIV col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + ( col2 ) / col2 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 23 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - col0 ) FROM tab1 AS cor0 WHERE NOT 30 * + - col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT + + 4 * - + col1 AS col1 FROM tab2 AS cor0
----
-204
-268
-308

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= col0 - + + col2 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 40 col1 FROM tab2 AS cor0
----
-1840
-2560
-3000

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + + 95 + ( + col2 ) + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + + 95 + ( + col2 ) + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT - CAST( + SUM( DISTINCT - 5 ) AS SIGNED ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4141
SELECT - CAST ( + SUM ( DISTINCT - 5 ) AS INTEGER ) FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL - COUNT( * ) * + - 7 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL - COUNT ( * ) * + - 7 FROM tab1
----
21

query I rowsort
SELECT ALL 85 + col0 + + col1 AS col1 FROM tab0
----
181
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL + MAX( ALL - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL + MAX ( ALL - col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col2 + 82 * - 83 + 90 AS col0 FROM tab2
----
-6658
-6676
-6693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT - 27 AS col2 FROM tab2 WHERE - + CAST( - col1 AS SIGNED ) IS NOT NULL
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-4146
SELECT - 27 AS col2 FROM tab2 WHERE - + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
-27
-27
-27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col1 > + col0 - - 93 + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 54 + - col1 + col2 FROM tab0 AS cor0
----
152
20
43

query I rowsort
SELECT - 42 + + - ( col2 ) + + col1 * 44 * + col0 FROM tab0 AS cor0
----
4127
53371
80336

query II rowsort
SELECT DISTINCT - 91, col2 AS col2 FROM tab1 AS cor0
----
-91
59
-91
68
-91
96

query I rowsort
SELECT ALL + 95 * + - 60 AS col1 FROM tab1
----
-5700
-5700
-5700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4153
SELECT * FROM tab1 WHERE + col2 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4153
SELECT * FROM tab1 WHERE + col2 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - col1 * - + 3 * - col1 AS col1 FROM tab0
----
-1236
-19668
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT + MIN( col0 ) - CAST( 54 AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4155
SELECT + MIN ( col0 ) - CAST ( 54 AS INTEGER ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col1 + col0 AS col2, - 45 AS col1 FROM tab1 AS cor0
----
37
-45
44
-45
80
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + + col0 - col1 col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + + COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + + COUNT ( + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 + + 39 * - 75 FROM tab0 AS cor0
----
-2926
-2946
-3006

query I rowsort
SELECT col2 + + col0 - - + col1 + 55 FROM tab1 AS cor0
----
204
216
261

query I rowsort
SELECT DISTINCT col2 - - 40 FROM tab0
----
139
50
87

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN - + 68 AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col0 ) NOT IN ( + + col0 * col2 + col0 * - 41 )
----
64
77
40

query II rowsort
SELECT col1 * ( - 68 ), col2 * + 94 + col0 AS col2 FROM tab0
----
-1428
1027
-5508
4433
-68
9403

onlyif mysql # DIV for integer division: 
query II rowsort label-4165
SELECT ALL - col1, 94 DIV - 16 AS col2 FROM tab0 AS cor0
----
-1
-5
-21
-5
-81
-5

skipif mysql # not compatible
query II rowsort label-4165
SELECT ALL - col1, 94 / - 16 AS col2 FROM tab0 AS cor0
----
-1
-5
-21
-5
-81
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 18 / - 86 = NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 0 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT + ( - - ( 22 ) ) DIV col0 * 0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT + ( - - ( 22 ) ) / col0 * 0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 60 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # DIV for integer division: 
query II rowsort label-4170
SELECT ALL col0 * - 13 AS col1, + col1 DIV - - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1131
21
-1261
1
-195
86

skipif mysql # not compatible
query II rowsort label-4170
SELECT ALL col0 * - 13 AS col1, + col1 / - - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1131
21
-1261
1
-195
86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= - ( + + col1 ) - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 22 + 51 / col2 + - col2 + + col1 <> 4 + col1
----

query I rowsort
SELECT 18 + col0 FROM tab1 AS cor0
----
103
109
69

query I rowsort
SELECT ALL - + col0 * - 33 FROM tab1 AS cor0
----
1683
2805
3003

query I rowsort
SELECT ALL 47 + + col0 FROM tab0
----
134
144
62

query I rowsort
SELECT DISTINCT - col1 * 76 * + col2 FROM tab1
----
-102144
-22420
-242896

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MAX( 22 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4177
SELECT MAX ( 22 ) FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT + 56 + + COUNT( * ) AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT + 56 + + COUNT ( * ) AS col2 FROM tab2
----
59

query I rowsort
SELECT DISTINCT + col2 * + 31 AS col2 FROM tab0 cor0
----
1457
3069
310

query I rowsort
SELECT ALL 81 - - + 63 FROM tab2 cor0
----
144
144
144

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 - + col0 ) <> 4 + - 11 * + ( + 64 ) + 57 + + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + ( + + COUNT( * ) ) + + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT + ( + + COUNT ( * ) ) + + - COUNT ( * ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col2 col0 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col0 AND + 89 - - 28 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT 61 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT 61 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( + ( - + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 87 * + - col1 = - col2 * + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 12 * - col0 FROM tab0
----
-1044
-1164
-180

query I rowsort
SELECT + col0 * - ( - col0 ) * + col0 AS col0 FROM tab1
----
132651
614125
753571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT + ( + col2 ) * + + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT + ( + col2 ) * + + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col1 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT - col1 * - col2 + + - col0 - - col1 - + 73 * + - 82 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > 30 + + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + + 36 <> NULL OR NULL NOT BETWEEN 24 AND - ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT DISTINCT + + MIN( col0 ), - ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-4195
SELECT DISTINCT + + MIN ( col0 ), - ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
15
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 col0 FROM tab2
----
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 35
----

query II rowsort
SELECT + col2, + 62 AS col0 FROM tab1
----
59
62
68
62
96
62

query II rowsort
SELECT DISTINCT col1, + 51 + col2 * + 9 AS col0 FROM tab1 AS cor0
----
14
915
47
663
5
582

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + SUM( 26 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4201
SELECT + SUM ( 26 ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT - + 64 * - - 85 - ( - + col0 ) FROM tab0 AS cor0
----
-5343
-5353
-5425

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - ( SUM( + 94 ) ) FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4203
SELECT - ( SUM ( + 94 ) ) FROM tab2 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT + ( + COUNT( ALL + col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT + ( + COUNT ( ALL + col2 ) ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 91 AS col0, + col1 FROM tab2 AS cor0
----
91
51
91
67
91
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 19 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT + MAX( DISTINCT col0 ) * + 67 AS col2 FROM tab1 AS cor0
----
6097

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + MAX ( DISTINCT col0 ) * + 67 AS col2 FROM tab1 AS cor0
----
6097

query II rowsort
SELECT DISTINCT + 91 + col2 - + + col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
91
15
91
87
91
97

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( + + 22 )
----

query I rowsort
SELECT ALL 69 * col2 + - col2 FROM tab0
----
3196
6732
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT col0 * CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT col0 * CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 96 + col0 AS col1 FROM tab0
----
111
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT SUM( DISTINCT - - col1 ) + - COUNT( * ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4213
SELECT SUM ( DISTINCT - - col1 ) + - COUNT ( * ) AS col0 FROM tab1
----
63

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE + col2 - 63 + + col1 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4215
SELECT ALL CAST( NULL AS DECIMAL ) * 30 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL CAST ( NULL AS REAL ) * 30 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT MAX( + - col0 ) + - - 37 + MAX( - 47 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4216
SELECT MAX ( + - col0 ) + - - 37 + MAX ( - 47 ) FROM tab1 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT SUM( ( - + col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4217
SELECT SUM ( ( - + col2 ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL MAX( DISTINCT 73 ) * - + 52 AS col2 FROM tab2 AS cor0
----
-3796

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL MAX ( DISTINCT 73 ) * - + 52 AS col2 FROM tab2 AS cor0
----
-3796

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT ( col0 ) * + + ( + + col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT - ( 65 ) - - col1 FROM tab2
----
-14
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT + + MAX( + 16 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + + MAX ( + 16 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT ALL 42 DIV + + 43 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL 42 / + + 43 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - SUM( 59 ) AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4225
SELECT - SUM ( 59 ) AS col2 FROM tab1 AS cor0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4226
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - + 71 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4226
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - + 71 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 88 * - 2 AS col2 FROM tab2
----
-176
-176
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4228
SELECT CAST( NULL AS SIGNED ), 6 + ( MIN( ALL - col0 ) ) AS col0 FROM tab0
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-4228
SELECT CAST ( NULL AS INTEGER ), 6 + ( MIN ( ALL - col0 ) ) AS col0 FROM tab0
----
NULL
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT ALL + + col1 DIV + 42 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + + col1 / + 42 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - + 98 AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL - 21 + 24 + + + 89 * col2 AS col0 FROM tab0 AS cor0
----
4186
8814
893

query I rowsort
SELECT ALL + ( + - col0 ) * + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-2346
-4928
-5025

query II rowsort
SELECT - + col1 + ( col1 ), col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

query II rowsort
SELECT + 52 AS col0, - ( - col0 ) FROM tab0 cor0 WHERE NULL NOT IN ( + col2, ( + col2 ) + + - 67 / - ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col1 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE ( - + 54 ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + MIN( DISTINCT - 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-4237
SELECT + MIN ( DISTINCT - 92 ) FROM tab1
----
-92

query II rowsort
SELECT 88 AS col2, col2 - + + col2 * + + col0 FROM tab1
----
88
-4800
88
-4956
88
-6120

onlyif mysql # DIV for integer division: 
query I rowsort label-4239
SELECT ALL col1 + - col2 DIV 29 * + + col2 AS col2 FROM tab2
----
-49
37
51

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL col1 + - col2 / 29 * + + col2 AS col2 FROM tab2
----
-49
37
51

query II rowsort
SELECT col1 AS col2, + col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ( 76 ) FROM tab1
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4242
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col2 + + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col2 + + col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 7 - + ( 70 ) + + 17 + + 84 + - 97 * + 35 * - col2 * 41 AS col1, ( col0 ) + col2 col0 FROM tab1
----
13362758
147
8212543
144
9465298
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4244
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 28 / - 15 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT ( - 17 ) DIV - 87 - - COUNT( * ) + - - 86 AS col2 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4246
SELECT ( - 17 ) / - 87 - - COUNT ( * ) + - - 86 AS col2 FROM tab0
----
89

query I rowsort
SELECT ALL - col1 * - col0 + - - col1 AS col1 FROM tab2 WHERE + + 67 IS NOT NULL
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT DISTINCT - - MAX( ALL ( - + 87 ) ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT - - MAX ( ALL ( - + 87 ) ) FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT - SUM( - + col2 ) * + 3 col0 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4249
SELECT DISTINCT - SUM ( - + col2 ) * + 3 col0 FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + ( - SUM( DISTINCT 65 ) ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-4250
SELECT + ( - SUM ( DISTINCT 65 ) ) FROM tab2
----
-65

query I rowsort
SELECT - 47 * + ( + - col0 ) * + 20 AS col0 FROM tab2
----
43240
60160
70500

query I rowsort
SELECT DISTINCT - col2 * + 65 FROM tab0
----
-3055
-6435
-650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT + + CAST( + 8 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4253
SELECT + + CAST ( + 8 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 * + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT + COUNT( DISTINCT + 55 ) + + COUNT( * ) * + - COUNT( * ) col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4255
SELECT DISTINCT + COUNT ( DISTINCT + 55 ) + + COUNT ( * ) * + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 / + + col2 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 54 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + 90 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4260
SELECT CAST( NULL AS SIGNED ) col1, + col0 - - + 70 + - CAST( col2 AS SIGNED ) * + - col1 * + - col2 + col2 + + - 12 * - col0 FROM tab2 cor0
----
NULL
-122258
NULL
-224285
NULL
-26288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4260
SELECT CAST ( NULL AS INTEGER ) col1, + col0 - - + 70 + - CAST ( col2 AS INTEGER ) * + - col1 * + - col2 + col2 + + - 12 * - col0 FROM tab2 cor0
----
NULL
-122258
NULL
-224285
NULL
-26288

query I rowsort
SELECT + 83 * - col2 FROM tab1 cor0
----
-4897
-5644
-7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 col2 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT ( - + 70 ) * - + 17 + - col1 + + - 94 FROM tab2 cor0
----
1019
1029
1045

query I rowsort
SELECT ALL 6 + ( - 2 ) + + 13 * col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + - col1 + 56 + + 50 + 3 * col0 AS col1 FROM tab2 AS cor0
----
193
221
264

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT DISTINCT col1 DIV col1 + col2 DIV - col1 AS col2 FROM tab1
----
-10
-5
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT col1 / col1 + col2 / - col1 AS col2 FROM tab1
----
-10
-5
0

query I rowsort
SELECT ALL + col1 * - + 50 + - + col1 + + 73 FROM tab1
----
-182
-2324
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT COUNT( * ) col2 FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4268
SELECT COUNT ( * ) col2 FROM tab0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL col1 + + + 98 * - ( 12 ) AS col0 FROM tab0
----
-1095
-1155
-1175

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT ALL 79 DIV - + col1 + + col1 AS col0 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL 79 / - + col1 + + col1 AS col0 FROM tab2
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT col2 * + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT col2 * + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT - COUNT( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL <> ( col2 + - 82 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4272
SELECT - COUNT ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL <> ( col2 + - 82 + + col0 )
----
0

query I rowsort
SELECT - 51 FROM tab0 WHERE NOT + + col1 IN ( - 60 + col2 - col1 )
----
-51
-51
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT DISTINCT - + MAX( - CAST( + 89 AS SIGNED ) ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - + MAX ( - CAST ( + 89 AS INTEGER ) ) FROM tab0 AS cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19, ( + 43 ) * + col1 col2 FROM tab0 AS cor0
----
19
3483
19
43
19
903

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL + MAX( - - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + MAX ( - - col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT MAX( DISTINCT + + col1 ) col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4278
SELECT MAX ( DISTINCT + + col1 ) col1 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL SUM( + 25 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL SUM ( + 25 ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL col1 * + + 89 * + col2 FROM tab2 cor0
----
104397
274120
345854

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT 30 * - COUNT( - 75 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT 30 * - COUNT ( - 75 ) FROM tab1
----
-90

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 95 + - col2 / - 54
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT - - COUNT( * ) FROM tab1 WHERE - - 1 / + col2 - - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - - COUNT ( * ) FROM tab1 WHERE - - 1 / + col2 - - + col2 IS NOT NULL
----
3

query I rowsort
SELECT + 96 * + 63 FROM tab0
----
6048
6048
6048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4287
SELECT DISTINCT 75 DIV + COUNT( * ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT 75 / + COUNT ( * ) FROM tab0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col2 col1, + 3 * + col2 FROM tab1
----
-4896
288
-5015
177
-6188
204

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ( COUNT( * ) ) * SUM( ALL + col2 ) * - 98 FROM tab2
----
-35574

skipif mysql # not compatible
query I rowsort label-4289
SELECT ( COUNT ( * ) ) * SUM ( ALL + col2 ) * - 98 FROM tab2
----
-35574

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT + MIN( ALL - + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT + MIN ( ALL - + col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL 48 + - col0 FROM tab0
----
-39
-49
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT - col0 DIV col1 * - ( - - col2 ) + + - col2 + - + col1 FROM tab0
----
-128
9
9503

skipif mysql # not compatible
query I rowsort label-4293
SELECT - col0 / col1 * - ( - - col2 ) + + - col2 + - + col1 FROM tab0
----
-128
9
9503

query I rowsort
SELECT - - col2 + + + ( - col1 ) * col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4295
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4295
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + + col0 * - col2 - - col1 FROM tab1 AS cor0
----
-4786
-4951
-6073

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4297
SELECT * FROM tab2 AS cor0 WHERE ( NOT + + CAST( NULL AS SIGNED ) >= NULL )
----

skipif mysql # not compatible
query III rowsort label-4297
SELECT * FROM tab2 AS cor0 WHERE ( NOT + + CAST ( NULL AS INTEGER ) >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4298
SELECT ALL col0 AS 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-4298
SELECT ALL col0 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4299
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4299
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 13, col0 FROM tab0
----
-13
15
-13
87
-13
97

query I rowsort
SELECT DISTINCT 48 + - col1 + 60 FROM tab0
----
107
27
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL COUNT( ALL - + 52 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL COUNT ( ALL - + 52 ) FROM tab0
----
3

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * + col0 - - + 74 FROM tab0
----
-631
-796
-9529

query I rowsort
SELECT DISTINCT col1 + + 49 AS col1 FROM tab0
----
130
50
70

query I rowsort
SELECT + col0 / 90 + col2 FROM tab2 WHERE + 48 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT + CAST( + 83 AS SIGNED ) FROM tab2 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-4307
SELECT + CAST ( + 83 AS INTEGER ) FROM tab2 AS cor0
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT 49 * CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-4308
SELECT 49 * CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4310
SELECT ( - - 28 ) * - - 57 * + AVG ( - + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ( - - 28 ) * - - 57 * + AVG ( - + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4311
SELECT CAST( + ( col2 ) AS SIGNED ), col2 * ( col0 ) col0 FROM tab2
----
23
1058
40
2560
58
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4311
SELECT CAST ( + ( col2 ) AS INTEGER ), col2 * ( col0 ) col0 FROM tab2
----
23
1058
40
2560
58
4350

query I rowsort
SELECT - ( - + ( + 78 ) ) + - col0 AS col0 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - 83
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4314
SELECT - 67 DIV + - COUNT( * ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4314
SELECT - 67 / + - COUNT ( * ) FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT 33 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4315
SELECT 33 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-99

query II rowsort
SELECT ALL - 28, - col2 AS col1 FROM tab2
----
-28
-23
-28
-40
-28
-58

query I rowsort
SELECT DISTINCT 39 + - col0 FROM tab2
----
-25
-36
-7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 81 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE + col0 * + 50 + + 27 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4320
SELECT ALL - 76, COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
-76
6

skipif mysql # not compatible
query II rowsort label-4320
SELECT ALL - 76, COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
-76
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL + COUNT( * ) * + 85 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL + COUNT ( * ) * + 85 FROM tab1
----
255

query I rowsort
SELECT ALL - + 49 FROM tab0 WHERE NOT col2 - 19 IS NULL
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + 3 + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 3 + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 + 58 + 0 FROM tab0 AS cor0
----
-29
-39
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - COUNT( * ) + - COUNT( * ) col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4325
SELECT - COUNT ( * ) + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + col0 - + 94 AS col0 FROM tab2 AS cor0
----
-19
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT - 89 * - ( COUNT( * ) ) + - + 24 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - 89 * - ( COUNT ( * ) ) + - + 24 FROM tab2 AS cor0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT DISTINCT - - col2 DIV col1 DIV - - 85 - + col2 - col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT - - col2 / col1 / - - 85 - + col2 - col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL - COUNT( * ) - 46 AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - COUNT ( * ) - 46 AS col2 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT 78 + + 81 + - col2 FROM tab1 AS cor0
----
100
63
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= + + col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT DISTINCT col1 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT col1 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + + + 48 AS col1 FROM tab1 cor0
----
-3
-37
-43

query I rowsort
SELECT ALL - ( + + ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL col1 / + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + 37 * - - col0 * - 88 AS col2 FROM tab2
----
-149730
-208320
-244125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT CAST( NULL AS SIGNED ) / - 24 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT CAST ( NULL AS INTEGER ) / - 24 * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 68 * - 2 FROM tab2
----
3128
5440
7888

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4340
SELECT DISTINCT - COUNT( * ) DIV + 90 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - COUNT ( * ) / + 90 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4341
SELECT CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4341
SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - COUNT( * ) * - COUNT( * ) * + - 73 col1 FROM tab1
----
-657

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4342
SELECT - COUNT ( * ) * - COUNT ( * ) * + - 73 col1 FROM tab1
----
-657

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 - + col2 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col0, + col2 * col0 AS col0 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

query II rowsort
SELECT col0, + col2 + - col0 AS col1 FROM tab0 AS cor0
----
15
32
87
-77
97
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> 72 * + col2
----

query I rowsort
SELECT + 85 * - ( - col2 ) + col1 + + ( col1 ) FROM tab1 AS cor0
----
5025
5874
8188

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT ALL + col2 * col2 + - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
1536
3289
483

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + col2 * col2 + - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
1536
3289
483

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) + - col2 + col1 * + col2 * col0 * - + 63 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) + - col2 + col1 * + col2 * col0 * - + 63 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 58 + - ( col1 ) FROM tab2
----
-109
-125
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 22 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 22 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4354
SELECT CAST( col1 AS SIGNED ), - ( 93 ) + - + col0 + + 89 + 25 AS col1 FROM tab0
----
1
-76
21
-66
81
6

skipif mysql # not compatible
query II rowsort label-4354
SELECT CAST ( col1 AS INTEGER ), - ( 93 ) + - + col0 + + 89 + 25 AS col1 FROM tab0
----
1
-76
21
-66
81
6

query I rowsort
SELECT DISTINCT + col1 * + 40 + + + col0 + col2 AS col1 FROM tab1
----
2039
344
707

query I rowsort
SELECT ALL + 31 + + 82 FROM tab0
----
113
113
113

query II rowsort
SELECT + + ( - - col0 ) AS col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 89 * - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL + - COUNT( DISTINCT col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + - COUNT ( DISTINCT col1 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT col1 * - col2 + 51 FROM tab1 AS cor0
----
-1293
-244
-3145

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT + COUNT( * ) AS col2, - COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4361
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
0
0

query I rowsort
SELECT col0 * + + col2 AS col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4363
SELECT - 7 - 33 + COUNT( * ) / + CAST( NULL AS DECIMAL ) / - MIN( DISTINCT + 16 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT - 7 - 33 + COUNT ( * ) / + CAST ( NULL AS REAL ) / - MIN ( DISTINCT + 16 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 1 - + - col1 - - ( + - col0 ) - + 32 * - + col2 col0 FROM tab0 AS cor0
----
1555
167
2975

query I rowsort
SELECT col2 * + + ( - col1 ) - + col2 - - - 40 * + col1 FROM tab1
----
-2000
-5144
-554

query I rowsort
SELECT 39 - + col1 FROM tab2
----
-12
-28
-38

query I rowsort
SELECT - col2 * - - ( 10 ) AS col2 FROM tab0
----
-100
-470
-990

query I rowsort
SELECT DISTINCT - 25 * - 18 * - - col0 FROM tab1
----
22950
38250
40950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL + CAST( - - COUNT( ALL - 52 ) AS SIGNED ) * + + 14 AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + CAST ( - - COUNT ( ALL - 52 ) AS INTEGER ) * + + 14 AS col1 FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4370
SELECT * FROM tab0 WHERE NOT NULL = NULL AND CAST( - col0 AS SIGNED ) * - col2 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4370
SELECT * FROM tab0 WHERE NOT NULL = NULL AND CAST ( - col0 AS INTEGER ) * - col2 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT CAST( NULL AS SIGNED ) / col1 * - ( + 23 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT CAST ( NULL AS INTEGER ) / col1 * - ( + 23 ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT DISTINCT CAST( 52 AS SIGNED ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT CAST ( 52 AS INTEGER ) FROM tab0
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4373
SELECT col1 * col0 * - + CAST( - - 69 AS DECIMAL ) * + col0 * - col0 / col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4373
SELECT col1 * col0 * - + CAST ( - - 69 AS REAL ) * + col0 * - col0 / col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - ( + 74 ) AS col1 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL - MAX( + - 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - MAX ( + - 73 ) FROM tab0 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( - 83 ) col0 FROM tab2
----
-1909
-3320
-4814

query II rowsort
SELECT ALL + col0, 43 * - col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
46
-989
64
-1720
75
-2494

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT - 41 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - 41 / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 86 * - - 33 * + col0 FROM tab1 cor0
----
144738
241230
258258

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT + col2 DIV + col1 + - 86 FROM tab2
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-4380
SELECT + col2 / + col1 + - 86 FROM tab2
----
-86
-86
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4381
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, - col1 + col0 AS col1 FROM tab1
----
NULL
37
NULL
44
NULL
80

skipif mysql # not compatible
query II rowsort label-4381
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, - col1 + col0 AS col1 FROM tab1
----
NULL
37
NULL
44
NULL
80

query III rowsort
SELECT * FROM tab1 WHERE + col1 / - 45 NOT BETWEEN col0 AND 41 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + MAX( - 85 ) AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4384
SELECT + MAX ( - 85 ) AS col2 FROM tab2 AS cor0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, + 91 col1 FROM tab2 AS cor0
----
-23
91
-40
91
-58
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4386
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, + 68 col0 FROM tab2 AS cor0
----
23
68
40
68
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + - ( - - MIN( col1 ) ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4388
SELECT + - ( - - MIN ( col1 ) ) FROM tab1 cor0
----
-5

query II rowsort
SELECT ALL + col1 - + + 78 AS col1, ( + 49 ) AS col0 FROM tab0 AS cor0
----
-57
49
-77
49
3
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT + 23 * + col2 DIV + + col2 + + - col1 FROM tab1 AS cor0
----
-24
18
9

skipif mysql # not compatible
query I rowsort label-4390
SELECT + 23 * + col2 / + + col2 + + - col1 FROM tab1 AS cor0
----
-24
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT DISTINCT - + MAX( DISTINCT - 48 ) AS col1 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT - + MAX ( DISTINCT - 48 ) AS col1 FROM tab2 AS cor0
----
48

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 42 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - + 95 / + 17 = 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT ALL + CAST( NULL AS SIGNED ) * + 94 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + CAST ( NULL AS INTEGER ) * + 94 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4395
SELECT - col1 / CAST( NULL AS DECIMAL ) / - 67 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT - col1 / CAST ( NULL AS REAL ) / - 67 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT + 4 DIV col1 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4396
SELECT + 4 / col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL - 37 * COUNT( * ) col2 FROM tab2
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4397
SELECT ALL - 37 * COUNT ( * ) col2 FROM tab2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT 87 * COUNT( * ) col2 FROM tab2
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4398
SELECT 87 * COUNT ( * ) col2 FROM tab2
----
261

query I rowsort
SELECT ALL 5 * col2 FROM tab1
----
295
340
480

query I rowsort
SELECT + ( - - 51 ) * + 66 FROM tab2 AS cor0
----
3366
3366
3366

query II rowsort
SELECT DISTINCT - col0, 2 + + col2 AS col1 FROM tab2 AS cor0
----
-46
25
-64
42
-75
60

query I rowsort
SELECT ALL - + col2 * + 31 AS col1 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4403
SELECT + CAST( NULL AS DECIMAL ) - 61 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT + CAST ( NULL AS REAL ) - 61 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT - COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT MIN( - ( col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT MIN ( - ( col0 ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE col2 + - 13 NOT BETWEEN col1 * + 47 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE col2 + - 13 NOT BETWEEN col1 * + 47 AND NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT COUNT( DISTINCT 73 ) - - 13 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-4408
SELECT COUNT ( DISTINCT 73 ) - - 13 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
14

query I rowsort
SELECT ALL - col0 + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col0 * ( - + col0 ) * - 11 FROM tab2 AS cor0
----
-23276
-45056
-61875

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT + COUNT( * ) + + COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-4413
SELECT + COUNT ( * ) + + COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6
3

query I rowsort
SELECT ALL - + col1 * col0 * + + col2 AS col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 81 + + col0 FROM tab2
----
127
145
156

query II rowsort
SELECT col2, 62 AS col2 FROM tab2
----
23
62
40
62
58
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT 30 + - 99 * + + COUNT( * ) * + MAX( ALL - + col2 ) * - 10 FROM tab0
----
-29670

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT 30 + - 99 * + + COUNT ( * ) * + MAX ( ALL - + col2 ) * - 10 FROM tab0
----
-29670

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + MIN( - + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4418
SELECT + MIN ( - + col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT COUNT( + - 42 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4419
SELECT COUNT ( + - 42 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL 23 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 93 + + 7 FROM tab0 AS cor0
----
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * + - 34 - + col1 col2 FROM tab1 AS cor0
----
2571
2604
2613

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT + + SUM( + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-4423
SELECT + + SUM ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
223

query I rowsort
SELECT ALL + ( - col0 ) + col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - - 70 * - - ( - col0 ) + 79 * + col0 + + col2 FROM tab0 AS cor0
----
182
793
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 * - col1 col1 FROM tab1 AS cor0
----
3055
325
910

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + 30 + + col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col0, - ( + col0 ) FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT MIN( ALL 12 ) AS col2, + COUNT( ALL + col0 ) AS col0 FROM tab0
----
12
3

skipif mysql # not compatible
query II rowsort label-4429
SELECT MIN ( ALL 12 ) AS col2, + COUNT ( ALL + col0 ) AS col0 FROM tab0
----
12
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT col1 * + - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT col1 * + - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ( - - col2 ) AS col0, - 28 * - col1 AS col2 FROM tab0
----
10
588
47
2268
99
28

query I rowsort
SELECT DISTINCT 1 * + 78 FROM tab2
----
78

query I rowsort
SELECT 18 * + col2 FROM tab0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL + ( COUNT( ALL - - 87 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + ( COUNT ( ALL - - 87 ) ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 91 * + + col2 + - - col1 AND - + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL MAX( DISTINCT - 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL MAX ( DISTINCT - 92 ) FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT COUNT( * ) - + 6 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4437
SELECT COUNT ( * ) - + 6 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT - COUNT( DISTINCT 77 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4439
SELECT - COUNT ( DISTINCT 77 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col0 ) * col2 = col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - COUNT( 47 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4441
SELECT - COUNT ( 47 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( + col2 + + col2, col2 + + col0 * - ( - 39 ) * + ( col2 ) )
----

query I rowsort
SELECT ALL col0 * - col2 * col2 / - 17 FROM tab2 AS cor0 WHERE col1 * - col0 * - - 23 > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT DISTINCT - 96 * + - 87 + + 57 + + col0 * - - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4444
SELECT DISTINCT - 96 * + - 87 + + 57 + + col0 * - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 66 * - col1 FROM tab0 AS cor0
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL - SUM( + - ( col1 ) ) * COUNT( * ) + + + MAX( - col1 ) FROM tab2 AS cor0
----
534

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - SUM ( + - ( col1 ) ) * COUNT ( * ) + + + MAX ( - col1 ) FROM tab2 AS cor0
----
534

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT + col1 IS NOT NULL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT DISTINCT + - 71 / - CAST( NULL AS SIGNED ) / + ( - - SUM( + 72 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT + - 71 / - CAST ( NULL AS INTEGER ) / + ( - - SUM ( + 72 ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + 18 + + - SUM( - 52 ) FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 18 + + - SUM ( - 52 ) FROM tab1
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT DISTINCT + ( - SUM( DISTINCT + + ( col2 ) ) ) DIV + - COUNT( * ) + COUNT( * ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT + ( - SUM ( DISTINCT + + ( col2 ) ) ) / + - COUNT ( * ) + COUNT ( * ) FROM tab0
----
55

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - + col1 col2 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 43 AND ( + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL + COUNT( * ) * + + COUNT( * ) + - 68 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) + - 68 FROM tab1
----
-59

query I rowsort
SELECT col1 * - + col2 + - + col0 AS col2 FROM tab0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT - 56 - + + col2 AS col1 FROM tab2 AS cor0
----
-114
-79
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL - - MAX( ALL - - 38 ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - - MAX ( ALL - - 38 ) AS col2 FROM tab1 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT - col1 * - + col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT - col1 * - + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 73 FROM tab1 cor0 WHERE col2 <= + col1
----

query I rowsort
SELECT DISTINCT - 93 + + + col1 AS col1 FROM tab2 cor0
----
-16
-26
-42

query I rowsort
SELECT ALL 72 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT 38 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL - + CAST( + 91 AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - + CAST ( + 91 AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT DISTINCT - col0 * + 83 AS col0 FROM tab2 WHERE + + col0 IS NOT NULL
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT DISTINCT 56 AS col0, COUNT( ALL col0 ) FROM tab0
----
56
3

skipif mysql # not compatible
query II rowsort label-4465
SELECT DISTINCT 56 AS col0, COUNT ( ALL col0 ) FROM tab0
----
56
3

query II rowsort
SELECT DISTINCT col1, - col1 * + + col0 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

query I rowsort
SELECT - 50 * + 27 FROM tab1 cor0
----
-1350
-1350
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT - MAX( DISTINCT - col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4468
SELECT - MAX ( DISTINCT - col2 ) FROM tab0 cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT ALL - CAST( - COUNT( CAST( + col0 AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - CAST ( - COUNT ( CAST ( + col0 AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT ALL + - col0 * + + CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + - col0 * + + CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > col0 + - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 38 * 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - + 46 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT - 73, COUNT( * ) AS col2 FROM tab0
----
-73
3

skipif mysql # not compatible
query II rowsort label-4474
SELECT - 73, COUNT ( * ) AS col2 FROM tab0
----
-73
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT - CAST( - - col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4475
SELECT - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT 89 * col2 * col2 + - - ( - 63 ) IS NOT NULL
----

query I rowsort
SELECT + ( - 40 ) * ( - 53 ) FROM tab2 AS cor0
----
2120
2120
2120

query I rowsort
SELECT + + 20 FROM tab0 cor0 WHERE NOT ( NOT + col0 IS NOT NULL )
----
20
20
20

query I rowsort
SELECT DISTINCT + + col2 * - + col2 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + col2 + + - 75 AS col1 FROM tab2
----
-17
-35
-52

query I rowsort
SELECT ALL col1 / col2 / + 90 / + col1 FROM tab1 AS cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT DISTINCT 42 + - col2 * + + col2 * col0 AS col2 FROM tab0 AS cor0
----
-33093
-8658
-950655

query I rowsort
SELECT ALL col0 + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND 27
----

query I rowsort
SELECT DISTINCT - 19 * - col2 * - + col0 FROM tab2 AS cor0
----
-20102
-48640
-82650

query I rowsort
SELECT DISTINCT + 79 + 84 * + 0 FROM tab0 AS cor0
----
79

query I rowsort
SELECT + + col1 + + + 77 FROM tab1 AS cor0
----
124
82
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4487
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN - + col0 * + CAST( NULL AS DECIMAL ) AND col2
----

skipif mysql # not compatible
query III rowsort label-4487
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN - + col0 * + CAST ( NULL AS REAL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL MAX( DISTINCT 23 ) * + COUNT( * ) col1 FROM tab1 cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4488
SELECT ALL MAX ( DISTINCT 23 ) * + COUNT ( * ) col1 FROM tab1 cor0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT + - 90 DIV - COUNT( - - col0 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4489
SELECT + - 90 / - COUNT ( - - col0 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT - col2 * - ( + + col1 ) - + - col1 AS col2 FROM tab1 cor0
----
1358
300
3243

query II rowsort
SELECT ALL col1 * 42, + col2 + + - ( - 60 ) AS col1 FROM tab0 AS cor0
----
3402
107
42
159
882
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL 37 * + + COUNT( * ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL 37 * + + COUNT ( * ) FROM tab2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT + CAST( + 34 AS SIGNED ) * - + 92 * 50 AS col1 FROM tab2
----
-156400
-156400
-156400

skipif mysql # not compatible
query I rowsort label-4493
SELECT + CAST ( + 34 AS INTEGER ) * - + 92 * 50 AS col1 FROM tab2
----
-156400
-156400
-156400

query II rowsort
SELECT + 29, - col0 AS col1 FROM tab0
----
29
-15
29
-87
29
-97

query I rowsort
SELECT ALL + 86 + + - col0 + - + 8 AS col0 FROM tab1
----
-13
-7
27

query I rowsort
SELECT col2 * + + 42 AS col0 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ( - 51 ) + - 29 AS col2 FROM tab0 WHERE ( NOT - 21 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 + - 55 AS col0 FROM tab0
----
-34
-54
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT + 69 - - ( - - COUNT( * ) ) + ( - + 96 ) * + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-4499
SELECT + 69 - - ( - - COUNT ( * ) ) + ( - + 96 ) * + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT COUNT( DISTINCT - 30 ) + + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT COUNT ( DISTINCT - 30 ) + + COUNT ( * ) FROM tab0
----
4

query I rowsort
SELECT 86 - + 88 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT ALL - 59 + - col0 FROM tab2
----
-105
-123
-134

query III rowsort
SELECT * FROM tab1 WHERE ( - 24 + - 14 IS NULL )
----

query I rowsort
SELECT ALL - col0 - col1 * col0 FROM tab0 cor0
----
-1230
-1914
-194

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / + 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + 42 * + col1 IN ( + ( ( - 45 ) ), - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT 78 + COUNT( * ) AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4509
SELECT 78 + COUNT ( * ) AS col2 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL COUNT( * ) / AVG ( DISTINCT + ( ( - 7 ) ) * 71 ) FROM tab2 WHERE NOT 98 NOT BETWEEN ( - col0 ) AND ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL COUNT ( * ) / AVG ( DISTINCT + ( ( - 7 ) ) * 71 ) FROM tab2 WHERE NOT 98 NOT BETWEEN ( - col0 ) AND ( + col1 )
----
NULL

query I rowsort
SELECT - 92 + + col2 * col0 FROM tab0
----
613
778
9511

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 8 ) NOT BETWEEN ( - 52 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + MIN( ALL + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4513
SELECT + MIN ( ALL + col2 ) AS col2 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT ALL + col0 AS col0 FROM tab2 WHERE CAST( + col1 AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + col0 AS col0 FROM tab2 WHERE CAST ( + col1 AS INTEGER ) * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 98 - - col2 FROM tab1
----
157
166
194

query I rowsort
SELECT ALL ( 47 ) FROM tab2
----
47
47
47

query I rowsort
SELECT DISTINCT + ( col0 ) * - 21 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-1071
-1785
-1911

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col1 + 52 ) AND ( + col1 )
----

query I rowsort
SELECT ALL ( 16 ) AS col2 FROM tab1
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col2 FROM tab1 WHERE NULL BETWEEN ( col1 ) * - 27 AND ( 63 * + 17 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 85 )
----

query I rowsort
SELECT ( 26 ) FROM tab2
----
26
26
26

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * col0 >= ( NULL )
----

query I rowsort
SELECT ALL 38 * col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL MAX( + col2 ) col2 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4527
SELECT ALL MAX ( + col2 ) col2 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT MAX( + 34 ) AS col0 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4528
SELECT MAX ( + 34 ) AS col0 FROM tab2
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col1 FROM tab2 AS cor0 WHERE NOT ( + col2 / - 28 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NOT ( + col2 / col2 + ( 70 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4531
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( + CAST( NULL AS DECIMAL ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-4531
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( + CAST ( NULL AS REAL ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT SUM( ALL 93 ) FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
837

skipif mysql # not compatible
query I rowsort label-4532
SELECT SUM ( ALL 93 ) FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
837

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT 75 IS NULL
----
51
67
77

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT + 5 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT 40 + + col2 AS col1 FROM tab2
----
63
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT + COUNT( + col2 ) * + 20 FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + COUNT ( + col2 ) * + 20 FROM tab1 cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + col2 + col2 AS col0 FROM tab1 cor0
----
1440
3264
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT + - col2 * col2 - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT + - col2 * col2 - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4542
SELECT CAST( + COUNT( * ) AS SIGNED ) - 40 AS col2 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4542
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - 40 AS col2 FROM tab2 AS cor0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE col0 * - 3 NOT BETWEEN ( col1 ) AND col1
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT - col2 - - ( - col2 + col2 DIV 36 ) * + 37 AS col0 FROM tab0 AS cor0
----
-1749
-3688
-380

skipif mysql # not compatible
query I rowsort label-4544
SELECT - col2 - - ( - col2 + col2 / 36 ) * + 37 AS col0 FROM tab0 AS cor0
----
-1749
-3688
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT ( + CAST( NULL AS SIGNED ) ) + - 0 * + COUNT( * ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT ( + CAST ( NULL AS INTEGER ) ) + - 0 * + COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - 92 - col1 AS col0 FROM tab0 AS cor0
----
-113
-173
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT + COUNT( * ) * 86 - COUNT( * ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT + COUNT ( * ) * 86 - COUNT ( * ) FROM tab0 AS cor0
----
255

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= ( + 21 + + 22 / 26 )
----

query I rowsort
SELECT + ( + col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 8 + + col0 AS col1 FROM tab2 AS cor0
----
38
56
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT col0 + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-4551
SELECT col0 + CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < + 69
----

query I rowsort
SELECT ALL 46 + ( - 92 ) - + ( 62 ) FROM tab0
----
-108
-108
-108

query I rowsort
SELECT + col2 * - + 91 + ( + col2 ) AS col2 FROM tab1
----
-5310
-6120
-8640

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) >= ( 20 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL + COUNT( * ) + 83 + - COUNT( * ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + COUNT ( * ) + 83 + - COUNT ( * ) FROM tab1
----
83

query III rowsort
SELECT * FROM tab0 WHERE col2 = col0 + + 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) + - 96 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - 96 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT ALL 29 DIV - - 7 + + 95 FROM tab0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL 29 / - - 7 + + 95 FROM tab0
----
99
99
99

query I rowsort
SELECT ALL 13 - - col2 * col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 * 75 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 + col1 AND col0
----

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
72

query I rowsort
SELECT DISTINCT ( - 46 ) * 33 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-1518

query I rowsort
SELECT - - 52 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT 71 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col0 * 3 AND NULL
----

query I rowsort
SELECT + ( + - col0 ) * - + col2 * 19 AS col1 FROM tab2 AS cor0
----
20102
48640
82650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1 - - + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 17 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 AS cor0 WHERE 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT - MAX( + - ( + - 57 ) ) AS col1 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT - MAX ( + - ( + - 57 ) ) AS col1 FROM tab1 cor0
----
-57

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
51
85
91

query I rowsort
SELECT ALL + 75 * + col2 FROM tab2 cor0
----
1725
3000
4350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 + + col1 * + col2 )
----

query I rowsort
SELECT DISTINCT col1 + 9 + - col2 FROM tab2
----
18
37
46

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE - + 20 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT - col2 < + 20 * col1 + + 73 AND NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + SUM( DISTINCT + - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4578
SELECT + SUM ( DISTINCT + - col0 ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT SUM( DISTINCT - - 81 ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT SUM ( DISTINCT - - 81 ) AS col0 FROM tab1
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 / - col1 + + col0 * col2 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4582
SELECT ALL + col2 DIV + col1, + col1 + + ( col0 ) AS col1 FROM tab2
----
0
141
0
142
0
97

skipif mysql # not compatible
query II rowsort label-4582
SELECT ALL + col2 / + col1, + col1 + + ( col0 ) AS col1 FROM tab2
----
0
141
0
142
0
97

query I rowsort
SELECT - 50 * - ( col2 ) FROM tab1
----
2950
3400
4800

query I rowsort
SELECT DISTINCT col1 * - 64 + col1 FROM tab2
----
-3213
-4221
-4851

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - + col1 <> + col2 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + - col2
----

query I rowsort
SELECT 92 AS col2 FROM tab0 AS cor0 WHERE 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4588
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 <> + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4588
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 <> + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 22 + - col0 FROM tab0
----
-109
-119
-37

query I rowsort
SELECT + 5 + + ( - - col0 ) + + - 36 * - ( col2 ) FROM tab1
----
2214
2544
3512

query I rowsort
SELECT ALL + 86 * - 82 - col2 FROM tab2 AS cor0
----
-7075
-7092
-7110

query I rowsort
SELECT DISTINCT + ( + - 86 ) FROM tab1 cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4595
SELECT ALL col2 * 66 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 33 / - - 71 ) AND col2 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL col2 * 66 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 33 / - - 71 ) AND col2 * + CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT COUNT( * ) - + 67 AS col0 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT COUNT ( * ) - + 67 AS col0 FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL + MAX( + 24 ) AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL + MAX ( + 24 ) AS col2 FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL - ( + 86 ) FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4600
SELECT + COUNT( * ) - - - COUNT( * ) * + - CAST( - COUNT( * ) AS SIGNED ) + + COUNT( ALL - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4600
SELECT + COUNT ( * ) - - - COUNT ( * ) * + - CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( ALL - col2 ) FROM tab2
----
-3

query II rowsort
SELECT ALL col2, 67 + 52 FROM tab1
----
59
119
68
119
96
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT ALL + CAST( - - 67 AS SIGNED ) + 44 AS col1 FROM tab2
----
111
111
111

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + CAST ( - - 67 AS INTEGER ) + 44 AS col1 FROM tab2
----
111
111
111

query I rowsort
SELECT ( - - ( col1 ) ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NULL <> col2 * + 45 * 2
----
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NULL <> col2 * + 45 * 2
----
0

query I rowsort
SELECT DISTINCT + 64 * + col0 * - - col0 * - + col2 AS col1 FROM tab1
----
-15980544
-27281600
-36038912

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <= - 53
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <= - 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT DISTINCT + 54 DIV + col1 FROM tab0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT + 54 / + col1 FROM tab0
----
0
2
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4609
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( + CAST( NULL AS SIGNED ) * - col2 / - col0 )
----

skipif mysql # not compatible
query III rowsort label-4609
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( + CAST ( NULL AS INTEGER ) * - col2 / - col0 )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT col2 <> - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 68 * - col2 * + col2 + col2 NOT IN ( col0 / col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab1 AS cor0 WHERE NOT ( NOT + + col2 NOT BETWEEN + - col0 AND + 21 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT - - MIN( + 91 ) AS col0 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT - - MIN ( + 91 ) AS col0 FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT MAX( - 0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT MAX ( - 0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 19 * col2 + 10 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 7 + - col1 ) < ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4617
SELECT + - MIN( DISTINCT - ( + 17 ) ) DIV + 25 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT + - MIN ( DISTINCT - ( + 17 ) ) / + 25 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4618
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col1 AND col2 * - CAST( ( + col0 ) AS DECIMAL ) / + col0
----

skipif mysql # not compatible
query III rowsort label-4618
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col1 AND col2 * - CAST ( ( + col0 ) AS REAL ) / + col0
----

query I rowsort
SELECT DISTINCT col0 * - + col2 * + + 63 FROM tab1
----
-308448
-315945
-389844

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4621
SELECT CAST( COUNT( 94 ) AS SIGNED ) col1, 2 + 47 + COUNT( * ) FROM tab1
----
3
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4621
SELECT CAST ( COUNT ( 94 ) AS INTEGER ) col1, 2 + 47 + COUNT ( * ) FROM tab1
----
3
52

query III rowsort
SELECT * FROM tab1 WHERE ( + ( - + col0 ) - - col2 ) IS NULL
----

query I rowsort
SELECT ALL 61 * - - col2 + + col2 FROM tab1
----
3658
4216
5952

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4624
SELECT col0 * col0 + + - ( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT col0 * col0 + + - ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 24 AS col1, - 79 FROM tab2 cor0
----
24
-79
24
-79
24
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4626
SELECT DISTINCT - ( ( + - ( - 57 ) ) ) AS col1, + COUNT( * ) FROM tab1 AS cor0
----
-57
3

skipif mysql # not compatible
query II rowsort label-4626
SELECT DISTINCT - ( ( + - ( - 57 ) ) ) AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
-57
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 78 + col2 col1 FROM tab1 AS cor0
----
-4543
-5236
-7392

query I rowsort
SELECT ALL - 1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4629
SELECT DISTINCT + SUM( DISTINCT - + ( 99 ) ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-99
3

skipif mysql # not compatible
query II rowsort label-4629
SELECT DISTINCT + SUM ( DISTINCT - + ( 99 ) ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-99
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - 43 * 28 + - 65, + ( 76 ) AS col2 FROM tab2 AS cor0
----
1139
76
1139
76
1139
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4632
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4632
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col1 AND ( + - 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4634
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4634
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS INTEGER ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + 37 col2, - 13 + + + col1 AS col1 FROM tab1
----
42
-8
51
1
84
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT DISTINCT 34 + - 21 DIV col2 AS col2 FROM tab0
----
32
34

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT 34 + - 21 / col2 AS col2 FROM tab0
----
32
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE ( - 7 / 12 * - ( col2 ) ) >= ( ( + 69 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE ( - 7 / 12 * - ( col2 ) ) >= ( ( + 69 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4638
SELECT DISTINCT col2 DIV + ( - + col2 ) + + - col0 FROM tab1 cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT col2 / + ( - + col2 ) + + - col0 FROM tab1 cor0
----
-52
-86
-92

query II rowsort
SELECT DISTINCT + col0 - col1 AS col1, 18 * col0 AS col1 FROM tab2 AS cor0
----
-13
1152
-5
828
8
1350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - 80 + - ( + - col2 ) col0 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4641
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST( - 44 AS SIGNED ) - + col2 ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4641
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( - 44 AS INTEGER ) - + col2 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 72 + + 9 FROM tab2 cor0
----
81
81
81

query I rowsort
SELECT ALL + + col0 - - col0 FROM tab1 cor0
----
102
170
182

query I rowsort
SELECT - + col2 / - + col0 FROM tab1 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT - col1 - + 91 + - col2 FROM tab1 AS cor0
----
-155
-201
-206

query I rowsort
SELECT ALL 22 * + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4647
SELECT - + col0 - - CAST( - ( + - col1 ) AS DECIMAL ) col1 FROM tab0 WHERE NOT - col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4647
SELECT - + col0 - - CAST ( - ( + - col1 ) AS REAL ) col1 FROM tab0 WHERE NOT - col0 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL ( CAST( + 20 AS SIGNED ) ) FROM tab1
----
20
20
20

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL ( CAST ( + 20 AS INTEGER ) ) FROM tab1
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4649
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT + CAST( + 19 AS SIGNED ) AS col1 FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-4651
SELECT + CAST ( + 19 AS INTEGER ) AS col1 FROM tab1
----
19
19
19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 = - 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT + - ( COUNT( * ) ) * + COUNT( * ) FROM tab0 AS cor0 WHERE col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT + - ( COUNT ( * ) ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4654
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 36 + + - col1 = + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4654
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 36 + + - col1 = + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + - SUM( ALL + 70 ) col0 FROM tab1 cor0
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4655
SELECT ALL + - SUM ( ALL + 70 ) col0 FROM tab1 cor0
----
-210

query I rowsort
SELECT ALL col0 * - col1 * - - col1 AS col2 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4657
SELECT ALL COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT + + 84 + - - 50 + col1 FROM tab0 AS cor0
----
135
155
215

query I rowsort
SELECT DISTINCT + + 73 * 87 FROM tab0 AS cor0
----
6351

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 73 AS col2, 38 AS col1 FROM tab2 AS cor0
----
-73
38
-73
38
-73
38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT SUM( col0 ) + + - 5 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT SUM ( col0 ) + + - 5 FROM tab1
----
222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4665
SELECT CAST( + + COUNT( * ) AS SIGNED ), CAST( + SUM( ALL - col1 ) AS SIGNED ) + + 18 AS col0 FROM tab2
----
3
-177

skipif mysql # not compatible
query II rowsort label-4665
SELECT CAST ( + + COUNT ( * ) AS INTEGER ), CAST ( + SUM ( ALL - col1 ) AS INTEGER ) + + 18 AS col0 FROM tab2
----
3
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT + SUM( ALL - - 27 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4666
SELECT + SUM ( ALL - - 27 ) FROM tab0
----
81

query I rowsort
SELECT ALL col1 + + 76 AS col2 FROM tab2
----
127
143
153

query III rowsort
SELECT * FROM tab1 WHERE + 61 - col2 - 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT ALL + - col0 * - CAST( - ( - + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + - col0 * - CAST ( - ( - + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL COUNT( * ) * - MIN( ALL - - col0 ) * - ( 45 ) + + SUM( col0 ) + + ( - COUNT( * ) ) * 31 AS col0 FROM tab1 cor0
----
7019

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL COUNT ( * ) * - MIN ( ALL - - col0 ) * - ( 45 ) + + SUM ( col0 ) + + ( - COUNT ( * ) ) * 31 AS col0 FROM tab1 cor0
----
7019

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4671
SELECT DISTINCT * FROM tab2 WHERE col1 * - ( - col0 ) * + - CAST( NULL AS SIGNED ) BETWEEN + + 72 + + ( - col1 ) * - col2 AND col1
----

skipif mysql # not compatible
query III rowsort label-4671
SELECT DISTINCT * FROM tab2 WHERE col1 * - ( - col0 ) * + - CAST ( NULL AS INTEGER ) BETWEEN + + 72 + + ( - col1 ) * - col2 AND col1
----

query I rowsort
SELECT DISTINCT - col0 + col2 + + col1 FROM tab1 AS cor0
----
-21
24
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4673
SELECT DISTINCT + col1 * - col0 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + col1 * - col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) < NULL
----

query I rowsort
SELECT - ( + 86 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 48 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 + 17 + + 4 * + 65 col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
264
272
285

query I rowsort
SELECT + ( - col0 ) * + 33 FROM tab1
----
-1683
-2805
-3003

query I rowsort
SELECT - col0 * + - 93 FROM tab2
----
4278
5952
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT COUNT( * ) * - 52 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4678
SELECT COUNT ( * ) * - 52 FROM tab0
----
-156

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4680
SELECT - 64 * MIN( - ( + col0 ) ) AS col0, 59 DIV 85 * - + COUNT( * ) FROM tab0
----
6208
0

skipif mysql # not compatible
query II rowsort label-4680
SELECT - 64 * MIN ( - ( + col0 ) ) AS col0, 59 / 85 * - + COUNT ( * ) FROM tab0
----
6208
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( + col0 ) > 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - 35 ) AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT + MIN( - 28 ) AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4683
SELECT + MIN ( - 28 ) AS col0 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT + + ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > - 55
----

query I rowsort
SELECT ALL + col1 * - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + - 2 * + + 81 FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT + - 98 + COUNT( * ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4688
SELECT + - 98 + COUNT ( * ) FROM tab0 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4689
SELECT ALL + col1, CAST( NULL AS SIGNED ) / - + 45 * + 67 * - ( ( + col0 ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4689
SELECT ALL + col1, CAST ( NULL AS INTEGER ) / - + 45 * + 67 * - ( ( + col0 ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT + 34 DIV 71 * - MAX( col1 ) + - 84 col2 FROM tab1
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4690
SELECT + 34 / 71 * - MAX ( col1 ) + - 84 col2 FROM tab1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT - MAX( ALL - + col1 ) + - 68 AS col0 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT - MAX ( ALL - + col1 ) + - 68 AS col0 FROM tab0
----
-67

query I rowsort
SELECT DISTINCT 56 + + 57 + col2 FROM tab0
----
123
160
212

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT COUNT( * ) - + + SUM( - col1 ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT COUNT ( * ) - + + SUM ( - col1 ) FROM tab2
----
198

query I rowsort
SELECT - col0 * - - ( - + col0 ) FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT DISTINCT 74 * col1 DIV - + col2 AS col1 FROM tab0 AS cor0
----
-127
-155
0

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT 74 * col1 / - + col2 AS col1 FROM tab0 AS cor0
----
-127
-155
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL >= ( + - col0 + - col0 * col0 - 97 ) )
----

query I rowsort
SELECT - 54 * + + 71 + + - ( - col2 ) FROM tab2 AS cor0
----
-3776
-3794
-3811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT ALL COUNT( * ) DIV 81 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL COUNT ( * ) / 81 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 89 FROM tab0 WHERE + 50 IS NOT NULL
----
89
89
89

query I rowsort
SELECT 63 * col1 - + - ( - - 97 ) + - col0 AS col2 FROM tab2
----
3264
4243
4884

query I rowsort
SELECT ALL - 57 * - col0 AS col1 FROM tab0 AS cor0
----
4959
5529
855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4702
SELECT - COUNT( * ) DIV - + 33 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4702
SELECT - COUNT ( * ) / - + 33 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 + 98 * - col0 AS col2 FROM tab0 AS cor0 WHERE 51 IS NOT NULL
----
-1455
-8439
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT + - col2 DIV - col1 - col2 AS col0 FROM tab0 AS cor0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT + - col2 / - col1 - col2 AS col0 FROM tab0 AS cor0
----
-10
-47
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= 41
----
15
81
47

query I rowsort
SELECT ALL + + ( 33 ) AS col1 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT - MIN( ALL col0 ) AS col1, 66 * + SUM( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
-46
12210

skipif mysql # not compatible
query II rowsort label-4707
SELECT - MIN ( ALL col0 ) AS col1, 66 * + SUM ( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
-46
12210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4708
SELECT ALL + COUNT( - + col1 ) DIV - 83 * - ( + COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + COUNT ( - + col1 ) / - 83 * - ( + COUNT ( * ) ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 <= NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - + col2 = + col0 * + col0 - + col0 + - 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( + col1 + - - 21 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 * col0 AND - col1
----

query I rowsort
SELECT - 93 * - 84 * + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-367164
-773388
-78120

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL - COUNT( - col0 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4715
SELECT ALL - COUNT ( - col0 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT ALL col1 + - col2 DIV - 54 AS col0 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL col1 + - col2 / - 54 AS col0 FROM tab2
----
51
68
77

query I rowsort
SELECT 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT + 64 * + MAX( ALL + ( - 90 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-5760

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT + 64 * + MAX ( ALL + ( - 90 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-5760

query II rowsort
SELECT DISTINCT + ( + - 94 ), col1 FROM tab0
----
-94
1
-94
21
-94
81

query I rowsort
SELECT ALL ( + - col2 ) * - + col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + ( - + col0 ) * - + col2 + - 41 + - col1 AS col1 FROM tab2 cor0
----
2442
4242
966

query II rowsort
SELECT DISTINCT + col0 * + 74, col2 + + - col2 AS col0 FROM tab1 cor0
----
3774
0
6290
0
6734
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 32 * - + col1 + - 11 / + col2 - - + 95 - - + col1 + - 46 * - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - - col2 / - 97 + 42 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND - col1 OR NOT col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4725
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND - col1 OR NOT col0 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT SUM( ALL + col2 ) FROM tab1 WHERE + col0 <> + col1
----
223

skipif mysql # not compatible
query I rowsort label-4726
SELECT SUM ( ALL + col2 ) FROM tab1 WHERE + col0 <> + col1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL COUNT( * ) + + - 19 AS col0 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL COUNT ( * ) + + - 19 AS col0 FROM tab0
----
-16

query I rowsort
SELECT DISTINCT + col0 + - col0 - - 36 * - 2 AS col1 FROM tab2
----
-72

query I rowsort
SELECT ALL col0 + + 88 * + col0 FROM tab2
----
4094
5696
6675

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE - col1 + 60 > - + col2
----
-15
-87
-97

query I rowsort
SELECT col2 - - col0 * + col0 AS col0 FROM tab2
----
2139
4136
5683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 - - - 94 col0 FROM tab0
----
-81
-81
-81

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE + ( col1 ) <= col2
----
-97

query I rowsort
SELECT ALL col1 + - 73 - + 44 * - - col2 - - col1 + 6 AS col2 FROM tab1
----
-2653
-2965
-4263

query I rowsort
SELECT + 31 - col1 + - col1 AS col1 FROM tab0
----
-11
-131
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT + COUNT( * ) - + + 66 + 22 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT + COUNT ( * ) - + + 66 + 22 FROM tab0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT DISTINCT col2 DIV col0 + + col2 FROM tab0 AS cor0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT col2 / col0 + + col2 FROM tab0 AS cor0
----
10
100
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT ( - - COUNT( DISTINCT - 83 ) ) - + - COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT ( - - COUNT ( DISTINCT - 83 ) ) - + - COUNT ( * ) FROM tab1 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4740
SELECT ALL col2 AS col2, col2 DIV col2 FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL col2 AS col2, col2 / col2 FROM tab2
----
23
1
40
1
58
1

query I rowsort
SELECT + col0 * 99 * + col1 FROM tab2
----
232254
487872
497475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT COUNT( * ) DIV ( - 10 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4742
SELECT COUNT ( * ) / ( - 10 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT + CAST( + 25 AS SIGNED ) AS col0 FROM tab2 cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-4743
SELECT + CAST ( + 25 AS INTEGER ) AS col0 FROM tab2 cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT - col0 DIV - 53 + - - ( - 7 ) FROM tab1 AS cor0
----
-6
-7

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - col0 / - 53 + - - ( - 7 ) FROM tab1 AS cor0
----
-6
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * - CAST( NULL AS SIGNED ) + + - 65 + - col0 * - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4745
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + - 65 + - col0 * - + col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 30 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 16, - 14 * - 11 AS col0 FROM tab2 AS cor0
----
-16
154
-16
154
-16
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT + col0 * - + 97 / + - ( - 2 ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT + col0 * - + 97 / + - ( - 2 ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + + ( ( + - col1 ) )
----

query II rowsort
SELECT DISTINCT ( 93 ) AS col0, col0 FROM tab2
----
93
46
93
64
93
75

query II rowsort
SELECT DISTINCT + 0 * - - col1 AS col2, + col0 + - + col2 FROM tab0 WHERE NOT - + col1 + + - col2 + - + col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 82 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0, - 97 AS col2 FROM tab1
----
51
-97
85
-97
91
-97

query I rowsort
SELECT ALL - 39 * col1 + + col1 FROM tab0
----
-3078
-38
-798

query I rowsort
SELECT 29 * - 8 FROM tab1
----
-232
-232
-232

query II rowsort
SELECT DISTINCT + col0 + - col1 * + col0 * + - col1 AS col1, + col2 AS col0 FROM tab2
----
119692
23
336750
58
379520
40

query II rowsort
SELECT ALL - col1 AS col0, 72 - + col0 FROM tab1 AS cor0
----
-14
21
-47
-19
-5
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col0, + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT - col2 DIV 88 + col2 * + - 6 FROM tab2 cor0
----
-138
-240
-348

skipif mysql # not compatible
query I rowsort label-4762
SELECT - col2 / 88 + col2 * + - 6 FROM tab2 cor0
----
-138
-240
-348

query I rowsort
SELECT - col2 + 38 FROM tab0 AS cor0
----
-61
-9
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT col0 DIV col1 DIV - col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4764
SELECT col0 / col1 / - col2 + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT 79 + + SUM( col2 ) AS col2 FROM tab1 AS cor0
----
302

skipif mysql # not compatible
query I rowsort label-4765
SELECT 79 + + SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT - 44 AS col1 FROM tab2 WHERE - CAST( + - col0 AS SIGNED ) IN ( + 14 * ( - col1 ) - + col0 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-4766
SELECT - 44 AS col1 FROM tab2 WHERE - CAST ( + - col0 AS INTEGER ) IN ( + 14 * ( - col1 ) - + col0 + - col2 )
----

query I rowsort
SELECT + 77 FROM tab0 WHERE ( - col1 ) * col0 + - - 87 * - 63 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - 48 * - COUNT( * ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-4768
SELECT - 48 * - COUNT ( * ) FROM tab0
----
144

query I rowsort
SELECT - - 8 * + col0 AS col0 FROM tab2 AS cor0
----
368
512
600

query I rowsort
SELECT + + col2 - col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + - col1 - - - 68 FROM tab0 AS cor0
----
-149
-69
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL - MIN( - + col0 ) col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4772
SELECT ALL - MIN ( - + col0 ) col1 FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4773
SELECT ALL CAST( - col0 AS SIGNED ), col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-4773
SELECT ALL CAST ( - col0 AS INTEGER ), col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT + ( + 30 ) FROM tab1
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT + 48 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + 48 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) < NULL
----
0

query II rowsort
SELECT - 85 AS col1, 65 FROM tab1 AS cor0
----
-85
65
-85
65
-85
65

query II rowsort
SELECT col0 AS col1, 77 FROM tab0 AS cor0
----
15
77
87
77
97
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col2 FROM tab0 cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT + MAX( 50 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT + MAX ( 50 ) FROM tab1 AS cor0
----
50

query II rowsort
SELECT + 70, 91 AS col0 FROM tab1 AS cor0
----
70
91
70
91
70
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 67 / ( col0 ) + - col0 + - 77 * col0 = + + col2
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL 42 * + MIN( col2 ) + - 28 - 42 AS col1 FROM tab2 AS cor0
----
896

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL 42 * + MIN ( col2 ) + - 28 - 42 AS col1 FROM tab2 AS cor0
----
896

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + - 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * col1 * + 10 * - col2 FROM tab2
----
-1232000
-2253880
-269790

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 33 AS col2, 60 AS col1 FROM tab0
----
33
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT - + SUM( + + ( - col2 ) ) * - 50 FROM tab2 WHERE + 34 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT - + SUM ( + + ( - col2 ) ) * - 50 FROM tab2 WHERE + 34 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT + SUM( + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4790
SELECT + SUM ( + col0 ) AS col0 FROM tab2
----
185

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + 55, + col2 AS col0 FROM tab0
----
55
10
55
47
55
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4793
SELECT + SUM( ALL + ( col2 ) ) * - COUNT( * ), 27 AS col2 FROM tab0
----
-468
27

skipif mysql # not compatible
query II rowsort label-4793
SELECT + SUM ( ALL + ( col2 ) ) * - COUNT ( * ), 27 AS col2 FROM tab0
----
-468
27

query I rowsort
SELECT DISTINCT ( - col0 ) + col2 + - col1 - + 88 FROM tab1
----
-119
-158
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4796
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col2 + + col2 / + CAST( - - 32 AS SIGNED ) + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4796
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col2 + + col2 / + CAST ( - - 32 AS INTEGER ) + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 71 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col2 / + col1 - - + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col0 FROM tab0 WHERE - 53 IN ( 22, + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - ( ( + 3 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + COUNT( * ) + - - ( 3 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4800
SELECT + COUNT ( * ) + - - ( 3 ) AS col1 FROM tab1
----
6

query I rowsort
SELECT col2 * - 84 + col1 FROM tab1
----
-4951
-5665
-8050

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL COUNT( * ) + + 64 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL COUNT ( * ) + + 64 FROM tab2
----
67

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT COUNT( * ) * - 21 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT COUNT ( * ) * - 21 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT ( - 90 ) AS col1, - col1 * - + 53 FROM tab2 AS cor0
----
-90
2703
-90
3551
-90
4081

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND 94 / + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 - + col0 + + ( + col2 ) + 43 * - - col1 col2 FROM tab2 cor0
----
2246
2940
3363

query I rowsort
SELECT col0 * col1 * - - col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL + COUNT( * ) * - + MAX( 86 ) * - COUNT( * ) AS col1 FROM tab0
----
774

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL + COUNT ( * ) * - + MAX ( 86 ) * - COUNT ( * ) AS col1 FROM tab0
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT 98 * + COUNT( * ) - 7 - COUNT( * ) col2 FROM tab0
----
284

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4811
SELECT 98 * + COUNT ( * ) - 7 - COUNT ( * ) col2 FROM tab0
----
284

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL 10 DIV - + col2 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL 10 / - + col2 AS col2 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 + col0 col0 FROM tab2
----
101
112
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT ( + col1 ) - col0 + 21 DIV 93 AS col2 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-4814
SELECT ( + col1 ) - col0 + 21 / 93 AS col2 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT 4 * - ( + + COUNT( * ) ) - + + MAX( + col2 ) AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-4815
SELECT 4 * - ( + + COUNT ( * ) ) - + + MAX ( + col2 ) AS col0 FROM tab0
----
-111

query I rowsort
SELECT + col0 + - col2 + + + 42 + + + col1 + 7 * + 95 FROM tab2
----
781
791
808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col1 AS col1 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL 97 * + col1 FROM tab2
----
4947
6499
7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 49 col2 FROM tab0 AS cor0
----
-49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / + col2 - 23 + + 37 / + + col1 + + 27 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 50 + col2 - + 51 BETWEEN NULL AND + 86 * col2 - + 33
----

query I rowsort
SELECT col1 + col0 + + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT + COUNT( * ) * - 54 AS col0 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-4823
SELECT + COUNT ( * ) * - 54 AS col0 FROM tab1
----
-162

query I rowsort
SELECT DISTINCT + col1 + - + col2 + - col1 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL 29 + - MAX( ALL - 17 ) AS col1 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL 29 + - MAX ( ALL - 17 ) AS col1 FROM tab1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT ALL - CAST( NULL AS SIGNED ) + + + 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 6 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + - 89 * - col1 + + col1 FROM tab2 AS cor0
----
4567
5972
6890

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - + COUNT( * ) FROM tab1 cor0 WHERE 48 + + 66 / - 38 > - 23
----
-3

skipif mysql # not compatible
query I rowsort label-4828
SELECT - + COUNT ( * ) FROM tab1 cor0 WHERE 48 + + 66 / - 38 > - 23
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT - col1 DIV col0 + col2 + 9 AS col2 FROM tab0 AS cor0
----
108
19
51

skipif mysql # not compatible
query I rowsort label-4829
SELECT - col1 / col0 + col2 + 9 AS col2 FROM tab0 AS cor0
----
108
19
51

query I rowsort
SELECT - - 88 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT COUNT( * ) + - - 19 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT COUNT ( * ) + - - 19 FROM tab0
----
22

query I rowsort
SELECT - 39 - 62 AS col0 FROM tab2 AS cor0
----
-101
-101
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL COUNT( * ) - MAX( + col2 ) FROM tab2 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL COUNT ( * ) - MAX ( + col2 ) FROM tab2 cor0
----
-55

query I rowsort
SELECT - 49 + - - col2 AS col0 FROM tab1 AS cor0
----
10
19
47

query I rowsort
SELECT - + ( + 46 ) + - 35 FROM tab2 AS cor0
----
-81
-81
-81

query II rowsort
SELECT DISTINCT + 57, col0 FROM tab0 AS cor0
----
57
15
57
87
57
97

query II rowsort
SELECT ALL 94 AS col1, - col1 FROM tab2 AS cor0
----
94
-51
94
-67
94
-77

query III rowsort
SELECT * FROM tab2 WHERE - - 36 IN ( - col1 * col1, 45 / - col1, 5 - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT - 19 + - - 6 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4839
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 19 + - - 6 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT COUNT( ALL + 70 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4840
SELECT COUNT ( ALL + 70 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL - COUNT( DISTINCT - col2 ) * - + ( + MAX( - CAST( col2 AS SIGNED ) ) ) + 56 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - COUNT ( DISTINCT - col2 ) * - + ( + MAX ( - CAST ( col2 AS INTEGER ) ) ) + 56 FROM tab2 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT - CAST( + ( - - col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4842
SELECT - CAST ( + ( - - col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT DISTINCT 10, - SUM( - 54 ) AS col1 FROM tab2
----
10
162

skipif mysql # not compatible
query II rowsort label-4843
SELECT DISTINCT 10, - SUM ( - 54 ) AS col1 FROM tab2
----
10
162

query I rowsort
SELECT + - col0 * - col1 * col2 AS col1 FROM tab1 WHERE NOT + - 40 IN ( col1, - col2 )
----
25075
290836
68544

query II rowsort
SELECT DISTINCT - col0 AS col2, 38 AS col1 FROM tab0
----
-15
38
-87
38
-97
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - SUM( DISTINCT + ( - 66 ) ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - SUM ( DISTINCT + ( - 66 ) ) FROM tab2
----
66

query II rowsort
SELECT DISTINCT col0, 61 * - - col0 FROM tab1 AS cor0
----
51
3111
85
5185
91
5551

query I rowsort
SELECT + col1 + 82 * - col0 AS col2 FROM tab0 AS cor0
----
-1149
-7113
-7953

query I rowsort
SELECT DISTINCT - 85 * col0 AS col1 FROM tab0 AS cor0
----
-1275
-7395
-8245

query I rowsort
SELECT - col1 + + + 43 FROM tab1 AS cor0
----
-4
29
38

query I rowsort
SELECT DISTINCT + + col2 + 32 AS col1 FROM tab0 AS cor0
----
131
42
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT + + col0 / col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL = col1
----

skipif mysql # not compatible
query I rowsort label-4852
SELECT + + col0 / col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL = col1
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL + 82 * - + 88 AS col0, + 34 + + col1 AS col2 FROM tab0 cor0
----
-7216
115
-7216
35
-7216
55

query I rowsort
SELECT ALL 32 + col1 * + 12 - + - 10 FROM tab0
----
1014
294
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL + COUNT( * ) * - + COUNT( * ) + + 13 AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) + + 13 AS col2 FROM tab2
----
4

query I rowsort
SELECT - col0 * + col1 * ( - 10 ) FROM tab2
----
23460
49280
50250

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + MIN( - col2 ) col1 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4859
SELECT + MIN ( - col2 ) col1 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL - CAST( NULL AS SIGNED ) - + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - CAST ( NULL AS INTEGER ) - + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 - col0 + + + col0 * - 83 FROM tab2 AS cor0
----
-3841
-5336
-6242

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4863
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) - - - CAST( col1 AS SIGNED ) - + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4863
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) - - - CAST ( col1 AS INTEGER ) - + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 1 AS col2, col1 AS col0 FROM tab2
----
1
51
1
67
1
77

query I rowsort
SELECT - col0 * 95 AS col2 FROM tab0
----
-1425
-8265
-9215

query II rowsort
SELECT DISTINCT - 77 AS col0, 83 AS col0 FROM tab2
----
-77
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4867
SELECT ALL MAX( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL MAX ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT ( NOT - col0 >= - 25 * - - col1 + 65 * + 67 )
----

query II rowsort
SELECT DISTINCT + col0, + col2 * - col1 FROM tab1
----
51
-1344
85
-295
91
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT + ( - - col0 ) + - CAST( - ( + 62 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * col0 > - col0 * 31
----
108
126
137

skipif mysql # not compatible
query I rowsort label-4870
SELECT + ( - - col0 ) + - CAST ( - ( + 62 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * col0 > - col0 * 31
----
108
126
137

onlyif mysql # DIV for integer division: 
query II rowsort label-4871
SELECT ALL - col2 DIV col0 AS col0, + 38 FROM tab1 AS cor0
----
-1
38
0
38
0
38

skipif mysql # not compatible
query II rowsort label-4871
SELECT ALL - col2 / col0 AS col0, + 38 FROM tab1 AS cor0
----
-1
38
0
38
0
38

query II rowsort
SELECT - 15 AS col0, col0 FROM tab0 AS cor0
----
-15
15
-15
87
-15
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + + ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4873
SELECT + + ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL COUNT( * ) * + MIN( + col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL COUNT ( * ) * + MIN ( + col2 ) FROM tab2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4875
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col1, 96 * - + col0 FROM tab1
----
14
-4896
47
-8736
5
-8160

skipif mysql # not compatible
query II rowsort label-4875
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col1, 96 * - + col0 FROM tab1
----
14
-4896
47
-8736
5
-8160

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 <= NULL )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT + col0 DIV + col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1343
-294
-3195

skipif mysql # not compatible
query I rowsort label-4879
SELECT + col0 / + col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1343
-294
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT - COUNT( + - 44 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - COUNT ( + - 44 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4881
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4881
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( - + col0 ) col1, ( + col0 ) * - col1 * + - col2 FROM tab0 AS cor0
----
15
57105
87
18270
97
9603

query II rowsort
SELECT + + col0 * - col1, - col2 - col2 AS col2 FROM tab2 AS cor0
----
-2346
-46
-4928
-80
-5025
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL + col1 + - - col0 * + - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + col1 + - - col0 * + - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT col0 DIV + + col1 + - 30 * - - col2 AS col0 FROM tab0
----
-1410
-2873
-296

skipif mysql # not compatible
query I rowsort label-4885
SELECT col0 / + + col1 + - 30 * - - col2 AS col0 FROM tab0
----
-1410
-2873
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + COUNT( 24 ) * + COUNT( * ) + 97 col2 FROM tab0
----
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4886
SELECT ALL + COUNT ( 24 ) * + COUNT ( * ) + 97 col2 FROM tab0
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4887
SELECT DISTINCT + col2, col2 + - + CAST( NULL AS DECIMAL ) / - col0 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4887
SELECT DISTINCT + col2, col2 + - + CAST ( NULL AS REAL ) / - col0 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT + - col1, col0 * + 62 * col0 * + col2 AS col0 FROM tab2 AS cor0
----
-51
3017416
-67
20227500
-77
10158080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT - ( + ( - COUNT( DISTINCT + col0 ) ) ) * + - CAST( + 62 AS SIGNED ) * + 8 AS col2 FROM tab0 AS cor0
----
-1488

skipif mysql # not compatible
query I rowsort label-4889
SELECT - ( + ( - COUNT ( DISTINCT + col0 ) ) ) * + - CAST ( + 62 AS INTEGER ) * + 8 AS col2 FROM tab0 AS cor0
----
-1488

query I rowsort
SELECT 71 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL + col0 + + - col2 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - + 98 col2 FROM tab1 cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT COUNT( * ) + + 3 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT COUNT ( * ) + + 3 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL + + COUNT( 32 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4894
SELECT ALL + + COUNT ( 32 ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 < 10 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + 74 ) col2 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT ALL - col2 * + 21 AS col0 FROM tab0
----
-2079
-210
-987

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - 87 / - - col2 * + + 24 - 32 / + - 54 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL - COUNT( * ) * - MIN( - 64 ) * + 72 AS col1 FROM tab0
----
-13824

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL - COUNT ( * ) * - MIN ( - 64 ) * + 72 AS col1 FROM tab0
----
-13824

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND col0 + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT + MAX( col2 ) * 82 FROM tab0
----
8118

skipif mysql # not compatible
query I rowsort label-4901
SELECT + MAX ( col2 ) * 82 FROM tab0
----
8118

query II rowsort
SELECT ALL - 42 AS col1, + col1 / 4 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT - col1 DIV - col0 + col2 + + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1641
3422
553

skipif mysql # not compatible
query I rowsort label-4903
SELECT - col1 / - col0 + col2 + + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1641
3422
553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT ALL 15 DIV + MIN( DISTINCT - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL 15 / + MIN ( DISTINCT - col1 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT - 33 + + COUNT( * ) DIV - 17 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-4905
SELECT - 33 + + COUNT ( * ) / - 17 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-33

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab2 cor0 WHERE NOT 66 BETWEEN - - ( - col0 ) + col2 - + 35 AND + col1
----
94

query II rowsort
SELECT col0, + col1 FROM tab2 cor0 WHERE ( NULL ) > - col1
----

query I rowsort
SELECT ALL + col2 + col2 * + col2 FROM tab2 WHERE NULL >= - - 66
----

query I rowsort
SELECT DISTINCT 34 * + + col2 AS col1 FROM tab2
----
1360
1972
782

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4910
SELECT * FROM tab0 WHERE ( - ( col2 ) ) = - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4910
SELECT * FROM tab0 WHERE ( - ( col2 ) ) = - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE + + col1 * + col1 BETWEEN - + col0 * - col1 AND - 49 + 62 + - 70 * + + col2
----

query I rowsort
SELECT ALL - col0 + - - 45 + 98 AS col0 FROM tab2
----
68
79
97

query III rowsort
SELECT * FROM tab0 WHERE + col2 - - 65 / + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 4 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 4 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT + 52 AS col2 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT + 52 AS col2 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 44 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT - + COUNT( * ) FROM tab2 WHERE ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT - + COUNT ( * ) FROM tab2 WHERE ( + col1 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4919
SELECT ALL * FROM tab1 WHERE + col0 * 3 BETWEEN + - ( CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4919
SELECT ALL * FROM tab1 WHERE + col0 * 3 BETWEEN + - ( CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT 39 * 29 * + col0 AS col0 FROM tab1
----
102921
57681
96135

query II rowsort
SELECT DISTINCT + col0, col1 + - col0 + - col1 * + - 85 FROM tab2 AS cor0
----
46
4340
64
6558
75
5687

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 70 / + - col0
----

query II rowsort
SELECT col0 AS col2, col0 + + - col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 > NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 60 AND col1 * 60
----

query I rowsort
SELECT + col1 * - - 12 FROM tab0
----
12
252
972

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - MIN( ALL + 69 ) * 90 AS col1 FROM tab1
----
-6210

skipif mysql # not compatible
query I rowsort label-4927
SELECT - MIN ( ALL + 69 ) * 90 AS col1 FROM tab1
----
-6210

query I rowsort
SELECT DISTINCT col1 * - col1 * col0 * ( col0 ) FROM tab0
----
-1476225
-3337929
-9409

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + - col0 + + 72 / - - col0 + ( + col1 ) + col2 BETWEEN + 73 AND col0
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL <= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4931
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 + + col0 AND CAST( - - 98 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 + + col0 AND CAST ( - - 98 AS REAL )
----

query I rowsort
SELECT ALL col0 * 59 AS col0 FROM tab0 AS cor0
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT MAX( DISTINCT + - 26 ) AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-4933
SELECT MAX ( DISTINCT + - 26 ) AS col1 FROM tab0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - 72 + + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 72 + + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL COUNT( * ), ( + - 55 ) AS col1 FROM tab2
----
3
-55

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL COUNT ( * ), ( + - 55 ) AS col1 FROM tab2
----
3
-55

query I rowsort
SELECT ALL + ( - col0 ) + 31 FROM tab2 AS cor0
----
-15
-33
-44

query I rowsort
SELECT DISTINCT col2 + - - col2 AS col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT - ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4939
SELECT ALL + + CAST( NULL AS DECIMAL ) * + col1 * + col2 - + col1 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + + CAST ( NULL AS REAL ) * + col1 * + col2 - + col1 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4940
SELECT + COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT + COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT + - MIN( - 93 ) AS col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + - MIN ( - 93 ) AS col1 FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4943
SELECT ALL + ( - - col0 ) AS col2, + 54 * + col0 FROM tab1 cor0 WHERE col0 BETWEEN + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - + 27 * CAST( + 1 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL + ( - - col0 ) AS col2, + 54 * + col0 FROM tab1 cor0 WHERE col0 BETWEEN + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 27 * CAST ( + 1 AS INTEGER ) AND + col2
----

query I rowsort
SELECT + col2 + - - col0 * col1 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT DISTINCT 44 * + - col1 FROM tab1 cor0
----
-2068
-220
-616

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4946
SELECT CAST( NULL AS DECIMAL ) + COUNT( * ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4946
SELECT CAST ( NULL AS REAL ) + COUNT ( * ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 60 * + 12 * col2 + col0 FROM tab0
----
33855
71377
7287

query I rowsort
SELECT + col0 + + col0 * - 85 AS col0 FROM tab1
----
-4284
-7140
-7644

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 19 BETWEEN 31 AND + - col1 * - col1
----

query I rowsort
SELECT DISTINCT - 83 + - ( + col0 ) * + 23 AS col0 FROM tab1
----
-1256
-2038
-2176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE col0 * - 39 BETWEEN - 90 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT ALL - 51 DIV + 87 * + 97 + - - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - 51 / + 87 * + 97 + - - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col1 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ( + MAX( ALL - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4955
SELECT ( + MAX ( ALL - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT ALL + 81 AS col1, SUM( ALL - ( - - col1 ) ) FROM tab2
----
81
-195

skipif mysql # not compatible
query II rowsort label-4957
SELECT ALL + 81 AS col1, SUM ( ALL - ( - - col1 ) ) FROM tab2
----
81
-195

query II rowsort
SELECT + col2 AS col2, + 24 FROM tab1
----
59
24
68
24
96
24

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 WHERE NOT + col0 * - 90 NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4961
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 WHERE NOT + col0 * - 90 NOT BETWEEN col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4962
SELECT DISTINCT * FROM tab0 WHERE 35 + + col1 * 42 BETWEEN - CAST( col2 AS SIGNED ) - - 2 AND 39
----

skipif mysql # not compatible
query III rowsort label-4962
SELECT DISTINCT * FROM tab0 WHERE 35 + + col1 * 42 BETWEEN - CAST ( col2 AS INTEGER ) - - 2 AND 39
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4963
SELECT ALL 0 + - COUNT( * ) DIV 12 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 0 + - COUNT ( * ) / 12 AS col1 FROM tab0
----
0

query I rowsort
SELECT 77 FROM tab1 WHERE NOT ( NULL ) < col2 * col2 + col1
----

query I rowsort
SELECT - col2 * 2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT ALL col1 - 1 AS col1 FROM tab1
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - 45 * COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-4967
SELECT - 45 * COUNT ( * ) FROM tab0
----
-135

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 + col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT COUNT( * ) * + MIN( DISTINCT + 28 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT COUNT ( * ) * + MIN ( DISTINCT + 28 ) FROM tab1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT col0 + CAST( col2 + - col1 AS SIGNED ) FROM tab0 WHERE NOT 33 IS NULL
----
-19
195
76

skipif mysql # not compatible
query I rowsort label-4970
SELECT col0 + CAST ( col2 + - col1 AS INTEGER ) FROM tab0 WHERE NOT 33 IS NULL
----
-19
195
76

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 <= ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 91 + - col1 AS col1 FROM tab0
----
-112
-172
-92

query III rowsort
SELECT ALL * FROM tab0 WHERE 96 NOT BETWEEN NULL AND 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 94 - col2 AS col2 FROM tab0
----
-5
47
84

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 49 - + ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab2 WHERE NOT + col1 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ( - MIN( + 86 ) ) + - 21 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-107

skipif mysql # not compatible
query I rowsort label-4978
SELECT ( - MIN ( + 86 ) ) + - 21 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * + 65 col0 FROM tab2 WHERE NOT NULL BETWEEN - col1 / 13 AND NULL
----

query I rowsort
SELECT - col0 - + 92 AS col2 FROM tab2
----
-138
-156
-167

query I rowsort
SELECT 87 AS col0 FROM tab0 WHERE NOT NULL <> + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 32 + col1 IN ( - 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT - col2 DIV + 6 FROM tab2
----
-3
-6
-9

skipif mysql # not compatible
query I rowsort label-4983
SELECT - col2 / + 6 FROM tab2
----
-3
-6
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT + 8 DIV + 70 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT + 8 / + 70 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT DISTINCT - col1 * ( col0 DIV 25 ) FROM tab1 WHERE ( NULL ) IS NULL
----
-141
-15
-28

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - col1 * ( col0 / 25 ) FROM tab1 WHERE ( NULL ) IS NULL
----
-141
-15
-28

query I rowsort
SELECT ALL + col0 + - col0 / + col1 AS col2 FROM tab2 WHERE col2 < NULL
----

query I rowsort
SELECT ALL 86 + + 97 * ( col2 * + 38 ) AS col2 FROM tab2
----
147526
213874
84864

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT + COUNT( * ) + 0 AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT + COUNT ( * ) + 0 AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - COUNT( DISTINCT - 71 ) * 44 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-4989
SELECT - COUNT ( DISTINCT - 71 ) * 44 FROM tab0
----
-44

query I rowsort
SELECT DISTINCT + 43 FROM tab1 AS cor0 CROSS JOIN tab0
----
43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 40 ) FROM tab1 AS cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT ALL + 14 DIV - 58 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + 14 / - 58 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 74 AS col1 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT + ( + 64 ) AS col2 FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + col2 )
----

query I rowsort
SELECT + + col0 * 68 FROM tab0 cor0
----
1020
5916
6596

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab2 WHERE col0 + col2 IS NOT NULL
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col2 * + col2 FROM tab2 WHERE NOT - col2 BETWEEN - col2 AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col2 * + col2 FROM tab2 WHERE NOT - col2 BETWEEN - col2 AND ( - col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col0 ) OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 18 ) AS col1 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT DISTINCT col1 + + + 71 FROM tab2
----
122
138
148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5006
SELECT * FROM tab2 WHERE NOT + CAST( 9 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5006
SELECT * FROM tab2 WHERE NOT + CAST ( 9 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <> - col1 * 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT + SUM( + + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5008
SELECT + SUM ( + + col2 ) AS col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5009
SELECT * FROM tab0 WHERE NOT + col1 / + col1 NOT BETWEEN 61 AND + CAST( + col0 AS SIGNED ) + 73 / - 7
----

skipif mysql # not compatible
query III rowsort label-5009
SELECT * FROM tab0 WHERE NOT + col1 / + col1 NOT BETWEEN 61 AND + CAST ( + col0 AS INTEGER ) + 73 / - 7
----

query I rowsort
SELECT col1 + + 12 AS col0 FROM tab1 AS cor0
----
17
26
59

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 - + col2 * - 3 col1 FROM tab2 AS cor0
----
-2277
-4808
-4851

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - - col0 + - ( 12 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL - - SUM( - 87 ) - + + 67 + + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-325

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5014
SELECT ALL - - SUM ( - 87 ) - + + 67 + + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-325

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + 42 + col1 AND col2 + + col1 / 27
----

query I rowsort
SELECT ALL - 82 * - col0 + + - col2 + - col2 AS col0 FROM tab1 AS cor0
----
3990
6852
7326

query I rowsort
SELECT ALL col0 + - + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col0 FROM tab0 AS cor0
----
198
20
94

query II rowsort
SELECT ALL + col2 AS col2, - 37 FROM tab2 AS cor0
----
23
-37
40
-37
58
-37

query I rowsort
SELECT 86 + 24 FROM tab2 AS cor0
----
110
110
110

query I rowsort
SELECT - 80 FROM tab2 cor0 WHERE ( NULL ) BETWEEN + 95 AND col1
----

query I rowsort
SELECT - ( col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT - + COUNT( * ) + + CAST( - 54 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5024
SELECT - + COUNT ( * ) + + CAST ( - 54 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT - col1 * + - col1 + - 40 FROM tab2 AS cor0
----
2561
4449
5889

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5026
SELECT ALL - MIN( - col2 ) * 38 DIV - 3 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1213

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - MIN ( - col2 ) * 38 / - 3 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1213

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - - ( + + col2 ) * col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5029
SELECT + 66 * + col1 + - CAST( NULL AS DECIMAL ) / + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT + 66 * + col1 + - CAST ( NULL AS REAL ) / + + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + ( + - col0 ) + col0 >= ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 51 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5032
SELECT ALL - CAST( NULL AS DECIMAL ) - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - CAST ( NULL AS REAL ) - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + col0 AS col1 FROM tab0 WHERE ( - + 50 * - 54 + - col2 + col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 63 > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - 97 / + col1 > - 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 12 + + col2 BETWEEN - col0 AND + 90 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5037
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + col0 * + - col0 NOT BETWEEN ( col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5037
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + col0 * + - col0 NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + 7 * + col0 FROM tab1 AS cor0 WHERE - ( col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT ALL - col2 DIV + col0 - + 48 * + col0 AS col0 FROM tab1 AS cor0
----
-2449
-4080
-4368

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - col2 / + col0 - + 48 * + col0 AS col0 FROM tab1 AS cor0
----
-2449
-4080
-4368

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 FROM tab0 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
225
7569
9409

query I rowsort
SELECT - col2 * ( + col1 ) * 87 + + col0 * - col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-119529
-286333
-32890

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - + + col1 / - + col1 + 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 92 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5043
SELECT + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 92 IS NOT NULL
----
-9

query I rowsort
SELECT ALL 38 * - col2 AS col0 FROM tab2
----
-1520
-2204
-874

query I rowsort
SELECT DISTINCT col1 * + col2 * ( - col0 ) FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5046
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) + col1 * - - col2 IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-5046
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) + col1 * - - col2 IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE NOT + col0 >= ( 1 + col0 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT CAST( NULL AS SIGNED ) / - MAX( DISTINCT col2 ) * - - MAX( + CAST( NULL AS SIGNED ) ) * AVG ( col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT CAST ( NULL AS INTEGER ) / - MAX ( DISTINCT col2 ) * - - MAX ( + CAST ( NULL AS INTEGER ) ) * AVG ( col1 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT 22 * - COUNT( * ) AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT 22 * - COUNT ( * ) AS col1 FROM tab2
----
-66

query I rowsort
SELECT - ( - col2 ) * - col0 + col2 FROM tab0 WHERE 88 * col2 NOT IN ( + + col1 ) OR NOT - col2 * + col1 - col1 = NULL
----
-658
-860
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - 24 * + COUNT( * ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 24 * + COUNT ( * ) FROM tab0
----
-72

query I rowsort
SELECT DISTINCT 81 * + - col2 FROM tab0 AS cor0
----
-3807
-8019
-810

query I rowsort
SELECT - - 48 AS col2 FROM tab2 cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT DISTINCT col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT col1 / + col0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * + - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab2 WHERE + col0 > - col0 * - 37 / - ( col1 )
----
15

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT MIN( ALL - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT MIN ( ALL - col0 ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 + - - col0 * - col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT 15 * SUM( - 32 ) AS col1 FROM tab2
----
-1440

skipif mysql # not compatible
query I rowsort label-5060
SELECT 15 * SUM ( - 32 ) AS col1 FROM tab2
----
-1440

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 + + col2 * + col2 + + + ( + col1 ) < col2 + col1 / - 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + 15 AS col2 FROM tab1
----
1020
1440
885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5063
SELECT DISTINCT 29 DIV - + COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT 29 / - + COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT CAST( + 17 AS SIGNED ) col0 FROM tab0 WHERE NULL IN ( + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5064
SELECT CAST ( + 17 AS INTEGER ) col0 FROM tab0 WHERE NULL IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 * + ( 79 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL - + 55 * - COUNT( * ) + + + 2 AS col1 FROM tab1 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - + 55 * - COUNT ( * ) + + + 2 AS col1 FROM tab1 AS cor0
----
167

query I rowsort
SELECT - 35 * - col2 * - + col0 AS col0 FROM tab1 cor0
----
-171360
-175525
-216580

query I rowsort
SELECT col0 FROM tab1 WHERE col0 NOT BETWEEN ( 51 * - + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 IN ( - - 80 * - col1 - - + ( - col0 ) )
----

query I rowsort
SELECT 32 + + col1 FROM tab1
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ( + 1 ) + + MIN( col0 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-5071
SELECT ( + 1 ) + + MIN ( col0 ) FROM tab2
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND - col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT ALL + 33 - - COUNT( * ) * + + COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
33

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL + 33 - - COUNT ( * ) * + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
94
94
94

query II rowsort
SELECT DISTINCT + - col0, + col2 AS col2 FROM tab1 WHERE NOT ( + + col2 ) > + col2 * - col0
----

query I rowsort
SELECT DISTINCT - ( 66 ) AS col1 FROM tab0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col2 FROM tab2
----
14
14
14

query I rowsort
SELECT + col2 * + ( - - col2 ) AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT COUNT( * ) * + - 35 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-5080
SELECT COUNT ( * ) * + - 35 FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL - 33 * COUNT( * ) AS col2 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL - 33 * COUNT ( * ) AS col2 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT SUM( ALL - 41 ) AS col2 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-5082
SELECT SUM ( ALL - 41 ) AS col2 FROM tab0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT DISTINCT MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT SUM( DISTINCT col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT SUM ( DISTINCT col2 ) FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL + + MIN( 79 ) AS col2 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + + MIN ( 79 ) AS col2 FROM tab0 cor0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT - - 1 + + 68, + ( COUNT( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
69
9

skipif mysql # not compatible
query II rowsort label-5086
SELECT - - 1 + + 68, + ( COUNT ( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
69
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 59 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL 39 * - + 65 FROM tab2 AS cor0 WHERE NOT col1 <> + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT COUNT( + - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT COUNT ( + - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT ALL - COUNT( * ) + COUNT( * ), COUNT( * ) col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5092
SELECT ALL - COUNT ( * ) + COUNT ( * ), COUNT ( * ) col2 FROM tab0 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT - MAX( 27 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - MAX ( 27 ) FROM tab0
----
-27

query II rowsort
SELECT + 41 AS col0, col1 AS col0 FROM tab2
----
41
51
41
67
41
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL - 83 + - + COUNT( * ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - 83 + - + COUNT ( * ) FROM tab2
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 25 + + col1 * - col1 col2 FROM tab1
----
-2116
-75
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT MIN( 40 ) FROM tab2 WHERE - ( + 29 ) * col1 + - col0 + - - 83 + - col0 IN ( + - ( - + col1 ) * - col2 - - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT MIN ( 40 ) FROM tab2 WHERE - ( + 29 ) * col1 + - col0 + - - 83 + - col0 IN ( + - ( - + col1 ) * - col2 - - 4 )
----
NULL

query II rowsort
SELECT - - ( + - col0 ) * + - 45 AS col1, col0 * + col0 AS col0 FROM tab1 cor0
----
2295
2601
3825
7225
4095
8281

query I rowsort
SELECT + - col2 * - col0 + + 47 FROM tab1 AS cor0
----
4943
5062
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + 95 - + 65 * + + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + 95 - + 65 * + + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5102
SELECT + col1 FROM tab2 WHERE - + 33 <> + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5102
SELECT + col1 FROM tab2 WHERE - + 33 <> + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab2 WHERE 66 * + + col1 - - - ( - 43 ) IS NULL
----

query I rowsort
SELECT + col0 * + 97 FROM tab2 WHERE 26 IS NOT NULL
----
4462
6208
7275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5105
SELECT * FROM tab1 WHERE ( + col1 + 79 * + + col1 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5105
SELECT * FROM tab1 WHERE ( + col1 + 79 * + + col1 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + col1 - + col1 AS col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 - - - col0 IS NOT NULL
----

query I rowsort
SELECT - + ( + col1 ) + - ( col1 ) FROM tab2 cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT - 46 - - col0 * + - 30 AS col1 FROM tab1 AS cor0
----
-1576
-2596
-2776

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 95 + col2 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 3 + col0 FROM tab2 WHERE NOT + 40 IS NULL
----
49
67
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5113
SELECT ALL * FROM tab1 WHERE NOT + CAST( + col0 AS SIGNED ) * - col2 * 10 - - col2 + - col2 * col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5113
SELECT ALL * FROM tab1 WHERE NOT + CAST ( + col0 AS INTEGER ) * - col2 * 10 - - col2 + - col2 * col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 * + 39 IS NOT NULL )
----

query I rowsort
SELECT - 19 AS col2 FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN + 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT 16 * MIN( + col0 ) AS col2 FROM tab2
----
736

skipif mysql # not compatible
query I rowsort label-5116
SELECT 16 * MIN ( + col0 ) AS col2 FROM tab2
----
736

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 WHERE NOT - ( + col1 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL ( + 41 ) * + col1 + col2 FROM tab2
----
2114
2805
3197

query I rowsort
SELECT 95 * - col0 * col0 FROM tab0
----
-21375
-719055
-893855

query I rowsort
SELECT - col2 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT + 60 * col0 IS NULL OR col2 + + - col1 IS NULL
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + col1 * + + col0 FROM tab1 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
425
4277
714

query I rowsort
SELECT 84 * + col0 AS col1 FROM tab2
----
3864
5376
6300

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT COUNT( ALL - col2 ) + + - 12 AS col0, - 34 AS col1 FROM tab2
----
-9
-34

skipif mysql # not compatible
query II rowsort label-5123
SELECT COUNT ( ALL - col2 ) + + - 12 AS col0, - 34 AS col1 FROM tab2
----
-9
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5124
SELECT * FROM tab2 WHERE NOT - CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5124
SELECT * FROM tab2 WHERE NOT - CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + + col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT COUNT( * ) + - 71 AS col2 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5126
SELECT COUNT ( * ) + - 71 AS col2 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT ALL - - col1 * col0 + - 21 FROM tab0 AS cor0
----
1194
1806
76

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE ( NOT + - 21 + + col2 <> NULL )
----

query I rowsort
SELECT ALL col1 * - - col0 AS col2 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col1 * 59 AS col2 FROM tab1
----
2773
295
826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5131
SELECT ALL - 46 * + - 11 * SUM( DISTINCT + - CAST( - col0 AS SIGNED ) ) + - 61 AS col1 FROM tab2
----
93549

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - 46 * + - 11 * SUM ( DISTINCT + - CAST ( - col0 AS INTEGER ) ) + - 61 AS col1 FROM tab2
----
93549

query II rowsort
SELECT DISTINCT - ( - col2 ) + + col1 * - + col2 AS col2, + col0 FROM tab0
----
-200
87
-3760
15
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL - MIN( - 20 ) + + - ( 72 ) + + 51 * + COUNT( * ) AS col2 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - MIN ( - 20 ) + + - ( 72 ) + + 51 * + COUNT ( * ) AS col2 FROM tab2
----
101

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE + 80 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + - 5 + col2 + col1 col1, + col0 * + - col1 AS col2 FROM tab2
----
-156
-2346
-203
-4928
-250
-5025

query I rowsort
SELECT ALL 35 + - col1 FROM tab1
----
-12
21
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5137
SELECT - ( - col2 ) AS col1, CAST( - col0 AS SIGNED ) DIV + + 10 FROM tab0
----
10
-8
47
-1
99
-9

skipif mysql # not compatible
query II rowsort label-5137
SELECT - ( - col2 ) AS col1, CAST ( - col0 AS INTEGER ) / + + 10 FROM tab0
----
10
-8
47
-1
99
-9

query I rowsort
SELECT - col1 * + 94 - + col1 + - 36 FROM tab2 AS cor0
----
-4881
-6401
-7351

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5139
SELECT DISTINCT COUNT( * ) DIV 78 AS col0, - MIN( + col1 ) FROM tab0 AS cor0
----
0
-1

skipif mysql # not compatible
query II rowsort label-5139
SELECT DISTINCT COUNT ( * ) / 78 AS col0, - MIN ( + col1 ) FROM tab0 AS cor0
----
0
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 16, col2 * - col1 * + col2 / - + col1 )
----

query I rowsort
SELECT 2 + + col0 FROM tab1 AS cor0
----
53
87
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT 94 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5142
SELECT 94 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 3 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT DISTINCT CAST( + col0 AS SIGNED ) - + col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT CAST ( + col0 AS INTEGER ) - + col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * + col0 col0 FROM tab2 AS cor0
----
1518
2112
2475

onlyif mysql # DIV for integer division: 
query I rowsort label-5148
SELECT DISTINCT + 84 DIV + col1 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + 84 / + col1 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col2 * col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 - - 46 col2, + 5 AS col1 FROM tab1 WHERE + col1 <> - - 57
----
-39
5
-45
5
-5
5

query II rowsort
SELECT - col2 * + col2 AS col0, 56 + + + col1 AS col2 FROM tab1
----
-3481
61
-4624
103
-9216
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col2 col2 FROM tab2
----
23
-23
40
-40
58
-58

query II rowsort
SELECT ALL + col1 AS col0, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT 67 * col0 * col1 FROM tab0
----
122409
6499
81405

query I rowsort
SELECT ALL ( - col2 ) FROM tab1 WHERE NOT col2 BETWEEN + 67 + - col1 AND + - 79
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT - COUNT( * ) AS col2, + MAX( ALL + 66 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
66

skipif mysql # not compatible
query II rowsort label-5156
SELECT - COUNT ( * ) AS col2, + MAX ( ALL + 66 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 34 * - + col1, col1 col1 FROM tab2 AS cor0
----
1734
51
2278
67
2618
77

query II rowsort
SELECT col2 + 77 AS col0, 75 FROM tab1 cor0
----
136
75
145
75
173
75

query I rowsort
SELECT + col2 + - col0 * - - 67 * + 29 AS col2 FROM tab1 cor0
----
-165096
-176745
-98997

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5160
SELECT ALL - 61 * CAST( + col0 AS SIGNED ), - col0 AS col2 FROM tab0 AS cor0
----
-5307
-87
-5917
-97
-915
-15

skipif mysql # not compatible
query II rowsort label-5160
SELECT ALL - 61 * CAST ( + col0 AS INTEGER ), - col0 AS col2 FROM tab0 AS cor0
----
-5307
-87
-5917
-97
-915
-15

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( ( + col0 ) IS NULL )
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5162
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( - + COUNT( * ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - + COUNT ( * ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT ALL - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 * + - col2 * - - 90 + ( - 95 ) AS col1 FROM tab2
----
-144095
-302855
-47705

query II rowsort
SELECT ALL - col1, + col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * + CAST( - 98 AS SIGNED ) + + COUNT( * ) / SUM( 65 ) - + 33 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * + CAST ( - 98 AS INTEGER ) + + COUNT ( * ) / SUM ( 65 ) - + 33 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL - COUNT( * ) + - + 11 AS col0 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - COUNT ( * ) + - + 11 AS col0 FROM tab2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5168
SELECT DISTINCT - 11 + - SUM( - col0 ) AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
216
NULL

skipif mysql # not compatible
query II rowsort label-5168
SELECT DISTINCT - 11 + - SUM ( - col0 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
216
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT DISTINCT - - ( + CAST( - - 21 AS SIGNED ) ) + + ( + + col0 ) FROM tab1 AS cor0
----
106
112
72

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT - - ( + CAST ( - - 21 AS INTEGER ) ) + + ( + + col0 ) FROM tab1 AS cor0
----
106
112
72

query II rowsort
SELECT ALL - - 40 AS col2, - col0 FROM tab2 AS cor0
----
40
-46
40
-64
40
-75

query I rowsort
SELECT DISTINCT - 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5172
SELECT ALL 64 * - - col1 DIV + col1 AS col2 FROM tab1
----
64
64
64

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL 64 * - - col1 / + col1 AS col2 FROM tab1
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT col2 DIV col1 * + col2 FROM tab1
----
576
649
68

skipif mysql # not compatible
query I rowsort label-5173
SELECT col2 / col1 * + col2 FROM tab1
----
576
649
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT + + 72 * - - col0 FROM tab2 AS cor0
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL MIN( ALL + col1 ) * + COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL MIN ( ALL + col1 ) * + COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-5177
SELECT - 20 DIV + col2 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5177
SELECT - 20 / + col2 AS col0 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT ALL - 7 DIV + 50 + - 29 * col0 FROM tab0 AS cor0
----
-2523
-2813
-435

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - 7 / + 50 + - 29 * col0 FROM tab0 AS cor0
----
-2523
-2813
-435

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IN ( - col1 * - 54 )
----

query I rowsort
SELECT - ( - - 3 ) FROM tab2
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL IS NULL ) OR NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NOT NULL <= ( col2 * 85 )
----

query I rowsort
SELECT DISTINCT col1 * 49 * - col0 FROM tab2
----
-114954
-241472
-246225

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL - COUNT( * ) * + + 79 AS col0 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL - COUNT ( * ) * + + 79 AS col0 FROM tab1
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT 75 * - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-225

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT 75 * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT - CAST( + 83 AS SIGNED ) FROM tab2 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-5187
SELECT - CAST ( + 83 AS INTEGER ) FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT 51 + col0 FROM tab2
----
115
126
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT DISTINCT + col1 + col2 + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
116
124
73

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + col1 + col2 + col2 / - col2 AS col0 FROM tab2 AS cor0
----
116
124
73

query I rowsort
SELECT - 87 * + col0 + + col0 FROM tab0 cor0
----
-1290
-7482
-8342

query I rowsort
SELECT ALL 82 + + col0 * + - col2 FROM tab1 AS cor0 WHERE col2 + - 75 IS NOT NULL
----
-4814
-4933
-6106

query II rowsort
SELECT DISTINCT - 89 AS col1, col1 * - + 80 AS col0 FROM tab0 AS cor0
----
-89
-1680
-89
-6480
-89
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT MIN( + col1 ) col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5195
SELECT MIN ( + col1 ) col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + + 73 AS col1 FROM tab1 cor0
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 37 + 62 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NULL <> + col1
----

query I rowsort
SELECT col0 * - col2 * ( col1 ) FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT 19 - - + ( + col0 ) + col0 FROM tab1
----
121
189
201

query I rowsort
SELECT ALL ( - 41 ) + + col2 AS col1 FROM tab2
----
-1
-18
17

query I rowsort
SELECT col0 - + 95 * - col2 AS col0 FROM tab1
----
5690
6551
9171

query I rowsort
SELECT DISTINCT col0 * ( 34 ) + col2 AS col0 FROM tab1
----
1830
2949
3162

onlyif mysql # DIV for integer division: 
query I rowsort label-5205
SELECT 60 - ( 61 ) + + + col2 DIV - 52 AS col1 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5205
SELECT 60 - ( 61 ) + + + col2 / - 52 AS col1 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col0 + - col2 + col1 AS col0 FROM tab1
----
-31
31
70

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + - 25, col0 )
----

query I rowsort
SELECT + ( + col0 ) + + col1 * - + 0 * col0 AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT + COUNT( DISTINCT 34 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5210
SELECT + COUNT ( DISTINCT 34 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT ALL - col2 DIV + - 32 AS col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL - col2 / + - 32 AS col1 FROM tab1
----
1
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5212
SELECT DISTINCT + COUNT( + col1 ) * + + COUNT( * ) - + + CAST( NULL AS SIGNED ) + + 72 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + COUNT ( + col1 ) * + + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + + 72 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT - ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
0

query II rowsort
SELECT ALL + ( + ( - + 77 ) ), - col0 AS col0 FROM tab2 AS cor0
----
-77
-46
-77
-64
-77
-75

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 AS col0 FROM tab1 cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL + MAX( - col1 ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5216
SELECT ALL + MAX ( - col1 ) col2 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 71 NOT IN ( - - 8 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab0 cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, col0 col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + COUNT( DISTINCT + - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5220
SELECT + COUNT ( DISTINCT + - col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL - 44 * + 1 AS col2 FROM tab1
----
-44
-44
-44

query I rowsort
SELECT ALL - ( col1 ) * + col0 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT ALL 35 * - + 49 AS col2, col1 FROM tab0
----
-1715
1
-1715
21
-1715
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT - SUM( ALL + col2 ) * + - 37 FROM tab1
----
8251

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - SUM ( ALL + col2 ) * + - 37 FROM tab1
----
8251

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT - COUNT( - - 67 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT - COUNT ( - - 67 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col2 * - col2 * col2 + col2 FROM tab2
----
-12144
-195054
-63960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5228
SELECT ALL - CAST( NULL AS DECIMAL ) + + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - CAST ( NULL AS REAL ) + + + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 <= + col2
----
3

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 <= + col2
----
3

query I rowsort
SELECT + ( 3 ) AS col1 FROM tab0 AS cor0 WHERE - 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT + COUNT( ( + 93 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT + COUNT ( ( + 93 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5232
SELECT - 63 / - col0 + - + CAST( NULL AS SIGNED ), col1 AS col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5232
SELECT - 63 / - col0 + - + CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - - col1 * - 88 * + + col2 + 99 AS col0 FROM tab0 AS cor0
----
-18381
-334917
-8613

query I rowsort
SELECT + 59 + + + 77 FROM tab0 AS cor0
----
136
136
136

query I rowsort
SELECT DISTINCT - + 66 + + col2 AS col2 FROM tab1 AS cor0
----
-7
2
30

query I rowsort
SELECT + 69 * - col1 + col1 + - col2 + - 43 AS col1 FROM tab0 AS cor0
----
-1481
-210
-5598

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5237
SELECT DISTINCT - COUNT( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 WHERE NOT - col2 + + + 83 = + 77 * + 16 * + 55
----
0

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - COUNT ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 WHERE NOT - col2 + + + 83 = + 77 * + 16 * + 55
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5238
SELECT * FROM tab1 AS cor0 WHERE ( ( ( ( NOT - col1 = - CAST( NULL AS SIGNED ) * - col1 ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-5238
SELECT * FROM tab1 AS cor0 WHERE ( ( ( ( NOT - col1 = - CAST ( NULL AS INTEGER ) * - col1 ) ) ) )
----

query I rowsort
SELECT 3 / + - col1 FROM tab1 WHERE + col2 + + 7 * - 79 + col1 * - - 81 * + - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5240
SELECT DISTINCT col2, + CAST( - + col0 AS SIGNED ) - + - col2 - - + 84 * + 27 FROM tab1
----
59
2242
68
2245
96
2313

skipif mysql # not compatible
query II rowsort label-5240
SELECT DISTINCT col2, + CAST ( - + col0 AS INTEGER ) - + - col2 - - + 84 * + 27 FROM tab1
----
59
2242
68
2245
96
2313

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5241
SELECT * FROM tab2 WHERE - 91 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5241
SELECT * FROM tab2 WHERE - 91 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL IN ( - 50, + 44, - col1, + - col1, - - ( + 46 ) * + CAST( NULL AS SIGNED ), + 90 - col0, - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL IN ( - 50, + 44, - col1, + - col1, - - ( + 46 ) * + CAST ( NULL AS INTEGER ), + 90 - col0, - 60 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 col0, + col0 * + col2 AS col2 FROM tab2
----
63
1058
63
2560
63
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT - MIN( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5245
SELECT - MIN ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT DISTINCT COUNT( col2 ) FROM tab1 cor0 WHERE col0 + col0 + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT COUNT ( col2 ) FROM tab1 cor0 WHERE col0 + col0 + - col1 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 39 IS NULL
----

query I rowsort
SELECT + 52 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT + 46 * - 91 * + col2 AS col2 FROM tab1
----
-246974
-284648
-401856

query I rowsort
SELECT ALL + 74 FROM tab0, tab1 AS cor0 WHERE NOT - - 81 IS NULL
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5251
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5251
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + ( - + 61 ) FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT - 37 AS col0 FROM tab2 cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL 60 * - - SUM( 57 ) FROM tab2 AS cor0
----
10260

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL 60 * - - SUM ( 57 ) FROM tab2 AS cor0
----
10260

query I rowsort
SELECT + + ( + 51 ) AS col1 FROM tab1 WHERE NOT - - col1 BETWEEN NULL AND + col1 * 56
----

query I rowsort
SELECT + ( + col1 ) * + col0 + + + col1 AS col0 FROM tab1
----
430
4324
728

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + col0 NOT BETWEEN - + col1 AND 75
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT DISTINCT col1 DIV - 43 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT col1 / - 43 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5259
SELECT + ( + 30 ) DIV + - COUNT( * ) AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-5259
SELECT + ( + 30 ) / + - COUNT ( * ) AS col0 FROM tab1
----
-10

query I rowsort
SELECT + ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT 9 * - + 59 + + + 32 DIV - col2 + col1 FROM tab2 AS cor0
----
-454
-464
-481

skipif mysql # not compatible
query I rowsort label-5261
SELECT 9 * - + 59 + + + 32 / - col2 + col1 FROM tab2 AS cor0
----
-454
-464
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL COUNT( * ) * SUM( ALL + - 29 ) * + COUNT( * ) FROM tab0 AS cor0
----
-783

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL COUNT ( * ) * SUM ( ALL + - 29 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-783

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( + + col2 - - col1 IS NULL )
----

query I rowsort
SELECT ALL col1 / - 74 AS col1 FROM tab2 AS cor0 WHERE ( - 79 ) IS NULL
----

query I rowsort
SELECT + 97 + col1 + + col0 * col2 * col2 FROM tab0
----
33313
8818
950795

query I rowsort
SELECT col1 + - + col0 * - col1 AS col2 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT ALL + col0 + + + col1 FROM tab0 AS cor0 WHERE NOT - col2 + col0 IS NULL
----
108
96
98

query I rowsort
SELECT + + ( - 88 ) * + - col1 AS col0 FROM tab0 AS cor0
----
1848
7128
88

query I rowsort
SELECT DISTINCT + col2 - - col2 + + 81 AS col1 FROM tab1 AS cor0
----
199
217
273

query I rowsort
SELECT ALL - col2 * + 48 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT + CAST( NULL AS SIGNED ) - AVG ( - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT + CAST ( NULL AS INTEGER ) - AVG ( - col2 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * - 61 NOT IN ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 12 - - 87 AS col2 FROM tab1
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT - 34 + - COUNT( * ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - 34 + - COUNT ( * ) FROM tab1
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 col0 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT 46 * - col2 + col1 FROM tab1
----
-2709
-3081
-4402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT CAST( - 64 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-5278
SELECT CAST ( - 64 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab0 WHERE NOT NULL = - col2
----

query I rowsort
SELECT ALL - - 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 80 ) col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT - col0 / + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col0 / + col2 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0, 50 + + + col1 AS col2 FROM tab0 AS cor0
----
15
131
87
71
97
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5284
SELECT DISTINCT + + col1 AS col2, col1 - - + CAST( NULL AS SIGNED ) + 60 AS col0 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5284
SELECT DISTINCT + + col1 AS col2, col1 - - + CAST ( NULL AS INTEGER ) + 60 AS col0 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT COUNT( + 28 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5285
SELECT COUNT ( + 28 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - - 54 * + 1 + - 81 IN ( - 42 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( 7 ) AS col2 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT - CAST( NULL AS SIGNED ) * SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT - + col1 DIV - col2 AS col1 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5289
SELECT - + col1 / - col2 AS col1 FROM tab0 cor0
----
0
1
2

query II rowsort
SELECT - 33 AS col1, col2 - + + col0 FROM tab2 AS cor0
----
-33
-17
-33
-23
-33
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL - - MIN( - 45 ) AS col1 FROM tab2 AS cor0 WHERE col1 * - 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - - MIN ( - 45 ) AS col1 FROM tab2 AS cor0 WHERE col1 * - 11 IS NULL
----
NULL

query I rowsort
SELECT ALL 69 * 43 FROM tab2
----
2967
2967
2967

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT DISTINCT - col0 + - col1 DIV - 85 col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5293
SELECT DISTINCT - col0 + - col1 / - 85 col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 * + col1 AS col2 FROM tab2
----
3404
7488
9375

query I rowsort
SELECT + col1 * + - col0 + 84 FROM tab1
----
-341
-4193
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL - COUNT( * ) + + 77 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - COUNT ( * ) + + 77 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL + 75 * - COUNT( * ) col2 FROM tab1
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5297
SELECT ALL + 75 * - COUNT ( * ) col2 FROM tab1
----
-225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + + 82, col2, col0 * 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5300
SELECT - + 12 DIV - col2 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT - + 12 / - col2 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5301
SELECT + col0 DIV - + col2 AS col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5301
SELECT + col0 / - + col2 AS col2 FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT ALL + 84 DIV 20 * col2 AS col0 FROM tab1
----
236
272
384

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL + 84 / 20 * col2 AS col0 FROM tab1
----
236
272
384

query I rowsort
SELECT + - col2 + + 76 AS col0 FROM tab2 AS cor0
----
18
36
53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <> - col0 * - col2 * - 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - col2 AS col0, 4 FROM tab0 AS cor0
----
10
4
47
4
99
4

query II rowsort
SELECT ALL col1 * + - 57 * col2, + 79 + 17 AS col0 FROM tab2 AS cor0
----
-175560
96
-221502
96
-66861
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT ALL + 67 DIV - + 53 - col2 col0 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5308
SELECT ALL + 67 / - + 53 - col2 col0 FROM tab2 AS cor0
----
-24
-41
-59

query III rowsort
SELECT * FROM tab2 WHERE + col0 - - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5310
SELECT DISTINCT SUM( ALL - + 21 ), - ( + 43 ) AS col0 FROM tab2
----
-63
-43

skipif mysql # not compatible
query II rowsort label-5310
SELECT DISTINCT SUM ( ALL - + 21 ), - ( + 43 ) AS col0 FROM tab2
----
-63
-43

query I rowsort
SELECT 64 FROM tab0 WHERE NOT + + 17 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT + col1 DIV - + 80 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT + col1 / - + 80 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-5313
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col2 + + - 10 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT - ( + MAX( DISTINCT + 89 ) ) AS col2 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5315
SELECT - ( + MAX ( DISTINCT + 89 ) ) AS col2 FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT ALL + 23 AS col2, + COUNT( * ) + ( + COUNT( ALL 15 ) ) + + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23
36

skipif mysql # not compatible
query II rowsort label-5316
SELECT ALL + 23 AS col2, + COUNT ( * ) + ( + COUNT ( ALL 15 ) ) + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT 65 DIV + col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5317
SELECT 65 / + col0 AS col0 FROM tab1
----
0
0
1

query II rowsort
SELECT ALL + 10 AS col2, col2 AS col0 FROM tab1 AS cor0
----
10
59
10
68
10
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL + COUNT( * ) * - - 11 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL + COUNT ( * ) * - - 11 FROM tab0 AS cor0
----
33

query I rowsort
SELECT - + 62 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-47
25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT DISTINCT MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT DISTINCT - MAX( ALL + - 32 ) AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT - MAX ( ALL + - 32 ) AS col1 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + 42 * - - 91 FROM tab0, tab0 AS cor0
----
3822

query II rowsort
SELECT DISTINCT 47 AS col0, 73 AS col1 FROM tab2, tab2 AS cor0
----
47
73

query I rowsort
SELECT + 20 FROM tab2 WHERE - + col2 * - + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5327
SELECT ( SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT ( SUM ( DISTINCT - CAST ( NULL AS REAL ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col2 * - col0 + col0 + + 52 * + 16 AS col2 FROM tab0
----
-8674
142
49

query I rowsort
SELECT ALL 51 + - - col1 AS col1 FROM tab0
----
132
52
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5330
SELECT DISTINCT - ( - - SUM( - 54 ) ) + 44 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) * 76 IS NOT NULL
----
206

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT - ( - - SUM ( - 54 ) ) + 44 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) * 76 IS NOT NULL
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL + - COUNT( * ) * MIN( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL + - COUNT ( * ) * MIN ( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
141

query I rowsort
SELECT DISTINCT - 63 * col0 AS col1 FROM tab1 cor0
----
-3213
-5355
-5733

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5333
SELECT * FROM tab2 AS cor0 WHERE - col1 + - 64 <= + 36 + - 86 / + + CAST( - + col2 AS SIGNED ) + ( 43 ) * + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5333
SELECT * FROM tab2 AS cor0 WHERE - col1 + - 64 <= + 36 + - 86 / + + CAST ( - + col2 AS INTEGER ) + ( 43 ) * + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + ( 31 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT MAX( DISTINCT - - 33 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5335
SELECT MAX ( DISTINCT - - 33 ) AS col0 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT - 57 AS col2 FROM tab1 WHERE 21 * col2 + + 72 BETWEEN - - col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5336
SELECT - 57 AS col2 FROM tab1 WHERE 21 * col2 + + 72 BETWEEN - - col0 AND + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1 * - col2, + 45 - + + col1 AS col1 FROM tab2 AS cor0
----
-1173
-6
-3080
-32
-3886
-22

query I rowsort
SELECT ALL + col1 - col2 * + - col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT DISTINCT - + 83 - - col0 FROM tab2 AS cor0
----
-19
-37
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5340
SELECT ALL col0 * - col1 AS col0, col2 + col0 FROM tab1 AS cor0 WHERE ( NULL NOT IN ( + 77, + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query II rowsort label-5340
SELECT ALL col0 * - col1 AS col0, col2 + col0 FROM tab1 AS cor0 WHERE ( NULL NOT IN ( + 77, + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT col2 - col0 * - + col0 AS col1 FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col1 / + 92 * col1 / 15 IS NOT NULL
----

query II rowsort
SELECT + 18 AS col2, - col0 FROM tab0
----
18
-15
18
-87
18
-97

query I rowsort
SELECT DISTINCT - ( + 74 ) * - col2 * - 72 AS col0 FROM tab2
----
-122544
-213120
-309024

query I rowsort
SELECT DISTINCT - col1 * + - col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + - ( + - 82 ) AS col2 FROM tab1
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT DISTINCT + SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT + SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT 88 * 21 AS col2 FROM tab0
----
1848
1848
1848

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5350
SELECT + CAST( 74 AS DECIMAL ) * - - 35 + col0 * CAST( NULL AS SIGNED ) + - ( + 14 ) + - col2 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT + CAST ( 74 AS REAL ) * - - 35 + col0 * CAST ( NULL AS INTEGER ) + - ( + 14 ) + - col2 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR NOT + col1 = + col1 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + 39 ) FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT + - col2 + + + 59 AS col1 FROM tab2 AS cor0
----
1
19
36

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * + 29 <= + 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + + - col1 col1 FROM tab1
----
-13
20
29

query I rowsort
SELECT + 12 * - col2 AS col2 FROM tab0 AS cor0
----
-1188
-120
-564

query I rowsort
SELECT ALL ( + - col1 ) - - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 + - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL - ( COUNT( * ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5359
SELECT ALL - ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT - - 12 * - 49 + - 8 * + COUNT( * ) FROM tab0 AS cor0
----
-612

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - - 12 * - 49 + - 8 * + COUNT ( * ) FROM tab0 AS cor0
----
-612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5361
SELECT ALL - COUNT( * ) DIV 73 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL - COUNT ( * ) / 73 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + - COUNT( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5362
SELECT + - COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT 78 + MIN( + - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT 78 + MIN ( + - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT ALL - 44 * col0 AS col1 FROM tab0 AS cor0
----
-3828
-4268
-660

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - col0 NOT BETWEEN - - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 <= - - col2
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT - col0 DIV - 95 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5368
SELECT - col0 / - 95 AS col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT CAST( - col2 AS SIGNED ) * col0 * - col1 FROM tab1
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-5369
SELECT CAST ( - col2 AS INTEGER ) * col0 * - col1 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5370
SELECT + - 22 DIV COUNT( * ) DIV - - 55 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5370
SELECT + - 22 / COUNT ( * ) / - - 55 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 75 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT - COUNT( DISTINCT - 35 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5372
SELECT - COUNT ( DISTINCT - 35 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT - + MIN( - 98 ) AS col0 FROM tab1 AS cor0 WHERE NOT 68 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - + MIN ( - 98 ) AS col0 FROM tab1 AS cor0 WHERE NOT 68 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 4 AS col2 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT - COUNT( * ) + + 73 AS col0 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5376
SELECT - COUNT ( * ) + + 73 AS col0 FROM tab0 AS cor0
----
70

query II rowsort
SELECT ALL col0, col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT DISTINCT - + CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT ALL - col0, - col0 AS col2 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 70 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 30, + col0 + + col0 col2 FROM tab1 cor0
----
-30
102
-30
170
-30
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL - SUM( DISTINCT - 9 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - SUM ( DISTINCT - 9 ) AS col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL COUNT( * ) * + MAX( DISTINCT + col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + col2 ) FROM tab2
----
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 + + + col2 col2 FROM tab1
----
14
23
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT COUNT( DISTINCT + + 72 ) - - - 34 AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-5386
SELECT COUNT ( DISTINCT + + 72 ) - - - 34 AS col2 FROM tab2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( CAST( 57 AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( CAST ( 57 AS INTEGER ) ) >= NULL
----

query I rowsort
SELECT ALL + col1 - + 37 AS col2 FROM tab2 AS cor0
----
14
30
40

query I rowsort
SELECT - 11 * col0 FROM tab2
----
-506
-704
-825

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5392
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) * ( 76 ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5392
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) * ( 76 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - COUNT( * ) * 49 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-5393
SELECT - COUNT ( * ) * 49 FROM tab0
----
-147

query II rowsort
SELECT col0 * + 38 / - col1, + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0, - col0 FROM tab2 cor0
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT ALL + CAST( - ( col1 ) AS SIGNED ) col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5399
SELECT ALL + CAST ( - ( col1 ) AS INTEGER ) col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT - COUNT( * ), 74 AS col0 FROM tab0 AS cor0
----
-3
74

skipif mysql # not compatible
query II rowsort label-5400
SELECT - COUNT ( * ), 74 AS col0 FROM tab0 AS cor0
----
-3
74

query II rowsort
SELECT ALL 68 AS col2, - 36 FROM tab1
----
68
-36
68
-36
68
-36

query I rowsort
SELECT DISTINCT - col2 * - + 92 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT DISTINCT - 63 * - col0 AS col0 FROM tab2
----
2898
4032
4725

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5404
SELECT col0 AS col2, col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5404
SELECT col0 AS col2, col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - + col0 * - - 84 + + col1
----

query I rowsort
SELECT DISTINCT + col1 * + - 47 FROM tab2
----
-2397
-3149
-3619

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5407
SELECT col0 * - 59, 94 * + - col0 * + - CAST( NULL AS SIGNED ) - - + ( + col1 ) AS col2 FROM tab0
----
-5133
NULL
-5723
NULL
-885
NULL

skipif mysql # not compatible
query II rowsort label-5407
SELECT col0 * - 59, 94 * + - col0 * + - CAST ( NULL AS INTEGER ) - - + ( + col1 ) AS col2 FROM tab0
----
-5133
NULL
-5723
NULL
-885
NULL

query II rowsort
SELECT ALL 37 AS col0, - col2 FROM tab0
----
37
-10
37
-47
37
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5409
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, 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-5409
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT - col1 * - 35 + col1 * 21 DIV - col1 FROM tab0 AS cor0
----
14
2814
714

skipif mysql # not compatible
query I rowsort label-5410
SELECT - col1 * - 35 + col1 * 21 / - col1 FROM tab0 AS cor0
----
14
2814
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT - COUNT( DISTINCT - - col2 ) * + 26 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT - COUNT ( DISTINCT - - col2 ) * + 26 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT 5 * - col0 AS col1 FROM tab0 AS cor0
----
-435
-485
-75

query I rowsort
SELECT - ( 36 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL COUNT( * ) + - - MIN( ALL 87 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL COUNT ( * ) + - - MIN ( ALL 87 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab0 WHERE - - 38 + - - col0 IS NULL
----

query I rowsort
SELECT + col2 * + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT - - col2 DIV - col1 + ( col2 ) AS col0 FROM tab1 AS cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-5417
SELECT - - col2 / - col1 + ( col2 ) AS col0 FROM tab1 AS cor0
----
48
67
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - - 32 + - + SUM( - ( - col0 ) ) AS col2 FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5418
SELECT - - 32 + - + SUM ( - ( - col0 ) ) AS col2 FROM tab2 cor0
----
-153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5419
SELECT + col0 + - col1 + col0 * + col2 - + 73 + + CAST( NULL AS DECIMAL ) * + 89 * - col0 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-5419
SELECT + col0 + - col1 + col0 * + col2 - + 73 + + CAST ( NULL AS REAL ) * + 89 * - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * + + 37
----
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * + + 37
----
0

query II rowsort
SELECT col0 + - col0 AS col0, + 18 FROM tab1 AS cor0
----
0
18
0
18
0
18

query I rowsort
SELECT - col1 + - + col0 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT + SUM( DISTINCT + col0 ) + COUNT( * ) AS col2 FROM tab0 cor0
----
202

skipif mysql # not compatible
query I rowsort label-5423
SELECT + SUM ( DISTINCT + col0 ) + COUNT ( * ) AS col2 FROM tab0 cor0
----
202

query I rowsort
SELECT DISTINCT - + col1 * + col1 + col1 * ( col2 ) FROM tab1 AS cor0
----
1148
270
987

query I rowsort
SELECT 15 + + col0 FROM tab1
----
100
106
66

query III rowsort
SELECT * FROM tab1 WHERE + ( + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT - COUNT( * ) * COUNT( * ) * + - COUNT( * ) col1 FROM tab2 WHERE + ( - 50 ) IS NOT NULL
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5427
SELECT - COUNT ( * ) * COUNT ( * ) * + - COUNT ( * ) col1 FROM tab2 WHERE + ( - 50 ) IS NOT NULL
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL SUM( ALL col1 ) - - 22 + - COUNT( * ) FROM tab2
----
214

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL SUM ( ALL col1 ) - - 22 + - COUNT ( * ) FROM tab2
----
214

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT + col0 - ( + ( 67 ) ) + + ( - + 85 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
-53
-55
16

skipif mysql # not compatible
query I rowsort label-5429
SELECT + col0 - ( + ( 67 ) ) + + ( - + 85 ) / + col1 AS col0 FROM tab0 AS cor0
----
-53
-55
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT ALL + 88 col0 FROM tab1 AS cor0 WHERE NOT 28 - + CAST( + col1 AS SIGNED ) NOT BETWEEN + col2 AND - - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5430
SELECT ALL + 88 col0 FROM tab1 AS cor0 WHERE NOT 28 - + CAST ( + col1 AS INTEGER ) NOT BETWEEN + col2 AND - - col0
----

query I rowsort
SELECT + 65 * col0 * + + 95 AS col2 FROM tab1 AS cor0
----
314925
524875
561925

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 47 FROM tab0 WHERE ( + ( col2 ) * col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5434
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / - col0 NOT BETWEEN - CAST( NULL AS SIGNED ) / col2 + col2 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5434
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / - col0 NOT BETWEEN - CAST ( NULL AS INTEGER ) / col2 + col2 * CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - 27 * col2 + + 47 AS col1 FROM tab0
----
-1222
-223
-2626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT + ( CAST( NULL AS SIGNED ) ) / col0 + - 65 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT + ( CAST ( NULL AS INTEGER ) ) / col0 + - 65 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 41 NOT BETWEEN - 5 / 3 AND + col2
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5438
SELECT * FROM tab1 WHERE 48 * - col1 NOT BETWEEN - CAST( NULL AS SIGNED ) * col0 AND 86
----

skipif mysql # not compatible
query III rowsort label-5438
SELECT * FROM tab1 WHERE 48 * - col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) * col0 AND 86
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = 99 * 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL - 12 * - MAX( 25 ) FROM tab2 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - 12 * - MAX ( 25 ) FROM tab2 WHERE NOT ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT + col2 - 62 * col0 AS col1 FROM tab0
----
-5384
-5915
-883

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT + 69 + - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL <= col2
----
69

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT + 69 + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL <= col2
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 - - col1 ) NOT BETWEEN ( - col2 + + 59 * col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col2 * 28 FROM tab1
----
1947
4032
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL + COUNT( ALL 71 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + COUNT ( ALL 71 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + col1 NOT BETWEEN 34 AND NULL
----

query I rowsort
SELECT 16 AS col1 FROM tab1 WHERE NOT NULL <= + col1 * - ( + col1 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT + COUNT( DISTINCT + col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5448
SELECT + COUNT ( DISTINCT + col1 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT ALL - CAST( NULL AS SIGNED ) + 36 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - CAST ( NULL AS INTEGER ) + 36 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL COUNT( * ) + 23 col0 FROM tab2 WHERE - col1 + col1 IS NULL
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5450
SELECT ALL COUNT ( * ) + 23 col0 FROM tab2 WHERE - col1 + col1 IS NULL
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * 86 + col2 col1 FROM tab1
----
5907
5916
5944

query I rowsort
SELECT - 91 / 42 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT col2 - - col0 FROM tab1 WHERE ( NULL ) IS NULL
----
144
147
159

query I rowsort
SELECT DISTINCT + ( col0 ) + + 76 FROM tab0
----
163
173
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col2 - col0 AND col1
----

query I rowsort
SELECT DISTINCT - 62 * + 3 FROM tab2
----
-186

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT col2 + col0 IN ( 14 + col2 * - 45 )
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= ( col2 + ( + col2 + - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5460
SELECT DISTINCT + COUNT( * ) DIV + 94 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + COUNT ( * ) / + 94 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 31 * 24 AS col0 FROM tab2 cor0
----
744

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT DISTINCT 58 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT 58 / + col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 61 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT col2 * col2 + - 54 DIV 28 AS col1 FROM tab2
----
1599
3363
528

skipif mysql # not compatible
query I rowsort label-5464
SELECT col2 * col2 + - 54 / 28 AS col1 FROM tab2
----
1599
3363
528

query III rowsort
SELECT * FROM tab1 WHERE + col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT ALL - col2 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5466
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT + + SUM( col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-5467
SELECT + + SUM ( col1 ) FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + - SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5468
SELECT + - SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) >= 70
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < 77
----

query I rowsort
SELECT ALL - col2 + 10 AS col0 FROM tab2 AS cor0
----
-13
-30
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT DISTINCT + 9 DIV - 89 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 + col0 = col2 * col2
----
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT + 9 / - 89 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 + col0 = col2 * col2
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= ( col2 )
----

query I rowsort
SELECT - 4 * + 32 AS col2 FROM tab1 AS cor0
----
-128
-128
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT DISTINCT - col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT - col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT DISTINCT 32 DIV COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT 32 / COUNT ( * ) FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5477
SELECT CAST( - 78 AS SIGNED ) * + col1 - 3 AS col2 FROM tab2
----
-3981
-5229
-6009

skipif mysql # not compatible
query I rowsort label-5477
SELECT CAST ( - 78 AS INTEGER ) * + col1 - 3 AS col2 FROM tab2
----
-3981
-5229
-6009

query I rowsort
SELECT + 98 - + + 17 * col0 FROM tab1
----
-1347
-1449
-769

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL MAX( + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL MAX ( + col0 ) AS col2 FROM tab0
----
97

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab1 WHERE - col1 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT 17 + - - COUNT( * ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT 17 + - - COUNT ( * ) FROM tab1
----
20

query I rowsort
SELECT + col2 + + - col0 AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT col1 - 43 + ( - 6 ) AS col1 FROM tab0
----
-28
-48
32

query I rowsort
SELECT + ( col2 ) + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + + 55 FROM tab1 cor0
----
102
60
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT DISTINCT - - 5 DIV - + col1 + 37 col1 FROM tab0 AS cor0
----
32
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT DISTINCT - - 5 / - + col1 + 37 col1 FROM tab0 AS cor0
----
32
37

query I rowsort
SELECT ALL ( col2 ) * col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( 52 + + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + COUNT( DISTINCT + 52 ) * + 26 + + 87 AS col1 FROM tab1
----
113

skipif mysql # not compatible
query I rowsort label-5489
SELECT + COUNT ( DISTINCT + 52 ) * + 26 + + 87 AS col1 FROM tab1
----
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 70 col1 FROM tab2
----
-1610
-2800
-4060

query I rowsort
SELECT + + 5 * 99 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2e05d6520d4b9458b564ea912d1c033c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, - 23 col2 FROM tab2
----
51
-23
67
-23
77
-23

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND 82 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5494
SELECT - 79 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + 40 >= ( + 26 + col0 )
----

skipif mysql # not compatible
query I rowsort label-5494
SELECT - 79 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + 40 >= ( + 26 + col0 )
----

query I rowsort
SELECT ALL - + col0 * - col0 AS col2 FROM tab1 cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 89 ) IN ( + 86 )
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT + col2 / - 74 NOT BETWEEN ( 95 ) AND ( NULL )
----

query I rowsort
SELECT - col1 * col2 FROM tab1 AS cor0 WHERE NOT + 69 IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + + col1 + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT + 58 * + COUNT( * ) AS col1 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-5500
SELECT + 58 * + COUNT ( * ) AS col1 FROM tab1
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT COUNT( + col1 ) AS col1, 8 FROM tab2
----
3
8

skipif mysql # not compatible
query II rowsort label-5501
SELECT COUNT ( + col1 ) AS col1, 8 FROM tab2
----
3
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT CAST( NULL AS SIGNED ) + col2 FROM tab1 WHERE NOT col0 IS NULL AND ( - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5502
SELECT CAST ( NULL AS INTEGER ) + col2 FROM tab1 WHERE NOT col0 IS NULL AND ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 58 + col0 AS col1 FROM tab0
----
-2711
-493
-5645

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - - MAX( ALL - 79 ) * - 1 AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5505
SELECT - - MAX ( ALL - 79 ) * - 1 AS col1 FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5506
SELECT DISTINCT - 27 * + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT - 27 * + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT - MIN( + + 59 ) AS col1 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - MIN ( + + 59 ) AS col1 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT ALL 24 + - col1 AS col1 FROM tab2 AS cor0
----
-27
-43
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT + 77 + + 26 AS col0 FROM tab2 AS cor0 WHERE ( - col0 + CAST( NULL AS SIGNED ) NOT IN ( - col0 + - 91 ) )
----

skipif mysql # not compatible
query I rowsort label-5509
SELECT + 77 + + 26 AS col0 FROM tab2 AS cor0 WHERE ( - col0 + CAST ( NULL AS INTEGER ) NOT IN ( - col0 + - 91 ) )
----

query I rowsort
SELECT DISTINCT - 19 * + - 47 AS col0 FROM tab2
----
893

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 55 * + 45 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + - 45 * col0 FROM tab1 WHERE + + col1 + + + 92 IS NOT NULL
----
-2295
-3825
-4095

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + + col2 col1 FROM tab1 AS cor0
----
15
43
6

query I rowsort
SELECT - col2 * 50 * - col0 + col0 FROM tab2 AS cor0 WHERE + col2 IN ( - col1 )
----

query I rowsort
SELECT ALL + 13 - + col1 FROM tab2 AS cor0
----
-38
-54
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT ALL - + 7 DIV - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - + 7 / - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab2 cor0 WHERE ( 8 ) IS NULL
----

query I rowsort
SELECT - col0 + - 42 AS col0 FROM tab2 AS cor0
----
-106
-117
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL 41 + - + col0 FROM tab2
----
-23
-34
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT + 41 / - ( col0 * + col2 ) FROM tab2 WHERE - + CAST( NULL AS SIGNED ) NOT BETWEEN ( + col1 + - col2 + - col1 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5524
SELECT + 41 / - ( col0 * + col2 ) FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) NOT BETWEEN ( + col1 + - col2 + - col1 ) AND ( NULL )
----

query I rowsort
SELECT ALL 58 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT 14 * - - 17 FROM tab0
----
238

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5527
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( + + col1 ) - ( col1 ) + + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-5527
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( + + col1 ) - ( col1 ) + + CAST ( NULL AS INTEGER ) AND col1
----

query II rowsort
SELECT + + col2, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL 13 * + 55 * + CAST( NULL AS SIGNED ) * + COUNT( * ) / + 40 * - AVG ( - col1 ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5529
SELECT ALL 13 * + 55 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 40 * - AVG ( - col1 ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5530
SELECT COUNT( * ) col2, 73 FROM tab2 AS cor0
----
3
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5530
SELECT COUNT ( * ) col2, 73 FROM tab2 AS cor0
----
3
73

query II rowsort
SELECT ALL + ( 10 ) AS col0, 91 * - 34 * - 71 FROM tab0
----
10
219674
10
219674
10
219674

query I rowsort
SELECT DISTINCT - col1 * ( - - col1 ) FROM tab1
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 53 col1 FROM tab0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5534
SELECT DISTINCT COUNT( * ) DIV + - ( 67 ) col2, 93 AS col0 FROM tab2 AS cor0
----
0
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5534
SELECT DISTINCT COUNT ( * ) / + - ( 67 ) col2, 93 AS col0 FROM tab2 AS cor0
----
0
93

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - - 91
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + - col2 - + 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - col0 ) * + 24 AS col0 FROM tab2 AS cor0
----
1104
1536
1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5538
SELECT - COUNT( * ) DIV + CAST( - - 72 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5538
SELECT - COUNT ( * ) / + CAST ( - - 72 AS INTEGER ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL = - 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL + ( MAX( col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + ( MAX ( col1 ) ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT MIN( + 15 ) col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5541
SELECT DISTINCT MIN ( + 15 ) col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT 38 FROM tab2 AS cor0 WHERE - col0 * + col1 IN ( - 19 )
----

query I rowsort
SELECT DISTINCT + col2 + ( - - 18 ) * 21 FROM tab1 AS cor0
----
437
446
474

query I rowsort
SELECT DISTINCT - 7 * + 26 AS col0 FROM tab1
----
-182

onlyif mysql # DIV for integer division: 
query II rowsort label-5545
SELECT DISTINCT 21 + + - col0 * 56 DIV 5 AS col2, 95 AS col0 FROM tab0
----
-1065
95
-147
95
-953
95

skipif mysql # not compatible
query II rowsort label-5545
SELECT DISTINCT 21 + + - col0 * 56 / 5 AS col2, 95 AS col0 FROM tab0
----
-1065
95
-147
95
-953
95

query I rowsort
SELECT ALL + col2 * 50 * - 45 * col1 + + 26 FROM tab0
----
-222724
-472474
-8565724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - ( - - 43 ) - 36 col1 FROM tab2
----
51
-79
67
-79
77
-79

query I rowsort
SELECT DISTINCT + 80 + - - 81 + + 61 * col1 * 50 FROM tab2
----
155711
204511
235011

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT ALL + col0 + - 57 + + 58 DIV - 15 AS col0 FROM tab1
----
-9
25
31

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL + col0 + - 57 + + 58 / - 15 AS col0 FROM tab1
----
-9
25
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT COUNT( - 89 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5550
SELECT COUNT ( - 89 ) FROM tab2
----
3

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

query I rowsort
SELECT DISTINCT 27 * col2 AS col2 FROM tab0 AS cor0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT - - COUNT( * ) + 98 * - 4 FROM tab2 AS cor0
----
-389

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT - - COUNT ( * ) + 98 * - 4 FROM tab2 AS cor0
----
-389

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT - - col1 DIV + - 37 - - - col2 * - 73 FROM tab0 cor0
----
3429
7227
730

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT - - col1 / + - 37 - - - col2 * - 73 FROM tab0 cor0
----
3429
7227
730

query I rowsort
SELECT ALL 59 - + 19 + - - 88 AS col1 FROM tab0 AS cor0
----
128
128
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT ALL + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT ALL + col0 - + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + col0 - + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT SUM( 3 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT SUM ( 3 ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT + CAST( NULL AS SIGNED ) - - + 38 - COUNT( * ) - + + 60 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT + CAST ( NULL AS INTEGER ) - - + 38 - COUNT ( * ) - + + 60 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - + 7 - - + col0 col0, 83 AS col1 FROM tab0
----
-73
83
59
83
89
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 * - 12 col0 FROM tab1
----
-1092
-1092
-1092

query I rowsort
SELECT + 91 * + col2 FROM tab2
----
2093
3640
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * - + ( - 91 ) * - col2 col2 FROM tab0
----
166803
351351
35490

query I rowsort
SELECT ALL + ( col2 ) * 86 - - 21 + + col1 + - 28 AS col2 FROM tab1
----
5072
5888
8263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 91 col2 FROM tab0
----
1911
7371
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5566
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + CAST( + 78 AS SIGNED ), 43 * - - 84 )
----

skipif mysql # not compatible
query III rowsort label-5566
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + CAST ( + 78 AS INTEGER ), 43 * - - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE 37 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL - + MIN( DISTINCT - ( + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - + MIN ( DISTINCT - ( + col2 ) ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT col2 <= + - 32
----
23
40
58

query I rowsort
SELECT DISTINCT - + 68 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-68

query II rowsort
SELECT DISTINCT col1, + col0 + - col1 AS col2 FROM tab1 cor0
----
14
37
47
44
5
80

onlyif mysql # DIV for integer division: 
query II rowsort label-5572
SELECT + col0 AS col1, + col2 + - + 30 DIV col0 * - - 82 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-5572
SELECT + col0 AS col1, + col2 + - + 30 / col0 * - - 82 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT ( CAST( - col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5573
SELECT ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT DISTINCT - col1 * 60 * + + 70 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - col1 * 60 * + + 70 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5575
SELECT ALL + 16 DIV + col1 + + - col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + 16 / + col1 + + - col0 AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + - col0 AS col0 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT DISTINCT + MAX( DISTINCT + ( col0 ) ) + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + MAX ( DISTINCT + ( col0 ) ) + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT - col1 + - + col2 AS col1, col0 FROM tab1
----
-110
51
-115
91
-64
85

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 WHERE NOT + col0 * + 74 IS NOT NULL
----

query I rowsort
SELECT - ( col2 ) FROM tab0 WHERE + 59 + + col0 IN ( - + col1 )
----

query I rowsort
SELECT DISTINCT - + 0 AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5582
SELECT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - - MAX( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5583
SELECT - - MAX ( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5584
SELECT ALL - + CAST( - 69 AS SIGNED ) AS col1, - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-5584
SELECT ALL - + CAST ( - 69 AS INTEGER ) AS col1, - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5585
SELECT ( + 68 ) / + col2 - + + col1 * - + 79 * + - col1, - col2 AS col0 FROM tab2 WHERE ( col1 * CAST( NULL AS SIGNED ) + + - col0 ) = NULL
----

skipif mysql # not compatible
query II rowsort label-5585
SELECT ( + 68 ) / + col2 - + + col1 * - + 79 * + - col1, - col2 AS col0 FROM tab2 WHERE ( col1 * CAST ( NULL AS INTEGER ) + + - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT col2 + + col1 + - + col1 FROM tab0
----
10
47
99

query I rowsort
SELECT + 94 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE - col2 * + col2 IN ( + col1 + + + 89 + - + col2, - col1 * + 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT COUNT( * ) * - 18 + COUNT( * ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT COUNT ( * ) * - 18 + COUNT ( * ) AS col2 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT + col1 * + col1 + - 20 DIV - - col2 - - - col0 + + col1 FROM tab1 AS cor0
----
-55
159
2165

skipif mysql # not compatible
query I rowsort label-5590
SELECT + col1 * + col1 + - 20 / - - col2 - - - col0 + + col1 FROM tab1 AS cor0
----
-55
159
2165

query I rowsort
SELECT DISTINCT + col0 - - 93 FROM tab1 AS cor0
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT - 46 * - ( + + 14 ) + - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
644

skipif mysql # not compatible
query I rowsort label-5592
SELECT - 46 * - ( + + 14 ) + - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT + CAST( NULL AS SIGNED ) * - COUNT( DISTINCT + 76 ) * 32 + 71 - - 35 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT + 76 ) * 32 + 71 - - 35 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( - + col2 ) + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + + col2 * - + col0 * + - 61 + 12 - col2 FROM tab0 AS cor0
----
42970
53072
585696

query II rowsort
SELECT DISTINCT - col1 AS col2, - 65 FROM tab0 AS cor0
----
-1
-65
-21
-65
-81
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 26 BETWEEN + 35 - col1 + - + col0 AND + col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * 53 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT - col2 + - col0 * + - col1 * col1 FROM tab1 WHERE NOT ( + - ( col0 ) ) IS NOT NULL
----

query I rowsort
SELECT - col0 * + 91 AS col0 FROM tab1
----
-4641
-7735
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 WHERE + + col1 * - 49 > - col2 + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
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-5602
SELECT DISTINCT COUNT ( + ( - col2 ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL - SUM( + + 77 ) FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - SUM ( + + 77 ) FROM tab0 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + - MAX( - 41 ) AS col1 FROM tab1 cor0
----
41

skipif mysql # not compatible
query I rowsort label-5604
SELECT + - MAX ( - 41 ) AS col1 FROM tab1 cor0
----
41

query I rowsort
SELECT col1 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
96
98

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT - ( col1 ) * + col1 AS col1 FROM tab1 cor0 WHERE NOT col2 * - ( 57 ) > ( + - col2 )
----
-196
-2209
-25

query I rowsort
SELECT + - 86 AS col0 FROM tab1 WHERE NOT col0 + - + 79 < - ( - 71 )
----

query I rowsort
SELECT DISTINCT col0 + 61 FROM tab1
----
112
146
152

query I rowsort
SELECT - col1 + - - col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL - COUNT( * ) + + 41 col1 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT ALL - COUNT ( * ) + + 41 col1 FROM tab0
----
38

query I rowsort
SELECT ALL - + col2 * - - 18 FROM tab1 AS cor0
----
-1062
-1224
-1728

query I rowsort
SELECT + - col0 * + col1 * + - 27 + - + 29 AS col2 FROM tab2 AS cor0
----
133027
135646
63313

query I rowsort
SELECT ALL - col0 * - - col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT - MAX( DISTINCT - 10 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5615
SELECT - MAX ( DISTINCT - 10 )