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 ) FROM tab0 AS cor0
----
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5618
SELECT COUNT( * ) AS col2, - COUNT( * ) * + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) - 89 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5618
SELECT COUNT ( * ) AS col2, - COUNT ( * ) * + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) - 89 FROM tab0
----
3
NULL

query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 FROM tab0
----
162
2
42

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

query I rowsort
SELECT ALL col0 + + 51 FROM tab2
----
115
126
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT DISTINCT 41 + + + MIN( + - 84 ) AS col0 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT 41 + + + MIN ( + - 84 ) AS col0 FROM tab1
----
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT ALL + COUNT( * ) * - 81 + COUNT( * ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL + COUNT ( * ) * - 81 + COUNT ( * ) FROM tab1
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT ALL 59 - + 8 * - AVG ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL 59 - + 8 * - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + - 49 FROM tab1
----
-2
-35
-44

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

skipif mysql # not compatible
query I rowsort label-5627
SELECT CAST ( + 73 AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
76

query I rowsort
SELECT DISTINCT 52 FROM tab1 AS cor0 WHERE ( - col0 + - 63 ) = - col0
----

query I rowsort
SELECT ALL col1 + + 45 + - + 1 AS col1 FROM tab0
----
125
45
65

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5632
SELECT CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col0 FROM tab1 AS cor0 WHERE 12 IN ( ( + - 81 ), - ( col2 ) * + - 23 )
----

query I rowsort
SELECT - 80 * + - col0 AS col0 FROM tab2 AS cor0
----
3680
5120
6000

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + SUM( ALL + 41 ) AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-5636
SELECT + SUM ( ALL + 41 ) AS col2 FROM tab0
----
123

query I rowsort
SELECT col0 * + col1 * 34 FROM tab2
----
167552
170850
79764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT - COUNT( * ) DIV + - 67 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5638
SELECT - COUNT ( * ) / + - 67 AS col2 FROM tab0
----
0

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

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

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

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

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

query I rowsort
SELECT col1 * + + 46 AS col1 FROM tab0
----
3726
46
966

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT - MAX( ALL + - 27 ) FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - MAX ( ALL + - 27 ) FROM tab1 cor0
----
27

query I rowsort
SELECT ALL + ( + - col1 ) * 0 + 26 + - 60 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-34
-34
-34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 26 col2, - 36 AS col1 FROM tab2 AS cor0
----
26
-36
26
-36
26
-36

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

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

query I rowsort
SELECT - + 42 * - 30 AS col1 FROM tab0 AS cor0
----
1260
1260
1260

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

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

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

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

query I rowsort
SELECT + 92 + + col2 AS col1 FROM tab2 AS cor0
----
115
132
150

query I rowsort
SELECT 58 + ( + 56 ) FROM tab1 AS cor0
----
114
114
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab1 cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5656
SELECT ALL + - CAST( - 25 AS SIGNED ) * - - 74 + + col2 AS col2, - col1 * col1 AS col0 FROM tab2 AS cor0
----
1873
-2601
1890
-5929
1908
-4489

skipif mysql # not compatible
query II rowsort label-5656
SELECT ALL + - CAST ( - 25 AS INTEGER ) * - - 74 + + col2 AS col2, - col1 * col1 AS col0 FROM tab2 AS cor0
----
1873
-2601
1890
-5929
1908
-4489

query I rowsort
SELECT DISTINCT - col1 * + + 48 AS col1 FROM tab0 AS cor0
----
-1008
-3888
-48

query I rowsort
SELECT 74 + + + 65 FROM tab0 AS cor0
----
139
139
139

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

query II rowsort
SELECT col2 + col2 * + col0 * 15 + - 24, - col1 AS col1 FROM tab1
----
73512
-14
75260
-5
92864
-47

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

query I rowsort
SELECT DISTINCT col1 + + 21 FROM tab2
----
72
88
98

query I rowsort
SELECT - + 94 - - + 19 + 38 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE - 41 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * 34 * + + col0 AS col1 FROM tab2 AS cor0
----
167552
170850
79764

query I rowsort
SELECT ALL - col1 * + 66 * + 88 FROM tab1 AS cor0
----
-272976
-29040
-81312

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT + 82 DIV - - ( - col2 ) FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT + 82 / - - ( - col2 ) FROM tab0 AS cor0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL SUM( + 14 ) * - COUNT( - col0 ) * - - COUNT( * ) FROM tab1 AS cor0
----
-378

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL SUM ( + 14 ) * - COUNT ( - col0 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-378

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT DISTINCT CAST( - AVG ( ALL + + 57 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT CAST ( - AVG ( ALL + + 57 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-57

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

skipif mysql # not compatible
query II rowsort label-5672
SELECT DISTINCT + 23, COUNT ( col1 ) AS col0 FROM tab2 AS cor0
----
23
3

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( - - 50 ) / + 26 - + + col2 + - col1 IS NULL
----

query I rowsort
SELECT 45 * + ( col0 ) FROM tab0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT - + COUNT( * ) * - - 85 AS col2, 6 AS col1 FROM tab1 AS cor0
----
-255
6

skipif mysql # not compatible
query II rowsort label-5676
SELECT - + COUNT ( * ) * - - 85 AS col2, 6 AS col1 FROM tab1 AS cor0
----
-255
6

query II rowsort
SELECT ALL - + col1 * + col0, 18 AS col0 FROM tab1 AS cor0
----
-425
18
-4277
18
-714
18

query I rowsort
SELECT - 65 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 19 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5679
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 19 IS NULL
----
3

query I rowsort
SELECT + col1 + + + ( + 93 ) AS col2 FROM tab1
----
107
140
98

query I rowsort
SELECT DISTINCT col0 + + ( + col1 ) FROM tab1
----
138
65
90

query I rowsort
SELECT 32 + - col0 - - - col0 - + col1 * - 8 AS col2 FROM tab1
----
-98
226
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT + MIN( ALL + col0 ) + - + COUNT( * ) + AVG ( ALL CAST( NULL AS SIGNED ) ) * + - 80 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT + MIN ( ALL + col0 ) + - + COUNT ( * ) + AVG ( ALL CAST ( NULL AS INTEGER ) ) * + - 80 FROM tab2
----
NULL

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

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

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

query I rowsort
SELECT ( + + 39 ) + + col0 + - col1 - + - ( col1 ) + + + 35 - + + 39 * + ( + 21 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-654
-660
-694

query I rowsort
SELECT - 32 * + col1 + - 73 FROM tab0 AS cor0 WHERE NULL NOT IN ( 16, col1 * + col2, + + 54 * + - ( + 22 ) - + - 51 )
----

query I rowsort
SELECT DISTINCT - + 63 * + col0 + col2 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) NOT BETWEEN 7 AND - - col0
----
-2875
-3992
-4667

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

query I rowsort
SELECT ALL - + 21 + + col0 AS col2 FROM tab0 AS cor0
----
-6
66
76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 WHERE 71 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5693
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 WHERE 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT MIN( col0 ) - + - 94 + - 11 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-5694
SELECT MIN ( col0 ) - + - 94 + - 11 FROM tab0
----
98

query III rowsort
SELECT * FROM tab1 WHERE 79 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - COUNT ( - 83 ) AS col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 27 col1 FROM tab1
----
24
58
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ( - COUNT( - col0 ) ) + + - COUNT( + - 58 ) + COUNT( * ) col1 FROM tab1
----
-3

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL > + ( - 53 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT - - MIN( ALL 67 ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT - - MIN ( ALL 67 ) FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT COUNT( * ) * - - 91 AS col2 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT COUNT ( * ) * - - 91 AS col2 FROM tab1
----
273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL + 1 * + SUM( ALL + col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL + 1 * + SUM ( ALL + col2 ) AS col2 FROM tab0 cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT DISTINCT + - col2 DIV ( + + 19 ) + + 31 - - col2 FROM tab2 AS cor0
----
53
69
86

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + - col2 / ( + + 19 ) + + 31 - - col2 FROM tab2 AS cor0
----
53
69
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 31 col0 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT ALL - col0 / - + 94 FROM tab0 AS cor0 WHERE col0 <= - + 63
----

query I rowsort
SELECT 99 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
99
99
99

query II rowsort
SELECT + col0, + ( + col1 ) FROM tab2
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 56 ) * - col1 * - ( - - col1 ) col0 FROM tab2
----
-145656
-251384
-332024

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( col0 ) * + col2 NOT BETWEEN ( - 20 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL COUNT( * ) * - COUNT( ALL + 45 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL COUNT ( * ) * - COUNT ( ALL + 45 ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT ( - 70 ) FROM tab0
----
-70

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL >= ( NULL )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT DISTINCT MIN( col0 ) DIV ( - ( COUNT( * ) ) ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT MIN ( col0 ) / ( - ( COUNT ( * ) ) ) FROM tab0 AS cor0
----
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT DISTINCT + col2 DIV ( + + ( - + ( + + col2 ) ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT + col2 / ( + + ( - + ( + + col2 ) ) ) AS col0 FROM tab0 AS cor0
----
-1

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND + 86 + + 18
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - SUM( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
195

skipif mysql # not compatible
query I rowsort label-5725
SELECT - SUM ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
195

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

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

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

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= 2 * + col2 * - col0 + + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5728
SELECT 47 * 27 DIV + - col2 + + col2 AS col1 FROM tab1
----
38
50
83

skipif mysql # not compatible
query I rowsort label-5728
SELECT 47 * 27 / + - col2 + + col2 AS col1 FROM tab1
----
38
50
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5729
SELECT ALL CAST( NULL AS SIGNED ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5729
SELECT ALL CAST ( NULL AS INTEGER ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT MIN( + - col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5730
SELECT MIN ( + - col2 ) col2 FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 52 < NULL
----

query I rowsort
SELECT + + 60 FROM tab1 WHERE - - 11 <> 94 * 14
----
60
60
60

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

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

query II rowsort
SELECT DISTINCT 26, col0 FROM tab0
----
26
15
26
87
26
97

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

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

query I rowsort
SELECT DISTINCT ( + col1 ) + + - col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 - - 50 * + 46 FROM tab1
----
2351
2385
2391

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

query I rowsort
SELECT ALL col0 - + - 16 AS col1 FROM tab2 AS cor0
----
62
80
91

query I rowsort
SELECT + col2 - 44 * + col2 * + 85 * + - col1 AS col2 FROM tab1 AS cor0
----
1103359
11953108
5026656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE - 68 * col2 / CAST( - - col1 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE - 68 * col2 / CAST ( - - col1 AS INTEGER ) IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, 67 col2 FROM tab0 AS cor0
----
-15
67
-87
67
-97
67

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 35 NOT BETWEEN NULL AND - col0 + + 65 + + - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT - COUNT( * ) * SUM( + 77 ) + + MIN( DISTINCT col1 ) * + + 40 AS col0 FROM tab2 AS cor0
----
1347

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT - COUNT ( * ) * SUM ( + 77 ) + + MIN ( DISTINCT col1 ) * + + 40 AS col0 FROM tab2 AS cor0
----
1347

query I rowsort
SELECT 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL COUNT( * ) * COUNT( + 30 ) * - COUNT( * ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL COUNT ( * ) * COUNT ( + 30 ) * - COUNT ( * ) AS col2 FROM tab0
----
-27

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT + + col1 * - col1 - - col1 * - + col1 <> + col1
----

query I rowsort
SELECT + - col1 * + - 20 AS col0 FROM tab1 AS cor0
----
100
280
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5749
SELECT ALL + 53 + - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----
53

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL + 53 + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5750
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5750
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT + 28 DIV - 41 - col0 - - 87 AS col1 FROM tab0 AS cor0
----
-10
0
72

skipif mysql # not compatible
query I rowsort label-5751
SELECT + 28 / - 41 - col0 - - 87 AS col1 FROM tab0 AS cor0
----
-10
0
72

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN col1 AND + - col2 - + + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = + - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL MIN( ALL - + ( col0 ) ) * + ( MAX( DISTINCT - 90 ) ) FROM tab0 AS cor0
----
8730

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL MIN ( ALL - + ( col0 ) ) * + ( MAX ( DISTINCT - 90 ) ) FROM tab0 AS cor0
----
8730

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

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

query I rowsort
SELECT ALL col0 + + - 62 + - - col1 * + 58 FROM tab2
----
2942
3899
4468

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

query I rowsort
SELECT ALL - col1 * - col1 + - + ( 39 ) AS col2 FROM tab1
----
-14
157
2170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT + CAST( - col2 AS SIGNED ) * - col2 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-5759
SELECT + CAST ( - col2 AS INTEGER ) * - col2 FROM tab1
----
3481
4624
9216

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - 65 col1, - ( - + col0 ) AS col0 FROM tab1
----
3835
85
4420
91
6240
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE 51 IS NULL
----

query II rowsort
SELECT DISTINCT + 56, col1 FROM tab2 AS cor0
----
56
51
56
67
56
77

query I rowsort
SELECT DISTINCT - 16 + + col1 + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
1093
2621
4401

query I rowsort
SELECT ALL - + col0 * + 41 FROM tab1 AS cor0
----
-2091
-3485
-3731

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 82 + 18 / + 51 * + 30 * + col0 + + - 5 col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL - - MAX( - - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - - MAX ( - - col1 ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 8 / - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT col1 + + 49 AS col1 FROM tab2
----
100
116
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5774
SELECT ALL CAST( NULL AS DECIMAL ) + 25 + - - col2 / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL CAST ( NULL AS REAL ) + 25 + - - col2 / col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + 17 * 45 FROM tab1
----
-45135
-52020
-73440

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT + + COUNT ( * ) col0 FROM tab0 WHERE NOT + col0 + + - ( + col2 ) IS NOT NULL
----
0

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

query I rowsort
SELECT 8 * - 64 AS col0 FROM tab0
----
-512
-512
-512

query I rowsort
SELECT ALL - - 46 AS col1 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + + ( + col0 ) * - col2 + - 62 FROM tab0 AS cor0
----
-767
-932
-9665

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT 75 * + COUNT( * ) - + - 52 FROM tab1 WHERE NOT NULL IS NOT NULL
----
277

skipif mysql # not compatible
query I rowsort label-5781
SELECT 75 * + COUNT ( * ) - + - 52 FROM tab1 WHERE NOT NULL IS NOT NULL
----
277

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5782
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-5782
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS REAL ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT col0 AS col2, col0 * - col0 + - 11 * col2 * col2 AS col2 FROM tab1 AS cor0
----
51
-103977
85
-45516
91
-59145

query II rowsort
SELECT - + col1 AS col1, + col2 / - col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT DISTINCT + 65 * + COUNT( * ), MAX( - - col0 ) + ( - - COUNT( * ) ) AS col2 FROM tab1
----
195
94

skipif mysql # not compatible
query II rowsort label-5786
SELECT DISTINCT + 65 * + COUNT ( * ), MAX ( - - col0 ) + ( - - COUNT ( * ) ) AS col2 FROM tab1
----
195
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 25 col2 FROM tab1
----
-22
11
20

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

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT col1 * - + 97 + 76 AS col2 FROM tab2
----
-4871
-6423
-7393

query II rowsort
SELECT 99 + 51 AS col0, + 75 FROM tab0
----
150
75
150
75
150
75

query I rowsort
SELECT DISTINCT - col1 * + + 8 FROM tab2 AS cor0
----
-408
-536
-616

query II rowsort
SELECT ALL - - col2 * col2, - 3 AS col2 FROM tab2 AS cor0
----
1600
-3
3364
-3
529
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 9 + 61 AS col0 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT ALL - 96 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + 88
----

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

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

query II rowsort
SELECT - 33 AS col1, - 71 AS col1 FROM tab1 AS cor0
----
-33
-71
-33
-71
-33
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT DISTINCT - MIN( ALL + ( - ( + col2 ) ) ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - MIN ( ALL + ( - ( + col2 ) ) ) FROM tab0 cor0
----
99

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

query I rowsort
SELECT 44 * + - col0 * col0 FROM tab0 WHERE NOT ( NOT NULL <= - 7 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5803
SELECT - col0 AS col1, 59 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-5803
SELECT - col0 AS col1, 59 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5804
SELECT DISTINCT + - col2 AS col0, CAST( - 96 AS SIGNED ) DIV ( + col2 ) FROM tab0 AS cor0
----
-10
-9
-47
-2
-99
0

skipif mysql # not compatible
query II rowsort label-5804
SELECT DISTINCT + - col2 AS col0, CAST ( - 96 AS INTEGER ) / ( + col2 ) FROM tab0 AS cor0
----
-10
-9
-47
-2
-99
0

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5807
SELECT - SUM( - col2 ) DIV - + MAX( col2 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5807
SELECT - SUM ( - col2 ) / - + MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5809
SELECT - + col0 DIV 61 + + - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-5809
SELECT - + col0 / 61 + + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - 80 FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----

query II rowsort
SELECT ALL + + col0 + - - 71 AS col1, 24 AS col2 FROM tab2 cor0
----
117
24
135
24
146
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT ALL 27 DIV - 57 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL 27 / - 57 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 * - 4 * + 73 FROM tab2
----
-13432
-18688
-21900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT ALL + CAST( + + col0 AS SIGNED ) + - - col1 AS col0 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL + CAST ( + + col0 AS INTEGER ) + - - col1 AS col0 FROM tab0
----
108
96
98

query I rowsort
SELECT + ( - 59 ) AS col1 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT + - col0 AS col0 FROM tab2 WHERE col2 < NULL
----

query I rowsort
SELECT - 42 + - 52 AS col1 FROM tab0 AS cor0
----
-94
-94
-94

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

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

query I rowsort
SELECT ALL 94 + + col0 + - col2 + - 4 FROM tab0 cor0
----
167
58
88

query I rowsort
SELECT + + col0 FROM tab1 cor0 WHERE + 19 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE + 49 BETWEEN - + col0 / + col1 + - + col0 AND 86 + + + col0
----
10
47
99

query I rowsort
SELECT ALL 42 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT - ( + + SUM( ALL 37 ) ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - ( + + SUM ( ALL 37 ) ) FROM tab2
----
-111

query I rowsort
SELECT DISTINCT - ( + + 14 ) + 94 FROM tab1 WHERE + col2 IS NOT NULL
----
80

query I rowsort
SELECT DISTINCT col1 - + col0 * 33 AS col0 FROM tab2 AS cor0
----
-1467
-2035
-2408

query I rowsort
SELECT + 4 - - + 1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - 92 * - 71 * - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT COUNT( DISTINCT 17 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5828
SELECT COUNT ( DISTINCT 17 ) FROM tab1
----
1

query I rowsort
SELECT ALL col0 / - col1 AS col0 FROM tab0 WHERE NOT col1 <> - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT col2 DIV col0 * col1 * + - 82 FROM tab1
----
-1148
0
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT col2 / col0 * col1 * + - 82 FROM tab1
----
-1148
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5831
SELECT CAST( NULL AS SIGNED ) / ( + MIN( DISTINCT ( - col2 ) ) ) AS col0, + 7 FROM tab0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-5831
SELECT CAST ( NULL AS INTEGER ) / ( + MIN ( DISTINCT ( - col2 ) ) ) AS col0, + 7 FROM tab0
----
NULL
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 60 + + - 67 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - - col1 AS col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT DISTINCT + ( - 57 ) * + + 99 AS col0, + 65 * - COUNT( * ) FROM tab2 AS cor0
----
-5643
-195

skipif mysql # not compatible
query II rowsort label-5834
SELECT DISTINCT + ( - 57 ) * + + 99 AS col0, + 65 * - COUNT ( * ) FROM tab2 AS cor0
----
-5643
-195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT + COUNT( - 61 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5836
SELECT + COUNT ( - 61 ) FROM tab0
----
3

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

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

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

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

query II rowsort
SELECT - col2 * col2 + - col1 + col2, ( - ( col0 ) ) AS col0 FROM tab1 cor0
----
-3427
-85
-4603
-91
-9134
-51

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

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

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

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

query I rowsort
SELECT ALL - + 4 FROM tab0 WHERE + col2 >= 11
----
-4
-4

query I rowsort
SELECT 40 + - col2 FROM tab0
----
-59
-7
30

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

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

query II rowsort
SELECT col1 + - + col1, - col1 - - col1 AS col1 FROM tab1
----
0
0
0
0
0
0

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

query II rowsort
SELECT + 29 AS col0, 73 FROM tab1, tab2 AS cor0
----
18 values hashing to d260f26eff9e4b2849e6d95d96ae05f3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5850
SELECT + - ( COUNT( * ) ) DIV + 21 + + 95 * - 60 AS col2 FROM tab1 AS cor0
----
-5700

skipif mysql # not compatible
query I rowsort label-5850
SELECT + - ( COUNT ( * ) ) / + 21 + + 95 * - 60 AS col2 FROM tab1 AS cor0
----
-5700

query I rowsort
SELECT ALL 25 + - + 45 AS col0 FROM tab1
----
-20
-20
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - - COUNT( * ) + - 63 * + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-558

skipif mysql # not compatible
query I rowsort label-5853
SELECT - - COUNT ( * ) + - 63 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-558

query II rowsort
SELECT ALL + col1 AS col0, + 9 - - 38 * - + col0 + - col2 AS col2 FROM tab0
----
1
-3776
21
-3307
81
-608

onlyif mysql # aggregate syntax: 
query II rowsort label-5855
SELECT + ( COUNT( * ) ) + 85 col0, - COUNT( * ) AS col2 FROM tab0
----
88
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5855
SELECT + ( COUNT ( * ) ) + 85 col0, - COUNT ( * ) AS col2 FROM tab0
----
88
-3

query I rowsort
SELECT ALL - col1 * + + 24 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1175
-125
-350

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

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

query I rowsort
SELECT ALL col1 + - col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 BETWEEN NULL AND NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5861
SELECT - + SUM ( - col1 ) col1 FROM tab0 AS cor0
----
103

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, - col1 col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5864
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 42 AS col1, col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5864
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 42 AS col1, col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL + 87 * + + ( - + 95 ) FROM tab2
----
-8265
-8265
-8265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT DISTINCT - CAST( SUM( - - col1 ) AS SIGNED ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT - CAST ( SUM ( - - col1 ) AS INTEGER ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT - col1 * + 84 * + 32 FROM tab0
----
-217728
-2688
-56448

query I rowsort
SELECT ALL + - 89 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----

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

query I rowsort
SELECT 46 FROM tab1 AS cor0 WHERE NOT 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL - - MIN( DISTINCT - col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL - - MIN ( DISTINCT - col2 ) AS col2 FROM tab1 cor0
----
-96

query I rowsort
SELECT + col0 * + 44 + col2 FROM tab1 AS cor0
----
2340
3799
4072

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

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

skipif mysql # not compatible
query I rowsort label-5874
SELECT COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) - 58 FROM tab1 AS cor0
----
-67

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5880
SELECT - COUNT( * ) * - ( + COUNT( * ) ) AS col1 FROM tab1 WHERE col1 + - col2 + + - col1 * ( - CAST( + 0 AS DECIMAL ) ) * + + col1 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT - COUNT ( * ) * - ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE col1 + - col2 + + - col1 * ( - CAST ( + 0 AS REAL ) ) * + + col1 >= col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5881
SELECT ALL SUM( - col2 ) DIV - + 82 + - MAX( DISTINCT - - 20 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL SUM ( - col2 ) / - + 82 + - MAX ( DISTINCT - - 20 ) FROM tab0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT col2 DIV - - col0 - - col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5882
SELECT col2 / - - col0 - - col1 AS col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5883
SELECT 9 - 89 / + col1 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT 9 - 89 / + col1 / - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 - - col2 + 32 col0 FROM tab2
----
117
82
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5885
SELECT * FROM tab1 WHERE + 85 * CAST( - 94 AS SIGNED ) + CAST( + col2 AS DECIMAL ) * 40 IS NULL AND ( NULL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5885
SELECT * FROM tab1 WHERE + 85 * CAST ( - 94 AS INTEGER ) + CAST ( + col2 AS REAL ) * 40 IS NULL AND ( NULL ) <= NULL
----

query II rowsort
SELECT 17 - + col1 AS col0, + col1 * + 88 FROM tab2
----
-34
4488
-50
5896
-60
6776

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT DISTINCT - ( - + 17 ) DIV - 62 + + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT - ( - + 17 ) / - 62 + + col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT COUNT( + - col2 ) + 52 DIV + - 86 AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5888
SELECT COUNT ( + - col2 ) + 52 / + - 86 AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL + 8 + COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL + 8 + COUNT ( * ) FROM tab2
----
11

query I rowsort
SELECT ALL col1 + + + col0 + col1 FROM tab1
----
185
79
95

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

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

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

query I rowsort
SELECT ALL - 98 * + + col1 * + - 81 FROM tab0
----
166698
642978
7938

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 5 + - + col1 + 19 BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 30 - 26 IN ( + col1 / + col0, - col0 + col0, - + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL + + CAST ( NULL AS REAL ) / + col2 - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT ALL CAST( + - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL CAST ( + - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 53 * + + 46 AS col0 FROM tab1
----
-2438
-2438
-2438

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 66 <= NULL
----

query II rowsort
SELECT DISTINCT col1 * - ( + 90 ), + col2 AS col2 FROM tab1
----
-1260
96
-4230
68
-450
59

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

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

query I rowsort
SELECT DISTINCT - - col0 + + 31 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
116
122
82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5906
SELECT - col2 AS col0, + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif mysql # not compatible
query II rowsort label-5906
SELECT - col2 AS col0, + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL 73 * col0 AS col1 FROM tab1
----
3723
6205
6643

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN - 55 AND 27
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT COUNT( * ) * + 85 FROM tab2 WHERE NOT NULL BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5909
SELECT COUNT ( * ) * + 85 FROM tab2 WHERE NOT NULL BETWEEN + col1 AND NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT + MAX( ALL col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5911
SELECT + MAX ( ALL col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT DISTINCT - MAX( DISTINCT - col0 ) * - 17 FROM tab2
----
-782

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT - MAX ( DISTINCT - col0 ) * - 17 FROM tab2
----
-782

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

query I rowsort
SELECT ALL ( + 8 ) * col0 FROM tab1
----
408
680
728

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE ( NULL ) > ( NULL )
----

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

query I rowsort
SELECT + 77 * + 9 FROM tab1
----
693
693
693

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT ( + col1 ) IN ( 48 )
----
14
47
5

query I rowsort
SELECT 3 * col1 AS col2 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT - 66 * MIN( - col2 * col2 ) FROM tab0
----
646866

skipif mysql # not compatible
query I rowsort label-5920
SELECT - 66 * MIN ( - col2 * col2 ) FROM tab0
----
646866

query I rowsort
SELECT - col1 * + 8 AS col2 FROM tab2
----
-408
-536
-616

query I rowsort
SELECT DISTINCT col1 * - col0 + col1 AS col1 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT 33 * + col1 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT 71 * col0 FROM tab0
----
1065
6177
6887

query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) + col1 AS col1 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT MIN( DISTINCT 91 ) * 50 AS col0 FROM tab2
----
4550

skipif mysql # not compatible
query I rowsort label-5926
SELECT MIN ( DISTINCT 91 ) * 50 AS col0 FROM tab2
----
4550

query I rowsort
SELECT DISTINCT + 96 * 92 AS col2 FROM tab1
----
8832

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT + COUNT( * ) * - 88 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT + COUNT ( * ) * - 88 FROM tab0
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5931
SELECT DISTINCT - 33 DIV 26 + COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - 33 / 26 + COUNT ( * ) FROM tab1 AS cor0
----
2

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

query I rowsort
SELECT + 98 - + col1 AS col1 FROM tab2 AS cor0
----
21
31
47

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

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT NULL = ( - ( - col1 ) / 28 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5936
SELECT + + COUNT( * ) / 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-5936
SELECT + + COUNT ( * ) / CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + col1 col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND 30
----
4845
6365
7315

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 50 * - col2 AS col1 FROM tab2
----
-1150
-2000
-2900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL + COUNT( DISTINCT - col0 ) col0 FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN ( 73 ) * + col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5945
SELECT ALL + COUNT ( DISTINCT - col0 ) col0 FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN ( 73 ) * + col0 AND NULL
----
0

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

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

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

query I rowsort
SELECT DISTINCT + 65 + + + col2 AS col0 FROM tab2
----
105
123
88

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

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

query I rowsort
SELECT + - 25 * - + col2 - + 97 AS col1 FROM tab2 AS cor0
----
1353
478
903

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

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

query I rowsort
SELECT ALL + 10 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL - col0 * + col1 - 83 * col0 AS col0 FROM tab2 AS cor0
----
-10240
-11250
-6164

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 51 + + col0 / - 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT 96 + 41 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 63adbd6174340773af6070e9f82b685e

query I rowsort
SELECT ALL - + 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

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

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

query I rowsort
SELECT DISTINCT + 59 * - 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-3953

query I rowsort
SELECT DISTINCT col1 * + + 96 FROM tab0
----
2016
7776
96

query I rowsort
SELECT DISTINCT - col0 + + ( + 83 ) FROM tab0 AS cor0
----
-14
-4
68

query I rowsort
SELECT ALL col2 * + 51 FROM tab1 AS cor0
----
3009
3468
4896

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5967
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 12 * - 63 + col0 + 89 FROM tab0 AS cor0
----
-570
-580
-652

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5969
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) BETWEEN 19 AND CAST( 84 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5969
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) BETWEEN 19 AND CAST ( 84 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col2 * + 60 * col1 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col2 ) - + 4 + + col2 col2 FROM tab0 cor0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5972
SELECT DISTINCT + MIN( + + 73 ), - COUNT( * ) col2 FROM tab0
----
73
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5972
SELECT DISTINCT + MIN ( + + 73 ), - COUNT ( * ) col2 FROM tab0
----
73
-3

query I rowsort
SELECT DISTINCT - ( col0 ) AS col2 FROM tab1 WHERE col0 <> NULL AND NOT NULL IN ( col2 * - col0 )
----

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

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

skipif mysql # not compatible
query I rowsort label-5975
SELECT col1 / col2 + - col2 AS col2 FROM tab0
----
-46
-8
-99

query I rowsort
SELECT 2 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 19 + + - 54 AS col1 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT DISTINCT ( - - 11 ) - - col2 * + 32 AS col2 FROM tab0
----
1515
3179
331

query I rowsort
SELECT ALL - 49 - + 87 * - + col2 * + 86 * ( 60 ) FROM tab0
----
21099191
44443031
4489151

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT - MIN( DISTINCT 78 ) + - 54 FROM tab0 cor0
----
-132

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT - MIN ( DISTINCT 78 ) + - 54 FROM tab0 cor0
----
-132

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) BETWEEN ( NULL ) AND - 9 * - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5982
SELECT ALL + - 5 DIV COUNT( 56 ) DIV - 29 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + - 5 / COUNT ( 56 ) / - 29 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > ( 45 * - + 22 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT ( + CAST( 89 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT ( + CAST ( 89 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + 8 * col0 FROM tab2
----
368
512
600

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5991
SELECT - COUNT ( * ) col1, - MIN ( ALL - col0 ) + + COUNT ( + - col1 ) AS col1 FROM tab0 cor0
----
-3
100

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 / - col1 <= ( + col0 * - col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT 47 * - COUNT( - col2 ) FROM tab0 AS cor0 WHERE NOT col0 + - 22 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5993
SELECT 47 * - COUNT ( - col2 ) FROM tab0 AS cor0 WHERE NOT col0 + - 22 BETWEEN NULL AND NULL
----
0

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

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - col1 * - col2 / - - col2 )
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL - SUM( ALL 73 ) AS col1 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - SUM ( ALL 73 ) AS col1 FROM tab0
----
-219

query I rowsort
SELECT ALL + col1 - - col2 FROM tab0 WHERE NOT ( NOT ( + col2 ) <> col1 )
----
100
128
31

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

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

query I rowsort
SELECT DISTINCT col1 + - col1 * + col2 + - - col1 AS col1 FROM tab0
----
-168
-3645
-97

query I rowsort
SELECT col0 * - 60 + - ( - + ( 77 ) ) * col2 AS col1 FROM tab2 WHERE - 98 IS NULL
----

query II rowsort
SELECT ALL col1 + - col1 AS col1, - col0 - + col1 FROM tab2
----
0
-141
0
-142
0
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 * - + 67 col1 FROM tab2 AS cor0
----
-3685
-3685
-3685

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE col1 - - - 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 - - - 32 IS NULL
----
0

query I rowsort
SELECT + 85 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT DISTINCT - + col2 DIV + 32 + - - col0 AS col2 FROM tab1 AS cor0
----
48
84
89

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT - + col2 / + 32 + - - col0 AS col2 FROM tab1 AS cor0
----
48
84
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT + - SUM( ALL 90 ) + - 25 AS col1 FROM tab2 cor0
----
-295

skipif mysql # not compatible
query I rowsort label-6009
SELECT + - SUM ( ALL 90 ) + - 25 AS col1 FROM tab2 cor0
----
-295

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6011
SELECT COUNT( * ) DIV + 8 * - 44 AS col2 FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT COUNT ( * ) / + 8 * - 44 AS col2 FROM tab1 WHERE NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 23 IS NULL OR NULL IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, col1 * - col0 FROM tab0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT - ( - col2 ) FROM tab0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT DISTINCT - 33 + - - COUNT( * ) col2 FROM tab0 AS cor0 WHERE + col2 / - col0 IS NOT NULL
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6015
SELECT DISTINCT - 33 + - - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE + col2 / - col0 IS NOT NULL
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col2 ) col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( ( + - 15 ) ) + 58 + + - 46 ) < ( - col2 + + col0 + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + - 3 AS col2 FROM tab0 cor0
----
-3
-3
-3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT ALL - CAST( NULL AS SIGNED ) * col0 - - col0 / CAST( - col0 AS SIGNED ) FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) AND + 97 * + ( ( + - col2 ) ) / - ( col1 )
----

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 - - col0 / CAST ( - col0 AS INTEGER ) FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) AND + 97 * + ( ( + - col2 ) ) / - ( col1 )
----

query I rowsort
SELECT - 25 * - 15 FROM tab2
----
375
375
375

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT DISTINCT col1 DIV - ( + 12 ) AS col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT col1 / - ( + 12 ) AS col0 FROM tab0
----
-1
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + - col2 * - 69 col2 FROM tab2 AS cor0
----
212520
268134
80937

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT + COUNT( ALL - 59 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT + COUNT ( ALL - 59 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6027
SELECT ALL COUNT( + + col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL COUNT ( + + col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS REAL ) ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT ALL col0 DIV + + col1 col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6028
SELECT ALL col0 / + + col1 col1 FROM tab0 AS cor0
----
0
4
97

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

query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab1 WHERE + col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL - COUNT( * ) + + 52 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - COUNT ( * ) + + 52 FROM tab0
----
49

query I rowsort
SELECT DISTINCT - col1 * + ( - - col0 ) * - - 49 * - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
104125
489804
9849931

query I rowsort
SELECT DISTINCT - col1 * + 7 + + ( - 92 ) AS col1 FROM tab1
----
-127
-190
-421

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6035
SELECT * FROM tab2 WHERE - col2 * + col0 * - col1 * + + 96 / + CAST( - 89 AS SIGNED ) - 98 * - col0 + + 70 >= + col2 * col1 + col0 * col0
----

skipif mysql # not compatible
query III rowsort label-6035
SELECT * FROM tab2 WHERE - col2 * + col0 * - col1 * + + 96 / + CAST ( - 89 AS INTEGER ) - 98 * - col0 + + 70 >= + col2 * col1 + col0 * col0
----

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col0 FROM tab1 WHERE NOT ( - 36 * - ( 85 ) ) IN ( + 5 )
----
196
2209
25

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

query I rowsort
SELECT - - ( + col0 ) * + ( + 82 ) FROM tab1 AS cor0
----
4182
6970
7462

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6039
SELECT + COUNT ( * ) AS col1, ( - - 13 ) col0 FROM tab1
----
3
13

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 5 IS NOT NULL
----

query II rowsort
SELECT + col1, - 83 + + col2 * + col2 FROM tab2 AS cor0
----
51
446
67
3281
77
1517

query I rowsort
SELECT DISTINCT col2 - - - 78 FROM tab2 cor0
----
-20
-38
-55

query I rowsort
SELECT col0 * ( + 14 ) AS col0 FROM tab1
----
1190
1274
714

query II rowsort
SELECT 94 * + + 47 AS col1, col0 FROM tab0
----
4418
15
4418
87
4418
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT ALL col0 DIV 32 * + ( 20 ) AS col1 FROM tab0
----
0
40
60

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL col0 / 32 * + ( 20 ) AS col1 FROM tab0
----
0
40
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( NOT NULL >= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL >= NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6048
SELECT DISTINCT + MIN( - 9 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + MIN ( - 9 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL - col0 DIV - 52 + + col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL - col0 / - 52 + + col2 FROM tab1 AS cor0
----
60
69
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6052
SELECT ALL 61, SUM( ALL col2 ) AS col0 FROM tab1
----
61
223

skipif mysql # not compatible
query II rowsort label-6052
SELECT ALL 61, SUM ( ALL col2 ) AS col0 FROM tab1
----
61
223

query I rowsort
SELECT DISTINCT 34 * - + col1 * + col0 FROM tab0
----
-3298
-41310
-62118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * - col2 col0 FROM tab1
----
2891
3332
4704

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col2 FROM tab0 cor0
----
1
21
81

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

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

query I rowsort
SELECT DISTINCT - + 32 AS col2 FROM tab1 AS cor0
----
-32

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6062
SELECT - MAX ( + col0 ) col1 FROM tab2 AS cor0
----
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT COUNT( * ) + - MIN( ALL 27 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6064
SELECT COUNT ( * ) + - MIN ( ALL 27 ) FROM tab0 AS cor0
----
-24

query I rowsort
SELECT 23 + - col2 + col1 FROM tab1
----
-31
-59
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6066
SELECT DISTINCT - col0 + - - col0 DIV + CAST( + - col2 AS SIGNED ) AS col2 FROM tab1
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT - col0 + - - col0 / + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1
----
-51
-86
-92

query I rowsort
SELECT DISTINCT - ( - col0 ) + + 93 AS col2 FROM tab0
----
108
180
190

query I rowsort
SELECT col1 FROM tab2 WHERE col0 * - - col0 BETWEEN col2 AND 32
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT DISTINCT CAST( SUM( - col0 ) AS SIGNED ) + + ( - 53 ) FROM tab2
----
-238

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT CAST ( SUM ( - col0 ) AS INTEGER ) + + ( - 53 ) FROM tab2
----
-238

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN - col2 AND NULL
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + col1 - - col0 * + - col1 * + col2 AS col2 FROM tab2 WHERE - 62 = 73 - + col2
----

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * + 27 IN ( - 61 + + col2 )
----

query II rowsort
SELECT + - 72 - col1 AS col2, col2 * - col1 AS col2 FROM tab0 AS cor0
----
-153
-3807
-73
-99
-93
-210

query I rowsort
SELECT + + col0 - col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

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

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

query I rowsort
SELECT - + ( 24 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT DISTINCT + CAST( - col2 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT - 22 + 66 - col0 DIV col1 FROM tab0 AS cor0
----
-53
40
44

skipif mysql # not compatible
query I rowsort label-6078
SELECT - 22 + 66 - col0 / col1 FROM tab0 AS cor0
----
-53
40
44

query I rowsort
SELECT ALL 90 - + col0 AS col0 FROM tab1 AS cor0
----
-1
39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - - SUM( DISTINCT - + 12 ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6080
SELECT - - SUM ( DISTINCT - + 12 ) FROM tab1 cor0
----
-12

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

query I rowsort
SELECT - ( + ( + ( + - col0 ) ) ) FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * + - 94 col1 FROM tab1 AS cor0
----
-5546
-6392
-9024

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

query I rowsort
SELECT ALL - col0 * - 61 * + 51 FROM tab0
----
270657
301767
46665

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 BETWEEN NULL AND + col1
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 28 ) * - + col1 col2 FROM tab1 AS cor0
----
-1316
-140
-392

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT - - 67 DIV - + 57 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6091
SELECT - - 67 / - + 57 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 27 * + - 5 * + col1 AS col1 FROM tab1 cor0
----
-1890
-6345
-675

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

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

query I rowsort
SELECT + 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

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

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL COUNT ( ALL + + col2 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT + col0 * - - col1 + 88 * - col2 + - 26 / col1 * - col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT + col0 * - - col1 + 88 * - col2 + - 26 / col1 * - col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * - + 62 + + 59 col1 FROM tab1 AS cor0
----
-747
-747
-747

query I rowsort
SELECT col1 * 45 * ( - 94 ) AS col2 FROM tab0 AS cor0
----
-342630
-4230
-88830

query II rowsort
SELECT - - ( + 24 ), col0 FROM tab1 AS cor0
----
24
51
24
85
24
91

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

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

query II rowsort
SELECT DISTINCT + - col1 * col2 AS col2, + col2 * 72 AS col0 FROM tab2 AS cor0
----
-1173
1656
-3080
2880
-3886
4176

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6106
SELECT DISTINCT + 87 col1, + CAST( + 45 AS SIGNED ) FROM tab0
----
87
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6106
SELECT DISTINCT + 87 col1, + CAST ( + 45 AS INTEGER ) FROM tab0
----
87
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT MIN( 7 ) col2 FROM tab2
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6107
SELECT MIN ( 7 ) col2 FROM tab2
----
7

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT - 99 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + col2 + + + col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT + col2 + - + 14 - + col2 + + col2 * + + col2 AS col0 FROM tab2
----
1586
3350
515

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6112
SELECT - 46, - CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE 27 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6112
SELECT - 46, - CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE 27 IS NULL
----

query I rowsort
SELECT ALL - - col0 - 47 * + - col1 AS col2 FROM tab2 AS cor0
----
2443
3224
3683

query I rowsort
SELECT ALL col2 - - 29 AS col0 FROM tab2 AS cor0
----
52
69
87

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

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT - COUNT ( * ) - - 61 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + - 64 * - col0 * + 16, 20 AS col0 FROM tab0 AS cor0
----
15360
20
89088
20
99328
20

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 85 col0, - col2 + + - col1 AS col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT DISTINCT 12 FROM tab0 cor0 WHERE - ( - 71 ) * CAST( col2 AS SIGNED ) <> - col2
----
12

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT 12 FROM tab0 cor0 WHERE - ( - 71 ) * CAST ( col2 AS INTEGER ) <> - col2
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) > + 68
----
85
5
59
91
47
68

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

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

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

skipif mysql # not compatible
query I rowsort label-6122
SELECT - 71 * ( + COUNT ( * ) ) / 91 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 * - 90 FROM tab1
----
-5310
-6120
-8640

query I rowsort
SELECT - + 76 FROM tab2 WHERE - 47 IS NULL OR NOT - col0 + - - col0 < 30
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, ( 77 ) col0 FROM tab2 AS cor0
----
46
77
64
77
75
77

query I rowsort
SELECT ALL - ( 67 ) AS col1 FROM tab1 cor0
----
-67
-67
-67

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

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

query II rowsort
SELECT DISTINCT col2 + col0 AS col2, + col2 AS col2 FROM tab0
----
196
99
62
47
97
10

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 AS col1, 43 col1, - col1 FROM tab0
----
9 values hashing to 27b8f82c00665575facc7d5d0ce49b83

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN 66 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - COUNT( * ) * - MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6134
SELECT - COUNT ( * ) * - MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
153

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

query I rowsort
SELECT DISTINCT col0 * + 7 * + - 28 FROM tab1 AS cor0
----
-16660
-17836
-9996

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT ALL col2 * + + 68 + - col2 DIV 35 * + col2 AS col0 FROM tab0 AS cor0
----
3149
6534
680

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL col2 * + + 68 + - col2 / 35 * + col2 AS col0 FROM tab0 AS cor0
----
3149
6534
680

query I rowsort
SELECT col2 + + col2 * 62 FROM tab1 AS cor0
----
3717
4284
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL + 46 * - 36 - COUNT( * ) FROM tab0 AS cor0
----
-1659

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + 46 * - 36 - COUNT ( * ) FROM tab0 AS cor0
----
-1659

query I rowsort
SELECT - + col1 + + col2 * - col2 FROM tab1 AS cor0
----
-3486
-4671
-9230

query I rowsort
SELECT ALL 27 * 74 AS col1 FROM tab1
----
1998
1998
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL - COUNT( * ) + - MIN( + col1 ) * - - 14 + 23 AS col2 FROM tab2
----
-694

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - COUNT ( * ) + - MIN ( + col1 ) * - - 14 + 23 AS col2 FROM tab2
----
-694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 41 ) + + col2 col2 FROM tab0
----
140
51
88

query I rowsort
SELECT DISTINCT 99 + col0 * col2 FROM tab2
----
1157
2659
4449

query I rowsort
SELECT DISTINCT 50 * + 35 * + col0 + - + col1 FROM tab1
----
148745
159203
89236

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - MAX( ALL - 67 ) - 48 col0 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6147
SELECT - MAX ( ALL - 67 ) - 48 col0 FROM tab2 AS cor0
----
19

query I rowsort
SELECT ALL col1 - + ( - 85 ) FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT 20 - + col2 AS col1 FROM tab2
----
-20
-3
-38

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

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

query I rowsort
SELECT ALL + - 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - - col1 * - + 71 FROM tab0 AS cor0
----
-1491
-5751
-71

query II rowsort
SELECT DISTINCT + - col0 AS col0, 87 FROM tab1 AS cor0
----
-51
87
-85
87
-91
87

query II rowsort
SELECT col2, + 62 FROM tab1 AS cor0
----
59
62
68
62
96
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6155
SELECT ALL - MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 11 * ( - 68 ) BETWEEN NULL AND - + 72
----

query II rowsort
SELECT + 46 AS col0, + 34 AS col2 FROM tab1 AS cor0
----
46
34
46
34
46
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT - SUM( ALL - 50 ) col1 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6158
SELECT DISTINCT - SUM ( ALL - 50 ) col1 FROM tab2 AS cor0
----
150

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

query I rowsort
SELECT + ( + ( - 47 ) ) * - 53 FROM tab1
----
2491
2491
2491

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( ( - col1 ) ) / - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 * - 27, col0 * + + 10 AS col0 FROM tab2 AS cor0
----
-1242
460
-1728
640
-2025
750

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL + 23 + + COUNT( * ) AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + 23 + + COUNT ( * ) AS col0 FROM tab0
----
26

query I rowsort
SELECT DISTINCT col0 + + col0 + + col2 * - col1 + + 14 + 75 AS col2 FROM tab1
----
-1153
-2925
-36

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT - - 18 * - + CAST( + - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1062
1224
1728

skipif mysql # not compatible
query I rowsort label-6168
SELECT - - 18 * - + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6169
SELECT col2 col1 FROM tab2 AS cor0 WHERE col2 + CAST( - - 14 AS SIGNED ) BETWEEN + + col1 + - - 23 AND + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6169
SELECT col2 col1 FROM tab2 AS cor0 WHERE col2 + CAST ( - - 14 AS INTEGER ) BETWEEN + + col1 + - - 23 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6170
SELECT DISTINCT - col0 DIV - CAST( + + 36 AS SIGNED ), col2 + + col1 AS col0 FROM tab1 cor0
----
1
110
2
115
2
64

skipif mysql # not compatible
query II rowsort label-6170
SELECT DISTINCT - col0 / - CAST ( + + 36 AS INTEGER ), col2 + + col1 AS col0 FROM tab1 cor0
----
1
110
2
115
2
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 65 BETWEEN - col2 / 26 AND NULL
----

query I rowsort
SELECT ALL 57 * 93 AS col0 FROM tab0
----
5301
5301
5301

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT DISTINCT - col1 DIV col0 * + col1 DIV - 98 + col0 * + col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT - col1 / col0 * + col1 / - 98 + col0 * + col1 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6174
SELECT DISTINCT CAST( NULL AS DECIMAL ) col1, + ( + + MAX( ALL - col2 ) ) AS col2 FROM tab2
----
NULL
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6174
SELECT DISTINCT CAST ( NULL AS REAL ) col1, + ( + + MAX ( ALL - col2 ) ) AS col2 FROM tab2
----
NULL
-23

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

query I rowsort
SELECT 92 + - 70 AS col1 FROM tab2
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT DISTINCT - 17 - + col2 DIV col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - 17 - + col2 / col1 FROM tab2
----
-17

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

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

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

skipif mysql # not compatible
query II rowsort label-6179
SELECT ALL + - COUNT ( * ), - 63 AS col0 FROM tab1 AS cor0
----
-3
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6180
SELECT - CAST( - 67 AS SIGNED ) * + ( ( + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6180
SELECT - CAST ( - 67 AS INTEGER ) * + ( ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
201

query I rowsort
SELECT + 15 FROM tab1 cor0 WHERE NOT + col0 + - 10 * + 30 IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT + 97 * + 51 AS col0 FROM tab2
----
4947
4947
4947

query II rowsort
SELECT DISTINCT col2, + 94 AS col0 FROM tab1
----
59
94
68
94
96
94

query I rowsort
SELECT ( + col1 ) * col0 + 65 FROM tab2
----
2411
4993
5090

query I rowsort
SELECT + 81 + + + col0 AS col0 FROM tab2
----
127
145
156

query I rowsort
SELECT DISTINCT - 23 + - 79 FROM tab2
----
-102

query I rowsort
SELECT 14 + + ( - col0 ) + + + 57 AS col1 FROM tab2
----
-4
25
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 47 ) + + + col1 col2 FROM tab1
----
-33
-42
0

query II rowsort
SELECT col1 * col1 AS col1, - 97 - + ( - col1 ) + + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT ALL + 38 AS col1, col1 * + col2 FROM tab1 AS cor0
----
38
1344
38
295
38
3196

query I rowsort
SELECT 10 * + col0 * - col1 * - 98 AS col0 FROM tab0 cor0
----
1190700
1790460
95060

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6197
SELECT - + ( CAST( - - 10 AS SIGNED ) ) + 25 col2, 29 AS col1 FROM tab1 cor0
----
15
29
15
29
15
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6197
SELECT - + ( CAST ( - - 10 AS INTEGER ) ) + 25 col2, 29 AS col1 FROM tab1 cor0
----
15
29
15
29
15
29

query I rowsort
SELECT - col0 + + ( - - 34 ) FROM tab2 AS cor0
----
-12
-30
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6199
SELECT col0 * 64 + + + col1 DIV - col0 + + col0 + + - col0 * - 42 FROM tab1 AS cor0
----
5457
9095
9737

skipif mysql # not compatible
query I rowsort label-6199
SELECT col0 * 64 + + + col1 / - col0 + + col0 + + - col0 * - 42 FROM tab1 AS cor0
----
5457
9095
9737

query I rowsort
SELECT - - 43 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
3762
4172
726

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

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

query II rowsort
SELECT ALL + 77 + - + col1 AS col1, col1 + - + col1 FROM tab1 AS cor0
----
30
0
63
0
72
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6204
SELECT ALL CAST( + MIN( DISTINCT - 4 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL CAST ( + MIN ( DISTINCT - 4 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( + + 8 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT CAST( + - col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6206
SELECT CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL 40 + - col0 AS col0 FROM tab1
----
-11
-45
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL + - 78 * + 98 * SUM( + 78 ) FROM tab0 WHERE ( NOT 53 IN ( - 67 - col0, col2 ) )
----
-1788696

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL + - 78 * + 98 * SUM ( + 78 ) FROM tab0 WHERE ( NOT 53 IN ( - 67 - col0, col2 ) )
----
-1788696

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

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col1 IS NULL
----
-10
-47
-99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT DISTINCT + CAST( - + 18 AS SIGNED ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT + CAST ( - + 18 AS INTEGER ) FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT + MAX( 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-6213
SELECT + MAX ( ALL + col2 ) col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL ( MAX( DISTINCT + + col1 ) ) * MAX( - 38 ) * + + 2 FROM tab2
----
-5852

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL ( MAX ( DISTINCT + + col1 ) ) * MAX ( - 38 ) * + + 2 FROM tab2
----
-5852

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT DISTINCT + CAST( + 19 AS SIGNED ) AS col2 FROM tab2 cor0
----
19

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT + CAST ( + 19 AS INTEGER ) AS col2 FROM tab2 cor0
----
19

query I rowsort
SELECT - 25 FROM tab1 AS cor0 WHERE NOT 70 IS NULL
----
-25
-25
-25

query I rowsort
SELECT DISTINCT - ( - 56 ) * col1 + + col1 * - + col1 FROM tab1 AS cor0
----
255
423
588

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + - col2 / - 43 AND NULL
----

query I rowsort
SELECT ALL col1 * col2 + - col0 + + col1 * + col0 + - col2 FROM tab1
----
1911
576
7314

query II rowsort
SELECT col2 * - col2 AS col0, + col1 AS col2 FROM tab1
----
-3481
5
-4624
47
-9216
14

query I rowsort
SELECT 93 * + col0 AS col0 FROM tab2
----
4278
5952
6975

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

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT NULL < - + 85
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL + col0 - + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + col0 - + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6231
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 32 NOT IN ( - 52, + CAST( - ( - col2 ) AS DECIMAL ) + - col2, + - ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 32 NOT IN ( - 52, + CAST ( - ( - col2 ) AS REAL ) + - col2, + - ( + col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - MAX( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0 WHERE col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT - MAX ( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0 WHERE col2 < NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL COUNT( * ) * + + 58 AS col2 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL COUNT ( * ) * + + 58 AS col2 FROM tab1
----
174

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

query I rowsort
SELECT + 96 * col1 FROM tab1
----
1344
4512
480

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT 92 DIV col0 * - col2 FROM tab0
----
-10
-282
0

skipif mysql # not compatible
query I rowsort label-6237
SELECT 92 / col0 * - col2 FROM tab0
----
-10
-282
0

query II rowsort
SELECT DISTINCT ( - col1 ), col2 + + - 80 AS col0 FROM tab1 cor0
----
-14
16
-47
-12
-5
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6239
SELECT COUNT( * ) DIV - - 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT COUNT ( * ) / - - 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT + col2 AS col1, col0 FROM tab0 cor0
----
10
87
47
15
99
97

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 96 * + - col2 / - + col1
----

query I rowsort
SELECT + 81 + - + ( - col0 ) + - col1 * col2 + - 46 AS col2 FROM tab0 AS cor0
----
-3757
-88
33

query I rowsort
SELECT ( + 79 ) * - col0 + + + col1 AS col0 FROM tab0 cor0
----
-1104
-6852
-7662

query I rowsort
SELECT + col2 + 24 FROM tab0
----
123
34
71

query I rowsort
SELECT ( - col1 ) + col0 FROM tab0
----
-66
66
96

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6250
SELECT ALL + + 13 col2, - COUNT ( * ) FROM tab1 AS cor0
----
13
-3

query I rowsort
SELECT + col2 * - 95 FROM tab1 AS cor0
----
-5605
-6460
-9120

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 IS NOT NULL AND NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - col2 * - - col0 + + + col1 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query II rowsort label-6254
SELECT 5 * + 79 + - COUNT( * ) AS col2, - 22 FROM tab0
----
392
-22

skipif mysql # not compatible
query II rowsort label-6254
SELECT 5 * + 79 + - COUNT ( * ) AS col2, - 22 FROM tab0
----
392
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6255
SELECT ALL col1 - + + col1 + - CAST( col0 AS SIGNED ) * + - 64 + + - col1 + + + col0 FROM tab0 cor0
----
5634
6304
894

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL col1 - + + col1 + - CAST ( col0 AS INTEGER ) * + - 64 + + - col1 + + + col0 FROM tab0 cor0
----
5634
6304
894

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT - - 88 * col2 DIV col2 - col2 + + col1 FROM tab0 AS cor0
----
-10
122
99

skipif mysql # not compatible
query I rowsort label-6256
SELECT - - 88 * col2 / col2 - col2 + + col1 FROM tab0 AS cor0
----
-10
122
99

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

query I rowsort
SELECT ALL - - col1 * + + col0 - 89 FROM tab0 AS cor0
----
1126
1738
8

query I rowsort
SELECT 88 * - col2 + + + 70 FROM tab1 AS cor0
----
-5122
-5914
-8378

query II rowsort
SELECT ALL + + 15 - + + col2 AS col1, + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-44
-59
-53
-68
-81
-96

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

query I rowsort
SELECT ALL + 71 FROM tab0 WHERE NOT + 67 / col0 = + col2 + + 37
----
71
71
71

query III rowsort
SELECT 31 AS col2, + col0 * + col1 + col1 + + - col0 * + col2, 83 - + col0 + - ( col0 ) AS col2 FROM tab1
----
9 values hashing to 9b9f61fb4ffd2beb9588f61a0fd28994

query I rowsort
SELECT - col2 * 79 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT + ( + col0 ) * - + col0 AS col2 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab1 WHERE NOT + 60 > + 72 * + + 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( + 93 ) BETWEEN col1 AND + col0
----
15
81
47
87
21
10

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6268
SELECT + + COUNT ( * ) * + + COUNT ( * ) col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT SUM( ALL + 64 ) FROM tab2 cor0
----
192

skipif mysql # not compatible
query I rowsort label-6269
SELECT SUM ( ALL + 64 ) FROM tab2 cor0
----
192

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

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

query I rowsort
SELECT + 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6273
SELECT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2, + 62 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6273
SELECT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2, + 62 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT + COUNT( * ) DIV + + 82 + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6274
SELECT + COUNT ( * ) / + + 82 + COUNT ( * ) FROM tab0
----
3

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 68 NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND - col0 + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT 33 DIV + ( - + 86 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT 33 / + ( - + 86 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * - ( + + col2 ) FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL + ( col0 ) + 16 AS col0 FROM tab0 AS cor0
----
103
113
31

query I rowsort
SELECT col0 * - col2 + + - col1 AS col1 FROM tab0 cor0
----
-786
-891
-9604

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6282
SELECT ALL - CAST( NULL AS DECIMAL ) + - + col1 + 25 + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL - CAST ( NULL AS REAL ) + - + col1 + 25 + - col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6284
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( + - col1 ) AS col1, 99 AS col1 FROM tab2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-6284
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( + - col1 ) AS col1, 99 AS col1 FROM tab2
----
NULL
99

query I rowsort
SELECT - 18 AS col0 FROM tab0 WHERE + col0 = NULL
----

query II rowsort
SELECT ALL col2 * col0 + col2 + + + 87 * + col1, + col2 FROM tab0
----
2707
10
7799
47
9789
99

query I rowsort
SELECT DISTINCT - 79 * - - col2 * 41 FROM tab1
----
-191101
-220252
-310944

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT ALL 46 + MIN( col0 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL 46 + MIN ( col0 ) FROM tab2
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - 97 * + col1 col2, col2 FROM tab0 cor0
----
-42777
10
-636417
47
-97
99

query I rowsort
SELECT col0 * + 76 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 50 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6291
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) - col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-6291
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT 55 + - + COUNT( * ) * 84 + - 52 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-6292
SELECT 55 + - + COUNT ( * ) * 84 + - 52 FROM tab2 AS cor0
----
-249

query II rowsort
SELECT + col2, + 30 + - col1 FROM tab2
----
23
-21
40
-47
58
-37

query I rowsort
SELECT - col1 - + col0 + + 42 AS col1 FROM tab2 AS cor0
----
-100
-55
-99

query I rowsort
SELECT 93 - + 27 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2079
-387
163

query I rowsort
SELECT ALL col1 + col1 + + col1 * - 29 FROM tab1 AS cor0
----
-1269
-135
-378

query II rowsort
SELECT ALL col1 AS col0, + 88 FROM tab0 cor0
----
1
88
21
88
81
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT 8 DIV + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT 8 / + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT DISTINCT + + COUNT( ALL - col2 ) col0, - 99 FROM tab1 AS cor0
----
3
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6300
SELECT DISTINCT + + COUNT ( ALL - col2 ) col0, - 99 FROM tab1 AS cor0
----
3
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-6301
SELECT - col1 DIV + 77 AS col0, col1 AS col0 FROM tab2
----
-1
77
0
51
0
67

skipif mysql # not compatible
query II rowsort label-6301
SELECT - col1 / + 77 AS col0, col1 AS col0 FROM tab2
----
-1
77
0
51
0
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6302
SELECT col0 * - col2 DIV - col2 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6302
SELECT col0 * - col2 / - col2 AS col2 FROM tab0
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6305
SELECT + MIN( ALL - 20 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-20
3

skipif mysql # not compatible
query II rowsort label-6305
SELECT + MIN ( ALL - 20 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-20
3

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

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

query I rowsort
SELECT ALL 24 AS col2 FROM tab1 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - - col2 * + col0 + + 48 * - - 14 + + 70 FROM tab0 AS cor0
----
10345
1447
1612

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - + 33 FROM tab0
----
-132
-43
-80

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - + 33 FROM tab0
----
-132
-43
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6314
SELECT ALL - COUNT( * ) * + - CAST( 32 AS SIGNED ) AS col2 FROM tab0 WHERE + ( + - col1 ) > + col0
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - COUNT ( * ) * + - CAST ( 32 AS INTEGER ) AS col2 FROM tab0 WHERE + ( + - col1 ) > + col0
----
0

query I rowsort
SELECT ALL + 66 + - 62 AS col1 FROM tab0 AS cor0
----
4
4
4

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT - - 27 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + CAST ( + 72 AS INTEGER ) FROM tab2
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL + 33 * - COUNT( * ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL + 33 * - COUNT ( * ) FROM tab2 AS cor0
----
-99

query II rowsort
SELECT + col0, col2 FROM tab2 cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT 33 * col1 AS col1 FROM tab1 AS cor0
----
1551
165
462

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + col1 * col1 col1 FROM tab0
----
1
1
21
441
81
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL 82 * - + SUM( - 12 ) FROM tab2
----
2952

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL 82 * - + SUM ( - 12 ) FROM tab2
----
2952

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

skipif mysql # not compatible
query I rowsort label-6326
SELECT 28 / + col0 AS col1 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6327
SELECT - + 3 / - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - + col2 AS col0, 88 AS col0 FROM tab1 AS cor0
----
-59
88
-68
88
-96
88

query II rowsort
SELECT - col0 + - col1, col0 AS col1 FROM tab1
----
-138
91
-65
51
-90
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + - col2 col0 FROM tab2 AS cor0
----
2323
4888
4967

query II rowsort
SELECT DISTINCT - 53 AS col2, - ( + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-53
-23
-53
-40
-53
-58

query I rowsort
SELECT + col2 + col0 FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
104
133
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL - MIN( DISTINCT - col1 ) + + MIN( + col1 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - MIN ( DISTINCT - col1 ) + + MIN ( + col1 ) FROM tab0
----
82

query I rowsort
SELECT + col1 - + + 70 AS col2 FROM tab2
----
-19
-3
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT ALL + col0 FROM tab0 WHERE NOT + col2 BETWEEN - + CAST( + + ( + col2 ) AS SIGNED ) * col2 AND ( col1 )
----
97

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + col0 FROM tab0 WHERE NOT + col2 BETWEEN - + CAST ( + + ( + col2 ) AS INTEGER ) * col2 AND ( col1 )
----
97

query I rowsort
SELECT - col1 + 10 AS col2 FROM tab1 WHERE + col0 + + - col2 >= NULL
----

query I rowsort
SELECT col1 + + - 21 AS col2 FROM tab1
----
-16
-7
26

query I rowsort
SELECT ALL col0 + + col2 * + col2 AS col0 FROM tab0
----
187
2224
9898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT DISTINCT + col2 * - - CAST( + col2 AS SIGNED ) + - + col1 + col2 + 21 AS col0 FROM tab1
----
3556
4666
9319

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT + col2 * - - CAST ( + col2 AS INTEGER ) + - + col1 + col2 + 21 AS col0 FROM tab1
----
3556
4666
9319

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

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

query I rowsort
SELECT DISTINCT 60 + - col1 + col2 + 35 FROM tab1 AS cor0
----
116
149
177

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT ALL COUNT( * ) + + + AVG ( + col2 ) FROM tab0 AS cor0 WHERE + ( - - CAST( NULL AS SIGNED ) ) > - 8 * - 24 + + ( col0 ) + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL COUNT ( * ) + + + AVG ( + col2 ) FROM tab0 AS cor0 WHERE + ( - - CAST ( NULL AS INTEGER ) ) > - 8 * - 24 + + ( col0 ) + + 24
----
NULL

query I rowsort
SELECT DISTINCT - 56 - + col2 FROM tab0 cor0
----
-103
-155
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT - ( col2 ) DIV col2 + - 18 AS col2 FROM tab2
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-6346
SELECT - ( col2 ) / col2 + - 18 AS col2 FROM tab2
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT col0 DIV ( - 29 ) + - col2 AS col0 FROM tab0
----
-102
-13
-47

skipif mysql # not compatible
query I rowsort label-6347
SELECT col0 / ( - 29 ) + - col2 AS col0 FROM tab0
----
-102
-13
-47

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= ( col1 ) / - col0 + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE ( + 15 + + col0 ) IS NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6352
SELECT ALL AVG ( + 79 ) * - 73 AS col0 FROM tab0 WHERE NULL >= - CAST( + 97 AS SIGNED ) + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL AVG ( + 79 ) * - 73 AS col0 FROM tab0 WHERE NULL >= - CAST ( + 97 AS INTEGER ) + col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6353
SELECT - CAST ( NULL AS REAL ) - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 40 + + col0 FROM tab2
----
104
115
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT DISTINCT + 46 + - 64 DIV - 6 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT + 46 + - 64 / - 6 FROM tab1
----
56

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

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

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

query I rowsort
SELECT DISTINCT 53 * - 10 + + AVG ( ALL + ( + ( 81 ) ) ) FROM tab0 WHERE col1 IN ( 34 )
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + 51 <= + 97 * - 53
----
1
21
81

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6361
SELECT - COUNT ( ALL - 10 ) - COUNT ( * ) col0 FROM tab1
----
-6

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

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

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

skipif mysql # not compatible
query I rowsort label-6364
SELECT ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT ALL 24 * + 14 + col2 * 72 AS col0 FROM tab2 WHERE NOT col2 NOT IN ( 83 )
----

query I rowsort
SELECT ALL ( + 72 ) AS col2 FROM tab1
----
72
72
72

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL COUNT( DISTINCT 7 ) + MIN( 76 + ( + 33 + col1 ) ) AS col1 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL COUNT ( DISTINCT 7 ) + MIN ( 76 + ( + 33 + col1 ) ) AS col1 FROM tab0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT ALL CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT ALL 58 - 10 DIV + COUNT( * ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL 58 - 10 / + COUNT ( * ) AS col0 FROM tab2
----
55

query I rowsort
SELECT DISTINCT col2 + + ( + 25 ) AS col0 FROM tab2
----
48
65
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT 63 * + MIN( - 84 ) FROM tab0 AS cor0
----
-5292

skipif mysql # not compatible
query I rowsort label-6373
SELECT 63 * + MIN ( - 84 ) FROM tab0 AS cor0
----
-5292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT ALL 18 + CAST( 23 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1339
-1546
-2190

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL 18 + CAST ( 23 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1339
-1546
-2190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT 62 + COUNT( * ) col2 FROM tab2 WHERE - col1 + 23 <> - CAST( NULL AS SIGNED )
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6375
SELECT 62 + COUNT ( * ) col2 FROM tab2 WHERE - col1 + 23 <> - CAST ( NULL AS INTEGER )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6376
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col2 - col2 AND 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col2 - col2 AND 81
----
NULL

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

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

query I rowsort
SELECT ALL + - 85 * - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1955
-3400
-4930

query I rowsort
SELECT - col2 * + 69 + - 5 AS col1 FROM tab2 AS cor0
----
-1592
-2765
-4007

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 77 * - col0 NOT BETWEEN - 11 AND + col1
----

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab1 AS cor0
----
16

query I rowsort
SELECT - col1 + - 4 AS col2 FROM tab0 AS cor0
----
-25
-5
-85

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

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

query I rowsort
SELECT - + 83 + col2 FROM tab0 AS cor0
----
-36
-73
16

query I rowsort
SELECT col2 * + 41 * 84 FROM tab1
----
203196
234192
330624

query I rowsort
SELECT + col2 + 61 * + col0 FROM tab2 WHERE ( 61 ) NOT IN ( - 82 )
----
2829
3944
4633

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

query I rowsort
SELECT DISTINCT - col1 + - ( col0 ) FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT DISTINCT col0 * + 59 FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) * col1 + 5 / + 37 IS NULL
----
3009
5015
5369

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT col0 * + 59 FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) * col1 + 5 / + 37 IS NULL
----
3009
5015
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL - MIN( ALL 17 ) + 56 * ( MIN( + 19 ) + 1 ) AS col2 FROM tab0
----
1103

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - MIN ( ALL 17 ) + 56 * ( MIN ( + 19 ) + 1 ) AS col2 FROM tab0
----
1103

query I rowsort
SELECT ALL + 1 * col2 + - col2 AS col0 FROM tab2
----
0
0
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND NULL BETWEEN - col2 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT ALL + 22 - + + col2 - - 40 DIV - col2 AS col1 FROM tab1 AS cor0
----
-37
-46
-74

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + 22 - + + col2 - - 40 / - col2 AS col1 FROM tab1 AS cor0
----
-37
-46
-74

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

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

query I rowsort
SELECT - + col0 - + col1 + + 98 AS col1 FROM tab2 AS cor0
----
-43
-44
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col0 ) col0 FROM tab1 AS cor0
----
51
85
91

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

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

skipif mysql # not compatible
query I rowsort label-6402
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT + MIN( ALL + 61 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + MIN ( ALL + 61 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61

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

skipif mysql # not compatible
query I rowsort label-6404
SELECT COUNT ( * ) - - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6405
SELECT ALL - - 79 AS col0, - SUM( - 5 ) FROM tab2 AS cor0
----
79
15

skipif mysql # not compatible
query II rowsort label-6405
SELECT ALL - - 79 AS col0, - SUM ( - 5 ) FROM tab2 AS cor0
----
79
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6406
SELECT ALL * FROM tab1 cor0 WHERE ( col2 * CAST( - 74 AS SIGNED ) ) IN ( + 92 * col1 + col2 )
----

skipif mysql # not compatible
query III rowsort label-6406
SELECT ALL * FROM tab1 cor0 WHERE ( col2 * CAST ( - 74 AS INTEGER ) ) IN ( + 92 * col1 + col2 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6409
SELECT DISTINCT - 76 AS col2, - CAST( NULL AS SIGNED ) / + - 3 AS col0 FROM tab1 AS cor0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-6409
SELECT DISTINCT - 76 AS col2, - CAST ( NULL AS INTEGER ) / + - 3 AS col0 FROM tab1 AS cor0
----
-76
NULL

query I rowsort
SELECT DISTINCT - + 57 * + 13 * 36 * col0 FROM tab0 AS cor0
----
-2320812
-2587572
-400140

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT - SUM( + - col1 ) * + + 31 FROM tab2 AS cor0
----
6045

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT - SUM ( + - col1 ) * + + 31 FROM tab2 AS cor0
----
6045

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 93 + 38 + col0 * - ( col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT - ( + COUNT( * ) ) * COUNT( * ) col0 FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN - col1 + + col2 AND ( + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6414
SELECT DISTINCT - ( + COUNT ( * ) ) * COUNT ( * ) col0 FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN - col1 + + col2 AND ( + col2 )
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6416
SELECT + COUNT ( * ) col0 FROM tab2 WHERE NOT col1 IS NULL
----
3

query I rowsort
SELECT ALL + col2 * - col2 + - + 70 AS col0 FROM tab0
----
-170
-2279
-9871

query I rowsort
SELECT - 43 * + 56 * + - col2 AS col2 FROM tab1
----
142072
163744
231168

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + 33 )
----

query I rowsort
SELECT - - 34 * - 85 * + + 67 FROM tab2 AS cor0
----
-193630
-193630
-193630

query I rowsort
SELECT DISTINCT - col2 * - col0 - - col1 FROM tab1 cor0 WHERE NOT ( - col2 + - - 93 ) IN ( - col0 )
----
4910
5020
6235

query I rowsort
SELECT DISTINCT col0 * + 77 FROM tab1 AS cor0
----
3927
6545
7007

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

query I rowsort
SELECT - + col0 + - col1 * - 92 * + col1 * - col1 + - col0 * col0 FROM tab0 AS cor0
----
-48892812
-859668
-9598

query I rowsort
SELECT ALL 60 + col0 AS col1 FROM tab1
----
111
145
151

query I rowsort
SELECT 54 FROM tab1 WHERE 89 IS NOT NULL
----
54
54
54

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-6427
SELECT DISTINCT - col1, 46 DIV - + 55 AS col2, - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
9 values hashing to 752d7d48a9518ef276c6464abcbbd69b

skipif mysql # not compatible
query III rowsort label-6427
SELECT DISTINCT - col1, 46 / - + 55 AS col2, - + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
9 values hashing to 752d7d48a9518ef276c6464abcbbd69b

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( + col2 + - - col0 ) NOT IN ( ( 70 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6429
SELECT DISTINCT + - ( 42 ) + - + 23 + + - col1 DIV - - ( col2 ) + col0 FROM tab1 AS cor0
----
-14
20
26

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT + - ( 42 ) + - + 23 + + - col1 / - - ( col2 ) + col0 FROM tab1 AS cor0
----
-14
20
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT DISTINCT + col1 * col0 DIV + 66 FROM tab0 AS cor0
----
1
18
27

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT + col1 * col0 / + 66 FROM tab0 AS cor0
----
1
18
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL - + 13 - - - SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - + 13 - - - SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
143

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT DISTINCT - col2 * - 26 * - - col1 * + CAST( NULL AS SIGNED ) - - 35 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT - col2 * - 26 * - - col1 * + CAST ( NULL AS INTEGER ) - - 35 FROM tab0 cor0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL 18 - + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL AND NOT ( 0 * - + col2 ) <> 95
----
18

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL 18 - + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL AND NOT ( 0 * - + col2 ) <> 95
----
18

query I rowsort
SELECT 84 - - + col0 AS col0 FROM tab2 AS cor0
----
130
148
159

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6440
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 28 + + - COUNT( * ) / - - MAX( - ( - + col0 ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6440
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 28 + + - COUNT ( * ) / - - MAX ( - ( - + col0 ) ) col0 FROM tab2
----
NULL

query I rowsort
SELECT + + 43 + + col1 FROM tab1 WHERE - 98 + - 10 IS NOT NULL
----
48
57
90

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE ( NOT ( ( NULL ) IS NOT NULL ) )
----
14
47
5

query II rowsort
SELECT - col1 + - col2 AS col1, + 10 AS col1 FROM tab2
----
-117
10
-125
10
-74
10

query I rowsort
SELECT DISTINCT col1 * + col0 - - col1 * + col1 AS col1 FROM tab0
----
2268
7776
98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT - col2 DIV - col0 + + + col2 AS col1 FROM tab0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-6446
SELECT - col2 / - col0 + + + col2 AS col1 FROM tab0
----
10
100
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT + 78 * - SUM( DISTINCT col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-17394

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT + 78 * - SUM ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-17394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL = + 4 + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6449
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL = + 4 + col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 54 * 16 AS col2 FROM tab0
----
864
864
864

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NULL NOT BETWEEN + 93 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT 58 * + 38 + + - MIN( ALL - 12 ) AS col2 FROM tab1 AS cor0
----
2216

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT 58 * + 38 + + - MIN ( ALL - 12 ) AS col2 FROM tab1 AS cor0
----
2216

query I rowsort
SELECT DISTINCT + col1 + - 17 + - + col0 + + + col2 * col2 + - - col0 * + col1 FROM tab2 AS cor0
----
2863
6524
8364

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 12 NOT IN ( col2, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT COUNT( - ( - - col1 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6457
SELECT COUNT ( - ( - - col1 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT - 37 DIV - col0 + + col0 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6458
SELECT - 37 / - col0 + + col0 AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <= - col2
----

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

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

query I rowsort
SELECT DISTINCT + col2 * + 6 + col2 + + + ( 14 ) FROM tab2 AS cor0
----
175
294
420

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

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

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT + - ( - COUNT( * ) ) * + SUM( DISTINCT + CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-6464
SELECT + - ( - COUNT ( * ) ) * + SUM ( DISTINCT + CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
681

query I rowsort
SELECT col2 + 37 AS col1 FROM tab1
----
105
133
96

query I rowsort
SELECT DISTINCT col0 * - 9 * - col0 + - 34 AS col0 FROM tab2 AS cor0 WHERE ( - 58 * + - col0 / + col0 - - col1 ) IS NOT NULL
----
19010
36830
50591

query I rowsort
SELECT DISTINCT + ( - + col0 ) - col1 - - + col2 + - 94 * - ( - 57 ) FROM tab1 AS cor0
----
-5327
-5389
-5428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col2 col0 FROM tab1 AS cor0
----
144
147
159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT + - 44 * + + 19 * 69 * - COUNT( * ) + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
173055

skipif mysql # not compatible
query I rowsort label-6470
SELECT + - 44 * + + 19 * 69 * - COUNT ( * ) + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
173055

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT - - 74 * + CAST( - 17 AS SIGNED ) + - + 15 * - - col1 AS col0 FROM tab1 AS cor0
----
-1333
-1468
-1963

skipif mysql # not compatible
query I rowsort label-6472
SELECT - - 74 * + CAST ( - 17 AS INTEGER ) + - + 15 * - - col1 AS col0 FROM tab1 AS cor0
----
-1333
-1468
-1963

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT DISTINCT + ( + SUM( ALL + 4 ) ) AS col0, - COUNT( * ) AS col0 FROM tab1
----
12
-3

skipif mysql # not compatible
query II rowsort label-6473
SELECT DISTINCT + ( + SUM ( ALL + 4 ) ) AS col0, - COUNT ( * ) AS col0 FROM tab1
----
12
-3

query I rowsort
SELECT + 24 * - + col0 AS col0 FROM tab2
----
-1104
-1536
-1800

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT DISTINCT MIN( 43 ) AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT MIN ( 43 ) AS col0 FROM tab0
----
43

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6479
SELECT ALL + 62, - col2 DIV + col2 AS col1 FROM tab1
----
62
-1
62
-1
62
-1

skipif mysql # not compatible
query II rowsort label-6479
SELECT ALL + 62, - col2 / + col2 AS col1 FROM tab1
----
62
-1
62
-1
62
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6480
SELECT ALL + 93 * - 45 + + CAST( NULL AS SIGNED ), col1 * - col1 AS col2 FROM tab0 cor0
----
NULL
-1
NULL
-441
NULL
-6561

skipif mysql # not compatible
query II rowsort label-6480
SELECT ALL + 93 * - 45 + + CAST ( NULL AS INTEGER ), col1 * - col1 AS col2 FROM tab0 cor0
----
NULL
-1
NULL
-441
NULL
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-6481
SELECT 61 AS col1, - MAX( DISTINCT + 90 ) + COUNT( * ) FROM tab0 AS cor0
----
61
-87

skipif mysql # not compatible
query II rowsort label-6481
SELECT 61 AS col1, - MAX ( DISTINCT + 90 ) + COUNT ( * ) FROM tab0 AS cor0
----
61
-87

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

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

query I rowsort
SELECT col0 * 93 AS col2 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT DISTINCT - 89 * + col2 AS col0 FROM tab1 AS cor0
----
-5251
-6052
-8544

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT 69 * + COUNT( * ) FROM tab2 cor0
----
207

skipif mysql # not compatible
query I rowsort label-6489
SELECT 69 * + COUNT ( * ) FROM tab2 cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6490
SELECT * FROM tab2 AS cor0 WHERE NOT 8 IN ( - 86 + + CAST( col2 AS SIGNED ) + + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6490
SELECT * FROM tab2 AS cor0 WHERE NOT 8 IN ( - 86 + + CAST ( col2 AS INTEGER ) + + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6492
SELECT ALL + + 16 AS col0, + ( CAST( col1 AS SIGNED ) ) * col2 * + - col0 * - + 75 - - - 82 * + col0 + 30 FROM tab2 cor0
----
16
14778782
16
21852630
16
4043108

skipif mysql # not compatible
query II rowsort label-6492
SELECT ALL + + 16 AS col0, + ( CAST ( col1 AS INTEGER ) ) * col2 * + - col0 * - + 75 - - - 82 * + col0 + 30 FROM tab2 cor0
----
16
14778782
16
21852630
16
4043108

onlyif mysql # DIV for integer division: 
query II rowsort label-6493
SELECT col0 * + 83 - + - col1 DIV + 75 AS col0, + ( + 47 ) FROM tab2 WHERE col2 IS NOT NULL
----
3818
47
5313
47
6225
47

skipif mysql # not compatible
query II rowsort label-6493
SELECT col0 * + 83 - + - col1 / + 75 AS col0, + ( + 47 ) FROM tab2 WHERE col2 IS NOT NULL
----
3818
47
5313
47
6225
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6494
SELECT * FROM tab0 WHERE - + ( + - col2 ) * + + CAST( col0 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-6494
SELECT * FROM tab0 WHERE - + ( + - col2 ) * + + CAST ( col0 AS INTEGER ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - 32, 74, - 5 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT ALL 34 * - - COUNT( * ) AS col0, - COUNT( DISTINCT col1 ) AS col1 FROM tab1
----
102
-3

skipif mysql # not compatible
query II rowsort label-6496
SELECT ALL 34 * - - COUNT ( * ) AS col0, - COUNT ( DISTINCT col1 ) AS col1 FROM tab1
----
102
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6497
SELECT ALL CAST( NULL AS SIGNED ) * + col0 + - - CAST( NULL AS DECIMAL ) AS col1, - ( + 86 ) AS col2 FROM tab1
----
NULL
-86
NULL
-86
NULL
-86

skipif mysql # not compatible
query II rowsort label-6497
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 + - - CAST ( NULL AS REAL ) AS col1, - ( + 86 ) AS col2 FROM tab1
----
NULL
-86
NULL
-86
NULL
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6498
SELECT ALL * FROM tab0 WHERE NOT CAST( + - 29 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6498
SELECT ALL * FROM tab0 WHERE NOT CAST ( + - 29 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + + - 84 AS col2 FROM tab0
----
-105
-165
-85

query I rowsort
SELECT + 53 + - col1 FROM tab2
----
-14
-24
2

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 64 col0, + col2 + - col0 AS col2 FROM tab1
----
64
-23
64
-26
64
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT + - 35 - - + ( - + COUNT( - - col1 ) ) + + 7 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6506
SELECT + - 35 - - + ( - + COUNT ( - - col1 ) ) + + 7 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT DISTINCT - col1 - + + 78 + - - col2 FROM tab0 AS cor0
----
-112
-89
20

query I rowsort
SELECT - col2 - + + col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL + 26 - 74 AS col2 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT col0 * + - col0 - col2 AS col0 FROM tab2 AS cor0
----
-2139
-4136
-5683

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - 92 * - MAX( DISTINCT - - 34 ) FROM tab1
----
3128

skipif mysql # not compatible
query I rowsort label-6515
SELECT - 92 * - MAX ( DISTINCT - - 34 ) FROM tab1
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL + ( 72 ) * ( + COUNT( * ) ) * + 20 + + 27 FROM tab1
----
4347

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL + ( 72 ) * ( + COUNT ( * ) ) * + 20 + + 27 FROM tab1
----
4347

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6517
SELECT DISTINCT 7 * + 84 col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
588
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6517
SELECT DISTINCT 7 * + 84 col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
588
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 * - ( col0 ) col2 FROM tab0
----
435
485
75

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT ALL + col0 DIV col1 + + 68 AS col0 FROM tab1 AS cor0
----
69
71
85

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + col0 / col1 + + 68 AS col0 FROM tab1 AS cor0
----
69
71
85

query I rowsort
SELECT DISTINCT - 57 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
-57

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + - col1 < - 65
----
51
85
91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6525
SELECT ALL + - 65 DIV - 79 + - + COUNT( * ) * + 35 AS col2 FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL + - 65 / - 79 + - + COUNT ( * ) * + 35 AS col2 FROM tab0 cor0
----
-105

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6527
SELECT ALL - 32 DIV + col2 + col2 + col0 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1080
2600
4408

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - 32 / + col2 + col2 + col0 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1080
2600
4408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6528
SELECT - + 63 + + col0 * + col1 AS col1, 55 * + col1 + + col0 + - CAST( NULL AS SIGNED ) * - + CAST( + ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
362
NULL
4214
NULL
651
NULL

skipif mysql # not compatible
query II rowsort label-6528
SELECT - + 63 + + col0 * + col1 AS col1, 55 * + col1 + + col0 + - CAST ( NULL AS INTEGER ) * - + CAST ( + ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
362
NULL
4214
NULL
651
NULL

query I rowsort
SELECT col0 * col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 70 * - - col1 / col0
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 + - col0 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT - + COUNT( * ) - COUNT( * ) - + + 94 FROM tab2 cor0
----
-100

skipif mysql # not compatible
query I rowsort label-6535
SELECT - + COUNT ( * ) - COUNT ( * ) - + + 94 FROM tab2 cor0
----
-100

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + col1, 44 col2 FROM tab0
----
-98
44
11
44
34
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - MIN( ALL - 99 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6539
SELECT - MIN ( ALL - 99 ) AS col1 FROM tab0 AS cor0
----
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col1 + - + 86 col2, + col0 AS col1 FROM tab0 AS cor0
----
11
97
1129
15
1741
87

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

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

query I rowsort
SELECT col0 * - + 27 AS col0 FROM tab2
----
-1242
-1728
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + SUM( ALL - 57 ) FROM tab1 WHERE NOT ( NOT col0 + 23 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT + SUM ( ALL - 57 ) FROM tab1 WHERE NOT ( NOT col0 + 23 IS NULL )
----
NULL

query I rowsort
SELECT ALL ( + 1 ) AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 * 17 AS col2 FROM tab1
----
1445
1547
867

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6550
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col2 / col0 col2 FROM tab2 WHERE - + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6550
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col2 / col0 col2 FROM tab2 WHERE - + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT - 71 >= + + col2
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL - COUNT( * ) * 88 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - COUNT ( * ) * 88 FROM tab2 AS cor0
----
-264

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

skipif mysql # not compatible
query III rowsort label-6553
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - - col0 ) + - col2 BETWEEN NULL AND + 38 + + - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) * col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL 54 * MAX( DISTINCT ( + + col2 ) ) FROM tab0
----
5346

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL 54 * MAX ( DISTINCT ( + + col2 ) ) FROM tab0
----
5346

query I rowsort
SELECT DISTINCT - ( ( + 72 ) ) + - col1 AS col2 FROM tab2
----
-123
-139
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT DISTINCT 9 + - - 31 + 86 + + 89 DIV - - 79 col0 FROM tab1
----
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6557
SELECT DISTINCT 9 + - - 31 + 86 + + 89 / - - 79 col0 FROM tab1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6558
SELECT DISTINCT + CAST( - - 5 AS SIGNED ) + - + MIN( ALL + 11 ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + CAST ( - - 5 AS INTEGER ) + - + MIN ( ALL + 11 ) AS col2 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL + COUNT( * ) + MAX( DISTINCT + - col2 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + COUNT ( * ) + MAX ( DISTINCT + - col2 ) FROM tab0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 17 + 68 + ( + + col2 ) + + col2 * col0 col2 FROM tab2 AS cor0
----
1988
3490
758

query II rowsort
SELECT col1, col0 + 28 AS col1 FROM tab2
----
51
74
67
103
77
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37, col1 * col2 col2 FROM tab0
----
37
210
37
3807
37
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT DISTINCT CAST( + ( + + col2 ) AS SIGNED ) * - + col1 * - + col2 * + col0 FROM tab0 AS cor0 WHERE NULL <> - 76
----

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT CAST ( + ( + + col2 ) AS INTEGER ) * - + col1 * - + col2 * + col0 FROM tab0 AS cor0 WHERE NULL <> - 76
----

query II rowsort
SELECT ALL 36 AS col0, + 85 FROM tab2 AS cor0
----
36
85
36
85
36
85

query I rowsort
SELECT ALL - ( 74 ) AS col1 FROM tab1 AS cor0
----
-74
-74
-74

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 <= NULL
----

query I rowsort
SELECT 82 * + 52 FROM tab1
----
4264
4264
4264

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 45 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + col0 - - - 82 - + + 87 * + col2 * - col2 IS NOT NULL
----

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

query I rowsort
SELECT ALL col1 * - 62 + + 98 + - - col0 FROM tab1
----
-127
-2725
-719

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT ALL - 47 DIV - col2 + 66 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
66
67
70

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL - 47 / - col2 + 66 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
66
67
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT 78 * - COUNT( * ) col1 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6581
SELECT DISTINCT 78 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-234

query I rowsort
SELECT ALL + col0 + col0 - - + 0 + - col0 * + col0 FROM tab2 cor0
----
-2024
-3968
-5475

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 >= + + 11 - + col2 * - 76 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL + + 22 * - - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL + + 22 * - - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
198

query I rowsort
SELECT DISTINCT 30 * - - col2 FROM tab0 AS cor0
----
1410
2970
300

onlyif mysql # DIV for integer division: 
query II rowsort label-6586
SELECT ALL + + col2 AS col1, - col0 DIV col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-6586
SELECT ALL + + col2 AS col1, - col0 / col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

query I rowsort
SELECT + col1 * - 41 + + col2 FROM tab1 AS cor0
----
-146
-1859
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT DISTINCT COUNT( * ) * - - 59 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT COUNT ( * ) * - - 59 FROM tab1
----
177

query III rowsort
SELECT * FROM tab0 WHERE ( col1 <= col0 * col2 / col1 )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 42 * - + 74 col1 FROM tab1
----
-3012
-3040
-3049

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT DISTINCT + col0 - - 44 DIV + - col2 col0 FROM tab0
----
15
83
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6592
SELECT DISTINCT + col0 - - 44 / + - col2 col0 FROM tab0
----
15
83
97

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

query I rowsort
SELECT + 88 - - - 8 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT + - col1 + - col2 - + 52 AS col0 FROM tab2 AS cor0
----
-126
-169
-177

query I rowsort
SELECT - col2 + - 73 * + + 97 FROM tab0 AS cor0
----
-7091
-7128
-7180

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6599
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) + - - 20 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 41
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6599
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) + - - 20 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 41
----
NULL

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

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

query I rowsort
SELECT + + 81 FROM tab2 AS cor0 WHERE NOT + 48 * col0 * - + col1 * ( + - col1 ) NOT IN ( 9 + 86, - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6602
SELECT ALL + 50 * COUNT( * ) DIV + MAX( ( + ( + col2 ) ) ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + 50 * COUNT ( * ) / + MAX ( ( + ( + col2 ) ) ) FROM tab2 AS cor0
----
2

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT COUNT( * ) * + 15 * - 23 FROM tab0
----
-1035

skipif mysql # not compatible
query I rowsort label-6607
SELECT COUNT ( * ) * + 15 * - 23 FROM tab0
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ( - MAX( - + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6608
SELECT ( - MAX ( - + col0 ) ) FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + + 31 col1 FROM tab2 AS cor0
----
-2315
-4897
-4994

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

query I rowsort
SELECT - ( - 61 ) * + col2 AS col1 FROM tab1 AS cor0
----
3599
4148
5856

query I rowsort
SELECT ALL - 10 * - col2 + - - 43 FROM tab0 AS cor0
----
1033
143
513

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT ALL - 80 DIV col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - 80 / col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-3

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

query I rowsort
SELECT DISTINCT 40 * - col2 AS col0 FROM tab1 AS cor0
----
-2360
-2720
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL + COUNT( * ) * 31 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL + COUNT ( * ) * 31 FROM tab0 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT DISTINCT - col2 * CAST( + 35 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1645
-3465
-350

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT - col2 * CAST ( + 35 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1645
-3465
-350

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + + col0 <= NULL AND NOT ( NOT NULL <= - col2 )
----

query I rowsort
SELECT - ( col1 ) * - 60 * + + 36 + + col1 + - col2 * col2 + + col0 FROM tab2
----
109728
141498
164861

query I rowsort
SELECT col2 + 38 AS col1 FROM tab0
----
137
48
85

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND + + 2 + + col0 * + 59 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 68 col1 FROM tab2
----
3128
4352
5100

onlyif mysql # DIV for integer division: 
query II rowsort label-6625
SELECT 44 DIV col1, + col2 col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6625
SELECT 44 / col1, + col2 col2 FROM tab2
----
0
23
0
40
0
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6627
SELECT ALL ( - + 83 ) AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-83
NULL
-83
NULL
-83
NULL

skipif mysql # not compatible
query II rowsort label-6627
SELECT ALL ( - + 83 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-83
NULL
-83
NULL
-83
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 84 * 3 + - - ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT DISTINCT - + SUM( DISTINCT - - col0 ) DIV + 23 AS col0 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - + SUM ( DISTINCT - - col0 ) / + 23 AS col0 FROM tab0 cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6630
SELECT ALL + 45 * + + col2 + col1, - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6630
SELECT ALL + 45 * + + col2 + col1, - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - - col1 / - 40 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6632
SELECT DISTINCT 3 DIV + MAX( col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT 3 / + MAX ( col2 ) FROM tab0 AS cor0
----
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 97 + - - col2 col2 FROM tab0 AS cor0 WHERE NOT ( ( 46 ) ) IS NULL
----
-1
196
-21
107
-81
144

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

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

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

query I rowsort
SELECT 82 + - 93 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT - 53 + + 32 AS col2 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT 90 + col0 FROM tab1
----
141
175
181

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 - + 23 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT - 87 * + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 87 * + + col2 IS NOT NULL
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6646
SELECT DISTINCT - + MAX ( + 65 ) col0 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - ( + MAX( DISTINCT col2 ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6647
SELECT - ( + MAX ( DISTINCT col2 ) ) AS col2 FROM tab2
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= 49
----
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT + 69 - + - COUNT( * ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + 69 - + - COUNT ( * ) FROM tab0 AS cor0
----
72

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

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

query II rowsort
SELECT ALL col2, - col0 + + 40 FROM tab2 AS cor0
----
23
-6
40
-24
58
-35

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

skipif mysql # not compatible
query I rowsort label-6653
SELECT - 9 * - col2 / + - col2 AS col1 FROM tab2 cor0
----
-9
-9
-9

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * 55 * col0 >= + 70 * 17 * col0
----

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

skipif mysql # not compatible
query I rowsort label-6656
SELECT - col1 / - + ( + - col2 ) FROM tab0
----
-1
-2
0

query III rowsort
SELECT * FROM tab1 WHERE - + col0 * - - 60 + - 29 >= NULL
----

query I rowsort
SELECT ALL + ( - - col0 ) * col0 + 82 FROM tab1
----
2683
7307
8363

query I rowsort
SELECT - 98 - ( - - col1 ) * col2 AS col0 FROM tab0
----
-197
-308
-3905

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL SUM( DISTINCT - 3 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-3

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL SUM ( DISTINCT - 3 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + 86 - + MIN( DISTINCT - ( + 78 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
164

skipif mysql # not compatible
query I rowsort label-6661
SELECT + 86 - + MIN ( DISTINCT - ( + 78 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT + + COUNT( * ) * + - 71 FROM tab1 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-6663
SELECT + + COUNT ( * ) * + - 71 FROM tab1 cor0
----
-213

query I rowsort
SELECT DISTINCT + col1 * - 33 AS col0 FROM tab0 AS cor0
----
-2673
-33
-693

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT ALL - - col2 DIV + col0 + + 38 * ( col1 ) FROM tab0 AS cor0
----
3081
39
798

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL - - col2 / + col0 + + 38 * ( col1 ) FROM tab0 AS cor0
----
3081
39
798

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - 90 * + MAX( + col0 ) * - COUNT( DISTINCT - - 88 ) AS col0 FROM tab1 AS cor0
----
8190

skipif mysql # not compatible
query I rowsort label-6668
SELECT - 90 * + MAX ( + col0 ) * - COUNT ( DISTINCT - - 88 ) AS col0 FROM tab1 AS cor0
----
8190

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 48 + - col1 + col2 / + 89 AND - ( + 63 )
----

query I rowsort
SELECT ALL 50 + + col0 * col0 FROM tab0
----
275
7619
9459

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

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT + 13 / - col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL + COUNT( DISTINCT + 28 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL + COUNT ( DISTINCT + 28 ) AS col2 FROM tab1
----
1

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - - col2 >= - - 46 - - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL 22 + + - col1 FROM tab1 AS cor0
----
-25
17
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6680
SELECT ALL + MIN ( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT col1 + 36 * - col0 + + col0 AS col0 FROM tab0
----
-3024
-3394
-444

query I rowsort
SELECT ALL + 39 * - col0 / - col0 FROM tab2 WHERE NOT ( ( - 56 ) / ( + col2 ) ) NOT BETWEEN col0 + 19 + + col1 AND + col0 * + + col2 * - + col1
----

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

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

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

query I rowsort
SELECT DISTINCT 41 * col0 AS col1 FROM tab2
----
1886
2624
3075

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT + COUNT( - + col1 ) FROM tab0 WHERE NOT 95 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6687
SELECT + COUNT ( - + col1 ) FROM tab0 WHERE NOT 95 IS NULL
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 1 * - col1 col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6690
SELECT DISTINCT - - 5 * + COUNT( * ) AS col2, SUM( DISTINCT + col1 ) FROM tab0 cor0
----
15
103

skipif mysql # not compatible
query II rowsort label-6690
SELECT DISTINCT - - 5 * + COUNT ( * ) AS col2, SUM ( DISTINCT + col1 ) FROM tab0 cor0
----
15
103

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

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

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

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

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

query I rowsort
SELECT + col2 + + col2 + - col0 * ( + - col1 ) * col1 + - col2 FROM tab2 AS cor0
----
119669
336733
379496

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - + col0 >= + - col0
----
1
21
81

query I rowsort
SELECT - 13 + + col1 - - - col0 AS col2 FROM tab0
----
-109
-79
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL COUNT( * ) * CAST( - 32 AS SIGNED ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL COUNT ( * ) * CAST ( - 32 AS INTEGER ) FROM tab0
----
-96

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

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

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

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

query I rowsort
SELECT - ( - 20 ) * + 53 FROM tab2 cor0
----
1060
1060
1060

query I rowsort
SELECT - 45 - - + ( - + col1 ) FROM tab1
----
-50
-59
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL - - SUM( ALL + col2 ) + 81 col2 FROM tab1 AS cor0
----
304

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6703
SELECT ALL - - SUM ( ALL + col2 ) + 81 col2 FROM tab1 AS cor0
----
304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col2 FROM tab0 cor0
----
0
0
0

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - + col0 > col2 * + 65 OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 14 - + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
-2332
-4914
-5011

query I rowsort
SELECT DISTINCT - + col0 * col0 FROM tab2 AS cor0 WHERE 7 * - + col2 - + 78 < - - col0 * + + ( + 3 )
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-2

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL >= ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT DISTINCT + 81 * COUNT( - 32 ) AS col0 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT + 81 * COUNT ( - 32 ) AS col0 FROM tab1 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT MAX( 4 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
4

skipif mysql # not compatible
query I rowsort label-6718
SELECT MAX ( 4 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 21 * - 96 col1 FROM tab2 AS cor0
----
-116928
-46368
-80640

query I rowsort
SELECT DISTINCT - col2 * - 46 AS col1 FROM tab2 AS cor0
----
1058
1840
2668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * + - col1 col1 FROM tab1 cor0
----
-182
-611
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6722
SELECT DISTINCT COUNT( * ) DIV 34 + 28 + + 60 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT COUNT ( * ) / 34 + 28 + + 60 FROM tab0 AS cor0
----
88

query I rowsort
SELECT - 56 FROM tab2 AS cor0 WHERE 93 + + col2 * + - col1 * - 22 + - col0 <= - col0
----

query I rowsort
SELECT - 44 * + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-2024
-2816
-3300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6725
SELECT * FROM tab1 AS cor0 WHERE - CAST( + + ( + 49 ) AS SIGNED ) BETWEEN - - col2 - - - col1 AND col2
----

skipif mysql # not compatible
query III rowsort label-6725
SELECT * FROM tab1 AS cor0 WHERE - CAST ( + + ( + 49 ) AS INTEGER ) BETWEEN - - col2 - - - col1 AND col2
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6728
SELECT COUNT ( * ) * + - 53 FROM tab0
----
-159

query I rowsort
SELECT col0 + 45 FROM tab1
----
130
136
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6730
SELECT MIN( ALL + col0 ) DIV - MIN( ALL col1 ) + + 33 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-6730
SELECT MIN ( ALL + col0 ) / - MIN ( ALL col1 ) + + 33 FROM tab2
----
33

query I rowsort
SELECT ALL - 18 + + col1 FROM tab1
----
-13
-4
29

query I rowsort
SELECT ALL + ( - - 26 ) AS col1 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6733
SELECT DISTINCT - 38 DIV + + 58 + - col0 + - col0 + - col0 FROM tab0 AS cor0
----
-261
-291
-45

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - 38 / + + 58 + - col0 + - col0 + - col0 FROM tab0 AS cor0
----
-261
-291
-45

query I rowsort
SELECT - - col2 + - ( + col1 ) * - col1 FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query II rowsort label-6735
SELECT DISTINCT 52, 99 * + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + + col2 > - col2 + col0 / - 23
----
52
297

skipif mysql # not compatible
query II rowsort label-6735
SELECT DISTINCT 52, 99 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + + col2 > - col2 + col0 / - 23
----
52
297

query I rowsort
SELECT - ( - 98 ) * + + 89 FROM tab1
----
8722
8722
8722

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT DISTINCT + ( SUM( - + 69 ) ), 29 AS col0 FROM tab0 AS cor0
----
-207
29

skipif mysql # not compatible
query II rowsort label-6737
SELECT DISTINCT + ( SUM ( - + 69 ) ), 29 AS col0 FROM tab0 AS cor0
----
-207
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT DISTINCT - - 47 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT - - 47 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
141

query I rowsort
SELECT ALL + col1 * - + 98 FROM tab1 AS cor0 WHERE NOT NULL IN ( 57, - col1 / col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT ALL - 73 DIV - - 81 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL - 73 / - - 81 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 32 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - - col2, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT 42 / - - 7 / + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT 42 / - - 7 / + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT 61 * - - 50 * 73 FROM tab0
----
222650

onlyif mysql # DIV for integer division: 
query I rowsort label-6747
SELECT 22 DIV col1 DIV - 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6747
SELECT 22 / col1 / - 93 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + 45 * - 50 * - - col2 * + 8 col2 FROM tab0
----
12690000
15660000
172854000

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

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

query I rowsort
SELECT + 97 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT MIN( ALL - ( - ( + col0 ) ) ) * + MAX( - col0 ) * + COUNT( * ) FROM tab0 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT MIN ( ALL - ( - ( + col0 ) ) ) * + MAX ( - col0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT + ( - - COUNT( DISTINCT - col0 ) ) * + 61 + - + MAX( + col1 ) FROM tab2 AS cor0 WHERE + col2 >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT + ( - - COUNT ( DISTINCT - col0 ) ) * + 61 + - + MAX ( + col1 ) FROM tab2 AS cor0 WHERE + col2 >= + col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6753
SELECT DISTINCT - - 6 + - + MAX( + - col0 ) AS col1, - COUNT( * ) * 94 FROM tab0 cor0
----
21
-282

skipif mysql # not compatible
query II rowsort label-6753
SELECT DISTINCT - - 6 + - + MAX ( + - col0 ) AS col1, - COUNT ( * ) * 94 FROM tab0 cor0
----
21
-282

query II rowsort
SELECT ALL 12 AS col0, 84 FROM tab0 AS cor0
----
12
84
12
84
12
84

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 / + col2 - + col0 < + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT - 29 * COUNT( * ) col1 FROM tab1 AS cor0
----
-87

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL + CAST( + MIN( + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + CAST ( + MIN ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL + 70 + - 35 + - 70 + col0 FROM tab2
----
11
29
40

query I rowsort
SELECT col0 * - col0 * - col0 * + ( - + 65 ) FROM tab0
----
-219375
-42802695
-59323745

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

query I rowsort
SELECT ALL 34 + + col2 + col2 * col1 FROM tab0
----
232
254
3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 - - 65 col2 FROM tab2
----
117

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

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT COUNT ( * ) / + 41 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 25 + - + 49 FROM tab0
----
-24

query II rowsort
SELECT DISTINCT col2 * col2 AS col2, col2 + - - col2 FROM tab1
----
3481
118
4624
136
9216
192

query I rowsort
SELECT DISTINCT + - 65 + - + 18 FROM tab2 AS cor0 WHERE col1 * + + ( - col0 ) + 26 IS NULL
----

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + 26 * + col1 - + 30 AS col2, col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT DISTINCT MIN( DISTINCT - ( 42 ) ) col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6773
SELECT DISTINCT MIN ( DISTINCT - ( 42 ) ) col2 FROM tab2 AS cor0
----
-42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6775
SELECT - 13 DIV - - col2 col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - + col2 * - 92 FROM tab0 AS cor0
----
4324
9108
920

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT 35 * CAST( 90 AS SIGNED ) AS col0 FROM tab1
----
3150
3150
3150

skipif mysql # not compatible
query I rowsort label-6780
SELECT 35 * CAST ( 90 AS INTEGER ) AS col0 FROM tab1
----
3150
3150
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL 13 * COUNT( * ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL 13 * COUNT ( * ) AS col1 FROM tab2
----
39

query I rowsort
SELECT ALL 96 AS col2 FROM tab2 WHERE + col0 * + col0 IS NULL
----

query I rowsort
SELECT - col1 + - col0 * 18 FROM tab2
----
-1229
-1417
-879

query I rowsort
SELECT DISTINCT + col2 * - 39 + col2 AS col2 FROM tab1
----
-2242
-2584
-3648

query I rowsort
SELECT - col2 + - ( - col1 ) FROM tab0
----
-98
11
34

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 69 * + col0 BETWEEN ( NULL ) AND + 21
----

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

skipif mysql # not compatible
query I rowsort label-6789
SELECT - CAST ( NULL AS INTEGER ) * + 14 - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 3 AS col1 FROM tab0
----
261
291
45

query I rowsort
SELECT ALL + col1 * - 1 FROM tab2
----
-51
-67
-77

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

query I rowsort
SELECT DISTINCT - 71 FROM tab1 WHERE NOT + 79 + + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col1 FROM tab1
----
70
70
70

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

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

query I rowsort
SELECT 33 FROM tab0 WHERE NOT - col0 * + 77 IS NOT NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 59 * + 59 FROM tab0
----
3481

query I rowsort
SELECT DISTINCT - 2 FROM tab1 WHERE NULL = + 66
----

query I rowsort
SELECT col1 * 82 AS col0 FROM tab2 WHERE NOT NULL = col0
----

query I rowsort
SELECT DISTINCT 10 + 40 AS col0 FROM tab0
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6806
SELECT 55 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT 55 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT 92 * - CAST( ( + 25 ) AS SIGNED ) FROM tab2
----
-2300
-2300
-2300

skipif mysql # not compatible
query I rowsort label-6807
SELECT 92 * - CAST ( ( + 25 ) AS INTEGER ) FROM tab2
----
-2300
-2300
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT MIN( ALL col0 ) * + 50 AS col1 FROM tab0
----
750

skipif mysql # not compatible
query I rowsort label-6808
SELECT MIN ( ALL col0 ) * + 50 AS col1 FROM tab0
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL + COUNT( * ) * - 66 + 6 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + COUNT ( * ) * - 66 + 6 FROM tab0 AS cor0
----
-192

query I rowsort
SELECT - 50 + - col1 * col0 FROM tab0 AS cor0
----
-1265
-147
-1877

query I rowsort
SELECT ALL 33 * - col1 + 10 FROM tab2 cor0
----
-1673
-2201
-2531

query I rowsort
SELECT + 31 + - 95 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-64
-64
-64

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE - 6 - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 < ( col1 )
----
87
21
10
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 77 )
----
0

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

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

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

query I rowsort
SELECT ALL col2 * 37 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 66 + - col2 * ( col2 ) >= + col2 + 38 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 78 * - col2 AS col1 FROM tab0 AS cor0
----
-3666
-7722
-780

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 / + 85 + col2 / col2 ) BETWEEN col1 + - 99 AND 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * 94 AS col0 FROM tab0 AS cor0
----
4418
9306
940

query I rowsort
SELECT DISTINCT - 28 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col1 IS NOT NULL
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT MIN( - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6831
SELECT MIN ( - col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT col1 * + 97 FROM tab1
----
1358
4559
485

query I rowsort
SELECT 65 * ( col0 ) FROM tab2
----
2990
4160
4875

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 97 <= ( NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6837
SELECT - CAST( + col2 AS SIGNED ) DIV + col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT - CAST ( + col2 AS INTEGER ) / + col0 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col0 * + 82 FROM tab2
----
3772
5248
6150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( CAST( + col0 AS SIGNED ) ) <= col0
----

skipif mysql # not compatible
query I rowsort label-6839
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( CAST ( + col0 AS INTEGER ) ) <= col0
----

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

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

query I rowsort
SELECT DISTINCT col1 + 36 * 78 AS col0 FROM tab1 AS cor0
----
2813
2822
2855

query I rowsort
SELECT 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query II rowsort
SELECT col2 AS col0, - 32 * 68 FROM tab0
----
10
-2176
47
-2176
99
-2176

query I rowsort
SELECT - - 79 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

query I rowsort
SELECT DISTINCT - 35 * + 73 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-2555

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT col0 + - + ( + CAST( 50 AS SIGNED ) ) + - 87 FROM tab0 AS cor0
----
-122
-40
-50

skipif mysql # not compatible
query I rowsort label-6848
SELECT col0 + - + ( + CAST ( 50 AS INTEGER ) ) + - 87 FROM tab0 AS cor0
----
-122
-40
-50

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR NULL NOT IN ( col2 / 27 )
----
0

skipif mysql # not compatible
query I rowsort label-6851
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR NULL NOT IN ( col2 / 27 )
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT SUM( ALL 27 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT SUM ( ALL 27 ) FROM tab1
----
81

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 38 / 30 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 13 + + 36 * + col2 FROM tab0
----
1705
3577
373

query I rowsort
SELECT ( + col1 ) * - col2 FROM tab1 WHERE NULL NOT BETWEEN + - 26 AND col0 * - col2
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6863
SELECT ALL - 54 + + ( - COUNT ( * ) ) col0 FROM tab2
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - col0 - col1 col2 FROM tab2 cor0
----
-3961
-5517
-6442

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT - col2 DIV col0 AS col1 FROM tab1 AS cor0 WHERE col1 DIV - col2 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT - col2 / col0 AS col1 FROM tab1 AS cor0 WHERE col1 / - col2 IS NOT NULL
----
-1
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col0 + + col1 + col0 col0 FROM tab2 AS cor0
----
1155
2701
4492

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

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

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

query I rowsort
SELECT col1 * 1 * + 32 FROM tab0
----
2592
32
672

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

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

query I rowsort
SELECT + - col1 * 36 FROM tab1 AS cor0
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT + COUNT( * ) AS col0, - MIN( - 36 ) + MIN( ALL - col2 ) * + 84 AS col2 FROM tab0 AS cor0
----
3
-8280

skipif mysql # not compatible
query II rowsort label-6874
SELECT + COUNT ( * ) AS col0, - MIN ( - 36 ) + MIN ( ALL - col2 ) * + 84 AS col2 FROM tab0 AS cor0
----
3
-8280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT ( 66 NOT BETWEEN NULL AND - 8 * + + col0 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT ( 66 NOT BETWEEN NULL AND - 8 * + + col0 + - col0 )
----
0

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

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

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

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT + 30 IS NULL
----
-51
-67
-77

query I rowsort
SELECT + col1 + - 76 - + col1 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT + 95 + - col1 FROM tab2 AS cor0
----
18
28
44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT ALL CAST( + col1 AS SIGNED ) + - 94 FROM tab1
----
-47
-80
-89

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL CAST ( + col1 AS INTEGER ) + - 94 FROM tab1
----
-47
-80
-89

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 = NULL
----

query I rowsort
SELECT DISTINCT 50 + col1 AS col0 FROM tab0
----
131
51
71

query I rowsort
SELECT DISTINCT + col1 * col0 + 71 FROM tab1 AS cor0
----
4348
496
785

query I rowsort
SELECT DISTINCT - + ( 37 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 6 FROM tab0 cor0 WHERE NOT ( - 75 ) NOT IN ( + col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT - - 27 - 66 * + 33 - MIN( + - 43 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-2022

skipif mysql # not compatible
query I rowsort label-6889
SELECT - - 27 - 66 * + 33 - MIN ( + - 43 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-2022

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( + col1, - 30 - + + 11 * 57 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6891
SELECT ALL - + col1 DIV col1 * + col0 AS col1 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - + col1 / col1 * + col0 AS col1 FROM tab1 cor0
----
-51
-85
-91

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

query I rowsort
SELECT DISTINCT + - 45 * 11 FROM tab1 AS cor0
----
-495

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN - 90 * - col2 AND ( 45 / - 42 + - 17 * - col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - col2 * - col2 * + 78 col0 FROM tab0
----
-15
172302
-87
7800
-97
764478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + - - 14 * + + col2 col2 FROM tab2 WHERE NULL IS NULL
----
364
602
854

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6897
SELECT * FROM tab0 WHERE - - CAST( 32 AS SIGNED ) NOT IN ( - - 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6897
SELECT * FROM tab0 WHERE - - CAST ( 32 AS INTEGER ) NOT IN ( - - 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 34 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
34

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT DISTINCT - col1 + 25 + 91 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - col1 + 25 + 91 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + col1 + + col2 * - 97 AS col1 FROM tab1
----
-5713
-6502
-9284

onlyif mysql # DIV for integer division: 
query I rowsort label-6903
SELECT col0 DIV - - ( - 31 ) AS col0 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6903
SELECT col0 / - - ( - 31 ) AS col0 FROM tab1
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL COUNT( + 95 ) AS col1 FROM tab2 WHERE col1 NOT IN ( - 16 )
----
3

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL COUNT ( + 95 ) AS col1 FROM tab2 WHERE col1 NOT IN ( - 16 )
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL 11 * - COUNT( * ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL 11 * - COUNT ( * ) FROM tab2
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 69 col0 FROM tab1 AS cor0 WHERE NOT + 56 * + col2 + + col1 + + 7 NOT IN ( col2 / + col0 + col2 )
----

query I rowsort
SELECT ALL + 91 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + 15 + - col0 * + col1, 91 )
----

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

skipif mysql # not compatible
query I rowsort label-6909
SELECT SUM ( ALL ( + - col1 ) ) FROM tab2
----
-195

query I rowsort
SELECT ALL col2 * col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR col0 + + + ( + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT - - 73 * COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-6911
SELECT - - 73 * COUNT ( * ) FROM tab0 AS cor0
----
219

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

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

query I rowsort
SELECT DISTINCT - ( - 74 ) FROM tab0 AS cor0
----
74

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

skipif mysql # not compatible
query II rowsort label-6914
SELECT 9 + + COUNT ( * ) AS col0, - 61 FROM tab1 AS cor0
----
12
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6915
SELECT - CAST( - 14 AS SIGNED ) * + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN col0 AND NULL
----
14
294

skipif mysql # not compatible
query I rowsort label-6915
SELECT - CAST ( - 14 AS INTEGER ) * + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN col0 AND NULL
----
14
294

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT DISTINCT col1 + col2 DIV - col1 + + 96 col2 FROM tab1
----
104
142
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6916
SELECT DISTINCT col1 + col2 / - col1 + + 96 col2 FROM tab1
----
104
142
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6917
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6917
SELECT + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6919
SELECT ALL - ( COUNT( * ) ) AS col2, - 17 FROM tab2 WHERE NOT - 82 NOT BETWEEN NULL AND + 71
----
0
-17

skipif mysql # not compatible
query II rowsort label-6919
SELECT ALL - ( COUNT ( * ) ) AS col2, - 17 FROM tab2 WHERE NOT - 82 NOT BETWEEN NULL AND + 71
----
0
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) * - 38 + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) * - 38 + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT DISTINCT - SUM( DISTINCT 74 ) AS col0 FROM tab1 WHERE NOT - - 79 BETWEEN NULL AND ( - CAST( - - col1 AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT - SUM ( DISTINCT 74 ) AS col0 FROM tab1 WHERE NOT - - 79 BETWEEN NULL AND ( - CAST ( - - col1 AS INTEGER ) )
----
-74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 >= - col2 * + 39
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 / - col2 + col2 ) IS NOT NULL
----

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

query I rowsort
SELECT - 71 * + col2 * + 42 FROM tab1 AS cor0
----
-175938
-202776
-286272

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

query I rowsort
SELECT ALL + col0 * + 47 * 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 30 * - - 4 * + col2 * + 79 FROM tab2 AS cor0
----
218040
379200
549840

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL BETWEEN + col2 + + - 17 / + - col1 AND 87 - + col2 * - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT ALL + COUNT( * ) + - - ( - MIN( DISTINCT + - col2 ) ) AS col2, COUNT( * ) col1 FROM tab2
----
61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6930
SELECT ALL + COUNT ( * ) + - - ( - MIN ( DISTINCT + - col2 ) ) AS col2, COUNT ( * ) col1 FROM tab2
----
61
3

query I rowsort
SELECT ALL 35 + col0 AS col1 FROM tab0
----
122
132
50

query I rowsort
SELECT ALL - + 52 + col2 FROM tab2 AS cor0
----
-12
-29
6

query I rowsort
SELECT ALL - 75 * - col1 FROM tab1 AS cor0
----
1050
3525
375

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL + COUNT( * ) - - COUNT( * ) * - - 99 AS col1 FROM tab1 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + COUNT ( * ) - - COUNT ( * ) * - - 99 AS col1 FROM tab1 AS cor0
----
300

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( - col2 )
----

query I rowsort
SELECT col0 * 75 + + 75 AS col1 FROM tab2 AS cor0
----
3525
4875
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT ALL + COUNT( - col0 ) * 70 AS col2 FROM tab0 AS cor0 WHERE NOT + 18 * + + ( - ( 57 ) ) + ( - 19 ) NOT IN ( - + 10 * - col0, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + COUNT ( - col0 ) * 70 AS col2 FROM tab0 AS cor0 WHERE NOT + 18 * + + ( - ( 57 ) ) + ( - 19 ) NOT IN ( - + 10 * - col0, + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT ALL + 66 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL + 66 / - col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT - ( + MAX( + 90 ) ) * - 77 FROM tab2 AS cor0
----
6930

skipif mysql # not compatible
query I rowsort label-6940
SELECT - ( + MAX ( + 90 ) ) * - 77 FROM tab2 AS cor0
----
6930

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT 48 * + 43 * - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
18576

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT 48 * + 43 * - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
18576

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 39 * + ( - + col2 ) * - - col0 BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6948
SELECT COUNT( + + col0 ), 83 AS col2 FROM tab1 AS cor0
----
3
83

skipif mysql # not compatible
query II rowsort label-6948
SELECT COUNT ( + + col0 ), 83 AS col2 FROM tab1 AS cor0
----
3
83

query II rowsort
SELECT + col1 AS col2, 99 * + - col2 * col1 AS col1 FROM tab2
----
51
-116127
67
-384714
77
-304920

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

query I rowsort
SELECT ALL + - col0 * col2 * + col1 * - 78 FROM tab1 AS cor0
----
1955850
22685208
5346432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * - + col1 * - col0 + col0 + + ( + col1 ) * + 99 + - ( col0 ) col1 FROM tab1 AS cor0
----
41720
419522
70644

query I rowsort
SELECT - 92 * + - 51 FROM tab1 AS cor0
----
4692
4692
4692

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL MIN( DISTINCT - 30 ) AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL MIN ( DISTINCT - 30 ) AS col2 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL + 93 + - - col2 FROM tab0 AS cor0
----
103
140
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 70 < + - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 32 ) + col2 col1 FROM tab0 AS cor0 WHERE - ( 68 ) - + - 11 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col1 + 31 AS col0 FROM tab0
----
1246
128
1858

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6961
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * + col0 * - col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6961
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * + col0 * - col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT 34 + SUM( ALL - + col0 ) * + 81 AS col0 FROM tab1
----
-18353

skipif mysql # not compatible
query I rowsort label-6963
SELECT 34 + SUM ( ALL - + col0 ) * + 81 AS col0 FROM tab1
----
-18353

query I rowsort
SELECT ALL + col1 * - 37 + - col1 FROM tab0
----
-3078
-38
-798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + col1 col2 FROM tab1 AS cor0
----
-19
-52
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6966
SELECT ALL - MAX( CAST( NULL AS DECIMAL ) ) - - - CAST( 95 AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - + 29 * - ( col1 ) col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

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

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

query I rowsort
SELECT ALL + col2 + + col2 * + col2 + - + col0 * - 46 AS col1 FROM tab2 cor0
----
2668
4584
6872

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT + MAX( + ( ( + col1 ) ) ) - + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6972
SELECT + MAX ( + ( ( + col1 ) ) ) - + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
78

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT - 30 * - 59 * + - COUNT( * ) FROM tab2
----
-5310

skipif mysql # not compatible
query I rowsort label-6976
SELECT - 30 * - 59 * + - COUNT ( * ) FROM tab2
----
-5310

query I rowsort
SELECT 7 * - 23 * + col1 FROM tab0
----
-13041
-161
-3381

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

skipif mysql # not compatible
query I rowsort label-6978
SELECT COUNT ( ALL col2 ) AS col2 FROM tab2
----
3

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

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

query I rowsort
SELECT ( 79 ) * + ( - - 52 ) AS col2 FROM tab1
----
4108
4108
4108

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

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) FROM tab2 WHERE + 40 BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT ALL 63 * + col0 FROM tab2
----
2898
4032
4725

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT ALL ( col2 ) DIV - col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL ( col2 ) / - col2 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT 8 col2, + COUNT( * ) + 41 AS col2 FROM tab0 cor0
----
8
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6984
SELECT 8 col2, + COUNT ( * ) + 41 AS col2 FROM tab0 cor0
----
8
44

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT ALL - - 49 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - - 49 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 10 * - col0 + + + col1 * + - col0 AS col0 FROM tab0 AS cor0
----
-1067
-1365
-2697

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL COUNT( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

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

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

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

query I rowsort
SELECT + col0 + + 97 AS col1 FROM tab2 AS cor0
----
143
161
172

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

skipif mysql # not compatible
query I rowsort label-6992
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 22 + - 69 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT + MIN( ALL col2 ) * CAST( NULL AS SIGNED ) + ( + + 78 ) - 36 FROM tab1 AS cor0 WHERE + col1 * + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT + MIN ( ALL col2 ) * CAST ( NULL AS INTEGER ) + ( + + 78 ) - 36 FROM tab1 AS cor0 WHERE + col1 * + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT col2 + + col0 - 69 * - - col2 AS col0 FROM tab0
----
-3181
-593
-6635

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT - col1 * - col1 + + 59 DIV - - col1 FROM tab1
----
200
2210
36

skipif mysql # not compatible
query I rowsort label-6995
SELECT - col1 * - col1 + + 59 / - - col1 FROM tab1
----
200
2210
36

query I rowsort
SELECT ALL col0 * col0 + - + col1 * + 1 * + - 29 FROM tab0
----
2574
8178
9438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT ALL - 62 FROM tab0 WHERE NULL > ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - 62 FROM tab0 WHERE NULL > ( - + CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT + ( + 69 ) + + MAX( - col1 ) AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT + ( + 69 ) + + MAX ( - col1 ) AS col1 FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL + COUNT( * ) + - 21 - 85 - + 39 FROM tab2
----
-142

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + COUNT ( * ) + - 21 - 85 - + 39 FROM tab2
----
-142

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

skipif mysql # not compatible
query I rowsort label-7001
SELECT ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 + - + 23 / col0 BETWEEN - col0 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-7003
SELECT MAX ( - + col0 ) AS col0 FROM tab1
----
-51

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

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

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

query I rowsort
SELECT DISTINCT - 11 - col1 AS col0 FROM tab2 AS cor0
----
-62
-78
-88

query I rowsort
SELECT - col2 - + - 62 AS col2 FROM tab2 AS cor0
----
22
39
4

query II rowsort
SELECT col0 + - col2 AS col2, - 1 AS col0 FROM tab1
----
-45
-1
23
-1
26
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT - col1 DIV col1 + - - col0 AS col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-7010
SELECT - col1 / col1 + - - col0 AS col0 FROM tab0
----
14
86
96

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

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

query II rowsort
SELECT - 27 AS col2, col2 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + - 72 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT ALL + - SUM( ALL - 72 ) DIV 79 col2 FROM tab0 AS cor0 WHERE + col1 < col1 * + + col0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7013
SELECT ALL + - SUM ( ALL - 72 ) / 79 col2 FROM tab0 AS cor0 WHERE + col1 < col1 * + + col0
----
2

query II rowsort
SELECT - - ( + col0 ), + col2 * - ( + - col0 ) AS col0 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

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

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

query I rowsort
SELECT ALL + 12 * - col2 FROM tab1 AS cor0
----
-1152
-708
-816

query II rowsort
SELECT - 46 * col0 AS col0, + 81 * + col2 AS col2 FROM tab2 AS cor0
----
-2116
1863
-2944
3240
-3450
4698

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 4 * - col0 BETWEEN + col1 AND + col0 / + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - + col0 * + + col2 FROM tab2
----
-102400
-24334
-252300

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 52 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + MAX( DISTINCT - 20 ) AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-7024
SELECT + MAX ( DISTINCT - 20 ) AS col1 FROM tab2
----
-20

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

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

query I rowsort
SELECT col2 * + 7 * + + col1 FROM tab2
----
21560
27202
8211

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < + 61
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7031
SELECT - col2, col2 DIV 95 AS col1 FROM tab1 AS cor0
----
-59
0
-68
0
-96
1

skipif mysql # not compatible
query II rowsort label-7031
SELECT - col2, col2 / 95 AS col1 FROM tab1 AS cor0
----
-59
0
-68
0
-96
1

query I rowsort
SELECT - 86 * + col0 * ( - - 49 ) * - col1 AS col1 FROM tab2 AS cor0
----
20766592
21175350
9886044

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT - MAX( col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
-77

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

query II rowsort
SELECT DISTINCT - col1 AS col0, ( + 59 ) * + - col0 + 70 - col0 + - 31 * 64 FROM tab1 AS cor0
----
-14
-4974
-47
-7374
-5
-7014

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 33 * + - 50 - + 39 * + - 76 NOT BETWEEN NULL AND 79 + + 28 + 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col0, 36 AS col2 FROM tab2 AS cor0 WHERE - col0 + - 42 * + col2 <= - col1
----
51
36
67
36
77
36

query I rowsort
SELECT ALL + ( - col0 ) + + col1 * 11 AS col0 FROM tab2
----
515
662
783

query I rowsort
SELECT + 52 + col0 + - col2 AS col2 FROM tab2
----
69
75
76

query I rowsort
SELECT - + ( 50 ) * - col0 FROM tab1 WHERE NULL IS NULL
----
2550
4250
4550

query III rowsort
SELECT * FROM tab1 WHERE - 63 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT col1 DIV col2 + + - 38 FROM tab2
----
-36
-37
-37

skipif mysql # not compatible
query I rowsort label-7042
SELECT col1 / col2 + + - 38 FROM tab2
----
-36
-37
-37

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

query I rowsort
SELECT ALL - - col0 * ( + + 64 ) AS col0 FROM tab0 AS cor0
----
5568
6208
960

query II rowsort
SELECT ALL col2 - - - col2, + 17 AS col0 FROM tab0 AS cor0
----
0
17
0
17
0
17

query I rowsort
SELECT DISTINCT + col0 * + 26 AS col2 FROM tab0
----
2262
2522
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT - CAST( + + ( col2 ) AS SIGNED ) * - 34 FROM tab2
----
1360
1972
782

skipif mysql # not compatible
query I rowsort label-7047
SELECT - CAST ( + + ( col2 ) AS INTEGER ) * - 34 FROM tab2
----
1360
1972
782

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

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

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab2 cor0
----
51
51
67
67
77
77

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

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

query I rowsort
SELECT ALL + ( - col0 ) * col2 * col2 FROM tab1
----
-295885
-420784
-470016

query II rowsort
SELECT + 57 * + + 63 * + 65 * + 35 AS col2, + col0 FROM tab0
----
8169525
15
8169525
87
8169525
97

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-3

query I rowsort
SELECT - ( 22 ) FROM tab2
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7058
SELECT ALL + MIN( + col1 ), - MAX( ALL 63 ) AS col1 FROM tab2 AS cor0
----
51
-63

skipif mysql # not compatible
query II rowsort label-7058
SELECT ALL + MIN ( + col1 ), - MAX ( ALL 63 ) AS col1 FROM tab2 AS cor0
----
51
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT - col0 DIV col2 + - + col0 AS col0 FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-7059
SELECT - col0 / col2 + - + col0 AS col0 FROM tab1 AS cor0
----
-51
-86
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7061
SELECT DISTINCT col1 + 20 + + - CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
29
48
57

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT col1 + 20 + + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
29
48
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7062
SELECT DISTINCT - col2 / + 27 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - col2 / + 27 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL + 90 * + - COUNT( DISTINCT col2 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL + 90 * + - COUNT ( DISTINCT col2 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT DISTINCT + COUNT( - - col1 ) * - 14 col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7064
SELECT DISTINCT + COUNT ( - - col1 ) * - 14 col2 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL col1 * + 69 AS col0 FROM tab2 AS cor0
----
3519
4623
5313

query II rowsort
SELECT DISTINCT + col1 * - 72 + + 4, + col1 AS col0 FROM tab1 AS cor0
----
-1004
14
-3380
47
-356
5

query I rowsort
SELECT ALL + 27 + - - ( - 1 ) * - 48 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT - col0 DIV 14 FROM tab2 cor0
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-7068
SELECT - col0 / 14 FROM tab2 cor0
----
-3
-4
-5

query I rowsort
SELECT ALL + col2 + + col1 + - 96 FROM tab2
----
-22
21
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7070
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + 35 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT CAST ( NULL AS REAL ) + - + 35 FROM tab0
----
NULL

query I rowsort
SELECT ( - - ( col1 ) ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL ( - SUM( col0 ) ) + - + MAX( col0 ) * + MIN( + col2 ) AS col2 FROM tab2
----
-1910

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL ( - SUM ( col0 ) ) + - + MAX ( col0 ) * + MIN ( + col2 ) AS col2 FROM tab2
----
-1910

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7074
SELECT DISTINCT COUNT( * ) + - 13 AS col2, - COUNT( * ) * - 20 + + CAST( NULL AS DECIMAL ) FROM tab1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-7074
SELECT DISTINCT COUNT ( * ) + - 13 AS col2, - COUNT ( * ) * - 20 + + CAST ( NULL AS REAL ) FROM tab1
----
-10
NULL

query I rowsort
SELECT + col0 - - ( + 99 ) AS col1 FROM tab0 AS cor0
----
114
186
196

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

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

query I rowsort
SELECT - + col0 * - 30 - - col2 + + col2 FROM tab1 AS cor0
----
1722
2668
2866

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

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

query I rowsort
SELECT DISTINCT - + 36 AS col2 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT 85 * + - col0 FROM tab2
----
-3910
-5440
-6375

query I rowsort
SELECT ALL 56 + - col2 FROM tab1 WHERE - col0 * col2 IS NULL
----

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

query I rowsort
SELECT DISTINCT + ( + + 75 ) * + + 3 * col2 AS col0 FROM tab0 AS cor0
----
10575
22275
2250

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * - 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * - 43 FROM tab0 AS cor0
----
2021
4257
430

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + SUM( ALL - + ( + 39 ) ) AS col2 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7086
SELECT + SUM ( ALL - + ( + 39 ) ) AS col2 FROM tab1 AS cor0
----
-117

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 cor0 WHERE ( + 1 - + - ( - + col2 ) ) < 27 * + - 39 * + - 63 * + + 84 + - 8
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT - 48 * COUNT( * ) * - 43 * + ( - + COUNT( * ) ) FROM tab2
----
-18576

skipif mysql # not compatible
query I rowsort label-7088
SELECT - 48 * COUNT ( * ) * - 43 * + ( - + COUNT ( * ) ) FROM tab2
----
-18576

query I rowsort
SELECT ALL ( - 73 ) FROM tab1
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab1 WHERE 9 + + col0 IS NULL
----

query II rowsort
SELECT - col2, col1 * - 51 AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT 40 + 18 / - col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-7092
SELECT col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT 40 + 18 / - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7093
SELECT col1, col0 DIV + + col2 + - - col1 col0 FROM tab0
----
1
1
21
29
81
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7093
SELECT col1, col0 / + + col2 + - - col1 col0 FROM tab0
----
1
1
21
29
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7094
SELECT + + COUNT( * ) AS col1, 7 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7094
SELECT + + COUNT ( * ) AS col1, 7 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT - col1 + + ( col2 ) FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT SUM( col0 ) * - COUNT( * ) + + + COUNT( * ) FROM tab1 cor0
----
-678

skipif mysql # not compatible
query I rowsort label-7096
SELECT SUM ( col0 ) * - COUNT ( * ) + + + COUNT ( * ) FROM tab1 cor0
----
-678

query I rowsort
SELECT ALL 68 * - - col1 FROM tab0
----
1428
5508
68

query II rowsort
SELECT - col2 * col2 AS col0, + 94 * - 33 AS col1 FROM tab2 AS cor0
----
-1600
-3102
-3364
-3102
-529
-3102

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE ( 36 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT + SUM( DISTINCT - - col0 ) * - 93 col1 FROM tab0 AS cor0
----
-18507

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7101
SELECT + SUM ( DISTINCT - - col0 ) * - 93 col1 FROM tab0 AS cor0
----
-18507

query I rowsort
SELECT - + col0 * + 32 * + + col1 FROM tab1 AS cor0
----
-13600
-136864
-22848

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT DISTINCT - - SUM( ALL 10 ) col1, 88 AS col0 FROM tab0 AS cor0
----
30
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7103
SELECT DISTINCT - - SUM ( ALL 10 ) col1, 88 AS col0 FROM tab0 AS cor0
----
30
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT 3 * + MIN( 13 ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT 3 * + MIN ( 13 ) FROM tab1 AS cor0
----
39

query I rowsort
SELECT 84 * 24 - col1 FROM tab2 AS cor0
----
1939
1949
1965

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT 11 * + SUM( - col1 ) + + 72 + 32 + 40 AS col0 FROM tab0 AS cor0
----
-989

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT 11 * + SUM ( - col1 ) + + 72 + 32 + 40 AS col0 FROM tab0 AS cor0
----
-989

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 80 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col1 + + 56 AS col2 FROM tab0
----
137
57
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT 86 DIV 56 + 39 AS col1 FROM tab0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-7109
SELECT 86 / 56 + 39 AS col1 FROM tab0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT ALL CAST( NULL AS SIGNED ) / + - 9 * ( - col0 ) * 93 + - col1 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL CAST ( NULL AS INTEGER ) / + - 9 * ( - col0 ) * 93 + - col1 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + 59 + 99 FROM tab2
----
158
158
158

query I rowsort
SELECT ALL - col2 * col2 + + ( 17 ) AS col0 FROM tab2
----
-1583
-3347
-512

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7114
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) DIV col2 DIV + - col1 * - col0 + col1 + col1 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) / col2 / + - col1 * - col0 + col1 + col1 FROM tab2
----
102
134
154

query I rowsort
SELECT DISTINCT + col2 + 9 FROM tab2
----
32
49
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT SUM( ALL + - col2 ) - - + ( 91 ) col1 FROM tab1
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7116
SELECT DISTINCT SUM ( ALL + - col2 ) - - + ( 91 ) col1 FROM tab1
----
-132

query I rowsort
SELECT - col0 + - + 51 FROM tab0
----
-138
-148
-66

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

query I rowsort
SELECT ALL - col1 + - - 40 FROM tab1
----
-7
26
35

query I rowsort
SELECT DISTINCT + col0 - + 15 + - - 47 * - col1 AS col2 FROM tab0
----
-3807
-915
35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * 11 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + ( + col1 ) + + - 5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-102
-1220
-1832

query II rowsort
SELECT - 51, + 63 AS col1 FROM tab0 AS cor0
----
-51
63
-51
63
-51
63

query II rowsort
SELECT ALL 61, + col0 FROM tab0
----
61
15
61
87
61
97

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

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

query I rowsort
SELECT DISTINCT - + 23 * col2 FROM tab2 cor0
----
-1334
-529
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT DISTINCT - col2 DIV - col1 + - col2 + + ( + 87 ) FROM tab1 AS cor0
----
-3
20
39

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - col2 / - col1 + - col2 + + ( + 87 ) FROM tab1 AS cor0
----
-3
20
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT DISTINCT col0 DIV - - col1 AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT col0 / - - col1 AS col0 FROM tab0 AS cor0
----
0
4
97

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT + 54 AS col1, MIN( + col1 ) col0 FROM tab2 AS cor0
----
54
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7132
SELECT + 54 AS col1, MIN ( + col1 ) col0 FROM tab2 AS cor0
----
54
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT CAST( - - col1 AS SIGNED ) + - - col2 + - + col0 + + 75 AS col0 FROM tab0
----
188
19
78

skipif mysql # not compatible
query I rowsort label-7133
SELECT CAST ( - - col1 AS INTEGER ) + - - col2 + - + col0 + + 75 AS col0 FROM tab0
----
188
19
78

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7135
SELECT - ( + col2 ), + ( col0 ) DIV + - col2 + - col1 AS col2 FROM tab0
----
-10
-29
-47
-81
-99
-1

skipif mysql # not compatible
query II rowsort label-7135
SELECT - ( + col2 ), + ( col0 ) / + - col2 + - col1 AS col2 FROM tab0
----
-10
-29
-47
-81
-99
-1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7137
SELECT - 15 DIV - CAST( + + 19 AS SIGNED ) * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT - 15 / - CAST ( + + 19 AS INTEGER ) * - col1 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + + 80, 53 AS col0 FROM tab0 AS cor0
----
80
53

query I rowsort
SELECT ALL + - 87 - - 34 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, col1 + + + 5 * + col2 AS col1 FROM tab0 AS cor0
----
10
71
47
316
99
496

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT 29 DIV - col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-7145
SELECT 29 / - col1 FROM tab1
----
-2
-5
0

query I rowsort
SELECT ALL ( - col0 ) * + - col1 AS col0 FROM tab2
----
2346
4928
5025

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7147
SELECT DISTINCT AVG ( + + col1 ) * + CAST ( NULL AS INTEGER ) + CAST ( + 61 AS INTEGER ) col2 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - 71 / - col0 + + col2 FROM tab2 AS cor0
----
24
41
58

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT ALL - col2 DIV - col2 + - - col0 AS col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - col2 / - col2 + - - col0 AS col2 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 53 + col2 - - 11 IS NOT NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT IN ( + col1 - col1, + col1 * - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT ALL + col2 * col0 DIV - 86 col2 FROM tab1
----
-56
-58
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7156
SELECT ALL + col2 * col0 / - 86 col2 FROM tab1
----
-56
-58
-71

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN + col2 AND - col2
----

query I rowsort
SELECT ALL - col2 * - col1 + col1 FROM tab0
----
100
231
3888

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

query I rowsort
SELECT + ( col2 ) + + 79 AS col0 FROM tab2
----
102
119
137

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - + COUNT( * ) + MAX( ALL + 45 ) AS col2 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7162
SELECT - + COUNT ( * ) + MAX ( ALL + 45 ) AS col2 FROM tab1 AS cor0
----
42

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 81 * + 6 * - 0 + + + 85 * - col2 AS col2 FROM tab0
----
-3995
-8415
-850

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT DISTINCT 60 - - col2 DIV 10 AS col2 FROM tab2
----
62
64
65

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT 60 - - col2 / 10 AS col2 FROM tab2
----
62
64
65

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

query II rowsort
SELECT - + 19 * + col0 - + + 90 AS col0, + 8 AS col1 FROM tab0 AS cor0
----
-1743
8
-1933
8
-375
8

query I rowsort
SELECT ALL 40 - - 56 AS col0 FROM tab0 AS cor0
----
96
96
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + MAX( ALL + - 93 ) AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-7175
SELECT + MAX ( ALL + - 93 ) AS col2 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7176
SELECT ALL col2 AS col1, ( + col2 ) + - - col1 + + ( col0 ) AS col1, + + 45 + CAST( NULL AS SIGNED ) col1 FROM tab0
----
9 values hashing to a2e5f06157be2ad7ef7c9ecb4e26ca72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7176
SELECT ALL col2 AS col1, ( + col2 ) + - - col1 + + ( col0 ) AS col1, + + 45 + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
9 values hashing to a2e5f06157be2ad7ef7c9ecb4e26ca72

query I rowsort
SELECT ALL col0 * - - 86 FROM tab2
----
3956
5504
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT SUM( DISTINCT + ( - + 91 ) ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-7178
SELECT SUM ( DISTINCT + ( - + 91 ) ) FROM tab2
----
-91

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

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

query I rowsort
SELECT DISTINCT - 17 * 41 AS col0 FROM tab1
----
-697

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 18, + col2 col2 FROM tab1 AS cor0
----
-18
59
-18
68
-18
96

query II rowsort
SELECT - - ( - + 54 ) * col0 AS col1, - col2 * + 24 FROM tab2 AS cor0
----
-2484
-552
-3456
-960
-4050
-1392

query III rowsort
SELECT * FROM tab1 WHERE NOT - 99 = + + col0 * - - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-7185
SELECT ALL + col1 DIV - 45, - col2 AS col2 FROM tab1
----
-1
-68
0
-59
0
-96

skipif mysql # not compatible
query II rowsort label-7185
SELECT ALL + col1 / - 45, - col2 AS col2 FROM tab1
----
-1
-68
0
-59
0
-96

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

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

query I rowsort
SELECT + 34 * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
2001
2265
3250

query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab1 AS cor0 WHERE - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT + + col2 + - col1 + + col0 + - + CAST( 48 AS SIGNED ) FROM tab0 AS cor0
----
-67
147
28

skipif mysql # not compatible
query I rowsort label-7189
SELECT + + col2 + - col1 + + col0 + - + CAST ( 48 AS INTEGER ) FROM tab0 AS cor0
----
-67
147
28

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 + - 98 * col2 BETWEEN - + col1 + + 47 AND - col2 + col0
----

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

skipif mysql # not compatible
query I rowsort label-7191
SELECT - ( - MIN ( DISTINCT - col1 ) ) + 4 FROM tab1
----
-43

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 + col1 NOT BETWEEN + 2 AND NULL
----
97
1
99

query I rowsort
SELECT + 3 + - col2 AS col0 FROM tab0
----
-44
-7
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NULL >= + 92
----
0

skipif mysql # not compatible
query I rowsort label-7195
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL >= + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL - 67 * + - 28 + - + COUNT( DISTINCT - 54 ) FROM tab0
----
1875

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - 67 * + - 28 + - + COUNT ( DISTINCT - 54 ) FROM tab0
----
1875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * col2 col2 FROM tab2
----
1664
3439
575

query I rowsort
SELECT + 65 * + col0 AS col0 FROM tab2 AS cor0 WHERE ( + - ( + + col0 ) ) + - col1 / 65 = 84 / + ( + 85 ) + + col2 + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT COUNT( * ) * MAX( ALL + + ( + col0 ) ) - - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7199
SELECT COUNT ( * ) * MAX ( ALL + + ( + col0 ) ) - - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
297

query I rowsort
SELECT 56 FROM tab1 AS cor0 WHERE ( NULL ) <= - 32
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 87 + - col2 BETWEEN - - 43 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7202
SELECT ALL CAST( + col2 AS SIGNED ) * - ( col2 ) col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7202
SELECT ALL CAST ( + col2 AS INTEGER ) * - ( col2 ) col2 FROM tab0
----
-100
-2209
-9801

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

skipif mysql # not compatible
query I rowsort label-7203
SELECT + - CAST ( + - 58 AS INTEGER ) FROM tab2 WHERE - + col2 * - col1 * CAST ( NULL AS INTEGER ) IS NULL
----
58
58
58

query I rowsort
SELECT ALL col2 * + + col0 - - + ( col0 ) + + + 16 FROM tab0
----
736
9716
973

query I rowsort
SELECT col0 * - - col2 + - col2 AS col1 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT ALL - + 25 * + + ( + col1 ) + - + col1 + - col1 + + + col2 * + 97 AS col0 FROM tab2 AS cor0 WHERE + 31 = - 34
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 38 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL < 2 * - col1 * - 77
----

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

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

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

query I rowsort
SELECT ALL 30 * 75 FROM tab1
----
2250
2250
2250

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 16 = NULL )
----

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

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

query II rowsort
SELECT DISTINCT 65, - 21 + + col1 - - col1 AS col2 FROM tab0
----
65
-19
65
141
65
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7216
SELECT DISTINCT - COUNT( * ), MIN( + col1 ) + - ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7216
SELECT DISTINCT - COUNT ( * ), MIN ( + col1 ) + - ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-3
NULL

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

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

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

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

query I rowsort
SELECT ALL - ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - 26
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL SUM( DISTINCT - col2 ) * - - 11 AS col2 FROM tab1 cor0
----
-2453

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL SUM ( DISTINCT - col2 ) * - - 11 AS col2 FROM tab1 cor0
----
-2453

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT ALL - 50 * - COUNT( + col1 ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL - 50 * - COUNT ( + col1 ) FROM tab1
----
150

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

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

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

query I rowsort
SELECT DISTINCT 26 * + col2 - col2 FROM tab1
----
1475
1700
2400

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

skipif mysql # not compatible
query I rowsort label-7227
SELECT + col0 / + + 47 + + CAST ( NULL AS INTEGER ) - + - CAST ( ( col0 ) AS INTEGER ) * + 39 * col1 * + col0 + + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 67 + col2 * + - 47 AS col0 FROM tab2
----
-1014
-1813
-2659

query I rowsort
SELECT DISTINCT ( - 0 ) + + col1 + - col2 + - col2 AS col1 FROM tab1
----
-113
-178
-89

query I rowsort
SELECT DISTINCT 46 + - col0 + - col2 AS col1 FROM tab0
----
-150
-16
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT - + 43 DIV - + col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
49
99

skipif mysql # not compatible
query I rowsort label-7231
SELECT - + 43 / - + col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
49
99

query I rowsort
SELECT 15 AS col2 FROM tab1 AS cor0 WHERE col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL - MIN( - 40 ) + 82 + 65 FROM tab0
----
187

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - MIN ( - 40 ) + 82 + 65 FROM tab0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT + MAX( DISTINCT - ( + 88 ) ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-7235
SELECT + MAX ( DISTINCT - ( + 88 ) ) FROM tab0
----
-88

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL MAX ( + 86 ) FROM tab1 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT ALL + + 19 * 59 + - col0 FROM tab2 cor0
----
1046
1057
1075

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

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

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

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

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - 52 * - col2 + col1 / - + col2 * - + ( + 99 ) * - 79 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT col0 * CAST( 57 AS SIGNED ) FROM tab2
----
2622
3648
4275

skipif mysql # not compatible
query I rowsort label-7245
SELECT col0 * CAST ( 57 AS INTEGER ) FROM tab2
----
2622
3648
4275

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

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

query II rowsort
SELECT DISTINCT + 8, col0 AS col0 FROM tab1
----
8
51
8
85
8
91

query I rowsort
SELECT col0 * - - 64 AS col1 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT ( + col0 ) * + + 96 FROM tab2
----
4416
6144
7200

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

query I rowsort
SELECT 90 * + col1 AS col1 FROM tab1
----
1260
4230
450

query II rowsort
SELECT + col2, + ( + col1 ) + - - col2 FROM tab2
----
23
74
40
117
58
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7253
SELECT DISTINCT + - 13, COUNT( * ) col1 FROM tab2 WHERE - CAST( + + col1 AS SIGNED ) * + col2 IS NOT NULL
----
-13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7253
SELECT DISTINCT + - 13, COUNT ( * ) col1 FROM tab2 WHERE - CAST ( + + col1 AS INTEGER ) * + col2 IS NOT NULL
----
-13
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 16 >= col0
----
3

skipif mysql # not compatible
query I rowsort label-7255
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 16 >= col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - MIN( DISTINCT + 98 ) AS col2 FROM tab2 cor0 WHERE NOT - col2 * + ( + + col1 ) * col1 + - 30 <= - - col2 - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT - MIN ( DISTINCT + 98 ) AS col2 FROM tab2 cor0 WHERE NOT - col2 * + ( + + col1 ) * col1 + - 30 <= - - col2 - - 23
----
NULL

query I rowsort
SELECT ALL + 38 + col0 AS col0 FROM tab1
----
123
129
89

query II rowsort
SELECT DISTINCT + 80, - col0 / - + col0 - 32 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + - 92 + + MAX( - 61 ) AS col1 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7259
SELECT + - 92 + + MAX ( - 61 ) AS col1 FROM tab1 AS cor0
----
-153

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

query I rowsort
SELECT ALL - + col2 + - - col0 FROM tab2 AS cor0
----
17
23
24

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

query II rowsort
SELECT - + col2 + col0, - 10 AS col0 FROM tab0 AS cor0
----
-2
-10
-32
-10
77
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * - - 69 col1 FROM tab1
----
-3174
-3174
-3174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + 98 * - - col0 FROM tab0
----
-15
1470
-87
8526
-97
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7266
SELECT + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
46
64
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23 col2, col0 * + col2 FROM tab1
----
23
4896
23
5015
23
6188

query II rowsort
SELECT 23 AS col1, col2 + col0 FROM tab0
----
23
196
23
62
23
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7271
SELECT + CAST( COUNT( * ) AS SIGNED ) - COUNT( * ) * ( + CAST( + ( 80 ) AS SIGNED ) ) FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-7271
SELECT + CAST ( COUNT ( * ) AS INTEGER ) - COUNT ( * ) * ( + CAST ( + ( 80 ) AS INTEGER ) ) FROM tab0
----
-237

query I rowsort
SELECT DISTINCT - col1 - - 29 * + 34 FROM tab0 WHERE NULL NOT BETWEEN col0 AND + col2
----

query I rowsort
SELECT ALL 34 * + 22 AS col0 FROM tab2
----
748
748
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE + col0 <= col2 - col2
----

query I rowsort
SELECT - ( + col1 ) * + col2 + - col1 AS col2 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT - 13 - - 26 IS NOT NULL
----

query I rowsort
SELECT 0 + col0 AS col2 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 81 * 95 IN ( - col0 * - col1 )
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * 34 + - 82 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
1924
2230
3182

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7288
SELECT DISTINCT - COUNT( * ) DIV MAX( DISTINCT + col0 * 48 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT - COUNT ( * ) / MAX ( DISTINCT + col0 * 48 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT DISTINCT - col0 DIV - 4 FROM tab1 AS cor0
----
12
21
22

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - col0 / - 4 FROM tab1 AS cor0
----
12
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT SUM( - col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT SUM ( - col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - 21 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT SUM( ALL + 16 ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7293
SELECT SUM ( ALL + 16 ) AS col2 FROM tab0
----
48

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

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

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

query I rowsort
SELECT col1 * + 28 FROM tab2 AS cor0
----
1428
1876
2156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( 95 )
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7301
SELECT ALL + - COUNT( * ) DIV 64 + 85 AS col0 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + - COUNT ( * ) / 64 + 85 AS col0 FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT col0 * + col0 - col2 * 75 FROM tab1 AS cor0 WHERE NOT - col2 * col1 IN ( col0 )
----
-4599
2800
3181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT ALL CAST( col1 AS SIGNED ) + + 76 FROM tab2
----
127
143
153

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL CAST ( col1 AS INTEGER ) + + 76 FROM tab2
----
127
143
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT 43 + + COUNT( * ) + 7 AS col1 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-7304
SELECT 43 + + COUNT ( * ) + 7 AS col1 FROM tab0
----
53

query I rowsort
SELECT ALL - 79 * + 2 + 58 FROM tab2
----
-100
-100
-100

query I rowsort
SELECT ALL - 67 + - 20 + - col0 AS col0 FROM tab1
----
-138
-172
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT COUNT( * ) + - - 22 + 26 * COUNT( * ) AS col1 FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-7307
SELECT COUNT ( * ) + - - 22 + 26 * COUNT ( * ) AS col1 FROM tab1
----
103

query I rowsort
SELECT + col2 + + 82 FROM tab0
----
129
181
92

query I rowsort
SELECT ALL - col0 + + + ( col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 * - ( - col0 ) * + col2 + 40 * 68 AS col1 FROM tab2
----
-21614
-249580
-99680

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT - 55 + + COUNT( * ) AS col0 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-7311
SELECT - 55 + + COUNT ( * ) AS col0 FROM tab0
----
-52

query I rowsort
SELECT DISTINCT 46 + 15 AS col2 FROM tab1 AS cor0 WHERE NOT 50 NOT BETWEEN + 5 AND + col1
----

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

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

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

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

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

skipif mysql # not compatible
query III rowsort label-7316
SELECT * FROM tab1 WHERE NOT CAST ( col0 AS INTEGER ) <= ( NULL )
----

query I rowsort
SELECT - 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

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

skipif mysql # not compatible
query I rowsort label-7318
SELECT - COUNT ( * ) * + COUNT ( DISTINCT - col1 ) FROM tab1
----
-9

query I rowsort
SELECT - + 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL + 0 * + 72 FROM tab1
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7322
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 33 + - CAST( - 1 AS SIGNED ) AND NULL OR NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7322
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 33 + - CAST ( - 1 AS INTEGER ) AND NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col1 * 16 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1296
16
336

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7325
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( 81 AS SIGNED ) ) >= + col1 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7325
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( 81 AS INTEGER ) ) >= + col1 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT MAX( ALL - CAST( - col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7326
SELECT MAX ( ALL - CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + col2 + col2 * 10 FROM tab2 WHERE NOT + - col1 IN ( - 42 )
----
253
440
638

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7329
SELECT - COUNT( * ) * - COUNT( * ) col2, + 94 AS col2 FROM tab0
----
9
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7329
SELECT - COUNT ( * ) * - COUNT ( * ) col2, + 94 AS col2 FROM tab0
----
9
94

query I rowsort
SELECT + 92 * 88 FROM tab1
----
8096
8096
8096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7331
SELECT DISTINCT COUNT( * ) DIV - MIN( DISTINCT - 75 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT COUNT ( * ) / - MIN ( DISTINCT - 75 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 83 / + 51 / 10 < ( + 20 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT - COUNT( * ) * + - 20 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-7335
SELECT - COUNT ( * ) * + - 20 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL - MAX( col0 ) * 1 FROM tab1 AS cor0 WHERE NOT ( col0 - col0 * - col0 + + 36 ) NOT IN ( - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - MAX ( col0 ) * 1 FROM tab1 AS cor0 WHERE NOT ( col0 - col0 * - col0 + + 36 ) NOT IN ( - 13 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7337
SELECT * FROM tab0 AS cor0 WHERE NULL = - col2 - + 28 + - 47 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7337
SELECT * FROM tab0 AS cor0 WHERE NULL = - col2 - + 28 + - 47 * + CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT - 33 + + COUNT( * ) col2 FROM tab0
----
-30

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

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

query I rowsort
SELECT DISTINCT - col1 - + 81 AS col1 FROM tab2 AS cor0
----
-132
-148
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL - MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT 39 * + - col0 + - col2 FROM tab1 AS cor0
----
-2085
-3374
-3617

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

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

query I rowsort
SELECT 74 * - - col2 FROM tab0 AS cor0
----
3478
7326
740

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

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - SUM ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-121

query I rowsort
SELECT + 16 * - - col2 FROM tab1 AS cor0
----
1088
1536
944

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ( - ( 12 ) ) * - - COUNT( * ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-7350
SELECT ( - ( 12 ) ) * - - COUNT ( * ) AS col2 FROM tab1
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 col1, 85 * + - col2 + 98 FROM tab1
----
56
-4917
56
-5682
56
-8062

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT 38 + COUNT( * ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT 38 + COUNT ( * ) FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT COUNT( ALL 22 ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7353
SELECT COUNT ( ALL 22 ) * COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) + col1 + + 74 * col0 + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7354
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + col1 + + 74 * col0 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL + SUM( ALL + 7 ) + COUNT( * ) AS col0 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL + SUM ( ALL + 7 ) + COUNT ( * ) AS col0 FROM tab2
----
24

query I rowsort
SELECT DISTINCT ( + 98 ) FROM tab0
----
98

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col1 NOT IN ( - col1 )
----
14
47
5

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

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

query I rowsort
SELECT - ( + - col0 ) - + col0 + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7361
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 6 + - - ( + - CAST( NULL AS SIGNED ) ) - 67 - - 5 * 22 ) <= 8
----

skipif mysql # not compatible
query III rowsort label-7361
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 6 + - - ( + - CAST ( NULL AS INTEGER ) ) - 67 - - 5 * 22 ) <= 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - MIN( - 73 ) * + 81 AS col1 FROM tab0 AS cor0
----
5913

skipif mysql # not compatible
query I rowsort label-7362
SELECT - MIN ( - 73 ) * + 81 AS col1 FROM tab0 AS cor0
----
5913

query II rowsort
SELECT ALL + col1, + col2 + + + col2 * - col1 FROM tab1 AS cor0
----
14
-1248
47
-3128
5
-236

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 93 BETWEEN + 46 AND NULL
----

query I rowsort
SELECT - + ( 51 ) * - col1 - + 17 FROM tab1 AS cor0 WHERE NOT NULL <= - col0 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT 50 * - COUNT( * ) * 27 AS col1 FROM tab2
----
-4050

skipif mysql # not compatible
query I rowsort label-7367
SELECT 50 * - COUNT ( * ) * 27 AS col1 FROM tab2
----
-4050

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

query I rowsort
SELECT ALL + 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - 14 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab0 AS cor0 WHERE + col1 IN ( 78, - 38 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT + - 24 * + COUNT( * ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7375
SELECT + - 24 * + COUNT ( * ) FROM tab0 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT ALL + - col1 * + CAST( + 55 AS SIGNED ) FROM tab1 AS cor0
----
-2585
-275
-770

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + - col1 * + CAST ( + 55 AS INTEGER ) FROM tab1 AS cor0
----
-2585
-275
-770

query II rowsort
SELECT DISTINCT col0, col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 48 AS col1 FROM tab1 AS cor0
----
-2448
-4080
-4368

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

query I rowsort
SELECT + - 12 * - - 40 + + - col1 - - col1 * col1 FROM tab1 WHERE NOT col2 IN ( + col1, - 71 )
----
-298
-460
1682

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

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

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

query I rowsort
SELECT ALL 44 * + col1 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT ALL - - 69 AS col0 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT - 42 FROM tab1 AS cor0 WHERE ( - 26 ) + 88 * + + 73 >= + col2
----
-42
-42
-42

query I rowsort
SELECT 87 + ( + - 3 ) * + - col0 + - col1 AS col0 FROM tab1 cor0
----
226
313
337

query I rowsort
SELECT + ( + col1 ) + + + col0 AS col0 FROM tab2 AS cor0
----
141
142
97

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7390
SELECT ALL - - CAST( - + col2 AS DECIMAL ) + 75 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL - - CAST ( - + col2 AS REAL ) + 75 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT DISTINCT + COUNT( * ) + - + 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-7391
SELECT DISTINCT + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + - 56 FROM tab0 WHERE 29 IN ( col0, - 67 )
----

query I rowsort
SELECT ALL + - 81 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query II rowsort
SELECT DISTINCT + col1 + - - 11 AS col0, 52 FROM tab1
----
16
52
25
52
58
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT DISTINCT 92 - - - CAST( - 24 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
116

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT 92 - - - CAST ( - 24 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - MAX( col2 ) - - - COUNT( * ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7396
SELECT - MAX ( col2 ) - - - COUNT ( * ) FROM tab0 AS cor0
----
-102

query I rowsort
SELECT - col0 - - 47 * + col0 FROM tab1 AS cor0
----
2346
3910
4186

query I rowsort
SELECT - 4 * + 13 - 50 + - + col0 FROM tab2 AS cor0
----
-148
-166
-177

query I rowsort
SELECT - - col0 + col2 * + col2 - 14 FROM tab1 AS cor0 WHERE 6 >= NULL
----

query I rowsort
SELECT col2 - col0 + + - col1 + - - col1 * - col2 FROM tab2 AS cor0
----
-1247
-3181
-3970

query I rowsort
SELECT ALL - col1 - ( + ( + - col0 ) ) + - col2 FROM tab1 AS cor0
----
-24
-59
21

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

query II rowsort
SELECT col0 + + 65 + 61 AS col2, 32 * - col0 AS col1 FROM tab2
----
172
-1472
190
-2048
201
-2400

query I rowsort
SELECT - col0 FROM tab0 WHERE + 12 * - + col0 + - col0 IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7405
SELECT col0 * col0 DIV col0 + + col2 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-7405
SELECT col0 * col0 / col0 + + col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT DISTINCT col0 DIV - - 79 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT col0 / - - 79 FROM tab1
----
0
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT - 83, COUNT( * ) AS col1 FROM tab2
----
-83
3

skipif mysql # not compatible
query II rowsort label-7408
SELECT - 83, COUNT ( * ) AS col1 FROM tab2
----
-83
3

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 * + + 29 * - 45 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT + COUNT( ALL - + ( + 82 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7411
SELECT + COUNT ( ALL - + ( + 82 ) ) AS col0 FROM tab1
----
3

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

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

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

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

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

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

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

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL > + col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7420
SELECT col1 - + + 81 AS col2 FROM tab0 cor0 WHERE NOT + 83 * + col0 * - + col1 NOT IN ( CAST( NULL AS SIGNED ) * + + col0 + - col2 - 41 * 67 )
----

skipif mysql # not compatible
query I rowsort label-7420
SELECT col1 - + + 81 AS col2 FROM tab0 cor0 WHERE NOT + 83 * + col0 * - + col1 NOT IN ( CAST ( NULL AS INTEGER ) * + + col0 + - col2 - 41 * 67 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7421
SELECT DISTINCT 20 * + COUNT( * ) AS col0, 74 * - 46 AS col2 FROM tab2 AS cor0
----
60
-3404

skipif mysql # not compatible
query II rowsort label-7421
SELECT DISTINCT 20 * + COUNT ( * ) AS col0, 74 * - 46 AS col2 FROM tab2 AS cor0
----
60
-3404

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7422
SELECT ALL - CAST( NULL AS DECIMAL ) * - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - CAST ( NULL AS REAL ) * - + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 22 - - 12 FROM tab1
----
102
130
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT + col1 * - CAST( NULL AS SIGNED ) + + 17 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT + col1 * - CAST ( NULL AS INTEGER ) + + 17 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - - col0 AS col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT 95 * + 71 AS col2, COUNT( * ) AS col1 FROM tab0
----
6745
3

skipif mysql # not compatible
query II rowsort label-7426
SELECT 95 * + 71 AS col2, COUNT ( * ) AS col1 FROM tab0
----
6745
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT ALL COUNT( * ) + - COUNT( * ) + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7429
SELECT DISTINCT - col1 * + col2 DIV col2 + + - col1 FROM tab1 WHERE NULL IS NULL
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT - col1 * + col2 / col2 + + - col1 FROM tab1 WHERE NULL IS NULL
----
-10
-28
-94

query I rowsort
SELECT DISTINCT + col1 + + + ( + col1 ) * col0 FROM tab0 AS cor0
----
1296
1848
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + ( - col0 ) ) + + col1 - - ( 35 ) / - - 86 / - col0 > NULL
----

query I rowsort
SELECT col2 * + col2 + + col1 - - + col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7433
SELECT ALL - - COUNT( * ) * - ( + COUNT( * ) ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - - COUNT ( * ) * - ( + COUNT ( * ) ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - COUNT( * ) * - MAX( ALL + - col2 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7434
SELECT - COUNT ( * ) * - MAX ( ALL + - col2 ) FROM tab1 AS cor0
----
-177

query I rowsort
SELECT DISTINCT - + col1 * - col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT - COUNT( * ) + MIN( 2 ) * - + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7436
SELECT - COUNT ( * ) + MIN ( 2 ) * - + COUNT ( * ) AS col0 FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + + 32 col0 FROM tab1
----
1376
3228
327

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT ALL + col0 DIV - 46 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + col0 / - 46 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 + - - 0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT col0 * col2 + - 78 FROM tab2
----
2482
4272
980

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col0 >= ( NULL )
----

query I rowsort
SELECT DISTINCT 21 - - - col0 FROM tab1 AS cor0
----
-30
-64
-70

query I rowsort
SELECT ALL + 98 - + + col1 FROM tab0 AS cor0
----
17
77
97

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NULL > col2 / - 57
----

query I rowsort
SELECT DISTINCT - + 28 * + 15 FROM tab0 AS cor0
----
-420

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL + COUNT( * ) - 32 AS col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + COUNT ( * ) - 32 AS col0 FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) - + COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7448
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT col1 AS col1, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT - - 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7451
SELECT + MIN( - col1 ) AS col0, + 42 FROM tab2
----
-77
42

skipif mysql # not compatible
query II rowsort label-7451
SELECT + MIN ( - col1 ) AS col0, + 42 FROM tab2
----
-77
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + ( - ( + col1 ) ) ) col2, col1 FROM tab2
----
-51
51
-67
67
-77
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 60 - + ( + 95 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 77 NOT BETWEEN - col2 AND col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 23 * + 19 = + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT - col0 * - CAST( + ( + + 77 ) AS SIGNED ) AS col1 FROM tab2
----
3542
4928
5775

skipif mysql # not compatible
query I rowsort label-7457
SELECT - col0 * - CAST ( + ( + + 77 ) AS INTEGER ) AS col1 FROM tab2
----
3542
4928
5775

query I rowsort
SELECT + 32 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT MIN( + - 23 ) * - 62 AS col2 FROM tab2 cor0
----
1426

skipif mysql # not compatible
query I rowsort label-7459
SELECT MIN ( + - 23 ) * - 62 AS col2 FROM tab2 cor0
----
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + COUNT( 5 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7460
SELECT + COUNT ( 5 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7461
SELECT ALL + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT DISTINCT ( + - SUM( ALL 77 ) ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT ( + - SUM ( ALL 77 ) ) AS col0 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT ALL - - col2 + + ( - - col0 ) FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT DISTINCT - - col0 + + - col1 DIV - 52 FROM tab0 AS cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT - - col0 + + - col1 / - 52 FROM tab0 AS cor0
----
16
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT ALL col1 DIV - col2 + + col0 DIV col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL col1 / - col2 + + col0 / col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col2, - 81 - + col2 AS col2 FROM tab0 cor0
----
10
-91
47
-128
99
-180

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7468
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 62 * - - col0 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT 58 + + + COUNT( * ) - ( + 23 ) col1 FROM tab2 WHERE NULL BETWEEN + 22 + - 10 AND NULL
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7470
SELECT 58 + + + COUNT ( * ) - ( + 23 ) col1 FROM tab2 WHERE NULL BETWEEN + 22 + - 10 AND NULL
----
35

query I rowsort
SELECT DISTINCT + col1 + + col1 + - - col1 AS col1 FROM tab2
----
153
201
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7472
SELECT - CAST( + 29 AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 WHERE col0 BETWEEN + + col2 AND NULL
----
-29

skipif mysql # not compatible
query I rowsort label-7472
SELECT - CAST ( + 29 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 WHERE col0 BETWEEN + + col2 AND NULL
----
-29

query I rowsort
SELECT col2 + + - col1 - + - col2 * + col2 FROM tab2
----
1563
3355
501

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / + CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / + CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 79 + - 0 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7476
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 / + CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-7476
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 / + CAST ( NULL AS INTEGER ) + - col1
----

query I rowsort
SELECT ALL 69 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 60 + col0 FROM tab1 cor0
----
-9
25
31

query I rowsort
SELECT ALL + + 61 + + col1 * - col1 * - + col1 AS col0 FROM tab0 AS cor0
----
531502
62
9322

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + + col0 + - + 11
----

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-46

query I rowsort
SELECT ALL 22 - 49 AS col1 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT - 49 - - - col2 AS col1 FROM tab1
----
-108
-117
-145

query I rowsort
SELECT DISTINCT 7 - - col1 * 90 AS col1 FROM tab0
----
1897
7297
97

query III rowsort
SELECT * FROM tab0 WHERE + - col1 NOT IN ( col2 * + col1, 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 - - col2 AS col1, col2 AS col1 FROM tab2 AS cor0
----
104
40
133
58
69
23

query I rowsort
SELECT DISTINCT + - ( + 1 ) + + - 37 + + col0 FROM tab0 AS cor0
----
-23
49
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7488
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7488
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / + 22 IS NOT NULL
----

query I rowsort
SELECT + - ( + ( - col1 ) ) * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + 34 ) col1 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT ALL 7 * + col2 FROM tab2
----
161
280
406

query I rowsort
SELECT DISTINCT 55 * - col2 AS col2 FROM tab0
----
-2585
-5445
-550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT - CAST( + 48 AS SIGNED ) * - 29 col0 FROM tab0
----
1392
1392
1392

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7494
SELECT - CAST ( + 48 AS INTEGER ) * - 29 col0 FROM tab0
----
1392
1392
1392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7495
SELECT ALL col0, CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

skipif mysql # not compatible
query II rowsort label-7495
SELECT ALL col0, CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab1 cor0
----
65

query II rowsort
SELECT + 2 + + col2, 52 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT ALL + - col0 DIV + + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + - col0 / + + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( + - col1 ) * 47 AS col1 FROM tab0 AS cor0
----
-3807
-47
-987

query I rowsort
SELECT ALL - 16 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL col2 * + + 25 AS col0 FROM tab1
----
1475
1700
2400

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 = + + ( + col2 )
----

query I rowsort
SELECT - - 98 FROM tab0 AS cor0 WHERE NOT ( + col0 <= + col0 )
----

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab1 AS cor0 WHERE NOT col2 * + - 9 * col1 * - 9 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 + + + 43 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7506
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT 81 * - + col2 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 * + col2, col0 FROM tab0 cor0
----
-705
15
-870
87
-9603
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT DISTINCT - - 35 DIV + col1 + - 7 AS col2 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT - - 35 / + col1 + - 7 AS col2 FROM tab2 AS cor0
----
-7

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - ( col1 ) ) IS NOT NULL
----

query I rowsort
SELECT + 34 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - col1 + - 35 - - - col0 AS col1 FROM tab1 AS cor0
----
-100
-125
-173

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab2 cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT DISTINCT 99 DIV + 7 + + 32 * col2 FROM tab0
----
1518
3182
334

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT 99 / + 7 + + 32 * col2 FROM tab0
----
1518
3182
334

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + 26
----

query II rowsort
SELECT ALL - ( col1 ) + col2, 30 AS col1 FROM tab2
----
-28
30
-37
30
-9
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7517
SELECT * FROM tab0 WHERE col0 + - - col2 BETWEEN + ( col0 ) AND - + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7517
SELECT * FROM tab0 WHERE col0 + - - col2 BETWEEN + ( col0 ) AND - + CAST ( col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL + ( - - 14 ) - - + COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL + ( - - 14 ) - - + COUNT ( * ) FROM tab1
----
17

query II rowsort
SELECT DISTINCT - col2, - col1 * + ( - col1 ) + ( - - ( 26 ) ) * - ( - + col1 ) AS col0 FROM tab2 cor0
----
-23
3927
-40
7931
-58
6231

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7520
SELECT ALL - CAST( NULL AS DECIMAL ) - - 89 + - CAST( NULL AS DECIMAL ) * - 76 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL - CAST ( NULL AS REAL ) - - 89 + - CAST ( NULL AS REAL ) * - 76 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT + MAX( DISTINCT + + 32 ) * + COUNT( * ) + - 11 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7522
SELECT + MAX ( DISTINCT + + 32 ) * + COUNT ( * ) + - 11 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL ( SUM( DISTINCT - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL ( SUM ( DISTINCT - col1 ) ) FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + + - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 81 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + - col2 ) NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT DISTINCT SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT ALL 81, + 86 * + COUNT( * ) col1 FROM tab0 AS cor0
----
81
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7530
SELECT ALL 81, + 86 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
81
258

query I rowsort
SELECT col1 * - + 51 + 64 FROM tab0 AS cor0
----
-1007
-4067
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT col2 * 4 + + col0 DIV + + col0 - - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
322
364
436

skipif mysql # not compatible
query I rowsort label-7532
SELECT col2 * 4 + + col0 / + + col0 - - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
322
364
436

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT 7 * - COUNT( * ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7533
SELECT 7 * - COUNT ( * ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT + COUNT( 10 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + COUNT ( 10 ) FROM tab0
----
3

query II rowsort
SELECT ALL - col2 * + - 40 AS col2, - col2 AS col2 FROM tab2
----
1600
-40
2320
-58
920
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT 86 * - MAX( + + col0 ) col1 FROM tab2
----
-6450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7536
SELECT 86 * - MAX ( + + col0 ) col1 FROM tab2
----
-6450

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 48 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 68 AND - + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT - + SUM( DISTINCT 65 ) / - + 29 + - - COUNT( * ) FROM tab0 WHERE NOT + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT - + SUM ( DISTINCT 65 ) / - + 29 + - - COUNT ( * ) FROM tab0 WHERE NOT + col1 = NULL
----
NULL

query I rowsort
SELECT DISTINCT 34 FROM tab1 WHERE NOT NULL = + col2 * + + 72 * - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT + 11 * - + COUNT( * ) col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7541
SELECT + 11 * - + COUNT ( * ) col1 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT DISTINCT + col2 + - - col0 + - 51 - + + 76 * - col2 * - - 46 * - 30 AS col2 FROM tab0
----
-10382975
-1048754
-4929349

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7543
SELECT * FROM tab1 WHERE - - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7543
SELECT * FROM tab1 WHERE - - CAST ( col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - + col0 + + 17 - - 52 * + 27 + - + col1 * - ( col1 ) FROM tab0 AS cor0
----
1325
1775
7967

query II rowsort
SELECT + - col0 AS col0, + 68 FROM tab0 AS cor0
----
-15
68
-87
68
-97
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 65 col1, + 39 FROM tab1 AS cor0
----
-65
39
-65
39
-65
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT - - 65 * + COUNT( * ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7547
SELECT - - 65 * + COUNT ( * ) FROM tab1 AS cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7548
SELECT + COUNT( * ), ( - + COUNT( * ) ) * - + COUNT( DISTINCT - - 86 ) DIV 17 DIV COUNT( * ) col2 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7548
SELECT + COUNT ( * ), ( - + COUNT ( * ) ) * - + COUNT ( DISTINCT - - 86 ) / 17 / COUNT ( * ) col2 FROM tab0 AS cor0
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT 51 DIV col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7549
SELECT 51 / col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT - 84 AS col0 FROM tab1 AS cor0 WHERE + col1 * + - CAST( NULL AS SIGNED ) NOT BETWEEN + 17 * + + 37 - + - col2 AND col1 * - col0
----

skipif mysql # not compatible
query I rowsort label-7550
SELECT - 84 AS col0 FROM tab1 AS cor0 WHERE + col1 * + - CAST ( NULL AS INTEGER ) NOT BETWEEN + 17 * + + 37 - + - col2 AND col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7551
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN CAST( - col0 AS SIGNED ) AND - + ( 71 )
----

skipif mysql # not compatible
query III rowsort label-7551
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN CAST ( - col0 AS INTEGER ) AND - + ( 71 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT - 56 + - COUNT( * ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-7554
SELECT - 56 + - COUNT ( * ) FROM tab0
----
-59

query I rowsort
SELECT col2 * - 26 + + 78 FROM tab2
----
-1430
-520
-962

query I rowsort
SELECT 48 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 + + col1 AS col2, - col1 FROM tab1
----
-37
-14
-44
-47
-80
-5

query I rowsort
SELECT + - col2 AS col2 FROM tab2 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + 65 AS col0, - col2 col1 FROM tab0 cor0
----
146
-47
66
-99
86
-10

query II rowsort
SELECT DISTINCT - ( col0 ) AS col2, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 <> ( col2 + + col0 + 31 ) AND NULL <= ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT + MIN( + 83 ) col1 FROM tab1
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7562
SELECT + MIN ( + 83 ) col1 FROM tab1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT + MAX( ALL 13 ) * + COUNT( - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7563
SELECT + MAX ( ALL 13 ) * + COUNT ( - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0
----
39

query I rowsort
SELECT 25 * 69 + col0 FROM tab1 AS cor0
----
1776
1810
1816

query II rowsort
SELECT - + 60 AS col2, - 93 AS col1 FROM tab0 AS cor0
----
-60
-93
-60
-93
-60
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT MAX( DISTINCT - + col2 ) * - 52 FROM tab0
----
520

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT MAX ( DISTINCT - + col2 ) * - 52 FROM tab0
----
520

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT DISTINCT col2 DIV - - col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT col2 / - - col0 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - + 62 * + + col1 + + col2 * col0 AS col0 FROM tab1 WHERE NOT NULL IN ( 14, 36 + - + col2, - col0, - col0, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT - - CAST( - AVG ( + 70 ) AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-70

skipif mysql # not compatible
query I rowsort label-7569
SELECT - - CAST ( - AVG ( + 70 ) AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-70

query I rowsort
SELECT - + ( + 70 ) * - + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
1050
6090
6790

query I rowsort
SELECT DISTINCT + + 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col1 * + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL 2 * - col1, + col0 FROM tab2 AS cor0
----
-102
46
-134
75
-154
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - SUM( ALL - 36 ) + - + MAX( + + col1 ) AS col2 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-7575
SELECT - SUM ( ALL - 36 ) + - + MAX ( + + col1 ) AS col2 FROM tab1 AS cor0
----
61

query I rowsort
SELECT ALL - 89 * - 87 AS col0 FROM tab2 AS cor0
----
7743
7743
7743

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7577
SELECT - 82 DIV 80, 17 - - - COUNT( * ) AS col0 FROM tab2 cor0
----
-1
14

skipif mysql # not compatible
query II rowsort label-7577
SELECT - 82 / 80, 17 - - - COUNT ( * ) AS col0 FROM tab2 cor0
----
-1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT - + ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7578
SELECT DISTINCT - + ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7579
SELECT - col2 FROM tab0 WHERE - 79 BETWEEN + CAST( NULL AS DECIMAL ) * - - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7579
SELECT - col2 FROM tab0 WHERE - 79 BETWEEN + CAST ( NULL AS REAL ) * - - col0 AND NULL
----

query I rowsort
SELECT + col0 * + 94 FROM tab1
----
4794
7990
8554

query I rowsort
SELECT ALL - col0 * + col1 * + col1 AS col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) / col2 + + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) / col2 + + col2 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * - - col1 - col1 + - ( + col0 ) col2 FROM tab2
----
362
461
552

query II rowsort
SELECT DISTINCT col2 + + col1 AS col1, + 28 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col0 - + 90 AS col2 FROM tab2 AS cor0
----
-15
-26
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - 62 * + 7 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
1302

skipif mysql # not compatible
query I rowsort label-7586
SELECT - 62 * + 7 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT - 65 * - COUNT( * ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7587
SELECT - 65 * - COUNT ( * ) FROM tab1 AS cor0
----
195

query I rowsort
SELECT DISTINCT + + 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7589
SELECT DISTINCT - CAST( + + SUM( DISTINCT 36 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - CAST ( + + SUM ( DISTINCT 36 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - MIN( ALL - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7590
SELECT - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab2 AS cor0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 = - 56 / + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * + col2 <= - + col1 * - 57
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT SUM( + + ( - CAST( 47 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-7594
SELECT SUM ( + + ( - CAST ( 47 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-141

query I rowsort
SELECT - 55 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT - SUM( 28 ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7596
SELECT - SUM ( 28 ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT col0 * + 34 * - col1 FROM tab2 AS cor0
----
-167552
-170850
-79764

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 / col0, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE ( NOT CAST( + col0 AS SIGNED ) IS NULL )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE ( NOT CAST ( + col0 AS INTEGER ) IS NULL )
----
23
40
58

query I rowsort
SELECT ALL 49 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL - col0 + col1 - + 23 - - - col0 FROM tab1
----
-111
-158
-188

query I rowsort
SELECT ALL + + 71 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT + COUNT( DISTINCT + col2 ) * - COUNT( * ) * + ( + 16 ) FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-7603
SELECT + COUNT ( DISTINCT + col2 ) * - COUNT ( * ) * + ( + 16 ) FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT 84, COUNT( * ) AS col1 FROM tab0
----
84
3

skipif mysql # not compatible
query II rowsort label-7604
SELECT 84, COUNT ( * ) AS col1 FROM tab0
----
84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + - COUNT( * ) + + MIN( - + 53 ) FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7605
SELECT + - COUNT ( * ) + + MIN ( - + 53 ) FROM tab2 cor0
----
-56

query I rowsort
SELECT + + col1 + - + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 56 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
2402
4984
5081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 74 + + - col2 col0, + col1 - + 59 AS col2 FROM tab1
----
-133
-54
-142
-12
-170
-45

query I rowsort
SELECT DISTINCT - 80 + ( + 90 ) - col1 FROM tab2 AS cor0
----
-41
-57
-67

query I rowsort
SELECT DISTINCT - - col0 * - col1 + + col0 + col0 FROM tab1 AS cor0
----
-255
-4095
-612

query I rowsort
SELECT + 53 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7612
SELECT ALL CAST( NULL AS SIGNED ) * - 20 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7612
SELECT ALL CAST ( NULL AS INTEGER ) * - 20 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 < NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 9 * col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - 39
----

query I rowsort
SELECT DISTINCT - col0 * col1 * - + 34 AS col2 FROM tab0 AS cor0
----
3298
41310
62118

query I rowsort
SELECT - - col0 - 99 FROM tab1 AS cor0
----
-14
-48
-8

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + 81 / + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT + - col1 * 5 + + col2 + col0 + - + col0 + col1 * col2 * - col1 FROM tab0 AS cor0 WHERE ( - CAST( - + 3 AS SIGNED ) >= col0 )
----

skipif mysql # not compatible
query I rowsort label-7619
SELECT + - col1 * 5 + + col2 + col0 + - + col0 + col1 * col2 * - col1 FROM tab0 AS cor0 WHERE ( - CAST ( - + 3 AS INTEGER ) >= col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT ALL col0 DIV + 63 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL col0 / + 63 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL col2 + + + col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT + col1 / col2 + - - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT + col1 / col2 + - - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT DISTINCT - 78 DIV + + col1 AS col0 FROM tab0
----
-3
-78
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT - 78 / + + col1 AS col0 FROM tab0
----
-3
-78
0

query I rowsort
SELECT DISTINCT col2 + - 8 + + ( + col0 ) AS col0 FROM tab2
----
125
61
96

query II rowsort
SELECT + col1 + + 66 * 50 AS col1, col2 * + col1 AS col1 FROM tab2
----
3351
1173
3367
3886
3377
3080

query I rowsort
SELECT ALL col1 * col1 - - + col1 FROM tab0
----
2
462
6642

query I rowsort
SELECT DISTINCT col1 - + - col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - ( + MIN( ALL - col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7628
SELECT - ( + MIN ( ALL - col1 ) ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 98 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 98 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - col2 * + 39 * 21 AS col2 FROM tab2 AS cor0
----
-18837
-32760
-47502

query I rowsort
SELECT DISTINCT 43 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
2244
2948
3388

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT ALL - col2 DIV col1 col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7633
SELECT ALL - col2 / col1 col0 FROM tab0 AS cor0
----
-99
0
0

query II rowsort
SELECT + 25 AS col0, + col1 FROM tab0
----
25
1
25
21
25
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT DISTINCT - COUNT( DISTINCT - ( + + 49 ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - COUNT ( DISTINCT - ( + + 49 ) ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT + COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-7636
SELECT + COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query I rowsort
SELECT ALL 3 * 47 AS col1 FROM tab2
----
141
141
141

query I rowsort
SELECT ALL + 73 * - col1 FROM tab2
----
-3723
-4891
-5621

query I rowsort
SELECT ALL 61 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query II rowsort
SELECT DISTINCT + col2, + 98 + - col2 FROM tab1
----
59
39
68
30
96
2

query I rowsort
SELECT - ( + 87 ) AS col2 FROM tab0 cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7642
SELECT - + col0, ( + 54 ) AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) NOT BETWEEN col1 AND - col1
----

skipif mysql # not compatible
query II rowsort label-7642
SELECT - + col0, ( + 54 ) AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) NOT BETWEEN col1 AND - col1
----

query II rowsort
SELECT 42, + col0 AS col2 FROM tab0 AS cor0
----
42
15
42
87
42
97

query I rowsort
SELECT + 93 * ( col0 ) FROM tab1 AS cor0
----
4743
7905
8463

query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0 WHERE + col2 + - + 9 NOT IN ( col2 )
----
5

query I rowsort
SELECT - col0 * - 22 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - 47 + MIN( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7647
SELECT - 47 + MIN ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT - 55 + - - 62 + + ( + 39 ) * + 28 FROM tab2 cor0
----
1099
1099
1099

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + 24 ) + + + 41 FROM tab2
----
65
65
65

query II rowsort
SELECT - col0 * - 5, col1 FROM tab1
----
255
14
425
5
455
47

query I rowsort
SELECT ALL + col0 * + col2 * + 56 * + col1 + + - col0 + col1 AS col0 FROM tab1
----
1404120
16286772
3838427

query I rowsort
SELECT DISTINCT + 68 * + 37 + + col1 AS col1 FROM tab0
----
2517
2537
2597

query I rowsort
SELECT ALL ( - - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * 77 col1 FROM tab0
----
-3572
-7524
-760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7656
SELECT ALL CAST( NULL AS DECIMAL ) + - 1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL CAST ( NULL AS REAL ) + - 1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + + 67 FROM tab2 AS cor0
----
-8
21
3

query I rowsort
SELECT - + 54 * + col2 + + + col2 AS col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT DISTINCT - 74 - ( MAX( ALL - col2 ) ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT - 74 - ( MAX ( ALL - col2 ) ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT ALL + col1 / - + col0 * - col1 + - - 43 + + col1 * CAST( NULL AS SIGNED ) / + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL + col1 / - + col0 * - col1 + - - 43 + + col1 * CAST ( NULL AS INTEGER ) / + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT col1 DIV - - col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7661
SELECT col1 / - - col2 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT + col0 * + + 37 AS col1 FROM tab2 AS cor0
----
1702
2368
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT - MIN( - 11 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT - MIN ( - 11 ) FROM tab0 AS cor0
----
11

query I rowsort
SELECT DISTINCT + + 48 * - col2 - - - col2 AS col0 FROM tab1 AS cor0
----
-2891
-3332
-4704

query I rowsort
SELECT ( + col0 ) * - - col2 + col0 FROM tab0 AS cor0
----
720
957
9700

query II rowsort
SELECT - 33 AS col0, 26 + - col2 FROM tab2
----
-33
-14
-33
-32
-33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - 25 - + COUNT( ALL + - col1 ) AS col1 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-7667
SELECT - 25 - + COUNT ( ALL + - col1 ) AS col1 FROM tab2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7668
SELECT - 98 DIV + 80 - + COUNT( * ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7668
SELECT - 98 / + 80 - + COUNT ( * ) FROM tab1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT DISTINCT + 29 * + + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
2349
29
609

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + 29 * + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
2349
29
609

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT ALL COUNT( - 75 ) * - 5 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL COUNT ( - 75 ) * - 5 FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT ALL + 66 * + col1 + + CAST( + col2 AS SIGNED ) + + 1 FROM tab1 AS cor0 WHERE + 29 * - col0 IS NOT NULL
----
1021
3171
390

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + 66 * + col1 + + CAST ( + col2 AS INTEGER ) + + 1 FROM tab1 AS cor0 WHERE + 29 * - col0 IS NOT NULL
----
1021
3171
390

query I rowsort
SELECT ALL - col2 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 21 col1 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + col0 * col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 41 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL col0 + + col1 * 91 FROM tab1 AS cor0
----
1325
4368
540

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7680
SELECT ALL + - col1 - 88 * 17 FROM tab1 AS cor0 WHERE + CAST( + 41 AS DECIMAL ) IS NOT NULL
----
-1501
-1510
-1543

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + - col1 - 88 * 17 FROM tab1 AS cor0 WHERE + CAST ( + 41 AS REAL ) IS NOT NULL
----
-1501
-1510
-1543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - col1 col2 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT + ( + - SUM( DISTINCT + col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + ( + - SUM ( DISTINCT + col1 ) ) AS col1 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) * 55 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) * 55 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 * + col0 * - - col1 + + 51 AS col0 FROM tab1
----
36176
36465
389258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT CAST( NULL AS SIGNED ) + + 86 / + 65 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT CAST ( NULL AS INTEGER ) + + 86 / + 65 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7686
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7686
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT + col1 / - ( - - ( - col2 ) ) + col0 * 62 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ( + - COUNT( * ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7688
SELECT ( + - COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query III rowsort
SELECT * FROM tab0 WHERE 34 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( + 92 ) - - - col1 AS col0 FROM tab0 cor0
----
11
71
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7691
SELECT CAST( NULL AS SIGNED ) - - col1 / ( + col2 ), col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7691
SELECT CAST ( NULL AS INTEGER ) - - col1 / ( + col2 ), col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT - ( COUNT( ALL - 39 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - ( COUNT ( ALL - 39 ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7693
SELECT col2 * - - col0 + - + 25 + + 84 * - CAST( NULL AS SIGNED ) / + CAST( 17 AS SIGNED ) * - + 27 + col2 AS col0, 6 AS col0 FROM tab2 AS cor0
----
NULL
6
NULL
6
NULL
6

skipif mysql # not compatible
query II rowsort label-7693
SELECT col2 * - - col0 + - + 25 + + 84 * - CAST ( NULL AS INTEGER ) / + CAST ( 17 AS INTEGER ) * - + 27 + col2 AS col0, 6 AS col0 FROM tab2 AS cor0
----
NULL
6
NULL
6
NULL
6

query I rowsort
SELECT ALL - + ( + 34 ) FROM tab1 AS cor0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab2 WHERE NOT 97 NOT BETWEEN + col2 + + ( + col0 ) * - 79 * + col1 AND + 37 * + ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 68 >= 78 * - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7698
SELECT COUNT( * ) DIV 67 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7698
SELECT COUNT ( * ) / 67 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - col2 ) col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - ( - col1 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 col1 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT 91 * + col1 FROM tab2
----
4641
6097
7007

query I rowsort
SELECT - - col1 * 69 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
3519
4623
5313

query I rowsort
SELECT col2 - + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT SUM( DISTINCT - ( + col0 ) ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT SUM ( DISTINCT - ( + col0 ) ) FROM tab2 cor0
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7707
SELECT + + col2 + + CAST( NULL AS DECIMAL ), col1 * + col1 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-7707
SELECT + + col2 + + CAST ( NULL AS REAL ), col1 * + col1 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 <> NULL
----

query I rowsort
SELECT + ( + + ( - 96 ) ) + - 84 AS col0 FROM tab0 AS cor0
----
-180
-180
-180

query I rowsort
SELECT ALL 21 * - - col1 + - col1 AS col1 FROM tab0 AS cor0
----
1620
20
420

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7711
SELECT * FROM tab2 WHERE - 42 * + - col0 * - col2 BETWEEN NULL AND ( col1 / - CAST( - col2 AS SIGNED ) / - 53 - col2 )
----

skipif mysql # not compatible
query III rowsort label-7711
SELECT * FROM tab2 WHERE - 42 * + - col0 * - col2 BETWEEN NULL AND ( col1 / - CAST ( - col2 AS INTEGER ) / - 53 - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= col2 + - - 4 * 8 * + 9
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + - 47
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( + col0 + + col0 ) > col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7715
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT ALL + CAST( 83 AS SIGNED ) * - 59 + - col2 AS col0 FROM tab2 AS cor0
----
-4920
-4937
-4955

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL + CAST ( 83 AS INTEGER ) * - 59 + - col2 AS col0 FROM tab2 AS cor0
----
-4920
-4937
-4955

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 99 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 15 AND 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT DISTINCT + - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT + - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT + ( + SUM( - 89 ) ) AS col1 FROM tab0 AS cor0 WHERE ( ( - col1 ) ) IS NOT NULL
----
-267

skipif mysql # not compatible
query I rowsort label-7720
SELECT + ( + SUM ( - 89 ) ) AS col1 FROM tab0 AS cor0 WHERE ( ( - col1 ) ) IS NOT NULL
----
-267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col0 col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col0
----

skipif mysql # not compatible
query I rowsort label-7722
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + col0 col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - - col2 * + 88 FROM tab0 AS cor0
----
4136
8712
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL - 3 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( - + CAST( NULL AS SIGNED ) ) IS NULL )
----
138
192
225

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - 3 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( - + CAST ( NULL AS INTEGER ) ) IS NULL )
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT MAX( DISTINCT - 27 ) AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT MAX ( DISTINCT - 27 ) AS col0 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT DISTINCT - ( + - ( - 93 ) ) * CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
4371
9207
930

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT - ( + - ( - 93 ) ) * CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
4371
9207
930

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + + 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT - 39 FROM tab1 WHERE NOT - 51 IS NOT NULL
----

query II rowsort
SELECT 44 * - + col1 AS col1, + col1 * - col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 48 col1 FROM tab2 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7734
SELECT ALL col2 + - ( 31 ) - + CAST( NULL AS SIGNED ) AS col0, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7734
SELECT ALL col2 + - ( 31 ) - + CAST ( NULL AS INTEGER ) AS col0, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + - 55 AS col0 FROM tab0 cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT - - SUM( - - ( - 71 ) ) AS col2 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7739
SELECT - - SUM ( - - ( - 71 ) ) AS col2 FROM tab2 AS cor0
----
-213

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 16 ) <> - 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - 3 * + 45 AS col2 FROM tab0
----
-11745
-13095
-2025

query I rowsort
SELECT ALL col0 + - col0 + - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT DISTINCT COUNT( * ) + - - 60 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT COUNT ( * ) + - - 60 FROM tab1
----
63

query II rowsort
SELECT + ( col0 ) + + col2 - col1, col2 * + + ( - col2 ) * + col2 * + col0 AS col2 FROM tab1
----
112
-28613312
133
-45121536
139
-17457215

query I rowsort
SELECT - + col2 AS col0 FROM tab0 WHERE - - ( + col2 ) IS NULL
----

query I rowsort
SELECT ( + col2 ) + + 28 FROM tab0
----
127
38
75

query II rowsort
SELECT ALL - col1 + - 24 AS col2, - col0 FROM tab0 AS cor0
----
-105
-15
-25
-97
-45
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL - - CAST( + CAST( - + col1 AS SIGNED ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7748
SELECT ALL - - CAST ( + CAST ( - + col1 AS INTEGER ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col2 * + col0 - + ( 4 ) AS col0 FROM tab0 AS cor0
----
701
866
9599

query I rowsort
SELECT DISTINCT - 59 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7751
SELECT ALL col0 + + 31 DIV + + ( CAST( + - col1 AS SIGNED ) ) AS col1, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-7751
SELECT ALL col0 + + 31 / + + ( CAST ( + - col1 AS INTEGER ) ) AS col1, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7752
SELECT + COUNT( * ) DIV SUM( ALL 41 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7752
SELECT + COUNT ( * ) / SUM ( ALL 41 ) AS col0 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN - col0 * - + ( - col1 ) AND + + 6 + ( + col2 ) - + + 97
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 98 col1 FROM tab2 AS cor0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7756
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT col1 AS col2, 46 FROM tab2
----
51
46
67
46
77
46

query II rowsort
SELECT DISTINCT - 48 AS col0, col0 AS col0 FROM tab2
----
-48
46
-48
64
-48
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7759
SELECT ALL 65, COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
65
9

skipif mysql # not compatible
query II rowsort label-7759
SELECT ALL 65, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
65
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col1 col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL + MIN( - ( 2 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + MIN ( - ( 2 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + ( - 64 ) AS col0 FROM tab1
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + MIN( ALL + ( + 81 ) ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7763
SELECT + MIN ( ALL + ( + 81 ) ) AS col1 FROM tab1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7764
SELECT COUNT( * ) DIV + 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT COUNT ( * ) / + 69 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 8 * - col2 col2 FROM tab1 AS cor0
----
-472
-544
-768

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 25 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7767
SELECT * FROM tab2 WHERE col1 * CAST( NULL AS SIGNED ) BETWEEN col0 AND - col2
----

skipif mysql # not compatible
query III rowsort label-7767
SELECT * FROM tab2 WHERE col1 * CAST ( NULL AS INTEGER ) BETWEEN col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT ( - MIN( - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT ( - MIN ( - col0 ) ) FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - 3 - col2 * col2 = col2 + 78 / + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + 14 + - col0 = - col1 * + col2
----
3

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + 14 + - col0 = - col1 * + col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT + COUNT( 71 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7771
SELECT + COUNT ( 71 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * col1 col2 FROM tab1
----
154
517
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT + MAX( ALL CAST( 79 AS SIGNED ) ) * - 47 AS col1 FROM tab1
----
-3713

skipif mysql # not compatible
query I rowsort label-7773
SELECT + MAX ( ALL CAST ( 79 AS INTEGER ) ) * - 47 AS col1 FROM tab1
----
-3713

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN NULL AND ( 32 * col1 + col2 )
----

query I rowsort
SELECT 21 - col0 * col0 AS col0 FROM tab1 WHERE NOT + 61 + 77 IS NULL
----
-2580
-7204
-8260

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + MAX( DISTINCT - col1 ) * - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7776
SELECT + MAX ( DISTINCT - col1 ) * - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT col1 * 24 AS col2 FROM tab1
----
1128
120
336

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT 86 * COUNT( * ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-7778
SELECT 86 * COUNT ( * ) AS col2 FROM tab2
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT DISTINCT AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 + - 54 * - col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL - 29 * COUNT( * ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - 29 * COUNT ( * ) AS col2 FROM tab1
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7782
SELECT col1 + - col1 AS col2 FROM tab0 WHERE col2 >= + col2 + CAST( 2 AS DECIMAL ) * - col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT col1 + - col1 AS col2 FROM tab0 WHERE col2 >= + col2 + CAST ( 2 AS REAL ) * - col1
----
0
0
0

query I rowsort
SELECT ALL + col2 * + 41 AS col2 FROM tab1
----
2419
2788
3936

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 42 col1 FROM tab1
----
-1974
-210
-588

query I rowsort
SELECT 25 + - col0 FROM tab1 WHERE NOT NULL BETWEEN + col0 AND - 25 * 50
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 + + 22 <> ( - col0 + col0 / ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <= - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - 12 AS col2 FROM tab0
----
3
75
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 2 * col2 )
----

query I rowsort
SELECT DISTINCT + 96 * + 33 AS col2 FROM tab1 WHERE - col2 IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + col1 * 30 + ( + col1 + - col2 ) FROM tab1
----
1389
338
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT - COUNT( * ) + ( COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT - COUNT ( * ) + ( COUNT ( * ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 55 + col0 AS col1 FROM tab1 AS cor0
----
-4
30
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT - 8 + 50 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT + col1 * col2 + 5 FROM tab2
----
1178
3085
3891

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 99 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 90 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN ( - 91 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT SUM( DISTINCT 77 ) * COUNT( * ) AS col0 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-7801
SELECT SUM ( DISTINCT 77 ) * COUNT ( * ) AS col0 FROM tab1
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT ALL - col0 DIV 55 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL - col0 / 55 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT MAX( ALL + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT MAX ( ALL + col1 ) FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT DISTINCT - 7 DIV - col2 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7805
SELECT DISTINCT - 7 / - col2 col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT DISTINCT + COUNT( - 14 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT + COUNT ( - 14 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL + SUM( ALL 16 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + SUM ( ALL 16 ) FROM tab1
----
48

query I rowsort
SELECT + 78 * + - col1 AS col2 FROM tab0
----
-1638
-6318
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT ALL col2 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL col2 / + - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT - col2 / - 2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT - col2 / - 2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT + 9 + + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7811
SELECT + 9 + + COUNT ( * ) FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL SUM( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL + col0 + - 53 * ( col0 ) * 9 AS col0 FROM tab0
----
-41412
-46172
-7140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT DISTINCT + - CAST( 31 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT + - CAST ( 31 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + SUM( DISTINCT + 87 ) + - COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + SUM ( DISTINCT + 87 ) + - COUNT ( * ) FROM tab0
----
84

query I rowsort
SELECT col1 FROM tab0 WHERE NULL BETWEEN - - 28 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 34 / 52 >= ( NULL )
----

query I rowsort
SELECT ALL 36 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > + 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col1 * - - 62 col2 FROM tab1
----
-12152
-136958
-1550

query I rowsort
SELECT ALL - col0 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT + - SUM( ALL - col0 ) * 67 DIV ( 22 ) AS col2 FROM tab1 AS cor0
----
691

skipif mysql # not compatible
query I rowsort label-7821
SELECT + - SUM ( ALL - col0 ) * 67 / ( 22 ) AS col2 FROM tab1 AS cor0
----
691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT CAST( + + col1 AS SIGNED ) - + + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7822
SELECT CAST ( + + col1 AS INTEGER ) - + + col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 25 BETWEEN ( - + col2 - col0 ) AND ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT - 48 + + + col1 + + col2 DIV + 87 AS col1 FROM tab2 AS cor0
----
19
29
3

skipif mysql # not compatible
query I rowsort label-7824
SELECT - 48 + + + col1 + + col2 / + 87 AS col1 FROM tab2 AS cor0
----
19
29
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT + 57 DIV col2 + - col0 col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7825
SELECT + 57 / col2 + - col0 col2 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( 99 )
----

query I rowsort
SELECT ALL + col1 + 41 * - - col1 AS col1 FROM tab1
----
1974
210
588

query I rowsort
SELECT DISTINCT col2 * + 15 * - ( - col1 ) + col1 * - 56 AS col2 FROM tab0
----
1429
1974
52569

query II rowsort
SELECT + 52 + - col1, 97 + 26 AS col1 FROM tab2
----
-15
123
-25
123
1
123

query I rowsort
SELECT DISTINCT col2 - col2 FROM tab2 WHERE + - col1 NOT IN ( col0 * - col1 )
----
0

query I rowsort
SELECT + - ( - col1 ) * - 1 FROM tab1 WHERE NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT 18 - col1 AS col2 FROM tab1
----
-29
13
4

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE 21 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 29 IS NULL
----

query I rowsort
SELECT ALL + col2 - - + col0 + + col1 FROM tab0 AS cor0
----
118
143
197

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col2 * col0 ) < ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - 24 FROM tab2
----
-1224
-1608
-1848

query I rowsort
SELECT DISTINCT + + 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
30

query I rowsort
SELECT col2 * + - 21 FROM tab0 AS cor0
----
-2079
-210
-987

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 + - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN + col2 * - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN + col2 * - col1 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + col1 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col0 FROM tab0 cor0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7844
SELECT DISTINCT + COUNT( * ) DIV + 19 FROM tab2 AS cor0 WHERE ( col2 * + col1 - - 18 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT + COUNT ( * ) / + 19 FROM tab2 AS cor0 WHERE ( col2 * + col1 - - 18 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL - + MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - + MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) - ( ( ( col2 ) ) ) col1 FROM tab2 WHERE - - 85 NOT BETWEEN 9 + + 12 AND - col2 + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * ( 17 ) col2 FROM tab1 WHERE - 69 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT + COUNT( * ) * MIN( DISTINCT - 72 ) AS col0 FROM tab1, tab1 AS cor0
----
-648

skipif mysql # not compatible
query I rowsort label-7848
SELECT + COUNT ( * ) * MIN ( DISTINCT - 72 ) AS col0 FROM tab1, tab1 AS cor0
----
-648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL ( col0 ) FROM tab1 WHERE 89 BETWEEN ( col2 * + col1 / - 79 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 74 - + col1
----
0

skipif mysql # not compatible
query I rowsort label-7851
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 74 - + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT DISTINCT - col0 + ( + col2 ) * + ( - CAST( - col2 AS SIGNED ) ) col2 FROM tab0
----
13
2194
9704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7852
SELECT DISTINCT - col0 + ( + col2 ) * + ( - CAST ( - col2 AS INTEGER ) ) col2 FROM tab0
----
13
2194
9704

query I rowsort
SELECT 20 * - + 75 AS col2 FROM tab2
----
-1500
-1500
-1500

query I rowsort
SELECT - 70 * + 33 * - - col2 AS col1 FROM tab1
----
-136290
-157080
-221760

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT DISTINCT col1 DIV + col0 * - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT col1 / + col0 * - col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT - COUNT( * ) * + 64 * 54 col0 FROM tab0 AS cor0
----
-10368

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7856
SELECT - COUNT ( * ) * + 64 * 54 col0 FROM tab0 AS cor0
----
-10368

query I rowsort
SELECT - col2 * col1 + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7859
SELECT DISTINCT - SUM( + col0 ) col1, 76 col0 FROM tab1 AS cor0
----
-227
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7859
SELECT DISTINCT - SUM ( + col0 ) col1, 76 col0 FROM tab1 AS cor0
----
-227
76

query I rowsort
SELECT ALL 21 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT 21 * 39 + - col0 * - col1 + + - col2 + + 80 FROM tab0
----
2067
2716
897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7862
SELECT CAST( 89 AS SIGNED ) + + col0 + - 83 * + 81 FROM tab2
----
-6559
-6570
-6588

skipif mysql # not compatible
query I rowsort label-7862
SELECT CAST ( 89 AS INTEGER ) + + col0 + - 83 * + 81 FROM tab2
----
-6559
-6570
-6588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * col2 + col2 + - col0 * + 25 col2, + col1 AS col1 FROM tab1
----
-2361
5
-2523
14
-5403
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7864
SELECT DISTINCT + SUM( - + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT + SUM ( - + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + ( + col0 ) + + - col0 + + col1 + col0, col0 AS col1 FROM tab1
----
138
91
65
51
90
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT CAST( NULL AS SIGNED ) + 10 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT CAST ( NULL AS INTEGER ) + 10 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + COUNT( * ) * 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
747

skipif mysql # not compatible
query I rowsort label-7867
SELECT + COUNT ( * ) * 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
747

query I rowsort
SELECT DISTINCT - ( + - 65 ) + - col0 * + col2 AS col1 FROM tab0
----
-640
-805
-9538

query II rowsort
SELECT + col0 * + col1 AS col0, col0 + + col2 * + + 9 FROM tab2 AS cor0
----
2346
253
4928
424
5025
597

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 51 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 64 col1, + col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-64
46
-64
64
-64
75

query I rowsort
SELECT + - 91 * + col2 FROM tab2 AS cor0
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT + SUM( + 7 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7873
SELECT + SUM ( + 7 ) / - COUNT ( * ) FROM tab1 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - + col1 FROM tab1 WHERE NOT - col0 * + - col0 - + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + col1 FROM tab1 WHERE NOT - col0 * + - col0 - + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col1 + + + 41 + - 62 + - col1 AS col0 FROM tab0
----
-102
-22
-42

query I rowsort
SELECT ALL + col0 + + - 45 AS col1 FROM tab2
----
1
19
30

query I rowsort
SELECT ALL + col1 * - + ( + col1 ) + + - col1 FROM tab0
----
-2
-462
-6642

query I rowsort
SELECT ALL - col2 * + col0 + - 12 AS col2 FROM tab1
----
-4908
-5027
-6200

query I rowsort
SELECT col2 FROM tab1 WHERE col0 IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 69 + - - 25 IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col1 + + col2 / col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 99 ) AS col1 FROM tab2 AS cor0
----
99

query I rowsort
SELECT - + 67 * + col2 + + + col2 AS col1 FROM tab0 AS cor0
----
-3102
-6534
-660

query I rowsort
SELECT ALL + ( + 36 ) FROM tab0 AS cor0
----
36
36
36

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + + 95 ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7887
SELECT * FROM tab0 WHERE NOT ( - + col0 + - CAST( col0 AS SIGNED ) ) NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7887
SELECT * FROM tab0 WHERE NOT ( - + col0 + - CAST ( col0 AS INTEGER ) ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT ( - col0 * - col2 <= + col2 )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + - 41 * + MAX( + 71 ) FROM tab1 AS cor0
----
-2911

skipif mysql # not compatible
query I rowsort label-7890
SELECT + - 41 * + MAX ( + 71 ) FROM tab1 AS cor0
----
-2911

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - - COUNT( DISTINCT - ( 2 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7891
SELECT - - COUNT ( DISTINCT - ( 2 ) ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7892
SELECT + MAX( + col1 ) AS col1, 76 AS col0 FROM tab2 cor0
----
77
76

skipif mysql # not compatible
query II rowsort label-7892
SELECT + MAX ( + col1 ) AS col1, 76 AS col0 FROM tab2 cor0
----
77
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - - MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7893
SELECT - - MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

query II rowsort
SELECT ALL col0 + + col0, + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
174
21
194
1
30
81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( - col1 / col0 + col2 + - + 76 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT DISTINCT + col2 DIV 53 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + col2 / 53 AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL 18 + - 77 * - 1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7898
SELECT * FROM tab2 WHERE NOT - - ( CAST( 66 AS SIGNED ) ) NOT BETWEEN col2 + ( 22 ) AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-7898
SELECT * FROM tab2 WHERE NOT - - ( CAST ( 66 AS INTEGER ) ) NOT BETWEEN col2 + ( 22 ) AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT 34 + + COUNT( * ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT 34 + + COUNT ( * ) FROM tab1
----
37

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 7 / col2 * - + 63 + - 66 <= 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT COUNT( * ) + + 75 col2 FROM tab0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7901
SELECT COUNT ( * ) + + 75 col2 FROM tab0
----
78

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - - 68 * + 14, - ( - ( + ( - 85 ) ) ) )
----

query I rowsort
SELECT ALL + ( + 39 ) AS col1 FROM tab2
----
39
39
39

query I rowsort
SELECT ALL - col0 * - - col0 FROM tab1 AS cor0 WHERE 74 * col1 / + - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT DISTINCT - SUM( CAST( + 56 AS SIGNED ) ) + + 84 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - SUM ( CAST ( + 56 AS INTEGER ) ) + + 84 FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7906
SELECT ALL + col0 DIV - ( + - col0 ) + - col2 AS col2, + CAST( NULL AS SIGNED ) DIV - col1 + + + 85 DIV - 17 FROM tab0 AS cor0
----
-46
NULL
-9
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-7906
SELECT ALL + col0 / - ( + - col0 ) + - col2 AS col2, + CAST ( NULL AS INTEGER ) / - col1 + + + 85 / - 17 FROM tab0 AS cor0
----
-46
NULL
-9
NULL
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL - 78 - - COUNT( * ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL - 78 - - COUNT ( * ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + - col2 + ( + col0 ) - col2 * + 43 FROM tab0 AS cor0
----
-2053
-353
-4259

query I rowsort
SELECT + + col2 / + col2 FROM tab2 AS cor0 WHERE col2 BETWEEN 93 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 / - col2 + 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7911
SELECT ALL + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, SUM( - CAST( - 11 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7911
SELECT ALL + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, SUM ( - CAST ( - 11 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7912
SELECT ALL COUNT( * ), COUNT( * ) * + + MIN( + col0 ) AS col2 FROM tab2
----
3
138

skipif mysql # not compatible
query II rowsort label-7912
SELECT ALL COUNT ( * ), COUNT ( * ) * + + MIN ( + col0 ) AS col2 FROM tab2
----
3
138

query II rowsort
SELECT - ( - ( + 76 ) ), col2 FROM tab2
----
76
23
76
40
76
58

query I rowsort
SELECT DISTINCT 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
8

query II rowsort
SELECT + 84, col0 FROM tab1 AS cor0
----
84
51
84
85
84
91

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7917
SELECT ALL - 4 * CAST( - col2 AS SIGNED ) AS col0, - ( + 72 ) AS col0 FROM tab0 AS cor0
----
188
-72
396
-72
40
-72

skipif mysql # not compatible
query II rowsort label-7917
SELECT ALL - 4 * CAST ( - col2 AS INTEGER ) AS col0, - ( + 72 ) AS col0 FROM tab0 AS cor0
----
188
-72
396
-72
40
-72

query I rowsort
SELECT - col0 + + - 2 * - col1 FROM tab1 AS cor0
----
-23
-75
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT ALL + + CAST( NULL AS SIGNED ) * - col2 - - 18 + 91 + + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7919
SELECT ALL + + CAST ( NULL AS INTEGER ) * - col2 - - 18 + 91 + + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT - CAST( NULL AS SIGNED ) * + + 64 + + col1 * + col2 FROM tab0 AS cor0 WHERE NOT col0 * - + col1 BETWEEN ( - - col1 ) AND + CAST( - + col0 AS SIGNED )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT - CAST ( NULL AS INTEGER ) * + + 64 + + col1 * + col2 FROM tab0 AS cor0 WHERE NOT col0 * - + col1 BETWEEN ( - - col1 ) AND + CAST ( - + col0 AS INTEGER )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 46 * col1 + col1 AS col1 FROM tab0
----
-3645
-45
-945

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7922
SELECT * FROM tab1 WHERE + + col1 NOT IN ( + col1, col1, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7922
SELECT * FROM tab1 WHERE + + col1 NOT IN ( + col1, col1, CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT ALL col0 * + col2 + col1 * + - 61 - + + col2 DIV - col0 FROM tab0
----
-411
-4233
9543

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL col0 * + col2 + col1 * + - 61 - + + col2 / - col0 FROM tab0
----
-411
-4233
9543

query I rowsort
SELECT ( - ( + 8 ) ) FROM tab1
----
-8
-8
-8

query II rowsort
SELECT ALL + col1 + col0, col2 AS col2 FROM tab2
----
141
40
142
58
97
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT DISTINCT - - ( + col0 ) * 46 + - col1 col0 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----
2332
3905
4139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7926
SELECT DISTINCT - - ( + col0 ) * 46 + - col1 col0 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----
2332
3905
4139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT ALL col0 + + col1 + - 89 * - + CAST( - col2 AS SIGNED ) FROM tab1
----
-5161
-5914
-8479

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL col0 + + col1 + - 89 * - + CAST ( - col2 AS INTEGER ) FROM tab1
----
-5161
-5914
-8479

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= col2 * col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT ALL col1 + + - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL col1 + + - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE col2 <= 94
----
-59
-68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NOT - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 71 * + col2 + - col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 3 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 13 ) * + col1 + - 98 col2 FROM tab0 AS cor0
----
-85
175
955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7935
SELECT ALL - COUNT( * ) DIV COUNT( * ) DIV + 70 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - COUNT ( * ) / COUNT ( * ) / + 70 FROM tab0
----
0

query I rowsort
SELECT col1 * + - 83 * col1 * - col2 * - 39 FROM tab0
----
-14275170
-320463
-998183979

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 86 * 34 BETWEEN NULL AND + + col0 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT DISTINCT COUNT( * ), - SUM( + col1 ) * + 6 - + 92 AS col2 FROM tab2 AS cor0
----
3
-1262

skipif mysql # not compatible
query II rowsort label-7938
SELECT DISTINCT COUNT ( * ), - SUM ( + col1 ) * + 6 - + 92 AS col2 FROM tab2 AS cor0
----
3
-1262

query III rowsort
SELECT * FROM tab0 WHERE NOT + 95 IN ( ( - 55 ) + + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 23 > - 37 * - 1 + - col0
----
14

query I rowsort
SELECT + + 47 * + 63 FROM tab0 AS cor0
----
2961
2961
2961

query I rowsort
SELECT DISTINCT col0 * ( + 93 ) AS col0 FROM tab1 AS cor0
----
4743
7905
8463

query II rowsort
SELECT - 69 * + + col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-1035
81
-6003
21
-6693
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col0, - col0, + 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT - + CAST( - - 72 AS SIGNED ) FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-7945
SELECT - + CAST ( - - 72 AS INTEGER ) FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE 22 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 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 col1 AS col1, 77 col1 FROM tab2
----
51
77
67
77
77
77

query I rowsort
SELECT ALL + ( - + col2 ) + col2 * + col2 FROM tab0
----
2162
90
9702

query I rowsort
SELECT DISTINCT + col2 - + col1 + + col2 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL <= - col0
----

query I rowsort
SELECT DISTINCT 74 + - 78 + - col2 AS col1 FROM tab0
----
-103
-14
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT col2 DIV + - 5 + - - col1 - + 6 * - + col2 FROM tab0 AS cor0
----
354
576
79

skipif mysql # not compatible
query I rowsort label-7953
SELECT col2 / + - 5 + - - col1 - + 6 * - + col2 FROM tab0 AS cor0
----
354
576
79

query I rowsort
SELECT - col2 - - 60 + + 89 AS col1 FROM tab2 AS cor0
----
109
126
91

query I rowsort
SELECT - col2 + 91 AS col0 FROM tab0 AS cor0
----
-8
44
81

query I rowsort
SELECT DISTINCT + col1 - + col1 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7957
SELECT DISTINCT + 23 DIV - 79 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + 23 / - 79 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL COUNT( * ) * + 22 - - COUNT( * ) * - 55 AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL COUNT ( * ) * + 22 - - COUNT ( * ) * - 55 AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 17 / + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + col1 ) * + + 3 AS col0 FROM tab0
----
243
3
63

query I rowsort
SELECT + col2 * - 25 FROM tab1
----
-1475
-1700
-2400

query I rowsort
SELECT ( 19 ) AS col2 FROM tab0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT col2 DIV - col1 * 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7964
SELECT col2 / - col1 * 99 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT - + col1 DIV + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT - + col1 / + + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT - COUNT( DISTINCT + col2 ) + - 81 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) + - 81 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT + MAX( ALL - col2 ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7967
SELECT + MAX ( ALL - col2 ) AS col2 FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 cor0 WHERE 9 NOT BETWEEN - ( - 8 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) * - MAX( col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) * - MAX ( col2 ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT - 49, 94 AS col2 FROM tab0
----
-49
94
-49
94
-49
94

query II rowsort
SELECT col1 + col1 AS col1, + 42 AS col2 FROM tab2
----
102
42
134
42
154
42

query I rowsort
SELECT ALL 51 + + col1 + + - col1 + + + col1 + + ( 69 ) * + col1 * + + 25 * + - col1 FROM tab2 AS cor0
----
-10227397
-4486623
-7743407

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col1 + col0 * - col0 + 21 AS col1 FROM tab1 AS cor0
----
-2566
-7199
-8213

query I rowsort
SELECT + + ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE + 39 / - + ( - col0 ) + - - 0 + + col0 IS NULL
----

query II rowsort
SELECT 63 * - + 24, + col0 AS col2 FROM tab0
----
-1512
15
-1512
87
-1512
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7979
SELECT CAST( + ( - 48 ) AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT CAST ( + ( - 48 ) AS REAL ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - col2 AS col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL + COUNT( DISTINCT + - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + COUNT ( DISTINCT + - col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + 59 + col1 + - 57 * + col1 + + col2 FROM tab2
----
-2774
-3635
-4213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL COUNT( * ) + + + COUNT( * ) + CAST( NULL AS SIGNED ) * - - 9 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7983
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - - 9 col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7984
SELECT CAST( + + 19 AS SIGNED ) AS col1, + COUNT( * ) * + 89 FROM tab1
----
19
267

skipif mysql # not compatible
query II rowsort label-7984
SELECT CAST ( + + 19 AS INTEGER ) AS col1, + COUNT ( * ) * + 89 FROM tab1
----
19
267

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE col0 IN ( + col2 / + - 96 * + col0 - + col0 - + col0 * - ( + col1 ), - col0, + - col1 * - col1, + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL - MIN( ALL - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - MIN ( ALL - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT + + col0 - - - col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-7987
SELECT + + col0 - - - col2 / + col1 AS col0 FROM tab1 AS cor0
----
45
74
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * 13 * + col0 NOT BETWEEN + col0 * col2 * + col2 - - 14 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7989
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT + 73 + - col1 * - + col2 + - col0 AS col0 FROM tab2 AS cor0
----
1200
3089
3884

query II rowsort
SELECT 47 + - 20 - - ( - col2 ) - + col1 + col1 AS col0, + 45 FROM tab1
----
-32
45
-41
45
-69
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 23 <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7993
SELECT + - 53 AS col1, + 55 * CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-53
-2805
-53
-3685
-53
-4235

skipif mysql # not compatible
query II rowsort label-7993
SELECT + - 53 AS col1, + 55 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-53
-2805
-53
-3685
-53
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT - COUNT( * ) * + - ( COUNT( + - col1 ) ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT - COUNT ( * ) * + - ( COUNT ( + - col1 ) ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7995
SELECT - col0 * - CAST( NULL AS SIGNED ) * + 39 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT - col0 * - CAST ( NULL AS INTEGER ) * + 39 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - 56 FROM tab2 AS cor0
----
1288
2240
3248

query I rowsort
SELECT + col2 * - 78 AS col0 FROM tab0
----
-3666
-7722
-780

onlyif mysql # aggregate syntax: 
query II rowsort label-7998
SELECT DISTINCT MIN( DISTINCT + col0 ), 92 AS col1 FROM tab0
----
15
92

skipif mysql # not compatible
query II rowsort label-7998
SELECT DISTINCT MIN ( DISTINCT + col0 ), 92 AS col1 FROM tab0
----
15
92

query III rowsort
SELECT * FROM tab0 WHERE NOT + 84 = NULL
----

query I rowsort
SELECT DISTINCT + ( col1 ) * - 40 AS col2 FROM tab0
----
-3240
-40
-840

query I rowsort
SELECT DISTINCT + ( + 79 ) FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + - MAX( + + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8002
SELECT + - MAX ( + + col1 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - col0 * - + col1, - 52 * + + col1, - col2 * col1 + col1 + + + 10, + col2 + col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8004
SELECT + 79 DIV - col2, 23 * - col1 AS col2 FROM tab2 cor0
----
-1
-1541
-1
-1771
-3
-1173

skipif mysql # not compatible
query II rowsort label-8004
SELECT + 79 / - col2, 23 * - col1 AS col2 FROM tab2 cor0
----
-1
-1541
-1
-1771
-3
-1173

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8005
SELECT DISTINCT * FROM tab1 cor0 WHERE + + col1 + - CAST( NULL AS SIGNED ) BETWEEN ( - + col2 ) AND NULL OR NOT col2 = - col0 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8005
SELECT DISTINCT * FROM tab1 cor0 WHERE + + col1 + - CAST ( NULL AS INTEGER ) BETWEEN ( - + col2 ) AND NULL OR NOT col2 = - col0 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT + 60 DIV + + col1 + col2 * - - 87 FROM tab0 AS cor0
----
4089
8673
872

skipif mysql # not compatible
query I rowsort label-8006
SELECT + 60 / + + col1 + col2 * - - 87 FROM tab0 AS cor0
----
4089
8673
872

query I rowsort
SELECT 73 + + + 59 AS col1 FROM tab1 AS cor0
----
132
132
132

onlyif mysql # aggregate syntax: 
query II rowsort label-8008
SELECT ALL + 13, - MAX( DISTINCT + 91 ) AS col0 FROM tab1
----
13
-91

skipif mysql # not compatible
query II rowsort label-8008
SELECT ALL + 13, - MAX ( DISTINCT + 91 ) AS col0 FROM tab1
----
13
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL + - MIN( DISTINCT + - 97 ) AS col1 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL + - MIN ( DISTINCT + - 97 ) AS col1 FROM tab2 AS cor0
----
97

query I rowsort
SELECT ALL ( + - col0 ) FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
-15
-87
-97

query II rowsort
SELECT ALL + + 28, - ( + col1 ) + col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - + col1 - + - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT + + SUM( - + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8013
SELECT + + SUM ( - + col1 ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 38, col2 + - + 23 col2 FROM tab0 AS cor0
----
38
-13
38
24
38
76

query I rowsort
SELECT + - col1 - - + 54 AS col2 FROM tab0 AS cor0
----
-27
33
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT + + ( - col1 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT + + ( - col1 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT - + MIN( ALL + col2 ) AS col0 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - + MIN ( ALL + col2 ) AS col0 FROM tab2 cor0
----
-23

query I rowsort
SELECT ALL + col2 + + col1 * + + 90 + col1 FROM tab1 AS cor0
----
1370
4345
514

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE col2 <= + col1
----
-2

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE col2 <= + col1
----
-2

query I rowsort
SELECT ALL 50 * - col1 + - col1 FROM tab0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT 32 + MIN( ALL + - col1 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-8021
SELECT 32 + MIN ( ALL + - col1 ) FROM tab2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8022
SELECT col2 AS col1, CAST( - col1 AS SIGNED ) * col2 col1 FROM tab1 WHERE + - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8022
SELECT col2 AS col1, CAST ( - col1 AS INTEGER ) * col2 col1 FROM tab1 WHERE + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + + - col0 col2 FROM tab1
----
-18
-24
16

query I rowsort
SELECT + - col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col1 - + - col2 AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL col0 - - + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL + + col1 - - col2 AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL + col0 - + 93 * + col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT DISTINCT 61 - + col1 FROM tab1 AS cor0
----
14
47
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT - - COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8030
SELECT - - COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

query II rowsort
SELECT DISTINCT + ( - col0 ) AS col1, - col2 + + 48 + + 74 FROM tab1 AS cor0
----
-51
26
-85
63
-91
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT - COUNT( - 42 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8033
SELECT - COUNT ( - 42 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT + - SUM( - + 63 ) AS col2 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-8034
SELECT + - SUM ( - + 63 ) AS col2 FROM tab2 AS cor0
----
189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 23 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 30 col1 FROM tab1 cor0
----
-1410
-150
-420

query III rowsort
SELECT ALL * FROM tab0 WHERE + 26 * - 18 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 38 * - col2 FROM tab1
----
2242
2584
3648

query II rowsort
SELECT ALL + 6, + col2 FROM tab0
----
6
10
6
47
6
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 75 < NULL
----

query II rowsort
SELECT ALL + 97 * - + ( - 27 ) AS col2, + 66 AS col0 FROM tab2
----
2619
66
2619
66
2619
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT + 70 / + SUM( ALL + - col2 ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + 70 / + SUM ( ALL + - col2 ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8043
SELECT - 22 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-22
NULL
-22
NULL
-22
NULL

skipif mysql # not compatible
query II rowsort label-8043
SELECT - 22 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-22
NULL
-22
NULL
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ( COUNT( * ) ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8044
SELECT ( COUNT ( * ) ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT + COUNT( 44 ) col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8045
SELECT DISTINCT + COUNT ( 44 ) col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8046
SELECT DISTINCT - + COUNT( * ), - 24 AS col2 FROM tab1 AS cor0
----
-3
-24

skipif mysql # not compatible
query II rowsort label-8046
SELECT DISTINCT - + COUNT ( * ), - 24 AS col2 FROM tab1 AS cor0
----
-3
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 14 col1 FROM tab0 AS cor0 WHERE NOT col0 = - - ( col1 )
----
14
14
14

query I rowsort
SELECT ALL 36 + col0 * + + col0 * - col2 * - 14 FROM tab2 AS cor0
----
2293796
4567536
681388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col2 ) col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE col0 + + col2 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col1 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - 71 * - MAX( - + col0 ) FROM tab2 AS cor0
----
-3266

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - 71 * - MAX ( - + col0 ) FROM tab2 AS cor0
----
-3266

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL - COUNT( * ) + - COUNT( - + col0 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - COUNT ( * ) + - COUNT ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 * col0 * - 38 NOT BETWEEN NULL AND - + col1 * col0
----

query I rowsort
SELECT ALL ( - + col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT CAST( + - col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8056
SELECT CAST ( + - col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 * + 1 + - col0 + col1 FROM tab2 AS cor0
----
56
59
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT COUNT( * ) DIV - MIN( ALL - - col0 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8058
SELECT COUNT ( * ) / - MIN ( ALL - - col0 ) col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, col2 col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT col0 * - 31 - + col1 FROM tab1
----
-1595
-2640
-2868

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 58 IS NULL
----

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab2, tab1 cor0
----
40

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8064
SELECT - - CAST( - 51 AS SIGNED ) + + + col0, col2 FROM tab0 WHERE NULL IS NULL
----
-36
47
36
10
46
99

skipif mysql # not compatible
query II rowsort label-8064
SELECT - - CAST ( - 51 AS INTEGER ) + + + col0, col2 FROM tab0 WHERE NULL IS NULL
----
-36
47
36
10
46
99

query I rowsort
SELECT ALL - - col1 * + 7 + + + 36 AS col2 FROM tab2 cor0
----
393
505
575

query I rowsort
SELECT ( - 96 ) * - col2 AS col2 FROM tab2 AS cor0
----
2208
3840
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + COUNT( DISTINCT 89 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8067
SELECT + COUNT ( DISTINCT 89 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT + ( + + col2 ) * - + 22 AS col2 FROM tab2 AS cor0
----
-1276
-506
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT 32 + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
41

skipif mysql # not compatible
query I rowsort label-8069
SELECT 32 + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 82 <= + 76
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT 61 AS col2, COUNT( * ) * 82 AS col1 FROM tab1
----
61
246

skipif mysql # not compatible
query II rowsort label-8071
SELECT 61 AS col2, COUNT ( * ) * 82 AS col1 FROM tab1
----
61
246

query I rowsort
SELECT ALL - 19 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 13 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT + 84 DIV + col2 + - 78 AS col0 FROM tab2 AS cor0
----
-75
-76
-77

skipif mysql # not compatible
query I rowsort label-8074
SELECT + 84 / + col2 + - 78 AS col0 FROM tab2 AS cor0
----
-75
-76
-77

query I rowsort
SELECT ( - 80 ) AS col2 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT DISTINCT + + SUM( + + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + + SUM ( + + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT col1 * col0 + + col2 - col2 * + col1 FROM tab1 AS cor0
----
-534
1149
189

query I rowsort
SELECT - 2 * - 81 * col0 - - + 51 * col0 AS col2 FROM tab1 cor0
----
10863
18105
19383

query II rowsort
SELECT ALL + - 51 * col2, col0 AS col1 FROM tab0 AS cor0
----
-2397
15
-5049
97
-510
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT NULL NOT BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - ( - 79 ) IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 33 col0 FROM tab1 AS cor0
----
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 55 + col2 + - col1 - + col1 < NULL
----

query I rowsort
SELECT col1 + + + 92 - col0 FROM tab0 AS cor0
----
-4
158
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8085
SELECT + col1 DIV col0 + + + col0 FROM tab0 AS cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-8085
SELECT + col1 / col0 + + + col0 FROM tab0 AS cor0
----
20
87
97

query I rowsort
SELECT - + col1 + + 85 AS col2 FROM tab1 AS cor0
----
38
71
80

query II rowsort
SELECT - col0 AS col1, col1 AS col2 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT ALL - CAST( - 19 AS SIGNED ) * col0 FROM tab1 AS cor0
----
1615
1729
969

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - CAST ( - 19 AS INTEGER ) * col0 FROM tab1 AS cor0
----
1615
1729
969

query I rowsort
SELECT + - col0 - 83 FROM tab2 AS cor0
----
-129
-147
-158

query I rowsort
SELECT col1 - - + col1 * - - col2 + + 12 FROM tab2 cor0
----
1236
3169
3965

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + col1 < NULL
----

query I rowsort
SELECT - 92 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT COUNT( * ) + + 9 AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8093
SELECT COUNT ( * ) + + 9 AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT col1 - - + 19 * - col1 FROM tab0
----
-1458
-18
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT CAST( NULL AS SIGNED ) / + col1 * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT CAST ( NULL AS INTEGER ) / + col1 * - - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT ALL - + col1 DIV - 35 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - + col1 / - 35 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT - - ( - col2 ) AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT - COUNT( DISTINCT - col1 ) * - 75 AS col2 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8098
SELECT - COUNT ( DISTINCT - col1 ) * - 75 AS col2 FROM tab0 AS cor0
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col2 FROM tab0 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT - 25 DIV + ( - col2 ) AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8100
SELECT - 25 / + ( - col2 ) AS col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8101
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 16 col2, + col1 AS col0 FROM tab2 AS cor0
----
-16
51
-16
67
-16
77

query II rowsort
SELECT + - col1 * 7 * + col2 * + ( + col1 ) + 76, col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col1 FROM tab1
----
-95

query I rowsort
SELECT col2 FROM tab2 WHERE ( 55 ) >= NULL
----

query II rowsort
SELECT - col2, col2 AS col1 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8107
SELECT + col0 AS col0 FROM tab0 WHERE ( NOT NULL NOT IN ( CAST( + col1 AS SIGNED ) * col1 * + col2, - 96, - CAST( - + col2 AS SIGNED ) * - - col1, - col2 * + col0 + 96 / - - CAST( col0 AS DECIMAL ) + + col0 - col0, - - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-8107
SELECT + col0 AS col0 FROM tab0 WHERE ( NOT NULL NOT IN ( CAST ( + col1 AS INTEGER ) * col1 * + col2, - 96, - CAST ( - + col2 AS INTEGER ) * - - col1, - col2 * + col0 + 96 / - - CAST ( col0 AS REAL ) + + col0 - col0, - - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT SUM( - col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT SUM ( - col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 56
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + 82 FROM tab0
----
-17
35
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8110
SELECT - CAST( NULL AS DECIMAL ) + - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT - CAST ( NULL AS REAL ) + - + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - - col1 * - + col2 + + 36 AS col1 FROM tab0
----
-3756
-87
34

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE - 80 + - col0 BETWEEN col1 + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 99 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE ( - - col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8115
SELECT col2 * - 0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8115
SELECT col2 * - 0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + col0 ) * 42 FROM tab1 AS cor0
----
-2142
-3570
-3822

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 20 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT col0 DIV col0 DIV - 72 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT col0 / col0 / - 72 * - col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT 1 / CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT 1 / CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) * + ( - + 30 ) AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) * + ( - + 30 ) AS col1 FROM tab1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8121
SELECT DISTINCT + + COUNT( * ), COUNT( * ) col0 FROM tab1 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8121
SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) col0 FROM tab1 WHERE NULL IS NULL
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL ( + col2 ) * - col0 + - CAST( - + col1 AS SIGNED ) AS col2 FROM tab1
----
-4882
-5010
-6141

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL ( + col2 ) * - col0 + - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT DISTINCT - - 90 / - 4 + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8123
SELECT DISTINCT - - 90 / - 4 + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8124
SELECT - COUNT( * ), 1 AS col0 FROM tab2 cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-8124
SELECT - COUNT ( * ), 1 AS col0 FROM tab2 cor0
----
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL + COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8125
SELECT ALL + COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 = ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT - ( - - col0 ) DIV 84 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT - ( - - col0 ) / 84 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 5 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
5
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8129
SELECT 51 DIV + SUM( col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8129
SELECT 51 / + SUM ( col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL ( + 36 ) AS col2 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT + 30 DIV 40 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8131
SELECT + 30 / 40 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8132
SELECT CAST( 91 AS SIGNED ) DIV COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8132
SELECT CAST ( 91 AS INTEGER ) / COUNT ( * ) FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT - MAX( - - 36 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8133
SELECT - MAX ( - - 36 ) FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT - MIN( DISTINCT + ( + - col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - MIN ( DISTINCT + ( + - col1 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - 46 * + + col1 * - + col0 + col2 - - col1 FROM tab0
----
4562
56018
84073

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT DISTINCT - col2 DIV 91 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - col2 / 91 + + col1 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + + col1 - + col0 + ( col1 ) * + 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT ALL col0 DIV col2 + - 88 FROM tab1
----
-87
-87
-88

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL col0 / col2 + - 88 FROM tab1
----
-87
-87
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, - 88 col1 FROM tab0
----
10
-88
47
-88
99
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT 64 + COUNT( * ) col2 FROM tab2
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8140
SELECT 64 + COUNT ( * ) col2 FROM tab2
----
67

query I rowsort
SELECT DISTINCT - ( - 29 ) AS col0 FROM tab2 cor0
----
29

query I rowsort
SELECT + 55 * 44 FROM tab0 AS cor0
----
2420
2420
2420

query I rowsort
SELECT DISTINCT - ( + + ( - col2 ) ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT 30 - + col1 + - col1 - col2 AS col0 FROM tab2 cor0
----
-162
-164
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * + + 19 - - - 86 col0 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT - col0 + col2 + - + 21 + + 60 FROM tab1 cor0
----
13
16
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT ALL - + ( + col0 ) - + ( CAST( NULL AS SIGNED ) ) * - - 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL - + ( + col0 ) - + ( CAST ( NULL AS INTEGER ) ) * - - 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col2, - 47 AS col1 FROM tab1 AS cor0
----
51
-47
85
-47
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT + - MIN( DISTINCT col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8149
SELECT + - MIN ( DISTINCT col1 ) FROM tab1 cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT - COUNT( * ) DIV - 12 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8152
SELECT - COUNT ( * ) / - 12 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT ALL MIN( + 34 ) AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL MIN ( + 34 ) AS col2 FROM tab2
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 22 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( + col0 ) AS col0, col2 FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col1 col0 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + 84 * - col1 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * col1 col1 FROM tab0
----
-2511
-31
-651

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * 67 / - + 45 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - 20 * - - COUNT( * ) AS col0 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-8160
SELECT - 20 * - - COUNT ( * ) AS col0 FROM tab2
----
-60

query I rowsort
SELECT ALL 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT DISTINCT + SUM( + - 77 ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT + SUM ( + - 77 ) AS col0 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT + col0 + - col1 - + + col1 AS col1 FROM tab2 AS cor0
----
-56
-59
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8164
SELECT - + COUNT( * ) col2, - 27 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
0
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8164
SELECT - + COUNT ( * ) col2, - 27 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
0
-27

query I rowsort
SELECT 45 * + + 35 FROM tab1 AS cor0
----
1575
1575
1575

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * - 94 AS col0 FROM tab2
----
-4794
-6298
-7238

query I rowsort
SELECT - 20 * + col1 * + ( - + col0 ) AS col1 FROM tab0
----
1940
24300
36540

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL + 76 + + 84 + COUNT( * ) AS col0 FROM tab0
----
163

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + 76 + + 84 + COUNT ( * ) AS col0 FROM tab0
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT 27 + - SUM( col0 ) AS col2 FROM tab0 WHERE + ( - 29 ) * + col2 * + - col0 IS NOT NULL
----
-172

skipif mysql # not compatible
query I rowsort label-8171
SELECT 27 + - SUM ( col0 ) AS col2 FROM tab0 WHERE + ( - 29 ) * + col2 * + - col0 IS NOT NULL
----
-172

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col2 * + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = col2 + + 79
----

query I rowsort
SELECT + col2 + - col1 * - - col0 AS col0 FROM tab2 cor0
----
-2323
-4888
-4967

query I rowsort
SELECT - col1 + + 44 AS col2 FROM tab0 AS cor0
----
-37
23
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT ( + ( + 67 ) ) + - CAST( col2 AS SIGNED ) FROM tab2
----
27
44
9

skipif mysql # not compatible
query I rowsort label-8176
SELECT ( + ( + 67 ) ) + - CAST ( col2 AS INTEGER ) FROM tab2
----
27
44
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + ( - COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + ( - COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT - SUM( ALL col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8179
SELECT - SUM ( ALL col2 ) col2 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL OR NOT + 55 * - 31 IN ( ( + - 19 ) + 22, 59, - col0, + col1, - CAST( NULL AS SIGNED ) + col1 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8180
SELECT CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL OR NOT + 55 * - 31 IN ( ( + - 19 ) + 22, 59, - col0, + col1, - CAST ( NULL AS INTEGER ) + col1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT SUM( - + col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8181
SELECT SUM ( - + col2 ) col2 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8182
SELECT - 80 * - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT - 80 * - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 89 * - 47 AS col1 FROM tab1 AS cor0
----
4183
4183
4183

query II rowsort
SELECT ALL + + col2, 47 AS col0 FROM tab2 AS cor0
----
23
47
40
47
58
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT COUNT( + 23 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8187
SELECT COUNT ( + 23 ) FROM tab0
----
3

query I rowsort
SELECT ( + 29 ) AS col2 FROM tab1
----
29
29
29

query I rowsort
SELECT ALL col2 * - 67 AS col0 FROM tab2
----
-1541
-2680
-3886

query I rowsort
SELECT DISTINCT 29 * col1 FROM tab2
----
1479
1943
2233

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 37 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 42 AS col0, + col1 AS col1 FROM tab0
----
-42
1
-42
21
-42
81

query II rowsort
SELECT - - col2, 47 * col2 AS col1 FROM tab0 AS cor0
----
10
470
47
2209
99
4653

query II rowsort
SELECT col0, - col1 * - + col2 + col0 - + + col0 AS col2 FROM tab2 cor0
----
46
1173
64
3080
75
3886

query I rowsort
SELECT ALL - - 1 + 16 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab0 cor0 WHERE NULL = - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8197
SELECT ALL + CAST( NULL AS DECIMAL ) * + SUM( col2 ) + + + 19 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + CAST ( NULL AS REAL ) * + SUM ( col2 ) + + + 19 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8198
SELECT - MAX( ALL - CAST( NULL AS DECIMAL ) ) * 82 + 83 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT - MAX ( ALL - CAST ( NULL AS REAL ) ) * 82 + 83 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL + CAST( + - ( + - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + CAST ( + - ( + - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT DISTINCT - col2 * col1 + + 10 DIV col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT - col2 * col1 + + 10 / col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + + 11 + 6 * col0 FROM tab1 AS cor0
----
317
521
557

query I rowsort
SELECT DISTINCT + 65 * - + col1 FROM tab0
----
-1365
-5265
-65

query I rowsort
SELECT DISTINCT - 60 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab0 WHERE col1 IS NOT NULL
----
0

query I rowsort
SELECT col2 + 89 FROM tab0
----
136
188
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT - - MIN( + - 89 ) AS col0 FROM tab1 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8207
SELECT - - MIN ( + - 89 ) AS col0 FROM tab1 cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) / + col0 * + 31 + - 13 / + 9 * - col0 + - + CAST( NULL AS SIGNED ) * + col1 * + col0 + CAST( NULL AS SIGNED ) - + + 5 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) / + col0 * + 31 + - 13 / + 9 * - col0 + - + CAST ( NULL AS INTEGER ) * + col1 * + col0 + CAST ( NULL AS INTEGER ) - + + 5 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 30 AS col1 FROM tab2 cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL + 63 * - 36 - COUNT( * ) FROM tab1
----
-2271

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + 63 * - 36 - COUNT ( * ) FROM tab1
----
-2271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8211
SELECT 6 DIV - MIN( + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8211
SELECT 6 / - MIN ( + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT - col0 DIV 13 AS col2 FROM tab1
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-8212
SELECT - col0 / 13 AS col2 FROM tab1
----
-3
-6
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT CAST( CAST( 58 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
58
58
58

skipif mysql # not compatible
query I rowsort label-8213
SELECT CAST ( CAST ( 58 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
58
58
58

query I rowsort
SELECT DISTINCT + col0 - - ( col2 ) FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col0 FROM tab0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT DISTINCT ( ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 WHERE NULL <> + col0
----

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT ( ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 WHERE NULL <> + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 72 / col2
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE + col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( 82 ) NOT BETWEEN ( NULL ) AND CAST( + ( col2 ) AS SIGNED ) + - ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8220
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( 82 ) NOT BETWEEN ( NULL ) AND CAST ( + ( col2 ) AS INTEGER ) + - ( + col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT - MAX( ALL col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT - MAX ( ALL col0 ) AS col0 FROM tab2
----
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - 2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT COUNT( * ) * + 69 FROM tab2 WHERE NULL IN ( - 39 * col2 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8224
SELECT COUNT ( * ) * + 69 FROM tab2 WHERE NULL IN ( - 39 * col2 + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + MIN( + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8225
SELECT + MIN ( + col1 ) AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 12 col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - 76 + + col2 * - col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( 58 ) AS col2 FROM tab2
----
58
58
58

query III rowsort
SELECT * FROM tab1 WHERE ( + 43 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8230
SELECT ALL * FROM tab0 WHERE 89 IN ( CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-8230
SELECT ALL * FROM tab0 WHERE 89 IN ( CAST ( NULL AS INTEGER ) + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 0 ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8232
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8232
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL > CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= 86
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 41 * + col1 AS col1 FROM tab1 AS cor0
----
1927
205
574

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT COUNT( DISTINCT 76 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8236
SELECT COUNT ( DISTINCT 76 ) FROM tab1 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 <= 16
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT col1 * - col2 + + CAST( NULL AS SIGNED ) * - 61 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT col1 * - col2 + + CAST ( NULL AS INTEGER ) * - 61 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL COUNT( * ) * - 95 + COUNT( * ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL COUNT ( * ) * - 95 + COUNT ( * ) FROM tab1
----
-282

query I rowsort
SELECT - ( 62 ) + + ( ( col0 ) ) FROM tab0
----
-47
25
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT + ( - ( 4 ) ) DIV col2 + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8241
SELECT + ( - ( 4 ) ) / col2 + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8242
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) > ( - ( + CAST( NULL AS SIGNED ) ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-8242
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) > ( - ( + CAST ( NULL AS INTEGER ) ) * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 91 AND NULL
----

query I rowsort
SELECT + ( + col0 ) + - 17 FROM tab0 AS cor0
----
-2
70
80

query I rowsort
SELECT DISTINCT col1 / + ( 10 ) FROM tab1 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8247
SELECT * FROM tab1 AS cor0 WHERE ( col2 / col2 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8247
SELECT * FROM tab1 AS cor0 WHERE ( col2 / col2 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT - COUNT( * ) * - 61 AS col0 FROM tab0 cor0
----
183

skipif mysql # not compatible
query I rowsort label-8248
SELECT - COUNT ( * ) * - 61 AS col0 FROM tab0 cor0
----
183

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 >= - 97 / 22
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT COUNT( DISTINCT col0 ) * - MIN( - col0 * + col0 ) FROM tab2 AS cor0
----
16875

skipif mysql # not compatible
query I rowsort label-8250
SELECT COUNT ( DISTINCT col0 ) * - MIN ( - col0 * + col0 ) FROM tab2 AS cor0
----
16875

query I rowsort
SELECT - 45 * - - ( + col0 ) AS col2 FROM tab1
----
-2295
-3825
-4095

query I rowsort
SELECT DISTINCT - ( - - col1 ) + col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT + ( + col0 ) FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT + 22 * - COUNT( * ) - - 28 AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-8254
SELECT + 22 * - COUNT ( * ) - - 28 AS col1 FROM tab2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT ALL 5 * ( col1 ) + 92 DIV - 47 FROM tab2
----
254
334
384

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL 5 * ( col1 ) + 92 / - 47 FROM tab2
----
254
334
384

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT - col2 DIV + + 92 - - col1 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-8256
SELECT - col2 / + + 92 - - col1 FROM tab1
----
13
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL + MAX( ALL - col2 ) + + COUNT( * ) AS col2 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + MAX ( ALL - col2 ) + + COUNT ( * ) AS col2 FROM tab1
----
-56

query I rowsort
SELECT ALL col1 - + col0 - + col2 FROM tab0
----
-195
-76
19

query I rowsort
SELECT DISTINCT 67 * - col0 + 57 + - 22 FROM tab0 AS cor0
----
-5794
-6464
-970

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT col2 DIV + col2 + 83 DIV + 72 AS col1 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8260
SELECT col2 / + col2 + 83 / + 72 AS col1 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT 55 + MIN( 77 ) DIV ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8261
SELECT 55 + MIN ( 77 ) / ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT + COUNT( DISTINCT - + col1 ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT + COUNT ( DISTINCT - + col1 ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL - COUNT( DISTINCT - 87 ) + COUNT( * ) col0 FROM tab1 WHERE NOT + 94 / - 45 <> ( col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8263
SELECT ALL - COUNT ( DISTINCT - 87 ) + COUNT ( * ) col0 FROM tab1 WHERE NOT + 94 / - 45 <> ( col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + col0 + col1 * col1
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NULL >= 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 97 + + col0 col1 FROM tab2
----
46
143
64
161
75
172

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 * col0 + col0 IS NOT NULL
----

query I rowsort
SELECT + 92 + 16 * col2 FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN ( + + col1 ) AND 24
----
1676
252

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - col1 / - 12
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT ALL - 88 DIV - col2 AS col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - 88 / - col2 AS col2 FROM tab2 AS cor0
----
1
2
3

query II rowsort
SELECT col0 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT ALL - ( - 98 ) FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT + - col2 * col1 * col1 AS col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col0, - 94 * - 55 * 6 AS col1 FROM tab2 cor0
----
46
31020
64
31020
75
31020

query II rowsort
SELECT - col1, - col1 AS col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <= ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT ( - ( - 78 ) ) < NULL
----

query I rowsort
SELECT ALL 31 + + col2 - col0 + 4 AS col2 FROM tab1
----
12
80
9

query I rowsort
SELECT DISTINCT + col0 * ( + ( + col1 ) ) FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query II rowsort
SELECT 34 + - col1 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
-13
-68
20
-96
29
-59

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL > 83
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8286
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - 59 + + CAST( NULL AS SIGNED ) ) = ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-8286
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - 59 + + CAST ( NULL AS INTEGER ) ) = ( col0 ) )
----

query I rowsort
SELECT + ( - + col0 ) + + col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8288
SELECT DISTINCT - 17 AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-17
9

skipif mysql # not compatible
query II rowsort label-8288
SELECT DISTINCT - 17 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-17
9

query I rowsort
SELECT DISTINCT col2 * + col0 + + + col2 FROM tab0
----
752
880
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL - col2 * + col1 + 68 FROM tab2
----
-1105
-3012
-3818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * CAST( 66 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * CAST ( 66 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT - MAX( - + col0 ) FROM tab2 AS cor0 WHERE NOT + 93 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT - MAX ( - + col0 ) FROM tab2 AS cor0 WHERE NOT + 93 * col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 * - 97 AS col1 FROM tab0 AS cor0
----
2037
7857
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT DISTINCT AVG ( - ( + col2 ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT AVG ( - ( + col2 ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL + COUNT( ALL 6 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL + COUNT ( ALL 6 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( + 58 ) + 72 + - 40 col2 FROM tab2 AS cor0
----
-2636
-3680
-4318

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * + col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT ALL CAST( NULL AS SIGNED ) + - col1 * - col2 / - - col0 - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 * - col2 / - - col0 - - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT DISTINCT COUNT( * ) + + SUM( DISTINCT - + col1 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT COUNT ( * ) + + SUM ( DISTINCT - + col1 ) FROM tab1
----
-63

query I rowsort
SELECT DISTINCT - 81 - - + 28 + - col1 + + 76 AS col1 FROM tab2
----
-28
-44
-54

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) > NULL
----

query I rowsort
SELECT DISTINCT - + col2 - - - col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + 38 col0 FROM tab2 cor0
----
-1520
-2204
-874

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8308
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - col0, CAST( NULL AS SIGNED ), - + col1 )
----

skipif mysql # not compatible
query III rowsort label-8308
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - col0, CAST ( NULL AS INTEGER ), - + col1 )
----

query I rowsort
SELECT DISTINCT - ( + ( - - 80 ) ) * col0 AS col0 FROM tab1
----
-4080
-6800
-7280

query I rowsort
SELECT - col0 + - col2 / + col2 FROM tab2 WHERE NOT NULL BETWEEN col0 + - col1 AND 44
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 33 + 24 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN - col2 + - + col2 AND col0
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL - - 6 AS col2 FROM tab1 AS cor0 WHERE ( CAST( col0 AS SIGNED ) ) - - + 26 IS NOT NULL
----
6
6
6

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL - - 6 AS col2 FROM tab1 AS cor0 WHERE ( CAST ( col0 AS INTEGER ) ) - - + 26 IS NOT NULL
----
6
6
6

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = - col1 * - 99
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 13 * + col2 AS col2, 62 + - col1 * col0 col0, - col0 FROM tab2 AS cor0
----
9 values hashing to 376e7a3772dc08997b1a22b397b278ef

query I rowsort
SELECT ALL + + ( 29 ) AS col2 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT DISTINCT + + 10 + - + CAST( - 17 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 63 + + - 51 + + col1 + - + col2 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT + + 10 + - + CAST ( - 17 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 63 + + - 51 + + col1 + - + col2 IS NOT NULL
----
27

query II rowsort
SELECT 12 AS col0, col1 + + - ( + + 86 ) + - - 16 * 52 AS col0 FROM tab1
----
12
751
12
760
12
793

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8320
SELECT ALL CAST( NULL AS SIGNED ) * col0 + - 8, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL CAST ( NULL AS INTEGER ) * col0 + - 8, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT 13 + + 22 AS col2 FROM tab0
----
35

query I rowsort
SELECT 90 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT - col1 * - ( + col2 ), ( + + col2 ) AS col1 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT - 75 * - + col1 FROM tab1
----
1050
3525
375

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT ALL col1 DIV - 14 AS col0 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL col1 / - 14 AS col0 FROM tab1
----
-1
-3
0

query I rowsort
SELECT ALL - 60 + + - col1 FROM tab2
----
-111
-127
-137

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * 89 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - + SUM( ALL + 78 ) FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-8328
SELECT - + SUM ( ALL + 78 ) FROM tab2 AS cor0
----
-234

query I rowsort
SELECT - + 59 + + - col1 FROM tab1 AS cor0
----
-106
-64
-73

query II rowsort
SELECT - 1 + - col1 * - - col0 * + 30, col2 AS col1 FROM tab2
----
-147841
40
-150751
58
-70381
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col2 <> + 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 * - 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT + 55 * 16 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT + 55 * 16 IS NULL
----
9

query I rowsort
SELECT DISTINCT - 55 + col2 + - col2 AS col0 FROM tab2 WHERE ( + 83 + + col1 NOT IN ( - col0, col1 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT - + COUNT( * ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8335
SELECT DISTINCT - + COUNT ( * ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

query I rowsort
SELECT - + col0 * + col1 * 30 + + 41 AS col0 FROM tab0 cor0
----
-2869
-36409
-54769

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND + 60 + - 39 - + col2 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 10 * - 73 * col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 10 * - 73 * col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8339
SELECT DISTINCT + CAST( col2 AS SIGNED ), 36 AS col0 FROM tab0 cor0
----
10
36
47
36
99
36

skipif mysql # not compatible
query II rowsort label-8339
SELECT DISTINCT + CAST ( col2 AS INTEGER ), 36 AS col0 FROM tab0 cor0
----
10
36
47
36
99
36

query I rowsort
SELECT + - col2 * + 14 AS col1 FROM tab1 AS cor0
----
-1344
-826
-952

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 88
----

query I rowsort
SELECT DISTINCT + - 33 + + col1 * - col0 FROM tab0 AS cor0
----
-1248
-130
-1860

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 45 - + ( - col1 ) IN ( + + 33 / + 46 + - ( + 23 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 2 + + col2 + + - 50 + - ( col1 ) * 1 IN ( + + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 - - + col2 AS col1 FROM tab2
----
116
46
80

query I rowsort
SELECT col1 - + 59 FROM tab2
----
-8
18
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8347
SELECT + CAST( NULL AS DECIMAL ) - - + 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT + CAST ( NULL AS REAL ) - - + 53 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col0 ) * - 77 * col0 AS col2 FROM tab0
----
17325
582813
724493

query I rowsort
SELECT 41 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT 44, col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, - col2 col2 FROM tab0 AS cor0 WHERE NOT 26 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col0, col2 - + 55 AS col1 FROM tab1 cor0
----
-51
41
-85
4
-91
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - COUNT( * ) * 7 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8353
SELECT - COUNT ( * ) * 7 FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL + ( + COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + ( + COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT - MIN( DISTINCT + 59 ) AS col1 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-8355
SELECT - MIN ( DISTINCT + 59 ) AS col1 FROM tab2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8356
SELECT + + CAST( NULL AS SIGNED ) * col1 * - 31 AS col2, + 79 * + - col1 FROM tab0 AS cor0 WHERE NOT col0 * - 10 IS NULL
----
NULL
-1659
NULL
-6399
NULL
-79

skipif mysql # not compatible
query II rowsort label-8356
SELECT + + CAST ( NULL AS INTEGER ) * col1 * - 31 AS col2, + 79 * + - col1 FROM tab0 AS cor0 WHERE NOT col0 * - 10 IS NULL
----
NULL
-1659
NULL
-6399
NULL
-79

query II rowsort
SELECT ALL - - 19 AS col2, 58 + + col2 FROM tab0 AS cor0
----
19
105
19
157
19
68

query II rowsort
SELECT + col2, + 1 * + 48 + - col0 - + col2 FROM tab0 AS cor0
----
10
-49
47
-14
99
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8359
SELECT DISTINCT - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8360
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT DISTINCT SUM( ALL + - 13 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT SUM ( ALL + - 13 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
117

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 63
----

query II rowsort
SELECT + col1 AS col2, 38 FROM tab1 AS cor0
----
14
38
47
38
5
38

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 - - 82 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * - 1 + - 26 + - + 31 + + col1 FROM tab1
----
-111
-139
-78

query I rowsort
SELECT ALL + col0 * + col0 * + + 30 + + col0 FROM tab1
----
216835
248521
78081

onlyif mysql # DIV for integer division: 
query II rowsort label-8368
SELECT DISTINCT + col2 DIV - 26 AS col1, - 85 AS col2 FROM tab0
----
-1
-85
-3
-85
0
-85

skipif mysql # not compatible
query II rowsort label-8368
SELECT DISTINCT + col2 / - 26 AS col1, - 85 AS col2 FROM tab0
----
-1
-85
-3
-85
0
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8369
SELECT ALL - CAST( + + col0 AS SIGNED ) DIV + col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - CAST ( + + col0 AS INTEGER ) / + col0 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE col2 * - 59 + + col2 * + + 57 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 76 + - col1 AS col1 FROM tab1
----
29
62
71

query II rowsort
SELECT + - col1 + - col2 AS col2, + 8 * - - col2 + - + col0 + - - 52 FROM tab1 AS cor0
----
-110
769
-115
505
-64
439

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8373
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL MAX( + - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL MAX ( + - col2 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT ALL - col1 + - + col0 FROM tab0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT - col2 DIV + + col0 + 23 * - ( 69 ) FROM tab0 cor0
----
-1587
-1588
-1590

skipif mysql # not compatible
query I rowsort label-8376
SELECT - col2 / + + col0 + 23 * - ( 69 ) FROM tab0 cor0
----
-1587
-1588
-1590

query I rowsort
SELECT ALL + + 8 * + ( - + 77 ) * - - 19 - col1 FROM tab1 AS cor0
----
-11709
-11718
-11751

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT + COUNT( * ) + 10 FROM tab1 AS cor0 WHERE NULL >= col1 - + col2 * + col1 + - col0
----
10

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + COUNT ( * ) + 10 FROM tab1 AS cor0 WHERE NULL >= col1 - + col2 * + col1 + - col0
----
10

query I rowsort
SELECT + col0 + + + ( - - col2 ) * ( col1 ) AS col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT DISTINCT - ( - + col0 ) * ( - col2 ) * + col1 * - col1 AS col1 FROM tab0 cor0
----
383670
4625505
9603

query III rowsort
SELECT * FROM tab2 WHERE NOT + 64 * + ( + - 42 ) + - + 46 + 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 49 * - col0 AS col1 FROM tab0
----
-4263
-4753
-735

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 * - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * 41 * - + col2 FROM tab0
----
-401841
-4100
-90569

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT ALL 81 AS col0, 82 + + 70 + + + COUNT( ALL + + col1 ) FROM tab1
----
81
155

skipif mysql # not compatible
query II rowsort label-8385
SELECT ALL 81 AS col0, 82 + + 70 + + + COUNT ( ALL + + col1 ) FROM tab1
----
81
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT + SUM( DISTINCT - + CAST( + col2 AS SIGNED ) ) * 73 FROM tab1 AS cor0
----
-16279

skipif mysql # not compatible
query I rowsort label-8386
SELECT + SUM ( DISTINCT - + CAST ( + col2 AS INTEGER ) ) * 73 FROM tab1 AS cor0
----
-16279

query I rowsort
SELECT 72 + + ( col0 ) FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT - + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT - + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col1 > + + col1 + col1 - - col0
----

query II rowsort
SELECT ALL + 40 AS col1, - col1 FROM tab2 AS cor0
----
40
-51
40
-67
40
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8392
SELECT - + COUNT( * ) AS col1, MIN( + col1 ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8392
SELECT - + COUNT ( * ) AS col1, MIN ( + col1 ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL 0 + - ( - COUNT( * ) ) AS col2 FROM tab1 WHERE - 0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL 0 + - ( - COUNT ( * ) ) AS col2 FROM tab1 WHERE - 0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT CAST( ( - 42 ) AS SIGNED ) FROM tab1
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-8394
SELECT CAST ( ( - 42 ) AS INTEGER ) FROM tab1
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-8395
SELECT + col2 AS col2, 76 DIV - 45 - 55 FROM tab0
----
10
-56
47
-56
99
-56

skipif mysql # not compatible
query II rowsort label-8395
SELECT + col2 AS col2, 76 / - 45 - 55 FROM tab0
----
10
-56
47
-56
99
-56

query III rowsort
SELECT * FROM tab1 WHERE + ( - 50 ) / - - col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, - 26 FROM tab1
----
59
-26
68
-26
96
-26

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND + 80 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL + COUNT( col2 ) * + 40 + + + SUM( - 0 ) AS col0 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL + COUNT ( col2 ) * + 40 + + + SUM ( - 0 ) AS col0 FROM tab1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT col2 * CAST( col1 AS SIGNED ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8400
SELECT col2 * CAST ( col1 AS INTEGER ) FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT + col2 DIV 83 * - col0 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8401
SELECT + col2 / 83 * - col0 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT - 86 > - 37 * col1
----

query I rowsort
SELECT DISTINCT - col2 + 78 + + - col2 FROM tab0 AS cor0
----
-120
-16
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8404
SELECT COUNT( 72 ) + - 64 + - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8404
SELECT COUNT ( 72 ) + - 64 + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 58 * col2 <= - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 <= col0
----

query I rowsort
SELECT + 99 + col2 FROM tab1 AS cor0
----
158
167
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - 3 + 50 * + COUNT( * ) FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-8408
SELECT - 3 + 50 * + COUNT ( * ) FROM tab0 AS cor0
----
147

query I rowsort
SELECT DISTINCT - ( col1 ) * + 50 AS col1 FROM tab1
----
-2350
-250
-700

query I rowsort
SELECT - 29 * - col1 + + - col2 FROM tab1
----
1295
310
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT - ( + COUNT( - - 76 ) ) + - 64 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT - ( + COUNT ( - - 76 ) ) + - 64 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT ALL + col0 - - 76 AS col2 FROM tab2 cor0
----
122
140
151

query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - 73 - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-127
-155
-94

query I rowsort
SELECT DISTINCT + col0 * 83 - + 37 FROM tab2 AS cor0
----
3781
5275
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT + - MAX( ALL + 14 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8417
SELECT + - MAX ( ALL + 14 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT 48 * - ( + MAX( DISTINCT + - col2 ) ) FROM tab1 AS cor0
----
2832

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT 48 * - ( + MAX ( DISTINCT + - col2 ) ) FROM tab1 AS cor0
----
2832

query I rowsort
SELECT + col2 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8420
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT - 73 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
3358
4672
5475

skipif mysql # not compatible
query I rowsort label-8421
SELECT - 73 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
3358
4672
5475

onlyif mysql # DIV for integer division: 
query II rowsort label-8422
SELECT DISTINCT col2 AS col0, + ( + 29 ) * - col0 + - + col2 DIV + col2 FROM tab2
----
23
-1335
40
-1857
58
-2176

skipif mysql # not compatible
query II rowsort label-8422
SELECT DISTINCT col2 AS col0, + ( + 29 ) * - col0 + - + col2 / + col2 FROM tab2
----
23
-1335
40
-1857
58
-2176

query II rowsort
SELECT DISTINCT col2, ( + col0 ) FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL + COUNT( col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + COUNT ( col2 ) FROM tab0
----
3

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col1 + - 49 * - - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, - col1 col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT + col1 AS col0, col1 * - col1 * 90 - - col2 AS col2 FROM tab0 AS cor0
----
1
9
21
-39680
81
-590443

query II rowsort
SELECT 25, col0 AS col1 FROM tab0 AS cor0
----
25
15
25
87
25
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8430
SELECT DISTINCT MIN( DISTINCT + 9 ) AS col2, + SUM( ALL + 96 ) FROM tab0 AS cor0
----
9
288

skipif mysql # not compatible
query II rowsort label-8430
SELECT DISTINCT MIN ( DISTINCT + 9 ) AS col2, + SUM ( ALL + 96 ) FROM tab0 AS cor0
----
9
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + COUNT( * ) * + MIN( - - col0 ) AS col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8431
SELECT + COUNT ( * ) * + MIN ( - - col0 ) AS col0 FROM tab2 AS cor0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - + 29 ) + + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8434
SELECT + col1 DIV - col1, 19 col2 FROM tab2 AS cor0
----
-1
19
-1
19
-1
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8434
SELECT + col1 / - col1, 19 col2 FROM tab2 AS cor0
----
-1
19
-1
19
-1
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8435
SELECT + ( + col1 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8435
SELECT + ( + col1 ) / - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - 10 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - - 3 IN ( + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT + col2 DIV - - col0 * + + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8438
SELECT + col2 / - - col0 * + + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT ALL + 47 * + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + 47 * + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ALL 17 + - ( - SUM( DISTINCT 18 ) ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL 17 + - ( - SUM ( DISTINCT 18 ) ) FROM tab0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + + + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL 63 + - ( + col1 ) AS col1 FROM tab2
----
-14
-4
12

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL COUNT( + 38 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8444
SELECT ALL COUNT ( + 38 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT DISTINCT + ( - ( 99 ) ) + - 56 - - MAX( + 34 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT + ( - ( 99 ) ) + - 56 - - MAX ( + 34 ) FROM tab2
----
-121

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + + 57 + - + 20 AND - col1
----

query I rowsort
SELECT DISTINCT col1 * + - 83 - - col0 FROM tab0 AS cor0
----
-1656
-6708
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT ALL + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL + COUNT( + col2 ) * COUNT( * ) * - - 80 FROM tab0 AS cor0
----
720

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + COUNT ( + col2 ) * COUNT ( * ) * - - 80 FROM tab0 AS cor0
----
720

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col1 + - col0 IS NULL
----

query I rowsort
SELECT - 37 + - - col2 FROM tab2
----
-14
21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT DISTINCT + col0 * 78 DIV - + 48 + col2 AS col0 FROM tab0 AS cor0
----
-131
-58
23

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT + col0 * 78 / - + 48 + col2 AS col0 FROM tab0 AS cor0
----
-131
-58
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT DISTINCT + - 44 DIV col1 col0 FROM tab0 AS cor0
----
-2
-44
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8453
SELECT DISTINCT + - 44 / col1 col0 FROM tab0 AS cor0
----
-2
-44
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8454
SELECT DISTINCT + col1 DIV - 2 AS col2 FROM tab0 AS cor0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT + col1 / - 2 AS col2 FROM tab0 AS cor0
----
-10
-40
0

query II rowsort
SELECT DISTINCT + ( + col0 ), + col0 * - col1 AS col1 FROM tab1 AS cor0
----
51
-714
85
-425
91
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8456
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 65 col0 FROM tab1
----
3315
5525
5915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8458
SELECT + CAST( - 69 AS DECIMAL ) / COUNT( * ) / + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT + CAST ( - 69 AS REAL ) / COUNT ( * ) / + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8459
SELECT - CAST( NULL AS SIGNED ) * col2 AS col1, - ( - 18 ) FROM tab2
----
NULL
18
NULL
18
NULL
18

skipif mysql # not compatible
query II rowsort label-8459
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col1, - ( - 18 ) FROM tab2
----
NULL
18
NULL
18
NULL
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT col2 * + - 90 * - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8460
SELECT col2 * + - 90 * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 IS NULL AND NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8462
SELECT DISTINCT 9 DIV - 95 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT 9 / - 95 AS col0 FROM tab0
----
0

query II rowsort
SELECT + col0, col0 AS col0 FROM tab1 WHERE NOT NULL > ( - - 62 + + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 <= ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT MAX( 90 ) AS col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT MAX ( 90 ) AS col1 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT + COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE NOT 62 IN ( col0 )
----
23
40
58

query I rowsort
SELECT ALL + + ( + 86 ) FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT - ( + 95 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0 AS col1, 74 FROM tab2 AS cor0
----
46
74
64
74
75
74

query II rowsort
SELECT DISTINCT - 13, - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 26 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT - col0 + + 70 * + + col2 AS col0 FROM tab2
----
1564
2736
3985

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT col0 DIV - - 45 AS col1 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8474
SELECT col0 / - - 45 AS col1 FROM tab1
----
1
1
2

query I rowsort
SELECT ALL - ( + 32 ) + + 40 AS col1 FROM tab1
----
8
8
8

query I rowsort
SELECT ALL - 7 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-7
-7
-7

query I rowsort
SELECT ALL 48 - + 68 AS col1 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8478
SELECT - MIN( - col2 ) DIV - ( - - 98 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8478
SELECT - MIN ( - col2 ) / - ( - - 98 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8480
SELECT * FROM tab1 AS cor0 WHERE - col1 - col1 * - + CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8480
SELECT * FROM tab1 AS cor0 WHERE - col1 - col1 * - + CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----

query I rowsort
SELECT 23 + - - col2 AS col0 FROM tab1
----
119
82
91

query I rowsort
SELECT - 51 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - 61 AS col1 FROM tab1 AS cor0
----
14
-61
47
-61
5
-61

query I rowsort
SELECT ALL 28 * 91 FROM tab2 cor0
----
2548
2548
2548

query I rowsort
SELECT col1 * - ( + 61 ) FROM tab1 AS cor0
----
-2867
-305
-854

query II rowsort
SELECT + + 15, + col1 AS col1 FROM tab1 AS cor0
----
15
14
15
47
15
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - + col0 ) col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT 49 * col0 + + ( + col2 ) FROM tab1 AS cor0
----
2595
4224
4527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 0 * col1 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + col2, col1 * + col0 + col2 FROM tab2
----
23
2369
40
4968
58
5083

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT ( NULL ) <= + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - 18 + - col0 > + col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT ALL - CAST( + 66 AS SIGNED ) * - ( 42 ) FROM tab0
----
2772
2772
2772

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - CAST ( + 66 AS INTEGER ) * - ( 42 ) FROM tab0
----
2772
2772
2772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT DISTINCT SUM( - - col0 ) DIV COUNT( * ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT SUM ( - - col0 ) / COUNT ( * ) AS col2 FROM tab2
----
61

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - col1 AND 41
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 * - + 60 IS NOT NULL AND ( NULL ) <= + + col1 * + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT DISTINCT - + COUNT( - + 27 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT - + COUNT ( - + 27 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 21 * + col0 IS NOT NULL
----

query II rowsort
SELECT ALL - 16 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-16
10
-16
47
-16
99

query I rowsort
SELECT + 80 + col2 - col0 + + 50 + - - col1 + + + 78 FROM tab2 AS cor0
----
236
258
261

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - - col1 <= ( + + 34 ) - + 72
----

query I rowsort
SELECT DISTINCT + col2 - - 66 FROM tab1
----
125
134
162

query I rowsort
SELECT ALL - 61 + + - col1 FROM tab1
----
-108
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL MIN( DISTINCT + ( + col2 ) ) + - + SUM( ALL - col2 ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL MIN ( DISTINCT + ( + col2 ) ) + - + SUM ( ALL - col2 ) FROM tab1
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 * 45 - + 10 + + col0 col0 FROM tab0
----
3290
3362
3372

onlyif mysql # DIV for integer division: 
query II rowsort label-8507
SELECT 40 AS col1, ( ( 37 ) ) DIV ( + 41 ) col0 FROM tab2
----
40
0
40
0
40
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8507
SELECT 40 AS col1, ( ( 37 ) ) / ( + 41 ) col0 FROM tab2
----
40
0
40
0
40
0

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT 82 * - col1 - col2 DIV + + col1 FROM tab2 AS cor0
----
-4182
-5494
-6314

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT 82 * - col1 - col2 / + + col1 FROM tab2 AS cor0
----
-4182
-5494
-6314

query I rowsort
SELECT col1 * - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col2 col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT + col2 - 47 FROM tab0 AS cor0
----
-37
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8513
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL - + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL - + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 97 col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL col2 * + col1 * + + 58 AS col1 FROM tab2 AS cor0
----
178640
225388
68034

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE + col1 * col2 * - col2 + + col2 IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * - + col2 AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL + 55 * - col0 * 43 FROM tab2
----
-108790
-151360
-177375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8520
SELECT DISTINCT CAST( + SUM( DISTINCT col2 ) AS SIGNED ) * - COUNT( * ) AS col2 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT CAST ( + SUM ( DISTINCT col2 ) AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab2
----
-363

query I rowsort
SELECT ALL 15 * - - col0 AS col0 FROM tab2
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT COUNT( * ) * + + 37 AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-8522
SELECT COUNT ( * ) * + + 37 AS col1 FROM tab2
----
111

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 - - - 0 / 54 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL 43 * + COUNT( * ) AS col2 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL 43 * + COUNT ( * ) AS col2 FROM tab1
----
129

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 4 BETWEEN NULL AND - col0 + - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 18 * - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8527
SELECT DISTINCT 99 + - CAST( + + 9 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT 99 + - CAST ( + + 9 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL + + col1 + + + 49 AS col2 FROM tab1 AS cor0
----
54
63
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT + 50 + + - MAX( DISTINCT - 61 ) * 72 AS col1 FROM tab0
----
4442

skipif mysql # not compatible
query I rowsort label-8529
SELECT + 50 + + - MAX ( DISTINCT - 61 ) * 72 AS col1 FROM tab0
----
4442

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT col0 + col1 DIV - 32 col2 FROM tab0
----
13
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8530
SELECT col0 + col1 / - 32 col2 FROM tab0
----
13
87
97

query I rowsort
SELECT ALL + - 46 + col1 FROM tab0 AS cor0
----
-25
-45
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8532
SELECT ALL + + CAST( NULL AS SIGNED ) + + col0 + col0 FROM tab2 AS cor0 WHERE NOT - col1 * + col0 - - col0 < col1
----

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 + col0 FROM tab2 AS cor0 WHERE NOT - col1 * + col0 - - col0 < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 32 ) col0 FROM tab1 AS cor0
----
-32
-32
-32

query II rowsort
SELECT DISTINCT + col2 * 73 AS col2, col1 FROM tab0 AS cor0
----
3431
81
7227
1
730
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT - - COUNT( + 63 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - - COUNT ( + 63 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT col1 IS NOT NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT - 54 DIV + 32 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 54 / + 32 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 14 * - + 85 AS col0 FROM tab2
----
-1190
-1190
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT - 39 - - COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - 39 - - COUNT ( * ) FROM tab0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE col2 + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE col2 + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT - - COUNT( + + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT - - COUNT ( + + col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - col2 * - 14 * + - 23 - + col2 AS col1 FROM tab2 AS cor0
----
-12920
-18734
-7429

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT SUM( ALL - 39 ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8543
SELECT SUM ( ALL - 39 ) FROM tab0 AS cor0
----
-117

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE + col2 * col0 * - + ( 74 ) NOT BETWEEN col0 * - col2 * + col0 AND NULL
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 95 > - 6 + - col0
----
91
47
68

query I rowsort
SELECT ALL col1 * + col1 * - col2 * col1 + col1 AS col0 FROM tab1
----
-263410
-7059917
-7370

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN + col1 + - 58 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN + col1 + - 58 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL - 45 + - - COUNT( * ) AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL - 45 + - - COUNT ( * ) AS col0 FROM tab0
----
-42

query II rowsort
SELECT col2 AS col0, col1 FROM tab2 WHERE NOT - col2 IS NULL
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT ( - col2 ) * 68 + - col0 AS col1 FROM tab1 WHERE NOT + - col1 * - col2 IS NULL
----
-4097
-4715
-6579

query I rowsort
SELECT DISTINCT ( - 2 ) FROM tab0 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col0 col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - 56 * - + 23 AS col0 FROM tab2 AS cor0
----
1288

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT + - ( - col2 ) DIV - col1 + - 41 AS col1 FROM tab0 AS cor0
----
-140
-41
-41

skipif mysql # not compatible
query I rowsort label-8554
SELECT + - ( - col2 ) / - col1 + - 41 AS col1 FROM tab0 AS cor0
----
-140
-41
-41

query I rowsort
SELECT 75 + - - col1 FROM tab1 cor0
----
122
80
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT + col1 DIV - 40 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8556
SELECT + col1 / - 40 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + 66 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT + col0 + - - col1 * - + CAST( NULL AS SIGNED ) + + col2 FROM tab2 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8558
SELECT + col0 + - - col1 * - + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL 13 + + + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL 13 + + + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT DISTINCT col1 * - - 12 FROM tab2
----
612
804
924

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT + COUNT( + + col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8561
SELECT DISTINCT + COUNT ( + + col2 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8562
SELECT * FROM tab2 AS cor0 WHERE 73 > + - col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8562
SELECT * FROM tab2 AS cor0 WHERE 73 > + - col1 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT CAST( + col0 AS SIGNED ) + + 83 + + col0 FROM tab2 AS cor0
----
175
211
233

skipif mysql # not compatible
query I rowsort label-8563
SELECT CAST ( + col0 AS INTEGER ) + + 83 + + col0 FROM tab2 AS cor0
----
175
211
233

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL - COUNT( * ) * + 48 + - + ( - + 22 ) FROM tab0 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - COUNT ( * ) * + 48 + - + ( - + 22 ) FROM tab0 AS cor0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - COUNT( * ) + + 73 + 56 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-8565
SELECT - COUNT ( * ) + + 73 + 56 FROM tab1 AS cor0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT DISTINCT - col0 DIV 83 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT - col0 / 83 AS col0 FROM tab1 AS cor0
----
-1
0

query II rowsort
SELECT ALL col0 AS col0, - 48 FROM tab2
----
46
-48
64
-48
75
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT ALL ( CAST( NULL AS SIGNED ) ) - CAST( + ( - 58 ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL ( CAST ( NULL AS INTEGER ) ) - CAST ( + ( - 58 ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 AS col0, col0 AS col2 FROM tab0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * col1 col1 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT SUM( - - 75 ) + - 60 AS col2 FROM tab0 WHERE NOT + 84 NOT BETWEEN NULL AND 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT SUM ( - - 75 ) + - 60 AS col2 FROM tab0 WHERE NOT + 84 NOT BETWEEN NULL AND 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8572
SELECT - + 38, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-38
3

skipif mysql # not compatible
query II rowsort label-8572
SELECT - + 38, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-38
3

query I rowsort
SELECT 8 FROM tab1 WHERE NOT NULL <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - - col1 col2 FROM tab0 WHERE NOT - + ( - col2 ) > NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT - - 73 + - SUM( ALL + 8 ) AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8576
SELECT - - 73 + - SUM ( ALL + 8 ) AS col2 FROM tab0 AS cor0
----
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - 90 * - - 20 AND 63
----
15
81
47
87
21
10

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT + col0 * + 90 AS col1 FROM tab2
----
4140
5760
6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + + 74 + + col2 col2 FROM tab0
----
119
156
208

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT DISTINCT + col0 DIV col1 + + + col1 AS col2 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT + col0 / col1 + + + col1 AS col2 FROM tab2
----
51
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT ( + - COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT ( + - COUNT ( * ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + 69 + ( - - 94 ) AS col2 FROM tab0 AS cor0
----
163
163
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT col0 / + CAST( NULL AS SIGNED ) - + 73 + - + 55 FROM tab0 WHERE - col0 - - 52 / + + 15 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8584
SELECT col0 / + CAST ( NULL AS INTEGER ) - + 73 + - + 55 FROM tab0 WHERE - col0 - - 52 / + + 15 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT DISTINCT COUNT( * ) DIV 66 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT COUNT ( * ) / 66 AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 96 < - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT - - COUNT( * ) * + + COUNT( * ) * - 51 * + - 53 + - 63 + + + 30 AS col2 FROM tab2 AS cor0
----
24294

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT - - COUNT ( * ) * + + COUNT ( * ) * - 51 * + - 53 + - 63 + + + 30 AS col2 FROM tab2 AS cor0
----
24294

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL + + col1 - 79 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + + col1 - 79 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 51 + 62 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT 44 DIV - col2 AS col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-8592
SELECT 44 / - col2 AS col0 FROM tab0
----
-4
0
0

query I rowsort
SELECT 62 * + + col1 AS col2 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - COUNT( ( + + col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8594
SELECT - COUNT ( ( + + col1 ) ) FROM tab0
----
-3

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT NULL <> col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8596
SELECT col0 * 53 * - - col0 AS col0, CAST( NULL AS DECIMAL ) + + col0 * - 20 + col2 + - + col2 * - col2 * + col2 * - 48 / - col2 AS col0 FROM tab1
----
137853
NULL
382925
NULL
438893
NULL

skipif mysql # not compatible
query II rowsort label-8596
SELECT col0 * 53 * - - col0 AS col0, CAST ( NULL AS REAL ) + + col0 * - 20 + col2 + - + col2 * - col2 * + col2 * - 48 / - col2 AS col0 FROM tab1
----
137853
NULL
382925
NULL
438893
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT 93 DIV - - 63 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8597
SELECT 93 / - - 63 AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL COUNT( * ) * - 91 AS col2 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL COUNT ( * ) * - 91 AS col2 FROM tab2
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8599
SELECT ALL + 17 DIV COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + 17 / COUNT ( * ) FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT DISTINCT MAX( + col0 ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT MAX ( + col0 ) AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT * FROM tab0 WHERE NOT - 49 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT ALL + col2 DIV - 79 + - 59 FROM tab1 AS cor0
----
-59
-59
-60

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL + col2 / - 79 + - 59 FROM tab1 AS cor0
----
-59
-59
-60

query I rowsort
SELECT + 13 / + + col1 + col1 + - - 38 + - col0 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT + - COUNT( - - col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8605
SELECT + - COUNT ( - - col1 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + - 46 * - ( + MAX( ALL 2 ) ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8606
SELECT + - 46 * - ( + MAX ( ALL 2 ) ) FROM tab1 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8607
SELECT DISTINCT * FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) + + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8607
SELECT DISTINCT * FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) + + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8608
SELECT ALL CAST( NULL AS SIGNED ) AS col0, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8608
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 23 * col2 + + - col2 + + col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8610
SELECT col0 * + col1 * col0 AS col2, - CAST( NULL AS DECIMAL ) FROM tab0
----
158949
NULL
18225
NULL
9409
NULL

skipif mysql # not compatible
query II rowsort label-8610
SELECT col0 * + col1 * col0 AS col2, - CAST ( NULL AS REAL ) FROM tab0
----
158949
NULL
18225
NULL
9409
NULL

query I rowsort
SELECT DISTINCT col0 + 70 AS col1 FROM tab0
----
157
167
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT 40 + - + COUNT( * ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-8612
SELECT 40 + - + COUNT ( * ) FROM tab1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT ALL ( - 43 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL ( - 43 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8614
SELECT - COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT + SUM( DISTINCT - ( 18 ) ) col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8615
SELECT + SUM ( DISTINCT - ( 18 ) ) col0 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - col0 - + 75 FROM tab0
----
-162
-172
-90

query I rowsort
SELECT 96 * + - col1 + + + col1 FROM tab0 AS cor0
----
-1995
-7695
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8618
SELECT DISTINCT col2 DIV col0 - + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-125
-31
-99

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT col2 / col0 - + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-125
-31
-99

query I rowsort
SELECT ALL 26 - - col1 FROM tab2 AS cor0
----
103
77
93

query I rowsort
SELECT col0 + + 55 AS col0 FROM tab0 AS cor0
----
142
152
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL - - ( + - COUNT( * ) ) * - 50 - + COUNT( - 79 ) - + - COUNT( * ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - - ( + - COUNT ( * ) ) * - 50 - + COUNT ( - 79 ) - + - COUNT ( * ) FROM tab2 AS cor0
----
150

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8623
SELECT ALL + 91, MIN( + + col1 ) AS col1 FROM tab1 AS cor0
----
91
5

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL + 91, MIN ( + + col1 ) AS col1 FROM tab1 AS cor0
----
91
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8624
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8624
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL ( + + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL COUNT( * ) * + - MIN( DISTINCT 74 ) AS col1 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL COUNT ( * ) * + - MIN ( DISTINCT 74 ) AS col1 FROM tab0
----
-222

query II rowsort
SELECT ALL - 34 * - col2, + col1 AS col2 FROM tab0
----
1598
81
3366
1
340
21

query I rowsort
SELECT + col2 * + 53 FROM tab0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT COUNT( * ) * 34 AS col0 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-8629
SELECT COUNT ( * ) * 34 AS col0 FROM tab2
----
102

query II rowsort
SELECT ALL - col0 AS col1, col2 + col0 AS col2 FROM tab0 WHERE NOT - + 36 * + 3 + + col0 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8631
SELECT COUNT( * ) DIV - SUM( DISTINCT col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT COUNT ( * ) / - SUM ( DISTINCT col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT - - 24 DIV COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8632
SELECT - - 24 / COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + + 82 * + COUNT( * ) * - 85 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-62730

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8633
SELECT + + 82 * + COUNT ( * ) * - 85 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-62730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab1, tab0 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 + col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT 49 + CAST( - 70 AS SIGNED ) * - + MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
1659

skipif mysql # not compatible
query I rowsort label-8636
SELECT 49 + CAST ( - 70 AS INTEGER ) * - + MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
1659

query I rowsort
SELECT + 50 * - col1 + - col0 * + ( - + 61 ) FROM tab0
----
-3135
4257
5867

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT ALL - col2 DIV - - col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL - col2 / - - col1 FROM tab0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT DISTINCT - - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - - col1 / col1 AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> + col0
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + - 83 AS col1 FROM tab0 cor0
----
-83

query I rowsort
SELECT DISTINCT col2 * - col2 * + + col2 * - 78 FROM tab2 cor0 WHERE NOT + col2 NOT BETWEEN + col1 AND + + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT COUNT( * ) * + MIN( DISTINCT + col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8644
SELECT COUNT ( * ) * + MIN ( DISTINCT + col1 ) FROM tab1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT CAST( + COUNT( + col0 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8645
SELECT CAST ( + COUNT ( + col0 ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8646
SELECT col0 col0, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8646
SELECT col0 col0, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL 30 + + + col2 FROM tab1
----
126
89
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col0 FROM tab2
----
-128
-150
-92

query II rowsort
SELECT col2, + col2 - - col1 FROM tab1
----
59
64
68
115
96
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8650
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - 5 + - + CAST( - col2 AS SIGNED ) > + 54
----
1

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - 5 + - + CAST ( - col2 AS INTEGER ) > + 54
----
1

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE + - 63 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - + col2 - col2 - col2 * - col0 FROM tab0 AS cor0
----
611
850
9405

onlyif mysql # DIV for integer division: 
query II rowsort label-8653
SELECT ALL + col0 * + col0 + 88 AS col1, - col1 DIV - - col2 AS col1 FROM tab0
----
313
-1
7657
-2
9497
0

skipif mysql # not compatible
query II rowsort label-8653
SELECT ALL + col0 * + col0 + 88 AS col1, - col1 / - - col2 AS col1 FROM tab0
----
313
-1
7657
-2
9497
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8654
SELECT - + COUNT( * ) AS col1, ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-8654
SELECT - + COUNT ( * ) AS col1, ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT ALL + CAST( - - col2 AS SIGNED ) * - 79 * + ( col0 ) FROM tab2 cor0
----
-202240
-343650
-83582

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL + CAST ( - - col2 AS INTEGER ) * - 79 * + ( col0 ) FROM tab2 cor0
----
-202240
-343650
-83582

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - + SUM( ALL - 84 ) col0 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8656
SELECT - + SUM ( ALL - 84 ) col0 FROM tab1 AS cor0
----
252

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - 49 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8658
SELECT + col2 DIV col0 * + 87 AS col2 FROM tab0
----
0
261
87

skipif mysql # not compatible
query I rowsort label-8658
SELECT + col2 / col0 * + 87 AS col2 FROM tab0
----
0
261
87

query II rowsort
SELECT 70 AS col2, col0 * - col0 AS col1 FROM tab1
----
70
-2601
70
-7225
70
-8281

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * + 9 BETWEEN + col0 - col1 AND NULL )
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 AS col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 * + col1 * + col0 col1 FROM tab2 AS cor0
----
175950
369600
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT - CAST( 9 AS SIGNED ) col1 FROM tab0 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8663
SELECT - CAST ( 9 AS INTEGER ) col1 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT ALL - - MAX( DISTINCT ( + ( CAST( NULL AS SIGNED ) ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - - MAX ( DISTINCT ( + ( CAST ( NULL AS INTEGER ) ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT - ( - COUNT( ALL 75 ) ) AS col1 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT - ( - COUNT ( ALL 75 ) ) AS col1 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT 50 * col1 AS col2 FROM tab1
----
2350
250
700

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT + COUNT( * ) + - COUNT( 86 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT + COUNT ( * ) + - COUNT ( 86 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8668
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * col1 + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query III rowsort label-8668
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * col1 + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL SUM( ALL + ( - col0 ) ) * 45 col1 FROM tab0 WHERE NOT - col1 IS NULL
----
-8955

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8669
SELECT ALL SUM ( ALL + ( - col0 ) ) * 45 col1 FROM tab0 WHERE NOT - col1 IS NULL
----
-8955

query I rowsort
SELECT + col0 + - 72 AS col1 FROM tab2
----
-26
-8
3

query I rowsort
SELECT ALL - col0 * 67 AS col1 FROM tab2
----
-3082
-4288
-5025

query III rowsort
SELECT * FROM tab1 WHERE ( ( + 22 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 22 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL - MAX( + col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL - MAX ( + col1 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT + col2 * - 8 AS col2 FROM tab2
----
-184
-320
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE + 67 <= col2
----
2

skipif mysql # not compatible
query I rowsort label-8677
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE + 67 <= col2
----
2

query I rowsort
SELECT col1 * 78 AS col0 FROM tab2 WHERE NOT - col2 + col1 * col1 = 71
----
3978
5226
6006

query I rowsort
SELECT col0 + - ( col0 ) AS col2 FROM tab1 WHERE NOT 48 < ( 65 + 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL COUNT( * ) * + 2 FROM tab0 WHERE + col2 BETWEEN ( col2 ) AND col1 * col1
----
4

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL COUNT ( * ) * + 2 FROM tab0 WHERE + col2 BETWEEN ( col2 ) AND col1 * col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL - 67 * - 73 + + COUNT( * ) AS col0 FROM tab0
----
4894

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - 67 * - 73 + + COUNT ( * ) AS col0 FROM tab0
----
4894

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ( - MAX( DISTINCT + col0 ) ) * + 18 FROM tab0
----
-1746

skipif mysql # not compatible
query I rowsort label-8682
SELECT ( - MAX ( DISTINCT + col0 ) ) * + 18 FROM tab0
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT 25 * - MIN( ALL col2 * + col2 ) AS col2 FROM tab2
----
-13225

skipif mysql # not compatible
query I rowsort label-8683
SELECT 25 * - MIN ( ALL col2 * + col2 ) AS col2 FROM tab2
----
-13225

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - 79 * + MIN( + ( col1 ) ) col0 FROM tab1
----
-395

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8684
SELECT - 79 * + MIN ( + ( col1 ) ) col0 FROM tab1
----
-395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT - col2 * CAST( NULL AS SIGNED ) FROM tab0 WHERE - 14 * + 96 NOT IN ( + 87 * - col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT - col2 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE - 14 * + 96 NOT IN ( + 87 * - col2 )
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL <= col2
----

query III rowsort
SELECT * FROM tab1 WHERE - 77 + - col1 BETWEEN ( - 80 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( + col1 / - col1 + col1 * - col2 )
----

query I rowsort
SELECT ALL + 97 * col0 AS col1 FROM tab0
----
1455
8439
9409

query I rowsort
SELECT - 82 FROM tab1 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT ALL col0 DIV - 16 - col2 FROM tab1 AS cor0
----
-64
-73
-99

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL col0 / - 16 - col2 FROM tab1 AS cor0
----
-64
-73
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT SUM( 52 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8693
SELECT SUM ( 52 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT - 33 FROM tab1 AS cor0 CROSS JOIN tab2
----
-33

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE 82 / - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT DISTINCT - CAST( + 45 AS SIGNED ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - CAST ( + 45 AS INTEGER ) AS col0 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL - MAX( ALL + col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8697
SELECT ALL - MAX ( ALL + col1 ) col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8698
SELECT + + 38 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8698
SELECT + + 38 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + 31 - - col1 > col2 + - 46
----
51
14
96
85
5
59

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT 15 + - col0 BETWEEN 51 * - col0 + + 86 AND ( col1 + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 > + 61
----
97
1
99

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL = - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) IN ( col1 + - col2 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT - CAST( NULL AS SIGNED ) / - col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8704
SELECT - CAST ( NULL AS INTEGER ) / - col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - col2 * + 78 FROM tab1
----
-104832
-23010
-249288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL BETWEEN + 70 + + ( + col1 ) AND ( CAST( col2 AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL BETWEEN + 70 + + ( + col1 ) AND ( CAST ( col2 AS INTEGER ) * - col2 )
----

query I rowsort
SELECT - 45 * - col0 AS col0 FROM tab2
----
2070
2880
3375

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( NULL ) OR NULL IS NOT NULL
----

query I rowsort
SELECT + 11 * 86 FROM tab2
----
946
946
946

query I rowsort
SELECT DISTINCT col2 + + 77 FROM tab2 WHERE NOT col1 NOT IN ( 19 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND ( 95 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 * - 36 + 62 / col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT DISTINCT COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 49 * + col1 AS col2 FROM tab2 cor0
----
2499
3283
3773

query I rowsort
SELECT DISTINCT - col1 * col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 6 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - 51 FROM tab0 AS cor0
----
-4
-41
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL + COUNT( - col2 ) * 68 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL + COUNT ( - col2 ) * 68 FROM tab1 AS cor0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT DISTINCT + 78 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL > + col0
----

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT + 78 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8719
SELECT 73 + + col0 DIV col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
74
74
74

skipif mysql # not compatible
query I rowsort label-8719
SELECT 73 + + col0 / col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
74
74
74

query I rowsort
SELECT - - 73 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query II rowsort
SELECT DISTINCT - 49, col0 + + + col1 AS col2 FROM tab0
----
-49
108
-49
96
-49
98

query I rowsort
SELECT ALL + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT + + 71 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
71

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT COUNT( * ) FROM tab2 WHERE 27 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT COUNT ( * ) FROM tab2 WHERE 27 + + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + MAX( 51 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
51

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + MAX ( 51 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( + 80 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( + 80 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL COUNT( * ) * + + 28 * - COUNT( * ) AS col2 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL COUNT ( * ) * + + 28 * - COUNT ( * ) AS col2 FROM tab2
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8729
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 * + 89 ) BETWEEN + 95 AND NULL
----

query I rowsort
SELECT col1 * - col0 - - 12 * col1 AS col0 FROM tab0 AS cor0 WHERE 29 > ( + col1 )
----
-1575
-85

query I rowsort
SELECT - col2 + + col0 FROM tab1 cor0 WHERE ( + col1 * - + col0 + + 89 / + col2 ) = ( + col1 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT ALL - + col1 + - col2 DIV 45 FROM tab1 AS cor0
----
-16
-48
-6

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - + col1 + - col2 / 45 FROM tab1 AS cor0
----
-16
-48
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT DISTINCT COUNT( * ), - 13 col0 FROM tab1 AS cor0
----
3
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8734
SELECT DISTINCT COUNT ( * ), - 13 col0 FROM tab1 AS cor0
----
3
-13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) + - col2 * 14 BETWEEN - col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - 48 * - COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-8736
SELECT - 48 * - COUNT ( * ) FROM tab0 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE + col2 + + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8737
SELECT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + col2 + + + col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND col0 * col2
----

query I rowsort
SELECT ALL AVG ( + 37 ) FROM tab0 WHERE NULL >= col1 + ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL COUNT( * ) + 71 AS col1 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL COUNT ( * ) + 71 AS col1 FROM tab2
----
74

query II rowsort
SELECT + ( + + 9 ) AS col0, 73 FROM tab2
----
9
73
9
73
9
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT DISTINCT col0 * col0 + - - col0 - - col0 DIV col1 AS col2 FROM tab0
----
240
7660
9603

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT col0 * col0 + - - col0 - - col0 / col1 AS col2 FROM tab0
----
240
7660
9603

query I rowsort
SELECT - col0 - + - 82 * - col2 * col0 FROM tab1
----
-401523
-411315
-507507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT col0 * col0 + CAST( + 4 AS SIGNED ) AS col1 FROM tab2 WHERE - col0 > ( col0 ) AND NOT ( col1 ) < NULL
----

skipif mysql # not compatible
query I rowsort label-8744
SELECT col0 * col0 + CAST ( + 4 AS INTEGER ) AS col1 FROM tab2 WHERE - col0 > ( col0 ) AND NOT ( col1 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 50 + - 23 col2, - col0 + + - col1 * 69 AS col1 FROM tab2
----
27
-3565
27
-4698
27
-5377

query I rowsort
SELECT ALL 37 - + - col2 FROM tab0
----
136
47
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT + - col0 + - col1 DIV - - 46 AS col1 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-8747
SELECT + - col0 + - col1 / - - 46 AS col1 FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT ALL + col0 - - + col1 + + + col1 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8749
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col0 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND ( col0 * + 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8749
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col0 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND ( col0 * + 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT ALL + 88 DIV ( 92 ) - - + col1 - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + 88 / ( 92 ) - - + col1 - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 71 + col1 FROM tab0 AS cor0
----
152
72
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + ( - 77 ) + + SUM( DISTINCT + 84 ) + 10 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8752
SELECT + ( - 77 ) + + SUM ( DISTINCT + 84 ) + 10 FROM tab2 AS cor0
----
17

query I rowsort
SELECT + - ( 32 ) + col2 AS col1 FROM tab1 AS cor0
----
27
36
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - col1 * col2 + + 2 ) IS NULL
----

query I rowsort
SELECT col2 * + 88 FROM tab2 AS cor0
----
2024
3520
5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT ALL - + col0 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - + col0 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - col2 AS col0 FROM tab0 AS cor0 WHERE 90 >= ( col0 * + col0 * - 23 + 6 / col2 )
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT - COUNT( * ) * ( - - 45 ) AS col0 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8758
SELECT - COUNT ( * ) * ( - - 45 ) AS col0 FROM tab0 AS cor0
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT + 89 DIV - col1 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8759
SELECT + 89 / - col1 col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 18 FROM tab0 WHERE NOT ( col0 + - 47 ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 28 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < col0 - + + 57 * + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 44 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - - SUM( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8764
SELECT - - SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 20 NOT BETWEEN 71 * - 36 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL + + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 > + col1
----
-51
-67
-77

query I rowsort
SELECT - ( ( - - col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - 43 AS col1 FROM tab1 WHERE NOT + col2 + - - col0 + - col2 + + - 33 * col1 = NULL
----

query II rowsort
SELECT ALL + col2, - col1 + col2 * - + col2 * + + col1 FROM tab2
----
23
-27030
40
-123277
58
-225455

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE ( col1 * + col1 + - col2 ) > NULL
----

query I rowsort
SELECT DISTINCT col1 / + col1 * + col1 FROM tab0 WHERE NOT - 21 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( - col2 ) > NULL )
----

query I rowsort
SELECT + col1 + + + 15 FROM tab2 AS cor0
----
66
82
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 32 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 32 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8776
SELECT DISTINCT + col1, CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-8776
SELECT DISTINCT + col1, CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - 51 FROM tab0 AS cor0
----
15
-51
87
-51
97
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL - 4 * - 21 + COUNT( * ) + + - 96 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL - 4 * - 21 + COUNT ( * ) + + - 96 FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT ALL + 79 DIV + COUNT( * ) - - MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + 79 / + COUNT ( * ) - - MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL - 57 * - + MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
-1311

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - 57 * - + MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1311

query I rowsort
SELECT col2 + - 6 + 13 AS col0 FROM tab2 AS cor0
----
30
47
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL = col1 * - - 57 + + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8783
SELECT + - 16 * + ( - col1 ) + + col2 + + 75 DIV 50 * + - 38 FROM tab1 cor0
----
101
282
782

skipif mysql # not compatible
query I rowsort label-8783
SELECT + - 16 * + ( - col1 ) + + col2 + + 75 / 50 * + - 38 FROM tab1 cor0
----
101
282
782

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT - MIN( DISTINCT + col1 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8784
SELECT DISTINCT - MIN ( DISTINCT + col1 ) col0 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - 76 * + 35 + - col0 AS col2, 56 - + - col1 + - 47 AS col0 FROM tab2 AS cor0
----
-2706
60
-2724
86
-2735
76

query II rowsort
SELECT ALL ( + ( - - col0 ) ) AS col2, col0 * - + col2 AS col2 FROM tab2
----
46
-1058
64
-2560
75
-4350

query I rowsort
SELECT ALL col1 + - 94 FROM tab1
----
-47
-80
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT DISTINCT - MAX( DISTINCT ( col1 ) ) FROM tab0 WHERE NULL <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT - MAX ( DISTINCT ( col1 ) ) FROM tab0 WHERE NULL <= + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL COUNT( * ) + - 39 AS col0 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL COUNT ( * ) + - 39 AS col0 FROM tab0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8790
SELECT ALL + 28 DIV + col0 * - col1 - - + 77 FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + 28 / + col0 * - col1 - - + 77 FROM tab2
----
77
77
77

query I rowsort
SELECT ALL col2 - + + col1 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT ( - COUNT( * ) ) + 72 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT ( - COUNT ( * ) ) + 72 FROM tab2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT DISTINCT + col2 - col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + col2 - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 84 * col1 FROM tab2 cor0
----
-4284
-5628
-6468

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 80, col0 - + col1 )
----

query I rowsort
SELECT DISTINCT ( 84 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8797
SELECT ALL 98 DIV - + COUNT( * ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL 98 / - + COUNT ( * ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT ALL + col2 * - col0 FROM tab2 AS cor0 WHERE 16 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - col0 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8802
SELECT ALL 57 * + CAST( COUNT( * ) AS SIGNED ) + COUNT( + col2 ) * - + 88 AS col2 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL 57 * + CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( + col2 ) * - + 88 AS col2 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL MIN( - 70 ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL MIN ( - 70 ) FROM tab1
----
-70

query I rowsort
SELECT col2 * + ( - 69 ) * col1 AS col2 FROM tab0
----
-14490
-262683
-6831

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT DISTINCT col2 DIV + 72 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT col2 / + 72 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * - col2 col0 FROM tab0 AS cor0
----
-2538
-5346
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT - CAST( 42 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-8808
SELECT - CAST ( 42 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-42
-42
-42

query II rowsort
SELECT DISTINCT 39 + col0 AS col2, - 85 FROM tab0
----
126
-85
136
-85
54
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT - + MAX( ALL col0 ) - + COUNT( - 63 ) AS col0 FROM tab1 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - + MAX ( ALL col0 ) - + COUNT ( - 63 ) AS col0 FROM tab1 cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8811
SELECT * FROM tab0 AS cor0 WHERE ( - - ( 38 ) ) + CAST( - + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8811
SELECT * FROM tab0 AS cor0 WHERE ( - - ( 38 ) ) + CAST ( - + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8813
SELECT ALL - + 79 col0, - COUNT( * ) * SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
-79
-681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8813
SELECT ALL - + 79 col0, - COUNT ( * ) * SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
-79
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT + COUNT( * ) * 39 AS col2 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8814
SELECT + COUNT ( * ) * 39 AS col2 FROM tab0 AS cor0
----
117

query II rowsort
SELECT ALL - + col0, col1 AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab1 WHERE ( + - ( + 80 ) ) >= + col0
----

query II rowsort
SELECT DISTINCT + col0 + - col1 AS col1, col1 AS col2 FROM tab1
----
37
14
44
47
80
5

query I rowsort
SELECT + col2 - - 95 FROM tab0
----
105
142
194

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT + - 25 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + + col2 * + - col2 FROM tab0
----
-178929
-2100
-9801

query II rowsort
SELECT + col0 * 2 * + col0 * 64 AS col0, - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1204352
-99
28800
-47
968832
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1, + 38 AS col0 FROM tab1 AS cor0
----
9
38

skipif mysql # not compatible
query II rowsort label-8822
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1, + 38 AS col0 FROM tab1 AS cor0
----
9
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT - COUNT( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8823
SELECT - COUNT ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * - + 7 AS col2 FROM tab0
----
-329
-693
-70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 69 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8826
SELECT DISTINCT col0, - col1 * CAST( NULL AS SIGNED ) + ( - 56 ) + + + col0 + - col1 AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8826
SELECT DISTINCT col0, - col1 * CAST ( NULL AS INTEGER ) + ( - 56 ) + + + col0 + - col1 AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT + 69, col2 AS col0 FROM tab2 cor0
----
69
23
69
40
69
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 AS col2, col1 col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT + col0 DIV col2 + 77 AS col0 FROM tab0 AS cor0
----
77
77
85

skipif mysql # not compatible
query I rowsort label-8829
SELECT + col0 / col2 + 77 AS col0 FROM tab0 AS cor0
----
77
77
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 * - - 52 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT - CAST( + 9 AS SIGNED ) FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-8831
SELECT - CAST ( + 9 AS INTEGER ) FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + ( + - 83 ) AS col1 FROM tab0 AS cor0
----
-83

query II rowsort
SELECT DISTINCT - col0 * 78 + col1 * + - 84 AS col2, - 61 FROM tab2
----
-11460
-61
-11478
-61
-7872
-61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + col0
----

query I rowsort
SELECT 75 + + - col0 FROM tab0
----
-12
-22
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8836
SELECT * FROM tab2 WHERE - CAST( 70 AS SIGNED ) * col1 IN ( + - 69 )
----

skipif mysql # not compatible
query III rowsort label-8836
SELECT * FROM tab2 WHERE - CAST ( 70 AS INTEGER ) * col1 IN ( + - 69 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 < + ( col1 )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8838
SELECT col2 + + 16 - col2 DIV - + 73 * + - 81 + + col2 AS col1 FROM tab2 AS cor0
----
132
62
96

skipif mysql # not compatible
query I rowsort label-8838
SELECT col2 + + 16 - col2 / - + 73 * + - 81 + + col2 AS col1 FROM tab2 AS cor0
----
132
62
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / + 2 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col1 col1 FROM tab0
----
-66
66
96

query III rowsort
SELECT * FROM tab2 WHERE - - col1 + + - col2 IS NULL
----

query I rowsort
SELECT 69 - + col1 FROM tab0
----
-12
48
68

query I rowsort
SELECT - col0 - - 97 AS col1 FROM tab2
----
22
33
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT - col1 DIV 83 * + - col0 + - col0 + 24 AS col1 FROM tab0 AS cor0
----
-63
-73
9

skipif mysql # not compatible
query I rowsort label-8845
SELECT - col1 / 83 * + - col0 + - col0 + 24 AS col1 FROM tab0 AS cor0
----
-63
-73
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - - col1 col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT MIN( DISTINCT + 41 ) + + 25 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8847
SELECT MIN ( DISTINCT + 41 ) + + 25 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 55 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
55
55
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8849
SELECT - CAST( - 82 AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8849
SELECT - CAST ( - 82 AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT ( - - col2 ) * - 83 AS col0 FROM tab1
----
-4897
-5644
-7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 29 AS col2 FROM tab2
----
1479
1943
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT 45 * MIN( DISTINCT - col1 ) AS col2 FROM tab2
----
-3465

skipif mysql # not compatible
query I rowsort label-8854
SELECT 45 * MIN ( DISTINCT - col1 ) AS col2 FROM tab2
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL MIN( DISTINCT - 38 ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL MIN ( DISTINCT - 38 ) AS col2 FROM tab1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT 45 AS col1, + MAX( DISTINCT - + col2 ) FROM tab1
----
45
-59

skipif mysql # not compatible
query II rowsort label-8856
SELECT 45 AS col1, + MAX ( DISTINCT - + col2 ) FROM tab1
----
45
-59

query II rowsort
SELECT - col0, 80 AS col0 FROM tab2
----
-46
80
-64
80
-75
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - COUNT( - 75 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8858
SELECT - COUNT ( - 75 ) FROM tab1
----
-3

query II rowsort
SELECT + col2 AS col0, - 64 + + - 89 * - 80 FROM tab2
----
23
7056
40
7056
58
7056

onlyif mysql # DIV for integer division: 
query I rowsort label-8860
SELECT - col1 DIV - 43 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8860
SELECT - col1 / - 43 FROM tab2
----
1
1
1

query II rowsort
SELECT DISTINCT 99 AS col1, + col2 FROM tab2 AS cor0
----
99
23
99
40
99
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + col0 ) ) IN ( 24 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT ALL - SUM( ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL - SUM ( ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
121

query II rowsort
SELECT 92 AS col0, + 25 AS col2 FROM tab2 AS cor0
----
92
25
92
25
92
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT ALL + 67, COUNT( * ) col2 FROM tab1 AS cor0
----
67
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8865
SELECT ALL + 67, COUNT ( * ) col2 FROM tab1 AS cor0
----
67
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 93 + - col2 + col1 + col1 BETWEEN + 23 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + AVG ( ALL - col0 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8868
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) / - col2 BETWEEN CAST( + 10 AS SIGNED ) AND + ( - col0 ) * + col0 - + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8868
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) / - col2 BETWEEN CAST ( + 10 AS INTEGER ) AND + ( - col0 ) * + col0 - + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - 66 FROM tab0 cor0
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT MIN( + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT MIN ( + - col1 ) FROM tab2
----
-77

query I rowsort
SELECT DISTINCT 11 * col2 FROM tab2
----
253
440
638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT CAST( - col1 AS SIGNED ) + + col2 * + - 31 * 14 FROM tab0 AS cor0
----
-20479
-42967
-4361

skipif mysql # not compatible
query I rowsort label-8872
SELECT CAST ( - col1 AS INTEGER ) + + col2 * + - 31 * 14 FROM tab0 AS cor0
----
-20479
-42967
-4361

query I rowsort
SELECT - col1 + + + 46 - col1 * - - col1 * col0 * col0 FROM tab1 AS cor0
----
-180584
-18292730
-509764

query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE NOT - col0 > + col1
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT + + 78 - - COUNT( * ) FROM tab2 cor0 WHERE 42 * - col2 BETWEEN NULL AND col0
----
78

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + + 78 - - COUNT ( * ) FROM tab2 cor0 WHERE 42 * - col2 BETWEEN NULL AND col0
----
78

query I rowsort
SELECT col1 + + + 95 AS col2 FROM tab0 AS cor0
----
116
176
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL MIN( ALL - - col0 ) * - MIN( - 49 ) FROM tab1
----
2499

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL MIN ( ALL - - col0 ) * - MIN ( - 49 ) FROM tab1
----
2499

query I rowsort
SELECT + col0 FROM tab1 WHERE - - col1 / - col2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8879
SELECT MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT col0 + + - col0 + - - 86 FROM tab0
----
86

query I rowsort
SELECT ALL - - 25 * - - 18 AS col2 FROM tab1 cor0
----
450
450
450

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT DISTINCT + col2 + - col1 DIV 4 FROM tab1 AS cor0
----
57
58
93

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT + col2 + - col1 / 4 FROM tab1 AS cor0
----
57
58
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT COUNT( * ) + - - ( - - 95 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-8884
SELECT COUNT ( * ) + - - ( - - 95 ) FROM tab2
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8885
SELECT CAST( NULL AS DECIMAL ) + - - col0 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT CAST ( NULL AS REAL ) + - - col0 * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - + 96 - - 25 + + col0 * + col0 FROM tab0
----
-7526
5578
9338

query I rowsort
SELECT - 36 * + + 61 * 18 + - + col1 FROM tab1 AS cor0
----
-39533
-39542
-39575

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT + - MIN( col0 ) * + SUM( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-1545

skipif mysql # not compatible
query I rowsort label-8888
SELECT + - MIN ( col0 ) * + SUM ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-1545

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 69 * + 79 + + col0 / - col0 / col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 56 * + 5 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 53 NOT IN ( - 51 / col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 17 * - col1 FROM tab2
----
-1139
-1309
-867

query I rowsort
SELECT DISTINCT - ( 93 ) FROM tab1
----
-93

query I rowsort
SELECT 25 * col1 AS col0 FROM tab0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL - SUM( DISTINCT - 91 ) AS col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - SUM ( DISTINCT - 91 ) AS col1 FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT - - 27 DIV COUNT( * ) * - + 78 FROM tab2 cor0
----
-702

skipif mysql # not compatible
query I rowsort label-8896
SELECT - - 27 / COUNT ( * ) * - + 78 FROM tab2 cor0
----
-702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT - CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8897
SELECT - CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT + 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 * 19 * + col1 * - col2 * - + col1 * + + 15 + col1 * ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 87 / - + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - - ( + + col0 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT - COUNT( * ), + SUM( + + col0 ) AS col2 FROM tab1 AS cor0
----
-3
227

skipif mysql # not compatible
query II rowsort label-8901
SELECT - COUNT ( * ), + SUM ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-3
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, 63 AS col0 FROM tab1 AS cor0
----
51
63
85
63
91
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT + SUM( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + SUM ( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + col1 * + + col2 + - + 38 AS col2 FROM tab1 cor0
----
1306
257
3158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 + - 90 col2 FROM tab0 AS cor0
----
120
3717
9

query I rowsort
SELECT ALL col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT 95 + - - 59 FROM tab0 AS cor0
----
154
154
154

query I rowsort
SELECT ALL - 39 + + ( - col2 ) * - col2 + + 47 * + col0 FROM tab1 AS cor0
----
11574
7437
8862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col1 + col1 * - col2 col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 55 + - col0 AS col0 FROM tab0
----
-32
-42
40

query I rowsort
SELECT ALL 9 - + 48 + + 77 * - - col0 FROM tab1
----
3888
6506
6968

query III rowsort
SELECT * FROM tab0 WHERE NULL > + - 12 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL MAX( ALL - col1 ) col0 FROM tab0 cor0 WHERE NOT ( col1 * - + col2 + - col1 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8913
SELECT ALL MAX ( ALL - col1 ) col0 FROM tab0 cor0 WHERE NOT ( col1 * - + col2 + - col1 ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8914
SELECT - + CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8914
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT 2 - - 91 - + col1 DIV + col1 + - 40 * + + ( 79 ) col2 FROM tab0
----
-3068
-3068
-3068

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8915
SELECT 2 - - 91 - + col1 / + col1 + - 40 * + + ( 79 ) col2 FROM tab0
----
-3068
-3068
-3068

query I rowsort
SELECT DISTINCT + - 3 * + col0 FROM tab1 AS cor0
----
-153
-255
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT - 44 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT - 44 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8918
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8918
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + col0 * + 10 AS col2 FROM tab1 AS cor0
----
510
850
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT ALL - CAST( - 81 AS SIGNED ) AS col1 FROM tab1 cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - CAST ( - 81 AS INTEGER ) AS col1 FROM tab1 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL ( - - ( - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL ( - - ( - COUNT ( * ) ) ) FROM tab2
----
-3

query I rowsort
SELECT - col1 * - ( - + col2 ) AS col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + - 84 / - col2 + + - 54 + - - col1 AS col0 FROM tab2 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT SUM( DISTINCT col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8924
SELECT SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8926
SELECT ALL COUNT( * ) DIV + 35 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL COUNT ( * ) / + 35 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT ( 15 ) + + 51 + + + col2 FROM tab0
----
113
165
76

query I rowsort
SELECT 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT + 0 DIV + 68 + - col0 * col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-8930
SELECT + 0 / + 68 + - col0 * col1 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 11 = NULL
----

query I rowsort
SELECT 45 * - - 76 + + + col2 * - 94 * + + 40 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 86 * - + 15 + + col2 * + col0 FROM tab1 AS cor0
----
6186
6305
7478

query I rowsort
SELECT ALL - col2 + + ( - col2 ) + + 0 AS col0 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT - COUNT( DISTINCT - 84 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8935
SELECT - COUNT ( DISTINCT - 84 ) AS col0 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE 96 + col1 - - ( col0 ) / - 37 * 38 - - - col0 > - + 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8937
SELECT ( CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT ( CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL - col1 * col1 + - - col2 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - col1 * col1 + - - col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) + - 31 FROM tab1
----
28
37
65

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) + - 31 FROM tab1
----
28
37
65

query I rowsort
SELECT DISTINCT - 74 + - col0 FROM tab0
----
-161
-171
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT DISTINCT col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT col2 - col0 + - 22 + + 32 / - + CAST( NULL AS SIGNED ) * + col0 + + col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8943
SELECT col2 - col0 + - 22 + + 32 / - + CAST ( NULL AS INTEGER ) * + col0 + + col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 + col0 + + col0 AS col0 FROM tab2
----
134
156
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL <= NULL OR col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL <= NULL OR col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT + col2 FROM tab2 AS cor0 WHERE NULL < - col0 * CAST( NULL AS SIGNED ) + - 15
----

skipif mysql # not compatible
query I rowsort label-8946
SELECT + col2 FROM tab2 AS cor0 WHERE NULL < - col0 * CAST ( NULL AS INTEGER ) + - 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT DISTINCT + + 30 * SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT + + 30 * SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 35 + + + col0 AS col1 FROM tab0 AS cor0
----
122
132
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT - 85 DIV + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8949
SELECT - 85 / + col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + col2 - col2 * + col2 + + ( + ( + col2 ) ) * 85 IS NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 32 BETWEEN col2 - - 5 AND - 3
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8952
SELECT ALL - CAST( + - MAX( ALL + 85 ) AS SIGNED ) / + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL - CAST ( + - MAX ( ALL + 85 ) AS INTEGER ) / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR - col0 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT ALL + 17 DIV + ( - - 45 ) * + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + 17 / + ( - - 45 ) * + col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 99 + - 39 col1 FROM tab2 AS cor0
----
-2316
-3999
-5781

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL + + SUM( ALL + - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + + SUM ( ALL + - col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT 37 * - COUNT( DISTINCT ( - + col1 ) ) * 94 + - COUNT( DISTINCT + col1 ) FROM tab0
----
-10437

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT 37 * - COUNT ( DISTINCT ( - + col1 ) ) * 94 + - COUNT ( DISTINCT + col1 ) FROM tab0
----
-10437

query II rowsort
SELECT ALL 0, + col2 FROM tab1
----
0
59
0
68
0
96

query II rowsort
SELECT + ( 46 ) + 69 * - - 34 + + col1 + col2, - col0 + - + 75 * col1 * col0 * + col0 AS col1 FROM tab1
----
2456
-2709460
2502
-2731101
2507
-29190616

query II rowsort
SELECT 0 + col0 * + - 70, col2 AS col1 FROM tab0 AS cor0
----
-1050
47
-6090
10
-6790
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 + + col0 <> + 99 * + col0 + - col0 )
----

query II rowsort
SELECT DISTINCT + + col2, col0 * col2 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT DISTINCT + col0 DIV + + col2 AS col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT + col0 / + + col2 AS col1 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL + ( + - ( + COUNT( + col0 ) ) ) col0 FROM tab1 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-8964
SELECT ALL + ( + - ( + COUNT ( + col0 ) ) ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + - 89 * + + ( + + col0 ), 9 AS col2 FROM tab2 AS cor0
----
-4094
9
-5696
9
-6675
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8966
SELECT DISTINCT col1, CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE 85 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8966
SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + 45 FROM tab0 AS cor0
----
132
142
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT - 30 * + + 81 * - COUNT( * ) AS col1 FROM tab0
----
7290

skipif mysql # not compatible
query I rowsort label-8968
SELECT - 30 * + + 81 * - COUNT ( * ) AS col1 FROM tab0
----
7290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8969
SELECT - - ( - - col1 ) * col1 * + 80 * CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT - - ( - - col1 ) * col1 * + 80 * CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL ( + SUM( DISTINCT + 4 ) ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL ( + SUM ( DISTINCT + 4 ) ) FROM tab0 AS cor0
----
4

query II rowsort
SELECT + 72 + - + col2, + col1 - + + 56 AS col2 FROM tab2 cor0
----
14
11
32
21
49
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT ALL CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab0, tab0 AS cor0
----
67

query I rowsort
SELECT DISTINCT + + ( - col0 ) + + - col1 * - 66 + + col0 * + + col2 AS col0 FROM tab0 AS cor0
----
2169
6036
9572

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > + 83
----

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT ALL + 41 * - - col1 FROM tab2
----
2091
2747
3157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55, - col0 col0 FROM tab1 cor0
----
-55
-51
-55
-85
-55
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT - - MIN( ALL + 63 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT - - MIN ( ALL + 63 ) FROM tab0 AS cor0
----
63

query II rowsort
SELECT + col0 AS col0, + ( 30 ) FROM tab2 AS cor0
----
46
30
64
30
75
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8983
SELECT - + MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT - + MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8984
SELECT - col1 AS col2, - col2 * CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-8984
SELECT - col1 AS col2, - col2 * CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 57 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT + CAST( COUNT( CAST( NULL AS SIGNED ) ) AS SIGNED ) * SUM( - 34 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT + CAST ( COUNT ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) * SUM ( - 34 ) FROM tab0
----
0

query II rowsort
SELECT DISTINCT 68 * + col1, - col0 AS col2 FROM tab2
----
3468
-46
4556
-75
5236
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE 99 / - ( - col1 ) + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE 99 / - ( - col1 ) + - col0 IS NULL
----

query I rowsort
SELECT + 74 * + ( - - col2 ) AS col1 FROM tab0
----
3478
7326
740

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT + 1 DIV 86 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT + 1 / 86 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT + AVG ( DISTINCT + - col0 ) FROM tab0 WHERE NOT NULL NOT IN ( col1 + - + col0 - - + 47, 42, + 22 + 75 + CAST( NULL AS SIGNED ) + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT + AVG ( DISTINCT + - col0 ) FROM tab0 WHERE NOT NULL NOT IN ( col1 + - + col0 - - + 47, 42, + 22 + 75 + CAST ( NULL AS INTEGER ) + - col0 )
----
NULL

query I rowsort
SELECT ALL - col2 * - col0 AS col2 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - 28 <> - 36
----

query I rowsort
SELECT DISTINCT col0 + + col1 + - col2 * col1 FROM tab0 AS cor0
----
-1
-102
-3711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8995
SELECT ALL - COUNT( * ) DIV + - 26 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - COUNT ( * ) / + - 26 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT col0 * 80 * + 34 + col1 AS col0 FROM tab2
----
125171
174157
204067

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT 80 + COUNT( * ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-8997
SELECT 80 + COUNT ( * ) FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, - 24 * - 45 col1 FROM tab0
----
-1
1080
-21
1080
-81
1080

query I rowsort
SELECT DISTINCT 65 - + 99 FROM tab2 cor0
----
-34

query I rowsort
SELECT ALL 13 * - - col2 * + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT DISTINCT + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9002
SELECT * FROM tab1 AS cor0 WHERE CAST( + ( col0 ) AS SIGNED ) / + col0 BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-9002
SELECT * FROM tab1 AS cor0 WHERE CAST ( + ( col0 ) AS INTEGER ) / + col0 BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) <= + ( + 59 ) * - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 59 - - - col0 * - col0 FROM tab0 AS cor0
----
166
7510
9350

query I rowsort
SELECT col0 - 44 FROM tab2
----
2
20
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col0 col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT + 92 * + + col2 - - - col2 - - col0 + - col0 * col2 FROM tab2
----
1003
1081
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT COUNT( 91 ) - - 91 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-9008
SELECT COUNT ( 91 ) - - 91 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + 60 - - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9009
SELECT + 60 - - COUNT ( * ) FROM tab1
----
63

query I rowsort
SELECT col2 - - + 8 FROM tab0
----
107
18
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT 47, COUNT( * ) AS col2 FROM tab1 WHERE + 1 IS NULL
----
47
0

skipif mysql # not compatible
query II rowsort label-9011
SELECT 47, COUNT ( * ) AS col2 FROM tab1 WHERE + 1 IS NULL
----
47
0

query I rowsort
SELECT col1 - - 60 FROM tab0
----
141
61
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 51 * + 9 < - - col1 AND - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 59 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT - SUM( DISTINCT + + 16 ) AS col1 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - SUM ( DISTINCT + + 16 ) AS col1 FROM tab1 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + col1 * + col2 + + - 89 / - col1 * + 15 * + col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + 5 * - ( - + 23 ) FROM tab2 cor0 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT + 57 DIV + + 23 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 57 / + + 23 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9019
SELECT DISTINCT + + MIN( DISTINCT + + 50 ) AS col0, + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 < CAST( NULL AS DECIMAL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9019
SELECT DISTINCT + + MIN ( DISTINCT + + 50 ) AS col0, + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 < CAST ( NULL AS REAL )
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL CAST( - - 74 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL CAST ( - - 74 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ( - MAX( ALL + col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9021
SELECT ( - MAX ( ALL + col2 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL + MAX( ALL + + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + MAX ( ALL + + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT - + col2 DIV + col1 col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT - + col2 / + col1 col0 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT + 72 AS col1, - col0 * + 68 AS col0 FROM tab1 cor0
----
72
-3468
72
-5780
72
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL + 9 * MAX( DISTINCT 37 ) col1 FROM tab1 AS cor0
----
333

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9025
SELECT ALL + 9 * MAX ( DISTINCT 37 ) col1 FROM tab1 AS cor0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - SUM( DISTINCT 95 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9026
SELECT - SUM ( DISTINCT 95 ) FROM tab0 AS cor0
----
-95

query I rowsort
SELECT 14 * + ( + + col2 ) * 89 AS col2 FROM tab0 WHERE NOT + 61 IS NULL
----
123354
12460
58562

query I rowsort
SELECT ALL - 16 FROM tab1, tab0 cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9029
SELECT ALL CAST( NULL AS SIGNED ) * - 11 + - - MAX( col0 ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9029
SELECT ALL CAST ( NULL AS INTEGER ) * - 11 + - - MAX ( col0 ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT - 86 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT - 86 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, 56 AS col0 FROM tab2 cor0
----
51
56
67
56
77
56

query I rowsort
SELECT ALL col1 + - + col1 AS col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 < + col2 * - + 51 * - col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT - CAST( NULL AS SIGNED ) - - col1 * - 72 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT - CAST ( NULL AS INTEGER ) - - col1 * - 72 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL + 4 + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL + 4 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9036
SELECT - + CAST( - 17 AS SIGNED ) * - 26 * - col2 / - col1 * - 89 * + CAST( NULL AS DECIMAL ) + 83 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT - + CAST ( - 17 AS INTEGER ) * - 26 * - col2 / - col1 * - 89 * + CAST ( NULL AS REAL ) + 83 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT - COUNT( * ) + 45 FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9037
SELECT - COUNT ( * ) + 45 FROM tab0 cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT DISTINCT - - col0 DIV + - 19 FROM tab1 AS cor0
----
-2
-4

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT - - col0 / + - 19 FROM tab1 AS cor0
----
-2
-4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 * + col0 / + - 6 * + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 / 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9041
SELECT DISTINCT + col2 AS col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9041
SELECT DISTINCT + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT DISTINCT 24 * col2 AS col1 FROM tab0
----
1128
2376
240

query I rowsort
SELECT DISTINCT + col2 + + + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0 AS col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT + col0 / - 36 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col2, - col2 AS col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= + 37
----

query I rowsort
SELECT + 63 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - + ( - 78 ) + - col0 FROM tab0 AS cor0
----
-19
-9
63

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT col0 + + col1 + 51 * col1 * 22 + 82 FROM tab1 AS cor0
----
15855
52954
5782

query I rowsort
SELECT 72 + - 98 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 < - + col0
----
-26
-26
-26

query I rowsort
SELECT ALL + col2 * - - 97 FROM tab0 cor0
----
4559
9603
970

query I rowsort
SELECT DISTINCT + + col2 * 87 FROM tab0 AS cor0
----
4089
8613
870

query I rowsort
SELECT DISTINCT + col0 + 96 + - - col0 * + col2 + + + col2 FROM tab1 AS cor0
----
5139
5255
6443

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT DISTINCT + 5 DIV col0 + + - 72 - + col0 * - col1 * + col2 FROM tab1 WHERE NOT - col2 IS NULL
----
25003
290764
68472

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT + 5 / col0 + + - 72 - + col0 * - col1 * + col2 FROM tab1 WHERE NOT - col2 IS NULL
----
25003
290764
68472

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT + COUNT( - 4 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9058
SELECT + COUNT ( - 4 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - 98 ) >= NULL
----

query I rowsort
SELECT ALL 27 + + 50 FROM tab0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL - MAX( ALL - + 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - MAX ( ALL - + 73 ) FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT 86 * - COUNT( ALL + + col0 ) * 59 + + 12 AS col0 FROM tab2
----
-15210

skipif mysql # not compatible
query I rowsort label-9062
SELECT 86 * - COUNT ( ALL + + col0 ) * 59 + + 12 AS col0 FROM tab2
----
-15210

query I rowsort
SELECT DISTINCT + 50 + + 4 AS col0 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL + col0 + + - col2 AS col1 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT - CAST( - 66 AS SIGNED ) + + + col1 FROM tab1 AS cor0
----
113
71
80

skipif mysql # not compatible
query I rowsort label-9065
SELECT - CAST ( - 66 AS INTEGER ) + + + col1 FROM tab1 AS cor0
----
113
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT SUM( + col2 ) + + - MAX( DISTINCT - - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT SUM ( + col2 ) + + - MAX ( DISTINCT - - col0 ) AS col2 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT - COUNT( * ) * + - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9068
SELECT - COUNT ( * ) * + - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----
0

query II rowsort
SELECT DISTINCT col1 + + col0 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
141
-40
142
-58
97
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT DISTINCT 20 * - 13, - 99 * - + COUNT( + 19 ) AS col2 FROM tab1 AS cor0
----
-260
297

skipif mysql # not compatible
query II rowsort label-9070
SELECT DISTINCT 20 * - 13, - 99 * - + COUNT ( + 19 ) AS col2 FROM tab1 AS cor0
----
-260
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL + COUNT( * ) - - SUM( - col1 ) + - + COUNT( * ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT ALL + COUNT ( * ) - - SUM ( - col1 ) + - + COUNT ( * ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - 87 - + col0 FROM tab1 cor0
----
-138
-172
-178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT ALL - - col0 - - 80 - + ( - + ( + - CAST( - CAST( 73 AS SIGNED ) AS SIGNED ) ) ) + - col2 * - - col1 * col1 * 39 + ( - 1 ) FROM tab0 AS cor0
----
-12026146
-171751
-3612

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - - col0 - - 80 - + ( - + ( + - CAST ( - CAST ( 73 AS INTEGER ) AS INTEGER ) ) ) + - col2 * - - col1 * col1 * 39 + ( - 1 ) FROM tab0 AS cor0
----
-12026146
-171751
-3612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + COUNT( * ) * 40 AS col1 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-9076
SELECT + COUNT ( * ) * 40 AS col1 FROM tab0
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-9077
SELECT ALL + COUNT( * ) * - MAX( ALL - - col0 ), 68 AS col1 FROM tab2
----
-225
68

skipif mysql # not compatible
query II rowsort label-9077
SELECT ALL + COUNT ( * ) * - MAX ( ALL - - col0 ), 68 AS col1 FROM tab2
----
-225
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT col2 DIV - - 18 AS col2 FROM tab1
----
3
3
5

skipif mysql # not compatible
query I rowsort label-9078
SELECT col2 / - - 18 AS col2 FROM tab1
----
3
3
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - - 83
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 < col0 / - - col2 - 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 13 IS NOT NULL
----

query II rowsort
SELECT ALL - 38, col0 AS col0 FROM tab0 AS cor0
----
-38
15
-38
87
-38
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT + + COUNT( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + + COUNT ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col0 < NULL )
----

query I rowsort
SELECT ALL + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 19 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 68 * ( - col2 ) + 35 FROM tab2
----
108835
228787
36007

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - 70 + + SUM( - + 28 ) AS col0 FROM tab2
----
-154

skipif mysql # not compatible
query I rowsort label-9087
SELECT - 70 + + SUM ( - + 28 ) AS col0 FROM tab2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT COUNT( * ) + + + 79 + - - ( + ( + ( 12 ) ) ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT COUNT ( * ) + + + 79 + - - ( + ( + ( 12 ) ) ) FROM tab2
----
94

query II rowsort
SELECT - col0 * - col0, col0 + + - ( + 77 ) AS col0 FROM tab0 AS cor0
----
225
-62
7569
10
9409
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT 36 * MIN( + col0 ) col1 FROM tab1
----
1836

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9090
SELECT 36 * MIN ( + col0 ) col1 FROM tab1
----
1836

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT + + COUNT( * ) + + 51 + - COUNT( * ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
51
-3

skipif mysql # not compatible
query II rowsort label-9091
SELECT + + COUNT ( * ) + + 51 + - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
51
-3

query I rowsort
SELECT ALL - col2 + + + 2 FROM tab0 AS cor0
----
-45
-8
-97

query II rowsort
SELECT - col1 + 2 + - col2, - 35 AS col2 FROM tab1 AS cor0
----
-108
-35
-113
-35
-62
-35

query I rowsort
SELECT DISTINCT ( + - col0 ) - col0 AS col2 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab2 AS cor0 WHERE ( NULL ) < ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT - MAX( + + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9096
SELECT - MAX ( + + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT DISTINCT MIN( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT MIN ( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL ( - 99 ) FROM tab1
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * + 47 + + - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT COUNT( * ) * - 90 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT COUNT ( * ) * - 90 FROM tab0
----
-270

query I rowsort
SELECT + col2 * - - col0 * - col2 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT - 15 DIV 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT - 15 / 99 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT + MIN( + col0 ) * + + COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT + MIN ( + col0 ) * + + COUNT ( * ) FROM tab0
----
45

query I rowsort
SELECT ALL 62 FROM tab2 WHERE NOT - 74 IN ( + 6, col2, + col0 * - - 81 )
----
62
62
62

onlyif mysql # DIV for integer division: 
query II rowsort label-9106
SELECT col0, col0 DIV + 22 AS col2 FROM tab1
----
51
2
85
3
91
4

skipif mysql # not compatible
query II rowsort label-9106
SELECT col0, col0 / + 22 AS col2 FROM tab1
----
51
2
85
3
91
4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9107
SELECT CAST( NULL AS DECIMAL ) * - col0 col1, + col0 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-9107
SELECT CAST ( NULL AS REAL ) * - col0 col1, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT 43 * + + MAX( DISTINCT - 61 ) * 48 AS col0 FROM tab1
----
-125904

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT 43 * + + MAX ( DISTINCT - 61 ) * 48 AS col0 FROM tab1
----
-125904

query I rowsort
SELECT ALL - col1 * + 20 FROM tab1 AS cor0 WHERE NOT + ( col0 ) * col2 * - + 74 = - col1
----
-100
-280
-940

query I rowsort
SELECT DISTINCT + col0 * - - col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query II rowsort
SELECT DISTINCT + + ( 40 ) AS col1, ( - - 2 ) * 63 FROM tab2 AS cor0
----
40
126

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT ALL - - MIN( col2 ) AS col1, COUNT( * ) * + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
10
-45

skipif mysql # not compatible
query II rowsort label-9112
SELECT ALL - - MIN ( col2 ) AS col1, COUNT ( * ) * + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
10
-45

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 AS col0 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / + + 17 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT 90 AS col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
90
90
90

skipif mysql # not compatible
query I rowsort label-9115
SELECT 90 AS col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 1 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT DISTINCT - COUNT( * ) DIV - - 13 + - + 49 FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT - COUNT ( * ) / - - 13 + - + 49 FROM tab1 cor0
----
-49

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 22 <> + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0, - col0 * + col0 FROM tab0
----
15
-225
87
-7569
97
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 82 col1, - col2 AS col2 FROM tab2
----
82
-23
82
-40
82
-58

query I rowsort
SELECT DISTINCT 49 + + 62 FROM tab0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT MIN( 54 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9123
SELECT MIN ( 54 ) FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9124
SELECT * FROM tab2 WHERE - + col0 + - 85 BETWEEN NULL AND - - CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-9124
SELECT * FROM tab2 WHERE - + col0 + - 85 BETWEEN NULL AND - - CAST ( NULL AS INTEGER ) + + col1
----

query I rowsort
SELECT ( - 27 ) AS col2 FROM tab0
----
-27
-27
-27

query I rowsort
SELECT ALL col1 + + 17 * - - col2 AS col2 FROM tab2
----
1053
442
757

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT - COUNT( * ) + + SUM( + col2 ) AS col1 FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT - COUNT ( * ) + + SUM ( + col2 ) AS col1 FROM tab1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL - MAX( ALL - - 50 ) - + ( + COUNT( * ) ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - MAX ( ALL - - 50 ) - + ( + COUNT ( * ) ) FROM tab0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT + + COUNT( * ) + + COUNT( * ) * + - 67 AS col0 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9129
SELECT + + COUNT ( * ) + + COUNT ( * ) * + - 67 AS col0 FROM tab2 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL SUM( ALL + col2 ) * 38 AS col0 FROM tab1
----
8474

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL SUM ( ALL + col2 ) * 38 AS col0 FROM tab1
----
8474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT + CAST( col1 AS SIGNED ) / ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT + CAST ( col1 AS INTEGER ) / ( col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL + 72 + MIN( + col0 ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + 72 + MIN ( + col0 ) FROM tab2
----
118

query III rowsort
SELECT * FROM tab2 WHERE NOT + 85 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9134
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( DISTINCT col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( DISTINCT col0 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 3 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 3 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9136
SELECT CAST( AVG ( ALL + 21 ) AS SIGNED ) - COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9136
SELECT CAST ( AVG ( ALL + 21 ) AS INTEGER ) - COUNT ( * ) FROM tab1
----
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( - col2 + 9 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 55 + - 99 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - ( + col1 ) ) BETWEEN col1 AND col2 * 7
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * + col1 - 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 97 ) + 69 AS col2 FROM tab1
----
166
166
166

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 < ( - 2 ) * col0 + + col0
----

query I rowsort
SELECT DISTINCT - AVG ( - 62 ) AS col2 FROM tab1 WHERE ( 54 / col2 + col2 ) BETWEEN - 53 AND ( ( - col0 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 79 AS col2 FROM tab2 WHERE NULL BETWEEN + col1 AND col1
----

query I rowsort
SELECT DISTINCT 52 - col2 * + col2 AS col2 FROM tab0
----
-2157
-48
-9749

query III rowsort
SELECT * FROM tab0 WHERE + 88 <> col0 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) + + col1 < ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 40 ) IN ( + col0 )
----

query I rowsort
SELECT col0 + + col1 * + col0 AS col0 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT COUNT( * ) - 31 AS col0 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-9151
SELECT COUNT ( * ) - 31 AS col0 FROM tab1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( col0 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT SUM( ALL col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT SUM ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col1 ) > 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 / - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL < ( col2 )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT 34 NOT BETWEEN ( NULL ) AND - 35 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE + 32 * + 71 + 17 * - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT + - COUNT( * ) * - 18 col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9160
SELECT + - COUNT ( * ) * - 18 col0 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ( 48 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
48
48
48

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col2 * 9 FROM tab1 AS cor0
----
531
612
864

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT + COUNT( ALL - col2 ) * - 43 AS col2 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT + COUNT ( ALL - col2 ) * - 43 AS col2 FROM tab1 AS cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT - col2 / + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT - col2 / + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT ALL + CAST( col1 AS SIGNED ) + 82 FROM tab0 AS cor0
----
103
163
83

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + CAST ( col1 AS INTEGER ) + 82 FROM tab0 AS cor0
----
103
163
83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 22 + ( col0 ) >= ( - col1 )
----

query I rowsort
SELECT ALL + 96 * - 76 AS col1 FROM tab0 AS cor0
----
-7296
-7296
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL COUNT( + ( col2 ) ) FROM tab2 AS cor0 WHERE - col1 + col0 NOT IN ( 88 )
----
3

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL COUNT ( + ( col2 ) ) FROM tab2 AS cor0 WHERE - col1 + col0 NOT IN ( 88 )
----
3

query I rowsort
SELECT + + ( - col0 ) + - 2 FROM tab1 AS cor0
----
-53
-87
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE + 26 NOT IN ( col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 26 NOT IN ( col2 )
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 * + 88 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 31 + - 44 * - 90 FROM tab1
----
3991
3991
3991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT DISTINCT + CAST( - - 20 AS SIGNED ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT + CAST ( - - 20 AS INTEGER ) FROM tab2
----
20

query I rowsort
SELECT DISTINCT + 1 * - + ( + 27 ) + - col0 * + col2 AS col2 FROM tab0
----
-732
-897
-9630

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col0 * - 45 IS NULL
----

query I rowsort
SELECT col1 + col2 * - 48 FROM tab0 WHERE - 12 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + 81 )
----

query I rowsort
SELECT ALL col1 + - - col1 * col0 AS col0 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT DISTINCT + ( 69 ) - col1 AS col0 FROM tab2
----
-8
18
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 94 IS NULL
----

query I rowsort
SELECT DISTINCT - + 96 - ( - col1 ) - ( - col0 ) * 13 * col2 AS col2 FROM tab2 AS cor0
----
13709
33261
56521

query I rowsort
SELECT ALL + col2 * + 55 FROM tab1 cor0
----
3245
3740
5280

query I rowsort
SELECT - 72 - col0 - + col0 AS col2 FROM tab0 AS cor0
----
-102
-246
-266

query I rowsort
SELECT 31 + - 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT AVG ( col1 ) FROM tab2 WHERE + - 53 IN ( 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + MAX( DISTINCT + - 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9188
SELECT + MAX ( DISTINCT + - 4 ) FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT + ( - SUM( DISTINCT + 85 ) ) FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9189
SELECT + ( - SUM ( DISTINCT + 85 ) ) FROM tab0 AS cor0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 36 + - col0 / ( - col0 ) IS NOT NULL
----

query II rowsort
SELECT ALL + - 38, col1 FROM tab0 AS cor0
----
-38
1
-38
21
-38
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN - col2 AND - col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + ( + 64 ) AS col0 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT col1 + + 83 FROM tab0 WHERE NOT - col0 + - 31 + - 80 IN ( + col2 + 34 )
----
104
164
84

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 / - + 26 ) IS NOT NULL
----

query I rowsort
SELECT col2 * 93 AS col2 FROM tab0
----
4371
9207
930

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 46 ) > + 12
----

query I rowsort
SELECT - ( - col2 ) + ( 69 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT - COUNT( * ) * - 55, COUNT( * ) AS col1 FROM tab2
----
165
3

skipif mysql # not compatible
query II rowsort label-9199
SELECT - COUNT ( * ) * - 55, COUNT ( * ) AS col1 FROM tab2
----
165
3

query I rowsort
SELECT + 64 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
64
64
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( - 60 * - 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL - MIN( ALL - + col0 ) col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9202
SELECT ALL - MIN ( ALL - + col0 ) col0 FROM tab1 cor0
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 * - col0 * + 64 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col2 + + + col0 + 72 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9205
SELECT DISTINCT - MIN( DISTINCT - ( + col0 ) ) + ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - MIN ( DISTINCT - ( + col0 ) ) + ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN + + 69 AND - col0 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT 58 + + COUNT( * ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9207
SELECT 58 + + COUNT ( * ) AS col2 FROM tab2
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + col1 + col1 AS col1, 23 + + 44 col0 FROM tab0
----
101
67
209
67
52
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + + - col2 + + + col0 AS col1 FROM tab0
----
-113
-3
56

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + + - col2 + + + col0 AS col1 FROM tab0
----
-113
-3
56

query I rowsort
SELECT - 3 * 99 FROM tab0 AS cor0 WHERE col0 + - col0 - col1 * + 46 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + ( - 47 ) NOT BETWEEN ( col2 ) AND ( NULL )
----

query I rowsort
SELECT ALL col1 * ( - col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT - 11 * - 21 FROM tab0 AS cor0
----
231
231
231

onlyif mysql # DIV for integer division: 
query II rowsort label-9214
SELECT DISTINCT + col2 * + ( - + col1 ) AS col2, + ( 26 ) DIV - col0 AS col0 FROM tab2 cor0
----
-1173
0
-3080
0
-3886
0

skipif mysql # not compatible
query II rowsort label-9214
SELECT DISTINCT + col2 * + ( - + col1 ) AS col2, + ( 26 ) / - col0 AS col0 FROM tab2 cor0
----
-1173
0
-3080
0
-3886
0

query I rowsort
SELECT ALL - 89 + 46 AS col2 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT - 46 / - col2 FROM tab1 cor0 WHERE NOT - 49 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT CAST( + ( + col0 ) AS SIGNED ) * - 35 - col0 col2 FROM tab2
----
-1656
-2304
-2700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9218
SELECT CAST ( + ( + col0 ) AS INTEGER ) * - 35 - col0 col2 FROM tab2
----
-1656
-2304
-2700

query I rowsort
SELECT - col2 * ( - 39 ) * col2 - col2 * - col1 * + col2 AS col1 FROM tab1
----
153164
397664
488448

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - COUNT( * ) + - - 17 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-9220
SELECT - COUNT ( * ) + - - 17 FROM tab2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9221
SELECT * FROM tab2 cor0 WHERE ( - col1 * + col0 + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-9221
SELECT * FROM tab2 cor0 WHERE ( - col1 * + col0 + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + 33 - - 64 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # DIV for integer division: 
query II rowsort label-9223
SELECT DISTINCT - col0, col1 DIV col2 DIV - col2 AS col2 FROM tab2 cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-9223
SELECT DISTINCT - col0, col1 / col2 / - col2 AS col2 FROM tab2 cor0
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT + COUNT( ALL + - 45 ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT + COUNT ( ALL + - 45 ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT col2 * col1 + - col2 - + 88 * + col1 AS col0 FROM tab0 WHERE NOT col2 * + - col0 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT ALL + + SUM( DISTINCT - + 50 ) col0, COUNT( - - 63 ) AS col2 FROM tab0 cor0
----
-50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9226
SELECT ALL + + SUM ( DISTINCT - + 50 ) col0, COUNT ( - - 63 ) AS col2 FROM tab0 cor0
----
-50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - MAX( - 49 ) AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9227
SELECT - MAX ( - 49 ) AS col2 FROM tab0 AS cor0
----
49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * - 69 / + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL + MIN( DISTINCT + 19 ) AS col2 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + MIN ( DISTINCT + 19 ) AS col2 FROM tab2 AS cor0
----
19

query I rowsort
SELECT - + 4 + - 60 FROM tab0 WHERE NOT 95 IS NULL
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + ( - 68 ) IN ( col2, + 85 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9233
SELECT - 60 AS col1, COUNT( DISTINCT col1 ) FROM tab2
----
-60
3

skipif mysql # not compatible
query II rowsort label-9233
SELECT - 60 AS col1, COUNT ( DISTINCT col1 ) FROM tab2
----
-60
3

query I rowsort
SELECT DISTINCT 32 + - col1 AS col1 FROM tab1
----
-15
18
27

query II rowsort
SELECT DISTINCT + 7, + 45 AS col1 FROM tab0
----
7
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + 5 * - + col0 col1 FROM tab1
----
51
-255
85
-425
91
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT + SUM( + + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + SUM ( + + col2 ) AS col2 FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND + - ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <> 34
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9240
SELECT ALL col1 DIV - + col1 + - + 53 DIV col1, ( + col2 ) AS col2 FROM tab0
----
-1
47
-3
10
-54
99

skipif mysql # not compatible
query II rowsort label-9240
SELECT ALL col1 / - + col1 + - + 53 / col1, ( + col2 ) AS col2 FROM tab0
----
-1
47
-3
10
-54
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL SUM( DISTINCT - - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL SUM ( DISTINCT - - col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9242
SELECT - 93 - + col0 + ( + ( - col1 ) + col0 ) FROM tab2 WHERE NOT col2 - + col0 * - CAST( + col2 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9242
SELECT - 93 - + col0 + ( + ( - col1 ) + col0 ) FROM tab2 WHERE NOT col2 - + col0 * - CAST ( + col2 AS REAL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 + - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 + - col1 IS NULL
----
-3

query I rowsort
SELECT ( 92 ) AS col1 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT 56 + 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 241ddcc97f622e1fcc14bd3c6a5bb6f4

query I rowsort
SELECT + col0 + + 41 AS col0 FROM tab0 AS cor0
----
128
138
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT DISTINCT + MAX( - col2 ) + - 49 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT + MAX ( - col2 ) + - 49 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - 80 * - 87 AS col0 FROM tab1 AS cor0
----
6960

query I rowsort
SELECT col1 + 20 AS col0 FROM tab2 AS cor0
----
71
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT ALL + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT + 78 + - COUNT( * ) AS col0 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 78 + - COUNT ( * ) AS col0 FROM tab0 cor0
----
75

query I rowsort
SELECT ALL col1 + + 9 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
60
76
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 46 BETWEEN - - ( - col1 ) AND + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + + 75 ) IN ( - col2 + - - col2, col1 * 74 )
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 / - col0 - 65 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9257
SELECT + 5 DIV - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9257
SELECT + 5 / - COUNT ( * ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT col1 * + 55 * ( col0 ) AS col2 FROM tab1
----
23375
235235
39270

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT ALL 71 DIV + 37 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9259
SELECT ALL 71 / + 37 col0 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 + - col2 IN ( + - ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL < ( - col0 + - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL < ( - col0 + - - col2 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + + 99 NOT IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT ALL + ( + - col2 ) DIV - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL + ( + - col2 ) / - col0 AS col2 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT MIN( ALL + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT MIN ( ALL + - col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT + 39, + ( - col2 ) * 63 AS col2 FROM tab0 cor0
----
39
-2961
39
-6237
39
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT COUNT( * ), COUNT( * ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9267
SELECT COUNT ( * ), COUNT ( * ) FROM tab2 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT ( + MIN( DISTINCT col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT ( + MIN ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
5

query II rowsort
SELECT ALL + col1, ( + col1 ) AS col1 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - 61 * - 26 FROM tab0
----
1586
1586
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT - COUNT( * ) * - 50 * - 11 AS col2 FROM tab0
----
-1650

skipif mysql # not compatible
query I rowsort label-9271
SELECT - COUNT ( * ) * - 50 * - 11 AS col2 FROM tab0
----
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9272
SELECT * FROM tab1 WHERE ( 94 / - CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9272
SELECT * FROM tab1 WHERE ( 94 / - CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9273
SELECT ALL col2 DIV + col0, 88 DIV - + col0 AS col2 FROM tab2
----
0
-1
0
-1
0
-1

skipif mysql # not compatible
query II rowsort label-9273
SELECT ALL col2 / + col0, 88 / - + col0 AS col2 FROM tab2
----
0
-1
0
-1
0
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + 15 * + - COUNT( * ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9275
SELECT + 15 * + - COUNT ( * ) FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL - - col1 + + CAST( - col2 AS SIGNED ) * - - 69 FROM tab0 AS cor0
----
-3162
-669
-6830

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - - col1 + + CAST ( - col2 AS INTEGER ) * - - 69 FROM tab0 AS cor0
----
-3162
-669
-6830

query I rowsort
SELECT + col0 + + - col2 + - - col0 * + 68 + - ( - - col0 ) + - + 11 FROM tab1 AS cor0
----
3361
5710
6109

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 24 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < + 56
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT + CAST( NULL AS SIGNED ) + + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT + CAST ( NULL AS INTEGER ) + + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9282
SELECT col1 col2, - 63 * - col2 - + + CAST( 25 AS SIGNED ) + col1 * - col2 AS col2 FROM tab1
----
14
4679
47
1063
5
3397

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9282
SELECT col1 col2, - 63 * - col2 - + + CAST ( 25 AS INTEGER ) + col1 * - col2 AS col2 FROM tab1
----
14
4679
47
1063
5
3397

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9283
SELECT 36 AS col0, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to ac980b02695130950a45b85816cbd4c1

skipif mysql # not compatible
query II rowsort label-9283
SELECT 36 AS col0, CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to ac980b02695130950a45b85816cbd4c1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT ALL - col1 - - col1 + col1 * + CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT ALL - col1 - - col1 + col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + 31 FROM tab0 AS cor0 WHERE NOT + ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - - 37 AS col1 FROM tab0 AS cor0 WHERE ( NOT - + col2 > NULL )
----

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN + col0 / - 79 AND + col1 + + col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT + CAST( NULL AS SIGNED ) - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT + CAST ( NULL AS INTEGER ) - - col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 + 54, 13 FROM tab0 WHERE NOT col2 * - 82 NOT BETWEEN - + ( - col2 ) / - col2 * col0 * - - col2 * 12 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9291
SELECT ALL - CAST( + col0 AS SIGNED ) * + + col1 DIV + + col1 + 7 FROM tab1
----
-44
-78
-84

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - CAST ( + col0 AS INTEGER ) * + + col1 / + + col1 + 7 FROM tab1
----
-44
-78
-84

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( 81, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9293
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT 54 * + SUM( ALL - col1 ) * - + COUNT( * ) FROM tab2
----
31590

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT 54 * + SUM ( ALL - col1 ) * - + COUNT ( * ) FROM tab2
----
31590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT - - col0 IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT - col2 DIV + col2 + + + col0 * + 55 FROM tab0 AS cor0
----
4784
5334
824

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT - col2 / + col2 + + + col0 * + 55 FROM tab0 AS cor0
----
4784
5334
824

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

query II rowsort
SELECT + col1 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT ALL - + col1 * + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - + col1 * + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 46 * + + 64 - - 14 FROM tab0 AS cor0
----
2958
2958
2958

query I rowsort
SELECT 79 * + col1 * col2 + + 4 FROM tab1
----
106180
23309
252488

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL - COUNT( ALL col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - COUNT ( ALL col2 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT 64 / + 18 * - + col1 IS NULL AND NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 67 col2 FROM tab1
----
-118
-152
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL - COUNT( * ) * 32 + 16 AS col1 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL - COUNT ( * ) * 32 + 16 AS col1 FROM tab2
----
-80

query II rowsort
SELECT col0, + col0 FROM tab2 AS cor0 WHERE ( - 87 ) * col2 + - - 61 IS NOT NULL
----
46
46
64
64
75
75

query II rowsort
SELECT ALL + + col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - + col1 * - - 25 AS col1 FROM tab0 AS cor0
----
-2025
-25
-525

query I rowsort
SELECT + 29 / + 18 / + - col0 + + 99 AS col2 FROM tab1 AS cor0 WHERE NULL <> 71
----

query I rowsort
SELECT DISTINCT - ( + 47 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ( + 62 ) + - - COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-9313
SELECT ( + 62 ) + - - COUNT ( * ) FROM tab0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 19 col1 FROM tab2 AS cor0
----
42
59
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 99 + - col0 + + - col0 col0 FROM tab2 AS cor0
----
11
30
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9316
SELECT DISTINCT + SUM( col1 ) DIV 45 - + 91 AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT + SUM ( col1 ) / 45 - + 91 AS col0 FROM tab2 AS cor0
----
-87

query III rowsort
SELECT * FROM tab0 WHERE NOT - 31 > + 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT COUNT( - - ( + 8 ) ) AS col2, - COUNT( * ) AS col0 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-9319
SELECT COUNT ( - - ( + 8 ) ) AS col2, - COUNT ( * ) AS col0 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT + COUNT( col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT + COUNT ( col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - col0 * - 18 AS col2 FROM tab1
----
1530
1638
918

query I rowsort
SELECT ALL col2 * 56 AS col0 FROM tab0 AS cor0
----
2632
5544
560

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL + MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL + MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + + 74 AS col0 FROM tab0 cor0
----
74
74
74

query II rowsort
SELECT col1 * col2, col0 FROM tab2
----
1173
46
3080
64
3886
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT 26 * - - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9326
SELECT 26 * - - COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT - 40 * - - col2 + + col1 + + col2 AS col0 FROM tab0 AS cor0
----
-1752
-369
-3860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col2 FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - col1 >= NULL
----

query I rowsort
SELECT ALL + 97 * + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1358
-4559
-485

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - + ( + col1 ) > - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT col2 NOT IN ( + + 66, col0, + col2, + + col1 ) )
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9333
SELECT CAST( NULL AS DECIMAL ), - col2 - + col0 AS col2 FROM tab1
----
NULL
-144
NULL
-147
NULL
-159

skipif mysql # not compatible
query II rowsort label-9333
SELECT CAST ( NULL AS REAL ), - col2 - + col0 AS col2 FROM tab1
----
NULL
-144
NULL
-147
NULL
-159

query I rowsort
SELECT DISTINCT + col0 + + + col1 * - 92 FROM tab1
----
-1237
-375
-4233

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9335
SELECT COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL COUNT( * ) + - 2 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL COUNT ( * ) + - 2 AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ( - COUNT( ALL - col0 ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9337
SELECT ( - COUNT ( ALL - col0 ) ) col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + col1 + - + 75 FROM tab1
----
-28
-61
-70

query I rowsort
SELECT ALL + col0 + + 22 FROM tab1
----
107
113
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9340
SELECT col2 * + ( - CAST( NULL AS DECIMAL ) ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT col2 * + ( - CAST ( NULL AS REAL ) ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL - 17 * - - COUNT( * ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL - 17 * - - COUNT ( * ) AS col1 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT - COUNT( 62 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - COUNT ( 62 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - - col1
----

query I rowsort
SELECT + 76 + + - col0 AS col1 FROM tab1 cor0
----
-15
-9
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * - col0 + col2 * - 20 col1 FROM tab1
----
-1265
-1451
-1971

query I rowsort
SELECT ALL + - 24 AS col0 FROM tab2 WHERE NULL IS NULL
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT MIN( col2 ) AS col0, + 98 FROM tab2
----
23
98

skipif mysql # not compatible
query II rowsort label-9348
SELECT MIN ( col2 ) AS col0, + 98 FROM tab2
----
23
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT + + SUM( + col0 ) FROM tab2 WHERE NULL IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-9349
SELECT + + SUM ( + col0 ) FROM tab2 WHERE NULL IS NULL
----
185

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + - col2 ) IS NOT NULL
----

query II rowsort
SELECT + col0, + col2 - 38 FROM tab2 cor0
----
46
-15
64
2
75
20

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND + 73
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * ( + 34 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT + ( + ( + COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT + ( + ( + COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT MAX( + + 95 ) AS col0 FROM tab2 cor0
----
95

skipif mysql # not compatible
query I rowsort label-9355
SELECT MAX ( + + 95 ) AS col0 FROM tab2 cor0
----
95

query II rowsort
SELECT - 36 AS col0, + 47 AS col2 FROM tab2 AS cor0
----
-36
47
-36
47
-36
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - + col0, + 69 )
----
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - + col0, + 69 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL - MIN( DISTINCT + col1 ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9358
SELECT ALL - MIN ( DISTINCT + col1 ) col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT - MAX( - + 2 ) AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9359
SELECT - MAX ( - + 2 ) AS col2 FROM tab2
----
2

query III rowsort
SELECT * FROM tab1 WHERE - ( + col0 ) < - - col1 * - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - ( + 61 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) > - col0
----

query I rowsort
SELECT ALL + 21 + 1 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT ALL + MAX( ALL + col1 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + MAX ( ALL + col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT + 40 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL col0 * - - 23 FROM tab1
----
1173
1955
2093

query I rowsort
SELECT 36 * - 68 + - col2 * - + col0 FROM tab0
----
-1578
-1743
7155

query I rowsort
SELECT + - col0 * - col1 FROM tab0 WHERE + col0 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - + 12 ) + col0 col1 FROM tab2
----
-506
-704
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL - 71 + + COUNT( ALL + col2 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - 71 + + COUNT ( ALL + col2 ) FROM tab1
----
-68

query I rowsort
SELECT DISTINCT + 76 * + 21 FROM tab1 AS cor0
----
1596

query II rowsort
SELECT ALL 59 * + + 96, col0 FROM tab1 cor0
----
5664
51
5664
85
5664
91

query I rowsort
SELECT ALL - + col2 * 69 * - - col1 FROM tab0 AS cor0
----
-14490
-262683
-6831

query I rowsort
SELECT + - 42 - 45 AS col1 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - - COUNT( * ) + 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-9375
SELECT - - COUNT ( * ) + 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT COUNT( * ) * 63 AS col1 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-9376
SELECT COUNT ( * ) * 63 AS col1 FROM tab2
----
189

query I rowsort
SELECT ALL + col1 * + 7 * - 96 FROM tab1
----
-31584
-3360
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT ALL CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col2 + + col1 + col1 AS col1 FROM tab1 cor0 WHERE NOT + 34 * - 90 IS NULL
----
-49
-68
26

query I rowsort
SELECT + - col1 * + col1 + - + col1 + col1 FROM tab1 AS cor0 WHERE NOT - 62 * - + 74 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * - - col0 / + - col1 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - col1 ) * ( - col1 ) AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL + - COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + - COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT - + SUM( col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - + SUM ( col0 ) AS col1 FROM tab0 cor0
----
-199

query I rowsort
SELECT 54 * - - col1 FROM tab2
----
2754
3618
4158

query II rowsort
SELECT DISTINCT 41 AS col2, col1 * - 19 FROM tab2
----
41
-1273
41
-1463
41
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ( MIN( + col1 ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9387
SELECT ( MIN ( + col1 ) ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - 51 * - COUNT( * ) AS col2 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-9388
SELECT - 51 * - COUNT ( * ) AS col2 FROM tab0
----
153

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT DISTINCT 70 DIV 73 DIV 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT 70 / 73 / 72 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9391
SELECT - MAX( - col1 ) AS col0, ( 16 ) AS col2 FROM tab1 cor0
----
5
16

skipif mysql # not compatible
query II rowsort label-9391
SELECT - MAX ( - col1 ) AS col0, ( 16 ) AS col2 FROM tab1 cor0
----
5
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * col1 col1, - col2 FROM tab2 AS cor0
----
-2601
-23
-4489
-58
-5929
-40

query I rowsort
SELECT ALL + ( 13 ) AS col2 FROM tab0 WHERE col0 < NULL
----

query I rowsort
SELECT + 91 + col0 AS col1 FROM tab2
----
137
155
166

query II rowsort
SELECT + col0 * + col2 AS col2, - 32 FROM tab1 AS cor0
----
4896
-32
5015
-32
6188
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9396
SELECT ALL + ( - 52 ) * - + CAST( - MAX( DISTINCT col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-3900

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + ( - 52 ) * - + CAST ( - MAX ( DISTINCT col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL + 53 * COUNT( * ) FROM tab2 cor0
----
159

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL + 53 * COUNT ( * ) FROM tab2 cor0
----
159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND - - 17
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 43 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + SUM( - + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9400
SELECT + SUM ( - + col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT DISTINCT - COUNT( * ) AS col0, - 31 FROM tab2
----
-3
-31

skipif mysql # not compatible
query II rowsort label-9401
SELECT DISTINCT - COUNT ( * ) AS col0, - 31 FROM tab2
----
-3
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9402
SELECT ALL - CAST( NULL AS DECIMAL ) + - - 6 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - CAST ( NULL AS REAL ) + - - 6 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 45 ) - - - col0 AS col0 FROM tab2
----
-1
-19
-30

query I rowsort
SELECT col2 + - 35 FROM tab2
----
-12
23
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 80 ) col2 FROM tab1
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT ALL + 35 DIV + col1 - - 35 FROM tab1 cor0
----
35
37
42

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL + 35 / + col1 - - 35 FROM tab1 cor0
----
35
37
42

query I rowsort
SELECT ALL - - 30 AS col1 FROM tab1 AS cor0
----
30
30
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9409
SELECT DISTINCT * FROM tab2 WHERE + + col2 * + + col2 * - - col2 / - - CAST( NULL AS SIGNED ) >= + col2 + col1
----

skipif mysql # not compatible
query III rowsort label-9409
SELECT DISTINCT * FROM tab2 WHERE + + col2 * + + col2 * - - col2 / - - CAST ( NULL AS INTEGER ) >= + col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT - - MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9410
SELECT - - MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ( 54 ) * - col0 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT DISTINCT 53 DIV COUNT( - - col2 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT 53 / COUNT ( - - col2 ) FROM tab2 AS cor0
----
17

query II rowsort
SELECT DISTINCT - + col2 * col2 AS col1, col1 FROM tab0 AS cor0
----
-100
21
-2209
81
-9801
1

query I rowsort
SELECT DISTINCT + 55 * - + col1 AS col0 FROM tab0
----
-1155
-4455
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT CAST( col2 AS SIGNED ) * + + 5 FROM tab2
----
115
200
290

skipif mysql # not compatible
query I rowsort label-9415
SELECT CAST ( col2 AS INTEGER ) * + + 5 FROM tab2
----
115
200
290

query I rowsort
SELECT - col0 * + 67 + col2 + - col1 FROM tab0
----
-1039
-5840
-6401

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL + 25 * - + COUNT( * ) col0 FROM tab0 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9417
SELECT ALL + 25 * - + COUNT ( * ) col0 FROM tab0 cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 98 col2 FROM tab2 AS cor0 WHERE NOT - col1 + + 30 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9420
SELECT DISTINCT + - 4 * + col0 + + col1 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 NOT BETWEEN NULL AND CAST( + col0 AS DECIMAL ) * - - col0
----

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + - 4 * + col0 + + col1 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 NOT BETWEEN NULL AND CAST ( + col0 AS REAL ) * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9421
SELECT + col2 + - - CAST( NULL AS SIGNED ) + col2 * - col2 col2, - 91 FROM tab0 cor0
----
NULL
-91
NULL
-91
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9421
SELECT + col2 + - - CAST ( NULL AS INTEGER ) + col2 * - col2 col2, - 91 FROM tab0 cor0
----
NULL
-91
NULL
-91
NULL
-91

query I rowsort
SELECT ALL + + 58 * 87 + col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT + 58 <= + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > + 0
----

query I rowsort
SELECT 38 FROM tab1 AS cor0 WHERE NULL IS NULL
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 58 + - + 44 * - 22 + - 47 col1 FROM tab2 AS cor0
----
-1399
-2443
-413

onlyif mysql # DIV for integer division: 
query I rowsort label-9426
SELECT col0 DIV + col2 + + 17 DIV - 60 AS col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9426
SELECT col0 / + col2 + + 17 / - 60 AS col2 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9427
SELECT + + CAST( NULL AS DECIMAL ) + - - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT + + CAST ( NULL AS REAL ) + - - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT ALL - MAX( + col0 ) DIV - - 68 - - ( - 48 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - MAX ( + col0 ) / - - 68 - - ( - 48 ) FROM tab1
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col2 col0 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT MIN( DISTINCT - - 8 ) AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9430
SELECT MIN ( DISTINCT - - 8 ) AS col0 FROM tab0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT DISTINCT 91 DIV - col0 - - col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT 91 / - col0 - - col2 FROM tab2
----
22
39
57

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL > col1 * ( + 35 ) - - col2 )
----

query II rowsort
SELECT 61, - col1 AS col2 FROM tab0
----
61
-1
61
-21
61
-81

query I rowsort
SELECT ALL 20 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT - + CAST( - 89 AS SIGNED ) * ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT - + CAST ( - 89 AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT + 87 * - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9436
SELECT DISTINCT + 87 * - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9437
SELECT DISTINCT - - COUNT( + col1 ) * MAX( + col2 ) DIV 45 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT - - COUNT ( + col1 ) * MAX ( + col2 ) / 45 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9438
SELECT DISTINCT + + 32, - CAST( NULL AS DECIMAL ) / + + col0 col1 FROM tab1 AS cor0
----
32
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9438
SELECT DISTINCT + + 32, - CAST ( NULL AS REAL ) / + + col0 col1 FROM tab1 AS cor0
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - MIN( + - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9439
SELECT - MIN ( + - col0 ) AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 IS NOT NULL OR NOT - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - col0 IS NOT NULL
----

query II rowsort
SELECT ALL + 90, col2 FROM tab0 AS cor0
----
90
10
90
47
90
99

query I rowsort
SELECT DISTINCT col0 * - ( - + col2 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ( - 57 ) AS col1 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT ALL + col2 + - col0 - + col1 AS col0 FROM tab0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + COUNT( DISTINCT - col2 ) * + - 80 + + ( ( + 18 ) ) + 34 * + - SUM( DISTINCT + + col1 ) FROM tab0
----
-3724

skipif mysql # not compatible
query I rowsort label-9446
SELECT + COUNT ( DISTINCT - col2 ) * + - 80 + + ( ( + 18 ) ) + 34 * + - SUM ( DISTINCT + + col1 ) FROM tab0
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT 3 * - MIN( + col1 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-9447
SELECT 3 * - MIN ( + col1 ) FROM tab2
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-9448
SELECT ALL ( + col1 ) DIV col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL ( + col1 ) / col2 AS col1 FROM tab2
----
1
1
2

query I rowsort
SELECT + 19 FROM tab2 WHERE NOT - col0 / 96 IS NULL
----
19
19
19

query I rowsort
SELECT ALL col2 + + - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT + CAST( NULL AS SIGNED ) + + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT + CAST ( NULL AS INTEGER ) + + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - + 43 ) FROM tab0
----
43

query III rowsort
SELECT * FROM tab1 WHERE + 77 * + - col2 BETWEEN - col0 AND + 41
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 92 / + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 * 32 - + 58 + 45 * col0 col2 FROM tab2 AS cor0
----
1884
2694
3189

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT DISTINCT + 67 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT + 67 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9457
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) >= col2 + col0 * col1 + + + col2 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9457
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) >= col2 + col0 * col1 + + + col2 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT - - COUNT( ALL - 60 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT - - COUNT ( ALL - 60 ) FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT + 83 * + - col2 + col1, + col1 FROM tab1 AS cor0
----
-4892
5
-5597
47
-7954
14

query I rowsort
SELECT - 22 - col1 FROM tab1 AS cor0
----
-27
-36
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9461
SELECT ALL + 6 AS col2, - COUNT( * ) * + 51 FROM tab1 AS cor0
----
6
-153

skipif mysql # not compatible
query II rowsort label-9461
SELECT ALL + 6 AS col2, - COUNT ( * ) * + 51 FROM tab1 AS cor0
----
6
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT COUNT( * ) - - - 12 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9462
SELECT COUNT ( * ) - - - 12 FROM tab2
----
-9

query I rowsort
SELECT - ( + 38 ) - + + 42 AS col2 FROM tab1
----
-80
-80
-80

query I rowsort
SELECT ( 50 ) - + 61 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT - col0 - + ( 14 ) + + 56 - - col1 + - 35 * col1 AS col1 FROM tab0
----
-2727
-759
-89

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
79

query I rowsort
SELECT ALL - col1 + - - 24 FROM tab2
----
-27
-43
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 WHERE + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + 16 + + col0 AS col2 FROM tab1
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT MIN( DISTINCT + ( + 70 ) ) col0 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9470
SELECT DISTINCT MIN ( DISTINCT + ( + 70 ) ) col0 FROM tab0
----
70

query I rowsort
SELECT 21 * 47 + 48 FROM tab2 AS cor0
----
1035
1035
1035

query II rowsort
SELECT - col2 AS col1, 6 FROM tab0 cor0
----
-10
6
-47
6
-99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL - SUM( ALL col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - SUM ( ALL col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( 75 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + + 49 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < + - 3 * - 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT + - CAST( + - 24 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-9477
SELECT + - CAST ( + - 24 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + col0 + + - 77 AS col0 FROM tab1 AS cor0
----
-26
14
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT - MAX( DISTINCT col2 ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT - MAX ( DISTINCT col2 ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - + col0 - + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 86 * + + 79 + - + col1, - 86 + col1 * - col0 AS col1 FROM tab1
----
6747
-4363
6780
-800
6789
-511

query I rowsort
SELECT - 58 * col2 AS col2 FROM tab2 AS cor0
----
-1334
-2320
-3364

query I rowsort
SELECT DISTINCT - - col2 * - - ( + - col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT DISTINCT col2 * 1 + col0 AS col0, col1 AS col0 FROM tab2 AS cor0
----
104
77
133
67
69
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 43 ) < + 92 / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT CAST( NULL AS SIGNED ) + + - 56 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT CAST ( NULL AS INTEGER ) + + - 56 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - COUNT( ALL - col1 ) FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - COUNT ( ALL - col1 ) FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + - col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT MAX( DISTINCT - 98 ) AS col2 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9490
SELECT MAX ( DISTINCT - 98 ) AS col2 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT - AVG ( col0 ) AS col1 FROM tab2 WHERE col0 BETWEEN - ( col0 ) AND ( NULL )
----
NULL

query I rowsort
SELECT - + 10 AS col1 FROM tab2 WHERE NOT - + 20 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT CAST( NULL AS SIGNED ) * + col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9494
SELECT CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9495
SELECT + COUNT( + col1 ) DIV COUNT( * ) * - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9495
SELECT + COUNT ( + col1 ) / COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 cor0
----
NULL

query II rowsort
SELECT + - 43 AS col1, col0 FROM tab2 cor0
----
-43
46
-43
64
-43
75

query II rowsort
SELECT ALL + col0 AS col0, 47 AS col0 FROM tab1 AS cor0
----
51
47
85
47
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----

query II rowsort
SELECT 42 * + + col0 AS col0, - col1 * + 53 AS col2 FROM tab1
----
2142
-742
3570
-265
3822
-2491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL col1 FROM tab0 WHERE NOT + - CAST( - - 56 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL col1 FROM tab0 WHERE NOT + - CAST ( - - 56 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT MIN( ALL + - 8 ) AS col0 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9503
SELECT MIN ( ALL + - 8 ) AS col0 FROM tab0 cor0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT ALL COUNT( ( + col2 ) ) * + SUM( + col1 ) + 35 col2, 3 FROM tab0 AS cor0
----
344
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9504
SELECT ALL COUNT ( ( + col2 ) ) * + SUM ( + col1 ) + 35 col2, 3 FROM tab0 AS cor0
----
344
3

query II rowsort
SELECT ALL col1 AS col2, + ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col2, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9507
SELECT - COUNT( * ) AS col2, 14 AS col2 FROM tab1 AS cor0
----
-3
14

skipif mysql # not compatible
query II rowsort label-9507
SELECT - COUNT ( * ) AS col2, 14 AS col2 FROM tab1 AS cor0
----
-3
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL + + 83 + + COUNT( * ) FROM tab1 WHERE + - col0 * + + CAST( NULL AS SIGNED ) NOT IN ( - col0 - col0, + col1 + - col1 + col1, + col0 * + 71 )
----
83

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + + 83 + + COUNT ( * ) FROM tab1 WHERE + - col0 * + + CAST ( NULL AS INTEGER ) NOT IN ( - col0 - col0, + col1 + - col1 + col1, + col0 * + 71 )
----
83

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 WHERE NULL <> + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - COUNT( ALL - + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9510
SELECT - COUNT ( ALL - + col2 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9511
SELECT + CAST( - + MIN( - col2 ) AS SIGNED ) * + + COUNT( * ) FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT + CAST ( - + MIN ( - col2 ) AS INTEGER ) * + + COUNT ( * ) FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 10 AS col2 FROM tab1 WHERE NOT - col0 NOT BETWEEN + 22 AND - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9513
SELECT SUM( 50 ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT SUM ( 50 ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * col1 - - - 62 AS col2 FROM tab0 AS cor0
----
-503
-63
-6623

query II rowsort
SELECT DISTINCT col2 AS col2, 67 AS col1 FROM tab2 AS cor0
----
23
67
40
67
58
67

query I rowsort
SELECT DISTINCT + - ( + col0 ) - ( + - 88 ) AS col2 FROM tab2 cor0
----
13
24
42

query I rowsort
SELECT - col1 * + 45 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT DISTINCT + 65 DIV + 20 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT + 65 / + 20 AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT + SUM( DISTINCT col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT + SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT ( - col0 ) * 47 FROM tab1
----
-2397
-3995
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT 17 * MAX( DISTINCT - col0 ) FROM tab1
----
-867

skipif mysql # not compatible
query I rowsort label-9521
SELECT 17 * MAX ( DISTINCT - col0 ) FROM tab1
----
-867

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 12 IS NOT NULL
----

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT ( + + 8 ) = 35
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT MIN( - - col2 ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9524
SELECT MIN ( - - col2 ) AS col1 FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT DISTINCT - SUM( ALL - 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE CAST( - 99 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - SUM ( ALL - 81 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE CAST ( - 99 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT - CAST( + + 56 AS SIGNED ) AS col2 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - CAST ( + + 56 AS INTEGER ) AS col2 FROM tab0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, - col0 FROM tab2 AS cor0 WHERE NOT + 93 BETWEEN 84 + - - col1 AND + col1
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT + 60 DIV + + MIN( - 23 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9528
SELECT + 60 / + + MIN ( - 23 ) FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT DISTINCT - SUM( DISTINCT + - 43 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT - SUM ( DISTINCT + - 43 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 25 + + 38 * + col2 AS col1 FROM tab1 AS cor0
----
2267
2609
3673

query I rowsort
SELECT DISTINCT - - 20 + + col0 + + col0 * - + col1 FROM tab0 AS cor0
----
-1180
-1720
20

query I rowsort
SELECT ALL - ( col1 ) * + col1 + - + col1 AS col2 FROM tab2
----
-2652
-4556
-6006

query I rowsort
SELECT ALL - 50 + - col1 FROM tab1
----
-55
-64
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9534
SELECT DISTINCT COUNT( * ) + + - SUM( ALL - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT COUNT ( * ) + + - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 15 + col2 AS col2 FROM tab1
----
111
74
83

query I rowsort
SELECT ALL col1 + - - ( + col0 ) + col1 FROM tab2
----
148
209
218

query II rowsort
SELECT col0 AS col2, + 51 * - 27 + col1 FROM tab1
----
51
-1363
85
-1372
91
-1330

query I rowsort
SELECT ALL col0 + ( 94 ) AS col0 FROM tab2
----
140
158
169

query II rowsort
SELECT ALL + col1 AS col2, 7 + 10 FROM tab1 cor0
----
14
17
47
17
5
17

query I rowsort
SELECT - 42 * col2 AS col2 FROM tab1 cor0
----
-2478
-2856
-4032

query I rowsort
SELECT + + ( + - col2 ) FROM tab2 AS cor0 WHERE ( NOT 38 + - - ( - + 85 ) + + col1 * - 3 IS NOT NULL )
----

query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE 38 + + col2 NOT IN ( - 30, - 52 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9543
SELECT DISTINCT 85 + - CAST( NULL AS SIGNED ) AS col0, col2 * - 91 col0 FROM tab2 AS cor0 WHERE - 5 > 49
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9543
SELECT DISTINCT 85 + - CAST ( NULL AS INTEGER ) AS col0, col2 * - 91 col0 FROM tab2 AS cor0 WHERE - 5 > 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9544
SELECT - MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL + + 66 * - + col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT DISTINCT - col0 * - + 54 AS col0 FROM tab0
----
4698
5238
810

onlyif mysql # DIV for integer division: 
query II rowsort label-9547
SELECT - 13 AS col1, + col1 DIV - + col2 + + 43 AS col0 FROM tab1
----
-13
43
-13
43
-13
43

skipif mysql # not compatible
query II rowsort label-9547
SELECT - 13 AS col1, + col1 / - + col2 + + 43 AS col0 FROM tab1
----
-13
43
-13
43
-13
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + 87 * SUM( + 76 ) * + COUNT( * ) FROM tab0
----
59508

skipif mysql # not compatible
query I rowsort label-9548
SELECT + 87 * SUM ( + 76 ) * + COUNT ( * ) FROM tab0
----
59508

query II rowsort
SELECT col1 AS col2, + ( - 65 ) FROM tab1
----
14
-65
47
-65
5
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL + COUNT( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + COUNT ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9551
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT CAST( NULL AS SIGNED ) + + 21 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT CAST ( NULL AS INTEGER ) + + 21 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE + 6 IS NULL
----

query I rowsort
SELECT DISTINCT + 94 * + 26 + - 33 FROM tab1
----
2411

query I rowsort
SELECT ALL + 21 AS col1 FROM tab1 WHERE ( 79 * + col1 + 88 * col1 ) IS NOT NULL
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL + SUM( + col0 ) - COUNT( * ) FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + SUM ( + col0 ) - COUNT ( * ) FROM tab0
----
196

query I rowsort
SELECT col2 * col1 + col2 * col1 FROM tab0
----
198
420
7614

query I rowsort
SELECT ( + 18 ) + + col1 * + col0 AS col0 FROM tab1
----
4295
443
732

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9559
SELECT DISTINCT * FROM tab1 WHERE - ( + CAST( + 22 AS DECIMAL ) ) * - 24 IN ( - col0 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-9559
SELECT DISTINCT * FROM tab1 WHERE - ( + CAST ( + 22 AS REAL ) ) * - 24 IN ( - col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT MAX( - 82 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-9560
SELECT MAX ( - 82 ) FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT - ( - 67 ) + + COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - ( - 67 ) + + COUNT ( * ) FROM tab2
----
70

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab1 WHERE NOT + 4 * - col1 BETWEEN 71 AND col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL SUM( ALL 42 ) col1 FROM tab1 WHERE NOT 76 BETWEEN col1 + 49 AND col1 * col1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9563
SELECT ALL SUM ( ALL 42 ) col1 FROM tab1 WHERE NOT 76 BETWEEN col1 + 49 AND col1 * col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL COUNT( ALL + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL COUNT ( ALL + col1 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 41 AND NULL
----

query I rowsort
SELECT ALL - col2 * 57 FROM tab0
----
-2679
-5643
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT col1 * CAST( col2 AS SIGNED ) - - 52 col0 FROM tab0
----
151
262
3859

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9567
SELECT col1 * CAST ( col2 AS INTEGER ) - - 52 col0 FROM tab0
----
151
262
3859

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT 67 * COUNT( * ) - - COUNT( * ) AS col2 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-9568
SELECT 67 * COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL COUNT( * ) * SUM( DISTINCT col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL COUNT ( * ) * SUM ( DISTINCT col2 ) FROM tab2
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL 97 * + COUNT( DISTINCT - col2 * 17 ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL 97 * + COUNT ( DISTINCT - col2 * 17 ) FROM tab1
----
291

query I rowsort
SELECT ALL - 59 + - 52 FROM tab2
----
-111
-111
-111

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 77 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9573
SELECT col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 > 12
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 63 = + col0
----

query I rowsort
SELECT ALL + col2 - - col0 * - 43 AS col2 FROM tab1
----
-2097
-3596
-3845

onlyif mysql # DIV for integer division: 
query I rowsort label-9577
SELECT 15 DIV - 74 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9577
SELECT 15 / - 74 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 41 * + 68 - + 26 FROM tab1 WHERE ( ( + 36 ) ) IS NOT NULL
----
2762
2762
2762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 77 * 53 FROM tab1
----
4081
4081
4081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9581
SELECT ALL * FROM tab2 WHERE 62 / + 26 NOT BETWEEN ( NULL ) AND CAST( 49 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9581
SELECT ALL * FROM tab2 WHERE 62 / + 26 NOT BETWEEN ( NULL ) AND CAST ( 49 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 / col2 + col1 )
----

query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 - 33 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + col0 ) + col1 NOT BETWEEN ( NULL ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 57 col2 FROM tab0 cor0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9588
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE - col2 - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE - col2 - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 22 FROM tab2 AS cor0 WHERE + 91 BETWEEN ( ( + ( - 59 ) ) ) AND + 93 / 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9590
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + - col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + + ( - COUNT( * ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9591
SELECT + + ( - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT 83 IS NOT NULL OR 2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 11 ) >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - ( COUNT( * ) ) * 35 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-9594
SELECT - ( COUNT ( * ) ) * 35 FROM tab0
----
-105

query III rowsort
SELECT * FROM tab2 WHERE - col1 IS NOT NULL OR ( 49 ) > NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT - 64 DIV - col0 AS col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9596
SELECT - 64 / - col0 AS col2 FROM tab0
----
0
0
4

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 67 NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / - col1 IN ( ( col0 ) )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9600
SELECT ALL 50 DIV + 79 * + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL 50 / + 79 * + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT - SUM( DISTINCT - col2 ) FROM tab2 WHERE NOT ( NULL ) > ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT - SUM ( DISTINCT - col2 ) FROM tab2 WHERE NOT ( NULL ) > ( - col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( col0 )
----

query I rowsort
SELECT - + ( + - 31 ) AS col0 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT + 65 AS col0 FROM tab2 cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT + 26 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
17

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT + 26 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT 58 FROM tab2 WHERE 20 + + CAST( NULL AS SIGNED ) <> col0
----

skipif mysql # not compatible
query I rowsort label-9606
SELECT 58 FROM tab2 WHERE 20 + + CAST ( NULL AS INTEGER ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL 74 * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
666

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL 74 * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT DISTINCT + col2 + + + CAST( col0 AS SIGNED ) + - col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT + col2 + + + CAST ( col0 AS INTEGER ) + - col2 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9610
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( + 3 AS SIGNED ) * + 6 + 79 IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9610
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( + 3 AS INTEGER ) * + 6 + 79 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 5 + col1 AS col2 FROM tab2 WHERE ( 47 ) IS NULL
----

query I rowsort
SELECT ( + + col2 ) * 71 FROM tab0
----
3337
7029
710

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL COUNT( * ) * 22 - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
189

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL COUNT ( * ) * 22 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT - COUNT( * ) * + COUNT( * ) * + + CAST( NULL AS SIGNED ) + 64 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT - COUNT ( * ) * + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + 64 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - ( col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <= - col2 * + 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 + + col0 + col1 * - col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT ( col2 ) + + - col0 * CAST( 58 + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT ( col2 ) + + - col0 * CAST ( 58 + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 AND - 88 / + col0 + 31
----

query I rowsort
SELECT + ( - 68 ) + - 24 AS col0 FROM tab2 AS cor0
----
-92
-92
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 69 + + + 6 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT + + SUM( - + CAST( col2 AS SIGNED ) ) + + 34 FROM tab0 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-9624
SELECT + + SUM ( - + CAST ( col2 AS INTEGER ) ) + + 34 FROM tab0 AS cor0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT + COUNT( * ) + + 43 + 94 FROM tab0
----
140

skipif mysql # not compatible
query I rowsort label-9625
SELECT + COUNT ( * ) + + 43 + 94 FROM tab0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - MIN( + + col2 ) + COUNT( * ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-9626
SELECT - MIN ( + + col2 ) + COUNT ( * ) FROM tab1
----
-56

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( col0 / 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + + COUNT( * ) + - 1 * 29 FROM tab2 WHERE + col0 IS NULL
----
-29

skipif mysql # not compatible
query I rowsort label-9628
SELECT + + COUNT ( * ) + - 1 * 29 FROM tab2 WHERE + col0 IS NULL
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab0 WHERE NULL NOT BETWEEN - + col2 AND ( - ( + 79 ) )
----

query I rowsort
SELECT DISTINCT + ( - + 24 ) + - 99 FROM tab0
----
-123

query I rowsort
SELECT ALL - col1 + - - 99 * col0 * + col1 AS col2 FROM tab2
----
232203
487795
497408

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL + 9 * 52 - - + COUNT( * ) col0 FROM tab1
----
471

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9632
SELECT ALL + 9 * 52 - - + COUNT ( * ) col0 FROM tab1
----
471

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT DISTINCT CAST( NULL AS SIGNED ) + + MAX( ALL - - 36 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + MAX ( ALL - - 36 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT - 60 * COUNT( * ) FROM tab1 WHERE NULL < ( + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - 60 * COUNT ( * ) FROM tab1 WHERE NULL < ( + + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT CAST( - col1 AS SIGNED ) - + col2 * col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

skipif mysql # not compatible
query I rowsort label-9637
SELECT CAST ( - col1 AS INTEGER ) - + col2 * col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT DISTINCT + ( + col2 ) * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IN ( + + col0 )
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT - - 70 AS col1 FROM tab0 AS cor0
----
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - + 34 <= ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL COUNT( * ) + + 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
103

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL COUNT ( * ) + + 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
103

query I rowsort
SELECT DISTINCT - col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + + - col2 BETWEEN NULL AND 52 - col2 * col2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-9643
SELECT + - 91 col1, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-91
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9643
SELECT + - 91 col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-91
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT MAX( + + 5 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9644
SELECT MAX ( + + 5 ) AS col2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT - COUNT( 21 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9646
SELECT DISTINCT - COUNT ( 21 ) col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 37 ) <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - 86 AS col1, ( + + 84 ) FROM tab2 AS cor0
----
86
84
86
84
86
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 21 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 * ( + 91 ) * + + col0 ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9651
SELECT DISTINCT - - col2 * CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT - - col2 * CAST ( NULL AS REAL ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT col0 DIV + 23 AS col2 FROM tab2 WHERE NOT 45 * - 43 + + 55 + + col2 + col0 BETWEEN col1 AND ( col0 )
----
2
2
3

skipif mysql # not compatible
query I rowsort label-9652
SELECT col0 / + 23 AS col2 FROM tab2 WHERE NOT 45 * - 43 + + 55 + + col2 + col0 BETWEEN col1 AND ( col0 )
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9653
SELECT + CAST( ( 84 ) AS SIGNED ) * + 54 AS col2, 96 AS col1 FROM tab2
----
4536
96
4536
96
4536
96

skipif mysql # not compatible
query II rowsort label-9653
SELECT + CAST ( ( 84 ) AS INTEGER ) * + 54 AS col2, 96 AS col1 FROM tab2
----
4536
96
4536
96
4536
96

query II rowsort
SELECT ALL + col1 AS col2, - col2 * + 79 + - - 14 * + 33 + - col0 FROM tab2
----
51
-1401
67
-4195
77
-2762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9655
SELECT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * + col1 col1 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL 59 * - COUNT( * ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL 59 * - COUNT ( * ) FROM tab2
----
-177

query II rowsort
SELECT ALL - col0, 50 + - - 88 * - - col1 AS col2 FROM tab0 AS cor0
----
-15
7178
-87
1898
-97
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( ( - 44 ) AS SIGNED ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( ( - 44 ) AS INTEGER ) IS NULL
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 94 * - + col0 * + + col0 BETWEEN col0 AND ( + col0 + col0 / - 9 )
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + col1 * + col2 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL + col1 * - - col1 + CAST( - 5 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
2716
4779
6129

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + col1 * - - col1 + CAST ( - 5 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
2716
4779
6129

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 BETWEEN - 9 * + col0 * + 43 AND 3 )
----

query I rowsort
SELECT - - col1 * + col1 * + 57 FROM tab0 AS cor0
----
25137
373977
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 62 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9668
SELECT DISTINCT SUM( ALL + col1 ) DIV + 56 + - COUNT( * ) AS col2, + 65 col2 FROM tab2
----
0
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9668
SELECT DISTINCT SUM ( ALL + col1 ) / + 56 + - COUNT ( * ) AS col2, + 65 col2 FROM tab2
----
0
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT + 82 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT + 82 > NULL
----
0

query II rowsort
SELECT ALL - ( + col1 ) + col2, col1 FROM tab1
----
21
47
54
5
82
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT DISTINCT - col1 - + col0 DIV + 91 + col0 * 3 FROM tab0
----
-36
240
289

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - col1 - + col0 / + 91 + col0 * 3 FROM tab0
----
-36
240
289

query I rowsort
SELECT DISTINCT - 34 + - 4 * + - ( + - col2 ) FROM tab0
----
-222
-430
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT - ( 76 ) DIV + ( - - 91 ) + - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9673
SELECT - ( 76 ) / + ( - - 91 ) + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT ALL + ( + CAST( - COUNT( * ) AS SIGNED ) ) + ( - 88 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) + ( - 88 ) FROM tab0
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 52 + - 40 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - ( 33 ) FROM tab2
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT + MAX( ALL - 39 ) FROM tab2 AS cor0 WHERE NOT NULL <= col2 * + - col2 / - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT + MAX ( ALL - 39 ) FROM tab2 AS cor0 WHERE NOT NULL <= col2 * + - col2 / - col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9679
SELECT DISTINCT CAST( + + 74 AS SIGNED ), ( ( - + SUM( ALL - col2 ) ) ) AS col1 FROM tab2 AS cor0
----
74
121

skipif mysql # not compatible
query II rowsort label-9679
SELECT DISTINCT CAST ( + + 74 AS INTEGER ), ( ( - + SUM ( ALL - col2 ) ) ) AS col1 FROM tab2 AS cor0
----
74
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT + CAST( 86 AS SIGNED ) FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort label-9680
SELECT + CAST ( 86 AS INTEGER ) FROM tab2
----
86
86
86

query I rowsort
SELECT DISTINCT 9 + + col0 * - col2 + + 66 + - + col0 AS col1 FROM tab1
----
-4872
-5025
-6204

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9682
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * col2 NOT BETWEEN ( + 98 * CAST( NULL AS DECIMAL ) / 29 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9682
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * col2 NOT BETWEEN ( + 98 * CAST ( NULL AS REAL ) / 29 ) AND NULL
----

query I rowsort
SELECT 29 + - 33 AS col0 FROM tab0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + + col1 AND ( + 38 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( col2 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT - CAST( 56 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-9686
SELECT - CAST ( 56 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL - - col2 * + 44 * + col2 * - col1 * - 94 FROM tab2 AS cor0
----
111585144
509555200
932204768

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT + - 18 DIV + 52 - - + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9688
SELECT + - 18 / + 52 - - + col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <= + - 16
----

query I rowsort
SELECT DISTINCT + 13 * - 80 FROM tab1 AS cor0
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT - ( - COUNT( * ) ) + + 73 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - ( - COUNT ( * ) ) + + 73 FROM tab1
----
76

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE + col1 NOT IN ( + col2, + 49 * - col2 )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT DISTINCT + 42 - - - col1 DIV col0 FROM tab2 AS cor0
----
41
42

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT + 42 - - - col1 / col0 FROM tab2 AS cor0
----
41
42

query I rowsort
SELECT + col0 / + - col1 AS col0 FROM tab1 AS cor0 WHERE col1 IN ( + + col0 + - col2 + + 8 * col1 )
----

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL AND NOT 21 / - + col2 NOT IN ( + col2 )
----

query I rowsort
SELECT ALL col0 - + 49 FROM tab1 AS cor0
----
2
36
42

query I rowsort
SELECT DISTINCT 74 * + 33 * col2 FROM tab2 AS cor0
----
141636
56166
97680

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 * + ( - col1 ) AND + col1 + 89 + + col0 + + - col2 * + - col1
----

query I rowsort
SELECT DISTINCT + col0 * - + col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT - - COUNT( * ) + + MIN( - + col2 ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9700
SELECT - - COUNT ( * ) + + MIN ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL - + 65 * - + col0 + col2 + + col2 + ( - col1 ) FROM tab2 AS cor0
----
2985
4163
4924

query III rowsort
SELECT * FROM tab2 WHERE col0 * col1 * + ( - - 26 ) * + - col0 + + 84 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9703
SELECT DISTINCT - MIN( - 96 ) * MIN( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT - MIN ( - 96 ) * MIN ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT ALL - ( - + ( CAST( col0 AS SIGNED ) ) ) * - 14 FROM tab0
----
-1218
-1358
-210

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL - ( - + ( CAST ( col0 AS INTEGER ) ) ) * - 14 FROM tab0
----
-1218
-1358
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-9705
SELECT MAX( ALL + col2 ) AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-9705
SELECT MAX ( ALL + col2 ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
96
3

query I rowsort
SELECT + col2 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT - - 14 * - 65 IS NULL
----
59
68
96

query I rowsort
SELECT - ( + col2 ) * + + ( - col0 ) * + + col2 FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT DISTINCT CAST( 77 AS SIGNED ) AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col0 FROM tab0
----
77

query II rowsort
SELECT 98 AS col0, 49 + + 95 AS col1 FROM tab0
----
98
144
98
144
98
144

query II rowsort
SELECT + 26 AS col1, + col0 AS col0 FROM tab0 cor0
----
26
15
26
87
26
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 46 * + + 96 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL + + 58 + MIN( + 16 ) - COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + + 58 + MIN ( + 16 ) - COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 80 AS col0 FROM tab1 cor0
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-9716
SELECT + - col1 AS col0, col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-9716
SELECT + - col1 AS col0, col2 / col1 AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 1 = NULL
----

query I rowsort
SELECT ALL + col0 * - col2 + - 99 FROM tab0 AS cor0
----
-804
-969
-9702

query I rowsort
SELECT - ( + col2 ) FROM tab1 WHERE NOT + col2 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT + CAST( - - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9720
SELECT + CAST ( - - col2 AS INTEGER ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + col1 ) col2, 77 * col0 AS col2 FROM tab2
----
-51
3542
-67
5775
-77
4928

query I rowsort
SELECT col0 * + col2 * - col2 AS col0 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL + MIN( - + col0 ) AS col0 FROM tab2 WHERE - 8 * + col2 + + col2 + + 19 IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + MIN ( - + col0 ) AS col0 FROM tab2 WHERE - 8 * + col2 + + col2 + + 19 IS NOT NULL
----
-75

query I rowsort
SELECT ALL + ( - col0 ) + - - col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT - COUNT( * ) + SUM( DISTINCT + col2 ) FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT - COUNT ( * ) + SUM ( DISTINCT + col2 ) FROM tab1
----
220

query I rowsort
SELECT col2 * + 33 AS col0 FROM tab2
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9727
SELECT * FROM tab2 cor0 WHERE + ( col0 ) <> - col2 AND NOT - col2 * - - col1 * - 13 BETWEEN ( - 40 * - CAST( + col2 AS SIGNED ) - + 71 / - col2 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9727
SELECT * FROM tab2 cor0 WHERE + ( col0 ) <> - col2 AND NOT - col2 * - - col1 * - 13 BETWEEN ( - 40 * - CAST ( + col2 AS INTEGER ) - + 71 / - col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 * - - 63 + 34 col2 FROM tab0 AS cor0
----
139201
617497
6334

query I rowsort
SELECT ALL + 33 AS col1 FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + - col0 <> - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col1 FROM tab2 cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT col2 DIV - col2 - + 54 + - col2 FROM tab2 AS cor0
----
-113
-78
-95

skipif mysql # not compatible
query I rowsort label-9732
SELECT col2 / - col2 - + 54 + - col2 FROM tab2 AS cor0
----
-113
-78
-95

query I rowsort
SELECT 37 * + 65 - 61 FROM tab2
----
2344
2344
2344

query I rowsort
SELECT DISTINCT - col1 * - 3 AS col0 FROM tab1
----
141
15
42

query I rowsort
SELECT + col1 * + 70 * - col0 FROM tab2
----
-164220
-344960
-351750

onlyif mysql # aggregate syntax: 
query II rowsort label-9736
SELECT - 76 col2, - ( + - COUNT( * ) ) + - - ( - COUNT( + 28 ) ) col0 FROM tab1
----
-76
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9736
SELECT - 76 col2, - ( + - COUNT ( * ) ) + - - ( - COUNT ( + 28 ) ) col0 FROM tab1
----
-76
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 * + 78 + col2 + - + col2 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT + SUM( + + 84 ) AS col0 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + SUM ( + + 84 ) AS col0 FROM tab1
----
252

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 70 col0 FROM tab2
----
-1610
-2800
-4060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - 59 + + col1 + + - 49 * - col0 * + - col2 col2 FROM tab0 cor0
----
1
-470605
21
-42668
81
-34523

query I rowsort
SELECT DISTINCT ( + 58 ) FROM tab0 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT + CAST( NULL AS SIGNED ) * + MIN( DISTINCT + + 24 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + + 24 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - 90 - + + 41
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 + + col1 ) = ( NULL )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT + - 38 DIV COUNT( + - col2 ) AS col1 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT + - 38 / COUNT ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + 53 * - - col0 + + 20 AS col1 FROM tab2 AS cor0
----
2458
3412
3995

query I rowsort
SELECT - 54 * - col0 + + - 35 FROM tab2 AS cor0
----
2449
3421
4015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT - 6 * CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT - 6 * CAST ( NULL AS INTEGER ) + + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 17 FROM tab2
----
40
57
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT - col0 * - + CAST( + col2 AS SIGNED ) FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-9752
SELECT - col0 * - + CAST ( + col2 AS INTEGER ) FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - SUM( DISTINCT + col0 ) / + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT - SUM ( DISTINCT + col0 ) / + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - MIN( ALL col2 ) * - 15 FROM tab1 cor0
----
885

skipif mysql # not compatible
query I rowsort label-9754
SELECT - MIN ( ALL col2 ) * - 15 FROM tab1 cor0
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - - 10 + + COUNT( * ) + SUM( - - col0 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - - 10 + + COUNT ( * ) + SUM ( - - col0 ) FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT + ( 83 ) + COUNT( ALL 48 ) * + 83 FROM tab1
----
332

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT + ( 83 ) + COUNT ( ALL 48 ) * + 83 FROM tab1
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT COUNT( * ) + - 54 + 8 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-9757
SELECT COUNT ( * ) + - 54 + 8 FROM tab2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT - - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9758
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT 63 + + 47 FROM tab2 AS cor0
----
110
110
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT + col0 * 85 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT + col0 * 85 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL - - ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9761
SELECT ALL - - ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - ( - - 56 ), + col0 AS col2 FROM tab2 AS cor0
----
-56
46
-56
64
-56
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT 65, - SUM( + + 85 ) col0 FROM tab1
----
65
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9763
SELECT 65, - SUM ( + + 85 ) col0 FROM tab1
----
65
-255

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - SUM( ALL 80 ) AS col1 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-9765
SELECT - SUM ( ALL 80 ) AS col1 FROM tab0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT - SUM( col2 ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9766
SELECT - SUM ( col2 ) col1 FROM tab1
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * col2 < - 94
----

query II rowsort
SELECT DISTINCT 31 AS col0, + 70 * - col1 * col0 * 58 AS col2 FROM tab2 AS cor0
----
31
-20007680
31
-20401500
31
-9524760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT ALL - + CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - + CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9770
SELECT - - CAST( NULL AS SIGNED ) * - 63 + 61 FROM tab2 AS cor0 WHERE NOT NULL > + col1 * - + 66
----

skipif mysql # not compatible
query I rowsort label-9770
SELECT - - CAST ( NULL AS INTEGER ) * - 63 + 61 FROM tab2 AS cor0 WHERE NOT NULL > + col1 * - + 66
----

query I rowsort
SELECT DISTINCT + col2 * + col2 * - - col1 AS col0 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 BETWEEN col2 AND - col0 )
----

query II rowsort
SELECT ALL + col1, - 15 FROM tab1
----
14
-15
47
-15
5
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL - 3 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL - 94 + - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 70 * col0 col0 FROM tab0 AS cor0 WHERE NOT - 22 * - col0 = ( - 57 + col0 )
----
-49350
-60900
-672210

query II rowsort
SELECT + col0 AS col0, + col1 * - 48 AS col2 FROM tab2 AS cor0
----
46
-2448
64
-3696
75
-3216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col0 col2 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT DISTINCT MIN( + 20 ) col2 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9780
SELECT DISTINCT MIN ( + 20 ) col2 FROM tab1 AS cor0
----
20

query I rowsort
SELECT DISTINCT + ( - col0 ) * 59 + ( col1 ) + col0 AS col2 FROM tab0 cor0
----
-5025
-5625
-789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * - col1 + col2 - + col0 * col2 col2 FROM tab2
----
-3075
-5600
-6972

query III rowsort
SELECT * FROM tab2 WHERE ( - - col2 ) IN ( + col2, col1 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT ALL - 83 AS col1 FROM tab1 WHERE - col2 IN ( + + CAST( col2 AS SIGNED ), + ( + + 24 ) - + col0 * + 90, + - col2 )
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - 83 AS col1 FROM tab1 WHERE - col2 IN ( + + CAST ( col2 AS INTEGER ), + ( + + 24 ) - + col0 * + 90, + - col2 )
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT - MAX( ALL col2 ) * - - 44 FROM tab1
----
-4224

skipif mysql # not compatible
query I rowsort label-9785
SELECT - MAX ( ALL col2 ) * - - 44 FROM tab1
----
-4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT ALL + CAST( - - col2 AS SIGNED ) + - - col1 + + - col2 + - col0 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + CAST ( - - col2 AS INTEGER ) + - - col1 + + - col2 + - col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT DISTINCT - MAX( - col2 ) + + + MAX( - 23 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT - MAX ( - col2 ) + + + MAX ( - 23 ) FROM tab1 AS cor0
----
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col2 = NULL )
----

query I rowsort
SELECT 65 * + + 55 AS col2 FROM tab0
----
3575
3575
3575

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT COUNT( * ) - + ( COUNT( * ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT COUNT ( * ) - + ( COUNT ( * ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + + 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
56

query II rowsort
SELECT - - 68 AS col2, col1 AS col2 FROM tab1 AS cor0
----
68
14
68
47
68
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9793
SELECT ALL + SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT COUNT( * ) AS col2, 28 FROM tab1 AS cor0
----
3
28

skipif mysql # not compatible
query II rowsort label-9796
SELECT COUNT ( * ) AS col2, 28 FROM tab1 AS cor0
----
3
28

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 IN ( - col1 * - 71 + col0, ( + 54 ), - + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT 74 DIV 2 AS col1 FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-9798
SELECT 74 / 2 AS col1 FROM tab0 AS cor0
----
37
37
37

query II rowsort
SELECT ALL col2, col0 * + + 68 + + - col0 AS col1 FROM tab0
----
10
5829
47
1005
99
6499

query I rowsort
SELECT DISTINCT ( 61 ) FROM tab2
----
61

query I rowsort
SELECT ALL - 7 * + + 68 - - 88 * + col2 + - - col1 + - - 83 FROM tab0 AS cor0 WHERE ( NULL ) > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT + col0 + + col0 DIV - + 14 col2 FROM tab0 AS cor0
----
14
81
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9802
SELECT + col0 + + col0 / - + 14 col2 FROM tab0 AS cor0
----
14
81
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL SUM( - 0 ) - MAX( ALL - + col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL SUM ( - 0 ) - MAX ( ALL - + col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - col2 AND - 62
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9805
SELECT ALL 9 - + col2 DIV - CAST( - 23 AS SIGNED ) FROM tab0
----
5
7
9

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL 9 - + col2 / - CAST ( - 23 AS INTEGER ) FROM tab0
----
5
7
9

query I rowsort
SELECT ALL 57 + - 42 FROM tab0
----
15
15
15

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - 80 + + col0 + + col1 * col0 NOT BETWEEN NULL AND - col0 - + col0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT ALL col2 + + + CAST( NULL AS SIGNED ) * - ( + col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL col2 + + + CAST ( NULL AS INTEGER ) * - ( + col2 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9810
SELECT - SUM( - col2 ) AS col2, CAST( NULL AS DECIMAL ) + - - 49 FROM tab2 AS cor0
----
121
NULL

skipif mysql # not compatible
query II rowsort label-9810
SELECT - SUM ( - col2 ) AS col2, CAST ( NULL AS REAL ) + - - 49 FROM tab2 AS cor0
----
121
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT DISTINCT - + 8 DIV col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT - + 8 / col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + 22 + - 16
----

query I rowsort
SELECT + col2 * + - col0 AS col1 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 + + col0 >= - col2
----

query I rowsort
SELECT - col0 * col2 * + + col0 * 84 AS col2 FROM tab1
----
-20974464
-35807100
-47301072

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 * - + 14 + - col2 / - col0 * - + 42 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9819
SELECT DISTINCT col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9819
SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT + ( + ( + col0 ) ) * col1 AS col1 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, + col0 * col1 AS col1 FROM tab1
----
-51
714
-85
425
-91
4277

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT ALL CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 81 + - - col1 AS col0 FROM tab2
----
132
148
158

query I rowsort
SELECT DISTINCT - + col2 * col2 + + - col1 + - 17 + col1 * col1 FROM tab0 AS cor0
----
-9818
303
4254

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 < + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9827
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 - + + col1 * + - CAST( + - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9827
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 - + + col1 * + - CAST ( + - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT DISTINCT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9828
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - col1 - + 25 AS col2 FROM tab2
----
-102
-76
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 - + - col1 col1 FROM tab2
----
31
47
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 5 * - col0 + + col2 col2 FROM tab0 WHERE - ( 82 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT 90 + SUM( ALL - + 45 ) AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-9832
SELECT 90 + SUM ( ALL - + 45 ) AS col1 FROM tab2
----
-45

query I rowsort
SELECT DISTINCT AVG ( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE + 59 * col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL + - COUNT( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL + - COUNT ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + 33 * + COUNT( * ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 33 * + COUNT ( * ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL COUNT( * ) * MIN( DISTINCT - col1 ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL COUNT ( * ) * MIN ( DISTINCT - col1 ) FROM tab0
----
-243

query I rowsort
SELECT - - 47 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL ( + + 54 ) AS col1 FROM tab2
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 79 * 77 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 AS cor0 WHERE ( NOT ( NULL BETWEEN + ( + ( col0 ) ) + 67 AND - col2 ) )
----

query I rowsort
SELECT ALL 63 * 68 FROM tab1 cor0
----
4284
4284
4284

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT DISTINCT + col0 DIV col0 DIV - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT + col0 / col0 / - col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - 82, 7 * + + 73 AS col2 FROM tab1 AS cor0
----
-82
511

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col1 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9847
SELECT - + COUNT( DISTINCT - 43 ), CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col1 FROM tab1 cor0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9847
SELECT - + COUNT ( DISTINCT - 43 ), CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col1 FROM tab1 cor0
----
-1
NULL

query I rowsort
SELECT ALL col1 * - + 99 * - - 54 FROM tab2
----
-272646
-358182
-411642

query I rowsort
SELECT DISTINCT - col1 + + + col2 AS col0 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT ALL - 67 + - CAST( + - 6 AS SIGNED ) FROM tab1
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - 67 + - CAST ( + - 6 AS INTEGER ) FROM tab1
----
-61
-61
-61

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 NOT IN ( + 39 * + 23 - col1 + 31 * + + col0 + - col1, col1 + 95, col2 - col2, - ( col0 ) / + - col2 + - + col0 * ( + 91 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - 57 ) FROM tab0
----
-57

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 >= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL - 99 + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - 99 + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9856
SELECT 85 * - 53 AS col1, - COUNT( * ) + MIN( ALL - CAST( NULL AS SIGNED ) ) col2 FROM tab1, tab2 AS cor0
----
-4505
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9856
SELECT 85 * - 53 AS col1, - COUNT ( * ) + MIN ( ALL - CAST ( NULL AS INTEGER ) ) col2 FROM tab1, tab2 AS cor0
----
-4505
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT DISTINCT + SUM( col0 ) + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT + SUM ( col0 ) + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL - ( - MIN( - + 41 ) ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-41

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL - ( - MIN ( - + 41 ) ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-41

query I rowsort
SELECT - 98 * col0 * - 17 FROM tab2
----
106624
124950
76636

query I rowsort
SELECT 68 + + 70 * col1 * + - col0 FROM tab1
----
-29682
-299322
-49912

onlyif mysql # aggregate syntax: 
query II rowsort label-9861
SELECT ALL + - COUNT( * ) AS col1, 91 AS col0 FROM tab0 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-9861
SELECT ALL + - COUNT ( * ) AS col1, 91 AS col0 FROM tab0 AS cor0
----
-3
91

query I rowsort
SELECT col1 + + - 57 FROM tab2 AS cor0
----
-6
10
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col2, col1 AS col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL + 61 + ( COUNT( * ) ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + 61 + ( COUNT ( * ) ) FROM tab2
----
64

query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 90 FROM tab0 WHERE + + 99 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 44 + - col1 <= - - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + ( - col1 ) - - col0 - - col2 AS col0 FROM tab1
----
-281
-4118
-567

query I rowsort
SELECT DISTINCT + col0 * - col0 - - col1 + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-2070
-4032
-5550

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - 33
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL + CAST( NULL AS SIGNED ) * + 52 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + CAST ( NULL AS INTEGER ) * + 52 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 28 AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT + - MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT + - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - 61 * + col1 FROM tab2 cor0
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT 17 AS col2, - COUNT( * ) AS col0 FROM tab1
----
17
-3

skipif mysql # not compatible
query II rowsort label-9877
SELECT 17 AS col2, - COUNT ( * ) AS col0 FROM tab1
----
17
-3

query I rowsort
SELECT DISTINCT - 45 * 59 AS col2 FROM tab0
----
-2655

query I rowsort
SELECT + col2 * 30 AS col0 FROM tab0
----
1410
2970
300

query I rowsort
SELECT 19 + + 76 FROM tab1, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT 43 * MIN( ALL col0 ) FROM tab1
----
2193

skipif mysql # not compatible
query I rowsort label-9881
SELECT 43 * MIN ( ALL col0 ) FROM tab1
----
2193

query II rowsort
SELECT col0 * - col1 AS col1, 73 FROM tab1
----
-425
73
-4277
73
-714
73

query II rowsort
SELECT ALL col1, + col0 * + 41 AS col2 FROM tab1
----
14
2091
47
3731
5
3485

query I rowsort
SELECT ALL + + 73 AS col0 FROM tab0 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL - - MIN( 4 ) AS col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL - - MIN ( 4 ) AS col2 FROM tab2 AS cor0
----
4

query II rowsort
SELECT col2 + + + 55, - col0 * + - col1 AS col2 FROM tab1
----
114
425
123
4277
151
714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9887
SELECT 55 + COUNT( * ), - 13 * + - CAST( NULL AS DECIMAL ) / 46 * - 32 + + COUNT( * ) AS col2 FROM tab2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-9887
SELECT 55 + COUNT ( * ), - 13 * + - CAST ( NULL AS REAL ) / 46 * - 32 + + COUNT ( * ) AS col2 FROM tab2
----
58
NULL

query I rowsort
SELECT + col2 * + col1 * - col0 * + 46 * + 15 AS col2 FROM tab1
----
-17301750
-200676840
-47295360

query III rowsort
SELECT ALL * FROM tab0 WHERE - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT + + CAST( - ( col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9890
SELECT + + CAST ( - ( col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col0 * col0 * - col0 + - col1 - - col2 AS col2 FROM tab0 AS cor0
----
-3409
-658514
-912575

query I rowsort
SELECT col1 - + 86 AS col1 FROM tab1
----
-39
-72
-81

query I rowsort
SELECT - col0 + col2 + - col2 * + 92 AS col1 FROM tab0
----
-4292
-9106
-997

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9894
SELECT DISTINCT 50 / - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + col0, col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9894
SELECT DISTINCT 50 / - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + col0, col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT 34 + - col0 FROM tab1
----
-17
-51
-57

query I rowsort
SELECT + ( + - 10 ) + + - col2 + - + 49 - + 11 AS col0 FROM tab0
----
-117
-169
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT CAST( NULL AS SIGNED ) + + 27 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT CAST ( NULL AS INTEGER ) + + 27 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - 73 + - 91 - + COUNT( * ) * - 74 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-9898
SELECT - 73 + - 91 - + COUNT ( * ) * - 74 FROM tab0
----
58

query I rowsort
SELECT - + col0 FROM tab1 WHERE 29 * - col1 + + col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col0 * - col0 * + 7 * + 27 * ( - - col2 ) * - + col0 - - 45 * + 10 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT + CAST( NULL AS SIGNED ) + - 54 + - 48 * - 68 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT + CAST ( NULL AS INTEGER ) + - 54 + - 48 * - 68 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col2, 30 AS col1 FROM tab1
----
59
30
68
30
96
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL MAX( DISTINCT + 54 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL MAX ( DISTINCT + 54 ) FROM tab0
----
54

query I rowsort
SELECT DISTINCT 27 * - 71 FROM tab1
----
-1917

query I rowsort
SELECT + 6 * - ( + - col2 ) AS col0 FROM tab1
----
354
408
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, col2 + - + col2 + + - col0 col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query II rowsort
SELECT - - col0 AS col1, 85 * + 48 FROM tab2 cor0
----
46
4080
64
4080
75
4080

query I rowsort
SELECT 71 * - - col2 FROM tab1 AS cor0
----
4189
4828
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( + 97 ) ) col0 FROM tab1
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT col1 FROM tab2 WHERE NOT ( - col2 ) - + CAST( NULL AS SIGNED ) * + - col0 NOT BETWEEN - 6 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9910
SELECT col1 FROM tab2 WHERE NOT ( - col2 ) - + CAST ( NULL AS INTEGER ) * + - col0 NOT BETWEEN - 6 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT DISTINCT ( COUNT( * ) ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT - 95 * + col1 >= - col1
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 44 BETWEEN + col1 AND col1 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT - SUM( ALL + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
185

skipif mysql # not compatible
query I rowsort label-9914
SELECT - SUM ( ALL + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
185

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9916
SELECT ( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT DISTINCT - COUNT( * ) + - 11 AS col0 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT - COUNT ( * ) + - 11 AS col0 FROM tab0
----
-14

query I rowsort
SELECT + ( ( - + col2 ) ) + + col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL - col2 + 6 * - - col2 FROM tab2
----
115
200
290

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - 31 * + - COUNT( * ) + + + COUNT( * ) + - 73 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-9920
SELECT - 31 * + - COUNT ( * ) + + + COUNT ( * ) + - 73 FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 + - 84 col1 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE ( + 72 IS NOT NULL )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT - CAST( + + 39 AS SIGNED ) * - + ( + col1 ) + col0 FROM tab2 AS cor0
----
2035
2688
3067

skipif mysql # not compatible
query I rowsort label-9923
SELECT - CAST ( + + 39 AS INTEGER ) * - + ( + col1 ) + col0 FROM tab2 AS cor0
----
2035
2688
3067

query I rowsort
SELECT ALL - + col1 + + - col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT col2 + + col1 - col2 + - 99 FROM tab2
----
-22
-32
-48

query I rowsort
SELECT + 32 * 26 + + col2 AS col0 FROM tab2 AS cor0
----
855
872
890

query I rowsort
SELECT - ( col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT + 1 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT + 1 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col2 ) + - 34 FROM tab0 AS cor0
----
-24
13
65

query I rowsort
SELECT - col0 + + 29 * col1 AS col1 FROM tab1 AS cor0
----
1272
355
60

query I rowsort
SELECT DISTINCT col0 * - 23 AS col1 FROM tab0 AS cor0
----
-2001
-2231
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + 40, - col1, 4 )
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + 40, - col1, 4 )
----
0

query I rowsort
SELECT + 90 * + col1 AS col0 FROM tab0
----
1890
7290
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 / 94 + + 36 NOT IN ( - 90 - col2, col2 - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9935
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + ( - - 81 ) AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9935
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + ( - - 81 ) AND - - CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE + - 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT COUNT( * ) * - - ( - - 24 ) col2 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9937
SELECT DISTINCT COUNT ( * ) * - - ( - - 24 ) col2 FROM tab1
----
72

query I rowsort
SELECT + ( 81 ) AS col1 FROM tab2 AS cor0
----
81
81
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT 8 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9941
SELECT 8 / col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 77 + - col0 FROM tab2
----
13
2
31

onlyif mysql # DIV for integer division: 
query II rowsort label-9943
SELECT + col2, 76 DIV col2 AS col0 FROM tab2
----
23
3
40
1
58
1

skipif mysql # not compatible
query II rowsort label-9943
SELECT + col2, 76 / col2 AS col0 FROM tab2
----
23
3
40
1
58
1

query I rowsort
SELECT col2 * - - 85 FROM tab1
----
5015
5780
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT DISTINCT - + SUM( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT - + SUM ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 >= + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col0 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT ALL - ( col1 ) + - col2 * + 6 FROM tab0
----
-363
-595
-81

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - ( + - col1 ) AS col1, - col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT ALL CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col2 ) col0 FROM tab1
----
59
68
96

query I rowsort
SELECT - ( 65 ) AS col2 FROM tab2
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9955
SELECT - 83 * col0 + + CAST( + + col1 AS SIGNED ) + - CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9955
SELECT - 83 * col0 + + CAST ( + + col1 AS INTEGER ) + - CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT + ( 73 ) + + + col0 FROM tab2
----
119
137
148

query I rowsort
SELECT DISTINCT + 2 * - col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 22 * - col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT DISTINCT - col2 DIV - 23 AS col1 FROM tab0 cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT - col2 / - 23 AS col1 FROM tab0 cor0
----
0
2
4

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9962
SELECT + - COUNT( * ) * - - 35 + - - 12 + - - CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT + - COUNT ( * ) * - - 35 + - - 12 + - - CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT 47 + - + col0 * - col1 * - + col2 FROM tab2
----
-197073
-291403
-53911

query II rowsort
SELECT DISTINCT - - col2 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT DISTINCT + 7 - + + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT + 7 - + + COUNT ( * ) FROM tab0 AS cor0
----
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - + col0 ) + 90 * + col0 + + col2 / + 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + 36 ) * col0 AS col1 FROM tab2 AS cor0
----
-1656
-2304
-2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9969
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 91 * - 69 + + - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 91 * - 69 + + - col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 6 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT ALL ( col1 ) DIV - col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL ( col1 ) / - col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + - 79 * COUNT( * ) + SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9973
SELECT + - 79 * COUNT ( * ) + SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT - MAX( - 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT - MAX ( - 16 ) FROM tab2
----
16

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - - col0 + col2 + + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9976
SELECT + col0 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT + col0 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + + ( - + col2 ) FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT + col1 AS col2, 8 FROM tab2
----
51
8
67
8
77
8

onlyif mysql # DIV for integer division: 
query II rowsort label-9979
SELECT DISTINCT - col0, - 38 DIV 26 * - col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-9979
SELECT DISTINCT - col0, - 38 / 26 * - col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 AS col0, + col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query II rowsort
SELECT DISTINCT - col1 AS col0, 3 FROM tab1 WHERE col2 / col1 IS NOT NULL
----
-14
3
-47
3
-5
3

query II rowsort
SELECT 33 AS col1, + 31 FROM tab0 AS cor0 WHERE + 49 * + col2 * - - col2 * - 6 * - + col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 4 * + + col0
----

query I rowsort
SELECT - + col1 + col1 - + col1 * + + 45 FROM tab2 AS cor0
----
-2295
-3015
-3465

query I rowsort
SELECT + 78 + col2 - - 17 AS col0 FROM tab1 AS cor0
----
154
163
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT + CAST( col0 AS SIGNED ) + - 14 * - 5 AS col2 FROM tab2 cor0
----
116
134
145

skipif mysql # not compatible
query I rowsort label-9987
SELECT + CAST ( col0 AS INTEGER ) + - 14 * - 5 AS col2 FROM tab2 cor0
----
116
134
145

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT - COUNT( + 10 ) * - + MAX( + 93 ) AS col1 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - COUNT ( + 10 ) * - + MAX ( + 93 ) AS col1 FROM tab0 AS cor0
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col2 + - + col0 col2, + 76 * col1 + + 66 FROM tab2
----
1012
3942
2496
5918
4275
5158

query I rowsort
SELECT ALL ( 97 ) + + col1 FROM tab0
----
118
178
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT ( - + 99 ) * - COUNT( + ( - col2 ) ) + 21 AS col1 FROM tab0
----
318

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT ( - + 99 ) * - COUNT ( + ( - col2 ) ) + 21 AS col1 FROM tab0
----
318

query I rowsort
SELECT DISTINCT - col0 * col0 * col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + + COUNT( * ) * - - 37 AS col0 FROM tab0 cor0
----
111

skipif mysql # not compatible
query I rowsort label-9994
SELECT + + COUNT ( * ) * - - 37 AS col0 FROM tab0 cor0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT CAST( NULL AS SIGNED ) - - ( + + COUNT( col1 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( NULL AS INTEGER ) - - ( + + COUNT ( col1 ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 7 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * - 76 FROM tab2
----
-1748
-3040
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - ( + ( SUM( col0 ) ) ) + COUNT( * ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-9999
SELECT - ( + ( SUM ( col0 ) ) ) + COUNT ( * ) FROM tab2
----
-182

