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 III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NULL ) >= ( + - col0 ) )
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col1 + - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + ( - - col2 ) * - + col0 col1 FROM tab0 AS cor0
----
-720
-957
-9700

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col0 col0 FROM tab2 AS cor0 WHERE ( ( + col1 - - col0 <= NULL ) )
----

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-14
SELECT DISTINCT + CAST( + col1 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + CAST ( + col1 AS REAL ) FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT ALL - ( + + 77 ) AS col2 FROM tab1
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( 37 ) col1 FROM tab2
----
101
112
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT + 68 + + COUNT( * ) * + 60 AS col2, + 59 col1 FROM tab2
----
248
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-18
SELECT + 68 + + COUNT ( * ) * + 60 AS col2, + 59 col1 FROM tab2
----
248
59

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

query I rowsort
SELECT - col0 + col1 + + col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-21
SELECT DISTINCT - col0 AS col1, col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-21
SELECT DISTINCT - col0 AS col1, col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT - 34 + + + 69 FROM tab2
----
35
35
35

query I rowsort
SELECT col2 + + + col0 + + 80 FROM tab1
----
224
227
239

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-25
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, + 39 FROM tab1 WHERE NOT + 56 + col2 - + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-25
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, + 39 FROM tab1 WHERE NOT + 56 + col2 - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT COUNT( * ) + SUM( ALL - CAST( + + col1 AS SIGNED ) ) AS col0 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-26
SELECT COUNT ( * ) + SUM ( ALL - CAST ( + + col1 AS INTEGER ) ) AS col0 FROM tab1
----
-63

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

query I rowsort
SELECT ALL + + col2 + + col2 AS col0 FROM tab2 cor0
----
116
46
80

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

skipif mysql # not compatible
query III rowsort label-29
SELECT * FROM tab1 AS cor0 WHERE 70 BETWEEN + col2 + - col0 AND - + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE + ( - col1 ) - - col1 * 36 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + 21 AS col2 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL col2 * + col2 - + + 63 FROM tab1
----
3418
4561
9153

query I rowsort
SELECT - ( + - col0 ) * + - col2 - + + 22 FROM tab0
----
-727
-892
-9625

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT SUM( + + 69 ) col1 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-38
SELECT DISTINCT SUM ( + + 69 ) col1 FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT DISTINCT - MAX( ALL + 31 ) AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT - MAX ( ALL + 31 ) AS col2 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT ALL + col2 * 60 AS col0 FROM tab1
----
3540
4080
5760

query I rowsort
SELECT DISTINCT ( - ( - ( + col0 ) ) ) * col0 FROM tab0
----
225
7569
9409

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL 6 DIV + 28 * - col0 * + - 42 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL 6 / + 28 * - col0 * + - 42 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / col2 * col0 / - 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + - 59 * + - 26 AS col0 FROM tab0 cor0
----
-151866
-15340
-72098

query I rowsort
SELECT - + col1 * 87 FROM tab2 AS cor0
----
-4437
-5829
-6699

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

query I rowsort
SELECT ALL - 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

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

query I rowsort
SELECT ALL - 79 FROM tab1 WHERE NULL IS NULL
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 col2 FROM tab0
----
-11
-34
98

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

query I rowsort
SELECT ALL + - 83 + + + col2 FROM tab2 AS cor0
----
-25
-43
-60

query I rowsort
SELECT - + 52 FROM tab2 cor0
----
-52
-52
-52

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

query I rowsort
SELECT col1 + - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT ALL + - 4 + col1 FROM tab0 AS cor0
----
-3
17
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

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

query I rowsort
SELECT DISTINCT + + 58 + + 99 * - - col2 + + 58 * - col0 AS col2 FROM tab2 cor0
----
-333
1450
306

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT DISTINCT col0 DIV + 48 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT col0 / + 48 FROM tab1
----
1

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE + 10 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT 59 - - SUM( + col2 ) AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-64
SELECT 59 - - SUM ( + col2 ) AS col2 FROM tab1
----
282

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

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT - 11 * + SUM( col1 ) - + 31 FROM tab1
----
-757

skipif mysql # not compatible
query I rowsort label-66
SELECT - 11 * + SUM ( col1 ) - + 31 FROM tab1
----
-757

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT + COUNT( * ) + + - 86 AS col1 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT + COUNT ( * ) + + - 86 AS col1 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT ALL + col1 - - + col0 * - + col2 AS col1 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT + 69 * + 67 * 36 FROM tab2
----
166428
166428
166428

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

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

query I rowsort
SELECT ALL ( - 28 ) FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - - 11 * 11 * + col0 AS col2 FROM tab2 cor0
----
5566
7744
9075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-74
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-76
SELECT DISTINCT 72 - - 44 * col2 col1 FROM tab0 AS cor0 WHERE NOT CAST( - ( col0 ) AS DECIMAL ) + - - col2 - + col1 * + - CAST( NULL AS SIGNED ) / - col1 / - col1 >= ( + + col2 + - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-76
SELECT DISTINCT 72 - - 44 * col2 col1 FROM tab0 AS cor0 WHERE NOT CAST ( - ( col0 ) AS REAL ) + - - col2 - + col1 * + - CAST ( NULL AS INTEGER ) / - col1 / - col1 >= ( + + col2 + - col1 )
----

query I rowsort
SELECT - + 77 FROM tab2 cor0
----
-77
-77
-77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 57 + - - 78
----
0

skipif mysql # not compatible
query I rowsort label-80
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 57 + - - 78
----
0

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col2 - col2 + - 17
----

query II rowsort
SELECT 4, - col1 AS col0 FROM tab1 WHERE NOT + 21 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT IN ( + 63, + 91 / 4 + 85 - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-87
SELECT ALL COUNT( * ) * - COUNT( * ) * - MAX( ALL - col2 ) AS col0, - 76 FROM tab2
----
-207
-76

skipif mysql # not compatible
query II rowsort label-87
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - MAX ( ALL - col2 ) AS col0, - 76 FROM tab2
----
-207
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT DISTINCT - 48 * + MAX( ALL - col1 ) AS col1 FROM tab2
----
2448

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT - 48 * + MAX ( ALL - col1 ) AS col1 FROM tab2
----
2448

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

skipif mysql # not compatible
query I rowsort label-89
SELECT + MIN ( 78 ) AS col2 FROM tab0
----
78

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

query I rowsort
SELECT DISTINCT + - 15 * - 65 AS col1 FROM tab0 cor0
----
975

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 30 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT ALL + + 83 DIV - + col0 AS col2 FROM tab1 WHERE NOT - col0 - + col1 + - - 5 BETWEEN - col2 AND - + col1
----
0
0

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL + + 83 / - + col0 AS col2 FROM tab1 WHERE NOT - col0 - + col1 + - - 5 BETWEEN - col2 AND - + col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + SUM( ALL + 53 ) AS col2 FROM tab2 WHERE NOT ( NOT NULL IN ( ( + 48 ), - col0, - 49 - - - col0 - + + col2 * 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-94
SELECT + SUM ( ALL + 53 ) AS col2 FROM tab2 WHERE NOT ( NOT NULL IN ( ( + 48 ), - col0, - 49 - - - col0 - + + col2 * 13 ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-97
SELECT DISTINCT + - col1 DIV col1 * - col2 + + 48 * - 64 + + + col1, 76 AS col0 FROM tab0 AS cor0
----
-2944
76
-2972
76
-3041
76

skipif mysql # not compatible
query II rowsort label-97
SELECT DISTINCT + - col1 / col1 * - col2 + + 48 * - 64 + + + col1, 76 AS col0 FROM tab0 AS cor0
----
-2944
76
-2972
76
-3041
76

query I rowsort
SELECT DISTINCT - 48 + - col0 AS col2 FROM tab2 AS cor0
----
-112
-123
-94

query I rowsort
SELECT col2 + - col0 * col1 * col1 FROM tab2 AS cor0
----
-119623
-336617
-379416

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT DISTINCT 41 DIV col2 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT 41 / col2 FROM tab0
----
0
4

query III rowsort
SELECT ALL * FROM tab0 WHERE - 80 / col0 BETWEEN ( col1 / - 17 * + 77 + - col2 + - col2 ) AND col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL - SUM( DISTINCT - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL - SUM ( DISTINCT - col1 ) FROM tab1
----
66

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

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

skipif mysql # not compatible
query I rowsort label-104
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 4 - + + 8 + COUNT ( * ) FROM tab2
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-107
SELECT + CAST( NULL AS SIGNED ) * + + AVG ( DISTINCT 4 ) + - SUM( ALL + col1 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT + CAST ( NULL AS INTEGER ) * + + AVG ( DISTINCT 4 ) + - SUM ( ALL + col1 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 + 7 AS col0 FROM tab2
----
53
71
82

query II rowsort
SELECT - 84 AS col1, + col2 FROM tab2
----
-84
23
-84
40
-84
58

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

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

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab0 WHERE NULL IS NULL
----
-56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 89 - 62 < - 15
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = col2 * - - col1 + + col1 OR - col1 / + 38 IS NULL
----

query II rowsort
SELECT ALL ( + col2 ), - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT ALL - CAST( NULL AS SIGNED ) * AVG ( - - 86 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - CAST ( NULL AS INTEGER ) * AVG ( - - 86 ) FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT + 3 * - 69 FROM tab1 AS cor0
----
-207
-207
-207

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

query I rowsort
SELECT + col2 * col1 * + - col2 FROM tab0
----
-178929
-2100
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 * + 44 col1 FROM tab1
----
3828
3828
3828

query II rowsort
SELECT DISTINCT + col2, + 6 + + + col2 + + col1 FROM tab0
----
10
37
47
134
99
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT DISTINCT + MAX( + - 73 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT + MAX ( + - 73 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL 46 + - 17 FROM tab2 AS cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 col0, 85 + - col1 * col0 FROM tab0 AS cor0
----
46
-1130
46
-12
46
-1742

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

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

query II rowsort
SELECT col1 AS col2, 24 * - + col0 FROM tab2 AS cor0
----
51
-1104
67
-1800
77
-1536

query I rowsort
SELECT ALL - 92 + 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

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

query I rowsort
SELECT ALL + col0 + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT MIN( - col2 ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-134
SELECT DISTINCT MIN ( - col2 ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
174

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT ALL + 46 + + - col0 DIV - - col2 AS col1 FROM tab0 AS cor0
----
38
46
46

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + 46 + + - col0 / - - col2 AS col1 FROM tab0 AS cor0
----
38
46
46

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

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

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

skipif mysql # not compatible
query I rowsort label-139
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 <= NULL
----
0

query I rowsort
SELECT ALL + 98 * 28 - + 75 FROM tab1
----
2669
2669
2669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-141
SELECT DISTINCT - COUNT( * ) DIV + - CAST( AVG ( + col1 ) AS SIGNED ) * - 93 + - MIN( - col1 ) AS col1 FROM tab1
----
47

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

query I rowsort
SELECT ALL + 54 - + col1 - + 71 FROM tab0
----
-18
-38
-98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT ALL + ( + ( + COUNT( * ) ) ) - - - 78 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL + ( + ( + COUNT ( * ) ) ) - - - 78 FROM tab1
----
-75

query I rowsort
SELECT DISTINCT 51 + col1 FROM tab0
----
132
52
72

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT col1 + - col2 DIV col1 * + col1 AS col2 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-147
SELECT col1 + - col2 / col1 * + col1 AS col2 FROM tab0 AS cor0
----
-98
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT COUNT( ALL - 91 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-148
SELECT COUNT ( ALL - 91 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

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

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

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

query I rowsort
SELECT + + 56 * + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
2833
3694
4272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT ALL + - COUNT( * ) * COUNT( DISTINCT + col0 ) * - CAST( + 64 AS SIGNED ) + + + 31 FROM tab1 AS cor0
----
607

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + - COUNT ( * ) * COUNT ( DISTINCT + col0 ) * - CAST ( + 64 AS INTEGER ) + + + 31 FROM tab1 AS cor0
----
607

query II rowsort
SELECT DISTINCT - 69 AS col0, - col0 AS col1 FROM tab0 AS cor0
----
-69
-15
-69
-87
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL + MIN( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL + MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + + 96 AS col1 FROM tab2 cor0
----
96
96
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT DISTINCT ( - 79 ) * - MAX( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7663

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT ( - 79 ) * - MAX ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7663

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-159
SELECT CAST( col2 AS SIGNED ) DIV + col2 + - col0 col2 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-159
SELECT CAST ( col2 AS INTEGER ) / + col2 + - col0 col2 FROM tab2
----
-45
-63
-74

query I rowsort
SELECT col0 * + col2 + + col0 AS col1 FROM tab2
----
1104
2624
4425

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

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT 65 DIV + - 60 + + 15 * - + col0 FROM tab2
----
-1126
-691
-961

skipif mysql # not compatible
query I rowsort label-162
SELECT 65 / + - 60 + + 15 * - + col0 FROM tab2
----
-1126
-691
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT - 15 * - MIN( ALL col1 ) AS col2 FROM tab2 WHERE - 61 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT - 15 * - MIN ( ALL col1 ) AS col2 FROM tab2 WHERE - 61 < NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT - CAST( - - 57 AS SIGNED ) AS col2 FROM tab0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-166
SELECT - CAST ( - - 57 AS INTEGER ) AS col2 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT - 17 FROM tab0 AS cor0 WHERE ( NULL ) <> + col2 * - ( - col1 ) + - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT DISTINCT 54 + + - CAST( NULL AS SIGNED ) - - + col1 + - 72 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT 54 + + - CAST ( NULL AS INTEGER ) - - + col1 + - 72 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT ALL - col2 + - col0 + - col0 * - - col0, col0 AS col0 FROM tab1 AS cor0
----
-2748
51
-7369
85
-8440
91

query II rowsort
SELECT DISTINCT - + ( - - col0 ) - + col0, - col0 AS col1 FROM tab2 AS cor0
----
-128
-64
-150
-75
-92
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col2 + col2 col1 FROM tab2 AS cor0
----
1081
2600
4408

query II rowsort
SELECT DISTINCT 29 - + col0 AS col1, - 50 AS col0 FROM tab2
----
-17
-50
-35
-50
-46
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-175
SELECT ALL col1 - + col2 DIV CAST( - - 48 AS SIGNED ) * + col2 FROM tab1
----
-178
-21
-54

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL col1 - + col2 / CAST ( - - 48 AS INTEGER ) * + col2 FROM tab1
----
-178
-21
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT DISTINCT COUNT( * ) - - 97 AS col2 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT COUNT ( * ) - - 97 AS col2 FROM tab1
----
100

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT 25 IS NULL
----
10
47
99

query I rowsort
SELECT col0 * - + 13 FROM tab0
----
-1131
-1261
-195

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT ALL + + MAX( ALL col1 ) DIV - 96 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + + MAX ( ALL col1 ) / - 96 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-184
SELECT ALL - + col2 DIV + col2 + 33, col2 AS col1 FROM tab1 AS cor0
----
32
59
32
68
32
96

skipif mysql # not compatible
query II rowsort label-184
SELECT ALL - + col2 / + col2 + 33, col2 AS col1 FROM tab1 AS cor0
----
32
59
32
68
32
96

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT 88 col1, MAX( DISTINCT 27 ) FROM tab0 AS cor0
----
88
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-185
SELECT 88 col1, MAX ( DISTINCT 27 ) FROM tab0 AS cor0
----
88
27

query I rowsort
SELECT ALL - - 82 + - - 62 AS col2 FROM tab0 AS cor0
----
144
144
144

query II rowsort
SELECT 96 AS col1, + 92 + - col0 AS col2 FROM tab1 AS cor0
----
96
1
96
41
96
7

query I rowsort
SELECT + col1 * + 38 * - - col0 FROM tab2 AS cor0
----
187264
190950
89148

query I rowsort
SELECT DISTINCT + + ( + ( + - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

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

query I rowsort
SELECT + col0 * - 76 FROM tab0
----
-1140
-6612
-7372

query I rowsort
SELECT - col2 + ( + 92 ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-193
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col0 * + CAST( NULL AS SIGNED ) * + + col1 - - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-193
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col0 * + CAST ( NULL AS INTEGER ) * + + col1 - - col0 ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-194
SELECT CAST ( - 76 AS INTEGER ) AS col0 FROM tab2
----
-76
-76
-76

query II rowsort
SELECT col2, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT DISTINCT + - 75 + - SUM( ALL - 21 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + - 75 + - SUM ( ALL - 21 ) FROM tab0 AS cor0
----
-12

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

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

query I rowsort
SELECT + 21 + + col1 + + 65 * 54 + - col2 * + 13 AS col1 FROM tab1 cor0 WHERE ( - ( - ( - col2 ) ) ) / + 55 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT 67 DIV - col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-200
SELECT 67 / - col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT - 46 * col2 AS col0 FROM tab0 AS cor0
----
-2162
-4554
-460

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

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

query II rowsort
SELECT col0 * + + col2 AS col0, + 26 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
4896
26
5015
26
6188
26

query I rowsort
SELECT DISTINCT - 21 * col1 FROM tab0 AS cor0
----
-1701
-21
-441

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT ALL + + 90 * + 45 AS col1 FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
4050
4050
4050

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL + + 90 * + 45 AS col1 FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
4050
4050
4050

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 66 * - col1 >= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT DISTINCT 33 DIV - 48 - - ( + 32 ) * + col0 + - col2 * 32 FROM tab0
----
-1024
-64
2464

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT 33 / - 48 - - ( + 32 ) * + col0 + - col2 * 32 FROM tab0
----
-1024
-64
2464

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

query I rowsort
SELECT DISTINCT 12 * 72 AS col1 FROM tab0
----
864

onlyif mysql # DIV for integer division: 
query II rowsort label-212
SELECT ALL 30 DIV - col1 * - - col0, + col2 * - col0 AS col1 FROM tab2
----
0
-1058
0
-2560
0
-4350

skipif mysql # not compatible
query II rowsort label-212
SELECT ALL 30 / - col1 * - - col0, + col2 * - col0 AS col1 FROM tab2
----
0
-1058
0
-2560
0
-4350

query I rowsort
SELECT DISTINCT + 83 * ( col2 ) * 16 AS col2 FROM tab0
----
131472
13280
62416

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-214
SELECT - CAST( NULL AS SIGNED ) * + 34 * - col0 col0, - col2 AS col2 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-214
SELECT - CAST ( NULL AS INTEGER ) * + 34 * - col0 col0, - col2 AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-217
SELECT DISTINCT col2 DIV + 26 + col1 AS col1, + col2 FROM tab2 AS cor0
----
51
23
69
58
78
40

skipif mysql # not compatible
query II rowsort label-217
SELECT DISTINCT col2 / + 26 + col1 AS col1, + col2 FROM tab2 AS cor0
----
51
23
69
58
78
40

query I rowsort
SELECT DISTINCT - 49 * + 12 FROM tab1
----
-588

query I rowsort
SELECT + ( + 16 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-221
SELECT DISTINCT - 17 DIV + + COUNT( * ) col1 FROM tab1 cor0
----
-5

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

query I rowsort
SELECT ALL + ( - + col2 ) + - 76 FROM tab2 AS cor0
----
-116
-134
-99

query I rowsort
SELECT DISTINCT - + ( + 0 ) * - 52 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 98 + - col0 + + 93 AS col0 FROM tab2 AS cor0
----
116
127
145

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 77 + - + 65 * - col2 * col2 / - 38 <= - - col2 - - 55
----

query I rowsort
SELECT - - col0 * - - col0 + - col1 AS col2 FROM tab2 AS cor0
----
2065
4019
5558

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

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT COUNT ( * ) / + MAX ( DISTINCT - col0 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + + col1 col1 FROM tab0
----
-1
19
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT 63 + + MAX( DISTINCT - col0 ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-230
SELECT 63 + + MAX ( DISTINCT - col0 ) AS col0 FROM tab2
----
17

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 27 * + + col1 + col2 col1 FROM tab1
----
11534
115547
19374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 + - + col1 col2 FROM tab1
----
1
34
43

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

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

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT + COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) * 37 / + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT 70 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL + 54 - - col1 AS col1 FROM tab1
----
101
59
68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT DISTINCT + SUM( - 29 ) + COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT + SUM ( - 29 ) + COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL - - 9 AS col0 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT 40 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
40
-3

skipif mysql # not compatible
query II rowsort label-244
SELECT 40 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
40
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT - MAX( DISTINCT + - 84 ) col1, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-246
SELECT - MAX ( DISTINCT + - 84 ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col0
----
NULL
0

query I rowsort
SELECT ALL 88 AS col0 FROM tab2
----
88
88
88

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - 2 * + 55 AS col1 FROM tab1 WHERE NULL IS NULL
----
-110
-110
-110

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT 5 BETWEEN + col0 AND + - col1
----
51
85
91

query II rowsort
SELECT ALL col0 * + col2, + col0 AS col2 FROM tab0
----
705
15
870
87
9603
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT DISTINCT + col1 * + CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT + col1 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
1173
3080
3886

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) * - 63 FROM tab1 AS cor0 WHERE NOT - 80 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - ( - 24 ) + + col2 / + + 48 - - col1 + ( - - col2 ) IS NOT NULL
----

query I rowsort
SELECT 11 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT ALL col1 DIV - 6 AS col2 FROM tab2 AS cor0
----
-11
-12
-8

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL col1 / - 6 AS col2 FROM tab2 AS cor0
----
-11
-12
-8

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT - MAX( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-262
SELECT - MAX ( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 46 + + col1 AS col1 FROM tab0 cor0
----
127
47
67

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

query I rowsort
SELECT DISTINCT 99 + + col0 FROM tab2 AS cor0
----
145
163
174

query I rowsort
SELECT DISTINCT + - col2 * 42 + + - col2 + + + 45 FROM tab1 AS cor0
----
-2492
-2879
-4083

query I rowsort
SELECT ALL 13 * + + 3 FROM tab0
----
39
39
39

query I rowsort
SELECT ALL + 16 + - 1 * - 44 FROM tab0
----
60
60
60

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

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

query I rowsort
SELECT col0 * + 54 * col2 AS col0 FROM tab1
----
264384
270810
334152

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

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

query I rowsort
SELECT ALL - ( ( + + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col2 ) + col0 col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT + MAX( DISTINCT + - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) = ( - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT + MAX ( DISTINCT + - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) = ( - + col0 )
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, col2 * 19 col0 FROM tab0 AS cor0
----
-1
1881
-21
190
-81
893

query II rowsort
SELECT ALL + 60, - col2 AS col2 FROM tab0 AS cor0
----
60
-10
60
-47
60
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( 90 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <= - col0 * 32 + 99 - + - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT MAX( DISTINCT - 48 ) * - - COUNT( * ) + COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
-423

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT MAX ( DISTINCT - 48 ) * - - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
-423

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT + SUM( ALL 1 ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-282
SELECT + SUM ( ALL 1 ), COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT - COUNT( * ) * MIN( + + col1 ) + + 97 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-283
SELECT - COUNT ( * ) * MIN ( + + col1 ) + + 97 FROM tab2 AS cor0
----
-56

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

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + + col1 * - 55, col2, - - 62 )
----

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

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

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

query II rowsort
SELECT ALL ( - col2 ) * + col2 AS col0, col2 AS col2 FROM tab2
----
-1600
40
-3364
58
-529
23

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 43 IS NULL
----

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

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

query I rowsort
SELECT ALL col2 * - - col2 + col2 - - 25 AS col0 FROM tab1 AS cor0
----
3565
4717
9337

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

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

query I rowsort
SELECT ALL - + col1 * + ( - 39 ) + col0 AS col2 FROM tab0 cor0
----
136
3174
906

query I rowsort
SELECT ALL + + col0 * + ( col0 ) FROM tab2 AS cor0
----
2116
4096
5625

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

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

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

query I rowsort
SELECT - 23 + 48 AS col1 FROM tab0
----
25
25
25

query I rowsort
SELECT col0 + 56 AS col2 FROM tab1
----
107
141
147

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT 63 + - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-299
SELECT 63 + - COUNT ( * ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT ( - COUNT( * ) ) * COUNT( * ) * - MIN( - col2 ) AS col1 FROM tab1
----
-864

skipif mysql # not compatible
query I rowsort label-300
SELECT ( - COUNT ( * ) ) * COUNT ( * ) * - MIN ( - col2 ) AS col1 FROM tab1
----
-864

query I rowsort
SELECT ALL ( 63 ) FROM tab1
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-302
SELECT DISTINCT CAST( + 83 AS SIGNED ) + - 74, + col1 AS col1 FROM tab0 AS cor0
----
9
1
9
21
9
81

skipif mysql # not compatible
query II rowsort label-302
SELECT DISTINCT CAST ( + 83 AS INTEGER ) + - 74, + col1 AS col1 FROM tab0 AS cor0
----
9
1
9
21
9
81

query I rowsort
SELECT - col2 + - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 26 + col0 FROM tab1 AS cor0
----
25
59
65

query I rowsort
SELECT 1 - 57 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT 90 - + 39 FROM tab0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 80 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
80

query II rowsort
SELECT DISTINCT - ( + col0 ) * - col0 - + - col1 AS col0, col1 FROM tab0 cor0
----
306
81
7590
21
9410
1

query II rowsort
SELECT ALL ( + - col1 ), 8 AS col1 FROM tab0 AS cor0 WHERE NOT 40 * + + 36 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-312
SELECT - 27 DIV - COUNT( DISTINCT col2 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-312
SELECT - 27 / - COUNT ( DISTINCT col2 ) AS col2 FROM tab1
----
9

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

query I rowsort
SELECT DISTINCT - ( + - ( + - 23 ) ) + - col2 FROM tab2 WHERE NOT - col2 <= col2
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - 59 <= + 9
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL - 86 * - COUNT( * ) + MAX( + - col1 ) AS col2 FROM tab1 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL - 86 * - COUNT ( * ) + MAX ( + - col1 ) AS col2 FROM tab1 AS cor0
----
253

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

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT ALL + col2 DIV + 31 + - 31 FROM tab1 AS cor0
----
-28
-29
-30

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + col2 / + 31 + - 31 FROM tab1 AS cor0
----
-28
-29
-30

query I rowsort
SELECT - - 89 AS col0 FROM tab2 AS cor0
----
89
89
89

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

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

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

query I rowsort
SELECT DISTINCT 55 + - col2 + col2 * - + 71 + + col0 + col0 AS col2 FROM tab1 AS cor0
----
-4023
-4659
-6755

query I rowsort
SELECT ALL + ( col2 ) + - 12 * + - 66 FROM tab2 AS cor0
----
815
832
850

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 32 * col2 * + 68 FROM tab2
----
126208
50048
87040

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

query I rowsort
SELECT ALL + 56 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL + 22 + + - SUM( ALL + col2 ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + 22 + + - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-99

query I rowsort
SELECT col0 * - col0 + - col1 * - + col1 AS col0 FROM tab2 AS cor0
----
-1136
1833
485

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

query II rowsort
SELECT DISTINCT col2 - + + col2, - col2 AS col1 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

query I rowsort
SELECT ALL + ( col2 ) * - col1 + + col0 AS col0 FROM tab2 cor0
----
-1127
-3016
-3811

query III rowsort
SELECT * FROM tab0 WHERE NOT 26 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT MAX( - - 8 ) - + MAX( + 89 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-81

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT MAX ( - - 8 ) - + MAX ( + 89 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-81

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

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab0
----
-27

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-341
SELECT DISTINCT - - MIN( + col2 ) DIV + 4 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT - - MIN ( + col2 ) / + 4 FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL + col2 * col1 AS col1 FROM tab1 cor0 WHERE NOT ( ( ( - 5 ) IS NULL ) )
----
1344
295
3196

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

query II rowsort
SELECT ALL - col2 AS col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT ALL - - COUNT( * ) AS col1, + 68 + + - ( - 7 ) AS col2 FROM tab0 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - - COUNT ( * ) AS col1, + 68 + + - ( - 7 ) AS col2 FROM tab0 AS cor0
----
3
75

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

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

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

query II rowsort
SELECT col2 * - 45, col2 FROM tab0
----
-2115
47
-4455
99
-450
10

query I rowsort
SELECT ALL - - 84 + + 27 FROM tab0 AS cor0
----
111
111
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + + col1 col2 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT DISTINCT 83 + + col2 FROM tab1 AS cor0
----
142
151
179

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + 41
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT DISTINCT SUM( DISTINCT - col1 ) + + - 41 * + - 28 FROM tab2
----
953

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT SUM ( DISTINCT - col1 ) + + - 41 * + - 28 FROM tab2
----
953

query I rowsort
SELECT + 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0 WHERE col1 / - col2 * 73 * - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col1 + - + 89 FROM tab0 AS cor0
----
-68
-8
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + 17 col1 FROM tab2 AS cor0
----
34
50
60

query I rowsort
SELECT ALL - col2 * - col0 + + col1 FROM tab2 AS cor0
----
1109
2637
4417

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( DISTINCT - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( DISTINCT - col1 ) FROM tab1
----
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT ALL + col1 DIV + col0 - - + col0 DIV - col1 - - col2 FROM tab2
----
24
41
57

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + col1 / + col0 - - + col0 / - col1 - - col2 FROM tab2
----
24
41
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * + - col0 col2, - 84 * col0 FROM tab0
----
-225
-1260
-7569
-7308
-9409
-8148

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

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

query II rowsort
SELECT + - col1, ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-1
99
-21
10
-81
47

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

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

query II rowsort
SELECT - col1, 19 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 19 FROM tab0 cor0
----
-19

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

skipif mysql # not compatible
query III rowsort label-372
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + - 53 - - - 43 * col0 * - - CAST ( NULL AS INTEGER ) <> ( + col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-374
SELECT ALL - col1 * - col1 + + col1 + - - 38 * + 50 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - col1 * - col1 + + col1 + - - 38 * + 50 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT MIN( + 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-376
SELECT MIN ( + 56 ) FROM tab2
----
56

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

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

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

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
1
21
81

query I rowsort
SELECT DISTINCT 21 * + 81 FROM tab2
----
1701

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT DISTINCT col2 DIV 58 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT col2 / 58 AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-382
SELECT * FROM tab2 WHERE NOT ( NULL IN ( + CAST( - 89 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-382
SELECT * FROM tab2 WHERE NOT ( NULL IN ( + CAST ( - 89 AS INTEGER ) ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL + col1 * - CAST( + + col1 AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
-119646
-336675
-379456

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL + col1 * - CAST ( + + col1 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
-119646
-336675
-379456

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-385
SELECT * FROM tab2 AS cor0 WHERE + 10 IN ( - col0, - 65 * + ( + CAST( + 89 AS SIGNED ) ) + col1, - 67 )
----

skipif mysql # not compatible
query III rowsort label-385
SELECT * FROM tab2 AS cor0 WHERE + 10 IN ( - col0, - 65 * + ( + CAST ( + 89 AS INTEGER ) ) + col1, - 67 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT 57 + col0 * - col1 * ( - 55 ) FROM tab2 cor0
----
129087
271097
276432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-389
SELECT ALL ( CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab0
----
3

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

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

query I rowsort
SELECT - col2 FROM tab2 WHERE 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT COUNT( * ) * - 22 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT COUNT ( * ) * - 22 FROM tab0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 16 col1 FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT 98 * + 91 FROM tab1
----
8918
8918
8918

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL - MIN( - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - MIN ( - col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT ALL + 52 * col1 AS col0 FROM tab1
----
2444
260
728

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT - 83 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT col1 DIV + 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-401
SELECT col1 / + 98 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - 34 FROM tab2
----
12
30
41

query I rowsort
SELECT ALL col1 * col0 - + 61 AS col0 FROM tab1
----
364
4216
653

query I rowsort
SELECT DISTINCT - 2 * 85 - col1 * + 7 FROM tab2
----
-527
-639
-709

query I rowsort
SELECT DISTINCT col0 * - 93 + col2 AS col0 FROM tab1
----
-4647
-7846
-8395

query III rowsort
SELECT * FROM tab0 WHERE - ( + 46 ) BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - ( col0 ) * col0 + col0 * - 28 AS col1 FROM tab2
----
-3404
-5888
-7725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-409
SELECT ALL * FROM tab2 WHERE col1 / + col1 - - CAST( - 12 AS SIGNED ) <= 72 * 64 + 80 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-409
SELECT ALL * FROM tab2 WHERE col1 / + col1 - - CAST ( - 12 AS INTEGER ) <= 72 * 64 + 80 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 7 + col2 * + 83 FROM tab2
----
1916
3327
4821

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * + col1 + 59 / ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + ( COUNT( DISTINCT + 82 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-412
SELECT + ( COUNT ( DISTINCT + 82 ) ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-413
SELECT - 26 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-413
SELECT - 26 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT + col2 DIV + 41 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-414
SELECT + col2 / + 41 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT - ( 85 ) * col0 NOT BETWEEN col1 * + col0 AND - 84
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( + 79 + col1 ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL 12 * col1 FROM tab0 AS cor0
----
12
252
972

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

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - COUNT( * ) * COUNT( * ) col2 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-420
SELECT - COUNT ( * ) * COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-421
SELECT ALL + ( COUNT ( ALL - 53 ) ) col0 FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT - - COUNT( ALL + col2 ) + + 38 AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - - COUNT ( ALL + col2 ) + + 38 AS col2 FROM tab0 AS cor0
----
41

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 50 + + col1 FROM tab2 cor0
----
1
17
27

query I rowsort
SELECT DISTINCT 7 * - 68 FROM tab1 AS cor0
----
-476

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

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

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

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
-9

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

query I rowsort
SELECT ALL col0 * - 49 * + col0 FROM tab0
----
-11025
-370881
-461041

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 9 + - col1 * 3 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT DISTINCT col2 DIV - 62 + ( + col0 - 54 ) FROM tab1
----
-4
31
36

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT col2 / - 62 + ( + col0 - 54 ) FROM tab1
----
-4
31
36

query I rowsort
SELECT col0 + 2 * col1 FROM tab0
----
129
177
99

query I rowsort
SELECT 24 * + 36 + col1 AS col2 FROM tab0
----
865
885
945

query I rowsort
SELECT 21 * + 54 * 33 + 84 FROM tab0
----
37506
37506
37506

query I rowsort
SELECT ALL + col1 * - col2 + - col2 AS col1 FROM tab0
----
-198
-220
-3854

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT ALL + 99 + + + col2 DIV 36 FROM tab2 AS cor0
----
100
100
99

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL + 99 + + + col2 / 36 FROM tab2 AS cor0
----
100
100
99

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

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

query I rowsort
SELECT ALL - 90 + + col0 + 16 * + col1 FROM tab0 AS cor0
----
1221
23
333

query I rowsort
SELECT ALL - col0 + + - col0 + - 4 AS col2 FROM tab0 cor0
----
-178
-198
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL - 96 + COUNT( * ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - 96 + COUNT ( * ) FROM tab2 AS cor0
----
-93

query III rowsort
SELECT * FROM tab2 WHERE ( + + col2 ) <= NULL
----

query I rowsort
SELECT 91 - + + 72 FROM tab1
----
19
19
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL - + COUNT( ALL + 2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - + COUNT ( ALL + 2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT DISTINCT SUM( ALL - - col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT SUM ( ALL - - col0 ) AS col1 FROM tab2
----
185

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 - col0 - 18 ) NOT IN ( - col1 + - 85 )
----

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

query I rowsort
SELECT DISTINCT - col0 + - + col1 + - - col2 FROM tab0 AS cor0
----
-49
-98
1

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

query I rowsort
SELECT ALL col2 + col0 + + 93 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
116
133
151

query I rowsort
SELECT ALL + - 62 - col2 + 31 FROM tab0 cor0
----
-130
-41
-78

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

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

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

skipif mysql # not compatible
query I rowsort label-461
SELECT + MAX ( + + 95 ) FROM tab2 AS cor0
----
95

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-463
SELECT col2 AS col1, - col0 / - col2 + CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-463
SELECT col2 AS col1, - col0 / - col2 + CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT + COUNT( * ) * - 27 * - 12 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
969

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + COUNT ( * ) * - 27 * - 12 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
969

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-467
SELECT DISTINCT + 17 + CAST( - + col0 AS SIGNED ) + + col1 FROM tab0
----
-49
-79
83

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT + 17 + CAST ( - + col0 AS INTEGER ) + + col1 FROM tab0
----
-49
-79
83

query III rowsort
SELECT * FROM tab1 WHERE NOT - 45 * + col1 IS NOT NULL
----

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

query I rowsort
SELECT 67 * 54 * - col0 * - col0 FROM tab2
----
14819328
20351250
7655688

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-473
SELECT + 11 * + CAST( - 97 AS SIGNED ) FROM tab0 AS cor0
----
-1067
-1067
-1067

skipif mysql # not compatible
query I rowsort label-473
SELECT + 11 * + CAST ( - 97 AS INTEGER ) FROM tab0 AS cor0
----
-1067
-1067
-1067

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-474
SELECT DISTINCT + - COUNT( DISTINCT - CAST( - col1 AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT + - COUNT ( DISTINCT - CAST ( - col1 AS REAL ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-475
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT - col0 * + ( - 70 ) IN ( + 81 * 97 )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT - col0 * + ( - 70 ) IN ( + 81 * 97 )
----
-51
-67
-77

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + 32 * - 80 AND - - col1 OR ( NULL ) NOT BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN - - col2 AND ( - - 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + 46 FROM tab2 AS cor0
----
-12
23
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col1 col0 FROM tab2 AS cor0
----
-13
-5
8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT COUNT( * ) * + 46 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * ( - col1 ) * + col0 + + col1 * + col2 ) > ( + col2 - - CAST( + col2 - col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-483
SELECT COUNT ( * ) * + 46 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * ( - col1 ) * + col0 + + col1 * + col2 ) > ( + col2 - - CAST ( + col2 - col0 AS INTEGER ) )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT DISTINCT SUM( DISTINCT - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT SUM ( DISTINCT - + col0 ) FROM tab1
----
-227

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab0, tab0 AS cor0
----
38

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 52 )
----

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

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL <> 39
----

query I rowsort
SELECT - col0 + - + 87 * - 27 * col2 AS col1 FROM tab2 AS cor0
----
136167
53981
93896

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

query I rowsort
SELECT - + 33 * - col1 + - col0 FROM tab2 AS cor0
----
1637
2136
2477

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

onlyif mysql # DIV for integer division: 
query I rowsort label-494
SELECT - col2 * col1 DIV - 88 AS col2 FROM tab1
----
15
3
36

skipif mysql # not compatible
query I rowsort label-494
SELECT - col2 * col1 / - 88 AS col2 FROM tab1
----
15
3
36

query I rowsort
SELECT ALL - 76 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + 90 NOT IN ( + col1 + + + 82 + 38 * + + ( col2 ) * - col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 * + + col2 col2, ( - 75 ) col1 FROM tab2 AS cor0
----
-1600
-75
-3364
-75
-529
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT - 57 - + + MIN( - + 0 ), ( - COUNT( ALL - 72 ) ) AS col0 FROM tab0 AS cor0
----
-57
-3

skipif mysql # not compatible
query II rowsort label-498
SELECT - 57 - + + MIN ( - + 0 ), ( - COUNT ( ALL - 72 ) ) AS col0 FROM tab0 AS cor0
----
-57
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL <= ( + col0 * + + 81 ) )
----

query I rowsort
SELECT DISTINCT + + 19 AS col0 FROM tab2 AS cor0 WHERE NOT - 93 <= col2
----

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

query II rowsort
SELECT DISTINCT 80 AS col1, + 35 AS col2 FROM tab0
----
80
35

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

query I rowsort
SELECT ALL 84 / 59 AS col2 FROM tab2 WHERE ( + col0 ) = ( 38 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 9 col0 FROM tab1
----
126
423
45

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN 81 + - col0 AND ( - ( - col1 ) )
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * + 64 col0 FROM tab1
----
12544
141376
1600

onlyif mysql # aggregate syntax: 
query II rowsort label-508
SELECT ALL 93 AS col1, 56 + COUNT( * ) FROM tab1
----
93
59

skipif mysql # not compatible
query II rowsort label-508
SELECT ALL 93 AS col1, 56 + COUNT ( * ) FROM tab1
----
93
59

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT - COUNT( * ) AS col2, - MIN( + + ( - col1 ) ) + + + 41 FROM tab0 AS cor0
----
-3
122

skipif mysql # not compatible
query II rowsort label-510
SELECT - COUNT ( * ) AS col2, - MIN ( + + ( - col1 ) ) + + + 41 FROM tab0 AS cor0
----
-3
122

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

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT DISTINCT + + 38 DIV + col2 + - - col2 * + 42 FROM tab1 AS cor0
----
2478
2856
4032

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + + 38 / + col2 + - - col2 * + 42 FROM tab1 AS cor0
----
2478
2856
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL + MIN( - - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + MIN ( - - col0 ) FROM tab0 AS cor0
----
15

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-515
SELECT - CAST( col0 AS DECIMAL ) col0 FROM tab2 WHERE NOT - col1 + col2 * + ( + + 85 ) NOT BETWEEN + - 43 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-515
SELECT - CAST ( col0 AS REAL ) col0 FROM tab2 WHERE NOT - col1 + col2 * + ( + + 85 ) NOT BETWEEN + - 43 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 * 21 col2 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-517
SELECT + col0 * + 22 - + - CAST( + 52 AS SIGNED ) * - + col1 AS col1 FROM tab2 AS cor0
----
-1640
-1834
-2596

skipif mysql # not compatible
query I rowsort label-517
SELECT + col0 * + 22 - + - CAST ( + 52 AS INTEGER ) * - + col1 AS col1 FROM tab2 AS cor0
----
-1640
-1834
-2596

query I rowsort
SELECT ALL - 14 + - 37 FROM tab0 AS cor0
----
-51
-51
-51

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

query I rowsort
SELECT DISTINCT - + col1 + - 73 FROM tab0 AS cor0
----
-154
-74
-94

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

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

query I rowsort
SELECT DISTINCT - 6 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - - 78 * - - col1 * 85 * - col0 + - - 70 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 29 col0 FROM tab1
----
-114
-120
-80

query II rowsort
SELECT ALL col0, - col1 AS col2 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-526
SELECT + 57 + SUM( + col0 ) DIV + COUNT( * ) AS col0 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-526
SELECT + 57 + SUM ( + col0 ) / + COUNT ( * ) AS col0 FROM tab1
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT + col1 DIV 46 * - col0 + + - col1 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-527
SELECT + col1 / 46 * - col0 + + - col1 FROM tab2
----
-141
-142
-97

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

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

query I rowsort
SELECT - col0 + - + 75 * + 4 AS col2 FROM tab2 WHERE NULL <> + + 33
----

query I rowsort
SELECT DISTINCT - - col2 / - col1 / col2 * - col0 * - 6 + + + col2 + ( col0 ) AS col0 FROM tab0 WHERE NOT - - 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 10 * - + 46 FROM tab2 AS cor0
----
21160
29440
34500

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT ALL CAST( NULL AS SIGNED ) * + 81 / - col2 - + col2 * + 20 * col1 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL CAST ( NULL AS INTEGER ) * + 81 / - col2 - + col2 * + 20 * col1 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 42 * - 20 + - col2 FROM tab2
----
-863
-880
-898

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

skipif mysql # not compatible
query I rowsort label-535
SELECT + COUNT ( * ) FROM tab2 WHERE NULL > - - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT - CAST( 66 AS SIGNED ) + - + COUNT( * ) * - 87 AS col2 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-536
SELECT - CAST ( 66 AS INTEGER ) + - + COUNT ( * ) * - 87 AS col2 FROM tab1 AS cor0
----
195

query I rowsort
SELECT ALL 43 * + - col0 AS col2 FROM tab2 AS cor0
----
-1978
-2752
-3225

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

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

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

skipif mysql # not compatible
query I rowsort label-539
SELECT - CAST ( - ( + AVG ( - col2 ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-541
SELECT + 26 DIV - - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT col1 DIV + - 8 col0 FROM tab2 cor0
----
-6
-8
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-542
SELECT col1 / + - 8 col0 FROM tab2 cor0
----
-6
-8
-9

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

skipif mysql # not compatible
query II rowsort label-543
SELECT ALL COUNT ( * ), + MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
3
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-545
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 AS col1, 82 FROM tab0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-545
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 AS col1, 82 FROM tab0
----
NULL
82

onlyif mysql # DIV for integer division: 
query II rowsort label-546
SELECT DISTINCT + 34 DIV col0 * col0 AS col1, - col2 + - + col0 AS col0 FROM tab2
----
0
-104
0
-133
0
-69

skipif mysql # not compatible
query II rowsort label-546
SELECT DISTINCT + 34 / col0 * col0 AS col1, - col2 + - + col0 AS col0 FROM tab2
----
0
-104
0
-133
0
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL - COUNT( * ) * + 74 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL - COUNT ( * ) * + 74 FROM tab0
----
-222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT DISTINCT - MIN( + CAST( - col0 AS SIGNED ) ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT - MIN ( + CAST ( - col0 AS INTEGER ) ) FROM tab2 cor0
----
75

query I rowsort
SELECT col0 * + 40 FROM tab1
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT DISTINCT COUNT( * ) * - 84 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT COUNT ( * ) * - 84 FROM tab1
----
-252

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + 13 / col0
----

query I rowsort
SELECT ALL + - col1 + - 33 * col1 + + col0 FROM tab1 AS cor0
----
-1507
-425
-85

query I rowsort
SELECT - 65 AS col1 FROM tab2 AS cor0 WHERE + 34 IS NOT NULL
----
-65
-65
-65

query I rowsort
SELECT + + 49 AS col0 FROM tab1 cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT + COUNT( - + 82 ) * 30 AS col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-555
SELECT + COUNT ( - + 82 ) * 30 AS col2 FROM tab2 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-556
SELECT ALL - CAST( + 7 AS SIGNED ) + + + 87 AS col0, col2 AS col1 FROM tab0 AS cor0
----
80
10
80
47
80
99

skipif mysql # not compatible
query II rowsort label-556
SELECT ALL - CAST ( + 7 AS INTEGER ) + + + 87 AS col0, col2 AS col1 FROM tab0 AS cor0
----
80
10
80
47
80
99

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

skipif mysql # not compatible
query I rowsort label-557
SELECT + MAX ( + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - col2 * 61 + + ( col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-2801
-6135
-676

query I rowsort
SELECT DISTINCT - col2 * + col0 + - + 67 AS col1 FROM tab2 AS cor0
----
-1125
-2627
-4417

query I rowsort
SELECT + 66 FROM tab2 AS cor0 WHERE + 16 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + 75 IN ( 61 )
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-562
SELECT + col2 AS col2 FROM tab1 WHERE - - CAST( NULL AS DECIMAL ) * - - 99 + - - 11 < NULL
----

skipif mysql # not compatible
query I rowsort label-562
SELECT + col2 AS col2 FROM tab1 WHERE - - CAST ( NULL AS REAL ) * - - 99 + - - 11 < NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-566
SELECT DISTINCT 7 * - 36 col1, - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-252
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-566
SELECT DISTINCT 7 * - 36 col1, - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-252
3

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL - COUNT( * ) * - 43 col0 FROM tab2
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-567
SELECT ALL - COUNT ( * ) * - 43 col0 FROM tab2
----
129

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

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

query I rowsort
SELECT ALL col0 * + 54 + + 50 AS col0 FROM tab0
----
4748
5288
860

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

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

query I rowsort
SELECT col1 * col2 + - + ( - col1 ) + - col0 + 65 AS col1 FROM tab0 AS cor0
----
209
3938
68

query II rowsort
SELECT ALL col2 + + - col2 AS col1, + 11 FROM tab1 cor0
----
0
11
0
11
0
11

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

query III rowsort
SELECT ALL 66 * col1 - col1 AS col1, col0 * - 96 + col0 AS col2, col1 + - col2 AS col2 FROM tab2
----
9 values hashing to 8269f8c580a46052ba73834c87ded237

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT COUNT( * ) * + + 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-575
SELECT COUNT ( * ) * + + 85 FROM tab0
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-576
SELECT ALL col1 DIV - - 75 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL col1 / - - 75 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + - ( col2 ) * + - 97 FROM tab2 cor0
----
2231
3880
5626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT DISTINCT - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 6 * - col0 FROM tab2
----
-276
-384
-450

query I rowsort
SELECT ALL - 73 * + - col1 FROM tab2
----
3723
4891
5621

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + - col1 * + col0 + col2, - col0 / - 29, + 64 * - 54 * - ( + 81 ) * col2 )
----

query II rowsort
SELECT col1 AS col1, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-583
SELECT ALL + SUM ( DISTINCT - + col1 ) col0 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 62 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE NOT - col1 + + - 87 > NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 90 * - - 11 FROM tab0 AS cor0
----
-990

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

onlyif mysql # DIV for integer division: 
query II rowsort label-589
SELECT ALL 60 DIV 28, col2 FROM tab0
----
2
10
2
47
2
99

skipif mysql # not compatible
query II rowsort label-589
SELECT ALL 60 / 28, col2 FROM tab0
----
2
10
2
47
2
99

query I rowsort
SELECT col2 * + 1 * - + col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + - 51 FROM tab1 cor0 WHERE - col1 IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT - 88 + - MIN( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-595
SELECT - 88 + - MIN ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-596
SELECT DISTINCT - ( - 81 ) + - - CAST( + - 10 AS SIGNED ) + 30 AS col0 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT - ( - 81 ) + - - CAST ( + - 10 AS INTEGER ) + 30 AS col0 FROM tab1 AS cor0
----
101

query I rowsort
SELECT - col0 + + 13 AS col0 FROM tab0 cor0
----
-2
-74
-84

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-600
SELECT ALL - CAST( NULL AS DECIMAL ) + + - ( + col0 ) AS col0, CAST( + col2 AS SIGNED ) FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-600
SELECT ALL - CAST ( NULL AS REAL ) + + - ( + col0 ) AS col0, CAST ( + col2 AS INTEGER ) FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT DISTINCT - col2 AS col1, ( + col1 ) AS col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT - col0 * + col1 * + col2 - + col0 FROM tab1
----
-25160
-290927
-68595

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT col0 DIV - + 90 * - col0 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-603
SELECT col0 / - + 90 * - col0 * + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT DISTINCT MAX( DISTINCT + 3 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT MAX ( DISTINCT + 3 ) FROM tab2
----
3

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 60 IS NULL
----

query II rowsort
SELECT 32 AS col2, 8 AS col0 FROM tab0 cor0
----
32
8
32
8
32
8

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT MAX( - + 58 ) AS col1 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-610
SELECT MAX ( - + 58 ) AS col1 FROM tab0
----
-58

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col1 FROM tab2 AS cor0
----
-2
-2
-2

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-615
SELECT + CAST ( + 3 AS INTEGER ) col2 FROM tab2 cor0
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-616
SELECT DISTINCT + 45 * CAST( - + ( + COUNT( * ) ) AS SIGNED ) * - 30 AS col2 FROM tab2
----
4050

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + 45 * CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) * - 30 AS col2 FROM tab2
----
4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-617
SELECT DISTINCT 67 * - + col0 FROM tab1 WHERE NOT 87 - CAST( 14 AS SIGNED ) IS NULL
----
-3417
-5695
-6097

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT 67 * - + col0 FROM tab1 WHERE NOT 87 - CAST ( 14 AS INTEGER ) IS NULL
----
-3417
-5695
-6097

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

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT - MIN( - 59 ) AS col1 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-619
SELECT - MIN ( - 59 ) AS col1 FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL + + col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT ALL - 83 DIV col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL - 83 / col2 FROM tab0 AS cor0
----
-1
-8
0

query I rowsort
SELECT - + col0 * 65 FROM tab2 cor0
----
-2990
-4160
-4875

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 64 * - 22 + COUNT( * ) FROM tab2 AS cor0
----
-1405

skipif mysql # not compatible
query I rowsort label-624
SELECT 64 * - 22 + COUNT ( * ) FROM tab2 AS cor0
----
-1405

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
44

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

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT DISTINCT - + COUNT( * ) + + MIN( ALL + 1 ) FROM tab0 WHERE NOT + col1 IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT - + COUNT ( * ) + + MIN ( ALL + 1 ) FROM tab0 WHERE NOT + col1 IS NULL
----
-2

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-630
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, ( - 46 ) FROM tab1 AS cor0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-630
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, ( - 46 ) FROM tab1 AS cor0
----
NULL
-46

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

query II rowsort
SELECT + col1 AS col1, 13 FROM tab0 AS cor0
----
1
13
21
13
81
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT + SUM( ALL col0 ) DIV COUNT( * ) col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-633
SELECT + SUM ( ALL col0 ) / COUNT ( * ) col1 FROM tab0 AS cor0
----
66

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-637
SELECT ALL CAST( 64 AS SIGNED ) - MIN( + - col1 ) AS col2 FROM tab0
----
145

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL CAST ( 64 AS INTEGER ) - MIN ( + - col1 ) AS col2 FROM tab0
----
145

query I rowsort
SELECT + col2 * - col1 FROM tab0 WHERE + col2 - 32 * + + col2 + + 78 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT MIN( - + col2 ) + - COUNT( * ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-640
SELECT MIN ( - + col2 ) + - COUNT ( * ) FROM tab2
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78 + 99 + + 94 - + 43 + 96 * - - col0 - - - col0, - col2 col0 FROM tab1 AS cor0
----
4917
-96
8147
-59
8717
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT - + 42 - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-51

skipif mysql # not compatible
query I rowsort label-642
SELECT - + 42 - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-51

query II rowsort
SELECT DISTINCT + 60, col0 AS col1 FROM tab0
----
60
15
60
87
60
97

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + col0 + - 56 IS NULL
----
-10
-47
-99

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

query II rowsort
SELECT 63, col2 AS col0 FROM tab0 AS cor0
----
63
10
63
47
63
99

query II rowsort
SELECT - col1, 66 AS col0 FROM tab2 AS cor0
----
-51
66
-67
66
-77
66

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

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

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

query I rowsort
SELECT ALL + 45 * - col1 * + col0 + - col0 * + col2 + + 50 AS col0 FROM tab0 AS cor0
----
-13918
-55330
-83035

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT 72 * + COUNT( * ) AS col1 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-652
SELECT 72 * + COUNT ( * ) AS col1 FROM tab1
----
216

query I rowsort
SELECT - col1 * + 29 + - 19 AS col1 FROM tab0
----
-2368
-48
-628

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-654
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) col1 FROM tab1
----
51
85
91

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

skipif mysql # not compatible
query I rowsort label-655
SELECT 88 + - - COUNT ( * ) FROM tab0
----
91

query I rowsort
SELECT - col0 + - ( - 10 ) FROM tab1
----
-41
-75
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-657
SELECT 90 DIV 80 + - + 94 AS col0 FROM tab2
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-657
SELECT 90 / 80 + - + 94 AS col0 FROM tab2
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 97 col2, - col1 - + + 28 AS col1 FROM tab1 AS cor0 WHERE - 75 NOT IN ( + + 79 )
----
-97
-33
-97
-42
-97
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 55 + + col2
----

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

query I rowsort
SELECT ALL + 41 + - 19 AS col2 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT + 40 + 90 * ( + col2 ) FROM tab1 AS cor0
----
5350
6160
8680

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT ( - 84 ) - - MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT ( - 84 ) - - MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-26

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

query I rowsort
SELECT ALL 92 + - + col2 AS col2 FROM tab2
----
34
52
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ( COUNT( * ) ) * + SUM( + col0 ) AS col1 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-667
SELECT ( COUNT ( * ) ) * + SUM ( + col0 ) AS col1 FROM tab1
----
681

query I rowsort
SELECT DISTINCT + 95 * - col1 AS col2 FROM tab2
----
-4845
-6365
-7315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-669
SELECT ALL - CAST( + + 49 AS SIGNED ) * - - col2 FROM tab1
----
-2891
-3332
-4704

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - CAST ( + + 49 AS INTEGER ) * - - col2 FROM tab1
----
-2891
-3332
-4704

query I rowsort
SELECT DISTINCT col1 * ( 64 ) FROM tab2
----
3264
4288
4928

query I rowsort
SELECT - col2 + - col1 FROM tab0 WHERE NOT NULL >= 34
----

query I rowsort
SELECT ALL col1 + - col0 * + - col1 AS col1 FROM tab1 WHERE NOT - col0 * + col2 + + 16 IS NULL
----
430
4324
728

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

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL COUNT ( * ) AS col1, + 15 FROM tab1 AS cor0
----
3
15

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 26 FROM tab0 cor0
----
-26

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-681
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 37 + CAST( + 71 AS SIGNED ), - col1, + - col1 / + - col2 )
----

skipif mysql # not compatible
query III rowsort label-681
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 37 + CAST ( + 71 AS INTEGER ), - col1, + - col1 / + - col2 )
----

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

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

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

query I rowsort
SELECT col1 * + 18 FROM tab1
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT COUNT( * ) * - 68 * - + 51 FROM tab0
----
10404

skipif mysql # not compatible
query I rowsort label-685
SELECT COUNT ( * ) * - 68 * - + 51 FROM tab0
----
10404

query III rowsort
SELECT * FROM tab2 WHERE - - col0 / + col1 * col1 + + - col0 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 31 * 74 + - col2 * - col1 AS col1, col1 AS col0 FROM tab2
----
3467
51
5374
77
6180
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-688
SELECT SUM( ALL 92 ) / + 2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 32 / + col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT SUM ( ALL 92 ) / + 2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 32 / + col1 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + MIN( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query III rowsort label-690
SELECT col0 * - 22 + - - col0 + 35 AS col2, + 47 DIV + + col0, col1 FROM tab1 AS cor0
----
9 values hashing to a067e20533bb6b037fd0f472aaed2fbd

skipif mysql # not compatible
query III rowsort label-690
SELECT col0 * - 22 + - - col0 + 35 AS col2, + 47 / + + col0, col1 FROM tab1 AS cor0
----
9 values hashing to a067e20533bb6b037fd0f472aaed2fbd

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-691
SELECT col2 col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-691
SELECT col2 col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - + col0 + - ( col2 ) FROM tab0 AS cor0
----
-196
-62
-97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL + COUNT( * ) + + + 15 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + COUNT ( * ) + + + 15 FROM tab0 AS cor0
----
18

query II rowsort
SELECT + 51 * - col2 AS col2, col2 AS col0 FROM tab1 AS cor0
----
-3009
59
-3468
68
-4896
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-698
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + + + MIN( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + + + MIN ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL - 64 + - + COUNT( * ) + - 59 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - 64 + - + COUNT ( * ) + - 59 FROM tab1 AS cor0
----
-126

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

query I rowsort
SELECT ALL + col2 + + - 22 * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-215523
-2190
-48551

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col0 FROM tab1
----
-2601
-7225
-8281

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

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

query I rowsort
SELECT ALL + 8 * 52 AS col0 FROM tab0
----
416
416
416

query I rowsort
SELECT DISTINCT + col0 * - 33 + col1 FROM tab1 AS cor0
----
-1669
-2800
-2956

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - COUNT( * ) * + ( - 3 ) * - - 74 AS col1 FROM tab1 AS cor0
----
666

skipif mysql # not compatible
query I rowsort label-706
SELECT - COUNT ( * ) * + ( - 3 ) * - - 74 AS col1 FROM tab1 AS cor0
----
666

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

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

query II rowsort
SELECT col0 AS col2, - col1 * - col2 + col2 FROM tab0
----
15
3854
87
220
97
198

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

query I rowsort
SELECT ALL 42 + - + col1 * - 41 AS col2 FROM tab2 AS cor0
----
2133
2789
3199

query II rowsort
SELECT ALL - col0 AS col2, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT + SUM( - - col0 ) + - + 78 + 2 * - + 31 AS col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT + SUM ( - - col0 ) + - + 78 + 2 * - + 31 AS col0 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL + 9 * + 14 * - col2 * - + col1 - + col2 + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
169138
37047
402513

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 18 < col1
----
91
47
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 29 < NULL
----

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

query I rowsort
SELECT DISTINCT - + col1 * - + 38 FROM tab1 AS cor0
----
1786
190
532

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT DISTINCT + MIN( 90 ) AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT + MIN ( 90 ) AS col0 FROM tab1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT - col2 DIV col1 + + - 21 + - col0 + - - ( - col2 ) FROM tab0
----
-118
-316
-83

skipif mysql # not compatible
query I rowsort label-721
SELECT - col2 / col1 + + - 21 + - col0 + - - ( - col2 ) FROM tab0
----
-118
-316
-83

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-723
SELECT + 60 + + 4 col0, col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
64
NULL
64
NULL
64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-723
SELECT + 60 + + 4 col0, col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
64
NULL
64
NULL
64
NULL

query I rowsort
SELECT 56 FROM tab0 WHERE + - col1 * - - col1 IS NOT NULL
----
56
56
56

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

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

skipif mysql # not compatible
query I rowsort label-726
SELECT MAX ( col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-727
SELECT + col1 + - col1 + - 35 AS col1, 69 * + col2 AS col0 FROM tab2 cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-727
SELECT + col1 + - col1 + - 35 AS col1, 69 * + col2 AS col0 FROM tab2 cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-728
SELECT DISTINCT - + col0 + - CAST( - 2 AS SIGNED ), 54 - - - 35 AS col0 FROM tab2 AS cor0
----
-44
19
-62
19
-73
19

skipif mysql # not compatible
query II rowsort label-728
SELECT DISTINCT - + col0 + - CAST ( - 2 AS INTEGER ), 54 - - - 35 AS col0 FROM tab2 AS cor0
----
-44
19
-62
19
-73
19

query I rowsort
SELECT DISTINCT 74 + + - ( + col0 ) + + 15 AS col0 FROM tab2 cor0
----
14
25
43

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

query I rowsort
SELECT ALL + col2 + + col1 * col2 - - col0 FROM tab1 AS cor0
----
1491
3355
439

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL 13 + + COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL 13 + + COUNT ( * ) FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT + + COUNT( * ) * - 97 AS col2 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT + + COUNT ( * ) * - 97 AS col2 FROM tab2 AS cor0
----
-291

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-737
SELECT DISTINCT - col1 col1, 40 * CAST( NULL AS SIGNED ) col0 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-737
SELECT DISTINCT - col1 col1, 40 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT + col2 DIV ( + - 1 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-740
SELECT + col2 / ( + - 1 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 63 * - col0 FROM tab2
----
-2898
-4032
-4725

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

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT MIN( + 10 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-743
SELECT MIN ( + 10 ) FROM tab2
----
10

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

query I rowsort
SELECT ALL + 35 AS col0 FROM tab1
----
35
35
35

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 83 * + col1 AS col2 FROM tab0 cor0
----
-1743
-6723
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-750
SELECT - - 93 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-750
SELECT - - 93 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

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

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

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

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

query I rowsort
SELECT ALL ( + + col2 ) AS col2 FROM tab2
----
23
40
58

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

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

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

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

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

query I rowsort
SELECT ALL - 38 + col0 * + 32 FROM tab0 AS cor0
----
2746
3066
442

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT DISTINCT - col2 * 79 DIV - col2 + - col1 FROM tab1 AS cor0
----
32
65
74

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT - col2 * 79 / - col2 + - col1 FROM tab1 AS cor0
----
32
65
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL - MAX( - 1 ) + COUNT( * ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - MAX ( - 1 ) + COUNT ( * ) AS col1 FROM tab0
----
4

query I rowsort
SELECT - col1 * + 74 FROM tab1
----
-1036
-3478
-370

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

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

query I rowsort
SELECT ALL - col2 * - 99 * + col0 FROM tab1
----
484704
496485
612612

query I rowsort
SELECT DISTINCT - col1 + - 97 FROM tab0
----
-118
-178
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT + CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) + + + 50 FROM tab0 AS cor0
----
-31
29
49

skipif mysql # not compatible
query I rowsort label-765
SELECT + CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) + + + 50 FROM tab0 AS cor0
----
-31
29
49

query I rowsort
SELECT + col1 * col1 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
2647
4605
6009

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-768
SELECT - + MIN( + col0 ) + - 5 DIV + + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-768
SELECT - + MIN ( + col0 ) + - 5 / + + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL + 70 + - COUNT( * ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + 70 + - COUNT ( * ) FROM tab2 AS cor0
----
67

query I rowsort
SELECT DISTINCT ( + 0 ) - + - 63 + ( - 1 ) FROM tab1 AS cor0
----
62

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

query I rowsort
SELECT + + 22 + col2 FROM tab2 WHERE + 60 IS NOT NULL
----
45
62
80

query I rowsort
SELECT ALL - col2 * + + col2 - col0 FROM tab1
----
-3566
-4715
-9267

query I rowsort
SELECT ALL 75 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - col1 * + + 61 + col2 + + 38 FROM tab1 AS cor0
----
-208
-2761
-720

query II rowsort
SELECT + + 79 * - col0 AS col1, ( - - col0 ) * - col2 + col2 * 88 AS col0 FROM tab1 AS cor0
----
-4029
3552
-6715
177
-7189
-204

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

query II rowsort
SELECT ( 27 ) AS col0, + col2 + - - col2 * - col2 FROM tab2 cor0
----
27
-1560
27
-3306
27
-506

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

query I rowsort
SELECT DISTINCT ( + + 25 ) FROM tab0 AS cor0
----
25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-782
SELECT - col0 * - + col1 * + col1 FROM tab1 AS cor0 WHERE NOT 96 + + 74 / + 5 NOT BETWEEN + - col0 + CAST( NULL AS SIGNED ) * 59 AND - col1
----

skipif mysql # not compatible
query I rowsort label-782
SELECT - col0 * - + col1 * + col1 FROM tab1 AS cor0 WHERE NOT 96 + + 74 / + 5 NOT BETWEEN + - col0 + CAST ( NULL AS INTEGER ) * 59 AND - col1
----

query I rowsort
SELECT ALL + 25 AS col1 FROM tab2 cor0
----
25
25
25

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

query I rowsort
SELECT DISTINCT col2 * col0 * + + 24 FROM tab2
----
104400
25392
61440

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

onlyif mysql # DIV for integer division: 
query II rowsort label-787
SELECT DISTINCT 74 AS col0, - 32 DIV + 58 + - + ( + + col1 ) AS col0 FROM tab1
----
74
-14
74
-47
74
-5

skipif mysql # not compatible
query II rowsort label-787
SELECT DISTINCT 74 AS col0, - 32 / + 58 + - + ( + + col1 ) AS col0 FROM tab1
----
74
-14
74
-47
74
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + SUM( ALL + col1 ) col2 FROM tab0
----
103

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + ( + 81 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-792
SELECT CAST( + ( COUNT( * ) ) AS SIGNED ) DIV SUM( 37 ) FROM tab1 WHERE NOT 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-792
SELECT CAST ( + ( COUNT ( * ) ) AS INTEGER ) / SUM ( 37 ) FROM tab1 WHERE NOT 37 IS NULL
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 26 - + + 63 * - - 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-795
SELECT DISTINCT - - CAST( 56 AS SIGNED ) AS col2, COUNT( ALL - - 57 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
56
9

skipif mysql # not compatible
query II rowsort label-795
SELECT DISTINCT - - CAST ( 56 AS INTEGER ) AS col2, COUNT ( ALL - - 57 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
56
9

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-797
SELECT + + col0 + 21 * 90 DIV - ( + col0 ) AS col0, - 56 FROM tab1 cor0
----
14
-56
63
-56
71
-56

skipif mysql # not compatible
query II rowsort label-797
SELECT + + col0 + 21 * 90 / - ( + col0 ) AS col0, - 56 FROM tab1 cor0
----
14
-56
63
-56
71
-56

query II rowsort
SELECT + col1 + col2 * - 37 * - col0, + 77 * 98 + + col2 - col0 * + 86 * + col2 AS col1 FROM tab2 cor0
----
161017
-366496
39197
-83419
94797
-212574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 71 + - col0 col0 FROM tab0 AS cor0
----
-16
-26
56

query I rowsort
SELECT ALL col2 * + 79 * col0 * - 61 - 36 + + col1 FROM tab2 cor0
----
-12336599
-20962619
-5098487

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT DISTINCT + COUNT( * ) * 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT + COUNT ( * ) * 93 FROM tab0
----
279

query II rowsort
SELECT col0 * - + col2 * 92 + - col0 * - + 6 AS col0, - 76 FROM tab1
----
-450126
-76
-460870
-76
-568750
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-803
SELECT DISTINCT + 28 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-803
SELECT DISTINCT + 28 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
28
NULL

query I rowsort
SELECT col0 * - 89 AS col0 FROM tab2
----
-4094
-5696
-6675

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

query I rowsort
SELECT + 86 - + + col0 AS col0 FROM tab2 AS cor0
----
11
22
40

query I rowsort
SELECT ALL col0 - 78 + col1 * col0 + - + ( + 11 ) FROM tab0 cor0
----
105
1141
1825

query I rowsort
SELECT - 95 - + col1 FROM tab0 AS cor0
----
-116
-176
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT ALL - col2 DIV - 41 + col2 AS col0 FROM tab2
----
23
40
59

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL - col2 / - 41 + col2 AS col0 FROM tab2
----
23
40
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - 66 * + - col0 IS NOT NULL
----

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

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

query II rowsort
SELECT ALL - col2 AS col2, 36 FROM tab1 cor0
----
-59
36
-68
36
-96
36

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT ALL + MIN( col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL + MIN ( col0 ) FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab0 AS cor0
----
-14

query II rowsort
SELECT ALL + 49 AS col0, col2 AS col2 FROM tab0 AS cor0
----
49
10
49
47
49
99

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

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

query II rowsort
SELECT - - col0, col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT ( COUNT( ALL col1 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT ( COUNT ( ALL col1 ) ) AS col1 FROM tab1 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT + - MIN( + 66 ) * + - 39 FROM tab2 AS cor0
----
2574

skipif mysql # not compatible
query I rowsort label-822
SELECT + - MIN ( + 66 ) * + - 39 FROM tab2 AS cor0
----
2574

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - col0 * - col1 * - - 21 + + - col0 IS NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE NOT - col1 >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT DISTINCT + col0 DIV + ( col2 ) FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT + col0 / + ( col2 ) FROM tab2
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-828
SELECT * FROM tab2 AS cor0 WHERE 9 * CAST( NULL AS SIGNED ) / - col0 + - 86 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-828
SELECT * FROM tab2 AS cor0 WHERE 9 * CAST ( NULL AS INTEGER ) / - col0 + - 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-829
SELECT DISTINCT + 61 * + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 7 AND + + col1 * ( - CAST( NULL AS SIGNED ) ) + + col2
----

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT + 61 * + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 7 AND + + col1 * ( - CAST ( NULL AS INTEGER ) ) + + col2
----

query I rowsort
SELECT + col0 * col0 + + col0 + 55 FROM tab2 AS cor0
----
2217
4215
5755

query II rowsort
SELECT 66 * + + 53 * + - 25, col2 FROM tab0
----
-87450
10
-87450
47
-87450
99

query I rowsort
SELECT DISTINCT - ( - 20 ) AS col2 FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT COUNT( - col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT COUNT ( - col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 AS cor0 WHERE NULL <> - col2 * + col0
----

query II rowsort
SELECT - col0 * - 72 * - + 93 - - 61 + - col1 AS col1, - ( - - col2 ) * 94 AS col1 FROM tab0 AS cor0
----
-100460
-4418
-582512
-940
-649452
-9306

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

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

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

query I rowsort
SELECT DISTINCT - col2 + col1 + 67 * + col0 * + col2 FROM tab1 AS cor0
----
327950
335951
414575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT ALL - COUNT( * ) * - - ( - 16 ) * - CAST( - 48 AS SIGNED ) - - COUNT( * ) + - 39 + + - 91 * + + 93 * - - COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-23121

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - COUNT ( * ) * - - ( - 16 ) * - CAST ( - 48 AS INTEGER ) - - COUNT ( * ) + - 39 + + - 91 * + + 93 * - - COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-23121

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 20 IS NULL
----

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

query II rowsort
SELECT DISTINCT + col1, - 41 * + col2 AS col2 FROM tab0 AS cor0
----
1
-4059
21
-410
81
-1927

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

query I rowsort
SELECT DISTINCT col1 + + 64 AS col1 FROM tab1
----
111
69
78

query I rowsort
SELECT - + col1 + + 6 + - col1 AS col1 FROM tab0 AS cor0 WHERE ( + 74 ) = col1 + + col1
----

query I rowsort
SELECT DISTINCT + - 50 + - 4 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-54

query II rowsort
SELECT 51 - + + 76 * - - 51 AS col1, col1 + col2 FROM tab0
----
-3825
100
-3825
128
-3825
31

query I rowsort
SELECT ALL + + 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-852
SELECT MAX ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT + + 44 AS col0, col2 FROM tab0 AS cor0
----
44
10
44
47
44
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-854
SELECT * FROM tab1 cor0 WHERE NOT + CAST( CAST( - 36 AS SIGNED ) AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-854
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( CAST ( - 36 AS INTEGER ) AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-855
SELECT ALL * FROM tab2 WHERE - CAST( - - 16 AS SIGNED ) NOT BETWEEN + col2 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-855
SELECT ALL * FROM tab2 WHERE - CAST ( - - 16 AS INTEGER ) NOT BETWEEN + col2 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT + ( - ( - col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-858
SELECT col2 * - col0, + 71 DIV + 95 AS col2 FROM tab0
----
-705
0
-870
0
-9603
0

skipif mysql # not compatible
query II rowsort label-858
SELECT col2 * - col0, + 71 / + 95 AS col2 FROM tab0
----
-705
0
-870
0
-9603
0

onlyif mysql # aggregate syntax: 
query II rowsort label-859
SELECT 31 * 25 AS col1, - MIN( + 27 ) * - COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
775
78

skipif mysql # not compatible
query II rowsort label-859
SELECT 31 * 25 AS col1, - MIN ( + 27 ) * - COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
775
78

query II rowsort
SELECT ALL + 52 * + + col1 AS col0, + col0 + col2 AS col2 FROM tab1 AS cor0
----
2444
159
260
144
728
147

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

query I rowsort
SELECT ALL 87 * - - ( + + 6 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 89b4872c2faf57157786314239b5b957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

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

query I rowsort
SELECT ALL + 26 * - 6 + - + 53 + + - col2 AS col0 FROM tab1
----
-268
-277
-305

query I rowsort
SELECT ( + - 31 ) + - + col1 - - 56 FROM tab0
----
-56
24
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-867
SELECT * FROM tab2 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-867
SELECT * FROM tab2 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER ) + col0
----

query I rowsort
SELECT + - 47 + + 95 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT 52 + col2 FROM tab2 AS cor0
----
110
75
92

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

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

skipif mysql # not compatible
query I rowsort label-871
SELECT - - SUM ( DISTINCT 40 ) FROM tab0 AS cor0
----
40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 >= + col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL MIN( ALL + 23 ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL MIN ( ALL + 23 ) FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 48 col0 FROM tab2
----
112
123
94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT ALL - col0 + 24 + 18 DIV - col0 FROM tab1
----
-27
-61
-67

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL - col0 + 24 + 18 / - col0 FROM tab1
----
-27
-61
-67

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

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

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

query I rowsort
SELECT 94 + + + col0 * - 89 FROM tab1 AS cor0
----
-4445
-7471
-8005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - - col0 * - col2 col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT - 77 + + + col0 AS col2 FROM tab2 WHERE ( + 15 ) IS NULL
----

query I rowsort
SELECT + + 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

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

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

query I rowsort
SELECT DISTINCT - ( - col2 ) * + ( ( col1 ) ) * - + col1 FROM tab0 AS cor0
----
-308367
-4410
-99

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 15 * - col2 FROM tab2
----
-345
-600
-870

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

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

query I rowsort
SELECT + col0 * - 93 + + - 36 FROM tab2 cor0
----
-4314
-5988
-7011

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

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT 87 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE ( - - col1 ) * + 37 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 + - - col2 + + col0 * - + 2 * - + col0 * + + col2 FROM tab0 AS cor0
----
152260
1872684
21902

query I rowsort
SELECT DISTINCT - 71 + - 11 * col1 + - + col1 - + 81 * + 32 * 36 FROM tab0 AS cor0
----
-93395
-93635
-94355

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT DISTINCT - + COUNT( * ) * + - COUNT( * ) - - COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - + col2 ) NOT IN ( - - col2, + col0 - + 58 )
----
0

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT - + COUNT ( * ) * + - COUNT ( * ) - - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - + col2 ) NOT IN ( - - col2, + col0 - + 58 )
----
0

query I rowsort
SELECT - 93 + - col2 * ( - col0 ) FROM tab2 AS cor0
----
2467
4257
965

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NULL >= col2 - - 4 + - col0 * 1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 51 ) col1 FROM tab2
----
-51
-51
-51

query I rowsort
SELECT - col1 + + ( + - 45 ) FROM tab0
----
-126
-46
-66

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-902
SELECT ALL - CAST( MIN( DISTINCT + ( - - col2 ) ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-902
SELECT ALL - CAST ( MIN ( DISTINCT + ( - - col2 ) ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + 4 * col0 AS col1 FROM tab2
----
184
256
300

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT DISTINCT - SUM( + 15 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT - SUM ( + 15 ) FROM tab2 AS cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT ALL 0 DIV + 31 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL 0 / + 31 FROM tab0 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-906
SELECT DISTINCT + SUM ( DISTINCT + 77 ) FROM tab1 AS cor0
----
77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT + 84 * + COUNT( ALL col1 ) col0 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-909
SELECT + 84 * + COUNT ( ALL col1 ) col0 FROM tab0 AS cor0
----
252

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 65 < NULL
----

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

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

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

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

query I rowsort
SELECT col2 / - + col0 + - - col2 - + col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - 34 AND col1
----

query II rowsort
SELECT DISTINCT + 5 * - col0 AS col0, col2 FROM tab1
----
-255
96
-425
59
-455
68

query I rowsort
SELECT DISTINCT col0 * - 91 AS col1 FROM tab0
----
-1365
-7917
-8827

query I rowsort
SELECT DISTINCT - 74 * + col0 + - - col2 FROM tab2
----
-3381
-4696
-5492

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + col1 ) * + + col0, col1 * col1 col0 FROM tab1
----
425
25
4277
2209
714
196

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - 24
----

query I rowsort
SELECT col2 * - col0 + - 74 AS col2 FROM tab2
----
-1132
-2634
-4424

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT ALL - ( + 77 ) DIV 50 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - ( + 77 ) / 50 FROM tab1
----
-1
-1
-1

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

query I rowsort
SELECT ALL - ( - - col0 ) + + - 33 AS col1 FROM tab1 AS cor0
----
-118
-124
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-926
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * 17 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-926
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * 17 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - MAX( + - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-927
SELECT - MAX ( + - col1 ) AS col2 FROM tab2 AS cor0
----
51

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) / MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-931
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * 96 / CAST( - - col1 AS SIGNED ) NOT BETWEEN NULL AND + 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-931
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * 96 / CAST ( - - col1 AS INTEGER ) NOT BETWEEN NULL AND + 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - - 57 * + col1 FROM tab2
----
2884
3761
4349

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT - 26 - + + COUNT( ALL - - col2 ) AS col1 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-934
SELECT - 26 - + + COUNT ( ALL - - col2 ) AS col1 FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT MIN( DISTINCT 37 ) - + + COUNT( * ) + MAX( col0 ) FROM tab2
----
109

skipif mysql # not compatible
query I rowsort label-935
SELECT MIN ( DISTINCT 37 ) - + + COUNT ( * ) + MAX ( col0 ) FROM tab2
----
109

query III rowsort
SELECT * FROM tab1 WHERE + 23 / col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-938
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-938
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 col0, 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47
42

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-940
SELECT ALL COUNT ( * ) col1 FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT - + col1 * + 68 FROM tab2 AS cor0
----
-3468
-4556
-5236

query I rowsort
SELECT + col1 * + 22 * - + col2 FROM tab1 AS cor0
----
-29568
-6490
-70312

query I rowsort
SELECT + 17 FROM tab2 AS cor0 WHERE NOT NULL > + ( 55 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * + col0 * + col2 col1 FROM tab0 AS cor0
----
-44415
-54810
-604989

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-945
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 28 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT CAST ( NULL AS REAL ) * 28 FROM tab2
----
NULL

query II rowsort
SELECT col0 AS col2, 35 FROM tab2
----
46
35
64
35
75
35

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * + - 95 * - col2 col2 FROM tab0
----
-19863
-361650
-9308

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + 52 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + 81 <= - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col1 * - 10 - 1 <= NULL
----

query I rowsort
SELECT ALL - + 53 * 85 * + 28 AS col1 FROM tab0 AS cor0
----
-126140
-126140
-126140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT + - CAST( + 73 AS SIGNED ) + + 76 * - + col1 FROM tab2 AS cor0
----
-3949
-5165
-5925

skipif mysql # not compatible
query I rowsort label-953
SELECT + - CAST ( + 73 AS INTEGER ) + + 76 * - + col1 FROM tab2 AS cor0
----
-3949
-5165
-5925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-954
SELECT CAST( - + col1 AS SIGNED ) * + - col2 + + col1 + - 71 AS col2 FROM tab1 AS cor0
----
1287
229
3172

skipif mysql # not compatible
query I rowsort label-954
SELECT CAST ( - + col1 AS INTEGER ) * + - col2 + + col1 + - 71 AS col2 FROM tab1 AS cor0
----
1287
229
3172

query I rowsort
SELECT DISTINCT + col2 - + - 21 FROM tab2 AS cor0
----
44
61
79

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

query I rowsort
SELECT ALL + + 7 + 40 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT - CAST( - col2 AS SIGNED ) + + 31 FROM tab2 AS cor0
----
54
71
89

skipif mysql # not compatible
query I rowsort label-958
SELECT - CAST ( - col2 AS INTEGER ) + + 31 FROM tab2 AS cor0
----
54
71
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 + - 74 * - + col0, + col2 col0 FROM tab1 AS cor0
----
3809
96
6325
59
6769
68

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT - COUNT( * ) + + MAX( + 55 ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - COUNT ( * ) + + MAX ( + 55 ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT - - col0 + - - 43 AS col1 FROM tab2 AS cor0
----
107
118
89

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT + col0 + col2 DIV + col0 + + col2 FROM tab1 AS cor0
----
144
148
159

skipif mysql # not compatible
query I rowsort label-962
SELECT + col0 + col2 / + col0 + + col2 FROM tab1 AS cor0
----
144
148
159

query II rowsort
SELECT DISTINCT + col0 - + 35 AS col1, - col1 FROM tab0 AS cor0
----
-20
-81
52
-21
62
-1

query I rowsort
SELECT ( - 88 ) + + 25 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + + col2 + 11 FROM tab0 WHERE + - col2 BETWEEN NULL AND - 79
----

query I rowsort
SELECT 80 + - col2 AS col1 FROM tab0
----
-19
33
70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 31 <= ( NULL )
----

query I rowsort
SELECT DISTINCT 17 - col2 FROM tab1
----
-42
-51
-79

query I rowsort
SELECT DISTINCT + col1 - + 7 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + + col2 AND col0 + - col0 - + col0 - col0
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-971
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE NULL < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL - COUNT( * ) + 89 * 95 AS col1 FROM tab0
----
8452

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - COUNT ( * ) + 89 * 95 AS col1 FROM tab0
----
8452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT + CAST( + 50 AS SIGNED ) + - col1 AS col0 FROM tab0
----
-31
29
49

skipif mysql # not compatible
query I rowsort label-975
SELECT + CAST ( + 50 AS INTEGER ) + - col1 AS col0 FROM tab0
----
-31
29
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + ( 61 ) / + 33 AND ( NULL )
----

query I rowsort
SELECT ( - 59 ) AS col2 FROM tab1
----
-59
-59
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col0 - 5 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT SUM( 63 ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT SUM ( 63 ) FROM tab2
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT - col1 * + CAST( col0 / col0 AS SIGNED ) + 87 * col2 AS col1 FROM tab2
----
1950
3403
4979

skipif mysql # not compatible
query I rowsort label-981
SELECT - col1 * + CAST ( col0 / col0 AS INTEGER ) + 87 * col2 AS col1 FROM tab2
----
1950
3403
4979

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

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT - col0 DIV + col2 + 71 FROM tab0
----
63
71
71

skipif mysql # not compatible
query I rowsort label-983
SELECT - col0 / + col2 + 71 FROM tab0
----
63
71
71

query I rowsort
SELECT ( 28 ) + + col0 AS col0 FROM tab2
----
103
74
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 43 + + 83 col1 FROM tab1
----
-2110
-3572
-3830

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT + COUNT( col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT + COUNT ( col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-987
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-987
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT ALL 5 + col1 DIV - col1 AS col0 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL 5 + col1 / - col1 AS col0 FROM tab1
----
4
4
4

query I rowsort
SELECT ALL col0 * 1 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT 70 * - col2 + - 71 AS col1 FROM tab2 WHERE NOT ( NULL ) > + ( 98 )
----

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

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

query I rowsort
SELECT ALL col1 * col1 + col0 AS col2 FROM tab1
----
110
2300
247

query I rowsort
SELECT + col1 + 30 AS col2 FROM tab0
----
111
31
51

query I rowsort
SELECT + 84 + col2 AS col2 FROM tab2
----
107
124
142

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT MIN( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT col2 * - col0 IN ( col2 )
----
51

skipif mysql # not compatible
query I rowsort label-995
SELECT MIN ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT col2 * - col0 IN ( col2 )
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col0 FROM tab2 AS cor0 WHERE + col2 = - col1 * + ( + 42 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-998
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + CAST( + 93 AS SIGNED ) + col0 BETWEEN + 68 * col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-998
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + CAST ( + 93 AS INTEGER ) + col0 BETWEEN + 68 * col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + col2 + 35 FROM tab1 AS cor0
----
103
131
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT DISTINCT 81 * ( MIN( + 93 ) ) AS col1 FROM tab0 cor0
----
7533

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT 81 * ( MIN ( + 93 ) ) AS col1 FROM tab0 cor0
----
7533

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

query I rowsort
SELECT ALL 29 + + col1 FROM tab0
----
110
30
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1005
SELECT ALL - col2 + col2 DIV + col0 AS col0 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL - col2 + col2 / + col0 AS col0 FROM tab1
----
-59
-68
-95

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * col1 IN ( + 4 )
----

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

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

query I rowsort
SELECT - 39 FROM tab2 cor0 WHERE 29 <> col2
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - 24 + - 78 FROM tab0 AS cor0 WHERE NULL <= + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT DISTINCT col1 DIV ( col1 ) + ( + col2 - + 44 * col2 ) FROM tab0 AS cor0
----
-2020
-4256
-429

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT col1 / ( col1 ) + ( + col2 - + 44 * col2 ) FROM tab0 AS cor0
----
-2020
-4256
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 + + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND col0 * col2
----

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

query I rowsort
SELECT ALL + col1 * + ( + 44 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL - 24 * COUNT( ALL + col2 ) FROM tab1 WHERE NOT + col1 * - col1 + 73 * 95 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - 24 * COUNT ( ALL + col2 ) FROM tab1 WHERE NOT + col1 * - col1 + 73 * 95 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) * col0 col0 FROM tab2
----
2116
4096
5625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT DISTINCT + MAX( DISTINCT + 23 ) * + 95 AS col0 FROM tab1
----
2185

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT + MAX ( DISTINCT + 23 ) * + 95 AS col0 FROM tab1
----
2185

query I rowsort
SELECT - 14 * - 16 FROM tab2
----
224
224
224

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT ALL ( - - 13 ) DIV - 10 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL ( - - 13 ) / - 10 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1022
SELECT 18 DIV COUNT( * ) * 57 FROM tab1
----
342

skipif mysql # not compatible
query I rowsort label-1022
SELECT 18 / COUNT ( * ) * 57 FROM tab1
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT + 81 * - COUNT( * ) AS col2 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-1023
SELECT + 81 * - COUNT ( * ) AS col2 FROM tab2
----
-243

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * 13 col1 FROM tab2
----
30498
64064
65325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT ALL + - MIN( DISTINCT + col1 ) * 84 col1 FROM tab1 cor0
----
-420

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1027
SELECT ALL + - MIN ( DISTINCT + col1 ) * 84 col1 FROM tab1 cor0
----
-420

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 21 ) > ( + 43 )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - ( + 28 ) > - 49 * col0
----

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT col1 / + + 72 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT col1 * - - col0 + + - 80 FROM tab0
----
1135
17
1747

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1043
SELECT - SUM( ALL - 20 ) DIV - ( - 95 - + 57 ) AS col1 FROM tab0 WHERE - col0 * 46 NOT BETWEEN col1 * - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1043
SELECT - SUM ( ALL - 20 ) / - ( - 95 - + 57 ) AS col1 FROM tab0 WHERE - col0 * 46 NOT BETWEEN col1 * - col0 AND NULL
----
0

query II rowsort
SELECT DISTINCT + col1 + - 32, - col1 AS col1 FROM tab2
----
19
-51
35
-67
45
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT - ( - 67 ) * + + 55 + + 43 + - COUNT( * ) * + 63 FROM tab0 AS cor0
----
3539

skipif mysql # not compatible
query I rowsort label-1045
SELECT - ( - 67 ) * + + 55 + + 43 + - COUNT ( * ) * + 63 FROM tab0 AS cor0
----
3539

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE ( + col0 + - - 87 + - col0 ) IS NULL
----

query I rowsort
SELECT ALL col0 - - 75 FROM tab2 AS cor0
----
121
139
150

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

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

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

query I rowsort
SELECT DISTINCT col0 + - 95 FROM tab2 AS cor0
----
-20
-31
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT + MIN( col1 ) AS col2 FROM tab1 AS cor0 WHERE col1 * col0 BETWEEN ( - - 91 + + ( col1 ) / + 76 ) AND ( - ( - 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT + MIN ( col1 ) AS col2 FROM tab1 AS cor0 WHERE col1 * col0 BETWEEN ( - - 91 + + ( col1 ) / + 76 ) AND ( - ( - 17 ) )
----
NULL

query I rowsort
SELECT ALL - 39 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND + col0 < - col1 * - ( 57 ) / - 54 - + col2
----

query I rowsort
SELECT ALL + - 60 + - col0 FROM tab1 AS cor0
----
-111
-145
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL - COUNT( ALL - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - COUNT ( ALL - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

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

skipif mysql # not compatible
query II rowsort label-1056
SELECT + COUNT ( * ) AS col1, - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT + col1 DIV + col1 + - col0 * - - col1 + ( col2 ) * col1 FROM tab1 AS cor0
----
-1080
-129
631

skipif mysql # not compatible
query I rowsort label-1057
SELECT + col1 / + col1 + - col0 * - - col1 + ( col2 ) * col1 FROM tab1 AS cor0
----
-1080
-129
631

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

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

query I rowsort
SELECT - col0 + 62 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-29
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1061
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT + COUNT( * ) * - - 99 AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + COUNT ( * ) * - - 99 AS col2 FROM tab0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 WHERE NOT - col2 * - 70 IS NULL
----
23
40
58

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

query I rowsort
SELECT + 63 * col2 FROM tab0
----
2961
6237
630

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT ( + 87 ) >= ( - col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT DISTINCT + col0 * - col1, 44 AS col1 FROM tab1
----
-425
44
-4277
44
-714
44

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 AS cor0 WHERE col1 + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1070
SELECT ALL - - 29 * - CAST( + col2 AS SIGNED ) DIV col2 + - ( + 61 ) AS col0 FROM tab0 AS cor0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - - 29 * - CAST ( + col2 AS INTEGER ) / col2 + - ( + 61 ) AS col0 FROM tab0 AS cor0
----
-90
-90
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - 49 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-441

skipif mysql # not compatible
query I rowsort label-1072
SELECT - 49 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-441

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT + COUNT( 39 ) + + + CAST( + CAST( + - 5 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1074
SELECT + COUNT ( 39 ) + + + CAST ( + CAST ( + - 5 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-2

query II rowsort
SELECT ALL + 18 + + - col2 AS col2, 96 * + + 90 * - - col1 FROM tab2 AS cor0
----
-22
665280
-40
578880
-5
440640

query I rowsort
SELECT ALL + 48 * + col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IN ( col0 * - col0, col2 + 40, - ( + 79 ) * + col2 + + 76 )
----

query I rowsort
SELECT ALL + col2 + - 30 FROM tab1 AS cor0
----
29
38
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 18 * - col2 col2, col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <> + + col2
----
1062
59
1224
68
1728
96

query I rowsort
SELECT - col0 * col2 * - - 60 FROM tab1
----
-293760
-300900
-371280

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT MAX( ALL + 40 ) col1 FROM tab2
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1081
SELECT DISTINCT MAX ( ALL + 40 ) col1 FROM tab2
----
40

query II rowsort
SELECT col2 AS col0, + 65 * - col0 FROM tab2
----
23
-2990
40
-4160
58
-4875

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT 42 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1083
SELECT 42 / col2 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1084
SELECT + COUNT ( DISTINCT + - col1 ) FROM tab0
----
3

query II rowsort
SELECT ALL + 76 + + col0 + - col0 AS col0, - ( + col2 ) AS col1 FROM tab0
----
76
-10
76
-47
76
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT 22 AS col2, + MAX( ALL - - col2 ) FROM tab0
----
22
99

skipif mysql # not compatible
query II rowsort label-1086
SELECT 22 AS col2, + MAX ( ALL - - col2 ) FROM tab0
----
22
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT + MAX( DISTINCT col1 ) - + 89 AS col2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-1087
SELECT + MAX ( DISTINCT col1 ) - + 89 AS col2 FROM tab0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1088
SELECT + 5 * COUNT( * ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - col2 OR + col0 * - 60 + + 18 - - CAST( NULL AS DECIMAL ) <> col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-1088
SELECT + 5 * COUNT ( * ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - col2 OR + col0 * - 60 + + 18 - - CAST ( NULL AS REAL ) <> col0 * + col0
----
0

query I rowsort
SELECT 41 * - 44 + - 94 FROM tab1 AS cor0
----
-1898
-1898
-1898

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT 39 + - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1090
SELECT 39 + - COUNT ( * ) FROM tab0
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1091
SELECT + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT col1 + + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1091
SELECT + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT col1 + + - col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT + - SUM( DISTINCT + col1 ) * - COUNT( * ) * COUNT( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
1755

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT + - SUM ( DISTINCT + col1 ) * - COUNT ( * ) * COUNT ( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
1755

query I rowsort
SELECT DISTINCT - - 41 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1095
SELECT ALL * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) = ( 49 * + + col0 + col0 )
----

skipif mysql # not compatible
query III rowsort label-1095
SELECT ALL * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) = ( 49 * + + col0 + col0 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 col2, - col1 AS col0 FROM tab1
----
65
-14
65
-47
65
-5

query II rowsort
SELECT ALL - 0 AS col2, - 2 + 43 AS col2 FROM tab0
----
0
41
0
41
0
41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1101
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + CAST( + + 99 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1101
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + CAST ( + + 99 AS INTEGER ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + ( + col2 ) + col1 AS col0 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT 12 + - SUM( ALL + 60 ) AS col0 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT 12 + - SUM ( ALL + 60 ) AS col0 FROM tab1
----
-168

query II rowsort
SELECT 67 AS col2, 90 FROM tab0
----
67
90
67
90
67
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT DISTINCT + 44 DIV col1 AS col2 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT + 44 / col1 AS col2 FROM tab1
----
0
3
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 51 / 84 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 87 ) + ( + col1 ) FROM tab2 AS cor0
----
-10
-20
-36

query II rowsort
SELECT ALL - col0 + + col1, ( + col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
-8
133
13
104
5
69

query II rowsort
SELECT DISTINCT + col2 * col0, col0 AS col1 FROM tab0 AS cor0
----
705
15
870
87
9603
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT + + CAST( + 54 AS SIGNED ) + - COUNT( * ) * - - 71 AS col2 FROM tab2 cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1112
SELECT + + CAST ( + 54 AS INTEGER ) + - COUNT ( * ) * - - 71 AS col2 FROM tab2 cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT DISTINCT - COUNT( * ) + MIN( DISTINCT col0 ) + MAX( ALL - + col1 ) + + - COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT - COUNT ( * ) + MIN ( DISTINCT col0 ) + MAX ( ALL - + col1 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT - 8 - 4 AS col2 FROM tab0 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT DISTINCT + - col0 DIV - + col1 + 2 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT + - col0 / - + col1 + 2 FROM tab2 AS cor0
----
2
3

query I rowsort
SELECT + - col1 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-786
-891
-9604

query II rowsort
SELECT DISTINCT + ( + col0 ), - col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT SUM( - col2 ) + + MIN( + col1 ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-1118
SELECT SUM ( - col2 ) + + MIN ( + col1 ) FROM tab2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT col2 <> - col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT col2 <> - col2 + - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT ( + col2 ) + - ( - col0 ) AS col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1122
SELECT col0 DIV - col0 + - - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
14
86
96

skipif mysql # not compatible
query I rowsort label-1122
SELECT col0 / - col0 + - - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
14
86
96

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col2 FROM tab1 cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col0 col1 FROM tab0 AS cor0
----
-66
-96
66

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

query I rowsort
SELECT + 85 - ( col0 ) AS col1 FROM tab2 AS cor0
----
10
21
39

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

query I rowsort
SELECT + col1 * - 89 * - 12 AS col1 FROM tab2
----
54468
71556
82236

query I rowsort
SELECT + 36 * - - col1 AS col1 FROM tab0
----
2916
36
756

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 89 >= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 37 * - col1 AS col0 FROM tab1 AS cor0
----
-1739
-185
-518

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 cor0 WHERE NULL < - ( 70 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT - ( - + COUNT( 40 ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1136
SELECT DISTINCT - ( - + COUNT ( 40 ) ) col0 FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT COUNT( * ) * + 16 col1 FROM tab1
----
48

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

query I rowsort
SELECT col0 * - col1 + - + col0 + - 30 AS col1 FROM tab1
----
-4398
-540
-795

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL + SUM( ALL + 33 ) + 1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
298

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL + SUM ( ALL + 33 ) + 1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
298

query I rowsort
SELECT - col0 + 78 + + col0 * - 45 FROM tab1
----
-2268
-3832
-4108

query I rowsort
SELECT DISTINCT - 49 + - - col0 AS col0 FROM tab0 AS cor0
----
-34
38
48

query I rowsort
SELECT ALL + - ( + 13 ) + col2 AS col1 FROM tab0 AS cor0
----
-3
34
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT DISTINCT 42 * - SUM( + ( - - 20 ) ) AS col2 FROM tab2 AS cor0
----
-2520

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT 42 * - SUM ( + ( - - 20 ) ) AS col2 FROM tab2 AS cor0
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1146
SELECT + + CAST( CAST( - SUM( ALL col2 ) AS DECIMAL ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1146
SELECT + + CAST ( CAST ( - SUM ( ALL col2 ) AS REAL ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE - 27 + + col1 IS NOT NULL
----
10
47
99

query II rowsort
SELECT DISTINCT + 64 * + + 63, + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4032
46
4032
64
4032
75

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

query II rowsort
SELECT DISTINCT + col0 * + 32, col0 * + 27 AS col0 FROM tab2
----
1472
1242
2048
1728
2400
2025

query I rowsort
SELECT 94 * + col1 AS col2 FROM tab2
----
4794
6298
7238

query II rowsort
SELECT ALL col2 AS col0, col0 * 66 FROM tab0
----
10
5742
47
990
99
6402

query I rowsort
SELECT ALL col2 + - col0 * 68 * col0 AS col1 FROM tab2
----
-143865
-278488
-382442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * 33 * 36 - + - col2 col1 FROM tab2
----
20219
20236
20254

query I rowsort
SELECT 50 + + - 31 * col1 AS col0 FROM tab1
----
-105
-1407
-384

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 86 IS NULL
----

query II rowsort
SELECT ALL - ( + ( - - col0 ) ), col1 FROM tab0
----
-15
81
-87
21
-97
1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1159
SELECT + 24 DIV - - 11 AS col0, col0 AS col1 FROM tab1 AS cor0
----
2
51
2
85
2
91

skipif mysql # not compatible
query II rowsort label-1159
SELECT + 24 / - - 11 AS col0, col0 AS col1 FROM tab1 AS cor0
----
2
51
2
85
2
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1160
SELECT DISTINCT + COUNT( * ) DIV 90 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + COUNT ( * ) / 90 AS col1 FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT ALL - ( 83 ) DIV + 27 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - ( 83 ) / + 27 FROM tab2 AS cor0
----
-3
-3
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1164
SELECT col2, 93 + + 21 - - col1 - col1 + col2 - - + CAST( NULL AS SIGNED ) + + + col0 / - col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1164
SELECT col2, 93 + + 21 - - col1 - col1 + col2 - - + CAST ( NULL AS INTEGER ) + + + col0 / - col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT COUNT ( ALL - - col1 ) AS col1 FROM tab1
----
3

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

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

query II rowsort
SELECT ALL 7 + - - col0, - 62 AS col0 FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT DISTINCT col0 + col0 + - 71 FROM tab0 cor0
----
-41
103
123

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL 46 * - + COUNT( col0 ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL 46 * - + COUNT ( col0 ) FROM tab0
----
-138

query I rowsort
SELECT DISTINCT col1 + 95 AS col2 FROM tab1
----
100
109
142

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

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

query I rowsort
SELECT DISTINCT + ( + 81 ) + + col0 FROM tab2 AS cor0
----
127
145
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL 1 + COUNT( * ) * + 31 AS col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL 1 + COUNT ( * ) * + 31 AS col1 FROM tab1 AS cor0
----
94

query I rowsort
SELECT 84 - 19 - col1 FROM tab0 AS cor0
----
-16
44
64

onlyif mysql # DIV for integer division: 
query II rowsort label-1178
SELECT DISTINCT + - col1 + + col2, + col0 DIV 41 col1 FROM tab0 AS cor0
----
-11
2
-34
0
98
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1178
SELECT DISTINCT + - col1 + + col2, + col0 / 41 col1 FROM tab0 AS cor0
----
-11
2
-34
0
98
2

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

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

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

query I rowsort
SELECT ALL - 69 - - col0 AS col2 FROM tab2 AS cor0
----
-23
-5
6

query I rowsort
SELECT 35 + + col1 FROM tab1 AS cor0
----
40
49
82

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

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

query I rowsort
SELECT DISTINCT col1 - + 58 AS col1 FROM tab1
----
-11
-44
-53

query I rowsort
SELECT - 87 * col1 + - + 12 + col2 FROM tab1
----
-1134
-388
-4033

query III rowsort
SELECT * FROM tab2 WHERE - col2 <> - 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1 AS col0, ( - - col1 ) + + col1 FROM tab1
----
14
28
47
94
5
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT - COUNT( * ) DIV - ( COUNT( * ) ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1188
SELECT - COUNT ( * ) / - ( COUNT ( * ) ) AS col2 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT ALL - 58 DIV + col1 + + col1 + + + col0 * - + 86 AS col1 FROM tab1 WHERE NOT - - col1 > + col1 + + col1 * + 0 * - 82
----
-4376
-7316
-7780

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL - 58 / + col1 + + col1 + + + col0 * - + 86 AS col1 FROM tab1 WHERE NOT - - col1 > + col1 + + col1 * + 0 * - 82
----
-4376
-7316
-7780

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT + SUM( col1 ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT + SUM ( col1 ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT - COUNT( * ) DIV - 30 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT - COUNT ( * ) / - 30 FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT col1 / + + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
0

query I rowsort
SELECT - - ( + 2 ) FROM tab2 cor0
----
2
2
2

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

skipif mysql # not compatible
query II rowsort label-1196
SELECT DISTINCT - - COUNT ( * ) AS col0, + 59 FROM tab1 AS cor0
----
3
59

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

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

query II rowsort
SELECT DISTINCT - 46 AS col1, - col2 FROM tab2 AS cor0
----
-46
-23
-46
-40
-46
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT DISTINCT 15 DIV col0 DIV + 28 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT 15 / col0 / + 28 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT COUNT( - + 74 ) DIV + 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT COUNT ( - + 74 ) / + 63 FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1203
SELECT ALL MIN ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
51

query II rowsort
SELECT ALL - 29, - 34 AS col0 FROM tab0 AS cor0
----
-29
-34
-29
-34
-29
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT DISTINCT + 37 + - 57 + - MAX( + 48 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + 37 + - 57 + - MAX ( + 48 ) FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT DISTINCT 96 + - COUNT( * ) AS col2, + 49 col2 FROM tab2
----
93
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1206
SELECT DISTINCT 96 + - COUNT ( * ) AS col2, + 49 col2 FROM tab2
----
93
49

query I rowsort
SELECT DISTINCT + col2 + + 46 AS col2 FROM tab0
----
145
56
93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT - 27 * 88 AS col2 FROM tab1 AS cor0
----
-2376
-2376
-2376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 62 ) col2 FROM tab2 WHERE col0 = NULL
----

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

query I rowsort
SELECT DISTINCT - col1 + - - col2 * + 23 FROM tab2 cor0
----
1267
478
843

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col0 + + + col1, - ( - - 67 ), + ( + + col0 ) )
----

query I rowsort
SELECT DISTINCT + 84 * - 90 - - + col1 AS col2 FROM tab0 cor0
----
-7479
-7539
-7559

query I rowsort
SELECT + + 42 - 85 FROM tab1 AS cor0
----
-43
-43
-43

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

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

query I rowsort
SELECT ALL - ( + 18 ) * col0 AS col2 FROM tab0
----
-1566
-1746
-270

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1219
SELECT 75 DIV + COUNT( ALL - col2 ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1219
SELECT 75 / + COUNT ( ALL - col2 ) FROM tab1
----
25

query I rowsort
SELECT ALL + 55 * - - col2 AS col2 FROM tab1
----
3245
3740
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT DISTINCT - COUNT( * ) * 52 AS col2 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT - COUNT ( * ) * 52 AS col2 FROM tab1
----
-156

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

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

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

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

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

query I rowsort
SELECT DISTINCT 36 * + col1 AS col0 FROM tab1
----
1692
180
504

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

query I rowsort
SELECT + col0 * 85 - + + col1 FROM tab2 AS cor0
----
3859
5363
6308

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

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

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

skipif mysql # not compatible
query I rowsort label-1229
SELECT - SUM ( - 0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1230
SELECT - ( - COUNT( * ) ) DIV - MAX( + 4 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1230
SELECT - ( - COUNT ( * ) ) / - MAX ( + 4 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 88 * + col0 - - ( col2 ) * col1 * + 44 AS col2 FROM tab2 AS cor0
----
141152
177584
55660

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

query I rowsort
SELECT DISTINCT 53 + col1 AS col2 FROM tab0
----
134
54
74

query I rowsort
SELECT + col0 + ( 10 ) AS col0 FROM tab0
----
107
25
97

query I rowsort
SELECT + col1 + + 87 * - + col1 FROM tab1 WHERE NULL IN ( + col1, - 96 - - col1, + col1 )
----

query I rowsort
SELECT ALL col2 * + 56 * + 70 AS col1 FROM tab2
----
156800
227360
90160

query I rowsort
SELECT - col1 + - + 4 AS col2 FROM tab1
----
-18
-51
-9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT + + ( - CAST( - 2 AS SIGNED ) ) + 15 + - + 44 AS col2 FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-1239
SELECT + + ( - CAST ( - 2 AS INTEGER ) ) + 15 + - + 44 AS col2 FROM tab0 AS cor0
----
-27
-27
-27

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

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

query I rowsort
SELECT + - col0 * col0 * - ( 78 ) FROM tab1 AS cor0
----
202878
563550
645918

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT + COUNT( * ) * - + 44 AS col0 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT + COUNT ( * ) * - + 44 AS col0 FROM tab2 AS cor0
----
-132

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 61 >= NULL )
----

query II rowsort
SELECT 68 - - + 70 * col0, col2 FROM tab1
----
3638
96
6018
59
6438
68

query I rowsort
SELECT col1 - + - 89 AS col0 FROM tab2
----
140
156
166

onlyif mysql # aggregate syntax: 
query II rowsort label-1247
SELECT DISTINCT - MIN( DISTINCT + + ( - 8 ) ) + + MAX( - + col0 ) AS col1, 30 FROM tab1
----
-43
30

skipif mysql # not compatible
query II rowsort label-1247
SELECT DISTINCT - MIN ( DISTINCT + + ( - 8 ) ) + + MAX ( - + col0 ) AS col1, 30 FROM tab1
----
-43
30

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

query I rowsort
SELECT ALL - col1 + + - col0 * col1 * + - 95 * + - col1 FROM tab0 AS cor0
----
-3644886
-9216
-9349506

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

query I rowsort
SELECT + col1 * + col0 + - 60 AS col1 FROM tab2 AS cor0
----
2286
4868
4965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 48 - + col0 * col2 col2 FROM tab2 AS cor0
----
-1106
-2608
-4398

query I rowsort
SELECT - col0 + - col2 + - 56 * + + col2 FROM tab2 AS cor0
----
-1357
-2344
-3381

query I rowsort
SELECT + + col1 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1358
300
3243

query I rowsort
SELECT DISTINCT + 74 + + col0 AS col1 FROM tab2 AS cor0
----
120
138
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 70, + col1 col0 FROM tab1
----
70
14
70
47
70
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT DISTINCT COUNT( * ), 45 AS col2 FROM tab1
----
3
45

skipif mysql # not compatible
query II rowsort label-1258
SELECT DISTINCT COUNT ( * ), 45 AS col2 FROM tab1
----
3
45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1259
SELECT ALL col2 AS col1, + ( + + 29 ) * + col1 * - - CAST( NULL AS DECIMAL ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1259
SELECT ALL col2 AS col1, + ( + + 29 ) * + col1 * - - CAST ( NULL AS REAL ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 + col1 col0 FROM tab2 WHERE NOT + + col1 BETWEEN + - col1 * - + 64 * - col2 AND NULL
----

query I rowsort
SELECT + 96 * + - col2 + col0 + + + 28 + + + col0 AS col2 FROM tab1 cor0
----
-5466
-6318
-9086

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT DISTINCT 80 AS col0, ( - ( COUNT( - + 55 ) ) ) AS col2 FROM tab0 AS cor0
----
80
-3

skipif mysql # not compatible
query II rowsort label-1262
SELECT DISTINCT 80 AS col0, ( - ( COUNT ( - + 55 ) ) ) AS col2 FROM tab0 AS cor0
----
80
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT col0 DIV + col1 + + - 13 FROM tab0 AS cor0
----
-13
-9
84

skipif mysql # not compatible
query I rowsort label-1263
SELECT col0 / + col1 + + - 13 FROM tab0 AS cor0
----
-13
-9
84

query I rowsort
SELECT + 71 + + + col2 FROM tab1 AS cor0
----
130
139
167

query I rowsort
SELECT ALL + col2 * + 89 * + 88 FROM tab1 AS cor0
----
462088
532576
751872

query I rowsort
SELECT ALL col1 * col2 * + - 83 AS col0 FROM tab1 AS cor0
----
-111552
-24485
-265268

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT DISTINCT - 1 * SUM( ALL col1 ) * - COUNT( * ) * + + COUNT( + - col2 ) FROM tab0 AS cor0
----
927

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT - 1 * SUM ( ALL col1 ) * - COUNT ( * ) * + + COUNT ( + - col2 ) FROM tab0 AS cor0
----
927

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1270
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 * + - 44, CAST( + col2 AS SIGNED ) - - col2, - col2 )
----

skipif mysql # not compatible
query III rowsort label-1270
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 * + - 44, CAST ( + col2 AS INTEGER ) - - col2, - col2 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - 38 * - 71 AS col2 FROM tab2
----
-23
2698
-40
2698
-58
2698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - - 87 * col1, - col0 col0 FROM tab0 AS cor0
----
-10
-97
1740
-87
7032
-15

query I rowsort
SELECT + col2 + + 12 AS col1 FROM tab0
----
111
22
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1276
SELECT - - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT - - CAST ( NULL AS REAL ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT DISTINCT - col1 DIV col0 * - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT - col1 / col0 * - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 - + 13 FROM tab1 AS cor0
----
-8
1
34

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 NOT IN ( + col1, col0 * + 72, - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1283
SELECT DISTINCT + 73 DIV 44, COUNT( * ) * + MAX( - + col2 ) AS col0 FROM tab1 cor0
----
1
-177

skipif mysql # not compatible
query II rowsort label-1283
SELECT DISTINCT + 73 / 44, COUNT ( * ) * + MAX ( - + col2 ) AS col0 FROM tab1 cor0
----
1
-177

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1285
SELECT ALL CAST( + col1 AS SIGNED ) col1, 51 * col0 AS col1 FROM tab2
----
51
2346
67
3825
77
3264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1285
SELECT ALL CAST ( + col1 AS INTEGER ) col1, 51 * col0 AS col1 FROM tab2
----
51
2346
67
3825
77
3264

query I rowsort
SELECT + 74 * + col0 * + + ( col1 ) FROM tab1
----
31450
316498
52836

onlyif mysql # DIV for integer division: 
query II rowsort label-1287
SELECT DISTINCT ( ( + 64 ) ) AS col2, 85 DIV + + 77 + col1 FROM tab1
----
64
15
64
48
64
6

skipif mysql # not compatible
query II rowsort label-1287
SELECT DISTINCT ( ( + 64 ) ) AS col2, 85 / + + 77 + col1 FROM tab1
----
64
15
64
48
64
6

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT ALL MAX( DISTINCT - 92 ) AS col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL MAX ( DISTINCT - 92 ) AS col2 FROM tab2 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT col2 DIV + + 31 AS col0 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1291
SELECT col2 / + + 31 AS col0 FROM tab1
----
1
2
3

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 70 / - + 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 46 < - 60 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 col0 FROM tab0 cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT - COUNT( * ) * - 80 + + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT - COUNT ( * ) * - 80 + + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1299
SELECT ALL + + CAST( - col2 AS DECIMAL ) + + col2 / 18 AS col0 FROM tab2 cor0 WHERE CAST( - col2 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL + + CAST ( - col2 AS REAL ) + + col2 / 18 AS col0 FROM tab2 cor0 WHERE CAST ( - col2 AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1300
SELECT ALL + 83 + CAST( + col2 AS SIGNED ), col1 AS col2 FROM tab2 AS cor0
----
106
51
123
77
141
67

skipif mysql # not compatible
query II rowsort label-1300
SELECT ALL + 83 + CAST ( + col2 AS INTEGER ), col1 AS col2 FROM tab2 AS cor0
----
106
51
123
77
141
67

query I rowsort
SELECT 63 + col0 + + ( + col1 ) FROM tab1 cor0
----
128
153
201

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT ALL 33 * - COUNT( ALL - 46 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL 33 * - COUNT ( ALL - 46 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1304
SELECT CAST( NULL AS SIGNED ) + ( + col2 ) AS col1, col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1304
SELECT CAST ( NULL AS INTEGER ) + ( + col2 ) AS col1, col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + + ( + 57 ) AS col1 FROM tab0
----
138
58
78

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) + + - col2 + + - 61 * + col0 FROM tab1
----
-3258
-5329
-5710

onlyif mysql # DIV for integer division: 
query II rowsort label-1308
SELECT 66 + 47 AS col0, 57 DIV - col0 AS col0 FROM tab0
----
113
-3
113
0
113
0

skipif mysql # not compatible
query II rowsort label-1308
SELECT 66 + 47 AS col0, 57 / - col0 AS col0 FROM tab0
----
113
-3
113
0
113
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL - 34 + + + ( COUNT( DISTINCT col1 ) ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL - 34 + + + ( COUNT ( DISTINCT col1 ) ) FROM tab0
----
-31

query I rowsort
SELECT DISTINCT - ( - - 8 ) + - + 81 FROM tab0
----
-89

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <> col2 * - + col0 + 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 40 + - 35 * col2 * - col1 FROM tab0
----
133205
3425
7310

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 24 * + ( - ( - col2 ) ) + 85 >= 31
----

query I rowsort
SELECT col0 * col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND 26 + col0
----

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

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

query I rowsort
SELECT ALL - ( - + col0 ) - - + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1317
SELECT DISTINCT col2 / - col1 * + - col1 - + col0 col0 FROM tab2 cor0
----
-46
-64
-75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT DISTINCT MAX( - 49 ) * + - 61 * - - COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1320
SELECT DISTINCT MAX ( - 49 ) * + - 61 * - - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1321
SELECT CAST ( - + 26 AS INTEGER ) col1 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1322
SELECT ALL CAST( NULL AS SIGNED ) * + MIN( DISTINCT + col2 ) col0, - ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1322
SELECT ALL CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + col2 ) col0, - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
NULL
3

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT 53 * - - 6 FROM tab1 AS cor0
----
318

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT ALL 38 + - + 65 AS col2 FROM tab1
----
-27
-27
-27

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

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

query I rowsort
SELECT DISTINCT + 45 * - + col1 + - col0 FROM tab2 AS cor0
----
-2341
-3090
-3529

query I rowsort
SELECT - - ( col1 ) + col1 AS col2 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL + + SUM( - 79 ) AS col1 FROM tab2 cor0
----
-237

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + + SUM ( - 79 ) AS col1 FROM tab2 cor0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT ALL - - 33 DIV - col2 + - col2 + col2 * + - ( + - col2 ) AS col0 FROM tab0 cor0
----
2162
87
9702

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - - 33 / - col2 + - col2 + col2 * + - ( + - col2 ) AS col0 FROM tab0 cor0
----
2162
87
9702

query II rowsort
SELECT DISTINCT col2 AS col1, col0 * 46 AS col0 FROM tab1
----
59
3910
68
4186
96
2346

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, ( - col2 ) col1 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT col2 - + + 24 - 11 AS col2 FROM tab0
----
-25
12
64

query I rowsort
SELECT col1 - + - 38 FROM tab1
----
43
52
85

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

query I rowsort
SELECT DISTINCT col2 - - 59 AS col0 FROM tab2 AS cor0
----
117
82
99

query I rowsort
SELECT DISTINCT - col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT + col0 + 98 AS col1 FROM tab0 AS cor0
----
113
185
195

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 61 * + - col1 + + - 76 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT MAX( - + col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1349
SELECT MAX ( - + col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT + 1 * COUNT( DISTINCT 73 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT + 1 * COUNT ( DISTINCT 73 ) AS col1 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT + 10 DIV - ( - - col1 ) FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 10 / - ( - - col1 ) FROM tab1
----
-2
0
0

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT + 40, + COUNT( * ) AS col0 FROM tab0
----
40
3

skipif mysql # not compatible
query II rowsort label-1358
SELECT + 40, + COUNT ( * ) AS col0 FROM tab0
----
40
3

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

query II rowsort
SELECT + 13 AS col1, + 47 FROM tab2
----
13
47
13
47
13
47

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

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

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

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

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

query II rowsort
SELECT - - col1 AS col2, col0 + + + 82 AS col2 FROM tab0 AS cor0
----
1
179
21
169
81
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT ALL col0 + ( + - 22 ) DIV col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL col0 + ( + - 22 ) / col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT col2 + + 22 AS col2 FROM tab0
----
121
32
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT DISTINCT - - 44 * - col0 + + col1 DIV + col2 * col0 * - + col1 FROM tab1 AS cor0
----
-2244
-3740
-4004

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT - - 44 * - col0 + + col1 / + col2 * col0 * - + col1 FROM tab1 AS cor0
----
-2244
-3740
-4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + + - ( - 85 ) col1 FROM tab0 cor0
----
310
7654
9494

query I rowsort
SELECT - col0 * - 3 FROM tab1 AS cor0 WHERE NULL IS NULL
----
153
255
273

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

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

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

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

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

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

query I rowsort
SELECT col0 + + - col0 AS col2 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT + + ( + - 67 ) - - - 42 * - col2 + col1 * col1 AS col1 FROM tab2 AS cor0
----
3500
6858
7542

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 * + 96 * col1 + + col1 - - - 4 AS col2 FROM tab0
----
15
365549
87
20177
97
9501

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

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

query I rowsort
SELECT ALL + 35 * + ( + col1 ) AS col0 FROM tab0
----
2835
35
735

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

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + MAX ( DISTINCT - CAST ( - 35 AS INTEGER ) ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT - 5 - + col1 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1384
SELECT + MIN ( 15 ) FROM tab2 AS cor0
----
15

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

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

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

query II rowsort
SELECT DISTINCT + + col2 AS col1, + col1 * - col0 + + + ( - 40 ) FROM tab0 AS cor0
----
10
-1867
47
-1255
99
-137

query I rowsort
SELECT ALL col2 * - col2 - - + col1 * col1 + + - col2 FROM tab2 AS cor0
----
1067
2049
4289

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 94 * + col1 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - + col0 ) * + col0 AS col1 FROM tab0 cor0
----
-225
-7569
-9409

query I rowsort
SELECT - col0 * + - 25 + - + col1 * + col1 * + - col0 AS col0 FROM tab2 AS cor0
----
120796
338550
381056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1392
SELECT ALL 39 * - CAST( COUNT( * ) AS SIGNED ) * + + COUNT( * ) AS col1 FROM tab0
----
-351

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 39 * - CAST ( COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) AS col1 FROM tab0
----
-351

query II rowsort
SELECT ALL col2 * - + 16 AS col0, - 93 FROM tab2
----
-368
-93
-640
-93
-928
-93

query I rowsort
SELECT - col0 / col2 * - - col1 * - - 82 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 93 AS col0 FROM tab2 AS cor0
----
-139
-157
-168

query I rowsort
SELECT ALL + col1 * + 39 FROM tab0 AS cor0
----
3159
39
819

query I rowsort
SELECT - col1 * 33 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT DISTINCT + MAX( + col2 ) + + + 15 AS col0 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT + MAX ( + col2 ) + + + 15 AS col0 FROM tab1
----
111

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

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

query I rowsort
SELECT DISTINCT 73 + + col0 + 96 AS col0 FROM tab1 AS cor0
----
220
254
260

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL + COUNT( * ) - + - 35 col0 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1402
SELECT ALL + COUNT ( * ) - + - 35 col0 FROM tab0 AS cor0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1403
SELECT DISTINCT + + CAST( - + COUNT( * ) AS SIGNED ) + + + 61 col1 FROM tab0 AS cor0
----
58

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

query I rowsort
SELECT ALL col2 - + 95 + - col2 + - 84 * - col2 * 13 * col1 - + + col2 FROM tab2 AS cor0
----
1280798
3363225
4243359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + col0 - - col2 * + - col2 AS col0 FROM tab1
----
-3396
-4533
-9165

query III rowsort
SELECT * FROM tab0 WHERE 62 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1408
SELECT + 84 - col1 DIV CAST( 74 AS SIGNED ) + + col0 AS col2 FROM tab2
----
130
147
159

skipif mysql # not compatible
query I rowsort label-1408
SELECT + 84 - col1 / CAST ( 74 AS INTEGER ) + + col0 AS col2 FROM tab2
----
130
147
159

onlyif mysql # DIV for integer division: 
query II rowsort label-1409
SELECT ALL - col1 AS col2, col0 DIV col1 AS col1 FROM tab2
----
-51
0
-67
1
-77
0

skipif mysql # not compatible
query II rowsort label-1409
SELECT ALL - col1 AS col2, col0 / col1 AS col1 FROM tab2
----
-51
0
-67
1
-77
0

query I rowsort
SELECT - col0 * - - col0 - - 97 - + 22 AS col1 FROM tab2
----
-2041
-4021
-5550

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT 43 * - col1 DIV + col1 + + col2 - 51 AS col1 FROM tab0
----
-47
-84
5

skipif mysql # not compatible
query I rowsort label-1412
SELECT 43 * - col1 / + col1 + + col2 - 51 AS col1 FROM tab0
----
-47
-84
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE col0 <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE col0 <> - - CAST ( NULL AS INTEGER )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + col2 ) >= - - 71
----

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

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

query I rowsort
SELECT ALL - 91 * + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT 15 * + - col1 * 25 DIV - col1 FROM tab1 AS cor0
----
375
375
375

skipif mysql # not compatible
query I rowsort label-1418
SELECT 15 * + - col1 * 25 / - col1 FROM tab1 AS cor0
----
375
375
375

query I rowsort
SELECT + - 13 * col2 + + 49 + - col2 FROM tab1 AS cor0
----
-1295
-777
-903

query I rowsort
SELECT - - 44 * - 28 FROM tab1 AS cor0
----
-1232
-1232
-1232

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT - 26 DIV + 75 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 26 / + 75 FROM tab0 AS cor0
----
0
0
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT + MAX( ALL + col0 ) * - 90 FROM tab1 WHERE NOT + col0 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT + MAX ( ALL + col0 ) * - 90 FROM tab1 WHERE NOT + col0 + col2 IS NOT NULL
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * + 30 FROM tab1
----
1530
2550
2730

query I rowsort
SELECT 41 + - col2 AS col2 FROM tab0 AS cor0
----
-58
-6
31

query I rowsort
SELECT 53 AS col1 FROM tab0 cor0
----
53
53
53

query II rowsort
SELECT - col1 AS col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL + - COUNT( * ) * - + 71 col1 FROM tab0 cor0 WHERE NOT + col0 >= 96
----
142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1436
SELECT ALL + - COUNT ( * ) * - + 71 col1 FROM tab0 cor0 WHERE NOT + col0 >= 96
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1437
SELECT CAST( + col0 AS SIGNED ) + + col2 * + col0 FROM tab0
----
720
957
9700

skipif mysql # not compatible
query I rowsort label-1437
SELECT CAST ( + col0 AS INTEGER ) + + col2 * + col0 FROM tab0
----
720
957
9700

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

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

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

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

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

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

query I rowsort
SELECT ( + 55 ) AS col0 FROM tab2 WHERE 23 < - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT + 32 + col0 FROM tab0 WHERE - 33 <> ( + col0 * - col1 + + 84 )
----
119
129
47

query I rowsort
SELECT + col2 + - 31 FROM tab0
----
-21
16
68

query I rowsort
SELECT 58 * col2 FROM tab2
----
1334
2320
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL - MIN( - 48 ) + - SUM( DISTINCT col2 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL - MIN ( - 48 ) + - SUM ( DISTINCT col2 ) FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT COUNT( DISTINCT 58 ) * - 44 col2 FROM tab0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1448
SELECT COUNT ( DISTINCT 58 ) * - 44 col2 FROM tab0
----
-44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1450
SELECT * FROM tab2 WHERE NOT CAST( - ( - col0 ) AS SIGNED ) + + 3 NOT IN ( - 46 )
----

skipif mysql # not compatible
query III rowsort label-1450
SELECT * FROM tab2 WHERE NOT CAST ( - ( - col0 ) AS INTEGER ) + + 3 NOT IN ( - 46 )
----

query I rowsort
SELECT DISTINCT - 67 * + 21 FROM tab0 WHERE ( NULL ) > col2
----

query I rowsort
SELECT + 74 + - col2 FROM tab1
----
-22
15
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT ALL 8 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL 8 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab0 WHERE ( ( 8 ) ) IS NOT NULL
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1455
SELECT DISTINCT ( col2 ) DIV - 18 FROM tab1
----
-3
-5

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT ( col2 ) / - 18 FROM tab1
----
-3
-5

query I rowsort
SELECT + 39 + + col2 FROM tab1 WHERE - ( 71 ) NOT IN ( col1 )
----
107
135
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1457
SELECT CAST( NULL AS SIGNED ) * - 52 FROM tab2 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1457
SELECT CAST ( NULL AS INTEGER ) * - 52 FROM tab2 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT ALL - col0 DIV - col2 FROM tab0 WHERE NOT col2 IS NULL
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - col0 / - col2 FROM tab0 WHERE NOT col2 IS NULL
----
0
0
8

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1461
SELECT ALL MIN( col2 ) + - 68 * CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT col2 NOT BETWEEN + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL MIN ( col2 ) + - 68 * CAST ( NULL AS REAL ) FROM tab2 WHERE NOT col2 NOT BETWEEN + col2 AND NULL
----
NULL

query I rowsort
SELECT + 71 + - col0 FROM tab2
----
-4
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT ALL 32 - COUNT( * ) * COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL 32 - COUNT ( * ) * COUNT ( * ) FROM tab1
----
23

query I rowsort
SELECT - 31 / col0 FROM tab1 WHERE NOT col0 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT CAST( - AVG ( - 61 ) AS SIGNED ) * - ( + MAX( + col0 ) ) FROM tab0 cor0
----
-5917

skipif mysql # not compatible
query I rowsort label-1465
SELECT CAST ( - AVG ( - 61 ) AS INTEGER ) * - ( + MAX ( + col0 ) ) FROM tab0 cor0
----
-5917

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT + col2 DIV 67 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1466
SELECT + col2 / 67 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL COUNT( * ) * MAX( + 97 ) AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL COUNT ( * ) * MAX ( + 97 ) AS col2 FROM tab0 AS cor0
----
291

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 37 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - ( CAST ( 74 AS INTEGER ) ) FROM tab0
----
-74

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

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 ) WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT - 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT - - 8 DIV col0 + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1475
SELECT - - 8 / col0 + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL COUNT( - ( + 96 ) ) + COUNT( * ) FROM tab2 AS cor0 WHERE 61 IN ( col2 / + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL COUNT ( - ( + 96 ) ) + COUNT ( * ) FROM tab2 AS cor0 WHERE 61 IN ( col2 / + col0 )
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT col0 DIV - col2 + + col0 AS col1 FROM tab0 cor0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-1479
SELECT col0 / - col2 + + col0 AS col1 FROM tab0 cor0
----
15
79
97

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

skipif mysql # not compatible
query I rowsort label-1480
SELECT - + COUNT ( * ) + 45 * ( SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 76 * 66 FROM tab2 AS cor0
----
-5016

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT SUM( DISTINCT 83 ) FROM tab0 WHERE NULL NOT IN ( + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT SUM ( DISTINCT 83 ) FROM tab0 WHERE NULL NOT IN ( + 70 )
----
NULL

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

query I rowsort
SELECT ALL + col2 * + col1 FROM tab1 WHERE + 16 * col1 < col1 + ( + ( col2 ) + 10 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT ALL + 61 + + col2 DIV - 62 AS col2 FROM tab0
----
60
61
61

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL + 61 + + col2 / - 62 AS col2 FROM tab0
----
60
61
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT DISTINCT 40 DIV col2 * - col1 + col2 AS col0 FROM tab2
----
-28
-37
58

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT 40 / col2 * - col1 + col2 AS col0 FROM tab2
----
-28
-37
58

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

query I rowsort
SELECT col0 + + + 83 AS col1 FROM tab0 AS cor0
----
170
180
98

query I rowsort
SELECT 61 + 54 AS col0 FROM tab1 AS cor0
----
115
115
115

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

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

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

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

query II rowsort
SELECT - 79 AS col1, - col1 FROM tab2
----
-79
-51
-79
-67
-79
-77

query I rowsort
SELECT DISTINCT col1 - + - col2 + + 26 FROM tab2 AS cor0
----
100
143
151

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

query I rowsort
SELECT - 80 * + 80 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + ( - col2 ) + - 78 )
----

query I rowsort
SELECT ALL + - 98 + - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-144
-162
-173

query I rowsort
SELECT ALL + + col1 - - col2 + + + col0 * ( + col1 ) AS col1 FROM tab1 cor0
----
4392
489
824

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1504
SELECT * FROM tab2 cor0 WHERE NOT ( - col2 ) BETWEEN NULL AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1504
SELECT * FROM tab2 cor0 WHERE NOT ( - col2 ) BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT + ( + 75 ) FROM tab1
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT ALL - MAX( + 21 ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL - MAX ( + 21 ) FROM tab0
----
-21

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

query I rowsort
SELECT col0 * + 20 AS col0 FROM tab1
----
1020
1700
1820

query I rowsort
SELECT ALL 70 * - + 88 AS col0 FROM tab1
----
-6160
-6160
-6160

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > ( - 28 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT + COUNT( - ( + 77 ) ) DIV - COUNT( * ) + + COUNT( * ) * + 12 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1517
SELECT + COUNT ( - ( + 77 ) ) / - COUNT ( * ) + + COUNT ( * ) * + 12 FROM tab2 AS cor0
----
35

query I rowsort
SELECT - 96 AS col1 FROM tab0 AS cor0 WHERE NOT 39 * col2 BETWEEN 50 + 51 * 41 AND ( col2 / + ( + ( col0 ) ) )
----
-96
-96
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1519
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS DECIMAL ) * col2 + - col2 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-1519
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS REAL ) * col2 + - col2 + - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 32 * + col2 + - 20 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT ALL CAST( - SUM( ALL col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL CAST ( - SUM ( ALL col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-223

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

skipif mysql # not compatible
query III rowsort label-1522
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, - col0 - - - CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT + 66 + + 23 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col2 = NULL AND - 43 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col2 = NULL AND - 43 = NULL
----
0

query I rowsort
SELECT + ( + col0 ) * - - col0 + - col2 FROM tab0 AS cor0
----
178
7559
9310

query I rowsort
SELECT ALL - col0 + - 45 FROM tab1
----
-130
-136
-96

query I rowsort
SELECT 31 + col1 AS col1 FROM tab2
----
108
82
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT ( + 62 ) * + CAST( 69 AS SIGNED ) AS col2 FROM tab1 WHERE ( + col2 ) > + col1 * 86
----

skipif mysql # not compatible
query I rowsort label-1528
SELECT ( + 62 ) * + CAST ( 69 AS INTEGER ) AS col2 FROM tab1 WHERE ( + col2 ) > + col1 * 86
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1529
SELECT COUNT( * ) + + COUNT( * ), SUM( + - col0 ) + + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1
----
6
-228

skipif mysql # not compatible
query II rowsort label-1529
SELECT COUNT ( * ) + + COUNT ( * ), SUM ( + - col0 ) + + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1
----
6
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1530
SELECT - col0 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( + 97 * + CAST( - 70 AS SIGNED ) ) AND + 65
----

skipif mysql # not compatible
query I rowsort label-1530
SELECT - col0 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( + 97 * + CAST ( - 70 AS INTEGER ) ) AND + 65
----

query I rowsort
SELECT 42 * + 13 FROM tab1 AS cor0 WHERE + col1 IN ( + col2 + col1 + - col1 * + 42 * col0 )
----

query I rowsort
SELECT ALL - col2 / col1 FROM tab0 AS cor0 WHERE NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 8 col0, + 25 AS col0 FROM tab1 AS cor0
----
8
25

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1535
SELECT + COUNT( * ) DIV 43 - + 16 + ( + - 63 ) AS col2, MAX( col0 ) AS col2 FROM tab2
----
-79
75

skipif mysql # not compatible
query II rowsort label-1535
SELECT + COUNT ( * ) / 43 - + 16 + ( + - 63 ) AS col2, MAX ( col0 ) AS col2 FROM tab2
----
-79
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT DISTINCT + 64 * - + COUNT( * ) * + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-579

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT + 64 * - + COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-579

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT col0 IS NOT NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + col0 + 84 * - 53 * 88 > ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1544
SELECT - SUM ( - 18 ) AS col0 FROM tab0 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= - + col2
----

query I rowsort
SELECT DISTINCT col0 * + ( 18 ) FROM tab1
----
1530
1638
918

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT + ( 68 ) + + + col2 NOT BETWEEN ( NULL ) AND 57
----
0

skipif mysql # not compatible
query I rowsort label-1547
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT + ( 68 ) + + + col2 NOT BETWEEN ( NULL ) AND 57
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1548
SELECT DISTINCT + + 82 DIV + + 25 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT + + 82 / + + 25 FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT + 71 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - + col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col0 FROM tab0 WHERE NOT col0 > - + 17
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1554
SELECT CAST( col1 AS SIGNED ) AS col0, 5 * - col0 AS col0 FROM tab2
----
51
-230
67
-375
77
-320

skipif mysql # not compatible
query II rowsort label-1554
SELECT CAST ( col1 AS INTEGER ) AS col0, 5 * - col0 AS col0 FROM tab2
----
51
-230
67
-375
77
-320

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 43 / + col2 * + col0 * + col2 + + ( + 49 ) * - col2 FROM tab0 WHERE NOT NULL >= NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1562
SELECT ALL - COUNT( + CAST( + + 14 AS SIGNED ) ) AS col2, + COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL - COUNT ( + CAST ( + + 14 AS INTEGER ) ) AS col2, + COUNT ( * ) FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT MIN( ALL 25 ) - 18 col0 FROM tab1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1563
SELECT MIN ( ALL 25 ) - 18 col0 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL COUNT( * ) + + - 65 AS col1 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL COUNT ( * ) + + - 65 AS col1 FROM tab0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + - col0 col0 FROM tab1
----
138
65
90

query I rowsort
SELECT + 5 - + 18 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - 77 + + - 38 AS col2 FROM tab1 AS cor0
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT MAX( DISTINCT + col1 ), - 44 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-1568
SELECT MAX ( DISTINCT + col1 ), - 44 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
-44

query I rowsort
SELECT ALL + 62 - + col2 FROM tab1
----
-34
-6
3

query II rowsort
SELECT col2 AS col2, col1 * + 68 AS col2 FROM tab2 AS cor0
----
23
3468
40
5236
58
4556

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

skipif mysql # not compatible
query II rowsort label-1571
SELECT ALL + 41 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
41
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL - 4 col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, 49 + col2, - + col0 * + - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1572
SELECT ALL - 4 col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, 49 + col2, - + col0 * + - CAST ( col2 AS INTEGER ) )
----

query II rowsort
SELECT + col1 AS col2, col1 - - 7 + - col2 AS col1 FROM tab2 AS cor0
----
51
35
67
16
77
44

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1575
SELECT - + CAST( NULL AS SIGNED ) col2, 55 + - - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
142
NULL
152
NULL
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1575
SELECT - + CAST ( NULL AS INTEGER ) col2, 55 + - - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
142
NULL
152
NULL
70

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT - MIN ( + ( + - col2 ) ) AS col0 FROM tab1
----
96

query I rowsort
SELECT - 12 * col0 * - - ( 2 ) FROM tab0
----
-2088
-2328
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT MIN( DISTINCT - 81 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1580
SELECT MIN ( DISTINCT - 81 ) FROM tab0
----
-81

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

query I rowsort
SELECT DISTINCT - + 95 FROM tab2 cor0
----
-95

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 75 NOT BETWEEN ( + col2 ) AND 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 23 FROM tab1 WHERE NULL IS NULL
----
23

query I rowsort
SELECT DISTINCT - col0 + + - col1 + + + 66 * + 42 * - - col0 AS col2 FROM tab0
----
241056
268786
41484

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

query I rowsort
SELECT ALL 51 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 35 AND + - col0 * - + col1
----

query I rowsort
SELECT DISTINCT + 19 + col1 * + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
10015
201038
2144

query II rowsort
SELECT 70 * col2 + - col0 AS col1, + col1 AS col1 FROM tab0 cor0
----
3275
81
613
21
6833
1

query I rowsort
SELECT DISTINCT - col1 + - 6 AS col0 FROM tab1 AS cor0
----
-11
-20
-53

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 66 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1593
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + + 39 col0 FROM tab0 AS cor0
----
36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 col1 FROM tab0 cor0
----
-196
-62
-97

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

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

query I rowsort
SELECT 44 - + col0 FROM tab0 AS cor0
----
-43
-53
29

query I rowsort
SELECT - 85 - + + 55 AS col1 FROM tab1 AS cor0
----
-140
-140
-140

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 0 >= col2 * 14 + ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT + + 95 FROM tab0 cor0
----
95
95
95

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT + - col2 DIV + + col1 - 77 + 63 * - + 42 * - - 42 FROM tab2 cor0
----
-111209
-111209
-111209

skipif mysql # not compatible
query I rowsort label-1605
SELECT + - col2 / + + col1 - 77 + 63 * - + 42 * - - 42 FROM tab2 cor0
----
-111209
-111209
-111209

query I rowsort
SELECT col0 * col1 * 5 FROM tab2 AS cor0
----
11730
24640
25125

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL - SUM( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL - SUM ( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
-156

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( 90 ) ) IN ( 4 * + col1 * - + 91, col1, 85 + + - ( col1 ) )
----

query I rowsort
SELECT ALL col1 * col1 * 8 AS col1 FROM tab1
----
1568
17672
200

query II rowsort
SELECT ALL col1 AS col2, + col0 FROM tab0
----
1
97
21
87
81
15

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

query I rowsort
SELECT - col0 * - 18 AS col2 FROM tab2
----
1152
1350
828

query I rowsort
SELECT - 28 * 69 FROM tab1
----
-1932
-1932
-1932

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT ALL - col0 + - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - col0 + - col2 / - col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL 81 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL 81 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
243

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1620
SELECT DISTINCT - ( + - ( COUNT ( * ) ) ) col2 FROM tab2 AS cor0 WHERE NOT - col0 * 70 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT DISTINCT - - 90 + - CAST( - ( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
32
50
67

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT - - 90 + - CAST ( - ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
32
50
67

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( 1 + - 72 ) AND 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT - - COUNT( * ) FROM tab1 cor0 WHERE - col0 * - + 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT - - COUNT ( * ) FROM tab1 cor0 WHERE - col0 * - + 75 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT + - col2 * + + CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1624
SELECT + - col2 * + + CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + - 80 - + col1 NOT BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT DISTINCT + col1 DIV + col1 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + col1 / + col1 AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + 65 - + 58 - ( 57 ) + + + 40 * COUNT( * ) col1 FROM tab2
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1628
SELECT + 65 - + 58 - ( 57 ) + + + 40 * COUNT ( * ) col1 FROM tab2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL col2 DIV + - 9 + 97 * ( 92 ) FROM tab2
----
8918
8920
8922

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL col2 / + - 9 + 97 * ( 92 ) FROM tab2
----
8918
8920
8922

query I rowsort
SELECT ALL - + col1 + + 11 + col1 * col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-88
421
6444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT CAST( - + 52 AS SIGNED ) * + - col2 AS col1 FROM tab2
----
1196
2080
3016

skipif mysql # not compatible
query I rowsort label-1631
SELECT CAST ( - + 52 AS INTEGER ) * + - col2 AS col1 FROM tab2
----
1196
2080
3016

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

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

query I rowsort
SELECT + ( + - col1 ) * - 65 AS col1 FROM tab2
----
3315
4355
5005

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( col0 + + + 65 <= col1 * - col1 + + + col1 + + col2 ) )
----

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

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

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

query II rowsort
SELECT + col0 * 95 + + ( - - 28 ) + - col1 + - - 96 * col2 * - - col2 * col1, ( + col0 ) FROM tab1 AS cor0
----
12391163
51
1678978
85
20872114
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 85 ) col1 FROM tab1
----
-85
-85
-85

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1640
SELECT + COUNT( ALL + col1 ) DIV + - 45 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1640
SELECT + COUNT ( ALL + col1 ) / + - 45 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-1641
SELECT MIN ( DISTINCT - - ( + col2 ) ) FROM tab0 WHERE NOT - ( - - col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT - MAX( - - ( - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1642
SELECT - MAX ( - - ( - col1 ) ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT col1 * + + col2 + + + col2 FROM tab1
----
1440
3264
354

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

skipif mysql # not compatible
query I rowsort label-1644
SELECT - col1 * + 0 / col2 + - - 66 AS col2 FROM tab0
----
66
66
66

query I rowsort
SELECT ALL 81 * - col1 + - col0 AS col0 FROM tab1
----
-1185
-3898
-490

query I rowsort
SELECT DISTINCT col0 + 49 FROM tab0 cor0
----
136
146
64

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

query I rowsort
SELECT + col2 * 42 FROM tab0 AS cor0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT + COUNT( * ) * MIN( + - col0 ) AS col0 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT + COUNT ( * ) * MIN ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-291

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

query I rowsort
SELECT + - col2 + col0 + - col1 * 69 * + 74 FROM tab2 cor0
----
-260383
-342085
-393138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1652
SELECT + 87 + - CAST( - + 84 AS SIGNED ) * - 41 - + col0 * col0 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
-5473
-23
-7453
-40
-8982
-58

skipif mysql # not compatible
query II rowsort label-1652
SELECT + 87 + - CAST ( - + 84 AS INTEGER ) * - 41 - + col0 * col0 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
-5473
-23
-7453
-40
-8982
-58

query I rowsort
SELECT ALL + 91 - - 76 * col0 FROM tab2 AS cor0
----
3587
4955
5791

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1657
SELECT DISTINCT + col1 * + 14 AS col2, + col2 DIV + + 71 AS col1 FROM tab2
----
1078
0
714
0
938
0

skipif mysql # not compatible
query II rowsort label-1657
SELECT DISTINCT + col1 * + 14 AS col2, + col2 / + + 71 AS col1 FROM tab2
----
1078
0
714
0
938
0

query I rowsort
SELECT ALL - col1 - + 69 AS col1 FROM tab2
----
-120
-136
-146

query III rowsort
SELECT * FROM tab2 WHERE + + col1 <> + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL 42 * + MAX ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT + MAX( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1662
SELECT + MAX ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT - COUNT( DISTINCT - - col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1664
SELECT - COUNT ( DISTINCT - - col2 ) FROM tab0 cor0
----
-3

query II rowsort
SELECT DISTINCT - - 35 * + + 16, + ( col2 ) AS col2 FROM tab2 AS cor0
----
560
23
560
40
560
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL + - COUNT( DISTINCT + + 53 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL + - COUNT ( DISTINCT + + 53 ) AS col2 FROM tab0 AS cor0
----
-1

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

query II rowsort
SELECT + col0, - col1 * + col1 FROM tab1 AS cor0
----
51
-196
85
-25
91
-2209

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1670
SELECT ALL 78 DIV - ( + COUNT( * ) ) AS col2, + 23 AS col0 FROM tab2 AS cor0
----
-26
23

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL 78 / - ( + COUNT ( * ) ) AS col2, + 23 AS col0 FROM tab2 AS cor0
----
-26
23

onlyif mysql # DIV for integer division: 
query II rowsort label-1671
SELECT ALL col0 DIV - - 90 + col1 AS col2, 10 DIV - - 86 col1 FROM tab1 AS cor0
----
14
0
48
0
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1671
SELECT ALL col0 / - - 90 + col1 AS col2, 10 / - - 86 col1 FROM tab1 AS cor0
----
14
0
48
0
5
0

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab2 AS cor0 WHERE + col0 * - col2 / + - 36 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL - MIN ( col0 ) FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT - 22 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT - 22 / col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT DISTINCT - COUNT( + col1 ) + 14 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT - COUNT ( + col1 ) + 14 FROM tab0
----
11

query I rowsort
SELECT 61 * col1 AS col1 FROM tab1
----
2867
305
854

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL COUNT( * ) * + + 5 + - - COUNT( * ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL COUNT ( * ) * + + 5 + - - COUNT ( * ) AS col2 FROM tab0
----
18

query I rowsort
SELECT + + col1 / 25 AS col2 FROM tab0 WHERE - col2 * - + col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT ALL - col1 * - col1 * - col0 + + + 75 DIV - col1 FROM tab2
----
-119647
-336676
-379456

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - col1 * - col1 * - col0 + + + 75 / - col1 FROM tab2
----
-119647
-336676
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL - COUNT( * ) + - + 28 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - COUNT ( * ) + - + 28 FROM tab2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT SUM( + col1 ) + + MIN( ALL - + col2 ) col0 FROM tab2
----
137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1682
SELECT DISTINCT SUM ( + col1 ) + + MIN ( ALL - + col2 ) col0 FROM tab2
----
137

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

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

query I rowsort
SELECT DISTINCT - + 18 AS col0 FROM tab0 cor0
----
-18

query I rowsort
SELECT ALL - - 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

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

query I rowsort
SELECT - ( + + col2 ) * 95 + - + col0 FROM tab1
----
-5690
-6551
-9171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1688
SELECT - + 67 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1688
SELECT - + 67 / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - col0 * - col0 * + + ( - - col1 ) + + col2 - + col0 * - + col1 * col0 AS col2 FROM tab1 cor0
----
72309
72924
778482

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT DISTINCT - ( + col1 ) + - - ( col1 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT - ( + col1 ) + - - ( col1 ) / - col2 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT + CAST( - 0 AS SIGNED ) * - col1 - + - col2 * col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-1693
SELECT + CAST ( - 0 AS INTEGER ) * - col1 - + - col2 * col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT + col1 - - col0 * - col0 AS col1 FROM tab2
----
-2065
-4019
-5558

query II rowsort
SELECT 73, + col0 AS col1 FROM tab0
----
73
15
73
87
73
97

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

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

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

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

query II rowsort
SELECT - col0 * - 77 AS col2, col0 * col2 AS col0 FROM tab2
----
3542
1058
4928
2560
5775
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT - col1 DIV + 42 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1699
SELECT - col1 / + 42 FROM tab0
----
-1
0
0

query I rowsort
SELECT 93 * - 23 AS col2 FROM tab0
----
-2139
-2139
-2139

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 * col2 / + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1702
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + + col1 >= col0 * + CAST( - 17 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1702
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + + col1 >= col0 * + CAST ( - 17 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col1 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL COUNT( * ) * - 66 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL COUNT ( * ) * - 66 FROM tab0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT 73 * + col1 + col0 DIV - + 45 AS col0 FROM tab1
----
1021
3429
364

skipif mysql # not compatible
query I rowsort label-1707
SELECT 73 * + col1 + col0 / - + 45 AS col0 FROM tab1
----
1021
3429
364

query I rowsort
SELECT ALL col2 * col1 * + 24 AS col2 FROM tab0
----
2376
5040
91368

query I rowsort
SELECT ALL - col2 * 32 FROM tab2
----
-1280
-1856
-736

query I rowsort
SELECT 71 + + 93 FROM tab2
----
164
164
164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1711
SELECT DISTINCT * FROM tab0 WHERE 74 + - + col2 / - CAST( + 78 AS SIGNED ) + 49 + - + ( + 55 ) - col0 * - col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1711
SELECT DISTINCT * FROM tab0 WHERE 74 + - + col2 / - CAST ( + 78 AS INTEGER ) + 49 + - + ( + 55 ) - col0 * - col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + + + ( - col2 ) AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT col2 - + 79 / col2 * + 89 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + 37 AS col2 FROM tab1 AS cor0
----
-14
-48
-54

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col0 <> + - 29
----
23
40
58

query II rowsort
SELECT - col2 AS col2, + col0 * - 12 FROM tab2 AS cor0
----
-23
-552
-40
-768
-58
-900

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

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

query I rowsort
SELECT DISTINCT + + col0 + + 36 AS col2 FROM tab0 AS cor0
----
123
133
51

query I rowsort
SELECT col0 + 76 + - 90 AS col0 FROM tab2 AS cor0
----
32
50
61

query I rowsort
SELECT + + col2 * - - col2 + - + col2 FROM tab0 AS cor0
----
2162
90
9702

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 * - 52 + 29 + - 44 col0 FROM tab2 AS cor0
----
-1783
-1783
-1783

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

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

query II rowsort
SELECT DISTINCT + + col2 AS col0, + 2 + - 14 FROM tab2 WHERE NULL > - - 90 * + col0
----

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

query I rowsort
SELECT 20 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT ( 99 ) * + COUNT( * ) AS col0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT ( 99 ) * + COUNT ( * ) AS col0 FROM tab0
----
297

query II rowsort
SELECT ALL col0, ( + col0 ) + + 83 AS col2 FROM tab1
----
51
134
85
168
91
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT - ( - MIN( + - 6 ) ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN + ( - + 50 ) * col2 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT - ( - MIN ( + - 6 ) ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN + ( - + 50 ) * col2 AND + col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + 10 ) * - col1 * col0 AS col0 FROM tab0
----
-12150
-18270
-970

query I rowsort
SELECT DISTINCT 9 * - col1 * ( - + col0 ) / - 42 AS col1 FROM tab1 WHERE NOT + - 1 IS NOT NULL
----

query II rowsort
SELECT 78, 88 + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
78
-12
78
-2121
78
-9713

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

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

query I rowsort
SELECT DISTINCT - col1 * + ( - 34 ) + + 21 AS col2 FROM tab0
----
2775
55
735

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT 47 + - COUNT( * ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1741
SELECT 47 + - COUNT ( * ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT + - 83 * col0 + col2 FROM tab1 AS cor0
----
-4137
-6996
-7485

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1745
SELECT ALL - 69 / - col0 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) * + col1 + - + col2 <> - + 15
----

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL - 69 / - col0 FROM tab0 WHERE + CAST ( NULL AS REAL ) * + col1 + - + col2 <> - + 15
----

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

query I rowsort
SELECT DISTINCT 28 + + ( - col2 ) - + ( + col1 ) * - col1 AS col2 FROM tab2
----
2606
4459
5917

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

skipif mysql # not compatible
query I rowsort label-1748
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1750
SELECT - - col2 + - - col2 + - 31 * - + CAST( NULL AS SIGNED ) + - - CAST( + col1 AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT - - col2 + - - col2 + - 31 * - + CAST ( NULL AS INTEGER ) + - - CAST ( + col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 18 + + col1 AS col0 FROM tab2 AS cor0
----
69
85
95

onlyif mysql # DIV for integer division: 
query II rowsort label-1752
SELECT ( - + 82 ) DIV 45 AS col2, col2 FROM tab2
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
query II rowsort label-1752
SELECT ( - + 82 ) / 45 AS col2, col2 FROM tab2
----
-1
23
-1
40
-1
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT ALL + col0 DIV + - col1 col0 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1753
SELECT ALL + col0 / + - col1 col0 FROM tab1
----
-1
-17
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 36 col2, + ( + - 99 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 5363ac4a6aa22c3a30fb96f095d3e0d9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1755
SELECT DISTINCT + ( col0 ) + col2 + - CAST( NULL AS SIGNED ) / + CAST( - col2 AS SIGNED ) AS col2, 96 AS col1 FROM tab2
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1755
SELECT DISTINCT + ( col0 ) + col2 + - CAST ( NULL AS INTEGER ) / + CAST ( - col2 AS INTEGER ) AS col2, 96 AS col1 FROM tab2
----
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1756
SELECT DISTINCT + CAST( + ( 12 ) AS SIGNED ), + col1 AS col2 FROM tab0
----
12
1
12
21
12
81

skipif mysql # not compatible
query II rowsort label-1756
SELECT DISTINCT + CAST ( + ( 12 ) AS INTEGER ), + col1 AS col2 FROM tab0
----
12
1
12
21
12
81

query I rowsort
SELECT ALL col0 + - 36 AS col2 FROM tab2
----
10
28
39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 96 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 62 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + + col1 * + + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > NULL
----

query I rowsort
SELECT 74 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col2 FROM tab2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT - COUNT( + + 2 ) AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) - col1 + - col2 + + 39 * CAST( - - 69 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT - COUNT ( + + 2 ) AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) - col1 + - col2 + + 39 * CAST ( - - 69 AS INTEGER ) IS NULL
----
0

query II rowsort
SELECT + ( - col0 ), + col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT - - 37 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - 27 + - 96 / + 8 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - 27 + - 96 / + 8 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 * - col2 = + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL - COUNT( + + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL - COUNT ( + + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT ( NULL = col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 57 NOT IN ( - + 63 / 79, - col0, + - col0 * 66 * + col0, col0 )
----

query I rowsort
SELECT 49 * + + col1 FROM tab1 AS cor0
----
2303
245
686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - ( 15 ) + - + 23 * + + col0 col0, 12 FROM tab0
----
-1995
12
-2245
12
-279
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 91 col1 FROM tab0
----
1365
7917
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL - - col0 DIV - 62 + col1 AS col1 FROM tab0 AS cor0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL - - col0 / - 62 + col1 AS col1 FROM tab0 AS cor0
----
0
20
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT DISTINCT - 25 * ( - MAX( - 13 ) ) col0 FROM tab1 AS cor0
----
-325

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1777
SELECT DISTINCT - 25 * ( - MAX ( - 13 ) ) col0 FROM tab1 AS cor0
----
-325

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + ( - 38 )
----

query I rowsort
SELECT + - col1 + 9 FROM tab0 cor0
----
-12
-72
8

query I rowsort
SELECT 41 + 34 * + col2 * + + 97 FROM tab1 AS cor0
----
194623
224305
316649

onlyif mysql # aggregate syntax: 
query II rowsort label-1781
SELECT DISTINCT - + 67 * - SUM( - 69 ) AS col2, 75 AS col2 FROM tab1 AS cor0
----
-13869
75

skipif mysql # not compatible
query II rowsort label-1781
SELECT DISTINCT - + 67 * - SUM ( - 69 ) AS col2, 75 AS col2 FROM tab1 AS cor0
----
-13869
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT + MAX( DISTINCT - 41 ) + - 9 col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT + MAX ( DISTINCT - 41 ) + - 9 col0 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT ALL - col1 * - + col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 WHERE + 11 * + ( - + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT 4 * + + col2 AS col2, 94 + + 75 * 50 * + + col2 * - + col1 FROM tab2
----
160
-11549906
232
-14572406
92
-4398656

query I rowsort
SELECT + col2 + - + 66 AS col0 FROM tab2
----
-26
-43
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + - col2 - - - col0 col1 FROM tab0
----
-115
-150
-249

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + col2
----

query II rowsort
SELECT ALL 38 + 2, col0 AS col2 FROM tab2
----
40
46
40
64
40
75

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 92, 8 * - col0 col2 FROM tab2 AS cor0
----
-92
-368
-92
-512
-92
-600

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + 21 + - 27 > ( - col0 + + 70 / + 24 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + + col1 * col0 * - 30 FROM tab2 AS cor0
----
11306250
3237480
9461760

query I rowsort
SELECT DISTINCT col0 - 13 * col1 AS col0 FROM tab2 AS cor0
----
-617
-796
-937

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 11 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 - - 35 * + col0 FROM tab2 AS cor0
----
1661
2317
2692

query I rowsort
SELECT + + col0 / - + col2 + - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) - + - 48 FROM tab0
----
135
145
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col0 ) col1, col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL + 37 * col2 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT ALL - 98 DIV ( + 30 ) + - col0 DIV - ( 19 ) AS col1 FROM tab0 AS cor0
----
-3
1
2

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - 98 / ( + 30 ) + - col0 / - ( 19 ) AS col1 FROM tab0 AS cor0
----
-3
1
2

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + col2 + + - col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1803
SELECT + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT COUNT( DISTINCT - col2 ) FROM tab1 WHERE NOT col0 * - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1804
SELECT COUNT ( DISTINCT - col2 ) FROM tab1 WHERE NOT col0 * - col0 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 49 BETWEEN NULL AND + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT COUNT( ALL 65 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1806
SELECT DISTINCT COUNT ( ALL 65 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1807
SELECT ALL * FROM tab0 WHERE + - CAST( NULL AS DECIMAL ) IN ( + 21 )
----

skipif mysql # not compatible
query III rowsort label-1807
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS REAL ) IN ( + 21 )
----

query I rowsort
SELECT DISTINCT 29 * + col0 AS col0 FROM tab2
----
1334
1856
2175

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + - col1 / + col0 * - + col0
----

query I rowsort
SELECT ALL - ( 65 ) FROM tab2
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-1811
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - - 72 AS col2 FROM tab2 cor0
----
72
72
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT COUNT( * ) DIV 71 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1813
SELECT COUNT ( * ) / 71 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 81 + - col1
----

query I rowsort
SELECT col2 + + - col0 AS col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT DISTINCT - 54 + + + ( - COUNT( * ) ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT - 54 + + + ( - COUNT ( * ) ) FROM tab2
----
-57

query I rowsort
SELECT - 29 + - - col2 AS col0 FROM tab2
----
-6
11
29

query I rowsort
SELECT + ( + col2 ) * - 53 AS col0 FROM tab1 AS cor0
----
-3127
-3604
-5088

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + 43 * - - col0 + - - col0 <= - 20 * - + 7 - + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - 55 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 27 / - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 45 FROM tab2 cor0
----
-45
-45
-45

query I rowsort
SELECT + + ( ( + col2 ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL + COUNT( - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * ( + col0 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + COUNT ( - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * ( + col0 ) > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT ALL col0 - + col2 + - ( col0 ) DIV + - col1 - + + col0 AS col2 FROM tab2 AS cor0
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL col0 - + col2 + - ( col0 ) / + - col1 - + + col0 AS col2 FROM tab2 AS cor0
----
-23
-40
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1826
SELECT DISTINCT COUNT( DISTINCT - CAST( + 40 AS SIGNED ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT COUNT ( DISTINCT - CAST ( + 40 AS INTEGER ) ) FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 IN ( + + col2, col2, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT - 1 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT - 1 / col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1829
SELECT CAST( NULL AS SIGNED ) / - col0 - col1, col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1829
SELECT CAST ( NULL AS INTEGER ) / - col0 - col1, col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT 48 + ( - 7 ) FROM tab0
----
41

query I rowsort
SELECT + 35 * - - 37 + + 61 FROM tab2
----
1356
1356
1356

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 * - col2 - + + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1832
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 * - col2 - + + col2 > NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1833
SELECT ALL + 44 + col0 DIV + - col1, + col1 FROM tab0 AS cor0
----
-53
1
40
21
44
81

skipif mysql # not compatible
query II rowsort label-1833
SELECT ALL + 44 + col0 / + - col1, + col1 FROM tab0 AS cor0
----
-53
1
40
21
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL + 91 * col0 AS col0 FROM tab0 cor0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT + - ( - MAX( ALL col0 ) ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1836
SELECT + - ( - MAX ( ALL col0 ) ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT 80 * - col2 AS col2 FROM tab2
----
-1840
-3200
-4640

query I rowsort
SELECT - col1 + 60 - + - col2 * + + 34 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1343
1965
791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT - col0 * + 45 * - - col2 FROM tab0 AS cor0
----
-31725
-39150
-432135

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT DISTINCT ( - + col0 ) DIV col2 AS col0 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT ( - + col0 ) / col2 AS col0 FROM tab2 cor0
----
-1
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1843
SELECT ALL - MIN( + col0 ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - MIN ( + col0 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
17

query II rowsort
SELECT + 33, 27 + 26 AS col0 FROM tab2 cor0
----
33
53
33
53
33
53

query I rowsort
SELECT - col1 * - + col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT ( - col0 ) FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - col1 / + + 58 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1846
SELECT ( - col0 ) FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col1 / + + 58 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1847
SELECT - COUNT( * ) DIV + + ( - COUNT( * ) ) col1 FROM tab2, tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1847
SELECT - COUNT ( * ) / + + ( - COUNT ( * ) ) col1 FROM tab2, tab1 AS cor0
----
1

query I rowsort
SELECT ALL - 30 * - col0 AS col1 FROM tab1
----
1530
2550
2730

query I rowsort
SELECT DISTINCT + col2 * 13 AS col2 FROM tab0
----
1287
130
611

query I rowsort
SELECT DISTINCT - 80 + - 90 + col0 FROM tab0
----
-155
-73
-83

query I rowsort
SELECT 23 + + ( - 76 ) FROM tab2
----
-53
-53
-53

query I rowsort
SELECT ALL + 57 AS col1 FROM tab1 cor0
----
57
57
57

query I rowsort
SELECT col1 + - 28 FROM tab1 AS cor0
----
-14
-23
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT DISTINCT + COUNT( * ) col0, 7 FROM tab0 AS cor0 WHERE NOT + 94 * col0 / - col1 IS NULL
----
3
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1854
SELECT DISTINCT + COUNT ( * ) col0, 7 FROM tab0 AS cor0 WHERE NOT + 94 * col0 / - col1 IS NULL
----
3
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT + col2 * + - ( + CAST( - col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-1855
SELECT + col2 * + - ( + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
100
2209
9801

query II rowsort
SELECT ALL + col2 * ( 69 ), col0 FROM tab1 AS cor0
----
4071
85
4692
91
6624
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT DISTINCT - COUNT( * ) + - 54 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT - COUNT ( * ) + - 54 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT - COUNT( * ) * 84 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-1858
SELECT - COUNT ( * ) * 84 FROM tab2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT DISTINCT + - SUM( - col2 ) AS col2 FROM tab1 WHERE + 29 IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT + - SUM ( - col2 ) AS col2 FROM tab1 WHERE + 29 IS NOT NULL
----
223

query I rowsort
SELECT + 6 * 69 FROM tab2
----
414
414
414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + 86 + - 33 * - + 19 col0 FROM tab2
----
5013
6389
7249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1862
SELECT + col1 + - CAST( NULL AS DECIMAL ) + 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT + col1 + - CAST ( NULL AS REAL ) + 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL - COUNT( DISTINCT + col0 ) + - MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL - COUNT ( DISTINCT + col0 ) + - MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL < 19 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + - col2 + + - col1 col0 FROM tab1 AS cor0
----
-123
-183
-206

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT ALL - col1 DIV 17 + + col1 + - + 14 FROM tab2 AS cor0
----
34
50
59

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - col1 / 17 + + col1 + - + 14 FROM tab2 AS cor0
----
34
50
59

query I rowsort
SELECT DISTINCT - + col0 + - - col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT DISTINCT - + col0 - + col2 + - ( + col1 ) * + + 4 AS col1 FROM tab0 cor0
----
-181
-200
-386

query II rowsort
SELECT DISTINCT - + 58 * col0 AS col1, 44 + - + col0 * + - 54 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT DISTINCT - MIN( ALL + col2 ) - COUNT( - ( + col1 ) ) AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT - MIN ( ALL + col2 ) - COUNT ( - ( + col1 ) ) AS col0 FROM tab2
----
-26

query II rowsort
SELECT + 5 * + ( col1 ) + + - col0, - col1 AS col1 FROM tab2
----
209
-51
260
-67
321
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL COUNT( - - 70 ) + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL COUNT ( - - 70 ) + COUNT ( * ) AS col0 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 99 + - + 73 col2 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT col1 * 4 AS col2 FROM tab1 AS cor0
----
188
20
56

query I rowsort
SELECT col1 * + - 31 - - - ( - col2 ) - + - col0 FROM tab0 AS cor0
----
-2449
-554
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT - SUM( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT - SUM ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT 2 * CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-1878
SELECT 2 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT ALL * FROM tab1 WHERE + 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT DISTINCT - 90 * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
810

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - 90 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
810

query I rowsort
SELECT DISTINCT - 91 * - 87 AS col1 FROM tab2
----
7917

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1882
SELECT + ( col2 ) * CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT + ( col2 ) * CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL + MAX( + 23 ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL + MAX ( + 23 ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT DISTINCT col2 * + - 11 FROM tab2 AS cor0
----
-253
-440
-638

query I rowsort
SELECT ALL + 74 * - - col0 * col0 + - 79 FROM tab2 AS cor0
----
156505
303025
416171

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 64 >= - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 42 AND NULL
----

query II rowsort
SELECT DISTINCT 82, - ( col2 ) * - - 64 * 26 + + col1 AS col0 FROM tab1
----
82
-113105
82
-159730
82
-98171

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT + ( + COUNT( * ) ) * - - 85 * COUNT( * ) FROM tab0
----
765

skipif mysql # not compatible
query I rowsort label-1889
SELECT + ( + COUNT ( * ) ) * - - 85 * COUNT ( * ) FROM tab0
----
765

query I rowsort
SELECT ALL 18 + - + col0 FROM tab1
----
-33
-67
-73

query II rowsort
SELECT col1, + 66 * + col1 * + col0 FROM tab1
----
14
47124
47
282282
5
28050

query II rowsort
SELECT 26 AS col1, + col2 FROM tab2
----
26
23
26
40
26
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col0 - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col0 - col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 55 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL 36 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL 36 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
39

query II rowsort
SELECT ( col0 ), col2 + + col0 * - col0 * 19 FROM tab1 cor0
----
51
-49323
85
-137216
91
-157271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + col1 col0 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT DISTINCT 48 - - 86 AS col2, - 6 AS col0 FROM tab2 AS cor0
----
134
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1900
SELECT DISTINCT + col0 + - col0 AS col2, CAST( - 55 AS SIGNED ) * 58 * - + 89 + + col0 AS col2 FROM tab2 AS cor0
----
0
283956
0
283974
0
283985

skipif mysql # not compatible
query II rowsort label-1900
SELECT DISTINCT + col0 + - col0 AS col2, CAST ( - 55 AS INTEGER ) * 58 * - + 89 + + col0 AS col2 FROM tab2 AS cor0
----
0
283956
0
283974
0
283985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL + + CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL + + CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT DISTINCT - - 9 DIV - col2 + 91 FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - - 9 / - col2 + 91 FROM tab2 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + SUM( ALL + + 89 ) FROM tab0 AS cor0 WHERE - 52 <> + - ( - + 8 )
----
267

skipif mysql # not compatible
query I rowsort label-1903
SELECT + SUM ( ALL + + 89 ) FROM tab0 AS cor0 WHERE - 52 <> + - ( - + 8 )
----
267

query I rowsort
SELECT 88 - + - col1 FROM tab0 AS cor0
----
109
169
89

onlyif mysql # DIV for integer division: 
query II rowsort label-1905
SELECT DISTINCT 46 DIV + 55 - + col1 AS col0, - col0 + 26 * col2 DIV + - col1 col1 FROM tab0
----
-1
-2671
-21
-99
-81
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1905
SELECT DISTINCT 46 / + 55 - + col1 AS col0, - col0 + 26 * col2 / + - col1 col1 FROM tab0
----
-1
-2671
-21
-99
-81
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT + 89 - + COUNT( * ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-1906
SELECT + 89 - + COUNT ( * ) FROM tab2
----
86

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + + 80 NOT IN ( + 67 )
----

query I rowsort
SELECT col2 * - - col1 * col2 + + - 20 AS col1 FROM tab0
----
178909
2080
9781

query I rowsort
SELECT ALL - ( + col0 ) * col1 * - + col1 + 57 FROM tab1 WHERE NOT ( - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT + 60 * + + COUNT( * ) AS col2 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + 60 * + + COUNT ( * ) AS col2 FROM tab0
----
180

query II rowsort
SELECT col1 * col1 * - col1, + col0 AS col0 FROM tab0
----
-1
97
-531441
15
-9261
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT + SUM( + 36 ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + SUM ( + 36 ) FROM tab1 AS cor0
----
108

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + - col0 + + col2 + - col0 / 69 + - col1 > + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 - col2 ) IS NULL
----

query I rowsort
SELECT - 90 * + 91 - + 41 * + col2 AS col1 FROM tab0 WHERE NOT + col0 * col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL - COUNT( * ) FROM tab1 WHERE - 5 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - 5 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col1 * col2 + 78 AS col0 FROM tab0
----
177
288
3885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - 61 + col2 * 9 col0 FROM tab2
----
-4846
-5008
-5161

query I rowsort
SELECT col1 + + 74 FROM tab1
----
121
79
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT - ( + CAST( SUM( - col1 ) AS SIGNED ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1920
SELECT - ( + CAST ( SUM ( - col1 ) AS INTEGER ) ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 * col0 AS col0 FROM tab1
----
4368
510
765

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1922
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + col2 IN ( 54 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-1922
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + col2 IN ( 54 * - col2 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + 63 - 10 >= + col1
----
1
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 27 ) col1 FROM tab0
----
27
27
27

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN + 17 AND + ( 49 ) * ( col0 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1926
SELECT ALL * FROM tab1 WHERE NOT + 71 / + CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND ( + 69 )
----

skipif mysql # not compatible
query III rowsort label-1926
SELECT ALL * FROM tab1 WHERE NOT + 71 / + CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND ( + 69 )
----

query I rowsort
SELECT 12 + - col0 AS col2 FROM tab0
----
-3
-75
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL + CAST( + ( - col2 ) AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + CAST ( + ( - col2 ) AS INTEGER ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL + COUNT( ALL + 17 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + COUNT ( ALL + 17 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL 46 * - 15 + - SUM( col2 ) FROM tab1
----
-913

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL 46 * - 15 + - SUM ( col2 ) FROM tab1
----
-913

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT + col1 / - col1 FROM tab1 WHERE NOT ( CAST( + col2 AS SIGNED ) * col1 ) BETWEEN ( + col2 / col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1932
SELECT + col1 / - col1 FROM tab1 WHERE NOT ( CAST ( + col2 AS INTEGER ) * col1 ) BETWEEN ( + col2 / col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT + 74 * COUNT( * ) AS col2 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-1933
SELECT + 74 * COUNT ( * ) AS col2 FROM tab0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT SUM( ALL col1 ) * + 63 AS col1 FROM tab2
----
12285

skipif mysql # not compatible
query I rowsort label-1934
SELECT SUM ( ALL col1 ) * + 63 AS col1 FROM tab2
----
12285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT ( col2 ) * + col0 + CAST( - 81 AS SIGNED ) FROM tab0
----
624
789
9522

skipif mysql # not compatible
query I rowsort label-1935
SELECT ( col2 ) * + col0 + CAST ( - 81 AS INTEGER ) FROM tab0
----
624
789
9522

query I rowsort
SELECT 87 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT ALL * FROM tab1 WHERE CAST( - ( - 70 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1937
SELECT ALL * FROM tab1 WHERE CAST ( - ( - 70 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 47 * + col1 AS col1 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT 47 - + 76 FROM tab0 WHERE ( NULL ) IS NULL
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT DISTINCT 46 + col2 DIV + col1 FROM tab1 cor0
----
47
52
57

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT 46 + col2 / + col1 FROM tab1 cor0
----
47
52
57

query I rowsort
SELECT ALL - 53 * 91 FROM tab2 AS cor0
----
-4823
-4823
-4823

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT DISTINCT + 20 * - ( col0 DIV col1 ) FROM tab2 AS cor0
----
-20
0

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT + 20 * - ( col0 / col1 ) FROM tab2 AS cor0
----
-20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT 18 * + COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT 18 * + COUNT ( * ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT 94 * - 1 FROM tab0 AS cor0
----
-94
-94
-94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( col0 ) + 11 AND NULL
----

query I rowsort
SELECT col1 * ( ( col1 ) ) AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT COUNT( * ) + 68 * 78 FROM tab1 WHERE + 17 < NULL
----
5304

skipif mysql # not compatible
query I rowsort label-1947
SELECT COUNT ( * ) + 68 * 78 FROM tab1 WHERE + 17 < NULL
----
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT - 41 * + 62 + + COUNT( * ) FROM tab2 AS cor0
----
-2539

skipif mysql # not compatible
query I rowsort label-1948
SELECT - 41 * + 62 + + COUNT ( * ) FROM tab2 AS cor0
----
-2539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 21 col0 FROM tab1 AS cor0 WHERE ( 56 * col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT + col1 DIV col1 + 54 * + 40 FROM tab1 AS cor0
----
2161
2161
2161

skipif mysql # not compatible
query I rowsort label-1950
SELECT + col1 / col1 + 54 * + 40 FROM tab1 AS cor0
----
2161
2161
2161

query I rowsort
SELECT + + col0 * - ( col2 * col0 ) + + col1 FROM tab1 AS cor0
----
-249682
-426270
-563061

query I rowsort
SELECT - ( col2 ) + + col1 AS col1 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT ALL - - col0 - - col2 AS col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT col0 + col2 * - 79 AS col0 FROM tab1 cor0
----
-4576
-5281
-7533

query I rowsort
SELECT DISTINCT - 94 * 64 + + col2 AS col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND + 61
----
-5917
-6006

query I rowsort
SELECT DISTINCT - 98 - - 69 FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT 58 + COUNT( * ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1957
SELECT 58 + COUNT ( * ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col2 * 81 + col2 AND - col1
----

query I rowsort
SELECT DISTINCT - - 12 - col2 FROM tab2 AS cor0
----
-11
-28
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT ALL - col1 DIV 24 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL - col1 / 24 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL 19 - + + 53 * - 77 AS col1 FROM tab1
----
4100
4100
4100

query I rowsort
SELECT - col2 + + col2 AS col2 FROM tab1 WHERE NOT + 87 IN ( col2 )
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 82 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( 30 ) AS col2 FROM tab1
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1967
SELECT + ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT + ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL - MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT SUM( DISTINCT + + 34 ) AS col2 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-1969
SELECT SUM ( DISTINCT + + 34 ) AS col2 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT - - MAX( + - 33 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - - MAX ( + - 33 ) FROM tab1 AS cor0
----
-33

query I rowsort
SELECT + - col1 * - 7 * - col0 + col2 FROM tab2 AS cor0
----
-16399
-34456
-35117

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 + 98 FROM tab2 AS cor0
----
-51
75
-67
40
-77
58

query II rowsort
SELECT - 60 AS col2, 2 * - 8 + - col1 AS col0 FROM tab0 AS cor0
----
-60
-17
-60
-37
-60
-97

query I rowsort
SELECT + col0 * - 6 FROM tab2 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT 77 FROM tab2 AS cor0 WHERE 52 * col2 * + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 * + ( + col2 ) AS col0 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT ALL + SUM( - + 39 ) + - CAST( 56 AS SIGNED ) AS col2 FROM tab2
----
-173

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + SUM ( - + 39 ) + - CAST ( 56 AS INTEGER ) AS col2 FROM tab2
----
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT ALL col2 DIV + - col1 + - 56 - + col0 - col0 AS col2 FROM tab1
----
-164
-237
-239

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL col2 / + - col1 + - 56 - + col0 - col0 AS col2 FROM tab1
----
-164
-237
-239

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE ( ( ( + col0 ) ) ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 19 + col0 AS col1 FROM tab0
----
-4
68
78

query I rowsort
SELECT DISTINCT col1 * - 63 + - 63 AS col0 FROM tab0
----
-126
-1386
-5166

query I rowsort
SELECT ALL col0 + - + 53 AS col1 FROM tab0
----
-38
34
44

query I rowsort
SELECT col0 + - col2 + + col1 + - col0 * 25 FROM tab1 AS cor0
----
-1306
-2094
-2205

query II rowsort
SELECT - col2 + + col1, col2 FROM tab1 AS cor0
----
-21
68
-54
59
-82
96

query II rowsort
SELECT ALL + 81 - col1 AS col1, col2 + 13 FROM tab2 AS cor0
----
14
71
30
36
4
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1986
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - + CAST( + col2 AS SIGNED ) + CAST( CAST( NULL AS SIGNED ) + col2 * - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1986
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - + CAST ( + col2 AS INTEGER ) + CAST ( CAST ( NULL AS INTEGER ) + col2 * - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1987
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - + 51 NOT IN ( - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - + 51 NOT IN ( - 36 )
----
0

query I rowsort
SELECT DISTINCT 28 + - col1 - col2 FROM tab2
----
-46
-89
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1990
SELECT + CAST( + ( + - 48 ) AS SIGNED ) AS col2, - ( - 22 ) - + col0 * col2 FROM tab2 cor0
----
-48
-1036
-48
-2538
-48
-4328

skipif mysql # not compatible
query II rowsort label-1990
SELECT + CAST ( + ( + - 48 ) AS INTEGER ) AS col2, - ( - 22 ) - + col0 * col2 FROM tab2 cor0
----
-48
-1036
-48
-2538
-48
-4328

query I rowsort
SELECT ALL + col1 - + + col2 AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - col2 + 82 + col1 - + col1 + + - 36 * + col1 AS col2 FROM tab2 AS cor0
----
-1777
-2388
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1993
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) + - + col1 - + 42 NOT IN ( 28 * 46 )
----

skipif mysql # not compatible
query III rowsort label-1993
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) + - + col1 - + 42 NOT IN ( 28 * 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT ALL + 71 DIV col2 AS col1 FROM tab0 cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + 71 / col2 AS col1 FROM tab0 cor0
----
0
1
7

query I rowsort
SELECT ALL + col0 + + 30 AS col2 FROM tab1 WHERE - - col0 IS NOT NULL
----
115
121
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL - 86 * - COUNT( * ) * - 63 AS col1 FROM tab0
----
-16254

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - 86 * - COUNT ( * ) * - 63 AS col1 FROM tab0
----
-16254

query II rowsort
SELECT ALL 79 AS col0, col0 AS col2 FROM tab0
----
79
15
79
87
79
97

query I rowsort
SELECT - 62 * col0 FROM tab0
----
-5394
-6014
-930

query I rowsort
SELECT DISTINCT 28 * + 4 AS col1 FROM tab1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2000
SELECT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * 19 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 19 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * col0 AS col2 FROM tab1 WHERE NOT ( ( - 19 ) IS NULL )
----
-2601
-7225
-8281

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab1 cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT - 76 + - col2 * - + col1 AS col2 FROM tab2 AS cor0
----
1097
3004
3810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT ALL - COUNT( * ) / - SUM( - CAST( NULL AS SIGNED ) ) + + + COUNT( * ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - COUNT ( * ) / - SUM ( - CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col2 * 56
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2006
SELECT CAST( NULL AS DECIMAL ) * 82 - - + ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT CAST ( NULL AS REAL ) * 82 - - + ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE col2 NOT IN ( + col1 * + - 24 + + 98 )
----
3

skipif mysql # not compatible
query I rowsort label-2007
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 NOT IN ( + col1 * + - 24 + + 98 )
----
3

query I rowsort
SELECT - - col1 * - col0 + + 62 + + col1 + + + col2 AS col1 FROM tab2 AS cor0
----
-2210
-4749
-4838

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - col2 ) * 54 BETWEEN NULL AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - + 6
----

query I rowsort
SELECT + col0 + + + 94 AS col1 FROM tab1
----
145
179
185

query III rowsort
SELECT * FROM tab0 WHERE - 46 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2013
SELECT DISTINCT col1 / + 65 * - col0 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT col1 / + 65 * - col0 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2014
SELECT DISTINCT col2 AS col0, + CAST( col1 AS SIGNED ) + + + col0 FROM tab2
----
23
97
40
141
58
142

skipif mysql # not compatible
query II rowsort label-2014
SELECT DISTINCT col2 AS col0, + CAST ( col1 AS INTEGER ) + + + col0 FROM tab2
----
23
97
40
141
58
142

query I rowsort
SELECT col0 FROM tab1 WHERE 22 + - - 70 <= NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE 32 IN ( + col1 / - 28 - + - col1 + + col1 * + 59 + 58 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL + + 51 - col2 AS col1 FROM tab1 AS cor0
----
-17
-45
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 97 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 97 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2021
SELECT ALL * FROM tab0 WHERE NOT - - CAST( + col2 AS DECIMAL ) * + col1 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2021
SELECT ALL * FROM tab0 WHERE NOT - - CAST ( + col2 AS REAL ) * + col1 * - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT ( - 16 ) + + - COUNT( * ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT ( - 16 ) + + - COUNT ( * ) AS col0 FROM tab2
----
-19

query I rowsort
SELECT - 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query II rowsort
SELECT ALL col0 * - 46 * - + col1 * + col0 * col2, col2 FROM tab1 AS cor0
----
1217439496
68
160804224
96
98043250
59

query I rowsort
SELECT + - 47 AS col0 FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2026
SELECT - ( 41 ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-41
3

skipif mysql # not compatible
query II rowsort label-2026
SELECT - ( 41 ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-41
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2027
SELECT ALL + 3 DIV - + col2 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL + 3 / - + col2 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0 / - + col1 + - col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL + SUM( DISTINCT - + 26 ) AS col0 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL + SUM ( DISTINCT - + 26 ) AS col0 FROM tab1 AS cor0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2030
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE ( - - ( - col1 ) * - col2 / + col1 * + 21 ) BETWEEN NULL AND ( CAST( 34 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE ( - - ( - col1 ) * - col2 / + col1 * + 21 ) BETWEEN NULL AND ( CAST ( 34 AS REAL ) )
----
0

query I rowsort
SELECT ( - col2 ) * 49 AS col2 FROM tab0
----
-2303
-4851
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2032
SELECT ALL 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-2032
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * 3 FROM tab2
----
-120
-174
-69

query I rowsort
SELECT col1 * 63 FROM tab1
----
2961
315
882

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT ALL + - SUM( ALL + 86 ) FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + - SUM ( ALL + 86 ) FROM tab1 AS cor0
----
-258

query I rowsort
SELECT DISTINCT - col2 * - col0 * + - col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT 71 AS col0 FROM tab0 cor0 WHERE NOT - col0 IN ( - 48 * + 50 * + 36 + + col0 * + col2 + col2 )
----
71
71
71

query II rowsort
SELECT DISTINCT + col1 AS col0, + col1 * + ( + col0 ) AS col0 FROM tab0 cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 96 FROM tab1 cor0
----
-4896
-8160
-8736

query I rowsort
SELECT DISTINCT 2 * + col0 + + - col2 * - col2 * col1 FROM tab2
----
123328
225538
27071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 + + + 0 col1, + col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT + - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2043
SELECT * FROM tab2 AS cor0 WHERE ( - - CAST( + - col1 AS SIGNED ) ) * + - col2 BETWEEN - col0 / 78 AND col0
----

skipif mysql # not compatible
query III rowsort label-2043
SELECT * FROM tab2 AS cor0 WHERE ( - - CAST ( + - col1 AS INTEGER ) ) * + - col2 BETWEEN - col0 / 78 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - - COUNT( * ) * - + 67 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-2044
SELECT - - COUNT ( * ) * - + 67 FROM tab1 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL - - CAST( - - 32 AS SIGNED ) FROM tab0 cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - - CAST ( - - 32 AS INTEGER ) FROM tab0 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT DISTINCT COUNT( * ) * + + 54 AS col1, SUM( - 43 ) AS col1 FROM tab2
----
162
-129

skipif mysql # not compatible
query II rowsort label-2046
SELECT DISTINCT COUNT ( * ) * + + 54 AS col1, SUM ( - 43 ) AS col1 FROM tab2
----
162
-129

query II rowsort
SELECT DISTINCT col0 + col2 AS col2, - col2 * + + col2 FROM tab0
----
196
-9801
62
-2209
97
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2048
SELECT + CAST( NULL AS SIGNED ) * - 38 - - - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT + CAST ( NULL AS INTEGER ) * - 38 - - - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - - 66 * + col0 AS col0 FROM tab0
----
1071
5763
6403

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT DISTINCT 23 * + COUNT( * ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT 23 * + COUNT ( * ) AS col2 FROM tab2
----
69

query I rowsort
SELECT DISTINCT 89 * - - 13 FROM tab2
----
1157

query II rowsort
SELECT ALL col0 AS col0, col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL col1 * + - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT + + col2 * - - col0 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 15 NOT IN ( col2 + - col2 + 63 )
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * 15 * - ( - 36 ) AS col0 FROM tab0 cor0
----
-25380
-53460
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL ( + + SUM( - col0 ) ) col1 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2058
SELECT ALL ( + + SUM ( - col0 ) ) col1 FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col2 ) AS col0, + col2 + col2 col0 FROM tab2
----
23
46
40
80
58
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2060
SELECT - CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2060
SELECT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT col1 * 80 AS col2, + col1 + - - col2 FROM tab2
----
4080
74
5360
125
6160
117

query I rowsort
SELECT col0 * + 27 AS col1 FROM tab2
----
1242
1728
2025

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT DISTINCT + MIN( ALL + col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2064
SELECT DISTINCT + MIN ( ALL + col1 ) col0 FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2065
SELECT + 86 * - CAST( NULL AS SIGNED ) + - + 24 + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT + 86 * - CAST ( NULL AS INTEGER ) + - + 24 + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2066
SELECT ALL col0 DIV + - ( col1 ) AS col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL col0 / + - ( col1 ) AS col1 FROM tab1
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2067
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT + col1 + + + CAST( - - col0 AS SIGNED ) BETWEEN NULL AND - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT + col1 + + + CAST ( - - col0 AS INTEGER ) BETWEEN NULL AND - col0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT COUNT( + + 6 ) + 56 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-2068
SELECT COUNT ( + + 6 ) + 56 FROM tab0
----
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 69 IS NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NULL <= - + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT SUM( DISTINCT - + 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2071
SELECT SUM ( DISTINCT - + 10 ) FROM tab0
----
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 1 - - ( ( col2 ) ), + col0, - 57 + - - col1, + 17 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - ( + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT col0 DIV + col0 + 81 FROM tab1 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2074
SELECT col0 / + col0 + 81 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL + + 36 + - 33 * + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL + + 36 + - 33 * + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 20 NOT BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT + 40 * 37 DIV + col0 + - col0 AS col0 FROM tab2 cor0
----
-14
-41
-56

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 40 * 37 / + col0 + - col0 AS col0 FROM tab2 cor0
----
-14
-41
-56

query II rowsort
SELECT - + col1 + col2 + + 81, + col0 FROM tab1 cor0
----
102
91
135
85
163
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT + COUNT( ALL + 64 ) + 36 * + + SUM( ALL - ( + col1 ) ) col0 FROM tab2 AS cor0
----
-7017

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2079
SELECT + COUNT ( ALL + 64 ) + 36 * + + SUM ( ALL - ( + col1 ) ) col0 FROM tab2 AS cor0
----
-7017

query I rowsort
SELECT ALL 32 - + + col0 FROM tab2 AS cor0
----
-14
-32
-43

query I rowsort
SELECT 66 + - 24 * - col2 FROM tab1 cor0
----
1482
1698
2370

query I rowsort
SELECT col2 + - 70 FROM tab1
----
-11
-2
26

query I rowsort
SELECT ALL ( - 16 ) FROM tab1
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT DISTINCT + + 87 - - SUM( + 51 ) AS col0 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT + + 87 - - SUM ( + 51 ) AS col0 FROM tab1 AS cor0
----
240

onlyif mysql # DIV for integer division: 
query II rowsort label-2085
SELECT DISTINCT + col0 DIV col0 + col1 - + col1, - 32 AS col0 FROM tab2 AS cor0
----
1
-32

skipif mysql # not compatible
query II rowsort label-2085
SELECT DISTINCT + col0 / col0 + col1 - + col1, - 32 AS col0 FROM tab2 AS cor0
----
1
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( + col1 ) col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT ALL - 33 AS col2, COUNT( * ) FROM tab2 AS cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-2087
SELECT ALL - 33 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT - + ( 36 ) * - + SUM( + 38 ) AS col1 FROM tab0 cor0
----
4104

skipif mysql # not compatible
query I rowsort label-2088
SELECT - + ( 36 ) * - + SUM ( + 38 ) AS col1 FROM tab0 cor0
----
4104

query I rowsort
SELECT ALL - col0 * + col2 - + col1 FROM tab0 AS cor0 WHERE NOT NULL <= - ( + - 5 )
----

query I rowsort
SELECT + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - 87 ) FROM tab0 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - 29 + - col0 col1 FROM tab0 AS cor0
----
-2610
-2910
-450

query I rowsort
SELECT + 17 * - - col1 FROM tab2 AS cor0
----
1139
1309
867

query I rowsort
SELECT DISTINCT + 20 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT 91 DIV - - col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2095
SELECT 91 / - - col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - col2 col1 FROM tab2
----
1600
3364
529

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + - 5 >= NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE + col1 NOT BETWEEN - col0 AND - 67
----
-51
-85
-91

query I rowsort
SELECT - + 44 * - col2 * col2 FROM tab1 AS cor0
----
153164
203456
405504

query I rowsort
SELECT - - 31 AS col1 FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT ALL + - col1 + - - 3 AS col2 FROM tab1 AS cor0
----
-11
-2
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 35 col1, 81 / + col2 AS col1 FROM tab0 AS cor0 WHERE NULL = 62
----

query I rowsort
SELECT ALL ( + + 18 ) + - - col2 FROM tab2
----
41
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col1 ) + - col2 + + - 88 + - col0 col2 FROM tab1
----
-200
-221
-227

query I rowsort
SELECT DISTINCT - 25 * + - 64 + - ( - 40 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
1640

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + 58
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col1 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - + SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2109
SELECT - + SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT - + COUNT( * ) + 7 AS col1 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT - + COUNT ( * ) + 7 AS col1 FROM tab2 cor0
----
4

query I rowsort
SELECT ALL 14 * col0 FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT - + COUNT( * ) + - SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT - + COUNT ( * ) + - SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
224

query I rowsort
SELECT DISTINCT - col2 * + col2 + - - ( col0 ) + + 86 * - col2 AS col0 FROM tab0 AS cor0
----
-18218
-6236
-873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT DISTINCT + COUNT( * ) * - SUM( ALL + - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + COUNT ( * ) * - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 85 FROM tab0 WHERE - 97 + + 11 IS NOT NULL
----
-85
-85
-85

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT - 53 * + 80 FROM tab0
----
-4240

query I rowsort
SELECT ALL - - col2 + - col1 FROM tab0 WHERE NOT + 72 + col0 < - col2 * + col1 * col1
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT COUNT( + + col0 ) FROM tab2 WHERE + + col2 * 40 / + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2119
SELECT COUNT ( + + col0 ) FROM tab2 WHERE + + col2 * 40 / + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT + 18 * - CAST( NULL AS SIGNED ) * col0 * + col2 * 32 + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT + 18 * - CAST ( NULL AS INTEGER ) * col0 * + col2 * 32 + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + - ( ( - 25 ) ) FROM tab1
----
-22
11
20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 * - + col0 * - 93 * - 37 + 66 * ( - col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT col1 - - 9 DIV col1 col2 FROM tab2 AS cor0 WHERE NOT 18 * - col0 > - 81 * - 73
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2124
SELECT col1 - - 9 / col1 col2 FROM tab2 AS cor0 WHERE NOT 18 * - col0 > - 81 * - 73
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 89 AS col2 FROM tab2 AS cor0
----
46
-89
64
-89
75
-89

query II rowsort
SELECT ALL - col1 AS col2, + 87 * - 74 AS col1 FROM tab1 AS cor0
----
-14
-6438
-47
-6438
-5
-6438

query I rowsort
SELECT + col0 / - - 48 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col1 * - col0 AS col2, + col0 FROM tab1
----
425
85
4277
91
714
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col0 ) AS col2, - col1 * 48 - - 39 - col0 col1 FROM tab2
----
46
-2455
64
-3721
75
-3252

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL - COUNT( * ) + + + 85 AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL - COUNT ( * ) + + + 85 AS col2 FROM tab1
----
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 - - col2 + - - 35 + col2 + + col1 / col2 * - col0 / - - ( + 33 ) > - + ( - col2 )
----

query I rowsort
SELECT col1 * - 49 + + - col1 AS col1 FROM tab0
----
-1050
-4050
-50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 63 * - col0 <= - ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col1 FROM tab1 cor0
----
77
77
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + 0 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 > col2 * 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT + COUNT( col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2137
SELECT + COUNT ( col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query II rowsort
SELECT col0, 41 * + col2 AS col1 FROM tab0
----
15
1927
87
410
97
4059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col2 AS col2, + col0 + + - col0 - 25 col0, col0 AS col0 FROM tab0
----
9 values hashing to 207d6d887ee0cfbd13322a63db1d886f

query II rowsort
SELECT ( + + col2 ) - - 55 AS col2, + col2 AS col1 FROM tab0
----
102
47
154
99
65
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2141
SELECT CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE col1 < - 23
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2141
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE col1 < - 23
----
0

query I rowsort
SELECT ALL - - ( - 67 ) - - - col1 - 69 * - 83 AS col0 FROM tab2 AS cor0
----
5583
5593
5609

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 * - col1 FROM tab1 AS cor0 WHERE NOT + 7 + - col2 IS NULL
----
14
-196
47
-2209
5
-25

query I rowsort
SELECT + + 54 + - - 2 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT - 98 * + - COUNT( * ) * - COUNT( * ) FROM tab1 cor0 WHERE 45 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT - 98 * + - COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0 WHERE 45 IS NULL
----
0

query II rowsort
SELECT + + 11 * - col1 + + col0, - col1 AS col2 FROM tab2 AS cor0
----
-515
-51
-662
-67
-783
-77

query I rowsort
SELECT ALL + + 47 - col2 AS col2 FROM tab1 AS cor0
----
-12
-21
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL - MAX( + 74 ) AS col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - MAX ( + 74 ) AS col1 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT col1 * - col1 + - 49 FROM tab0 AS cor0
----
-490
-50
-6610

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL - ( - MIN( DISTINCT 41 ) ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - ( - MIN ( DISTINCT 41 ) ) FROM tab2
----
41

query I rowsort
SELECT ALL 34 * + 18 AS col0 FROM tab2
----
612
612
612

query I rowsort
SELECT - - ( - + 35 ) AS col2 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT - col0 DIV - 47 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2153
SELECT - col0 / - 47 AS col2 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT SUM( + - 12 ) AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-2154
SELECT SUM ( + - 12 ) AS col2 FROM tab2
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + col0 + + col1 - 48 NOT IN ( + 89 + col0, 61, - col2 * + col0 / + + 2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT ALL - 63 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - 63 / + col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - SUM( DISTINCT + ( + - col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2158
SELECT - SUM ( DISTINCT + ( + - col0 ) ) FROM tab0 AS cor0
----
199

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 90 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col2 * - ( col0 ) + - ( + + 6 )
----

query I rowsort
SELECT 44 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 93 + + + col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2163
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * - - col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2163
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * - - col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 / col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, 49 AS col0 FROM tab0
----
15
49
87
49
97
49

query III rowsort
SELECT * FROM tab1 WHERE - - col2 - - + col0 <= NULL
----

query I rowsort
SELECT ( - - 25 ) AS col0 FROM tab1
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 57 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 57 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT MIN( + + ( - - col1 ) ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2169
SELECT MIN ( + + ( - - col1 ) ) col0 FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE 36 NOT BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 81 AS col1 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL - 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query II rowsort
SELECT - col0 * + col1, col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT DISTINCT col2 + - 6 + - 95 FROM tab2
----
-43
-61
-78

query I rowsort
SELECT + - 30 / col2 AS col2 FROM tab2 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT ALL - 45 * + - 49 + - col2 AS col1 FROM tab1 AS cor0
----
2109
2137
2146

query I rowsort
SELECT DISTINCT col1 * + col0 - - 34 FROM tab0 AS cor0
----
1249
131
1861

query I rowsort
SELECT DISTINCT - 88 * - col2 * - col0 - - - col1 FROM tab1 AS cor0
----
-430862
-441325
-544591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT ALL - MIN( + - col2 ) - - + CAST( + ( - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - MIN ( + - col2 ) - - + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
93

query I rowsort
SELECT col0 * + 16 * - col1 FROM tab0
----
-1552
-19440
-29232

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 AND col1
----

query I rowsort
SELECT DISTINCT + ( 44 ) * col2 * - 64 AS col0 FROM tab2
----
-112640
-163328
-64768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * + - col0 * - - col0 col0 FROM tab1
----
-130050
-361250
-414050

onlyif mysql # DIV for integer division: 
query II rowsort label-2184
SELECT ALL col1 AS col1, + ( - col1 ) DIV - - 24 AS col2 FROM tab2
----
51
-2
67
-2
77
-3

skipif mysql # not compatible
query II rowsort label-2184
SELECT ALL col1 AS col1, + ( - col1 ) / - - 24 AS col2 FROM tab2
----
51
-2
67
-2
77
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 98 col1 FROM tab2
----
-4998
-6566
-7546

query I rowsort
SELECT - 16 * - col0 AS col1 FROM tab2
----
1024
1200
736

query II rowsort
SELECT + col0 AS col2, col2 FROM tab0 WHERE NOT - + col2 <> + + 98 - + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT COUNT( ALL + col0 ) * - 25 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2188
SELECT COUNT ( ALL + col0 ) * - 25 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2189
SELECT CAST( NULL AS SIGNED ), - 98 col1 FROM tab0
----
NULL
-98
NULL
-98
NULL
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2189
SELECT CAST ( NULL AS INTEGER ), - 98 col1 FROM tab0
----
NULL
-98
NULL
-98
NULL
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT DISTINCT + 83 DIV - col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + 83 / - col0 FROM tab0
----
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 col1 FROM tab1 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL + SUM( + + col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + SUM ( + + col2 ) AS col2 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT - COUNT( * ) * 67 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT - COUNT ( * ) * 67 FROM tab2
----
-201

query I rowsort
SELECT ALL 93 * - col2 + - + col1 AS col0 FROM tab1
----
-5492
-6371
-8942

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 97 + col1 AS col0 FROM tab0 cor0
----
-2016
-7776
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT 54 DIV col2 * - - col0 + + col1 + col1 + col1 col1 FROM tab1 AS cor0
----
141
15
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2197
SELECT 54 / col2 * - - col0 + + col1 + col1 + col1 col1 FROM tab1 AS cor0
----
141
15
42

query I rowsort
SELECT - col2 * + col0 * 61 * - col1 + - ( + col0 ) * col2 + - + 0 FROM tab1
----
1524560
17734808
4176288

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 7 >= NULL )
----

query I rowsort
SELECT - col2 * + 59 * - col1 AS col2 FROM tab1 AS cor0
----
17405
188564
79296

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL - COUNT( col0 ) - + + 95 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - COUNT ( col0 ) - + + 95 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT 29 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT col0 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
111
195

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT - 83 DIV + 73 + col1 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-2204
SELECT - 83 / + 73 + col1 FROM tab0 AS cor0
----
0
20
80

query I rowsort
SELECT DISTINCT + ( + 37 ) AS col2 FROM tab2 AS cor0 WHERE NULL <> 12 + 86 * - ( - + col1 ) / + + 40
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2206
SELECT - + COUNT( * ) AS col1, - 35 FROM tab1 cor0
----
-3
-35

skipif mysql # not compatible
query II rowsort label-2206
SELECT - + COUNT ( * ) AS col1, - 35 FROM tab1 cor0
----
-3
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 col1, + col1 AS col2 FROM tab2 cor0
----
-52
51
-52
67
-52
77

query I rowsort
SELECT DISTINCT 21 FROM tab1 cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2209
SELECT + MIN( ALL + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, + col0 * + col2 col0 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2211
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col1 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL 4 AS col1 FROM tab1 WHERE col2 + col1 IN ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT DISTINCT 13 DIV + - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT 13 / + - col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 * ( - - 92 ) * + col1 * - col0 * + - col2 NOT BETWEEN + col1 + col0 / + col1 AND - + col1 / 32
----

query I rowsort
SELECT col0 - + - col2 + ( + + 32 ) FROM tab1 WHERE NOT - col2 IS NULL
----
176
179
191

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT - ( ( 16 ) ) DIV col0 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2219
SELECT - ( ( 16 ) ) / col0 + + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT - - MAX( + - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2220
SELECT - - MAX ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT + MAX( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT + MAX ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
81

query II rowsort
SELECT - 73 * - col2, + ( + col1 ) FROM tab1 AS cor0
----
4307
5
4964
47
7008
14

query I rowsort
SELECT 20 * - col2 + - col0 + + - col1 * - + col2 AS col0 FROM tab1 AS cor0
----
-627
-970
1745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL 81 + SUM( + CAST( NULL AS SIGNED ) ) + - 60 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2224
SELECT ALL 81 + SUM ( + CAST ( NULL AS INTEGER ) ) + - 60 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

query I rowsort
SELECT 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 14 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 39 * - + col1 AS col1 FROM tab0 AS cor0
----
3159
39
819

query I rowsort
SELECT - 10 * + - col0 AS col0 FROM tab0 AS cor0
----
150
870
970

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2230
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col1 AND - - 62 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2230
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col1 AND - - 62 * + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - COUNT( ALL + + col0 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2231
SELECT - COUNT ( ALL + + col0 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NOT - col0 / + 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + ( + COUNT( DISTINCT - col0 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2233
SELECT + ( + COUNT ( DISTINCT - col0 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col1, 77 col0 FROM tab1
----
-425
77
-4277
77
-714
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT ALL + ( - - 93 ) DIV + col2 AS col2 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + ( - - 93 ) / + col2 AS col2 FROM tab0
----
0
1
9

query I rowsort
SELECT DISTINCT col1 * + 71 AS col1 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT DISTINCT 18 + + col1 * col2 FROM tab1
----
1362
313
3214

query I rowsort
SELECT - col2 - col1 + col1 AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - col2 + + col0 + + col2 - - + col1 + + - col2 * col2 FROM tab0 AS cor0
----
-2113
-9703
8

query I rowsort
SELECT ALL col0 * + col1 - - col0 FROM tab1 AS cor0
----
4368
510
765

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT CAST( col1 AS SIGNED ) * + - col2 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2242
SELECT CAST ( col1 AS INTEGER ) * + - col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT + col0 DIV + col1 AS col2 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2243
SELECT + col0 / + col1 AS col2 FROM tab1 cor0
----
1
17
3

query I rowsort
SELECT ALL ( - col2 ) * - + col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT ALL - col0, col1 + col1 AS col0 FROM tab0 cor0
----
-15
162
-87
42
-97
2

query I rowsort
SELECT + col1 * - 76 FROM tab0
----
-1596
-6156
-76

query I rowsort
SELECT DISTINCT + 83 * - col0 FROM tab2
----
-3818
-5312
-6225

query I rowsort
SELECT + + 69 AS col2 FROM tab1 WHERE NOT ( NOT ( 70 + + col1 BETWEEN NULL AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - 24 * - MIN( DISTINCT - col0 ) FROM tab1
----
-2184

skipif mysql # not compatible
query I rowsort label-2249
SELECT - 24 * - MIN ( DISTINCT - col0 ) FROM tab1
----
-2184

query II rowsort
SELECT DISTINCT + + col1, - 91 FROM tab2 AS cor0
----
51
-91
67
-91
77
-91

query I rowsort
SELECT + 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + ( + ( - - ( + + col2 ) ) ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT - col0 * + 23 - + - col0 AS col2, + ( + col1 ) + + + col0, + col1 FROM tab2 WHERE - col0 + 14 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL - - 24 * + MAX( - ( - + col2 ) ) + SUM( - - col0 ) AS col2 FROM tab2 AS cor0
----
1577

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL - - 24 * + MAX ( - ( - + col2 ) ) + SUM ( - - col0 ) AS col2 FROM tab2 AS cor0
----
1577

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2256
SELECT DISTINCT AVG ( + + 97 ) * - ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT AVG ( + + 97 ) * - ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + - MAX( ALL - + col2 ) + + ( + + 81 ) FROM tab2 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-2257
SELECT + - MAX ( ALL - + col2 ) + + ( + + 81 ) FROM tab2 AS cor0
----
104

query I rowsort
SELECT + + 10 + col0 + + + ( + 65 ) AS col0 FROM tab2 AS cor0
----
121
139
150

onlyif mysql # DIV for integer division: 
query II rowsort label-2259
SELECT ALL - col0 DIV 63 AS col0, - col2 FROM tab2 AS cor0
----
-1
-40
-1
-58
0
-23

skipif mysql # not compatible
query II rowsort label-2259
SELECT ALL - col0 / 63 AS col0, - col2 FROM tab2 AS cor0
----
-1
-40
-1
-58
0
-23

query I rowsort
SELECT ALL col1 + + 73 FROM tab1
----
120
78
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 49 col2 FROM tab2
----
100
116
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2262
SELECT ALL - CAST( NULL AS DECIMAL ) / + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - CAST ( NULL AS REAL ) / + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL + COUNT( * ) * + 8 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL + COUNT ( * ) * + 8 FROM tab1
----
24

query II rowsort
SELECT - 2, - col1 AS col0 FROM tab2
----
-2
-51
-2
-67
-2
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT COUNT( * ) * 43 * + - 42 col2 FROM tab0
----
-5418

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2265
SELECT COUNT ( * ) * 43 * + - 42 col2 FROM tab0
----
-5418

query I rowsort
SELECT DISTINCT 55 * + 57 + - 12 + + col0 FROM tab2
----
3169
3187
3198

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR col2 < + + col1
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 32 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 95 AS col2 FROM tab1
----
154
163
191

query I rowsort
SELECT DISTINCT col0 + - col0 * + 88 FROM tab2
----
-4002
-5568
-6525

query I rowsort
SELECT ALL + 55 + - - col1 AS col2 FROM tab1
----
102
60
69

query I rowsort
SELECT - col2 * col2 + - - col0 FROM tab0 AS cor0
----
-13
-2194
-9704

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2273
SELECT + 95 - - + col0 * + + CAST( - col2 AS SIGNED ) + + col2 - + 16 DIV + 28 * - col0 AS col1 FROM tab1
----
-4705
-4861
-6025

skipif mysql # not compatible
query I rowsort label-2273
SELECT + 95 - - + col0 * + + CAST ( - col2 AS INTEGER ) + + col2 - + 16 / + 28 * - col0 AS col1 FROM tab1
----
-4705
-4861
-6025

query II rowsort
SELECT DISTINCT - col1, - col1 AS col2 FROM tab2 WHERE NOT + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 2 * - col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT - 74 * - + col0 AS col2 FROM tab1 AS cor0
----
3774
6290
6734

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 71 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + - 13 col0 FROM tab0 AS cor0 WHERE NOT 2 * + + 61 >= + col1 + + col2 + 98 + - col2 * - + 6
----
-637
-637
-637

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT CAST( + - SUM( DISTINCT + + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2281
SELECT CAST ( + - SUM ( DISTINCT + + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2282
SELECT DISTINCT - + 52 FROM tab0 AS cor0 WHERE col1 - + CAST( - + 31 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - + 52 FROM tab0 AS cor0 WHERE col1 - + CAST ( - + 31 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - ( COUNT( - 96 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2283
SELECT - ( COUNT ( - 96 ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 67 col1 FROM tab1
----
-3953
-4556
-6432

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL MIN( ALL + 47 ) col0 FROM tab0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT ALL MIN ( ALL + 47 ) col0 FROM tab0
----
47

query II rowsort
SELECT DISTINCT + col0, 44 FROM tab0
----
15
44
87
44
97
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2287
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2287
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT DISTINCT COUNT( ALL - + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT COUNT ( ALL - + col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT + col2 * + - 67 IS NOT NULL
----

query II rowsort
SELECT col0 AS col1, ( + 74 ) * + 74 * + col1 AS col2 FROM tab1
----
51
76664
85
27380
91
257372

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - 11 BETWEEN col1 AND NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2292
SELECT ALL - COUNT( * ) AS col1, - 38 DIV - 68 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-2292
SELECT ALL - COUNT ( * ) AS col1, - 38 / - 68 FROM tab2 cor0
----
-3
0

query I rowsort
SELECT DISTINCT - ( + 79 ) FROM tab1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + SUM( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT + SUM ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT ALL + + col1 + - ( - + ( col2 ) ) + - col2 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2296
SELECT - 74, + COUNT( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-74
3

skipif mysql # not compatible
query II rowsort label-2296
SELECT - 74, + COUNT ( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-74
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT ALL + + 50 * ( - - 10 ) DIV - + 40 - - 87 - + col2 FROM tab2 cor0
----
17
35
52

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + + 50 * ( - - 10 ) / - + 40 - - 87 - + col2 FROM tab2 cor0
----
17
35
52

query II rowsort
SELECT DISTINCT + col2 * + 68 AS col2, + 15 FROM tab2 AS cor0
----
1564
15
2720
15
3944
15

query I rowsort
SELECT ALL + 80 * - 47 + + + col2 AS col0 FROM tab2 AS cor0
----
-3702
-3720
-3737

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE + col1 - + 91 IS NULL
----

query I rowsort
SELECT 60 - + col0 FROM tab0
----
-27
-37
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT MIN( - + ( col0 ) ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT MIN ( - + ( col0 ) ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE - + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT col0 + ( + - CAST( - + col2 AS SIGNED ) ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-2304
SELECT col0 + ( + - CAST ( - + col2 AS INTEGER ) ) FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2305
SELECT - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE - - col2 < - 70 - col2
----
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE - - col2 < - 70 - col2
----
0

query II rowsort
SELECT - col0 + + col1 AS col1, ( - col2 ) FROM tab2
----
-8
-58
13
-40
5
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col0 + col0
----

query I rowsort
SELECT ALL - + col0 - col1 + - col0 FROM tab0 AS cor0
----
-111
-195
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - 33 + + SUM( + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 33 + + SUM ( + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 13 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - 0 * col2 ) NOT IN ( col2 * + - col1, 78 / 61, + col2, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL - 16 * - COUNT( * ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - 16 * - COUNT ( * ) AS col1 FROM tab1
----
48

query I rowsort
SELECT DISTINCT + ( 1 ) * + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT + COUNT( * ) * 82 * COUNT( ALL - col0 ) AS col1, COUNT( * ) AS col2 FROM tab2 cor0
----
738
3

skipif mysql # not compatible
query II rowsort label-2314
SELECT + COUNT ( * ) * 82 * COUNT ( ALL - col0 ) AS col1, COUNT ( * ) AS col2 FROM tab2 cor0
----
738
3

query I rowsort
SELECT ALL + 92 * + 7 AS col2 FROM tab0 AS cor0
----
644
644
644

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL - MAX( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - MAX ( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2317
SELECT ALL - + 38, - col2 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-38
NULL
-38
NULL
-38
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2317
SELECT ALL - + 38, - col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-38
NULL
-38
NULL
-38
NULL

query II rowsort
SELECT ALL + col0 * - col1, ( + 56 ) AS col1 FROM tab1
----
-425
56
-4277
56
-714
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT + MAX( DISTINCT - + col0 ), + 7 AS col2 FROM tab0
----
-15
7

skipif mysql # not compatible
query II rowsort label-2319
SELECT + MAX ( DISTINCT - + col0 ), + 7 AS col2 FROM tab0
----
-15
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
96

query II rowsort
SELECT ALL 43 * - + col1, + col2 AS col2 FROM tab1
----
-2021
68
-215
59
-602
96

query I rowsort
SELECT 81 * + + col1 FROM tab0
----
1701
6561
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2323
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) / - 79 + + 74 + - MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - 79 + + 74 + - MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - COUNT( * ) + 41 AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-2324
SELECT - COUNT ( * ) + 41 AS col0 FROM tab0
----
38

query I rowsort
SELECT ALL + + 99 - 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT * FROM tab1 WHERE + 69 = - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < - - col0
----

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE 12 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT + 48 + - + COUNT( * ) + + 78 AS col1 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT + 48 + - + COUNT ( * ) + + 78 AS col1 FROM tab2 AS cor0
----
123

query I rowsort
SELECT + + 39 AS col2 FROM tab0 AS cor0 WHERE - col1 / - + ( + col1 ) NOT BETWEEN - 14 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2331
SELECT DISTINCT - + CAST( + 78 AS SIGNED ) + col0 + col1 FROM tab2 AS cor0
----
19
63
64

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT - + CAST ( + 78 AS INTEGER ) + col0 + col1 FROM tab2 AS cor0
----
19
63
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT COUNT( * ) col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2332
SELECT COUNT ( * ) col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 79 * + col0 * col2 + - - 14 AS col2 FROM tab1 AS cor0
----
386798
396199
488866

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT + 55 - + COUNT( col2 ) * - + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + 55 - + COUNT ( col2 ) * - + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT 24 + - col0 FROM tab0 AS cor0
----
-63
-73
9

query I rowsort
SELECT 93 * col2 * + - col2 + + ( + 70 ) AS col0 FROM tab0
----
-205367
-911423
-9230

onlyif mysql # aggregate syntax: 
query II rowsort label-2338
SELECT DISTINCT + 47, COUNT( * ) AS col1 FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-2338
SELECT DISTINCT + 47, COUNT ( * ) AS col1 FROM tab1
----
47
3

query II rowsort
SELECT + col2 * + - col1, col0 FROM tab0
----
-210
87
-3807
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT - CAST( NULL AS SIGNED ) / - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT - CAST ( NULL AS INTEGER ) / - - col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col1 = - col2
----

query II rowsort
SELECT ALL + col0, + ( 29 ) AS col1 FROM tab1
----
51
29
85
29
91
29

query I rowsort
SELECT + + 12 FROM tab0 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT + MAX( - 4 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT + MAX ( - 4 ) FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT + 80 - - - AVG ( DISTINCT 92 ) + - - CAST( NULL AS SIGNED ) * - 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT + 80 - - - AVG ( DISTINCT 92 ) + - - CAST ( NULL AS INTEGER ) * - 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT ALL - - 26 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - - 26 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT 38 DIV col1 AS col0 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT 38 / col1 AS col0 FROM tab1 AS cor0
----
0
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT - + SUM( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2348
SELECT - + SUM ( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 < - 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + - 71 AS col1 FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL SUM( DISTINCT - 78 ) AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL SUM ( DISTINCT - 78 ) AS col0 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL MIN( ALL - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL MIN ( ALL - + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT 97 >= + col1
----

query I rowsort
SELECT - ( + 4 ) AS col0 FROM tab2
----
-4
-4
-4

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + col2 > - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2356
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-2356
SELECT ALL * FROM tab1 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - COUNT( col1 ) AS col0 FROM tab0 WHERE NOT ( + + col2 ) NOT BETWEEN - col1 AND + 26
----
-1

skipif mysql # not compatible
query I rowsort label-2357
SELECT - COUNT ( col1 ) AS col0 FROM tab0 WHERE NOT ( + + col2 ) NOT BETWEEN - col1 AND + 26
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT DISTINCT 36 * + col0 + + col0 + - col0 + + 4 DIV + col0 FROM tab1
----
1836
3060
3276

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT 36 * + col0 + + col0 + - col0 + + 4 / + col0 FROM tab1
----
1836
3060
3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT DISTINCT - col1 + + 71 * + + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT - col1 + + 71 * + + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + 47 * 90 * + ( - 93 ) * - COUNT( * ) AS col2 FROM tab2
----
1180170

skipif mysql # not compatible
query I rowsort label-2361
SELECT + 47 * 90 * + ( - 93 ) * - COUNT ( * ) AS col2 FROM tab2
----
1180170

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT col0 DIV + - 89 + - + 83 - col0 AS col2 FROM tab2 cor0
----
-129
-147
-158

skipif mysql # not compatible
query I rowsort label-2362
SELECT col0 / + - 89 + - + 83 - col0 AS col2 FROM tab2 cor0
----
-129
-147
-158

query II rowsort
SELECT ALL + col0, 72 FROM tab1 AS cor0
----
51
72
85
72
91
72

query I rowsort
SELECT + col1 * 63 + + ( - + 8 ) - + - 99 + - 9 FROM tab1 AS cor0
----
3043
397
964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2365
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 13 IN ( + 51 )
----

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab1 WHERE NOT + 63 + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 37 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL 12 + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) + 41 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL 12 + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) + 41 AND NULL
----

query I rowsort
SELECT DISTINCT - 96 * col1 AS col1 FROM tab1
----
-1344
-4512
-480

query I rowsort
SELECT DISTINCT 34 * col0 FROM tab0
----
2958
3298
510

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT ALL col0 DIV + 82 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL col0 / + 82 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + 14 col2 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 2 + - 21 FROM tab1
----
-19
-19
-19

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 > ( col1 * 46 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab0 WHERE NULL IS NULL
----
86

query I rowsort
SELECT col1 FROM tab1 WHERE - col1 * + col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 AS col0 FROM tab2
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT DISTINCT - col0 DIV - col2 + - col1 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT - col0 / - col2 + - col1 FROM tab1
----
-14
-4
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT - ( col2 ) DIV - col2 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2382
SELECT - ( col2 ) / - col2 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT 10 * - col2 FROM tab0
----
-100
-470
-990

query I rowsort
SELECT col1 * ( + ( 28 ) ) + + col0 AS col0 FROM tab1
----
1407
225
443

query I rowsort
SELECT DISTINCT 18 * col0 + - col2 FROM tab0
----
1556
1647
223

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - 90 + col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2388
SELECT + col0 * - CAST( NULL AS DECIMAL ) + + 73 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT + col0 * - CAST ( NULL AS REAL ) + + 73 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT COUNT( * ) * + 16 AS col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2389
SELECT COUNT ( * ) * + 16 AS col1 FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT 64 * + 46 FROM tab1 AS cor0
----
2944

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 77 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - COUNT( * ) * 72 FROM tab2 AS cor0 CROSS JOIN tab1
----
-648

skipif mysql # not compatible
query I rowsort label-2393
SELECT - COUNT ( * ) * 72 FROM tab2 AS cor0 CROSS JOIN tab1
----
-648

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT + CAST( NULL AS SIGNED ) * 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT + CAST ( NULL AS INTEGER ) * 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT ALL col2 DIV col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL col2 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT DISTINCT - + col0 * ( 31 * ( col2 DIV 3 ) ) AS col2 FROM tab0 cor0
----
-6975
-8091
-99231

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - + col0 * ( 31 * ( col2 / 3 ) ) AS col2 FROM tab0 cor0
----
-6975
-8091
-99231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT - - CAST( NULL AS SIGNED ) * ( + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT - - CAST ( NULL AS INTEGER ) * ( + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 7 * col0 < - 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( col1 ) col0 FROM tab0 AS cor0 WHERE NOT + 69 <= ( col0 )
----
-1215

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT + 26 DIV col1 + 16 * + 68 FROM tab1 AS cor0
----
1088
1089
1093

skipif mysql # not compatible
query I rowsort label-2403
SELECT + 26 / col1 + 16 * + 68 FROM tab1 AS cor0
----
1088
1089
1093

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT COUNT( * ) + 74 AS col2 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2404
SELECT COUNT ( * ) + 74 AS col2 FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT + COUNT( * ) * 92 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT + COUNT ( * ) * 92 FROM tab1
----
276

query I rowsort
SELECT ALL 4 * + 84 AS col0 FROM tab1
----
336
336
336

query I rowsort
SELECT ALL - 79 + + col0 FROM tab0
----
-64
18
8

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 70 + + + col1 + ( col1 ) FROM tab1
----
164
80
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT ALL + col0 DIV + + col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL + col0 / + + col1 FROM tab0
----
0
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2411
SELECT ALL * FROM tab2 WHERE - col2 BETWEEN + col1 * + 74 AND - col0 * col0 + - CAST( - col0 AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-2411
SELECT ALL * FROM tab2 WHERE - col2 BETWEEN + col1 * + 74 AND - col0 * col0 + - CAST ( - col0 AS INTEGER ) * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 45 - - col0 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT col2 * + CAST( NULL AS SIGNED ) + - ( + col0 + col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT col2 * + CAST ( NULL AS INTEGER ) + - ( + col0 + col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + - col1 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT SUM( ALL - - 46 ) * - + 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-2416
SELECT DISTINCT SUM ( ALL - - 46 ) * - + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 * 43 col0 FROM tab0
----
-325467
-404587
-9675

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT ALL col1 DIV - - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL col1 / - - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 64 AS col2 FROM tab0 WHERE NULL IS NULL
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT DISTINCT - 18 * - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
162

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - 18 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2421
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT ALL + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT ALL - col1 + + - col0 DIV - col2 + col0 DIV col2 AS col2 FROM tab0 cor0
----
-1
-5
-81

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - col1 + + - col0 / - col2 + col0 / col2 AS col2 FROM tab0 cor0
----
-1
-5
-81

query I rowsort
SELECT ALL + ( - col0 ) * col2 - - col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + 57 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 NOT IN ( - 73 * - ( - col2 + + col2 * - col2 ) )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT - + COUNT( * ) AS col2, + MIN( - + col1 ) AS col2 FROM tab1 AS cor0
----
-3
-47

skipif mysql # not compatible
query II rowsort label-2428
SELECT - + COUNT ( * ) AS col2, + MIN ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-3
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 50 <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 70 * ( + col2 ) > - 26
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 AS col1, 72 FROM tab1 AS cor0
----
14
72
47
72
5
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT DISTINCT col0 DIV - 75 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT col0 / - 75 AS col0 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( + col0 * + col1 * + col1 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( + col0 * + col1 * + col1 + col2 )
----
0

query I rowsort
SELECT ( col0 ) * - col0 + + col1 AS col1 FROM tab2
----
-2065
-4019
-5558

query I rowsort
SELECT 44 * - + col0 * - - 53 FROM tab1
----
-118932
-198220
-212212

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE + 69 BETWEEN + - 23 AND col0
----
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT - 30 * 79 + - - ( CAST( 96 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-2274
-2274
-2274

skipif mysql # not compatible
query I rowsort label-2439
SELECT - 30 * 79 + - - ( CAST ( 96 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-2274
-2274
-2274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2440
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( col2 - + col0 ) NOT BETWEEN ( + col0 ) AND ( NULL )
----
-23
-40
-58

query I rowsort
SELECT ALL + 78 * + 44 FROM tab0
----
3432
3432
3432

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 23
----

query I rowsort
SELECT + 86 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 / col0 / col2 AND col2
----

query I rowsort
SELECT ALL + - col1 * + - col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - 13 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * - - 96
----

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT ( NULL ) IS NULL ) )
----

query I rowsort
SELECT - - 2 + + col0 AS col2 FROM tab2 WHERE + - 94 IS NULL
----

query I rowsort
SELECT + col1 * + + 70 + 56 + + - 87 + - col1 FROM tab2 WHERE NULL IS NULL
----
3488
4592
5282

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ( - COUNT( * ) ) + - 18 AS col1 FROM tab1 WHERE col1 IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-2452
SELECT ( - COUNT ( * ) ) + - 18 AS col1 FROM tab1 WHERE col1 IS NULL
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 67 * - 93 col0 FROM tab1
----
292857
31155
87234

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + COUNT( DISTINCT 85 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2454
SELECT + COUNT ( DISTINCT 85 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT 42 + + col2 * col0 AS col0 FROM tab0
----
747
912
9645

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT DISTINCT - COUNT( - 93 ) + - COUNT( * ) * SUM( + 71 ) * MIN( 63 ) - - 54 AS col2 FROM tab2
----
-40206

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT - COUNT ( - 93 ) + - COUNT ( * ) * SUM ( + 71 ) * MIN ( 63 ) - - 54 AS col2 FROM tab2
----
-40206

query III rowsort
SELECT * FROM tab1 WHERE - + col2 / - + col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT 47 + COUNT( * ) AS col0 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT 47 + COUNT ( * ) AS col0 FROM tab2
----
50

query I rowsort
SELECT + col1 * + + 66 + col0 * - col0 + + - col1 AS col1 FROM tab1
----
-1691
-5226
-6900

query I rowsort
SELECT col0 + - + col2 + col0 FROM tab2
----
69
88
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT + SUM( DISTINCT 22 ) + - COUNT( * ) FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-2461
SELECT + SUM ( DISTINCT 22 ) + - COUNT ( * ) FROM tab1 cor0
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 / - 30 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 84 + 38 AS col1 FROM tab0 AS cor0 WHERE col0 / + col2 NOT IN ( + col2, col1 / + col1 )
----
3986
8354
878

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - 66 ) + 15 BETWEEN + col0 AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 IN ( 79, + col0 )
----
-1

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 IN ( 79, + col0 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2467
SELECT col1 DIV 57 AS col1, + 8 FROM tab0
----
0
8
0
8
1
8

skipif mysql # not compatible
query II rowsort label-2467
SELECT col1 / 57 AS col1, + 8 FROM tab0
----
0
8
0
8
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT DISTINCT - COUNT( * ) * - 6 + - 21 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT - COUNT ( * ) * - 6 + - 21 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col2 * + 90 - + col0 AS col2 FROM tab2 AS cor0
----
2024
3536
5145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2470
SELECT ALL - CAST( + - 5 AS SIGNED ) DIV - - 59 + + 75 + - COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL - CAST ( + - 5 AS INTEGER ) / - - 59 + + 75 + - COUNT ( * ) FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - ( 15 ) - MAX( - 98 ) AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2471
SELECT - ( 15 ) - MAX ( - 98 ) AS col1 FROM tab1 AS cor0
----
83

query I rowsort
SELECT ALL + - 95 * + col1 * + 93 * col0 AS col2 FROM tab1 AS cor0
----
-3754875
-37787295
-6308190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 27 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 27 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2474
SELECT - CAST( + - 91 AS SIGNED ) AS col1, SUM( + ( + 6 ) ) FROM tab1 AS cor0
----
91
18

skipif mysql # not compatible
query II rowsort label-2474
SELECT - CAST ( + - 91 AS INTEGER ) AS col1, SUM ( + ( + 6 ) ) FROM tab1 AS cor0
----
91
18

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col2 col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT 72 * + MIN( DISTINCT + + col2 ) AS col0, COUNT( * ) AS col2 FROM tab0
----
720
3

skipif mysql # not compatible
query II rowsort label-2477
SELECT 72 * + MIN ( DISTINCT + + col2 ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
720
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT - CAST( - ( - 58 ) AS SIGNED ) * - SUM( + col1 ) * - 96 FROM tab1
----
-367488

skipif mysql # not compatible
query I rowsort label-2478
SELECT - CAST ( - ( - 58 ) AS INTEGER ) * - SUM ( + col1 ) * - 96 FROM tab1
----
-367488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col0 FROM tab0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT ( + col2 ) DIV col1 + + col0 * - + ( + col0 ) FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-2480
SELECT ( + col2 ) / col1 + + col0 * - + ( + col0 ) FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT ( + ( COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT ( + ( COUNT ( * ) ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT ALL COUNT( * ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2482
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2
----
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 <> ( col0 + + 7 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * 24 col0 FROM tab1
----
504
504
504

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE NOT + col1 - + 2 * - col2 / - col1 - - + 39 IS NULL
----
76
76
76

query I rowsort
SELECT 88 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT 16 AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 + - + col0 ) BETWEEN - 97 AND + 75 * + + col2
----

query I rowsort
SELECT ALL - - ( 27 ) FROM tab1 cor0
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + 69
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( - 70 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - 70 * - col2 IN ( - + ( 75 ) )
----

skipif mysql # not compatible
query III rowsort label-2492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - 70 * - col2 IN ( - + ( 75 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - - col1 col2, 27 FROM tab1 AS cor0
----
0
27

query I rowsort
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE - 76 IN ( col1, + 27 )
----

query I rowsort
SELECT 6 * - 35 + col0 FROM tab1 AS cor0
----
-119
-125
-159

query I rowsort
SELECT col2 + - - 74 AS col2 FROM tab1 cor0
----
133
142
170

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / + col2 IS NULL
----

query I rowsort
SELECT - 21 * - - 6 + + + 33 + - 47 FROM tab2
----
-140
-140
-140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2499
SELECT col2 * + + 13 + - + col2 DIV - - CAST( ( - 55 ) AS SIGNED ) AS col1 FROM tab0
----
1288
130
611

skipif mysql # not compatible
query I rowsort label-2499
SELECT col2 * + + 13 + - + col2 / - - CAST ( ( - 55 ) AS INTEGER ) AS col1 FROM tab0
----
1288
130
611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2500
SELECT - - COUNT( * ) * + 77, - COUNT( * ) * + 91 FROM tab1 WHERE + col2 < + CAST( - + ( - col2 ) AS SIGNED )
----
0
0

skipif mysql # not compatible
query II rowsort label-2500
SELECT - - COUNT ( * ) * + 77, - COUNT ( * ) * + 91 FROM tab1 WHERE + col2 < + CAST ( - + ( - col2 ) AS INTEGER )
----
0
0

query I rowsort
SELECT ALL - + 93 FROM tab1 WHERE ( NULL ) NOT BETWEEN 88 AND + col1 * 95 + 64 - - - col2 + - col2
----

query I rowsort
SELECT ( + 63 ) AS col1 FROM tab1 AS cor0
----
63
63
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2, ( - + col0 ) + col2 )
----

query I rowsort
SELECT - - ( - 99 ) * - 2 - - col1 FROM tab0 AS cor0
----
199
219
279

query II rowsort
SELECT ALL + col1, + ( + 89 ) * + - 8 - + col1 FROM tab2
----
51
-763
67
-779
77
-789

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 27 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + + col0 * - 43 FROM tab0 AS cor0
----
-3741
-4171
-645

onlyif mysql # DIV for integer division: 
query II rowsort label-2509
SELECT ALL col0 DIV col1 AS col2, + col1 * col2 * ( ( + col2 ) ) FROM tab0 AS cor0
----
0
178929
4
2100
97
9801

skipif mysql # not compatible
query II rowsort label-2509
SELECT ALL col0 / col1 AS col2, + col1 * col2 * ( ( + col2 ) ) FROM tab0 AS cor0
----
0
178929
4
2100
97
9801

query I rowsort
SELECT + col2 * ( + + 35 ) AS col2 FROM tab0 AS cor0
----
1645
3465
350

onlyif mysql # aggregate syntax: 
query II rowsort label-2511
SELECT + COUNT( * ), COUNT( * ) * - 90 AS col1 FROM tab1 AS cor0
----
3
-270

skipif mysql # not compatible
query II rowsort label-2511
SELECT + COUNT ( * ), COUNT ( * ) * - 90 AS col1 FROM tab1 AS cor0
----
3
-270

query I rowsort
SELECT + ( + - 67 ) FROM tab0 cor0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 30, col2 * - col0 col0 FROM tab0 AS cor0
----
30
-705
30
-870
30
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL + COUNT( * ) * + 67 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + COUNT ( * ) * + 67 FROM tab1
----
201

query I rowsort
SELECT ALL 69 AS col1 FROM tab0 WHERE + - col0 IS NOT NULL
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + 70 * - + COUNT( * ) AS col0 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-2516
SELECT + 70 * - + COUNT ( * ) AS col0 FROM tab2
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2517
SELECT + - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2517
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT DISTINCT - SUM( ALL - + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT - SUM ( ALL - + col2 ) FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT - 44 * - + MIN( DISTINCT col1 ) + - + MIN( ALL + col2 ) * 63 AS col2 FROM tab0 AS cor0
----
-586

skipif mysql # not compatible
query I rowsort label-2520
SELECT - 44 * - + MIN ( DISTINCT col1 ) + - + MIN ( ALL + col2 ) * 63 AS col2 FROM tab0 AS cor0
----
-586

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> ( - ( col1 ) )
----

query I rowsort
SELECT - col1 * - + col2 + + + 51 FROM tab2 AS cor0
----
1224
3131
3937

query I rowsort
SELECT ALL + - 37 + - col1 FROM tab1 AS cor0
----
-42
-51
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL COUNT( - col0 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL COUNT ( - col0 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL - - SUM( ALL + + 91 ) AS col0 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - - SUM ( ALL + + 91 ) AS col0 FROM tab2 AS cor0
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT ALL + ( + COUNT( + 78 ) ) DIV + - 77 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + ( + COUNT ( + 78 ) ) / + - 77 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2527
SELECT * FROM tab0 WHERE col0 >= + - CAST( - 60 AS SIGNED )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-2527
SELECT * FROM tab0 WHERE col0 >= + - CAST ( - 60 AS INTEGER )
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT 42 + col1 + - col1 FROM tab2
----
42

query I rowsort
SELECT col2 - 85 + + + col1 AS col0 FROM tab0
----
-54
15
43

query II rowsort
SELECT + 68, + col2 / - col1 AS col2 FROM tab2 WHERE NULL = col1
----

query II rowsort
SELECT - col0 + + col2 AS col0, col0 FROM tab2
----
-17
75
-23
46
-24
64

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 WHERE NOT NULL = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT CAST( + + 66 AS SIGNED ) + 83 col2 FROM tab2
----
149
149
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2533
SELECT CAST ( + + 66 AS INTEGER ) + 83 col2 FROM tab2
----
149
149
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT ALL 81 DIV + - 11 + - 52 FROM tab1
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL 81 / + - 11 + - 52 FROM tab1
----
-59
-59
-59

query I rowsort
SELECT - + col0 + - + col1 - + col2 FROM tab1 AS cor0
----
-149
-161
-206

onlyif mysql # aggregate syntax: 
query II rowsort label-2536
SELECT DISTINCT 60 AS col1, COUNT( * ) FROM tab1
----
60
3

skipif mysql # not compatible
query II rowsort label-2536
SELECT DISTINCT 60 AS col1, COUNT ( * ) FROM tab1
----
60
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2537
SELECT ALL COUNT( * ) * - SUM( ALL col1 ) AS col1, - 90 FROM tab0
----
-309
-90

skipif mysql # not compatible
query II rowsort label-2537
SELECT ALL COUNT ( * ) * - SUM ( ALL col1 ) AS col1, - 90 FROM tab0
----
-309
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2538
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + col2 AND col0
----

skipif mysql # not compatible
query III rowsort label-2538
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND col0
----

query II rowsort
SELECT col2 AS col2, + col1 * + 33 FROM tab0 AS cor0
----
10
693
47
2673
99
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2540
SELECT DISTINCT 41 - - + ( - col0 ) - - + 24 - - + 78 DIV - + 83, CAST( NULL AS SIGNED ) + + ( col2 ) AS col1 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
-10
NULL
1
NULL
19
NULL

skipif mysql # not compatible
query II rowsort label-2540
SELECT DISTINCT 41 - - + ( - col0 ) - - + 24 - - + 78 / - + 83, CAST ( NULL AS INTEGER ) + + ( col2 ) AS col1 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
-10
NULL
1
NULL
19
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2541
SELECT COUNT( ALL col2 ) DIV - 39 - 13 AS col2 FROM tab2 cor0 WHERE NOT + ( + 90 ) IS NULL
----
-13

skipif mysql # not compatible
query I rowsort label-2541
SELECT COUNT ( ALL col2 ) / - 39 - 13 AS col2 FROM tab2 cor0 WHERE NOT + ( + 90 ) IS NULL
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2542
SELECT ALL + col1 AS col1, col0 * + - col2 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) * - 37 * col1 * col0 IN ( + col0, col1 )
----

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL + col1 AS col1, col0 * + - col2 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) * - 37 * col1 * col0 IN ( + col0, col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT NULL <> 83 * - + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL - SUM( DISTINCT 5 ) * 13 AS col2 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - SUM ( DISTINCT 5 ) * 13 AS col2 FROM tab1
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - 18, col0 * col1 col1 FROM tab0
----
-1782
97
-180
1827
-846
1215

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT - 27 AS col0, MIN( ALL - col1 ) FROM tab0
----
-27
-81

skipif mysql # not compatible
query II rowsort label-2547
SELECT - 27 AS col0, MIN ( ALL - col1 ) FROM tab0
----
-27
-81

query II rowsort
SELECT + col1 AS col2, col1 AS col2 FROM tab2 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT DISTINCT ( + + col0 ) * - col0 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT 43, - col2 AS col2 FROM tab2
----
43
-23
43
-40
43
-58

query I rowsort
SELECT - 12 * + col0 AS col2 FROM tab0
----
-1044
-1164
-180

query I rowsort
SELECT DISTINCT 13 * + col0 AS col1 FROM tab1
----
1105
1183
663

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2553
SELECT - col2 * col0 - col2 * + 7 AS col1, - CAST( NULL AS DECIMAL ) + + - col2 AS col0 FROM tab2 AS cor0
----
-1219
NULL
-2840
NULL
-4756
NULL

skipif mysql # not compatible
query II rowsort label-2553
SELECT - col2 * col0 - col2 * + 7 AS col1, - CAST ( NULL AS REAL ) + + - col2 AS col0 FROM tab2 AS cor0
----
-1219
NULL
-2840
NULL
-4756
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT - COUNT( ALL - col1 ) + 5 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT - COUNT ( ALL - col1 ) + 5 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + - COUNT( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2555
SELECT + - COUNT ( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2556
SELECT DISTINCT + - ( AVG ( - CAST( NULL AS DECIMAL ) ) ) * - + 98 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + - ( AVG ( - CAST ( NULL AS REAL ) ) ) * - + 98 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 12 - + 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL - col1 + - 90 DIV col1 AS col1 FROM tab1 cor0
----
-20
-23
-48

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - col1 + - 90 / col1 AS col1 FROM tab1 cor0
----
-20
-23
-48

query I rowsort
SELECT DISTINCT + 70 * + + col0 AS col1 FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2560
SELECT + - COUNT( - ( - - 56 ) ) DIV - ( 59 ) + + COUNT( * ) * - COUNT( 29 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2560
SELECT + - COUNT ( - ( - - 56 ) ) / - ( 59 ) + + COUNT ( * ) * - COUNT ( 29 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 9 + + + col0 AS col2 FROM tab1 AS cor0
----
100
60
94

query I rowsort
SELECT - ( + + col2 ) + - + 64 AS col1 FROM tab0 cor0
----
-111
-163
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 3 col0 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2565
SELECT DISTINCT - CAST( 97 AS SIGNED ), col2 FROM tab0 AS cor0
----
-97
10
-97
47
-97
99

skipif mysql # not compatible
query II rowsort label-2565
SELECT DISTINCT - CAST ( 97 AS INTEGER ), col2 FROM tab0 AS cor0
----
-97
10
-97
47
-97
99

query I rowsort
SELECT 48 + + ( col2 ) FROM tab1
----
107
116
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT 47 AS col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) < - - col1
----

skipif mysql # not compatible
query I rowsort label-2567
SELECT 47 AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) < - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2568
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 7 + - col0 NOT IN ( - 52, 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL - COUNT( * ) + - 88 AS col1 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - COUNT ( * ) + - 88 AS col1 FROM tab0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2571
SELECT + col2 / CAST( NULL AS DECIMAL ) - + col0 + - col1 * - + 69 * - ( - + col2 ) 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-2571
SELECT + col2 / CAST ( NULL AS REAL ) - + col0 + - col1 * - + 69 * - ( - + col2 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL + COUNT( * ) - + + 53 AS col1 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + COUNT ( * ) - + + 53 AS col1 FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + COUNT( * ) * - 57 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2573
SELECT + COUNT ( * ) * - 57 FROM tab1 AS cor0
----
-171

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN NULL AND - col0 + - col0 * - col2
----

query I rowsort
SELECT DISTINCT - 0 + 72 * + 84 AS col2 FROM tab0 WHERE NOT + col1 + col2 <> - col0
----

query I rowsort
SELECT - 22 - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT - ( + + col1 ) AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT + + SUM( ALL col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2578
SELECT + + SUM ( ALL col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2579
SELECT + - ( + COUNT( * ) ) DIV + - COUNT( - col0 ), + 35 AS col2 FROM tab2 AS cor0
----
1
35

skipif mysql # not compatible
query II rowsort label-2579
SELECT + - ( + COUNT ( * ) ) / + - COUNT ( - col0 ), + 35 AS col2 FROM tab2 AS cor0
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT - MIN( ALL - 18 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2580
SELECT - MIN ( ALL - 18 ) FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT col2 / - col0 > + col1 ) )
----

query I rowsort
SELECT ALL col0 * - 98 AS col2 FROM tab2
----
-4508
-6272
-7350

query I rowsort
SELECT DISTINCT - col1 / col1 AS col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 10 AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2586
SELECT + CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) * - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2586
SELECT + CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) * - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1, - col2 FROM tab2 WHERE + col0 / + col1 + + + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - + 67 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-2588
SELECT - + 67 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-201

query I rowsort
SELECT DISTINCT + - 22 + + ( + 7 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT 39 * - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT 39 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL + + ( - MIN( DISTINCT - - 10 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + + ( - MIN ( DISTINCT - - 10 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

query I rowsort
SELECT DISTINCT + + 72 + + - 78 AS col0 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT - + col1, + col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT col2 * 74 + col0 + 48 AS col2 FROM tab2 AS cor0
----
1796
3072
4415

query I rowsort
SELECT ALL - ( - col1 ) * col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT + CAST( 89 AS SIGNED ) FROM tab1 cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-2596
SELECT + CAST ( 89 AS INTEGER ) FROM tab1 cor0
----
89
89
89

query I rowsort
SELECT + 89 * + + col2 * - - 38 AS col0 FROM tab0 AS cor0
----
158954
334818
33820

query I rowsort
SELECT ALL - col0 * + 45 - - col0 AS col2 FROM tab2 cor0
----
-2024
-2816
-3300

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * + col0 * - col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2601
SELECT ALL - - SUM( DISTINCT + + col1 ) - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL - - SUM ( DISTINCT + + col1 ) - + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 35 AS col2, + col1 AS col0 FROM tab1 AS cor0
----
35
14
35
47
35
5

query I rowsort
SELECT + 60 AS col1 FROM tab1 WHERE NULL IS NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT ALL + ( - COUNT( * ) ) AS col2, 40 * + COUNT( * ) FROM tab2
----
-3
120

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL + ( - COUNT ( * ) ) AS col2, 40 * + COUNT ( * ) FROM tab2
----
-3
120

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT DISTINCT + COUNT( * ) * - 80 + + 91 AS col2, 10 FROM tab1
----
-149
10

skipif mysql # not compatible
query II rowsort label-2605
SELECT DISTINCT + COUNT ( * ) * - 80 + + 91 AS col2, 10 FROM tab1
----
-149
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT 65 + COUNT( * ) + - COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-2606
SELECT 65 + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
65

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 NOT BETWEEN NULL AND - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + col1 * ( + 57 ) + - 98 * + col1 * col2 FROM tab2
----
-20944
-94403
18768

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2609
SELECT - COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col1 AS col0, col1 / - col1 * + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col0 <> - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2612
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * - - 91 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2612
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * - - 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT MAX( + 24 ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT MAX ( + 24 ) AS col0 FROM tab1
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT IN ( + 49 )
----

query I rowsort
SELECT col1 * - ( + + col1 ) AS col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT - SUM( - 61 ) AS col0 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-2617
SELECT - SUM ( - 61 ) AS col0 FROM tab2 AS cor0
----
183

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( + ( - 49 ) ) FROM tab0
----
-49

query III rowsort
SELECT * FROM tab1 WHERE NOT - 8 IS NOT NULL
----

query I rowsort
SELECT ( + + col2 ) + + 28 AS col1 FROM tab0
----
127
38
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( DISTINCT col2 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2622
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT col2 ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT COUNT( ALL - col0 ) + + ( 90 ) * 75 AS col2 FROM tab0
----
6753

skipif mysql # not compatible
query I rowsort label-2623
SELECT COUNT ( ALL - col0 ) + + ( 90 ) * 75 AS col2 FROM tab0
----
6753

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2624
SELECT * FROM tab1 WHERE NOT 53 * + + CAST( NULL AS SIGNED ) - + - 90 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2624
SELECT * FROM tab1 WHERE NOT 53 * + + CAST ( NULL AS INTEGER ) - + - 90 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col1 * + col0 + - - col0 AS col0 FROM tab2
----
2392
4992
5100

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT col1 DIV - 76 + - 6 FROM tab0
----
-6
-6
-7

skipif mysql # not compatible
query I rowsort label-2627
SELECT col1 / - 76 + - 6 FROM tab0
----
-6
-6
-7

query II rowsort
SELECT ALL - col2 * 70 AS col1, col2 FROM tab2 AS cor0
----
-1610
23
-2800
40
-4060
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2629
SELECT SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT col1 * col2 * + + 67 FROM tab1
----
19765
214132
90048

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL - ( - COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2631
SELECT ALL - ( - COUNT ( * ) ) col1 FROM tab1
----
3

query I rowsort
SELECT + 70 - - col1 FROM tab2
----
121
137
147

query I rowsort
SELECT DISTINCT col1 + - - col0 - + 4 + col1 AS col1 FROM tab1
----
181
75
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT - COUNT( * ) col0, - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 = - col0 / - col0 * - col0 * col1 + - - 29
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2634
SELECT - COUNT ( * ) col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 = - col0 / - col0 * - col0 * col1 + - - 29
----
0
0

query I rowsort
SELECT ALL - - 0 + + - col1 * + col2 FROM tab0 AS cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + + col2 - - 11 * 36 + 66 col0 FROM tab2 AS cor0
----
471
490
499

query I rowsort
SELECT ALL + col1 * - ( - - col0 ) + + col0 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2638
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2639
SELECT * FROM tab2 AS cor0 WHERE col1 * col0 * CAST( col0 AS SIGNED ) < - - 76 * + 27 + + col2 * + 38
----

skipif mysql # not compatible
query III rowsort label-2639
SELECT * FROM tab2 AS cor0 WHERE col1 * col0 * CAST ( col0 AS INTEGER ) < - - 76 * + 27 + + col2 * + 38
----

query I rowsort
SELECT 48 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 52 ) - 54 col2 FROM tab1 AS cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL col0 * col2 + + 33 - - 5 DIV - + 3 - - col1 - - + col1 AS col2 FROM tab1 AS cor0
----
4956
5057
6314

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL col0 * col2 + + 33 - - 5 / - + 3 - - col1 - - + col1 AS col2 FROM tab1 AS cor0
----
4956
5057
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT + - SUM( DISTINCT col2 ) - 95 col2 FROM tab0 AS cor0
----
-251

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2644
SELECT DISTINCT + - SUM ( DISTINCT col2 ) - 95 col2 FROM tab0 AS cor0
----
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 + 98 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2645
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 + 98 IS NOT NULL
----
3

query I rowsort
SELECT + col2 * + + ( + + 45 ) FROM tab1
----
2655
3060
4320

query I rowsort
SELECT ALL - col1 + col0 - 71 + + - col0 / - col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( + col1 ) * + ( + col0 ) AS col2, - col0 * col1 AS col1 FROM tab2
----
-2346
-2346
-4928
-4928
-5025
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-2649
SELECT - COUNT( * ), - 35 AS col1 FROM tab1 AS cor0
----
-3
-35

skipif mysql # not compatible
query II rowsort label-2649
SELECT - COUNT ( * ), - 35 AS col1 FROM tab1 AS cor0
----
-3
-35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 19 + + + 48 IS NULL
----

query I rowsort
SELECT DISTINCT - 18 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT + col0 * + 50 * + 11 AS col0 FROM tab2 AS cor0
----
25300
35200
41250

query I rowsort
SELECT + + 12 AS col0 FROM tab1 cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + - col2 ) col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-2655
SELECT col2 DIV 68 AS col0, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-2655
SELECT col2 / 68 AS col0, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT COUNT( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2656
SELECT COUNT ( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col0, + 35 AS col0 FROM tab1
----
-51
35
-85
35
-91
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2658
SELECT ALL 75 AS col0, + CAST( 54 AS SIGNED ) AS col1 FROM tab0
----
75
54
75
54
75
54

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL 75 AS col0, + CAST ( 54 AS INTEGER ) AS col1 FROM tab0
----
75
54
75
54
75
54

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= col2
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 95 AND - col1
----

query I rowsort
SELECT ALL + 78 * 25 + + 35 AS col1 FROM tab1
----
1985
1985
1985

query I rowsort
SELECT col2 + ( + 61 ) + + 20 AS col1 FROM tab1
----
140
149
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT + - CAST( + col2 AS SIGNED ) + ( + ( - - col2 ) ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2663
SELECT + - CAST ( + col2 AS INTEGER ) + ( + ( - - col2 ) ) AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT 20 * - col1 AS col2, 74 * + - col1 * + 8 FROM tab2
----
-1020
-30192
-1340
-39664
-1540
-45584

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - 44 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2666
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - 44 IS NOT NULL
----
3

query I rowsort
SELECT + - 48 - col1 FROM tab0 cor0
----
-129
-49
-69

query I rowsort
SELECT 37 - - 22 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT - + col2 * - 15 * col0 - - col2 + + - 17 * - - col2 + - col1 AS col2 FROM tab1 AS cor0
----
71890
74276
91685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT + 21 - AVG ( ALL + col1 ) + - CAST( NULL AS SIGNED ) * - - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT + 21 - AVG ( ALL + col1 ) + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT 82 - + col2 AS col0 FROM tab1 AS cor0 WHERE CAST( - 72 AS SIGNED ) IS NOT NULL
----
-14
14
23

skipif mysql # not compatible
query I rowsort label-2671
SELECT 82 - + col2 AS col0 FROM tab1 AS cor0 WHERE CAST ( - 72 AS INTEGER ) IS NOT NULL
----
-14
14
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT + COUNT( * ) - - + 70 AS col1 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT + COUNT ( * ) - - + 70 AS col1 FROM tab2 cor0
----
73

query I rowsort
SELECT ALL col1 - - + col1 + - col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT 99 * + col0 AS col0 FROM tab2
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT SUM( - - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2675
SELECT SUM ( - - col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL MIN( - 81 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL MIN ( - 81 ) FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL - CAST( NULL AS SIGNED ) * - + 50 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 50 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT 47 * + COUNT( * ) AS col0 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-2678
SELECT 47 * + COUNT ( * ) AS col0 FROM tab0
----
141

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL BETWEEN + col0 * + ( col2 ) AND + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL 54 * + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0
----
486

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL 54 * + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT - ( 77 ) * + COUNT( * ) AS col1 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - ( 77 ) * + COUNT ( * ) AS col1 FROM tab2
----
-231

query I rowsort
SELECT + - 95 AS col1 FROM tab1 cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2683
SELECT ALL + col2, CAST( NULL AS SIGNED ) + - - col1 - + 33 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2683
SELECT ALL + col2, CAST ( NULL AS INTEGER ) + - - col1 - + 33 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT - - 99 * + ( SUM( ALL - col1 ) ) FROM tab2 AS cor0
----
-19305

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT - - 99 * + ( SUM ( ALL - col1 ) ) FROM tab2 AS cor0
----
-19305

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT ( + COUNT( DISTINCT - + 90 ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT ( + COUNT ( DISTINCT - + 90 ) ) AS col1 FROM tab1
----
1

query I rowsort
SELECT + 60 * 91 FROM tab2
----
5460
5460
5460

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 80 AS col2 FROM tab1 AS cor0
----
33
66
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT ALL - ( COUNT( * ) ), 39 AS col0 FROM tab1 AS cor0
----
-3
39

skipif mysql # not compatible
query II rowsort label-2689
SELECT ALL - ( COUNT ( * ) ), 39 AS col0 FROM tab1 AS cor0
----
-3
39

query I rowsort
SELECT col2 * - + col1 + - col0 * col1 FROM tab1 AS cor0
----
-2058
-720
-7473

query I rowsort
SELECT DISTINCT 32 * - 67 FROM tab0 AS cor0
----
-2144

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT ALL - SUM( DISTINCT + + col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL - SUM ( DISTINCT + + col0 ) FROM tab0 cor0
----
-199

query I rowsort
SELECT + 48 * col0 + 5 AS col1 FROM tab2
----
2213
3077
3605

query I rowsort
SELECT col2 + ( 51 ) AS col2 FROM tab0
----
150
61
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 + + 28, 32 AS col1 FROM tab2
----
51
32
68
32
86
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT ALL 14 + + COUNT( * ) AS col1, + ( COUNT( * ) ) AS col2 FROM tab0
----
17
3

skipif mysql # not compatible
query II rowsort label-2697
SELECT ALL 14 + + COUNT ( * ) AS col1, + ( COUNT ( * ) ) AS col2 FROM tab0
----
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2698
SELECT DISTINCT * FROM tab2 WHERE CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2698
SELECT DISTINCT * FROM tab2 WHERE CAST ( - col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - 79 * - COUNT( ALL - ( - 2 ) ) FROM tab0, tab2 AS cor0
----
711

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 79 * - COUNT ( ALL - ( - 2 ) ) FROM tab0, tab2 AS cor0
----
711

query I rowsort
SELECT - + col0 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT ALL + CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - + 80 AS col0 FROM tab2 cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT ( - 71 ) * col0 AS col2 FROM tab0
----
-1065
-6177
-6887

query I rowsort
SELECT ALL - ( 97 ) * 66 FROM tab2
----
-6402
-6402
-6402

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT - COUNT( * ) * - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2707
SELECT - COUNT ( * ) * - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT - + 58 DIV + MIN( col1 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2708
SELECT - + 58 / + MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL 22 * + col1 FROM tab2 cor0
----
1122
1474
1694

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT ALL + col1 + + - 49 DIV - 49 AS col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL + col1 + + - 49 / - 49 AS col2 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT + COUNT( * ) * 39 FROM tab1 AS cor0 WHERE + col1 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT + COUNT ( * ) * 39 FROM tab1 AS cor0 WHERE + col1 + - col1 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2712
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - - col1 - + ( - 37 ) < + CAST( - + col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2712
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - - col1 - + ( - 37 ) < + CAST ( - + col2 AS REAL )
----

query II rowsort
SELECT DISTINCT + col1 AS col1, + col2 - + + col2 AS col2 FROM tab0
----
1
0
21
0
81
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( NOT NULL < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT ALL + col2 + + - col2 DIV - 62 col2 FROM tab1
----
59
69
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2715
SELECT ALL + col2 + + - col2 / - 62 col2 FROM tab1
----
59
69
97

query II rowsort
SELECT DISTINCT col0 + + + col1 AS col0, - 42 AS col2 FROM tab2
----
141
-42
142
-42
97
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL - 93 - + + COUNT( * ) * + - 24 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL - 93 - + + COUNT ( * ) * + - 24 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL - + ( 8 ) * - COUNT( * ) FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - + ( 8 ) * - COUNT ( * ) FROM tab0 cor0
----
24

query I rowsort
SELECT DISTINCT + col0 - + col2 + + 94 FROM tab0 AS cor0
----
171
62
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT ALL - + COUNT( * ) / + - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - + COUNT ( * ) / + - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + + 10 + - 93 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 > - ( - 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( 35 ) AS col1, col2 + 35 FROM tab0 AS cor0
----
35
134
35
45
35
82

query II rowsort
SELECT ALL col1, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
99
21
10
81
47

query II rowsort
SELECT col2, col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 9 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT + + 46 * + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-414

skipif mysql # not compatible
query I rowsort label-2728
SELECT + + 46 * + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-414

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2729
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( - - CAST( - col2 AS SIGNED ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2729
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( - - CAST ( - col2 AS INTEGER ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 55 * 25 * - 84 + + col1 <> col2
----

query I rowsort
SELECT DISTINCT - 8 * + col1 FROM tab2
----
-408
-536
-616

query III rowsort
SELECT ALL * FROM tab2 WHERE + 13 > - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT - col1 FROM tab0 WHERE NOT - 55 * col1 * col2 * - col2 * col1 * + col2 * - CAST( NULL AS SIGNED ) NOT BETWEEN col2 * col1 * - + col1 + - 78 - col1 * - col1 + - col1 AND + + col1
----

skipif mysql # not compatible
query I rowsort label-2733
SELECT - col1 FROM tab0 WHERE NOT - 55 * col1 * col2 * - col2 * col1 * + col2 * - CAST ( NULL AS INTEGER ) NOT BETWEEN col2 * col1 * - + col1 + - 78 - col1 * - col1 + - col1 AND + + col1
----

query II rowsort
SELECT DISTINCT + col2, + col1 + 68 AS col0 FROM tab1
----
59
73
68
115
96
82

query I rowsort
SELECT - col0 * - - 43 FROM tab0
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL - COUNT( DISTINCT + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - COUNT ( DISTINCT + col0 ) FROM tab2
----
-3

query I rowsort
SELECT - ( - - 91 ) FROM tab1
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-2738
SELECT ALL - col0 AS col2, col1 DIV col0 AS col1 FROM tab0 cor0
----
-15
5
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-2738
SELECT ALL - col0 AS col2, col1 / col0 AS col1 FROM tab0 cor0
----
-15
5
-87
0
-97
0

query I rowsort
SELECT 92 * + 37 FROM tab0 AS cor0
----
3404
3404
3404

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT - col1 DIV + 52 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT - col1 / + 52 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + 51 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + 51 ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL + 35 + col1 + + col0 AS col2 FROM tab0 AS cor0
----
131
133
143

query I rowsort
SELECT DISTINCT ( + col1 ) * + - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT col1 + + 64 FROM tab0 AS cor0
----
145
65
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT - + col0 + 25 + + CAST( NULL AS SIGNED ) + col0 * ( - 16 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT - + col0 + 25 + + CAST ( NULL AS INTEGER ) + col0 * ( - 16 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT + - 72 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT + - 72 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2748
SELECT DISTINCT + 7 DIV + col0 AS col0, col2 * - 26 AS col1 FROM tab1 AS cor0
----
0
-1534
0
-1768
0
-2496

skipif mysql # not compatible
query II rowsort label-2748
SELECT DISTINCT + 7 / + col0 AS col0, col2 * - 26 AS col1 FROM tab1 AS cor0
----
0
-1534
0
-1768
0
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT - + col1 + col1 + - + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT - + col1 + col1 + - + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT COUNT( * ) * + + MIN( DISTINCT 11 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-2750
SELECT COUNT ( * ) * + + MIN ( DISTINCT 11 ) FROM tab2
----
33

query I rowsort
SELECT + 1 * - 1 * - 13 * + - col0 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT ALL - col0 * col2 * - 81 FROM tab1
----
396576
406215
501228

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT - 7 + - ( + MIN( 59 ) ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - 7 + - ( + MIN ( 59 ) ) FROM tab0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2754
SELECT - 19 DIV + - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2754
SELECT - 19 / + - COUNT ( * ) FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT DISTINCT col2 DIV + + col0 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT col2 / + + col0 AS col2 FROM tab0
----
0
1
3

query I rowsort
SELECT DISTINCT + - 29 AS col2 FROM tab2 WHERE + col1 > NULL
----

query I rowsort
SELECT + + col0 * + - col1 * - 93 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT 69 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT 69 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 - ( - ( - ( + + col1 ) ) ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + 14 - - MAX( col1 ) AS col2 FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-2760
SELECT + 14 - - MAX ( col1 ) AS col2 FROM tab0 cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL + + COUNT( * ) * 23 + + COUNT( * ) - - + COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + + COUNT ( * ) * 23 + + COUNT ( * ) - - + COUNT ( * ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT 66 + COUNT( * ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2762
SELECT 66 + COUNT ( * ) AS col0 FROM tab1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2764
SELECT CAST( - COUNT( * ) AS SIGNED ) DIV + + 45 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT CAST ( - COUNT ( * ) AS INTEGER ) / + + 45 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT + + ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + + ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 49 >= + + 46 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT + CAST( ( 10 ) AS SIGNED ) FROM tab1 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-2767
SELECT + CAST ( ( 10 ) AS INTEGER ) FROM tab1 AS cor0
----
10
10
10

query II rowsort
SELECT col0 AS col0, 4 AS col0 FROM tab0 AS cor0
----
15
4
87
4
97
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, col1 - + col2 col0 FROM tab0 AS cor0
----
1
-98
21
11
81
34

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + - col0 AS col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) AS col1, col1 col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 44 + - col2 = - + 34
----

query I rowsort
SELECT - + 64 * + ( - ( - col1 ) ) + - 10 AS col1 FROM tab0 AS cor0
----
-1354
-5194
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT ALL - 9 / + 68 + + 65 / MIN( - - col0 ) + + + MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL - 9 / + 68 + + 65 / MIN ( - - col0 ) + + + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - ( SUM( col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - ( SUM ( col2 ) ) FROM tab1
----
-223

query I rowsort
SELECT DISTINCT col1 * - col1 * + col0 + + + col0 AS col1 FROM tab0
----
-38280
-98400
0

query I rowsort
SELECT - col0 + + 39 * 99 * - col2 FROM tab0 AS cor0
----
-181482
-382336
-38697

query I rowsort
SELECT col2 + 9 AS col2 FROM tab0
----
108
19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - - SUM( DISTINCT + - 88 ) AS col1 FROM tab2 WHERE NULL = 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT - - SUM ( DISTINCT + - 88 ) AS col1 FROM tab2 WHERE NULL = 29
----
NULL

query II rowsort
SELECT + + col2, - 42 FROM tab1 AS cor0
----
59
-42
68
-42
96
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN NULL AND - 93 + - - 89
----

query I rowsort
SELECT DISTINCT col2 * - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT - col1, 89 AS col2 FROM tab1 AS cor0
----
-14
89
-47
89
-5
89

onlyif mysql # DIV for integer division: 
query II rowsort label-2786
SELECT ALL - col1 * + col2 - + + col2 AS col2, - col0 DIV - col2 + col2 FROM tab2 cor0
----
-1196
25
-3120
41
-3944
59

skipif mysql # not compatible
query II rowsort label-2786
SELECT ALL - col1 * + col2 - + + col2 AS col2, - col0 / - col2 + col2 FROM tab2 cor0
----
-1196
25
-3120
41
-3944
59

query I rowsort
SELECT 51 + - - col0 FROM tab2
----
115
126
97

query III rowsort
SELECT * FROM tab1 WHERE + + 29 * 83 * + col1 * - + col0 IS NULL
----

query I rowsort
SELECT - col0 + - - 87 AS col2 FROM tab1
----
-4
2
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2790
SELECT 58 DIV + - 63 + + + 97 DIV + COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-2790
SELECT 58 / + - 63 + + + 97 / + COUNT ( * ) FROM tab2
----
32

query I rowsort
SELECT col1 + ( + + ( 88 ) ) * col2 FROM tab0
----
4217
8713
901

query II rowsort
SELECT + ( - - col2 ) + ( + - col2 ), - ( + col1 ) + - 28 AS col0 FROM tab2
----
0
-105
0
-79
0
-95

query I rowsort
SELECT DISTINCT + 70 + - 86 * - col1 AS col0 FROM tab2
----
4456
5832
6692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT - 21 + + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2794
SELECT - 21 + + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT + ( 0 ) FROM tab0 AS cor0 WHERE NOT 81 + 79 + + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + 97 * - + COUNT( * ) FROM tab1, tab2 AS cor0
----
-873

skipif mysql # not compatible
query I rowsort label-2797
SELECT + 97 * - + COUNT ( * ) FROM tab1, tab2 AS cor0
----
-873

query I rowsort
SELECT - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2799
SELECT DISTINCT - 91 / - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT - 91 / - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col1 AS col1, + col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT col1 + - col1 + 73 + + 25 * + 90 AS col2 FROM tab1
----
2323
2323
2323

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 87 + - ( 77 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT ALL - CAST( 61 AS SIGNED ) * - 5 FROM tab1
----
305
305
305

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - CAST ( 61 AS INTEGER ) * - 5 FROM tab1
----
305
305
305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col1 - + + col2 FROM tab1
----
59
-64
68
-115
96
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2805
SELECT ALL CAST( + col2 AS SIGNED ) AS col0, - 27 AS col2 FROM tab0 AS cor0
----
10
-27
47
-27
99
-27

skipif mysql # not compatible
query II rowsort label-2805
SELECT ALL CAST ( + col2 AS INTEGER ) AS col0, - 27 AS col2 FROM tab0 AS cor0
----
10
-27
47
-27
99
-27

query II rowsort
SELECT DISTINCT col0, col1 * + + col0 * - col0 * - - col1 AS col1 FROM tab2 AS cor0
----
46
-5503716
64
-24285184
75
-25250625

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT SUM( - col2 ) FROM tab2 cor0 WHERE NOT ( NOT col1 * col0 + - col2 <= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT SUM ( - col2 ) FROM tab2 cor0 WHERE NOT ( NOT col1 * col0 + - col2 <= NULL )
----
NULL

query I rowsort
SELECT - + col1 * + + 95 AS col0 FROM tab0 AS cor0
----
-1995
-7695
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) * + ( col1 ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2809
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) * + ( col1 ) col0 FROM tab1
----
NULL

query I rowsort
SELECT + 74 + + col2 FROM tab1
----
133
142
170

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT - - 41 + - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2812
SELECT - - 41 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2813
SELECT col2 AS col0, col1 * CAST( NULL AS SIGNED ) * - ( 57 ) * + - 40 AS col1 FROM tab2 cor0 WHERE 87 IS NOT NULL
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2813
SELECT col2 AS col0, col1 * CAST ( NULL AS INTEGER ) * - ( 57 ) * + - 40 AS col1 FROM tab2 cor0 WHERE 87 IS NOT NULL
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT ALL 1 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT 53 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-5
13
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT DISTINCT + - col2 * - col0 - - CAST( col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + - col2 * - col0 - - CAST ( col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL - - COUNT( * ) - + 80 AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - - COUNT ( * ) - + 80 AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col2 + + col1 + + 55 AS col1 FROM tab2 AS cor0
----
129
172
180

onlyif mysql # DIV for integer division: 
query II rowsort label-2819
SELECT + col1 DIV + - 65 AS col1, + ( + col2 ) AS col0 FROM tab0 cor0
----
-1
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-2819
SELECT + col1 / + - 65 AS col1, + ( + col2 ) AS col0 FROM tab0 cor0
----
-1
47
0
10
0
99

query II rowsort
SELECT ALL col0, + col1 + 7 AS col1 FROM tab0
----
15
88
87
28
97
8

query I rowsort
SELECT 28 * + col1 FROM tab1
----
1316
140
392

query I rowsort
SELECT ALL col0 * + 19 * + 31 * + col1 AS col2 FROM tab2
----
1381794
2902592
2959725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT ( NOT ( NULL ) <> NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2823
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT ( NOT ( NULL ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL COUNT( * ) * + + 83 AS col2 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL COUNT ( * ) * + + 83 AS col2 FROM tab0
----
249

query I rowsort
SELECT + col2 * + 76 AS col2 FROM tab2 AS cor0
----
1748
3040
4408

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 66 - + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT ALL - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * - - 47 * + 2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - 47 * + 2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT DISTINCT SUM( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2829
SELECT + - 27 AS col2, - CAST( NULL AS DECIMAL ) - - MAX( + col0 ) + + - COUNT( * ) * + COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-2829
SELECT + - 27 AS col2, - CAST ( NULL AS REAL ) - - MAX ( + col0 ) + + - COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-27
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 <> ( col2 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - 45 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT 51 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-2832
SELECT 51 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ( COUNT( * ) ) + COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT ( COUNT ( * ) ) + COUNT ( * ) col1 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT col1 + col0 DIV - col2 AS col0 FROM tab0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-2834
SELECT col1 + col0 / - col2 AS col0 FROM tab0
----
1
13
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT COUNT( * ) + + 25 AS col0 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-2835
SELECT COUNT ( * ) + + 25 AS col0 FROM tab2
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col1 FROM tab1
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL - MIN( DISTINCT 67 ) AS col1 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - MIN ( DISTINCT 67 ) AS col1 FROM tab0
----
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 >= - 58 - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + - 11 AS col0 FROM tab2
----
35
53
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2840
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE col2 * - 11 > - 59 * ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE col2 * - 11 > - 59 * ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT - 63 IS NOT NULL
----

query I rowsort
SELECT + col1 + 0 AS col0 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT - COUNT( * ) - + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 WHERE NOT ( - CAST( + col2 AS SIGNED ) ) + + 83 NOT BETWEEN NULL AND - 52
----
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT - COUNT ( * ) - + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - CAST ( + col2 AS INTEGER ) ) + + 83 NOT BETWEEN NULL AND - 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2844
SELECT DISTINCT * FROM tab1 WHERE ( + CAST( - 3 AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2844
SELECT DISTINCT * FROM tab1 WHERE ( + CAST ( - 3 AS INTEGER ) ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT ALL + CAST( + 62 AS SIGNED ) + col0 FROM tab0
----
149
159
77

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL + CAST ( + 62 AS INTEGER ) + col0 FROM tab0
----
149
159
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2846
SELECT * FROM tab2 WHERE ( NULL ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2846
SELECT * FROM tab2 WHERE ( NULL ) < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 7 FROM tab0 WHERE NOT col1 + - 51 NOT IN ( 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT COUNT( * ) + 91 AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2848
SELECT COUNT ( * ) + 91 AS col0 FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT - ( CAST( NULL AS SIGNED ) ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT - ( CAST ( NULL AS INTEGER ) ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - ( col0 ) * col2 AS col2 FROM tab2
----
-1012
-2496
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT + MIN( ALL col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2852
SELECT + MIN ( ALL col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT + 49 + + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT + 49 + + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT + col2 + col2 DIV + col2 AS col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-2855
SELECT + col2 + col2 / + col2 AS col2 FROM tab0
----
100
11
48

query I rowsort
SELECT ALL - col2 * col1 + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1330
-290
-3149

query I rowsort
SELECT - 21 * - col1 + - col2 FROM tab1 AS cor0
----
198
46
919

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= + 35 * - col1 + + 76
----
59
68
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 + - ( - col1 + col0 * + col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2860
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) < col0
----

skipif mysql # not compatible
query III rowsort label-2860
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT + COUNT( - 30 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2861
SELECT + COUNT ( - 30 ) FROM tab2
----
3

query I rowsort
SELECT ALL 3 + + col1 AS col2 FROM tab0 AS cor0
----
24
4
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 AS cor0 WHERE col1 * - col0 NOT IN ( - 80 )
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 59 - - col2 FROM tab2 AS cor0
----
117
82
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <> - 27 / + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT 55 * - col1 - + col1 DIV ( 27 * + 36 + - col0 ) AS col1 FROM tab2 cor0
----
-2805
-3685
-4235

skipif mysql # not compatible
query I rowsort label-2866
SELECT 55 * - col1 - + col1 / ( 27 * + 36 + - col0 ) AS col1 FROM tab2 cor0
----
-2805
-3685
-4235

query I rowsort
SELECT ALL 20 - col1 FROM tab1 AS cor0
----
-27
15
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 42 * 1 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT + COUNT( * ) DIV COUNT( * ) - 41 AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-2870
SELECT + COUNT ( * ) / COUNT ( * ) - 41 AS col2 FROM tab0 AS cor0
----
-40

query III rowsort
SELECT * FROM tab1 WHERE - 56 = 13 + col2
----

query I rowsort
SELECT + 89 * + col1 AS col0 FROM tab2
----
4539
5963
6853

query I rowsort
SELECT 97 * - 50 AS col1 FROM tab2
----
-4850
-4850
-4850

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + 55 * + COUNT( * ) AS col0 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-2874
SELECT + 55 * + COUNT ( * ) AS col0 FROM tab0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT CAST( + - col2 AS SIGNED ) col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2875
SELECT CAST ( + - col2 AS INTEGER ) col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT 38 DIV + SUM( col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT 38 / + SUM ( col2 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL + 74 * + COUNT( * ) AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + 74 * + COUNT ( * ) AS col2 FROM tab2
----
222

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT COUNT( DISTINCT - 69 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2879
SELECT COUNT ( DISTINCT - 69 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL - - SUM( DISTINCT + ( + 59 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - - SUM ( DISTINCT + ( + 59 ) ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT MIN( DISTINCT - 70 ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2881
SELECT MIN ( DISTINCT - 70 ) FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ( - - col0 ) + - col1 AS col0 FROM tab0 cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT 73 * + COUNT( * ) col2 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2883
SELECT DISTINCT 73 * + COUNT ( * ) col2 FROM tab2 AS cor0
----
219

query I rowsort
SELECT + col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND - col0 + col2
----

query I rowsort
SELECT col2 + col2 * + 46 AS col2 FROM tab2
----
1081
1880
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT COUNT( + col2 ) + + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2886
SELECT COUNT ( + col2 ) + + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL - 68 + + - COUNT( * ) + COUNT( * ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - 68 + + - COUNT ( * ) + COUNT ( * ) FROM tab2
----
-68

query I rowsort
SELECT - 48 AS col2 FROM tab1 WHERE + 35 IS NOT NULL
----
-48
-48
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + col2 / - col1 + ( + col1 )
----

query I rowsort
SELECT ALL + 41 + - 78 + + - col0 AS col2 FROM tab1
----
-122
-128
-88

query I rowsort
SELECT ALL col0 * - - col0 * col1 + 25 FROM tab0
----
158974
18250
9434

query I rowsort
SELECT DISTINCT + col0 * col2 * + col0 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT - col2 / 30 - - col0 * CAST( + col1 AS SIGNED ) FROM tab2 cor0 WHERE 84 * col1 < - col0
----

skipif mysql # not compatible
query I rowsort label-2893
SELECT - col2 / 30 - - col0 * CAST ( + col1 AS INTEGER ) FROM tab2 cor0 WHERE 84 * col1 < - col0
----

query III rowsort
SELECT * FROM tab1 WHERE - 15 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2895
SELECT + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( + 25 )
----

query I rowsort
SELECT ALL + col2 * col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( + - 75 ) + - col2 FROM tab1 cor0 WHERE + 5 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * ( - + 5 ) + - + col1 AS col1 FROM tab2 cor0
----
-281
-397
-442

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2900
SELECT * FROM tab1 cor0 WHERE + col2 / + col1 BETWEEN NULL AND + col1 * + CAST( 73 AS DECIMAL ) * 45
----

skipif mysql # not compatible
query III rowsort label-2900
SELECT * FROM tab1 cor0 WHERE + col2 / + col1 BETWEEN NULL AND + col1 * + CAST ( 73 AS REAL ) * 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT ALL - + 48 + - 76 DIV col2 + + 33 FROM tab2 AS cor0
----
-16
-16
-18

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - + 48 + - 76 / col2 + + 33 FROM tab2 AS cor0
----
-16
-16
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2902
SELECT ALL CAST( + ( - col0 ) AS SIGNED ) - - ( + + col1 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL CAST ( + ( - col0 ) AS INTEGER ) - - ( + + col1 ) / - col1 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT ALL + col0 + - 71 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-20
14
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN + col0 AND ( + 51 )
----

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE NOT - col1 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - MIN( DISTINCT + 16 ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-2906
SELECT - MIN ( DISTINCT + 16 ) AS col0 FROM tab2
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, - 92 col2 FROM tab0
----
-15
-92
-87
-92
-97
-92

query II rowsort
SELECT DISTINCT + 53 AS col0, col1 * - 99 - + col2 * + ( col1 ) - + 84 AS col2 FROM tab1
----
53
-2814
53
-7933
53
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT - COUNT( + - ( col1 ) ) + + 68 AS col0 FROM tab1 WHERE NOT NULL > col1 * - + col0
----
68

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - COUNT ( + - ( col1 ) ) + + 68 AS col0 FROM tab1 WHERE NOT NULL > col1 * - + col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2910
SELECT * FROM tab0 WHERE NOT - CAST( + + col1 AS SIGNED ) NOT IN ( col2 + col2 )
----

skipif mysql # not compatible
query III rowsort label-2910
SELECT * FROM tab0 WHERE NOT - CAST ( + + col1 AS INTEGER ) NOT IN ( col2 + col2 )
----

query I rowsort
SELECT + 40 * + col1 FROM tab0
----
3240
40
840

query II rowsort
SELECT DISTINCT + col1, col0 + 40 FROM tab0
----
1
137
21
127
81
55

query II rowsort
SELECT ALL 33, col0 FROM tab2 AS cor0
----
33
46
33
64
33
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT + - MIN( + - col0 ) col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2914
SELECT DISTINCT + - MIN ( + - col0 ) col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - - ( col2 ) FROM tab2 AS cor0 WHERE col2 BETWEEN + - ( col2 ) AND col2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 <= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 11 / col2 ) IS NULL
----

query I rowsort
SELECT - + 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL 23 * - + 5 * col1 FROM tab2 WHERE NOT - 3 * 86 NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * + 45 col2 FROM tab0
----
31725
39150
432135

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL MAX( ALL - + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL MAX ( ALL - + col1 ) AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2922
SELECT 22 * - CAST( 71 AS SIGNED ) * + col0 DIV - col0 AS col1 FROM tab1
----
1562
1562
1562

skipif mysql # not compatible
query I rowsort label-2922
SELECT 22 * - CAST ( 71 AS INTEGER ) * + col0 / - col0 AS col1 FROM tab1
----
1562
1562
1562

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= ( + - 55 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 34 BETWEEN - col1 AND ( - 80 - + col1 * - col2 * + + col0 )
----

query I rowsort
SELECT col0 * - 64 AS col0 FROM tab2 cor0
----
-2944
-4096
-4800

query I rowsort
SELECT ( + col2 ) * 30 AS col1 FROM tab1 AS cor0
----
1770
2040
2880

query I rowsort
SELECT ALL ( + col0 ) * - 68 FROM tab0 AS cor0
----
-1020
-5916
-6596

query I rowsort
SELECT DISTINCT - 6 + col2 - + + 3 + - col2 * + 46 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2124
-4464
-459

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 44 + - 53 NOT BETWEEN ( col0 ) AND - col1 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT DISTINCT - 7 * + ( - col1 ) * - col0 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT - 7 * + ( - col1 ) * - col0 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) + + + col2 col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 39 + + col2 AS col0 FROM tab2
----
62
79
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2933
SELECT DISTINCT 78 DIV - - MAX( DISTINCT - ( col0 ) ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT 78 / - - MAX ( DISTINCT - ( col0 ) ) AS col2 FROM tab0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 1 * 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT - col0 / - + CAST( NULL AS SIGNED ) / col0 + - 69 - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT - col0 / - + CAST ( NULL AS INTEGER ) / col0 + - 69 - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL - 64 * - COUNT( * ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL - 64 * - COUNT ( * ) FROM tab0 AS cor0
----
192

query I rowsort
SELECT ALL - 25 + + col0 * - - col1 FROM tab0 AS cor0
----
1190
1802
72

query I rowsort
SELECT + 1 + + - col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2939
SELECT DISTINCT + + COUNT( * ) * MIN( - + col2 ) - - MIN( + - col1 ) DIV COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT + + COUNT ( * ) * MIN ( - + col2 ) - - MIN ( + - col1 ) / COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2940
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2, + COUNT( * ) FROM tab0 AS cor0 WHERE NULL < NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2940
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - col2 <> NULL
----
0

query II rowsort
SELECT DISTINCT col0 + - + col2 + 98 * - + col0 AS col2, 1 + + col1 * + - 70 FROM tab0
----
-1502
-5669
-8449
-1469
-9508
-69

query I rowsort
SELECT + 14 + - 1 AS col1 FROM tab2 AS cor0 WHERE 56 NOT BETWEEN 41 AND col2 + - 44
----
13
13
13

query I rowsort
SELECT col0 - + col0 + + - col2 + col2 * + - col1 AS col0 FROM tab1 cor0
----
-1440
-3264
-354

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 71
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / + col0 NOT BETWEEN - 5 AND 65
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, col1 + 61 + - col0, col0 - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 78 + - 95 + + col1 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT - + col1 DIV - col0 * col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT - + col1 / - col0 * col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 71 * - + col2 AS col0 FROM tab0 WHERE NOT ( - col1 * - - col0 ) IN ( + col2, col0 + 6 )
----
-3337
-7029
-710

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2952
SELECT * FROM tab2 WHERE NOT + col2 IN ( - col1 * - - ( CAST( + - CAST( col1 AS SIGNED ) AS SIGNED ) ) + + 88 + - col1 * + 42 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2952
SELECT * FROM tab2 WHERE NOT + col2 IN ( - col1 * - - ( CAST ( + - CAST ( col1 AS INTEGER ) AS INTEGER ) ) + + 88 + - col1 * + 42 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab0 WHERE NOT + + col0 - col2 * + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2954
SELECT col0 * + CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2954
SELECT col0 * + CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT DISTINCT - CAST( - 1 AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - CAST ( - 1 AS INTEGER ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 AS col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2957
SELECT ALL CAST( NULL AS SIGNED ), col1 col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2957
SELECT ALL CAST ( NULL AS INTEGER ), col1 col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 52 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT + SUM( DISTINCT - - 60 ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2959
SELECT + SUM ( DISTINCT - - 60 ) AS col1 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2960
SELECT ALL + col2, 74 + - + ( - + ( - CAST( - - col1 AS SIGNED ) ) ) AS col1 FROM tab1
----
59
69
68
27
96
60

skipif mysql # not compatible
query II rowsort label-2960
SELECT ALL + col2, 74 + - + ( - + ( - CAST ( - - col1 AS INTEGER ) ) ) AS col1 FROM tab1
----
59
69
68
27
96
60

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 88 * - col0 FROM tab2 AS cor0
----
-4048
-5632
-6600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 col1, 10 FROM tab2 AS cor0 WHERE NOT ( 63 IS NULL )
----
90
10
90
10
90
10

query I rowsort
SELECT ALL col0 * 26 AS col2 FROM tab0 AS cor0
----
2262
2522
390

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL IN ( + col0 / col0 * ( + col2 ) * + col0 * - col2 ) )
----

query I rowsort
SELECT ALL - 85 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + - col0 - 26 * + 1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT COUNT( - 50 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2968
SELECT COUNT ( - 50 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

query II rowsort
SELECT 7, - col1 AS col2 FROM tab2
----
7
-51
7
-67
7
-77

query II rowsort
SELECT - 4 * + 70 AS col2, col0 AS col0 FROM tab1
----
-280
51
-280
85
-280
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL + COUNT( * ) + - + MAX( DISTINCT - col0 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + COUNT ( * ) + - + MAX ( DISTINCT - col0 ) AS col1 FROM tab0
----
18

query I rowsort
SELECT DISTINCT - 69 + ( - col1 ) + + - 80 FROM tab2
----
-200
-216
-226

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2974
SELECT ALL - col1 * - col1 - + 77 DIV - col2 AS col0, + ( ( + - col0 ) ) FROM tab0 AS cor0
----
1
-97
448
-87
6562
-15

skipif mysql # not compatible
query II rowsort label-2974
SELECT ALL - col1 * - col1 - + 77 / - col2 AS col0, + ( ( + - col0 ) ) FROM tab0 AS cor0
----
1
-97
448
-87
6562
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT + col1 + + - col1 * - col0 * + col1 + - col0 DIV - col0 - - col2 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
120807
341160
382171

skipif mysql # not compatible
query I rowsort label-2975
SELECT + col1 + + - col1 * - col0 * + col1 + - col0 / - col0 - - col2 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
120807
341160
382171

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT COUNT( ALL - - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT COUNT ( ALL - - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 96 + - col2 + + 78 AS col1 FROM tab2 AS cor0
----
116
134
151

query I rowsort
SELECT + 55 + - - col1 + + col0 FROM tab0
----
151
153
163

query II rowsort
SELECT ALL ( - 74 ), col1 * + 20 AS col1 FROM tab0 WHERE NOT col0 / - 91 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL - col2 + - ( 86 ) * - + col2 FROM tab0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL - COUNT( ALL - 17 ) FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL - COUNT ( ALL - 17 ) FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2982
SELECT DISTINCT - 46 + + - 47 + CAST( col1 AS SIGNED ) + - col0 DIV + col0 AS col0 FROM tab0
----
-13
-73
-93

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT - 46 + + - 47 + CAST ( col1 AS INTEGER ) + - col0 / + col0 AS col0 FROM tab0
----
-13
-73
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col1 - - - 24
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND + col1 + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL + + SUM( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + + SUM ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT col1 + + - 84 AS col0 FROM tab0
----
-3
-63
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT DISTINCT - col1 + col2 * + 18 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col1 < col1 + - col2 - col2 * + - col1
----

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - col1 + col2 * + 18 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 < col1 + - col2 - col2 * + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2989
SELECT DISTINCT + + CAST( - + COUNT( * ) AS SIGNED ) DIV + + MAX( ALL + col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT + + CAST ( - + COUNT ( * ) AS INTEGER ) / + + MAX ( ALL + col0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + + col1 * + col1 * + - 5 * - 16 AS col2 FROM tab2 AS cor0
----
208080
359120
474320

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2991
SELECT ALL 24, col0 DIV - + CAST( - - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
24
-1
24
-17
24
-3

skipif mysql # not compatible
query II rowsort label-2991
SELECT ALL 24, col0 / - + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
24
-1
24
-17
24
-3

query II rowsort
SELECT - col2, + col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL - 24 * - 53 FROM tab2 AS cor0
----
1272
1272
1272

query II rowsort
SELECT + col0, - col1 + + - col2 FROM tab0 cor0
----
15
-128
87
-31
97
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT COUNT( - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2995
SELECT COUNT ( - + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT + CAST( AVG ( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT + CAST ( AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT COUNT( DISTINCT + - 92 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT COUNT ( DISTINCT + - 92 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT col0 * 31 AS col0 FROM tab1
----
1581
2635
2821

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT ALL COUNT( * ) AS col1, MIN( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 19 * + + 81
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3000
SELECT ALL COUNT ( * ) AS col1, MIN ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 19 * + + 81
----
0
NULL

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab0, tab1 AS cor0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - 74 * COUNT( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - 74 * COUNT ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT + COUNT( * ) * + - 55 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3003
SELECT + COUNT ( * ) * + - 55 FROM tab1 AS cor0
----
-165

query I rowsort
SELECT DISTINCT col2 + - - 35 FROM tab2 AS cor0
----
58
75
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT ALL + + CAST( NULL AS SIGNED ) + - COUNT( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + + CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 20 * 36 FROM tab2 AS cor0
----
720
720
720

query I rowsort
SELECT - - col0 * + + 18 FROM tab1 AS cor0
----
1530
1638
918

query I rowsort
SELECT DISTINCT + + col0 + + col1 + col0 * + 46 AS col2 FROM tab1 AS cor0
----
2411
4000
4324

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT col1 + - - 80 * + col0 FROM tab0
----
1281
6981
7761

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT 42 + - ( COUNT( * ) ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3011
SELECT 42 + - ( COUNT ( * ) ) AS col2 FROM tab0
----
39

query II rowsort
SELECT DISTINCT + 16 AS col0, col2 + - + ( col1 ) FROM tab0
----
16
-11
16
-34
16
98

query I rowsort
SELECT ALL + col1 * + - col1 + + col0 + + + col1 AS col1 FROM tab2
----
-2504
-4347
-5788

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + COUNT( - 29 ) FROM tab1 WHERE + 56 NOT BETWEEN - 84 AND - + 70 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COUNT ( - 29 ) FROM tab1 WHERE + 56 NOT BETWEEN - 84 AND - + 70 * - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3015
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3016
SELECT col0 + - - CAST( NULL AS SIGNED ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3016
SELECT col0 + - - CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL 31 + + COUNT( * ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL 31 + + COUNT ( * ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3018
SELECT - 19 + - 3 * - COUNT( * ) DIV + MIN( - 77 ) AS col0 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-3018
SELECT - 19 + - 3 * - COUNT ( * ) / + MIN ( - 77 ) AS col0 FROM tab0
----
-19

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND - 94 + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 87 + col1 AS col0 FROM tab0 AS cor0
----
108
168
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL + COUNT( * ) - MAX( + - ( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + COUNT ( * ) - MAX ( + - ( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
-44

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 55 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 81 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + - 38 FROM tab2
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT MIN( + 51 ) * + COUNT( * ) AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-3025
SELECT MIN ( + 51 ) * + COUNT ( * ) AS col0 FROM tab1
----
153

query II rowsort
SELECT - ( - 31 ), col0 FROM tab0
----
31
15
31
87
31
97

query I rowsort
SELECT ALL - ( - - col0 ) * + 95 AS col0 FROM tab0 AS cor0
----
-1425
-8265
-9215

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 80 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT 19 + COUNT( * ) * + 62 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
205

skipif mysql # not compatible
query I rowsort label-3029
SELECT 19 + COUNT ( * ) * + 62 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - COUNT( - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3030
SELECT - COUNT ( - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT DISTINCT + col2 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT + col2 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - + SUM( + - col1 ) AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3032
SELECT - + SUM ( + - col1 ) AS col0 FROM tab1 cor0
----
66

query II rowsort
SELECT ALL - 30 AS col0, col0 AS col2 FROM tab2
----
-30
46
-30
64
-30
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3034
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - + col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT CAST ( NULL AS REAL ) * - + col1 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT - COUNT( * ) * + - 76 AS col2 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT - COUNT ( * ) * + - 76 AS col2 FROM tab1
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT ALL + ( - col1 ) + + 32 DIV col1 AS col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + ( - col1 ) + + 32 / col1 AS col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT 50 * col2 AS col0 FROM tab0 cor0
----
2350
4950
500

query I rowsort
SELECT ALL + col0 * + + 1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT 96 + + + 4 * + col1 FROM tab1
----
116
152
284

query I rowsort
SELECT 7 * - + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 - 61 IS NOT NULL
----

query II rowsort
SELECT col2 + 26, col1 AS col2 FROM tab1 AS cor0
----
122
14
85
5
94
47

query I rowsort
SELECT - 94 + - 76 * 21 AS col1 FROM tab2 cor0
----
-1690
-1690
-1690

query I rowsort
SELECT ALL + ( - col0 ) + - - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL - - SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL - - SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT - MIN( + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3046
SELECT - MIN ( + col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT COUNT( ALL + + 95 ) * + - MAX( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( ALL + + 95 ) * + - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 23 + + col0 AS col2 FROM tab1 AS cor0
----
108
114
74

query II rowsort
SELECT ALL + col0 AS col1, col0 + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
15
-210
87
-7482
97
-9312

query II rowsort
SELECT DISTINCT 6 AS col1, + col2 * + 19 AS col0 FROM tab0
----
6
1881
6
190
6
893

query II rowsort
SELECT - 17 AS col1, col1 FROM tab2
----
-17
51
-17
67
-17
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL CAST( + MIN( DISTINCT + col2 ) AS SIGNED ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3052
SELECT ALL CAST ( + MIN ( DISTINCT + col2 ) AS INTEGER ) col1 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT ALL + + 52 + + 15 * + - CAST( NULL AS SIGNED ) * - - 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + + 52 + + 15 * + - CAST ( NULL AS INTEGER ) * - - 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT - SUM( ALL - + 23 ) AS col2 FROM tab2, tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - SUM ( ALL - + 23 ) AS col2 FROM tab2, tab0 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT - ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT col0 / - col1 + + + 73 * + col1 * + col1 + - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3055
SELECT - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT col0 / - col1 + + + 73 * + col1 * + col1 + - col1 IS NULL
----
-3

query II rowsort
SELECT ALL + col1, col0 * col1 FROM tab1 AS cor0
----
14
714
47
4277
5
425

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - + COUNT( - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3057
SELECT - + COUNT ( - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT - COUNT( DISTINCT - 3 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3058
SELECT - COUNT ( DISTINCT - 3 ) FROM tab1 cor0
----
-1

query II rowsort
SELECT DISTINCT + col2 AS col2, 21 FROM tab0 AS cor0
----
10
21
47
21
99
21

query II rowsort
SELECT - col1, 91 AS col2 FROM tab1 AS cor0
----
-14
91
-47
91
-5
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3061
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - - 56 * - col2 NOT IN ( col0, + col0 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-3061
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - - 56 * - col2 NOT IN ( col0, + col0 + - col0 )
----

query I rowsort
SELECT DISTINCT col1 * ( 71 ) FROM tab0
----
1491
5751
71

query I rowsort
SELECT DISTINCT + 36 * - - col0 + + - col1 * - col0 AS col0 FROM tab2
----
4002
7232
7725

query I rowsort
SELECT ALL 20 * 4 AS col0 FROM tab2
----
80
80
80

query I rowsort
SELECT DISTINCT + 76 + + col1 FROM tab1
----
123
81
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 25 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT - 27 DIV 26 * + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3067
SELECT - 27 / 26 * + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 * - col2 + - col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * - col1 + - + 96 col1 FROM tab1 AS cor0
----
-51
30
327

query I rowsort
SELECT ALL ( - - col2 ) FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col2 * + col2
----

query II rowsort
SELECT DISTINCT + 56 - - 26 * col0, 7 AS col2 FROM tab2 AS cor0
----
1252
7
1720
7
2006
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT ALL ( - COUNT( * ) ) DIV + ( + SUM( - ( col0 ) ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL ( - COUNT ( * ) ) / + ( + SUM ( - ( col0 ) ) ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE - ( - - 49 ) IS NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL ) IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + ( + 16 ) ) + - + 32 + col0 AS col2 FROM tab1
----
35
69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT - ( COUNT( * ) ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3078
SELECT - ( COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + - ( + COUNT( DISTINCT + 5 ) ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3079
SELECT + - ( + COUNT ( DISTINCT + 5 ) ) col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT 99 * COUNT( * ) * - + 85 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT 99 * COUNT ( * ) * - + 85 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE col0 + + col2 NOT BETWEEN + col1 AND + - 70
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3082
SELECT col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3083
SELECT - CAST( col1 AS DECIMAL ) AS col0 FROM tab1 WHERE NOT - 16 / - col2 - - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3083
SELECT - CAST ( col1 AS REAL ) AS col0 FROM tab1 WHERE NOT - 16 / - col2 - - + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, col1 AS col0 FROM tab1 cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - ( - 89 ) NOT BETWEEN NULL AND + 94 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <> ( NULL )
----

query II rowsort
SELECT + - ( - col1 ) AS col2, - col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + ( COUNT( * ) ) + + + 1 AS col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3088
SELECT + ( COUNT ( * ) ) + + + 1 AS col1 FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT - col0 * - - 22 + CAST( - - col2 AS SIGNED ) col0 FROM tab1
----
-1026
-1811
-1934

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3089
SELECT - col0 * - - 22 + CAST ( - - col2 AS INTEGER ) col0 FROM tab1
----
-1026
-1811
-1934

query I rowsort
SELECT DISTINCT + col1 + + 96 + 94 FROM tab2
----
241
257
267

query I rowsort
SELECT ALL - col1 * - + col0 AS col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 72 > - + col0 * - 81
----

query I rowsort
SELECT + 9 + - col0 AS col1 FROM tab2
----
-37
-55
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + + - ( - col1 ) col1 FROM tab1
----
109
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL MAX( DISTINCT + col2 ) + - 48 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL MAX ( DISTINCT + col2 ) + - 48 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
51

query II rowsort
SELECT col1, + 84 * 96 AS col2 FROM tab1 AS cor0
----
14
8064
47
8064
5
8064

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT 90 DIV - - 13 AS col2 FROM tab0 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3097
SELECT 90 / - - 13 AS col2 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3098
SELECT ALL - + 85 DIV + - COUNT( * ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - + 85 / + - COUNT ( * ) FROM tab1 AS cor0
----
28

query I rowsort
SELECT + col1 * - 68 * col0 + + col1 FROM tab2
----
-159477
-335027
-341633

query I rowsort
SELECT DISTINCT + 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 + col2 AS col0, - col2 col2 FROM tab0 AS cor0
----
135
-99
46
-10
83
-47

query I rowsort
SELECT + ( - 44 ) + + 2 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - 38 + + + COUNT( * ) * - 37 AS col0 FROM tab2 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - 38 + + + COUNT ( * ) * - 37 AS col0 FROM tab2 AS cor0
----
-149

query I rowsort
SELECT DISTINCT + col2 * - col0 + + + col0 + - col2 * + 6 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10100
-843
-972

onlyif mysql # DIV for integer division: 
query II rowsort label-3106
SELECT + 35 * + ( col1 ) AS col1, col2 DIV + col1 FROM tab0 AS cor0
----
2835
0
35
99
735
0

skipif mysql # not compatible
query II rowsort label-3106
SELECT + 35 * + ( col1 ) AS col1, col2 / + col1 FROM tab0 AS cor0
----
2835
0
35
99
735
0

query I rowsort
SELECT + col1 * - 8 AS col1 FROM tab0
----
-168
-648
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3108
SELECT * FROM tab1 WHERE ( + + CAST( + - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3108
SELECT * FROM tab1 WHERE ( + + CAST ( + - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - col1 col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL + 44 DIV - 87 * - - 98 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + 44 / - 87 * - - 98 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + - 15 ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ( 42 ) FROM tab2 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 15 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3114
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 15 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3115
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( - 44, col2 + - ( + CAST( NULL AS DECIMAL ) ) / + + col2, - - col1, - col1, - CAST( - 96 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3115
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( - 44, col2 + - ( + CAST ( NULL AS REAL ) ) / + + col2, - - col1, - col1, - CAST ( - 96 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3116
SELECT * FROM tab1 AS cor0 WHERE NOT 99 NOT IN ( - col2 + 92, 44, - + col1, + + col0, + - CAST( NULL AS SIGNED ) * + + col2 - - - col1 )
----

skipif mysql # not compatible
query III rowsort label-3116
SELECT * FROM tab1 AS cor0 WHERE NOT 99 NOT IN ( - col2 + 92, 44, - + col1, + + col0, + - CAST ( NULL AS INTEGER ) * + + col2 - - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL - COUNT( * ) + - MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - 86 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - COUNT ( * ) + - MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - 86 * col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT - col1 DIV col1 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT - col1 / col1 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN NULL AND - col0 * - + col0 + - 16
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE + 79 IS NULL
----

query I rowsort
SELECT + ( 94 ) AS col2 FROM tab1
----
94
94
94

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * + 54 * - 7 * + 79 - + - col1 + + col1 + + col0 IS NULL
----

query I rowsort
SELECT ALL + 20 * + + col2 * + col1 FROM tab1 AS cor0
----
26880
5900
63920

query I rowsort
SELECT 79 + - col0 AS col1 FROM tab2 AS cor0
----
15
33
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT + + 92 + - + COUNT( * ) * - ( + + 38 ) FROM tab2 AS cor0
----
206

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT + + 92 + - + COUNT ( * ) * - ( + + 38 ) FROM tab2 AS cor0
----
206

query III rowsort
SELECT * FROM tab2 WHERE col1 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL MAX( + - 91 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL MAX ( + - 91 ) AS col0 FROM tab1
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3129
SELECT ALL - CAST( NULL AS DECIMAL ) + 80 + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - CAST ( NULL AS REAL ) + 80 + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 66, + col2 + + ( - col1 ) AS col2 FROM tab1
----
66
21
66
54
66
82

query I rowsort
SELECT + col2 + ( 48 ) FROM tab0 WHERE NULL BETWEEN col2 AND - 17
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT - 99, COUNT( col1 ) AS col2 FROM tab0
----
-99
3

skipif mysql # not compatible
query II rowsort label-3132
SELECT - 99, COUNT ( col1 ) AS col2 FROM tab0
----
-99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT - COUNT( * ) * + 63 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-3133
SELECT - COUNT ( * ) * + 63 FROM tab2
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT DISTINCT - CAST( + 68 AS SIGNED ) + - + col1 FROM tab1
----
-115
-73
-82

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT - CAST ( + 68 AS INTEGER ) + - + col1 FROM tab1
----
-115
-73
-82

query I rowsort
SELECT + - 26 - + - ( 75 ) * - col0 * + - col0 FROM tab2 AS cor0
----
158674
307174
421849

query I rowsort
SELECT ALL - - col1 + + 88 + - col2 + + 59 * col0 AS col0 FROM tab0 cor0
----
1007
5232
5713

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT - SUM( 1 ) - 67 FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3137
SELECT - SUM ( 1 ) - 67 FROM tab0 cor0
----
-70

query I rowsort
SELECT + 70 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + - 66 AS col2 FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - col0 - + col1 AS col1, - 20 AS col1 FROM tab2 AS cor0
----
-141
-20
-142
-20
-97
-20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + MAX( - + col0 ) - 4 AS col2 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3142
SELECT + MAX ( - + col0 ) - 4 AS col2 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL - + MIN( ALL - col1 ) * - 80 AS col1 FROM tab2 AS cor0
----
-6160

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - + MIN ( ALL - col1 ) * - 80 AS col1 FROM tab2 AS cor0
----
-6160

query I rowsort
SELECT + - col2 * - ( 37 ) FROM tab1 AS cor0
----
2183
2516
3552

query II rowsort
SELECT DISTINCT - - col2 AS col1, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT + 94 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - COUNT( DISTINCT col0 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3147
SELECT ALL - COUNT ( DISTINCT col0 ) col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + + col0 col0, col0 AS col1 FROM tab1
----
425
85
4277
91
714
51

query I rowsort
SELECT DISTINCT col0 * + ( + - ( + col1 ) ) FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 > + col2 * - 51
----

query I rowsort
SELECT + ( - + col0 ) * - col0 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3152
SELECT CAST( - + ( + col2 ) AS SIGNED ) * + - col1 col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3152
SELECT CAST ( - + ( + col2 ) AS INTEGER ) * + - col1 col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col2 * - - col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT + 57 DIV - + col2 col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3154
SELECT DISTINCT + 57 / - + col2 col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL 3 * - col1 FROM tab0
----
-243
-3
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT ALL - 12 / + CAST( NULL AS SIGNED ) * + 16 * - - MIN( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - 12 / + CAST ( NULL AS INTEGER ) * + 16 * - - MIN ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - - col2 + - col0
----

query I rowsort
SELECT - col1 + col0 + - ( - + 71 ) AS col1 FROM tab0 AS cor0
----
137
167
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3159
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col0 * - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3159
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col0 * - CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT + col1 * + + col2 + - col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
0
200
3760

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT + col2 / - ( - - ( + col0 ) ) * - - 32 * col1 + + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT + col2 / - ( - - ( + col0 ) ) * - - 32 * col1 + + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3163
SELECT 45 + 72, - col1 DIV + + col2 + col1 AS col0 FROM tab1
----
117
14
117
47
117
5

skipif mysql # not compatible
query II rowsort label-3163
SELECT 45 + 72, - col1 / + + col2 + col1 AS col0 FROM tab1
----
117
14
117
47
117
5

query I rowsort
SELECT - ( - - col1 ) FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT col0 + + - ( - 24 ) AS col1 FROM tab0
----
111
121
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE 98 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + col2 * - col0 + 55 AS col2 FROM tab1
----
-4841
-4960
-6133

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL + 65 + + COUNT( DISTINCT + - col2 ) AS col2 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + 65 + + COUNT ( DISTINCT + - col2 ) AS col2 FROM tab1
----
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col1 * + + 66 * + col2 / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 74 * + col0 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + 90 - col2 FROM tab1 AS cor0
----
-6
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND col0 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND col0 + + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col2 col1 FROM tab1
----
14
-96
47
-68
5
-59

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col1 + - col1 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 25 col1 FROM tab2
----
-100
-71
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 38 * + + 83 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 80 - - col2
----

query I rowsort
SELECT DISTINCT - ( 80 ) FROM tab0 AS cor0 WHERE 48 >= NULL
----

query II rowsort
SELECT DISTINCT col0, - col2 * - col1 * - col0 AS col1 FROM tab1 AS cor0
----
51
-68544
85
-25075
91
-290836

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL + MIN( col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + MIN ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL <= col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3182
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT CAST ( NULL AS REAL ) * + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 28 * - 47 * + col1 FROM tab2
----
-101332
-67116
-88172

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL + + COUNT( * ) col2 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-3184
SELECT ALL + + COUNT ( * ) col2 FROM tab2 WHERE NOT col1 IS NULL
----
3

query I rowsort
SELECT - 37 + - 81 * col0 * - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-171433
-331813
-455662

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 31 * + 11 ) = NULL
----

query I rowsort
SELECT + col0 * + 32 - col1 AS col2 FROM tab1 AS cor0
----
1618
2715
2865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - + 30 + + 39 * + 14, col1 AS col2 FROM tab1 AS cor0
----
516
14
516
47
516
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + 76 * COUNT( * ) col2 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3190
SELECT + 76 * COUNT ( * ) col2 FROM tab0 AS cor0
----
228

query I rowsort
SELECT + + col2 * col1 * + 62 FROM tab0 cor0
----
13020
236034
6138

onlyif mysql # DIV for integer division: 
query II rowsort label-3192
SELECT - 81 DIV - + 60 AS col2, - ( - col0 ) FROM tab0 AS cor0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-3192
SELECT - 81 / - + 60 AS col2, - ( - col0 ) FROM tab0 AS cor0
----
1
15
1
87
1
97

query II rowsort
SELECT ALL - + 14 + - 88 AS col1, col2 FROM tab2 AS cor0 WHERE NOT - 15 * - col1 <> NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT 13 * - 53 AS col0 FROM tab0
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL COUNT( * ) * + 62 AS col2 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL COUNT ( * ) * + 62 AS col2 FROM tab2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL 1 + + MIN( - + 58 ) * - 7 col2 FROM tab1
----
407

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3197
SELECT ALL 1 + + MIN ( - + 58 ) * - 7 col2 FROM tab1
----
407

query I rowsort
SELECT col2 + ( - + 93 ) + - 59 FROM tab0
----
-105
-142
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - 79 col1 FROM tab1
----
-11
-20
17

query I rowsort
SELECT col2 * ( - 27 ) + - - 31 + - ( col1 ) FROM tab2
----
-1126
-1602
-641

query I rowsort
SELECT DISTINCT + col0 + 55 AS col2 FROM tab2
----
101
119
130

query I rowsort
SELECT DISTINCT + 4 + + col2 FROM tab0
----
103
14
51

query I rowsort
SELECT col2 * col2 + + + 16 + - + 32 FROM tab2
----
1584
3348
513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT + 61 * + CAST( 29 AS SIGNED ) + + col0 + + col0 FROM tab0
----
1799
1943
1963

skipif mysql # not compatible
query I rowsort label-3204
SELECT + 61 * + CAST ( 29 AS INTEGER ) + + col0 + + col0 FROM tab0
----
1799
1943
1963

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL MAX( + + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL MAX ( + + col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT + 13 + + 87 FROM tab2 cor0 WHERE NOT + col0 < 55
----
100
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3207
SELECT * FROM tab0 cor0 WHERE NOT + col1 * + ( + 39 ) < - + ( CAST( NULL AS SIGNED ) ) / + col0
----

skipif mysql # not compatible
query III rowsort label-3207
SELECT * FROM tab0 cor0 WHERE NOT + col1 * + ( + 39 ) < - + ( CAST ( NULL AS INTEGER ) ) / + col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( col0 ) / + col2 + col2 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 41 * + col1 <= - 45
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 ) * - 39 / + - 30 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 99 AS col0, col0 * 40 AS col2 FROM tab1
----
99
2040
99
3400
99
3640

query I rowsort
SELECT ALL col0 * + 73 FROM tab1
----
3723
6205
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + MIN( ALL + 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3213
SELECT + MIN ( ALL + 72 ) FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT COUNT( * ) * + 10 AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3214
SELECT COUNT ( * ) * + 10 AS col2 FROM tab2
----
30

query I rowsort
SELECT DISTINCT + ( + 46 ) AS col1 FROM tab1
----
46

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + 42 + - 66 * col2 * + col2 * - col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 45 * + col1 + + + col0 AS col0 FROM tab1
----
2206
310
681

query I rowsort
SELECT ALL - + col1 + + col0 AS col1 FROM tab2 cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col1 col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL COUNT( * ) * + ( + 70 ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL COUNT ( * ) * + ( + 70 ) FROM tab0 AS cor0
----
210

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - + col0 ) = ( - 94 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT 95 DIV col2 + - col1 col0 FROM tab0 AS cor0
----
-1
-12
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3222
SELECT 95 / col2 + - col1 col0 FROM tab0 AS cor0
----
-1
-12
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - ( 52 ) > + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - 74 FROM tab2 AS cor0
----
-10
-28
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT col1 DIV 42 * col2 col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3225
SELECT col1 / 42 * col2 col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT 45 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3226
SELECT 45 / - col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 + + + 62 - - col1 + + - 37 FROM tab2
----
127
159
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT DISTINCT - CAST( 24 AS SIGNED ) FROM tab2 WHERE NOT ( + 13 NOT IN ( - col2 * 4 + - 16 * + 39, col1 ) )
----

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT - CAST ( 24 AS INTEGER ) FROM tab2 WHERE NOT ( + 13 NOT IN ( - col2 * 4 + - 16 * + 39, col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3230
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE 15 - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + col0 + - col0 + col1 FROM tab0 AS cor0
----
-1149
-1893
-193

query I rowsort
SELECT ALL - col0 * + col2 + + ( 39 ) FROM tab2 AS cor0
----
-1019
-2521
-4311

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3234
SELECT ALL * FROM tab1 AS cor0 WHERE - 13 * - + col2 * - col2 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3234
SELECT ALL * FROM tab1 AS cor0 WHERE - 13 * - + col2 * - col2 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + 81 + - col0 + col2 AS col1 FROM tab0 cor0
----
113
4
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT - SUM( - + ( col0 ) ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3236
SELECT - SUM ( - + ( col0 ) ) col2 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 - - 70 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
63

query I rowsort
SELECT - 42 * + + col0 AS col2 FROM tab0 AS cor0
----
-3654
-4074
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT MAX( DISTINCT + 85 ) AS col2 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3239
SELECT MAX ( DISTINCT + 85 ) AS col2 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL + MAX( - + 51 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + MAX ( - + 51 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + col2 + + - col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) <= NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( 24 ) IN ( col2, 32, - - 9, - - col0, - - col1 - - col0 )
----
23
40
58

query II rowsort
SELECT ALL col0, - 23 AS col2 FROM tab2 AS cor0
----
46
-23
64
-23
75
-23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / col1 > + + col1 - - 23
----
97
1
99

query II rowsort
SELECT - + col0 AS col0, col2 * - 93 + + 55 FROM tab2 WHERE - col1 IS NULL OR NULL IS NULL
----
-46
-2084
-64
-3665
-75
-5339

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <= - col1 / - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT COUNT( - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3248
SELECT COUNT ( - + col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT + MIN( + 52 ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + MIN ( + 52 ) FROM tab1 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT + ( + 69 ) DIV 19 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3250
SELECT + ( + 69 ) / 19 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT - COUNT( * ) + - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3251
SELECT - COUNT ( * ) + - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - 77 + - + ( - + col2 ) + + - col0 - + col0 * + + 4 AS col2 FROM tab0 AS cor0
----
-105
-463
-502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT + 90 + - - COUNT( ALL col2 ) DIV + 34 AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 90 + - - COUNT ( ALL col2 ) / + 34 AS col0 FROM tab1 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT DISTINCT col0 + + col2 * + CAST( + col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT col0 + + col2 * + CAST ( + col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - + 46 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT + ( + - 78 ) FROM tab1
----
-78

query I rowsort
SELECT ALL + + 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 97 IS NOT NULL
----

query I rowsort
SELECT - 55 + 81 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + col1 + - col1 FROM tab2 AS cor0 WHERE 82 / + col1 <= + 7
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - 34 ) * col0 - - col2 * - col0 * - - col1 + - + 92 col0 FROM tab0 AS cor0
----
-12993
-21320
-57707

query I rowsort
SELECT 77 / + + col0 - + col1 * + 34 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 / - + col0 AND ( - col2 + 53 )
----

query II rowsort
SELECT - + col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - COUNT( ALL + ( - col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3265
SELECT - COUNT ( ALL + ( - col2 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL - + SUM( 80 ) FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - + SUM ( 80 ) FROM tab0 AS cor0
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-3267
SELECT DISTINCT col1 DIV - 98 * 72 - - col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT col1 / - 98 * 72 - - col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - + col1 * - col1 AS col0 FROM tab0 cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + 67
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT IN ( col2, 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - + 38 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT - COUNT( * ) + 91 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3272
SELECT - COUNT ( * ) + 91 FROM tab1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT ALL + 23 * - ( - 48 ) + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( + CAST( NULL AS SIGNED ), col0, + - 50 / - + 52 ) AND ( NULL IS NULL )
----
1104

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL + 23 * - ( - 48 ) + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( + CAST ( NULL AS INTEGER ), col0, + - 50 / - + 52 ) AND ( NULL IS NULL )
----
1104

query I rowsort
SELECT - col0 + col0 * - + col2 FROM tab1
----
-4947
-5100
-6279

query I rowsort
SELECT - col0 + 82 AS col2 FROM tab0
----
-15
-5
67

query I rowsort
SELECT col2 + 56 AS col1 FROM tab0
----
103
155
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT - + ( + ( COUNT( ALL - col1 ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3277
SELECT - + ( + ( COUNT ( ALL - col1 ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT - - ( ( + ( + + col0 ) ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL < + col2 + CAST( NULL AS SIGNED ) * + col0 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT - - ( ( + ( + + col0 ) ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL < + col2 + CAST ( NULL AS INTEGER ) * + col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT - MIN( col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3280
SELECT - MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + 8 * + 76 AS col1 FROM tab2 AS cor0
----
608
608
608

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + col2 * ( - col1 ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3284
SELECT DISTINCT + COUNT( * ) * - MAX( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL <> 87 + - col2 / + + 31 + 82 + - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT + COUNT ( * ) * - MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL <> 87 + - col2 / + + 31 + 82 + - - col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3285
SELECT ALL 91 DIV 96, - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
1
0
2

skipif mysql # not compatible
query II rowsort label-3285
SELECT ALL 91 / 96, - col1 / - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
1
0
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3286
SELECT DISTINCT - COUNT( ALL - col2 ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3286
SELECT DISTINCT - COUNT ( ALL - col2 ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 59 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-26
-32
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT 81 + + COUNT( + - 7 ) FROM tab2, tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3288
SELECT 81 + + COUNT ( + - 7 ) FROM tab2, tab0 AS cor0
----
90

query I rowsort
SELECT ALL + 88 + - col0 AS col2 FROM tab0
----
-9
1
73

query II rowsort
SELECT + col1 + col2 + + col2 AS col0, col2 AS col2 FROM tab1
----
123
59
183
68
206
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT 47 DIV - col2 * - + col2 + + col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3291
SELECT 47 / - col2 * - + col2 + + col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL + COUNT( DISTINCT - 91 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL + COUNT ( DISTINCT - 91 ) AS col0 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 10 AND col1
----

query I rowsort
SELECT ALL col1 + - 39 FROM tab1
----
-25
-34
8

query I rowsort
SELECT - ( - col1 ) * - col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - 3 * AVG ( DISTINCT - col0 ) FROM tab0 WHERE NOT ( - 12 ) >= NULL
----
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE - 97 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 + 45 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT 41 * - COUNT( * ) AS col1 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-3299
SELECT 41 * - COUNT ( * ) AS col1 FROM tab1
----
-123

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( 28 + col1 / + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT ALL - COUNT( - col2 ) DIV - 48 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - COUNT ( - col2 ) / - 48 FROM tab0
----
0

query I rowsort
SELECT 54 * - col2 + - col1 FROM tab1 WHERE NULL <> - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3303
SELECT col2 * CAST( NULL AS DECIMAL ) + - 45 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT col2 * CAST ( NULL AS REAL ) + - 45 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col1 BETWEEN NULL AND col0 + col0 * col1
----

query I rowsort
SELECT col0 * - 98 + col2 AS col2 FROM tab2
----
-4485
-6232
-7292

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT ALL 21 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL 21 / + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT DISTINCT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) / - 26 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - 26 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT + SUM( DISTINCT ( 88 ) ) AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3310
SELECT + SUM ( DISTINCT ( 88 ) ) AS col2 FROM tab1
----
88

query I rowsort
SELECT col2 FROM tab2 WHERE + col0 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3312
SELECT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 41 ) IN ( ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( 29 ) ) + 42 col1 FROM tab1
----
71

query I rowsort
SELECT + ( 0 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3316
SELECT * FROM tab0 WHERE NULL = CAST( NULL AS SIGNED ) * col0 + col1
----

skipif mysql # not compatible
query III rowsort label-3316
SELECT * FROM tab0 WHERE NULL = CAST ( NULL AS INTEGER ) * col0 + col1
----

query I rowsort
SELECT ALL - col1 - - col1 FROM tab2 WHERE ( NULL ) >= ( - col1 + 80 * + 35 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - col0 / - 57 ) NOT IN ( - 84 * + col0 + 20 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3321
SELECT 42 DIV COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3321
SELECT 42 / COUNT ( * ) FROM tab0 AS cor0
----
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( 25 ) + 93 * 6 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 - + col0 FROM tab0 WHERE NOT ( + col1 * ( col2 ) ) NOT BETWEEN + 91 AND col0 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL + 99 + CAST( + 13 AS SIGNED ) * COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 + col1 IS NULL
----
138

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + 99 + CAST ( + 13 AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 + col1 IS NULL
----
138

query I rowsort
SELECT DISTINCT + 87 * 2 AS col1 FROM tab2 WHERE NOT + 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT - col1 >= ( - 82 * - col0 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN col0 * - col1 AND NULL
----

query I rowsort
SELECT 28 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 + - col0 ) IS NULL
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT ALL 10 DIV 81 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL 10 / 81 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT - SUM( + col2 ) * - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-3330
SELECT - SUM ( + col2 ) * - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3331
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * ( ( + CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3331
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * ( ( + CAST ( NULL AS INTEGER ) ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - - MIN( ALL - col2 ) col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3332
SELECT - - MIN ( ALL - col2 ) col2 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT - col2 DIV 98 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT - col2 / 98 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 77 IS NOT NULL
----

query I rowsort
SELECT - - col0 * + ( col0 * + col1 ) AS col0 FROM tab1 AS cor0
----
36125
36414
389207

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3337
SELECT + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3337
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 92 * col2 AS col1 FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT - COUNT( DISTINCT - col0 ) + 15 AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) + 15 AS col0 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT ALL COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE ( 53 * col1 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE ( 53 * col1 ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT 9 + + col2 AS col2 FROM tab0
----
108
19
56

query I rowsort
SELECT + col2 * 8 AS col2 FROM tab1 WHERE + col2 IN ( col0 )
----

query I rowsort
SELECT ALL col0 + ( col1 ) * - col1 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT 39 AS col0 FROM tab0 WHERE ( col0 ) NOT BETWEEN ( 32 + - col2 * + col1 ) AND col2
----
39

query I rowsort
SELECT DISTINCT + 65 + col1 + 96 AS col2 FROM tab0
----
162
182
242

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL MAX( DISTINCT 44 ) + + COUNT( DISTINCT - col2 - col1 / 69 ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL MAX ( DISTINCT 44 ) + + COUNT ( DISTINCT - col2 - col1 / 69 ) AS col1 FROM tab2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT + + col0 + + col1 DIV + 63 AS col2 FROM tab2 AS cor0
----
46
65
76

skipif mysql # not compatible
query I rowsort label-3347
SELECT + + col0 + + col1 / + 63 AS col2 FROM tab2 AS cor0
----
46
65
76

query I rowsort
SELECT + 56 + + col2 FROM tab0 AS cor0
----
103
155
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + COUNT( * ) + + - 36 AS col2 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3349
SELECT + COUNT ( * ) + + - 36 AS col2 FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE NOT 69 * + 85 > ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE NOT 69 * + 85 > ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT COUNT( * ) * + 48 FROM tab1 cor0
----
144

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT COUNT ( * ) * + 48 FROM tab1 cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 15 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col0 FROM tab0 AS cor0
----
30

query II rowsort
SELECT ALL - 71, + 36 AS col1 FROM tab0
----
-71
36
-71
36
-71
36

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT BETWEEN 39 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3357
SELECT + + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT + + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 22 + - col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 - + - col0 - - col2 + - col2 AS col0 FROM tab0 AS cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + + 8 col1 FROM tab1 AS cor0
----
-104
-67
-76

query I rowsort
SELECT ALL col2 * col1 + + col1 * 48 + col1 * col0 FROM tab2 AS cor0
----
11704
12127
5967

query II rowsort
SELECT DISTINCT - 70 AS col2, - col1 + - 20 AS col0 FROM tab0 AS cor0
----
-70
-101
-70
-21
-70
-41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + + 95 - + 76 AS col2 FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 46 ) = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( ( 69 ) )
----

query I rowsort
SELECT DISTINCT 73 - col2 AS col0 FROM tab2 cor0
----
15
33
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT DISTINCT ( 79 ) * - - 16 * 39 + + CAST( NULL AS SIGNED ) * col0 - - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT ( 79 ) * - - 16 * 39 + + CAST ( NULL AS INTEGER ) * col0 - - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 - 99 <> NULL
----

query I rowsort
SELECT + + ( - 36 ) FROM tab1 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT DISTINCT 4 * - col1 FROM tab1 WHERE NOT + col0 NOT IN ( ( col1 ) * col2 )
----

query II rowsort
SELECT col0 * - col0 AS col2, col2 AS col0 FROM tab0
----
-225
47
-7569
10
-9409
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3373
SELECT 99 * - col2 AS col0, - col1 * CAST( - col2 AS SIGNED ) FROM tab0
----
-4653
3807
-9801
99
-990
210

skipif mysql # not compatible
query II rowsort label-3373
SELECT 99 * - col2 AS col0, - col1 * CAST ( - col2 AS INTEGER ) FROM tab0
----
-4653
3807
-9801
99
-990
210

query I rowsort
SELECT DISTINCT col0 * + - 37 AS col0 FROM tab2
----
-1702
-2368
-2775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3375
SELECT - 1 DIV + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3375
SELECT - 1 / + COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 40 * + col2 FROM tab0 AS cor0 WHERE col1 = - 82
----

query I rowsort
SELECT DISTINCT - col0 * - - col2 * - col1 FROM tab2 cor0
----
197120
291450
53958

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND ( 21 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL - MAX( DISTINCT - col0 ) * + ( 72 ) AS col2 FROM tab1
----
3672

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - MAX ( DISTINCT - col0 ) * + ( 72 ) AS col2 FROM tab1
----
3672

query I rowsort
SELECT - 73 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col2 - + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 + 84 col0 FROM tab1 AS cor0
----
98
98
98

query II rowsort
SELECT ALL - col2, + col2 + + 56 + col0 AS col2 FROM tab0 cor0
----
-10
153
-47
118
-99
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT 22 + - ( MAX( 71 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 / + 59 / 19 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT 22 + - ( MAX ( 71 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 / + 59 / 19 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT - 65 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3386
SELECT - 65 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT + + ( - 5 ) + - col1 AS col2 FROM tab1 cor0
----
-10
-19
-52

query I rowsort
SELECT DISTINCT col1 * + 77 AS col1 FROM tab0
----
1617
6237
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) IN ( - col0 )
----

query I rowsort
SELECT DISTINCT ( - 29 ) * - 53 * + col1 + - col0 + + col0 * - col1 FROM tab2
----
113357
75995
97879

query I rowsort
SELECT col2 + + col1 * - + 49 * + col1 + + 27 FROM tab2
----
-127399
-219876
-290454

query I rowsort
SELECT - 85 FROM tab0 WHERE - - col0 + col0 + + - 20 NOT IN ( - col1 )
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + col1 + + - col0 AS col0 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-3394
SELECT col2 AS col1, 56 DIV + - ( - col1 ) FROM tab1
----
59
11
68
1
96
4

skipif mysql # not compatible
query II rowsort label-3394
SELECT col2 AS col1, 56 / + - ( - col1 ) FROM tab1
----
59
11
68
1
96
4

query I rowsort
SELECT DISTINCT col2 * + + 8 AS col2 FROM tab1 WHERE ( NOT ( - col0 ) IS NULL )
----
472
544
768

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT 77 DIV 71 DIV + + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT 77 / 71 / + + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - + COUNT( * ) * 99 AS col0 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-3397
SELECT - + COUNT ( * ) * 99 AS col0 FROM tab1 AS cor0
----
-297

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 = - col0 + - col1 + - col1 + + + col1 * - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + - col0 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 81 - - + ( + 28 ) FROM tab2 AS cor0
----
109
109
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + SUM( DISTINCT col1 ) - + 2 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3401
SELECT + SUM ( DISTINCT col1 ) - + 2 FROM tab1
----
64

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + + col1 * + col2 IS NULL AND NOT ( col2 ) >= ( NULL )
----

query I rowsort
SELECT - col0 + 82 + 71 * 85 FROM tab1 cor0
----
6026
6032
6066

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE col0 BETWEEN ( NULL ) AND col2 * - ( 6 ) * 16
----
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE col0 BETWEEN ( NULL ) AND col2 * - ( 6 ) * 16
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE col2 BETWEEN - col2 AND - 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT DISTINCT - CAST( SUM( + 54 ) AS SIGNED ) AS col0 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT - CAST ( SUM ( + 54 ) AS INTEGER ) AS col0 FROM tab2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - - ( + col1 ) * - col1 + - - 89 * - col1 * + ( col0 ) AND 40
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3408
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - - ( + col1 ) * - col1 + - - 89 * - col1 * + ( col0 ) AND 40
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3409
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col1 + + + 61 * + CAST( NULL AS SIGNED ) * col2 < - col1
----

skipif mysql # not compatible
query III rowsort label-3409
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col1 + + + 61 * + CAST ( NULL AS INTEGER ) * col2 < - col1
----

query I rowsort
SELECT 45 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col2 FROM tab2 cor0
----
95
95
95

query I rowsort
SELECT + col2 * + - 15 AS col2 FROM tab2 cor0
----
-345
-600
-870

query I rowsort
SELECT DISTINCT + - col2 * 89 + - 60 FROM tab1 AS cor0
----
-5311
-6112
-8604

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( + 39 ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT ( - 9 ) * + - 82 * - 4 + MIN( DISTINCT - 52 ) + + 72 AS col1 FROM tab2 AS cor0
----
-2932

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT ( - 9 ) * + - 82 * - 4 + MIN ( DISTINCT - 52 ) + + 72 AS col1 FROM tab2 AS cor0
----
-2932

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT ALL + col1 * + col0 DIV - col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + col1 * + col0 / - col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3417
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT col2 IS NULL
----
NULL

query I rowsort
SELECT ALL col2 * - 77 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # DIV for integer division: 
query II rowsort label-3419
SELECT - 69 AS col0, + ( + + col0 ) DIV + col2 FROM tab2
----
-69
1
-69
1
-69
2

skipif mysql # not compatible
query II rowsort label-3419
SELECT - 69 AS col0, + ( + + col0 ) / + col2 FROM tab2
----
-69
1
-69
1
-69
2

query I rowsort
SELECT ALL - col2 * col2 + col2 FROM tab2 WHERE NOT NULL NOT IN ( - 3, - 57, col2 * + col0 + + - 31 ) AND col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL - SUM( + + 78 ) + - - ( - COUNT( * ) ) AS col1 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL - SUM ( + + 78 ) + - - ( - COUNT ( * ) ) AS col1 FROM tab2
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT COUNT( * ) + - - 88 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3422
SELECT COUNT ( * ) + - - 88 FROM tab2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3423
SELECT DISTINCT MAX( ALL + col2 ) + CAST( + + 34 AS SIGNED ) DIV - + MIN( ALL + - col1 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT MAX ( ALL + col2 ) + CAST ( + + 34 AS INTEGER ) / - + MIN ( ALL + - col1 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3424
SELECT CAST( NULL AS SIGNED ) * + - col2 + - col1 + - ( - - 67 ) AS col0, col2 * col1 DIV col2 * - 83 AS col2 FROM tab1 cor0
----
NULL
-1162
NULL
-3901
NULL
-415

skipif mysql # not compatible
query II rowsort label-3424
SELECT CAST ( NULL AS INTEGER ) * + - col2 + - col1 + - ( - - 67 ) AS col0, col2 * col1 / col2 * - 83 AS col2 FROM tab1 cor0
----
NULL
-1162
NULL
-3901
NULL
-415

query I rowsort
SELECT + col2 + + 19 + col1 AS col1 FROM tab2 AS cor0 WHERE + 29 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - MIN( ALL + 66 ) + - + ( + + 96 ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-3426
SELECT - MIN ( ALL + 66 ) + - + ( + + 96 ) FROM tab1 AS cor0
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT DISTINCT - COUNT( * ) DIV - 20 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - COUNT ( * ) / - 20 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - 40 col1 FROM tab2
----
-1840
-2560
-3000

query I rowsort
SELECT - col0 - - - col1 AS col0 FROM tab1
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, + 95 FROM tab1 AS cor0
----
51
95
85
95
91
95

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE 44 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT ALL - 64 DIV - + ( - col0 ) + col1 + - + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-2296
-4852
-4958

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL - 64 / - + ( - col0 ) + col1 + - + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-2296
-4852
-4958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) - + - col1 col2 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT DISTINCT + ( + MIN( DISTINCT - - col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT + ( + MIN ( DISTINCT - - col2 ) ) AS col2 FROM tab0
----
10

query III rowsort
SELECT * FROM tab0 WHERE NOT - 97 IS NOT NULL
----

query I rowsort
SELECT ALL 54 + - ( + col1 ) + - - 91 AS col0 FROM tab0 WHERE NOT 48 + - 20 <= ( - ( + 11 ) )
----
124
144
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3438
SELECT CAST( + - SUM( DISTINCT - ( + col1 ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3438
SELECT CAST ( + - SUM ( DISTINCT - ( + col1 ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN ( col0 ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT col0 DIV col2 DIV - 30 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3440
SELECT col0 / col2 / - 30 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3441
SELECT - col0 col2, col2 DIV 23 * - col0 FROM tab0
----
-15
-30
-87
0
-97
-388

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3441
SELECT - col0 col2, col2 / 23 * - col0 FROM tab0
----
-15
-30
-87
0
-97
-388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT ALL 40 * CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-2360
-2720
-3840

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL 40 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-2360
-2720
-3840

query I rowsort
SELECT 23 + 81 AS col0 FROM tab0 AS cor0
----
104
104
104

query I rowsort
SELECT col1 + - - col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( col1 )
----

query I rowsort
SELECT + - col2 + col0 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT SUM( DISTINCT col1 ) + - + MAX( DISTINCT + col0 ) * COUNT( * ) col0 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3446
SELECT SUM ( DISTINCT col1 ) + - + MAX ( DISTINCT + col0 ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
-207

query I rowsort
SELECT - 5 + col1 FROM tab2 cor0
----
46
62
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col2 + + col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col2 + + col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 25 * 20 FROM tab0
----
500
500
500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3450
SELECT ( col0 ) AS col1, + col1 * + col0 * CAST( - + col1 AS SIGNED ) col1 FROM tab1
----
51
-9996
85
-2125
91
-201019

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3450
SELECT ( col0 ) AS col1, + col1 * + col0 * CAST ( - + col1 AS INTEGER ) col1 FROM tab1
----
51
-9996
85
-2125
91
-201019

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT + SUM( DISTINCT - 17 ) AS col0 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-3451
SELECT + SUM ( DISTINCT - 17 ) AS col0 FROM tab2
----
-17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 54 NOT BETWEEN 76 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 21 + + - 82 AS col0 FROM tab2
----
-103

query I rowsort
SELECT + 75 - - col0 - - + 16 + 22 FROM tab0 AS cor0
----
128
200
210

query I rowsort
SELECT col0 - + 20 FROM tab2 AS cor0
----
26
44
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT 95 + ( CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
118
135
153

skipif mysql # not compatible
query I rowsort label-3456
SELECT 95 + ( CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
118
135
153

query I rowsort
SELECT 60 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
60
60
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT + - 36 DIV COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3458
SELECT + - 36 / COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + 47 * 8 AS col0 FROM tab1 AS cor0
----
376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL CAST( - - 29 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL CAST ( - - 29 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
29
29
29

query II rowsort
SELECT + col0, 0 FROM tab0 AS cor0
----
15
0
87
0
97
0

query I rowsort
SELECT DISTINCT - - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL COUNT( DISTINCT + + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL COUNT ( DISTINCT + + col0 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 77 / + col1 + 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 71 * + - 98 FROM tab1
----
-6958
-6958
-6958

query II rowsort
SELECT DISTINCT - col1, - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

query II rowsort
SELECT ALL + col2 AS col2, + 36 * 24 AS col2 FROM tab1 AS cor0
----
59
864
68
864
96
864

query II rowsort
SELECT - 93 AS col0, - col1 AS col0 FROM tab0 AS cor0
----
-93
-1
-93
-21
-93
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT + + CAST( - - 65 AS SIGNED ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + + CAST ( - - 65 AS INTEGER ) FROM tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT 50 + - + col1 FROM tab1
----
3
36
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3472
SELECT + - ( + + ( + COUNT( * ) ) ) * + - COUNT( * ) DIV - 78 * + + 86 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT + - ( + + ( + COUNT ( * ) ) ) * + - COUNT ( * ) / - 78 * + + 86 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3473
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( - col0 ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3473
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( - col0 ) AND ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL + 59 * - + col0 + - - col2 AS col2, col0 * col0 FROM tab1 AS cor0
----
-2913
2601
-4956
7225
-5301
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT + col0 * - col0 - + + col2 + - - 24 * + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT + col0 * - col0 - + + col2 + - - 24 * + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 23 + - + 72 + + - col2 * + col2 * - col1 + col0 FROM tab2
----
123215
225414
26976

query I rowsort
SELECT - col0 + - - 3 FROM tab0
----
-12
-84
-94

query I rowsort
SELECT ALL col0 + 84 FROM tab1
----
135
169
175

query II rowsort
SELECT col0 + - col1 + col1 AS col1, - 99 AS col0 FROM tab1
----
51
-99
85
-99
91
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT DISTINCT COUNT( * ) + + 13 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT COUNT ( * ) + + 13 FROM tab0
----
16

query I rowsort
SELECT 38 + - 74 AS col0 FROM tab2
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 col2, 56 col0 FROM tab1 AS cor0
----
-63
56
-63
56
-63
56

query I rowsort
SELECT DISTINCT + 78 + + ( - 20 ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 * + col2 * + ( - - col0 ) AS col1 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT DISTINCT - - 24 AS col2, COUNT( * ) FROM tab0 cor0
----
24
3

skipif mysql # not compatible
query II rowsort label-3485
SELECT DISTINCT - - 24 AS col2, COUNT ( * ) FROM tab0 cor0
----
24
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * + col2 col2 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT DISTINCT ( + 65 ) * col2 + - col1 * - - col1 * - 69 FROM tab1
----
156841
19764
5560

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + 87 / 17 * - col1
----

query I rowsort
SELECT - + 95 AS col2 FROM tab1 AS cor0 WHERE NOT - 3 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3490
SELECT DISTINCT + 34 - + 0 * + - ( + MIN( DISTINCT + 56 ) ) + 78 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + CAST( + col0 AS SIGNED ) IS NOT NULL
----
-200

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT + 34 - + 0 * + - ( + MIN ( DISTINCT + 56 ) ) + 78 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT + - MIN( + - ( + + 83 ) ) AS col2 FROM tab1 cor0
----
83

skipif mysql # not compatible
query I rowsort label-3491
SELECT + - MIN ( + - ( + + 83 ) ) AS col2 FROM tab1 cor0
----
83

query II rowsort
SELECT col0, - col0 * + col2 AS col0 FROM tab0
----
15
-705
87
-870
97
-9603

query I rowsort
SELECT ALL 14 + + col1 FROM tab1
----
19
28
61

query I rowsort
SELECT DISTINCT + ( + 98 ) * + ( + col2 ) FROM tab1
----
5782
6664
9408

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE + + 53 * + 30 - - col2 + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT + 47 DIV col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3496
SELECT + 47 / col0 FROM tab0
----
0
0
3

query I rowsort
SELECT DISTINCT - ( - 12 ) + + col1 FROM tab0
----
13
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL - - 92 + + + MAX( col0 ) FROM tab2 WHERE NOT NULL BETWEEN + col0 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - - 92 + + + MAX ( col0 ) FROM tab2 WHERE NOT NULL BETWEEN + col0 AND + col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3499
SELECT DISTINCT - 54 DIV + + 86 * CAST( COUNT( - col1 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - 54 / + + 86 * CAST ( COUNT ( - col1 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 >= - ( + 86 ) + + col2
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 >= - ( + 86 ) + + col2
----
0

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3502
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 80 + - SUM( + 18 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 80 + - SUM ( + 18 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL + + COUNT( ALL col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL + + COUNT ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 / 37 BETWEEN col1 + ( - ( col1 ) ) + - 29 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT + - SUM( ALL - col2 ) FROM tab1 AS cor0 WHERE 72 * - - col2 IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-3505
SELECT + - SUM ( ALL - col2 ) FROM tab1 AS cor0 WHERE 72 * - - col2 IS NOT NULL
----
223

query I rowsort
SELECT ALL - - col2 * - col2 - + col0 FROM tab0 AS cor0
----
-187
-2224
-9898

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( 58 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( 58 ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT - - COUNT( * ) * + - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT - - COUNT ( * ) * + - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT + - 75 AS col2, 89 * + 32 + ( + + col1 ) FROM tab2 AS cor0
----
-75
2899
-75
2915
-75
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT - MAX( - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3510
SELECT - MAX ( - + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT - CAST( NULL AS SIGNED ) * - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT - CAST ( NULL AS INTEGER ) * - + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 19 * col2 * + - col1 AS col2 FROM tab2
----
22287
58520
73834

query I rowsort
SELECT DISTINCT col2 + 59 * + 9 AS col1 FROM tab2
----
554
571
589

query II rowsort
SELECT ALL - ( + 89 ) + + 9 + col2 + 58 AS col1, + 20 FROM tab2
----
1
20
18
20
36
20

query I rowsort
SELECT DISTINCT - col1 * - col2 * col2 FROM tab2
----
123200
225388
26979

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + - col2 + + col1 * + 83 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT + col2 * 24 FROM tab1 cor0
----
1416
1632
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT - SUM( + - 96 ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3518
SELECT - SUM ( + - 96 ) FROM tab2 AS cor0
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( ( + + 94 ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( + 36 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3520
SELECT DISTINCT - - CAST( - + CAST( ( + COUNT( * ) ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - - CAST ( - + CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + 76, 86 - col1 AS col2 FROM tab0 AS cor0
----
76
5
76
65
76
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT - col2 DIV col2 + col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-3522
SELECT - col2 / col2 + col2 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3523
SELECT ALL * FROM tab2 cor0 WHERE NULL <> - col2 + col0 + + + 34 * + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3523
SELECT ALL * FROM tab2 cor0 WHERE NULL <> - col2 + col0 + + + 34 * + CAST ( col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 94 <> col1
----

query II rowsort
SELECT ALL - col2 AS col1, - col1 + + - col0 AS col0 FROM tab2 AS cor0
----
-23
-97
-40
-141
-58
-142

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 30 NOT BETWEEN + 20 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3527
SELECT * FROM tab1 WHERE NOT + CAST( + ( + col0 ) AS SIGNED ) * + + col2 BETWEEN - + col0 AND - 11 * + 86 * - col1
----
85
5
59

skipif mysql # not compatible
query III rowsort label-3527
SELECT * FROM tab1 WHERE NOT + CAST ( + ( + col0 ) AS INTEGER ) * + + col2 BETWEEN - + col0 AND - 11 * + 86 * - col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT COUNT( ALL + col0 ) AS col2, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3528
SELECT COUNT ( ALL + col0 ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT + 34 + 52 AS col0 FROM tab2
----
86

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT col1 BETWEEN - + 48 AND - col0 + col0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * + col2 col0 FROM tab0
----
33135
8700
950697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) * 64 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 64 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT 91 * - ( + col2 ) + + ( 17 ) + + + 25 + - + col0 FROM tab1
----
-5412
-6237
-8745

query II rowsort
SELECT DISTINCT + ( - 38 ) + + - 79 + + ( - + 46 ) AS col0, + 56 FROM tab1 AS cor0
----
-163
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 - + col0 + col0 col1, 78 AS col1 FROM tab0 AS cor0
----
15
78
87
78
97
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3537
SELECT ALL + CAST( NULL AS DECIMAL ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + CAST ( NULL AS REAL ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3538
SELECT DISTINCT col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT col1 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + + COUNT( * ) - - 93 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3539
SELECT + + COUNT ( * ) - - 93 FROM tab0 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 85 - - + 48 + col2 col1, + col2 - col0 AS col2 FROM tab1 AS cor0
----
22
-26
31
-23
59
45

query I rowsort
SELECT + 40 FROM tab1 cor0 WHERE - 66 = - col0 * - ( + col0 )
----

query I rowsort
SELECT DISTINCT col2 - col2 AS col2 FROM tab0 WHERE NOT 19 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 49 * + + 33 * + col2 NOT BETWEEN + + ( + + 2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + col0 / - + col1 * + - col0 - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - col1 AS col2 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT 97 * + 26 * + 35 AS col2 FROM tab0
----
88270
88270
88270

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL COUNT( DISTINCT - - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL COUNT ( DISTINCT - - col0 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT DISTINCT col0 DIV - - col0 col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3548
SELECT DISTINCT col0 / - - col0 col2 FROM tab0
----
1

query I rowsort
SELECT ALL + ( 12 ) * + 86 FROM tab2
----
1032
1032
1032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1, col0 + col0 FROM tab0
----
1
194
21
174
81
30

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 < - col0 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3553
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 22 * col1 + + ( - CAST( - col1 AS SIGNED ) ) / col2 IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-3553
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 22 * col1 + + ( - CAST ( - col1 AS INTEGER ) ) / col2 IN ( col0 )
----

query II rowsort
SELECT 42 * + col0, - 78 * - 46 AS col2 FROM tab0
----
3654
3588
4074
3588
630
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3555
SELECT - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

query I rowsort
SELECT - - ( ( - col0 ) ) AS col1 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col2 * col0 * - col2
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE + 22 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL - + MAX( ( - 78 ) ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - + MAX ( ( - 78 ) ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT + 80 FROM tab2 AS cor0 WHERE NOT ( - col0 ) + + + col2 <= - 43
----
80
80
80

query I rowsort
SELECT col1 + 50 AS col2 FROM tab1 AS cor0
----
55
64
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - + col1 col2, col2 * col1 AS col0 FROM tab2 AS cor0
----
-13
3080
-5
1173
8
3886

query I rowsort
SELECT - 74 + + ( + col1 ) * + col0 FROM tab2
----
2272
4854
4951

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IN ( 81 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( - + 64 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( - + 64 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + - 59 - + - col0 AS col2 FROM tab1
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT COUNT( * ) + + 48 AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3568
SELECT COUNT ( * ) + + 48 AS col2 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT ALL 20 + CAST( - 90 AS SIGNED ) FROM tab0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL 20 + CAST ( - 90 AS INTEGER ) FROM tab0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL 34 + COUNT( * ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL 34 + COUNT ( * ) FROM tab2
----
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( - - 69 - + col2 - col2 )
----

query I rowsort
SELECT 19 * 9 AS col2 FROM tab1
----
171
171
171

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 56 * ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL + ( - COUNT( * ) ) + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + ( - COUNT ( * ) ) + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT 77 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col2 * + col2 ) AND ( + col0 )
----

query II rowsort
SELECT ALL + + 92 + + col0 AS col0, + 85 * + ( 28 ) * + 82 AS col1 FROM tab2 cor0
----
138
195160
156
195160
167
195160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col2 col2, - 90 AS col0 FROM tab1 AS cor0
----
3481
-90
4624
-90
9216
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT DISTINCT + col1 * + col2 + - 78 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + col1 * + col2 + - 78 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3579
SELECT DISTINCT + col0 * col2 - col1 DIV + 25 col0, col1 AS col2 FROM tab2 cor0
----
1056
51
2557
77
4348
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3579
SELECT DISTINCT + col0 * col2 - col1 / + 25 col0, col1 AS col2 FROM tab2 cor0
----
1056
51
2557
77
4348
67

query I rowsort
SELECT ALL 49 * - - 65 FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT ALL + 26 * + - col2 + + col2 FROM tab0 AS cor0 WHERE ( NULL ) = - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3582
SELECT ALL + col1 / + 56 - - - CAST( NULL AS DECIMAL ) + + 41 * 91 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + col1 / + 56 - - - CAST ( NULL AS REAL ) + + 41 * 91 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 76 AS col2 FROM tab1 AS cor0
----
-4484
-5168
-7296

query I rowsort
SELECT col0 * - 78 * + - 43 * + - col0 FROM tab2
----
-13737984
-18866250
-7097064

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT COUNT( ALL + + 3 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT COUNT ( ALL + + 3 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 32 > 75 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 65 col0 FROM tab1 cor0
----
14
65
47
65
5
65

query I rowsort
SELECT - - 57 * ( - 72 ) FROM tab2 AS cor0
----
-4104
-4104
-4104

query II rowsort
SELECT - col0 AS col1, 0 - col1 - + + 41 AS col2 FROM tab1 AS cor0
----
-51
-55
-85
-46
-91
-88

query I rowsort
SELECT col1 * - + col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT SUM( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3591
SELECT SUM ( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3592
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - 35 + col0 BETWEEN - 87 AND + col0 - col2 + col1 + - - col2
----

skipif mysql # not compatible
query III rowsort label-3592
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - 35 + col0 BETWEEN - 87 AND + col0 - col2 + col1 + - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT COUNT( * ) AS col2, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3593
SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT + col0 AS col1, 15 * col1 + + col2 FROM tab0 AS cor0
----
15
1262
87
325
97
114

query I rowsort
SELECT - 92 * - col1 FROM tab0 AS cor0
----
1932
7452
92

query II rowsort
SELECT col1, ( + col1 ) AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL + SUM( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + SUM ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT 16 * col1 * 83 FROM tab0 AS cor0
----
107568
1328
27888

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT + col1 DIV - + col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT + col1 / - + col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3600
SELECT - + COUNT( * ), + MAX( ALL 65 ) AS col1 FROM tab0 AS cor0
----
-3
65

skipif mysql # not compatible
query II rowsort label-3600
SELECT - + COUNT ( * ), + MAX ( ALL 65 ) AS col1 FROM tab0 AS cor0
----
-3
65

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT + ( col0 ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 84 FROM tab1 WHERE NULL > - col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3603
SELECT - COUNT( * ) + - MAX( DISTINCT + + col1 ) / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT - COUNT ( * ) + - MAX ( DISTINCT + + col1 ) / CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT 80 + - + ( + + col2 ) FROM tab0
----
-19
33
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + 58 + COUNT( * ) col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3605
SELECT + 58 + COUNT ( * ) col2 FROM tab2 AS cor0
----
61

query III rowsort
SELECT ALL col2 * col1, col1, + col1 FROM tab1 AS cor0
----
9 values hashing to e735c3d1c0fb6e15136fd16009fcccf2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3608
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + 43 * + + ( - col0 ) + + col0 FROM tab1 WHERE NULL NOT BETWEEN - + 82 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * + + col1 NOT BETWEEN col0 * - + col1 AND - col1 + - - 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3611
SELECT 45 - - CAST( NULL AS DECIMAL ) + 73 AS col2, + MAX( ALL + 60 ) col2 FROM tab1 AS cor0
----
NULL
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3611
SELECT 45 - - CAST ( NULL AS REAL ) + 73 AS col2, + MAX ( ALL + 60 ) col2 FROM tab1 AS cor0
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT - ( + CAST( NULL AS SIGNED ) ) - COUNT( * ) - - + ( - - 46 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT - ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - - + ( - - 46 ) FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT DISTINCT - - col0 + - 11 + col1 DIV + 77 FROM tab0 AS cor0
----
5
76
86

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT - - col0 + - 11 + col1 / + 77 FROM tab0 AS cor0
----
5
76
86

query I rowsort
SELECT ALL - col1 + + col1 FROM tab2 AS cor0 WHERE col1 IN ( ( - 42 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3615
SELECT col2, col2 + CAST( NULL AS SIGNED ) / + col2 + + col2 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3615
SELECT col2, col2 + CAST ( NULL AS INTEGER ) / + col2 + + col2 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3616
SELECT DISTINCT 69 DIV - COUNT( * ) AS col0 FROM tab1 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT 69 / - COUNT ( * ) AS col0 FROM tab1 cor0
----
-23

query I rowsort
SELECT - 51 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-51
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT ALL + + COUNT( * ) DIV 55 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + + COUNT ( * ) / 55 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + ( - col2 ) AND col1
----

query I rowsort
SELECT ALL + 50 * 56 * - 18 FROM tab0
----
-50400
-50400
-50400

query I rowsort
SELECT ALL - ( 61 ) * + + col0 * ( col2 ) FROM tab2
----
-156160
-265350
-64538

query II rowsort
SELECT + col0 * - 33 AS col2, col2 AS col1 FROM tab1
----
-1683
96
-2805
59
-3003
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT DISTINCT - 23 DIV ( - + 91 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - 23 / ( - + 91 ) FROM tab1
----
0

query II rowsort
SELECT + 71 + - col2, col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 / - 75
----

query I rowsort
SELECT ALL + ( + - ( 49 ) ) - 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3626
SELECT DISTINCT + ( - - 26 ), CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + - col1 IS NOT NULL
----
26
NULL

skipif mysql # not compatible
query II rowsort label-3626
SELECT DISTINCT + ( - - 26 ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + - col1 IS NOT NULL
----
26
NULL

query I rowsort
SELECT col1 * - 9 AS col0 FROM tab0
----
-189
-729
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + ( - col2 ) + + - 64 * 58
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 19 >= + + 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + + - 79 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-166
-176
-94

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NOT NULL <> 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3632
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + CAST( NULL AS DECIMAL ) - - - col0
----

skipif mysql # not compatible
query III rowsort label-3632
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS REAL ) - - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT + COUNT( ALL col0 ) + - + MIN( ALL - col2 ) AS col2 FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3633
SELECT + COUNT ( ALL col0 ) + - + MIN ( ALL - col2 ) AS col2 FROM tab1 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL + COUNT( * ) + + - COUNT( ALL - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + COUNT ( * ) + + - COUNT ( ALL - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3635
SELECT COUNT( * ) DIV + - 1 + - + COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3635
SELECT COUNT ( * ) / + - 1 + - + COUNT ( * ) AS col2 FROM tab2
----
-6

query II rowsort
SELECT ALL + col1 AS col2, - col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT ALL col0 + col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL col0 + col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 32 AS col2, col1 FROM tab1
----
32
14
32
47
32
5

query I rowsort
SELECT + 60 * - col0 AS col1 FROM tab2
----
-2760
-3840
-4500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3640
SELECT ( - 76 ) DIV COUNT( * ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-3640
SELECT ( - 76 ) / COUNT ( * ) FROM tab1
----
-25

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 51 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 56 + - 20 - - + col0 FROM tab0 AS cor0
----
123
133
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + col2 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 1 - - 69 + - col1 FROM tab0
----
-13
47
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT - CAST( NULL AS SIGNED ) + AVG ( + col1 ) * 32 * + + 78 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT - CAST ( NULL AS INTEGER ) + AVG ( + col1 ) * 32 * + + 78 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT ALL - ( + col1 ) * + + 45 * + + col0 FROM tab0 AS cor0
----
-4365
-54675
-82215

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - + MIN( + ( + 89 ) ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - + MIN ( + ( + 89 ) ) FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + - MAX( DISTINCT - - ( 68 ) ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3648
SELECT + - MAX ( DISTINCT - - ( 68 ) ) FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - - MAX( - - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3649
SELECT - - MAX ( - - col2 ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT - - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT - - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 38 * ( - col0 ) FROM tab0 cor0
----
-3306
-3686
-570

query I rowsort
SELECT ALL - ( - 63 ) / - + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT SUM( - 75 ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-3653
SELECT SUM ( - 75 ) FROM tab0
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 + col1 col0 FROM tab2 WHERE NULL <= 19 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * + 39 col2 FROM tab2
----
3354
3354
3354

query I rowsort
SELECT ALL - 95 * + col0 FROM tab1
----
-4845
-8075
-8645

query I rowsort
SELECT - 39 FROM tab0 WHERE NOT col1 IS NULL
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - 76 col1 FROM tab0 AS cor0
----
1
-76
21
-76
81
-76

query I rowsort
SELECT col2 * col0 * 2 * + 89 FROM tab2 AS cor0
----
188324
455680
774300

query II rowsort
SELECT + - col1, col0 AS col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT DISTINCT - 7 AS col1, 73 AS col2 FROM tab2 AS cor0
----
-7
73

query I rowsort
SELECT ALL - col0 + + 31 * + ( col1 ) FROM tab1 AS cor0
----
1366
383
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT COUNT( * ) * + MAX( 52 ) AS col2 FROM tab1 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3663
SELECT COUNT ( * ) * + MAX ( 52 ) AS col2 FROM tab1 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - - MAX( ALL + - 18 ) col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3664
SELECT - - MAX ( ALL + - 18 ) col2 FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - + ( + MIN( col1 ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3665
SELECT - + ( + MIN ( col1 ) ) FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT + 89 * - + 85 FROM tab2
----
-7565

query III rowsort
SELECT * FROM tab2 WHERE + 30 + + + col1 IN ( - col2, ( - + 37 ) + - - 32, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3668
SELECT - CAST( col2 AS SIGNED ) + + - col0 * + ( - - col2 ) AS col2 FROM tab0
----
-752
-880
-9702

skipif mysql # not compatible
query I rowsort label-3668
SELECT - CAST ( col2 AS INTEGER ) + + - col0 * + ( - - col2 ) AS col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE - + 2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - - 56 + - + col2 * + + col0 * col1 AS col0 FROM tab2 AS cor0
----
-197064
-291394
-53902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 53 ) - + col1 col1 FROM tab2 AS cor0
----
-104
-120
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT DISTINCT - + SUM( + col1 ) + + 1 AS col1 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT - + SUM ( + col1 ) + + 1 AS col1 FROM tab0 AS cor0
----
-102

query I rowsort
SELECT DISTINCT + col0 + + col2 * + - ( + - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + COUNT( * ) + - + SUM( + 16 ) AS col2 FROM tab0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + COUNT ( * ) + - + SUM ( + 16 ) AS col2 FROM tab0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT - 43 * - col1 FROM tab0
----
3483
43
903

query I rowsort
SELECT DISTINCT col1 * + - 96 FROM tab0
----
-2016
-7776
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT COUNT( * ) DIV + COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3677
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab0 cor0
----
1

query I rowsort
SELECT - - 64 * - + col1 + - - col2 AS col0 FROM tab2 AS cor0
----
-3241
-4230
-4888

query II rowsort
SELECT + 92, 78 AS col2 FROM tab0 AS cor0
----
92
78
92
78
92
78

query I rowsort
SELECT - col2 * + ( - + col2 ) AS col0 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT ALL + 42 FROM tab1 cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL COUNT( DISTINCT - - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL COUNT ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col0 FROM tab1
----
3

query I rowsort
SELECT - col0 * - + col2 AS col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT + CAST( - AVG ( ALL + - col1 ) AS SIGNED ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3685
SELECT + CAST ( - AVG ( ALL + - col1 ) AS INTEGER ) FROM tab1
----
22

query I rowsort
SELECT + 77 * - col0 * - col2 AS col2 FROM tab0 AS cor0
----
54285
66990
739431

query III rowsort
SELECT * FROM tab0 WHERE - 35 NOT BETWEEN col1 AND - col0 * 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 14 + + - col2 AS col1 FROM tab1
----
-45
-54
-82

query I rowsort
SELECT ALL + col1 * col2 * col1 * + 88 AS col2 FROM tab1
----
129800
13218656
1655808

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + COUNT( * ) + + MIN( + 60 ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3690
SELECT + COUNT ( * ) + + MIN ( + 60 ) AS col2 FROM tab1
----
63

query I rowsort
SELECT ALL + col0 + + + col0 FROM tab1 cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + ( + COUNT( * ) ) col2 FROM tab1 AS cor0 WHERE NULL > 85
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3692
SELECT + ( + COUNT ( * ) ) col2 FROM tab1 AS cor0 WHERE NULL > 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL + - 87 * + SUM( col2 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-10530

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + - 87 * + SUM ( col2 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-10530

query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT col1 * ( + col0 ) + - col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT ALL + + ( - col2 ) * - + col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + col0 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT - - col1 DIV col0 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3698
SELECT - - col1 / col0 FROM tab0 cor0
----
0
0
5

query II rowsort
SELECT col2 * + - col2 AS col1, - col1 FROM tab1
----
-3481
-5
-4624
-47
-9216
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-3700
SELECT - 20 DIV - 99 AS col1, - 15 FROM tab0
----
0
-15
0
-15
0
-15

skipif mysql # not compatible
query II rowsort label-3700
SELECT - 20 / - 99 AS col1, - 15 FROM tab0
----
0
-15
0
-15
0
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-3701
SELECT DISTINCT 88 * + - col2 AS col2, col2 DIV - col1 * col2 AS col0 FROM tab2
----
-2024
0
-3520
0
-5104
0

skipif mysql # not compatible
query II rowsort label-3701
SELECT DISTINCT 88 * + - col2 AS col2, col2 / - col1 * col2 AS col0 FROM tab2
----
-2024
0
-3520
0
-5104
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-3

query I rowsort
SELECT + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL SUM( - + col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3704
SELECT ALL SUM ( - + col1 ) col1 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 45 + + - 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3706
SELECT ALL col0, + 10 + CAST( + 39 AS SIGNED ) * col2 FROM tab1 AS cor0
----
51
3754
85
2311
91
2662

skipif mysql # not compatible
query II rowsort label-3706
SELECT ALL col0, + 10 + CAST ( + 39 AS INTEGER ) * col2 FROM tab1 AS cor0
----
51
3754
85
2311
91
2662

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT + + SUM( 5 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT + + SUM ( 5 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT MIN( ALL 99 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3708
SELECT MIN ( ALL 99 ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE + col1 * - col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col1 * + 41 * col1 * 71 FROM tab2 AS cor0
----
-13067479
-17259319
-7571511

query I rowsort
SELECT ALL + + col1 * col1 * ( - col2 ) FROM tab0 AS cor0
----
-308367
-4410
-99

query II rowsort
SELECT col0, 63 AS col0 FROM tab2
----
46
63
64
63
75
63

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 92 ) + - ( col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 33 IS NULL
----

query I rowsort
SELECT ALL - col0 + - - ( + 33 ) * - + col1 AS col0 FROM tab2
----
-1729
-2286
-2605

query II rowsort
SELECT - col1, + ( col1 ) FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT 49 DIV - 75 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT 49 / - 75 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 + + ( - - col0 ) FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT ALL + - ( - - 23 ) DIV - 98 + - - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL + - ( - - 23 ) / - 98 + - - col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col0 + + + 10 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT 41 * - - 50 AS col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT - MIN( ALL + col1 ) + - 82 AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT - MIN ( ALL + col1 ) + - 82 AS col2 FROM tab1
----
-87

query I rowsort
SELECT ALL 38 + - 37 * + 83 AS col0 FROM tab0 AS cor0
----
-3033
-3033
-3033

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT ALL + col0 * col0 * CAST( + col0 AS SIGNED ) - 0 + + + col2 * ( + col1 ) col2 FROM tab0 AS cor0
----
658713
7182
912772

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3725
SELECT ALL + col0 * col0 * CAST ( + col0 AS INTEGER ) - 0 + + + col2 * ( + col1 ) col2 FROM tab0 AS cor0
----
658713
7182
912772

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3727
SELECT ALL COUNT( * ) DIV + MIN( + - col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL COUNT ( * ) / + MIN ( + - col2 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL ( - - col1 ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT - col0 + - - col2 AS col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT - 50 AS col0 FROM tab1 WHERE ( + col0 IS NOT NULL )
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-3731
SELECT ALL + 98, + col0 DIV + - col0 AS col0 FROM tab2
----
98
-1
98
-1
98
-1

skipif mysql # not compatible
query II rowsort label-3731
SELECT ALL + 98, + col0 / + - col0 AS col0 FROM tab2
----
98
-1
98
-1
98
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT CAST( NULL AS SIGNED ) * - 18 + + - MAX( + + col2 ) * 9 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT CAST ( NULL AS INTEGER ) * - 18 + + - MAX ( + + col2 ) * 9 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 - - + col1 - - 12 * - 4 AS col2 FROM tab1
----
-20
-38
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT ALL + 99 DIV 9 AS col0 FROM tab0 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + 99 / 9 AS col0 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT + SUM( ALL + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + SUM ( ALL + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT + col2, col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT 49 + - col0 + + col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT DISTINCT + + MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT MAX( 57 ) col0 FROM tab2
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3739
SELECT MAX ( 57 ) col0 FROM tab2
----
57

query I rowsort
SELECT ALL col0 + - 55 AS col2 FROM tab1 WHERE NULL >= 52 / - col1 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - col1 / + 90 + col2 = 9 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab2 WHERE ( col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 WHERE ( col0 ) IS NULL
----
0

query I rowsort
SELECT - 92 * - col0 + col0 FROM tab1
----
4743
7905
8463

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 - 16 * 72 ) NOT IN ( 68 * 75 )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT NULL IN ( col2 * 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT ALL col0 + + col1 AS col0 FROM tab0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL col0 + + col1 AS col0 FROM tab0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + COUNT( * ) + - 95 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-3748
SELECT + COUNT ( * ) + - 95 FROM tab2
----
-92

query I rowsort
SELECT col2 + 70 AS col0 FROM tab2
----
110
128
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col1 FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( col1 * - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( col1 * - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 + 27 FROM tab1 WHERE - 52 < + 69
----
112
118
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + ( - col1 ) col1 FROM tab1
----
-14
19
28

query I rowsort
SELECT - 78 + 85 FROM tab2
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT DISTINCT col1 + 59 DIV + col1 AS col0 FROM tab0 cor0
----
23
60
81

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT col1 + 59 / + col1 AS col0 FROM tab0 cor0
----
23
60
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT + 68 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT + 68 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-204

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 61 * + 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 42 IS NULL
----

query I rowsort
SELECT ALL ( + ( - col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL 36 + col2 * + 16 AS col1 FROM tab1
----
1124
1572
980

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT COUNT( * ) + 25 AS col2 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT COUNT ( * ) + 25 AS col2 FROM tab0
----
28

query I rowsort
SELECT DISTINCT - 55 + col0 AS col2 FROM tab2
----
-9
20
9

query I rowsort
SELECT - col0 * 20 + col2 AS col1 FROM tab0
----
-1730
-1841
-253

query I rowsort
SELECT col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( 12 * 31 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT ALL + col0 + - 44 DIV + col1 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + col0 + - 44 / + col1 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + 40 / + 85 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT + MIN( ALL - 24 ) FROM tab2 cor0 WHERE + col1 >= col0
----
-24

skipif mysql # not compatible
query I rowsort label-3768
SELECT + MIN ( ALL - 24 ) FROM tab2 cor0 WHERE + col1 >= col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT - COUNT( * ) * 19 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-57

skipif mysql # not compatible
query I rowsort label-3769
SELECT - COUNT ( * ) * 19 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - + 22 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3770
SELECT - + 22 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3771
SELECT - col2 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3771
SELECT - col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - - COUNT( * ) - 95 AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - - COUNT ( * ) - 95 AS col2 FROM tab1 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT MAX( col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3773
SELECT MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT DISTINCT col1 * + 59 FROM tab0 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) + + 78 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT col1 * + 59 FROM tab0 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) + + 78 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - col0 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 46 FROM tab2 cor0
----
-46
-46
-46

query I rowsort
SELECT + col2 * - - 58 AS col0 FROM tab1
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT COUNT( * ) * - MIN( 56 ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-3778
SELECT COUNT ( * ) * - MIN ( 56 ) FROM tab0
----
-168

query I rowsort
SELECT ALL - col0 * + col1 FROM tab2 WHERE NOT col0 IS NULL
----
-2346
-4928
-5025

query I rowsort
SELECT - col1 - - + col2 + col0 AS col0 FROM tab2
----
18
27
66

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - 70 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + + col2 FROM tab0 WHERE NOT ( col0 + + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT ALL - MIN( ( col1 ) ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - MIN ( ( col1 ) ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * + col0 ) < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN 51 AND NULL
----

query I rowsort
SELECT col1 * - 80 + + col0 FROM tab0 WHERE NOT + 40 * col2 NOT BETWEEN NULL AND ( col2 + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT - - SUM( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3787
SELECT - - SUM ( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT + COUNT( DISTINCT - - 60 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3788
SELECT + COUNT ( DISTINCT - - 60 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 35 BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL col1 * 48 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
2448
3216
3696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 AS col1, ( + col2 ) * col0 col0 FROM tab2
----
5
1058
5
2560
5
4350

query I rowsort
SELECT ALL + 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <> 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT + 67 DIV col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3793
SELECT + 67 / col0 FROM tab0
----
0
0
4

query I rowsort
SELECT - col1 * + - 16 AS col0 FROM tab1 AS cor0
----
224
752
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT + + COUNT( * ) DIV + + COUNT( DISTINCT 53 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3795
SELECT + + COUNT ( * ) / + + COUNT ( DISTINCT 53 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + 88 AS col1 FROM tab0 AS cor0
----
88
88
88

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + ( + col1 ) + ( col0 + col2 ) <= NULL
----

query I rowsort
SELECT 56 * + 52 FROM tab0 AS cor0
----
2912
2912
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + COUNT( + col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3800
SELECT + COUNT ( + col1 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) = + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3802
SELECT ALL - 71, + CAST( - ( 85 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-71
-85
-71
-85
-71
-85

skipif mysql # not compatible
query II rowsort label-3802
SELECT ALL - 71, + CAST ( - ( 85 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-71
-85
-71
-85
-71
-85

query II rowsort
SELECT DISTINCT - - col2, ( + col0 ) FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( ( 75 ) ) col0 FROM tab1 AS cor0
----
-122
-80
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 * - ( - 53 / + 50 ) col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN + col1 * + + col0 AND ( + col2 + 79 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col1 >= NULL
----

query I rowsort
SELECT - 5 / col1 FROM tab1 WHERE col2 * + col0 BETWEEN NULL AND - 0 + col2 / col2
----

query I rowsort
SELECT DISTINCT col0 + + ( 29 ) + + - ( + col1 ) - - col1 * - 34 FROM tab0
----
-2791
-619
91

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE + - 74 IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col0 + - 54 - - col1 AND + 82 * - 4
----

query I rowsort
SELECT ALL + 90 + + 69 FROM tab0
----
159
159
159

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NULL AND NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + 51 + + COUNT( - col2 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3815
SELECT + 51 + + COUNT ( - col2 ) AS col1 FROM tab2
----
54

query I rowsort
SELECT + col0 + + + 80 AS col1 FROM tab0
----
167
177
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT - - col1 + 64 + - ( - 87 ) DIV + 40 col2 FROM tab2 AS cor0
----
117
133
143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3817
SELECT - - col1 + 64 + - ( - 87 ) / + 40 col2 FROM tab2 AS cor0
----
117
133
143

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT - 7 DIV + col2 + - col0 + 68 col0 FROM tab2 cor0
----
-7
22
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3818
SELECT - 7 / + col2 + - col0 + 68 col0 FROM tab2 cor0
----
-7
22
4

query I rowsort
SELECT + 73 * + + col1 FROM tab2
----
3723
4891
5621

query II rowsort
SELECT - col2 - - 41 * + 83 AS col1, col1 AS col2 FROM tab0
----
3304
1
3356
81
3393
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT DISTINCT + 31 * + - CAST( col1 AS SIGNED ) + - - col2 AS col0 FROM tab0
----
-2464
-641
68

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT + 31 * + - CAST ( col1 AS INTEGER ) + - - col2 AS col0 FROM tab0
----
-2464
-641
68

query I rowsort
SELECT DISTINCT 79 + + col0 AS col0 FROM tab1 AS cor0
----
130
164
170

query I rowsort
SELECT - 76 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 - + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT + col2 DIV + ( + + col2 ) FROM tab2 cor0 WHERE col1 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT + col2 / + ( + + col2 ) FROM tab2 cor0 WHERE col1 IS NOT NULL
----
1
1
1

query I rowsort
SELECT - 59 + - col1 FROM tab0 AS cor0
----
-140
-60
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT - COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + 57 * + col1 AS col2 FROM tab2
----
2907
3819
4389

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3829
SELECT ALL - MIN( DISTINCT + col0 ) AS col0 FROM tab1 WHERE + col1 * - + col2 * - CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL - MIN ( DISTINCT + col0 ) AS col0 FROM tab1 WHERE + col1 * - + col2 * - CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT SUM( DISTINCT col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3830
SELECT SUM ( DISTINCT col1 ) AS col2 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-3831
SELECT 93 AS col0, - 61 + col2 DIV + 24 FROM tab1
----
93
-57
93
-59
93
-59

skipif mysql # not compatible
query II rowsort label-3831
SELECT 93 AS col0, - 61 + col2 / + 24 FROM tab1
----
93
-57
93
-59
93
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col0 BETWEEN ( + - col0 + - - ( 7 ) ) AND ( + 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT DISTINCT - 21 col2, COUNT( * ) * + MAX( col1 ) AS col1 FROM tab0
----
-21
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3833
SELECT DISTINCT - 21 col2, COUNT ( * ) * + MAX ( col1 ) AS col1 FROM tab0
----
-21
243

query I rowsort
SELECT DISTINCT - col0 * + 51 AS col1 FROM tab0 AS cor0
----
-4437
-4947
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0
----
9

query II rowsort
SELECT 7 * + col2 AS col0, col1 + + col0 AS col2 FROM tab0
----
329
96
693
98
70
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3837
SELECT DISTINCT MAX( ALL col0 ) AS col0, + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-3837
SELECT DISTINCT MAX ( ALL col0 ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col1 FROM tab0 AS cor0
----
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 < col2 * 37
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 76 + + 72 IS NULL
----

query I rowsort
SELECT col2 + + col2 + - col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE 45 + - ( - col0 ) < col2 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE 45 + - ( - col0 ) < col2 * - col0
----
0

query I rowsort
SELECT - 43 + + col0 AS col2 FROM tab0
----
-28
44
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT 38 DIV - + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3844
SELECT 38 / - + col0 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE + 4 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 > + 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3847
SELECT ALL - 56 + - - CAST( NULL AS SIGNED ) + - 16 AS col0, - col1 + - col0 * + col1 FROM tab2
----
NULL
-2397
NULL
-5005
NULL
-5092

skipif mysql # not compatible
query II rowsort label-3847
SELECT ALL - 56 + - - CAST ( NULL AS INTEGER ) + - 16 AS col0, - col1 + - col0 * + col1 FROM tab2
----
NULL
-2397
NULL
-5005
NULL
-5092

query I rowsort
SELECT + col0 - + - 47 AS col1 FROM tab1 AS cor0
----
132
138
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3849
SELECT ALL - COUNT( ( + 10 ) ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL - COUNT ( ( + 10 ) ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT + col1 + + col0 + - - 25 AS col0 FROM tab2
----
122
166
167

query I rowsort
SELECT + 13 AS col1 FROM tab0 cor0 WHERE ( - 99 + - ( + col0 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT ALL - 68 + + - col1 - + - col0 DIV 94 * col0 * - + ( col0 ) * - 88 + + 16 FROM tab2 AS cor0
----
-103
-119
-129

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - 68 + + - col1 - + - col0 / 94 * col0 * - + ( col0 ) * - 88 + + 16 FROM tab2 AS cor0
----
-103
-119
-129

query I rowsort
SELECT ALL + + 51 AS col1 FROM tab2 cor0
----
51
51
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col1 - + col0
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT + - SUM( - - 73 ) AS col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + - SUM ( - - 73 ) AS col1 FROM tab1 AS cor0
----
-219

query I rowsort
SELECT ( 34 ) FROM tab0 AS cor0
----
34
34
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / + - 76 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3859
SELECT ALL * FROM tab2 AS cor0 WHERE + 7 + + ( + - col0 ) > + + col0 * CAST( - col2 AS SIGNED ) + - 50 + 55 * 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3859
SELECT ALL * FROM tab2 AS cor0 WHERE + 7 + + ( + - col0 ) > + + col0 * CAST ( - col2 AS INTEGER ) + - 50 + 55 * 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + - 15 * col1 FROM tab1 AS cor0
----
-2940
-33135
-375

query II rowsort
SELECT ALL - 77, - 81 AS col1 FROM tab2
----
-77
-81
-77
-81
-77
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT DISTINCT + ( - CAST( + - 11 AS SIGNED ) ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + ( - CAST ( + - 11 AS INTEGER ) ) FROM tab2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3863
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 IN ( 2, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3863
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 IN ( 2, CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 67, col0 col0 FROM tab2
----
67
46
67
64
67
75

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT - col2 - col2 > - col2 * + 76 + + 84 + + col1 + - 82 * 70
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 84 = + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 45 > NULL
----

query I rowsort
SELECT + 26 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NULL OR col2 + 27 < NULL
----

query I rowsort
SELECT + 38 * 54 * + ( - + col2 ) FROM tab1 AS cor0
----
-121068
-139536
-196992

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT - col1 DIV - - 5 AS col0 FROM tab0 cor0
----
-16
-4
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT - col1 / - - 5 AS col0 FROM tab0 cor0
----
-16
-4
0

query I rowsort
SELECT ALL + col2 * - 34 * + col0 AS col1 FROM tab0 AS cor0
----
-23970
-29580
-326502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * col0 col2 FROM tab2 AS cor0
----
1472
2048
2400

query I rowsort
SELECT col0 * + - 45 AS col1 FROM tab1 AS cor0
----
-2295
-3825
-4095

query I rowsort
SELECT - - 21 * + col1 AS col2 FROM tab0 AS cor0
----
1701
21
441

query I rowsort
SELECT ALL - 71 * col0 * 48 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
24622805
28221695
8864222

query I rowsort
SELECT DISTINCT - col0 * + 83 AS col0 FROM tab2
----
-3818
-5312
-6225

onlyif mysql # DIV for integer division: 
query II rowsort label-3879
SELECT ALL 53 * col1 AS col2, + col1 DIV + col1 AS col1 FROM tab1
----
2491
1
265
1
742
1

skipif mysql # not compatible
query II rowsort label-3879
SELECT ALL 53 * col1 AS col2, + col1 / + col1 AS col1 FROM tab1
----
2491
1
265
1
742
1

query II rowsort
SELECT ALL ( - + col2 ) + - 7 + + - col1 * - col1, - ( - col0 ) + - ( col0 ) * - col1 AS col1 FROM tab0
----
-105
194
424
1914
6507
1230

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 + + + 41 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col1 / - + col2 NOT BETWEEN - + ( + 59 ) + + - 31 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 85 + + col1 col2 FROM tab2
----
3961
5517
6442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + + + col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3884
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + + + col0 col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL - COUNT( * ) - + COUNT( * ) + MIN( DISTINCT + col2 ) + + - 85 AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - COUNT ( * ) - + COUNT ( * ) + MIN ( DISTINCT + col2 ) + + - 85 AS col2 FROM tab0
----
-81

query I rowsort
SELECT ALL + 30 + 66 * - col2 AS col2 FROM tab2 AS cor0
----
-1488
-2610
-3798

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col0 + - 47 * + col2 = ( + - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 <= - col0 + - + col0 + col2 * + col0 + + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 80 ) * + 94 col1 FROM tab1
----
7520
7520
7520

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL COUNT( ALL + 6 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL COUNT ( ALL + 6 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT COUNT( ALL + 40 ) AS col2 FROM tab0 cor0 WHERE NOT col1 < - col2 * - col2 + + + col2 - - - ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3893
SELECT COUNT ( ALL + 40 ) AS col2 FROM tab0 cor0 WHERE NOT col1 < - col2 * - col2 + + + col2 - - - ( - col0 )
----
0

query II rowsort
SELECT DISTINCT - + 15, - 55 AS col0 FROM tab1 AS cor0
----
-15
-55

query II rowsort
SELECT + col0 AS col2, + 14 AS col2 FROM tab0 AS cor0
----
15
14
87
14
97
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - AVG ( ALL 34 ) * + COUNT( - + col2 ) FROM tab1 WHERE NOT - col1 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT - AVG ( ALL 34 ) * + COUNT ( - + col2 ) FROM tab1 WHERE NOT - col1 + - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT DISTINCT - col1 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - col1 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3898
SELECT DISTINCT col2 col2 FROM tab0 WHERE NOT + CAST( col0 AS DECIMAL ) IN ( + col0 / + col1, - col1, + + ( + + 65 ) + - 47 )
----
10
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3898
SELECT DISTINCT col2 col2 FROM tab0 WHERE NOT + CAST ( col0 AS REAL ) IN ( + col0 / + col1, - col1, + + ( + + 65 ) + - 47 )
----
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT DISTINCT - SUM( + 24 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - SUM ( + 24 ) FROM tab1
----
-72

query I rowsort
SELECT - col0 * + - 8 * + - col1 AS col2 FROM tab2
----
-18768
-39424
-40200

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT + COUNT( * ) * - - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3901
SELECT + COUNT ( * ) * - - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT - 16 DIV - - col0 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT - 16 / - - col0 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3903
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE + 86 <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT + col2 + + + col1 - + 46 AS col2 FROM tab0 cor0
----
-15
54
82

query I rowsort
SELECT ALL + col2 + - ( + col1 ) + - + 36 FROM tab1 AS cor0
----
-15
18
46

query I rowsort
SELECT ALL + col0 * - col0 * 77 AS col1 FROM tab0 AS cor0
----
-17325
-582813
-724493

query I rowsort
SELECT DISTINCT - 53 * 96 FROM tab1 AS cor0
----
-5088

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT col1 DIV + + 20 + - - col2 FROM tab0 AS cor0 WHERE - col1 + - col1 IS NOT NULL
----
11
51
99

skipif mysql # not compatible
query I rowsort label-3911
SELECT col1 / + + 20 + - - col2 FROM tab0 AS cor0 WHERE - col1 + - col1 IS NOT NULL
----
11
51
99

query I rowsort
SELECT DISTINCT - + col2 * - - 83 AS col2 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + 79 * 83 FROM tab1 WHERE NOT + col2 + + 11 * + col2 + + col0 < + col0
----
-386863
-445876
-629472

query I rowsort
SELECT + ( 82 ) FROM tab2
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT ALL + col1 * CAST( - 64 AS SIGNED ) + + col2 - - col1 * - - col0 AS col2 FROM tab0
----
-3922
132
493

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + col1 * CAST ( - 64 AS INTEGER ) + + col2 - - col1 * - - col0 AS col2 FROM tab0
----
-3922
132
493

query III rowsort
SELECT * FROM tab2 WHERE - 47 <= - 88
----

query II rowsort
SELECT col1 AS col2, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT DISTINCT ( + col1 ) DIV + col0 + - + ( + col2 ) + + col1 * col0 AS col1 FROM tab2
----
2324
4889
4967

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT ( + col1 ) / + col0 + - + ( + col2 ) + + col1 * col0 AS col1 FROM tab2
----
2324
4889
4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 - col0, 79 col0 FROM tab1
----
-28
79
-62
79
-68
79

query I rowsort
SELECT ALL 67 - + col1 AS col2 FROM tab0 AS cor0
----
-14
46
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 71 + - + col0 <> - + col1 * + + col1 - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - col1 - + 79 FROM tab2 AS cor0
----
-1252
-3159
-3965

query I rowsort
SELECT + col2 + + ( - col0 ) FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * 44 NOT BETWEEN + - 37 AND - col1 - + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * 44 NOT BETWEEN + - 37 AND - col1 - + CAST ( NULL AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col2 FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-3927
SELECT + - col0 DIV + 83, + 59 AS col0 FROM tab0 AS cor0
----
-1
59
-1
59
0
59

skipif mysql # not compatible
query II rowsort label-3927
SELECT + - col0 / + 83, + 59 AS col0 FROM tab0 AS cor0
----
-1
59
-1
59
0
59

query I rowsort
SELECT DISTINCT + col1 * - + col1 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT 4 AS col2 FROM tab1 cor0 WHERE NOT NULL > - 51 * + col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + - MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3930
SELECT + - MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab1 AS cor0 WHERE ( ( - + col2 ) ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col2 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT MAX( DISTINCT + + 75 ) FROM tab2, tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3934
SELECT MAX ( DISTINCT + + 75 ) FROM tab2, tab1 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + MAX( + - col1 ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3935
SELECT ALL + MAX ( + - col1 ) col0 FROM tab0
----
-1

query II rowsort
SELECT ALL + ( + col1 ) * col1 AS col0, 22 AS col1 FROM tab0 WHERE + - col0 IS NOT NULL
----
1
22
441
22
6561
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT MIN( - + 59 ) AS col1 FROM tab1, tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3937
SELECT MIN ( - + 59 ) AS col1 FROM tab1, tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 <> ( + - col1 )
----

query I rowsort
SELECT DISTINCT + 41 AS col1 FROM tab1 WHERE NOT + - col0 * - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * 38 * + col1 FROM tab0 AS cor0
----
144666
3762
7980

query I rowsort
SELECT + col1 + 26 FROM tab1 AS cor0
----
31
40
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 8, col0 * - ( - col0 ), col0, + 68, - col0 * col2 )
----

query I rowsort
SELECT + + col2 + + - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT + - MIN( + - col1 ) col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3944
SELECT DISTINCT + - MIN ( + - col1 ) col2 FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT - col2, - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - - COUNT( * ) - + 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-3946
SELECT - - COUNT ( * ) - + 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT + CAST( + AVG ( + 65 ) AS SIGNED ) AS col0 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT + CAST ( + AVG ( + 65 ) AS INTEGER ) AS col0 FROM tab1 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 * + col2 + - 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT - - 64 * + 88 + 32 * + - 97 * col2 + + 83 FROM tab2 AS cor0
----
-118445
-174317
-65677

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 94 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT 58 + - col0 DIV 86 * + col2 AS col1 FROM tab0 AS cor0
----
-41
48
58

skipif mysql # not compatible
query I rowsort label-3952
SELECT 58 + - col0 / 86 * + col2 AS col1 FROM tab0 AS cor0
----
-41
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL ( - MAX( + 97 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL ( - MAX ( + 97 ) ) FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + - ( 92 ) * - col1 col2 FROM tab2
----
4725
6197
7117

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT col2 DIV + - 50 + - 53 AS col2 FROM tab1
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-3955
SELECT col2 / + - 50 + - 53 AS col2 FROM tab1
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT - 48 + + SUM( col2 ) * - - COUNT( * ) * ( + COUNT( * ) ) FROM tab2
----
1041

skipif mysql # not compatible
query I rowsort label-3956
SELECT - 48 + + SUM ( col2 ) * - - COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2
----
1041

query I rowsort
SELECT col0 + - + 10 * - 51 AS col2 FROM tab1
----
561
595
601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 + + + col1 col1 FROM tab0
----
100
160
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL - 75 * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 <> 51 + - col1
----
-225

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - 75 * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 <> 51 + - col1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - - 97 - + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - - 97 - + COUNT ( * ) FROM tab1 AS cor0
----
94

query I rowsort
SELECT ALL + 61 AS col2 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT - col0 * - ( 97 ) FROM tab1
----
4947
8245
8827

query I rowsort
SELECT - 87 * 38 FROM tab1
----
-3306
-3306
-3306

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT + - 50 IS NOT NULL
----

query I rowsort
SELECT + 53 * - col0 AS col1 FROM tab2
----
-2438
-3392
-3975

query I rowsort
SELECT + col1 * - - col1 * + col2 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT - 59 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT DISTINCT ( + col0 ) * - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > ( - col2 )
----

query I rowsort
SELECT DISTINCT + - 61 AS col0 FROM tab2 cor0
----
-61

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col2, col0 * + - col1 + + - ( - + 3 ) FROM tab0 AS cor0
----
10
-1824
47
-1212
99
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + + ( - col0 ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 17 AS col0, + col1 * + col0 col1 FROM tab0 cor0
----
17
1215
17
1827
17
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT ALL 73 AS col2, 18 * + COUNT( * ) * - COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
73
-159

skipif mysql # not compatible
query II rowsort label-3975
SELECT ALL 73 AS col2, 18 * + COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
73
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL - SUM( ALL col2 ) * + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - SUM ( ALL col2 ) * + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT - COUNT( * ) * - 13 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - COUNT ( * ) * - 13 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT 95 * + COUNT( * ) AS col2 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-3978
SELECT 95 * + COUNT ( * ) AS col2 FROM tab1
----
285

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col1 AND - col2
----

query II rowsort
SELECT - col0 * - col1, col2 FROM tab0
----
1215
47
1827
10
97
99

query I rowsort
SELECT 44 * 17 AS col2 FROM tab2
----
748
748
748

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL SUM( DISTINCT - - 49 ) * + 75 AS col2 FROM tab1 AS cor0
----
3675

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL SUM ( DISTINCT - - 49 ) * + 75 AS col2 FROM tab1 AS cor0
----
3675

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 26 >= - col0 - + col1 + + 32 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 99 * + ( + col2 ) / + 77 * + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT DISTINCT col0 DIV + col1 + + - col2 FROM tab1
----
-42
-67
-93

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT col0 / + col1 + + - col2 FROM tab1
----
-42
-67
-93

query I rowsort
SELECT DISTINCT + col0 + + 70 FROM tab1 WHERE + - col0 NOT BETWEEN - col2 / - ( col0 ) AND ( - - col1 )
----
121
155
161

query I rowsort
SELECT ALL + + col1 + 53 FROM tab0 cor0
----
134
54
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 80 col1, - col2 col2 FROM tab1 AS cor0
----
-80
-59
-80
-68
-80
-96

query I rowsort
SELECT DISTINCT - col1 + + ( + + 55 ) + 15 * + 73 AS col1 FROM tab1 cor0
----
1103
1136
1145

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ( + 70 ) * COUNT( * ) col0 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3991
SELECT ( + 70 ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3992
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 + + - col1 * + - CAST( NULL AS SIGNED ) / - - col0 ) > - 47
----

skipif mysql # not compatible
query III rowsort label-3992
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 + + - col1 * + - CAST ( NULL AS INTEGER ) / - - col0 ) > - 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3993
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 66 * + col0 * - 19 FROM tab2 AS cor0
----
57684
80256
94050

query I rowsort
SELECT ALL ( col1 ) - ( 63 ) * - col1 FROM tab2 AS cor0
----
3264
4288
4928

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT COUNT( * ) * + 51 AS col0, + MAX( + col0 ) * COUNT( * ) AS col1 FROM tab1
----
153
273

skipif mysql # not compatible
query II rowsort label-3996
SELECT COUNT ( * ) * + 51 AS col0, + MAX ( + col0 ) * COUNT ( * ) AS col1 FROM tab1
----
153
273

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT - + 1 + - + 12 + + + col0 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + MIN( DISTINCT - - ( + col2 ) ) - + ( SUM( col1 ) ) * + COUNT( * ) FROM tab0
----
-299

skipif mysql # not compatible
query I rowsort label-3998
SELECT + MIN ( DISTINCT - - ( + col2 ) ) - + ( SUM ( col1 ) ) * + COUNT ( * ) FROM tab0
----
-299

query I rowsort
SELECT ALL 5 FROM tab1 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL + - COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + - COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 92 * 5 * - 60 * - + col2 + 73 FROM tab2 WHERE NOT col2 * 67 IS NULL AND col1 + + + col1 > - col0 - - col2
----
1104073
1600873
634873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, + ( + + col0 ) col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - MIN( - 20 ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4003
SELECT - MIN ( - 20 ) FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4004
SELECT + COUNT( * ) DIV - - 21 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT + COUNT ( * ) / - - 21 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * + 61 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 * - col0 * - + col0 FROM tab1 AS cor0
----
249696
426275
563108

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 84 < + col2
----
51
14
96

query II rowsort
SELECT ALL + col1 * + ( - + 2 ) AS col1, ( - col0 ) * - col1 FROM tab1 AS cor0
----
-10
425
-28
714
-94
4277

query II rowsort
SELECT col0, ( + col0 ) AS col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT - 86 * - COUNT( * ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT - 86 * - COUNT ( * ) FROM tab0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL MIN( ALL - col0 ) * + 62 * + ( - 65 ) + + 82 - + 5 * - COUNT( * ) AS col0 FROM tab1
----
366827

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL MIN ( ALL - col0 ) * + 62 * + ( - 65 ) + + 82 - + 5 * - COUNT ( * ) AS col0 FROM tab1
----
366827

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT - 36 + ( - - COUNT( * ) ) * - - COUNT( + - 77 ) AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - 36 + ( - - COUNT ( * ) ) * - - COUNT ( + - 77 ) AS col2 FROM tab2
----
-27

query I rowsort
SELECT DISTINCT col0 * 59 * + + col1 FROM tab0
----
107793
5723
71685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT DISTINCT + 90 DIV + COUNT( - 87 ) + + 5 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + 90 / + COUNT ( - 87 ) + + 5 FROM tab1
----
35

query III rowsort
SELECT ALL * FROM tab1 WHERE + 53 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE col1 = col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT ALL COUNT( * ) + 25, - 52 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
25
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4017
SELECT ALL COUNT ( * ) + 25, - 52 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
25
-52

query I rowsort
SELECT ALL - - 8 FROM tab0 WHERE NULL >= + ( - - 77 ) + - ( + col0 ) / 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + - COUNT( * ) - + 36 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + - COUNT ( * ) - + 36 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE col1 / + col2 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT 49 - + - SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT 49 - + - SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL + COUNT( * ) * + COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4022
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT + 6 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + 6 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT + ( 99 ) * 42 - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) + CAST( MIN( ALL - - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT + ( 99 ) * 42 - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + CAST ( MIN ( ALL - - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 > col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 32 / + col2 + - col1 + - col0 <> ( + col0 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT ( 95 ) - - + ( - COUNT( * ) ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT ( 95 ) - - + ( - COUNT ( * ) ) FROM tab0
----
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 28 = col2 / col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT MIN( - + col0 ) AS col0 FROM tab0 WHERE ( + 93 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT MIN ( - + col0 ) AS col0 FROM tab0 WHERE ( + 93 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + + col1
----

query I rowsort
SELECT - ( col0 ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + 72 / - + 10 * - col2 * 8 + col2 + + col1 + + + 77 + - ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL = 77
----

skipif mysql # not compatible
query I rowsort label-4033
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL = 77
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 74 / col0 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 92 + - col2 + col2 * - ( - ( + ( - 83 ) ) ) + 8 * col2 - col0 AS col1 FROM tab0 AS cor0
----
-3495
-7529
-755

query I rowsort
SELECT DISTINCT - ( - - 62 ) FROM tab2 AS cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0 WHERE NOT col0 + 25 BETWEEN - - col0 - - - col2 + 51 * - - 34 / - - 78 AND - 71 * col1
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL - MAX( DISTINCT + 20 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-20

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - MAX ( DISTINCT + 20 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-20

query I rowsort
SELECT ALL - 75 * + + col0 FROM tab1
----
-3825
-6375
-6825

query II rowsort
SELECT + 46 + - col0 * + 44 AS col2, + 63 AS col0 FROM tab0
----
-3782
63
-4222
63
-614
63

query I rowsort
SELECT col0 + + ( + 84 ) * col0 FROM tab1
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT MIN( DISTINCT + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4042
SELECT MIN ( DISTINCT + - col0 ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT - col0 * - 64 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 + col2 <= + col2
----

query I rowsort
SELECT ALL + 23 * 96 FROM tab2 AS cor0
----
2208
2208
2208

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col2 > NULL
----

query II rowsort
SELECT DISTINCT 52 * - col2 + 79 AS col0, - col1 AS col0 FROM tab0 AS cor0
----
-2365
-81
-441
-21
-5069
-1

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT 23 + + 2 FROM tab2
----
25
25
25

query I rowsort
SELECT ALL - 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT + ( + 70 ) * + 68 FROM tab2 AS cor0
----
4760
4760
4760

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + col1
----

query I rowsort
SELECT DISTINCT - col1 + - 28 FROM tab1 AS cor0
----
-33
-42
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT + - SUM( ALL + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 1 * col2 + - + col1 AND NULL
----

query II rowsort
SELECT - 37, col1 AS col1 FROM tab1 cor0
----
-37
14
-37
47
-37
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 98 NOT BETWEEN NULL AND 80
----

query I rowsort
SELECT + 50 * + col0 FROM tab0
----
4350
4850
750

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ALL COUNT( * ) * + 21 col2 FROM tab1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4060
SELECT ALL COUNT ( * ) * + 21 col2 FROM tab1
----
63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 2 BETWEEN ( - col2 ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT - ( - CAST( + 19 AS SIGNED ) ) AS col1 FROM tab2
----
19
19
19

skipif mysql # not compatible
query I rowsort label-4062
SELECT - ( - CAST ( + 19 AS INTEGER ) ) AS col1 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL - COUNT( + - col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL - COUNT ( + - col0 ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT col1 * 66, + ( + col2 ) + col1 * 97 AS col1 FROM tab2 AS cor0
----
3366
4970
4422
6557
5082
7509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4065
SELECT - MAX( - CAST( - 49 AS SIGNED ) ), + MIN( ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
-49
-99

skipif mysql # not compatible
query II rowsort label-4065
SELECT - MAX ( - CAST ( - 49 AS INTEGER ) ), + MIN ( ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
-49
-99

query I rowsort
SELECT ALL - 81 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query II rowsort
SELECT ALL - col2, + col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT COUNT( DISTINCT + ( - 5 ) ) * - 28 + COUNT( * ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-4068
SELECT COUNT ( DISTINCT + ( - 5 ) ) * - 28 + COUNT ( * ) FROM tab0
----
-25

query I rowsort
SELECT DISTINCT + + 76 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= - 66
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4070
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL - ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 60 * col2 FROM tab1 AS cor0
----
208860
277440
552960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4072
SELECT - + COUNT( * ) DIV + + 51 - 1 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4072
SELECT - + COUNT ( * ) / + + 51 - 1 AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - + SUM( col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4073
SELECT - + SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 75 col0 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT 41 + + - col1 FROM tab0
----
-40
20
40

query I rowsort
SELECT 56 + 8 AS col2 FROM tab1
----
64
64
64

query I rowsort
SELECT DISTINCT ( col0 ) * - 90 + 74 FROM tab2
----
-4066
-5686
-6676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - + col0 col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + MIN( DISTINCT ( 51 ) ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4079
SELECT + MIN ( DISTINCT ( 51 ) ) FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT ALL 80 DIV + COUNT( ALL 87 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL 80 / + COUNT ( ALL 87 ) FROM tab1
----
26

query I rowsort
SELECT - 26 - - col0 AS col0 FROM tab0
----
-11
61
71

query I rowsort
SELECT col1 - + - col2 * 60 AS col1 FROM tab1
----
3545
4127
5774

query I rowsort
SELECT ALL + + ( ( + col0 ) ) + - - col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT 19 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 * + 72, - col2, col1 + - - col2 ) AND - col2 * - col2 < 22
----

query I rowsort
SELECT DISTINCT - col0 - + 88 FROM tab2 AS cor0
----
-134
-152
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT CAST( - ( - ( - 72 ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-4086
SELECT CAST ( - ( - ( - 72 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT - - COUNT( 11 ) * - + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - - COUNT ( 11 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-9

query II rowsort
SELECT 87, - col0 AS col2 FROM tab0 AS cor0
----
87
-15
87
-87
87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 72 * + 3 + + col2 FROM tab1 AS cor0
----
275
284
312

query II rowsort
SELECT 49 AS col0, col0 + 84 AS col1 FROM tab1 AS cor0
----
49
135
49
169
49
175

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4092
SELECT ALL 68 AS col2 FROM tab0 AS cor0 WHERE + col2 * - + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL 68 AS col2 FROM tab0 AS cor0 WHERE + col2 * - + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT - MAX( ALL + col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4093
SELECT - MAX ( ALL + col1 ) AS col2 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query III rowsort label-4094
SELECT ALL + 6 AS col2, col0 * 27 * - - col0, + + col2 DIV - 85 + + col0 AS col0 FROM tab2
----
9 values hashing to 987f4807c209c9220927b2c81f179ba5

skipif mysql # not compatible
query III rowsort label-4094
SELECT ALL + 6 AS col2, col0 * 27 * - - col0, + + col2 / - 85 + + col0 AS col0 FROM tab2
----
9 values hashing to 987f4807c209c9220927b2c81f179ba5

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL - MIN( + 27 ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - MIN ( + 27 ) AS col2 FROM tab0
----
-27

query I rowsort
SELECT + 67 * + 15 AS col0 FROM tab2
----
1005
1005
1005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT ( COUNT( * ) ) DIV - 21 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT ( COUNT ( * ) ) / - 21 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT SUM( DISTINCT + 79 ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT SUM ( DISTINCT + 79 ) FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4099
SELECT - COUNT( * ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4099
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT DISTINCT + col1 DIV + col2 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT + col1 / + col2 FROM tab2 cor0
----
1
2

query I rowsort
SELECT ALL col1 * - 79 + + 2 AS col1 FROM tab0
----
-1657
-6397
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + COUNT( - 63 ) + + - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT + COUNT ( - 63 ) + + - COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT - + 39 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + 77 * col0 + + - col0 AS col2 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT DISTINCT - + col1 + ( 37 ) + - col1 FROM tab0 AS cor0 WHERE NOT + col2 <> + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - - SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4106
SELECT - - SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 20 col0, - ( - - 67 ) AS col0 FROM tab1
----
-20
-67
-20
-67
-20
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT COUNT( * ) AS col2, + 89 FROM tab1
----
3
89

skipif mysql # not compatible
query II rowsort label-4108
SELECT COUNT ( * ) AS col2, + 89 FROM tab1
----
3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL MAX( DISTINCT 96 ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL MAX ( DISTINCT 96 ) AS col1 FROM tab2
----
96

query I rowsort
SELECT + - col1 - - 17 FROM tab0 cor0
----
-4
-64
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT + 16 + - COUNT( * ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4111
SELECT + 16 + - COUNT ( * ) FROM tab1 AS cor0
----
13

query II rowsort
SELECT DISTINCT - 95 - - col0 + - col2 AS col1, - col1 * - col2 FROM tab0 cor0
----
-127
3807
-18
210
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL MIN( col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4113
SELECT ALL MIN ( col2 ) col1 FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 63 > + col1 - 29
----

query I rowsort
SELECT DISTINCT + + col0 * + - col0 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT - col2 * + CAST( + + col2 AS SIGNED ) FROM tab0 cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4116
SELECT - col2 * + CAST ( + + col2 AS INTEGER ) FROM tab0 cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - - col0 * - - col0 + - col0 * col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT COUNT( * ) + + 69 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-4118
SELECT COUNT ( * ) + + 69 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 73 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - ( 26 ) AS col2, col1 AS col1 FROM tab2 AS cor0
----
-26
51
-26
67
-26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + - ( + MAX( - col0 ) ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4122
SELECT + - ( + MAX ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - COUNT( * ) * + ( - - 38 ) AS col0 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-4123
SELECT - COUNT ( * ) * + ( - - 38 ) AS col0 FROM tab0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT 23 DIV + SUM( DISTINCT + + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT 23 / + SUM ( DISTINCT + + col0 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT + 71 DIV col1 AS col0 FROM tab0
----
0
3
71

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + 71 / col1 AS col0 FROM tab0
----
0
3
71

query I rowsort
SELECT ALL - 52 * - - col2 FROM tab0
----
-2444
-5148
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL - MAX( - 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - MAX ( - 17 ) FROM tab2
----
17

query I rowsort
SELECT ALL 42 * 97 AS col2 FROM tab0
----
4074
4074
4074

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT + ( + col1 ) AS col2, + 60 FROM tab2 AS cor0
----
51
60
67
60
77
60

query I rowsort
SELECT + 46 * + col2 * col0 FROM tab0 AS cor0
----
32430
40020
441738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 53 + + 34 AS col2, 13 col2 FROM tab2 AS cor0
----
87
13
87
13
87
13

query I rowsort
SELECT DISTINCT + + col0 * + col2 * + col0 FROM tab0 AS cor0
----
10575
75690
931491

query II rowsort
SELECT ALL + 7 AS col1, + 8 + - 85 FROM tab1 AS cor0
----
7
-77
7
-77
7
-77

query II rowsort
SELECT ALL 79 AS col1, col1 + + col1 FROM tab0 AS cor0
----
79
162
79
2
79
42

query I rowsort
SELECT + 43 * + 72 + 62 FROM tab1 AS cor0
----
3158
3158
3158

query I rowsort
SELECT 63 AS col2 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query II rowsort
SELECT col2 + - + 90, col1 - - 45 AS col1 FROM tab1
----
-22
92
-31
50
6
59

query I rowsort
SELECT - - 58 FROM tab2 WHERE NULL IS NULL
----
58
58
58

query I rowsort
SELECT ALL col0 * + 69 FROM tab0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL SUM( DISTINCT + col1 ) + + COUNT( - col1 ) AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL SUM ( DISTINCT + col1 ) + + COUNT ( - col1 ) AS col0 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT COUNT( * ) + - ( + 88 ) col0 FROM tab0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4143
SELECT DISTINCT COUNT ( * ) + - ( + 88 ) col0 FROM tab0
----
-85

query I rowsort
SELECT + col2 + + 8 FROM tab0
----
107
18
55

query I rowsort
SELECT DISTINCT + col2 + col2 + col1 * - 30 AS col1 FROM tab1
----
-1274
-228
-32

query I rowsort
SELECT + + ( + - ( 31 ) ) AS col2 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT DISTINCT + col2 * + col0 - 59 DIV col1 AS col0 FROM tab2 AS cor0
----
1057
2560
4350

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + col2 * + col0 - 59 / col1 AS col0 FROM tab2 AS cor0
----
1057
2560
4350

query I rowsort
SELECT ALL - 8 * 18 FROM tab1
----
-144
-144
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-4149
SELECT + ( - col0 ) DIV + ( - 70 ) AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4149
SELECT + ( - col0 ) / + ( - 70 ) AS col2 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT + col0 / - col2 / col0 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + 45 * + COUNT( * ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4151
SELECT + 45 * + COUNT ( * ) FROM tab2 AS cor0
----
135

query II rowsort
SELECT ALL + 52, col1 AS col2 FROM tab1 AS cor0
----
52
14
52
47
52
5

query II rowsort
SELECT DISTINCT - 2 AS col0, - 72 * - col0 AS col0 FROM tab0 AS cor0
----
-2
1080
-2
6264
-2
6984

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 33 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - col2 * + 23 col0 FROM tab0
----
2277
4830
87561

query I rowsort
SELECT ( + - col1 ) * col0 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL COUNT( * ) * + MAX( DISTINCT - - ( - col2 ) ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT - - ( - col2 ) ) FROM tab2
----
-69

query I rowsort
SELECT DISTINCT col0 + - 85 + - col0 * + + col2 * 57 FROM tab1
----
-279106
-285855
-352710

query I rowsort
SELECT ALL - + col0 * - col1 FROM tab1 cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 col0 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab1 WHERE - 60 NOT BETWEEN col2 * - - col0 * - 92 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL + - CAST( 75 AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + - CAST ( 75 AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT 16 + - + MIN( - - col0 ) + 3 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4163
SELECT 16 + - + MIN ( - - col0 ) + 3 FROM tab2
----
-27

query II rowsort
SELECT 45 + col2 - col1 AS col0, 97 FROM tab2 AS cor0
----
17
97
36
97
8
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT + col1 FROM tab1 AS cor0 WHERE NULL < - col2 * - CAST( NULL AS SIGNED ) * - col0 * col2
----

skipif mysql # not compatible
query I rowsort label-4165
SELECT + col1 FROM tab1 AS cor0 WHERE NULL < - col2 * - CAST ( NULL AS INTEGER ) * - col0 * col2
----

query I rowsort
SELECT ALL col0 + - 71 FROM tab0 AS cor0
----
-56
16
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / + + 99 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT ALL 2 DIV 18 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL 2 / 18 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT - - CAST( NULL AS SIGNED ) * - - 71 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT - - CAST ( NULL AS INTEGER ) * - - 71 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT DISTINCT COUNT( 58 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT COUNT ( 58 ) FROM tab0
----
3

query II rowsort
SELECT col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT ALL CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT DISTINCT COUNT( * ) * MIN( + ( col0 ) ) + - 32 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT COUNT ( * ) * MIN ( + ( col0 ) ) + - 32 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - 58 * - 19 * - - 49 FROM tab0
----
53998
53998
53998

query I rowsort
SELECT col0 * + + col0 * col2 AS col2 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT 25 + + 54 FROM tab0
----
79

query I rowsort
SELECT + col0 - - - 76 FROM tab1
----
-25
15
9

query I rowsort
SELECT ALL + 70 - ( 61 ) AS col0 FROM tab1
----
9
9
9

query I rowsort
SELECT - - col0 - 43 * - col2 FROM tab1 AS cor0
----
2622
3015
4179

query I rowsort
SELECT ALL + col0 + + 16 + + 97 - - 79 + - col1 * col2 * - 58 * + col2 - - 52 * + 68 AS col1 FROM tab1 AS cor0
----
1013303
12608843
7487171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT ALL - - 44 FROM tab0 AS cor0 WHERE ( NOT + col0 <= + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - - 44 FROM tab0 AS cor0 WHERE ( NOT + col0 <= + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - - COUNT( * ) * - COUNT( col1 ) col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4182
SELECT - - COUNT ( * ) * - COUNT ( col1 ) col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - + col0 + col1 FROM tab1 WHERE NULL IS NULL
----
-37
-44
-80

query II rowsort
SELECT ALL ( ( + - col2 ) ), ( + ( + ( + - col1 ) ) ) AS col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL - MAX( ALL + 14 ) AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - MAX ( ALL + 14 ) AS col2 FROM tab1
----
-14

query I rowsort
SELECT 70 * + 0 + - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - - 90 AS col1 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT MAX( col2 ) AS col1, - 13 FROM tab1 AS cor0
----
96
-13

skipif mysql # not compatible
query II rowsort label-4188
SELECT MAX ( col2 ) AS col1, - 13 FROM tab1 AS cor0
----
96
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT 86 * + + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT 86 * + + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + 62 + - col2 BETWEEN NULL AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( - + 92 ) AS col0, + ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-92
51
-92
67
-92
77

query I rowsort
SELECT DISTINCT col0 * - - col2 * 22 + col1 * + col0 FROM tab1
----
108426
110755
140413

query I rowsort
SELECT ALL 64 + + 87 FROM tab0
----
151
151
151

query III rowsort
SELECT * FROM tab1 WHERE NOT - 12 <= NULL
----

query I rowsort
SELECT ALL + - col0 + + 59 AS col1 FROM tab1 AS cor0
----
-26
-32
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <> + col1
----

query I rowsort
SELECT DISTINCT + ( + 29 ) FROM tab1 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT col2 + + + col2 + - ( + CAST( NULL AS SIGNED ) ) + col1 * - + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT col2 + + + col2 + - ( + CAST ( NULL AS INTEGER ) ) + col1 * - + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 32 + col2 col2 FROM tab0
----
-2545
-662
67

query I rowsort
SELECT + col1 - 79 * + col1 FROM tab1
----
-1092
-3666
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL MAX( DISTINCT col0 ) * CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4201
SELECT ALL MAX ( DISTINCT col0 ) * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT MIN( ( + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4202
SELECT MIN ( ( + col2 ) ) FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT + col0 DIV 4 AS col2 FROM tab1
----
12
21
22

skipif mysql # not compatible
query I rowsort label-4203
SELECT + col0 / 4 AS col2 FROM tab1
----
12
21
22

query I rowsort
SELECT AVG ( col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4205
SELECT 75 + + COUNT( ALL CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4205
SELECT 75 + + COUNT ( ALL CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - MAX( col1 ) * 69 AS col0 FROM tab1 WHERE NULL IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT - MAX ( col1 ) * 69 AS col0 FROM tab1 WHERE NULL IN ( col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT 80 + - ( COUNT( * ) ) * CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4208
SELECT 80 + - ( COUNT ( * ) ) * CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
89

query I rowsort
SELECT DISTINCT - 64 + col0 AS col1 FROM tab1
----
-13
21
27

query I rowsort
SELECT col0 * - 61 FROM tab2
----
-2806
-3904
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT SUM( ALL - col1 ) FROM tab0 WHERE col2 IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-4211
SELECT SUM ( ALL - col1 ) FROM tab0 WHERE col2 IS NOT NULL
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL 13 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL 13 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL SUM( 71 ) * COUNT( * ) AS col1 FROM tab2
----
639

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL SUM ( 71 ) * COUNT ( * ) AS col1 FROM tab2
----
639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT - 75 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT - 75 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + 15 FROM tab2 WHERE NOT NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT 3 * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT 3 * + COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT 37 + col0 AS col0 FROM tab2 WHERE NOT NULL > + col2 + - 29
----

query I rowsort
SELECT + 56 * - 46 + col0 AS col2 FROM tab2
----
-2501
-2512
-2530

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT DISTINCT + 47 * col2 FROM tab2 AS cor0
----
1081
1880
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL COUNT( DISTINCT - 91 ) + 71 FROM tab0 AS cor0 WHERE 56 NOT BETWEEN col0 AND 69
----
72

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL COUNT ( DISTINCT - 91 ) + 71 FROM tab0 AS cor0 WHERE 56 NOT BETWEEN col0 AND 69
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 95 = 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT col0 > NULL
----

query I rowsort
SELECT DISTINCT + 63 * - col0 FROM tab2
----
-2898
-4032
-4725

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 - - col0 < col2
----

query I rowsort
SELECT - col2 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT + 85 * SUM( col2 ) FROM tab2 cor0
----
10285

skipif mysql # not compatible
query I rowsort label-4227
SELECT + 85 * SUM ( col2 ) FROM tab2 cor0
----
10285

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT - + MAX( + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - + MAX ( + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4229
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + - 17 BETWEEN NULL AND + ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4229
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + - 17 BETWEEN NULL AND + ( col2 )
----

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab0 AS cor0 WHERE NOT - 7 <> 64
----

query I rowsort
SELECT ALL 11 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 40 ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + - COUNT( * ) + 2 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4232
SELECT + - COUNT ( * ) + 2 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - 90 IS NOT NULL
----

query I rowsort
SELECT + col0 * col0 + col0 * 41 FROM tab0 AS cor0
----
11136
13386
840

query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT - 13 + col2 * + col1 FROM tab0
----
197
3794
86

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN - col1 + col2 * + col2 AND NULL
----

query I rowsort
SELECT ALL 28 + + col2 AS col1 FROM tab2
----
51
68
86

query III rowsort
SELECT ALL * FROM tab1 WHERE + 93 / 10 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT DISTINCT COUNT( * ) + + - SUM( DISTINCT CAST( NULL AS SIGNED ) ) / + 66 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT COUNT ( * ) + + - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / + 66 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab2 WHERE NOT 15 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4242
SELECT * FROM tab1 WHERE ( 30 ) <= CAST( + 88 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4242
SELECT * FROM tab1 WHERE ( 30 ) <= CAST ( + 88 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4244
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > - ( + CAST( col0 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4244
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > - ( + CAST ( col0 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + ( 89 ) = ( 6 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( 19 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > - col0 * + col1
----

query I rowsort
SELECT DISTINCT + ( 58 ) AS col0 FROM tab0 AS cor0 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + MAX( ALL - 88 ) AS col0 FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4250
SELECT + MAX ( ALL - 88 ) AS col0 FROM tab0 cor0
----
-88

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 47 AS col2 FROM tab2 AS cor0 WHERE ( + col1 + col0 + 14 * + 53 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT 61 * - + 39 - - COUNT( * ) FROM tab0
----
-2376

skipif mysql # not compatible
query I rowsort label-4253
SELECT 61 * - + 39 - - COUNT ( * ) FROM tab0
----
-2376

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT 56 DIV + col1 - 94 FROM tab1
----
-83
-90
-93

skipif mysql # not compatible
query I rowsort label-4254
SELECT 56 / + col1 - 94 FROM tab1
----
-83
-90
-93

query II rowsort
SELECT - col1 - - col0 AS col0, 72 FROM tab2
----
-13
72
-5
72
8
72

query I rowsort
SELECT ( + + 16 ) * - 15 FROM tab0
----
-240
-240
-240

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4258
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col0, + MAX( + 79 ) AS col0 FROM tab0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-4258
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0, + MAX ( + 79 ) AS col0 FROM tab0
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL + ( COUNT( * ) ) * - 78 FROM tab1 WHERE NOT NULL NOT BETWEEN - 10 / col2 / col2 + - col2 / + col2 AND ( col0 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL + ( COUNT ( * ) ) * - 78 FROM tab1 WHERE NOT NULL NOT BETWEEN - 10 / col2 / col2 + - col2 / + col2 AND ( col0 * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL COUNT( * ) * ( - 12 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL COUNT ( * ) * ( - 12 ) FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + MAX( ALL + + 98 ) * + COUNT( + 12 ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-4261
SELECT + MAX ( ALL + + 98 ) * + COUNT ( + 12 ) FROM tab0
----
294

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 41 ) IN ( + ( 65 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + 64 ) <= 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 40 * - 8 AS col0 FROM tab1 AS cor0
----
-320

query I rowsort
SELECT ALL col2 + - col0 AS col2 FROM tab1 WHERE - 51 IS NOT NULL
----
-23
-26
45

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 88 * col1 NOT BETWEEN NULL AND + col0
----

query II rowsort
SELECT DISTINCT + 29 AS col2, + 4 AS col1 FROM tab2 AS cor0
----
29
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col2 FROM tab1 AS cor0 WHERE NOT col0 + - 66 IS NULL
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + - ( COUNT( + 15 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4269
SELECT + - ( COUNT ( + 15 ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT 9 FROM tab1 AS cor0 WHERE NOT col0 / col1 IN ( 51 )
----
9

query I rowsort
SELECT - AVG ( DISTINCT ( - + col2 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT - + col0, - col1 * + - ( - col0 ) + + - ( 86 ) AS col1 FROM tab1 AS cor0
----
-51
-800
-85
-511
-91
-4363

query I rowsort
SELECT + col1 * 52 * + 11 AS col1 FROM tab0 cor0
----
12012
46332
572

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT ALL + 34 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
34
3

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL + 34 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
34
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + 99 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 2 * + 32 + + col2 + col0 + - 79 + - col2 FROM tab1 AS cor0
----
36
70
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + - col2 )
----
0

query II rowsort
SELECT + col1, ( - - col2 ) AS col0 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT 10 + - - col2 FROM tab0
----
109
20
57

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT + 3 + - 47 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL COUNT( DISTINCT ( - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL COUNT ( DISTINCT ( - col1 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 + - 55 AS col2 FROM tab2
----
-15
-32
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + col0 * + 75 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT CAST( NULL AS SIGNED ) + - 39 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT CAST ( NULL AS INTEGER ) + - 39 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4285
SELECT DISTINCT - COUNT( * ) + COUNT( * ) DIV + 4 AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) / + 4 AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4286
SELECT ALL - 80 + + ( + CAST( NULL AS SIGNED ) ) + - col1, - 65 AS col0 FROM tab2
----
NULL
-65
NULL
-65
NULL
-65

skipif mysql # not compatible
query II rowsort label-4286
SELECT ALL - 80 + + ( + CAST ( NULL AS INTEGER ) ) + - col1, - 65 AS col0 FROM tab2
----
NULL
-65
NULL
-65
NULL
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col0 ) <= - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT DISTINCT ( + + col1 ) + - col1 * - CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT ( + + col1 ) + - col1 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + col0 AS col1, 22 AS col2 FROM tab2 AS cor0
----
46
22
64
22
75
22

query I rowsort
SELECT + 89 * + col2 FROM tab1 cor0
----
5251
6052
8544

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - 7 + 63 AND - - col0 - - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT + MIN( ALL + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + MIN ( ALL + - col0 ) FROM tab2
----
-75

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( + - 33 ) NOT BETWEEN ( NULL ) AND + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4294
SELECT DISTINCT col0 + + - 37 AS col2, + col0 DIV - + 64 FROM tab0
----
-22
0
50
-1
60
-1

skipif mysql # not compatible
query II rowsort label-4294
SELECT DISTINCT col0 + + - 37 AS col2, + col0 / - + 64 FROM tab0
----
-22
0
50
-1
60
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT - col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT - col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - col1 - col1 + - - 55 AS col0 FROM tab1 AS cor0
----
-130
-24
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - 42 + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, col1 * col1 * - 93 * + - 69 * - - col1 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 * + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4299
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 * + + col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE ( col0 * col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT + col2, col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + col2 ) IS NOT NULL
----

query II rowsort
SELECT col2 * 1 * col2, col1 AS col0 FROM tab0
----
100
21
2209
81
9801
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 BETWEEN ( NULL ) AND + 25
----

query I rowsort
SELECT 53 * - col0 FROM tab0
----
-4611
-5141
-795

query I rowsort
SELECT 61 * + col2 * 39 FROM tab2
----
137982
54717
95160

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / - col1 BETWEEN - col2 AND col1 + 37
----

query I rowsort
SELECT ALL + 90 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + 77 * - col0 FROM tab2 AS cor0
----
-3542
-4928
-5775

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - + 25 < ( ( - col2 ) )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col0 FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4312
SELECT DISTINCT + COUNT( - CAST( NULL AS DECIMAL ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4312
SELECT DISTINCT + COUNT ( - CAST ( NULL AS REAL ) ) col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN NULL AND ( - 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT SUM( DISTINCT - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4315
SELECT SUM ( DISTINCT - - col1 ) FROM tab2
----
195

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - col2 * 33 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT COUNT( DISTINCT ( + col2 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4317
SELECT COUNT ( DISTINCT ( + col2 ) ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT + col2 + col2 + + col0 + + col2 DIV - col1 AS col2 FROM tab1 cor0
----
192
226
237

skipif mysql # not compatible
query I rowsort label-4318
SELECT + col2 + col2 + + col0 + + col2 / - col1 AS col2 FROM tab1 cor0
----
192
226
237

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 52 IS NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + 20 AND NULL
----
15
81
47

query I rowsort
SELECT col1 + + - col0 + col2 AS col2 FROM tab2 cor0
----
28
50
53

query I rowsort
SELECT + 99 * + col0 * + col1 + + 31 * + col0 AS col2 FROM tab2 AS cor0
----
233680
489856
499800

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) >= + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4324
SELECT * FROM tab0 AS cor0 WHERE col0 <= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4324
SELECT * FROM tab0 AS cor0 WHERE col0 <= - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 + + ( + + col2 ) * + + col1 AS col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT DISTINCT 21 * - 83 FROM tab1
----
-1743

query I rowsort
SELECT - 44 * - 35 * + 77 / - 12 FROM tab0 WHERE NULL BETWEEN ( - ( 72 ) ) AND + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL 66 + - COUNT( * ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL 66 + - COUNT ( * ) AS col1 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT + MAX( DISTINCT + + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4329
SELECT + MAX ( DISTINCT + + col0 ) AS col0 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) + + col2 col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT - COUNT( * ) + + 21 AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4331
SELECT - COUNT ( * ) + + 21 AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT - 40 + 94 FROM tab2
----
54
54
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4333
SELECT DISTINCT 16 + COUNT( * ) AS col0 FROM tab2 WHERE NOT - CAST( - col2 AS SIGNED ) / + + col0 <> ( NULL )
----
16

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT 16 + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - CAST ( - col2 AS INTEGER ) / + + col0 <> ( NULL )
----
16

query I rowsort
SELECT - col0 + - - ( - 78 ) FROM tab1
----
-129
-163
-169

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / col1 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL MAX( - 61 ) AS col2 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL MAX ( - 61 ) AS col2 FROM tab0 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4337
SELECT DISTINCT - SUM( ALL col2 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-223
3

skipif mysql # not compatible
query II rowsort label-4337
SELECT DISTINCT - SUM ( ALL col2 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-223
3

query I rowsort
SELECT + col2 + - + col0 - + + 76 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + - ( MIN( - - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4339
SELECT + - ( MIN ( - - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 WHERE NOT + + col1 < ( - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + + col1 < ( - - col2 )
----
0

query II rowsort
SELECT ( - col0 ) * + + col2 AS col2, - 62 * + - col1 - - col1 FROM tab1
----
-4896
882
-5015
315
-6188
2961

query I rowsort
SELECT DISTINCT - col2 + - 22 FROM tab2 AS cor0
----
-45
-62
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT + col1 * - 63 FROM tab1 cor0
----
-2961
-315
-882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT ALL - + ( - ( - col2 ) ) * + + 21 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - + ( - ( - col2 ) ) * + + 21 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - + col1 + + ( + 45 ) FROM tab0 AS cor0
----
-396
-6516
44

query I rowsort
SELECT - 95 * + col0 AS col1 FROM tab1 cor0
----
-4845
-8075
-8645

query I rowsort
SELECT DISTINCT - + 71 * - col2 AS col0 FROM tab2 AS cor0
----
1633
2840
4118

query I rowsort
SELECT 73 * 56 FROM tab0 AS cor0
----
4088
4088
4088

query II rowsort
SELECT ALL col2 AS col2, 32 AS col1 FROM tab0 AS cor0
----
10
32
47
32
99
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0 WHERE ( ( NOT ( ( NOT 59 IN ( - col1 + col2 - 68 * + 72 * + col0 ) ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-4351
SELECT CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0 WHERE ( ( NOT ( ( NOT 59 IN ( - col1 + col2 - 68 * + 72 * + col0 ) ) ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + 76 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT ALL - CAST( + col2 AS SIGNED ) * + - col0 + + + col0 FROM tab1 AS cor0
----
4947
5100
6279

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - CAST ( + col2 AS INTEGER ) * + - col0 + + + col0 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT DISTINCT col2 * ( + 55 ) * col0 AS col0 FROM tab0
----
38775
47850
528165

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - COUNT( * ) * + 52 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - COUNT ( * ) * + 52 FROM tab0
----
-156

query II rowsort
SELECT - 18 + - col1 AS col2, col2 AS col1 FROM tab0
----
-19
99
-39
10
-99
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4357
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 WHERE col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + 84 + + 80 FROM tab0
----
164
164
164

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = NULL OR NOT 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 97 * + + col1 + 0 col0 FROM tab2 AS cor0 WHERE ( NULL ) = ( + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4361
SELECT DISTINCT - col0 DIV + col2 col1, 0 AS col0 FROM tab2 AS cor0
----
-1
0
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4361
SELECT DISTINCT - col0 / + col2 col1, 0 AS col0 FROM tab2 AS cor0
----
-1
0
-2
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( 40 )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE + 72 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - ( MIN( DISTINCT + - col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4364
SELECT - ( MIN ( DISTINCT + - col0 ) ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= - 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 64 * + col1
----

query I rowsort
SELECT - 22 * + 56 FROM tab0
----
-1232
-1232
-1232

query II rowsort
SELECT - col2 AS col0, - 8 FROM tab0
----
-10
-8
-47
-8
-99
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT + SUM( DISTINCT + + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + SUM ( DISTINCT + + col1 ) AS col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - ( ( MAX( + 62 ) ) ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - ( ( MAX ( + 62 ) ) ) FROM tab1
----
-62

query I rowsort
SELECT - col2 * - - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, - col0 + + col0 col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4375
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * + CAST( NULL AS SIGNED ) * + col0 NOT BETWEEN ( - 87 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4375
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * + CAST ( NULL AS INTEGER ) * + col0 NOT BETWEEN ( - 87 ) AND NULL
----

query II rowsort
SELECT ALL - - 23, + col2 FROM tab1 AS cor0
----
23
59
23
68
23
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4377
SELECT - MIN( + col2 ) DIV - 53 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4377
SELECT - MIN ( + col2 ) / - 53 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col0 col0, + col2 AS col0 FROM tab0
----
-1215
47
-1827
10
-97
99

query I rowsort
SELECT ALL + col0 * + 84 + col1 * - col0 FROM tab1
----
3367
3570
6715

query I rowsort
SELECT ALL + - ( col0 ) * - col0 * + 90 AS col2 FROM tab1 AS cor0
----
234090
650250
745290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT col2 * - CAST( - 71 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3337
7029
710

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT col2 * - CAST ( - 71 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3337
7029
710

onlyif mysql # DIV for integer division: 
query II rowsort label-4382
SELECT 81 * + + col2 + + 91 - - 75 * - + col1 AS col2, - ( + 67 ) - - col2 DIV 37 AS col0 FROM tab1 AS cor0
----
2074
-66
4495
-66
6817
-65

skipif mysql # not compatible
query II rowsort label-4382
SELECT 81 * + + col2 + + 91 - - 75 * - + col1 AS col2, - ( + 67 ) - - col2 / 37 AS col0 FROM tab1 AS cor0
----
2074
-66
4495
-66
6817
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - 94 * + col1 FROM tab0
----
-1974
-7614
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col0 ) col0 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT ALL col0 DIV 99 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL col0 / 99 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE NULL = ( + - 72 )
----

query I rowsort
SELECT DISTINCT col2 - - + col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT + 62 - + 91 FROM tab2 AS cor0
----
-29

query II rowsort
SELECT DISTINCT + col1 AS col2, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 87 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4392
SELECT CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL - COUNT( * ) * - 56 AS col1 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - COUNT ( * ) * - 56 AS col1 FROM tab0 AS cor0
----
168

query I rowsort
SELECT - 20 * col2 + - col0 * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 77 * + - 67 * + 61 IS NULL
----
-1883
1627
275

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT + MAX( + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4396
SELECT + MAX ( + col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL SUM( ALL 69 ) AS col2 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL SUM ( ALL 69 ) AS col2 FROM tab0
----
207

query I rowsort
SELECT DISTINCT + 44 + - ( - col0 ) + + - col0 AS col2 FROM tab1
----
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + 68 ) * - 60 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL ( MIN( + 19 ) ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL ( MIN ( + 19 ) ) AS col0 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT COUNT( * ) + 88 AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT COUNT ( * ) + 88 AS col2 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 11 ) + + - 55 FROM tab0
----
-44

query I rowsort
SELECT DISTINCT 45 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
45

query I rowsort
SELECT DISTINCT ( - 12 ) + + 96 FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + MAX( - 57 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4406
SELECT + MAX ( - 57 ) FROM tab1 AS cor0
----
-57

query I rowsort
SELECT ALL - col2 - + + col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + MIN( + col1 ) * + ( + 79 ) AS col2 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4408
SELECT + MIN ( + col1 ) * + ( + 79 ) AS col2 FROM tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT DISTINCT + + 10 * MAX( + + col0 ) FROM tab2 AS cor0
----
750

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT + + 10 * MAX ( + + col0 ) FROM tab2 AS cor0
----
750

query I rowsort
SELECT - + col2 - 93 - 32 FROM tab1 AS cor0
----
-184
-193
-221

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - col1 - + 93 IN ( + col0, 53 + - ( - - col0 ) + + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - 90 * + col1 - 22, - col2 * - 79 * col1, col2, + + col0, - col1 * - 59 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - 35 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4413
SELECT - 35 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 - + + col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL + + COUNT( DISTINCT - 76 ) FROM tab1 WHERE + col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + + COUNT ( DISTINCT - 76 ) FROM tab1 WHERE + col1 IS NOT NULL
----
1

query I rowsort
SELECT + 58 + + col2 AS col1 FROM tab2
----
116
81
98

query II rowsort
SELECT col1 + + 55 AS col0, 73 AS col1 FROM tab0
----
136
73
56
73
76
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT + col1 - - 36 + CAST( NULL AS SIGNED ) * - - col2 * - - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT + col1 - - 36 + CAST ( NULL AS INTEGER ) * - - col2 * - - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( + - col1 ) * col2 AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT COUNT( * ) * + 31 AS col1 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4421
SELECT COUNT ( * ) * + 31 AS col1 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT SUM( DISTINCT + col2 ) - + 91 FROM tab2 WHERE NOT col2 * - 89 * 50 / col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT SUM ( DISTINCT + col2 ) - + 91 FROM tab2 WHERE NOT col2 * - 89 * 50 / col1 < NULL
----
NULL

query I rowsort
SELECT - 60 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * + col0 col1 FROM tab1
----
357
595
637

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 < + col0
----
15
81
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT DISTINCT - 54 DIV - col1 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT - 54 / - col1 FROM tab2 cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 31, col2 * + + col0 col0 FROM tab0 AS cor0
----
31
705
31
870
31
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT - MAX( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4429
SELECT - MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT 39 col0, - COUNT( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
39
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4430
SELECT 39 col0, - COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
39
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL MIN( ALL - + 16 ) FROM tab0 AS cor0 WHERE 18 BETWEEN - col2 AND + - col1 / + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL MIN ( ALL - + 16 ) FROM tab0 AS cor0 WHERE 18 BETWEEN - col2 AND + - col1 / + col2
----
NULL

query I rowsort
SELECT - + ( - 98 ) FROM tab1 AS cor0
----
98
98
98

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 * - + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + col2 * - col0 + - col2 * + col1 AS col0 FROM tab0
----
-1090
-4559
-9801

onlyif mysql # DIV for integer division: 
query II rowsort label-4436
SELECT ALL - col0 * + 70, - 37 DIV 31 col1 FROM tab2
----
-3220
-1
-4480
-1
-5250
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4436
SELECT ALL - col0 * + 70, - 37 / 31 col1 FROM tab2
----
-3220
-1
-4480
-1
-5250
-1

query I rowsort
SELECT ALL col2 + + 79 FROM tab2
----
102
119
137

onlyif mysql # DIV for integer division: 
query II rowsort label-4438
SELECT DISTINCT col0 DIV - col1 col0, col1 FROM tab1
----
-1
47
-17
5
-3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4438
SELECT DISTINCT col0 / - col1 col0, col1 FROM tab1
----
-1
47
-17
5
-3
14

query I rowsort
SELECT ALL + ( col2 ) + + col1 AS col0 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT - CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4440
SELECT - CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT + MAX( ALL + + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + MAX ( ALL + + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT + CAST( + col0 AS SIGNED ) + 22 FROM tab0 AS cor0
----
109
119
37

skipif mysql # not compatible
query I rowsort label-4442
SELECT + CAST ( + col0 AS INTEGER ) + 22 FROM tab0 AS cor0
----
109
119
37

query I rowsort
SELECT DISTINCT col1 * - col1 * + col2 AS col0 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT COUNT( * ) + - - COUNT( * ) * - 8 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-4444
SELECT COUNT ( * ) + - - COUNT ( * ) * - 8 FROM tab0
----
-21

query I rowsort
SELECT ALL col0 + - 34 FROM tab2
----
12
30
41

query I rowsort
SELECT DISTINCT - col1 + - 98 FROM tab0 AS cor0 WHERE + 89 * - col1 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 90 * + ( + - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT - - 91 + - + 86 + - 45 AS col1, + col1 * - + 54 AS col1 FROM tab0 AS cor0
----
-40
-1134
-40
-4374
-40
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT + + COUNT( ALL 5 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT + + COUNT ( ALL 5 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 * - + ( - 84 ) AS col0 FROM tab0 AS cor0
----
3948
8316
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + COUNT( + 97 ) - - 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4451
SELECT + COUNT ( + 97 ) - - 31 FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + ( + 35 ) - - COUNT( * ) col2 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4452
SELECT + ( + 35 ) - - COUNT ( * ) col2 FROM tab0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, + col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT 75 - + 7 FROM tab1
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + + col0 + - - col2 col0 FROM tab1
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT + MIN( DISTINCT - col2 ) + + 76 AS col0 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT + MIN ( DISTINCT - col2 ) + + 76 AS col0 FROM tab1
----
-20

query I rowsort
SELECT - - ( ( - - col0 ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 <> NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE + - 90 NOT IN ( + - col2 * col0, col1, - + 69 )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col0 AND - 51
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - 5 * + - 10 + - 85 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 / + - col1 / + 65, col1, - col2 * col2 )
----

query I rowsort
SELECT - 44 AS col0 FROM tab1 cor0
----
-44
-44
-44

query I rowsort
SELECT col1 * + - 61 FROM tab1
----
-2867
-305
-854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 * - col2 col1 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT DISTINCT - col1 + 8 * - ( 43 ) + - + ( + col1 ) FROM tab1
----
-354
-372
-438

query I rowsort
SELECT ALL 93 * - 99 AS col1 FROM tab2
----
-9207
-9207
-9207

query I rowsort
SELECT ALL - col2 + + - 82 AS col2 FROM tab0
----
-129
-181
-92

query I rowsort
SELECT ALL + 48 + - col2 FROM tab1
----
-11
-20
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL 38 + COUNT( * ) AS col2 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 38 + COUNT ( * ) AS col2 FROM tab0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT + 95 * - col1 + - col1 DIV col2 DIV + 34 FROM tab2
----
-4845
-6365
-7315

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 95 * - col1 + - col1 / col2 / + 34 FROM tab2
----
-4845
-6365
-7315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT col2 + - 63 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT col2 + - 63 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 81 ) col1, - 6 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
81
-6
81
-6
81
-6

query II rowsort
SELECT + col1, 4 FROM tab2 AS cor0 WHERE col0 + - 4 * col2 + 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4475
SELECT - + 68 col2, + COUNT( * ) col1 FROM tab2 cor0
----
-68
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4475
SELECT - + 68 col2, + COUNT ( * ) col1 FROM tab2 cor0
----
-68
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4476
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 93 IN ( + col0, ( - - col0 ), + - 96, col1 * - 94 * - + CAST( NULL AS SIGNED ) + col1 * - col2 + + + 23 * - col0 - + col0, - ( col2 ) * 39 + + col1 + - 45 * + CAST( NULL AS SIGNED ) / - col1 + - - col1, - 85 )
----

skipif mysql # not compatible
query III rowsort label-4476
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 93 IN ( + col0, ( - - col0 ), + - 96, col1 * - 94 * - + CAST ( NULL AS INTEGER ) + col1 * - col2 + + + 23 * - col0 - + col0, - ( col2 ) * 39 + + col1 + - 45 * + CAST ( NULL AS INTEGER ) / - col1 + - - col1, - 85 )
----

query I rowsort
SELECT ALL + + col0 + 2 AS col0 FROM tab1 cor0
----
53
87
93

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 35 + 96 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) col0 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-4480
SELECT - col2 DIV - - 35, + col2 FROM tab0
----
-1
47
-2
99
0
10

skipif mysql # not compatible
query II rowsort label-4480
SELECT - col2 / - - 35, + col2 FROM tab0
----
-1
47
-2
99
0
10

query II rowsort
SELECT col1 + col1 AS col2, - 13 AS col0 FROM tab0 AS cor0
----
162
-13
2
-13
42
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL + 69 - + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + 69 - + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 13 * + + col2 + col1 FROM tab0 AS cor0
----
1288
151
692

query I rowsort
SELECT ALL + 39 - - col2 + + col2 AS col2 FROM tab1 AS cor0
----
157
175
231

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT - 17 DIV - col0 + - col1 AS col2 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 17 / - col0 + - col1 AS col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT + - 35 + + - col0 * - col2 FROM tab0 AS cor0
----
670
835
9568

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT DISTINCT - col0 DIV - col2 - - - 62 + col1 AS col1 FROM tab0 AS cor0
----
-33
-61
19

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT - col0 / - col2 - - - 62 + col1 AS col1 FROM tab0 AS cor0
----
-33
-61
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT ALL 17 DIV 73 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL 17 / 73 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 57 * - 57 AS col2 FROM tab0
----
-3249
-3249
-3249

query I rowsort
SELECT ALL - - col2 FROM tab1 WHERE + - col1 > - - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL >= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4492
SELECT - CAST( NULL AS SIGNED ) * + + MAX( col2 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - CAST ( NULL AS INTEGER ) * + + MAX ( col2 ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL - MAX( ALL + - 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - MAX ( ALL + - 75 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT + - 66 AS col1 FROM tab2 cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4495
SELECT - - 67 AS col0, + ( - col1 ) * + - CAST( NULL AS SIGNED ) + - + col2 AS col2 FROM tab1 cor0
----
67
NULL
67
NULL
67
NULL

skipif mysql # not compatible
query II rowsort label-4495
SELECT - - 67 AS col0, + ( - col1 ) * + - CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab1 cor0
----
67
NULL
67
NULL
67
NULL

query I rowsort
SELECT + 56 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT - - 81 * col2 AS col2 FROM tab2 AS cor0
----
1863
3240
4698

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

query II rowsort
SELECT col2, + col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT col2 + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 43 - 13 + - col2 * col1 + 82 IS NULL
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT - ( + + ( + MIN( DISTINCT + - col1 ) ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT - ( + + ( + MIN ( DISTINCT + - col1 ) ) ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT + - col0 + - - ( - 2 ) AS col0 FROM tab0 AS cor0
----
-17
-89
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT - MIN( DISTINCT + col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab1 cor0
----
-5

query II rowsort
SELECT DISTINCT col1 AS col2, 6 AS col2 FROM tab0 AS cor0
----
1
6
21
6
81
6

query I rowsort
SELECT DISTINCT + 76 * - col2 + + col2 * + 85 AS col1 FROM tab2 AS cor0
----
207
360
522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4506
SELECT - COUNT( * ) DIV 84 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4506
SELECT - COUNT ( * ) / 84 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4507
SELECT * FROM tab1 WHERE NULL BETWEEN - CAST( + col1 AS SIGNED ) AND - + 26
----

skipif mysql # not compatible
query III rowsort label-4507
SELECT * FROM tab1 WHERE NULL BETWEEN - CAST ( + col1 AS INTEGER ) AND - + 26
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 72 / col1 <= 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4509
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - col2 * + - CAST( + col0 AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - col2 * + - CAST ( + col0 AS REAL ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT ALL 43 - 22 - - col2 DIV col0 FROM tab1 AS cor0
----
21
21
22

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 43 - 22 - - col2 / col0 FROM tab1 AS cor0
----
21
21
22

query II rowsort
SELECT - col0 + + col0, col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

query II rowsort
SELECT ALL col2 * 6 AS col1, 33 AS col1 FROM tab0 AS cor0
----
282
33
594
33
60
33

query I rowsort
SELECT - col0 + 13 FROM tab2
----
-33
-51
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4514
SELECT * FROM tab1 WHERE col1 * + + CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4514
SELECT * FROM tab1 WHERE col1 * + + CAST ( - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + ( - - 18 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT ALL - col0 DIV + - col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL - col0 / + - col2 FROM tab0
----
0
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT DISTINCT + col1 / col1 + + + CAST( NULL AS SIGNED ) * - + 2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + col1 / col1 + + + CAST ( NULL AS INTEGER ) * - + 2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * 47 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT - MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4520
SELECT - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + 28 * - col2 * + ( + + 4 ) * col0 * - col2 AS col1, + 40 * ( col0 ) AS col0 FROM tab2 AS cor0
----
11468800
2560
2725408
1840
28257600
3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * + col0 * + - 44 * + - col0 - + + col0 + 42 * - 93 col1 FROM tab1 AS cor0
----
21931109
25137119
7892679

query I rowsort
SELECT - col0 + - + 79 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 <= - col2 * + 94 * - - col0
----
-130
-164
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4524
SELECT DISTINCT COUNT( * ) DIV - 59 * 10 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT COUNT ( * ) / - 59 * 10 FROM tab0
----
0

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL ( + ( + + COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL ( + ( + + COUNT ( * ) ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 <= + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT DISTINCT - - 60 - + MAX( DISTINCT - 60 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - - 60 - + MAX ( DISTINCT - 60 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - COUNT( + 29 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - COUNT ( + 29 ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) * - + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab2 cor0
----
-50
-50
-50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL > 3 - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT 25 IS NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 16 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - col1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= col1 * - ( 34 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 31
----

query I rowsort
SELECT DISTINCT - ( - 63 ) FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT COUNT( * ) DIV - ( 6 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT COUNT ( * ) / - ( 6 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + COUNT( * ) * - 72 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-4541
SELECT + COUNT ( * ) * - 72 FROM tab1 AS cor0
----
-216

query II rowsort
SELECT - col0 AS col0, col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL 45 * COUNT( * ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL 45 * COUNT ( * ) FROM tab2 AS cor0
----
135

query I rowsort
SELECT - 47 * 31 + - 12 + + - 84 AS col0 FROM tab0
----
-1553
-1553
-1553

query I rowsort
SELECT ALL - 39 + - 37 - - + 34 * - 58 AS col2 FROM tab2
----
-2048
-2048
-2048

query I rowsort
SELECT DISTINCT col2 + - + col0 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT - - 22 * + col1 + + col0 * + col1 FROM tab0 AS cor0
----
119
2289
2997

query I rowsort
SELECT DISTINCT - 88 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT col1 * + CAST( NULL AS SIGNED ) + - col2 + - - 50 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT col1 * + CAST ( NULL AS INTEGER ) + - col2 + - - 50 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COUNT( * ) * - MIN( ALL 45 ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( * ) * - MIN ( ALL 45 ) FROM tab2 AS cor0
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT + col0 DIV + 43 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4551
SELECT + col0 / + 43 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT MIN( ALL - col0 ) FROM tab1 cor0 WHERE + 43 > - col2 / col0
----
-91

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT MIN ( ALL - col0 ) FROM tab1 cor0 WHERE + 43 > - col2 / col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - + COUNT( * ) * + COUNT( col0 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( col0 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT ALL - 30 * - COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
90
3

skipif mysql # not compatible
query II rowsort label-4554
SELECT ALL - 30 * - COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
90
3

query I rowsort
SELECT - + 2 FROM tab2 AS cor0 WHERE NOT - 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4556
SELECT ALL COUNT( + + col0 ) AS col2, COUNT( * ) AS col0 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4556
SELECT ALL COUNT ( + + col0 ) AS col2, COUNT ( * ) AS col0 FROM tab1 cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT DISTINCT + - 27 DIV - 91 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + - 27 / - 91 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 - - - col1 NOT BETWEEN + col2 + + col0 AND col0 * + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4559
SELECT col1 * CAST( ( - - col2 ) AS SIGNED ), col2 AS col1 FROM tab0
----
210
10
3807
47
99
99

skipif mysql # not compatible
query II rowsort label-4559
SELECT col1 * CAST ( ( - - col2 ) AS INTEGER ), col2 AS col1 FROM tab0
----
210
10
3807
47
99
99

query II rowsort
SELECT ALL col2 AS col0, col2 * col2 AS col2 FROM tab2
----
23
529
40
1600
58
3364

query I rowsort
SELECT + ( + 16 ) FROM tab0
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT + 70 DIV + col1 col1 FROM tab0
----
0
3
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT + 70 / + col1 col1 FROM tab0
----
0
3
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4563
SELECT DISTINCT col1 * + CAST( col1 AS SIGNED ) AS col0, col0 AS col0 FROM tab1
----
196
51
2209
91
25
85

skipif mysql # not compatible
query II rowsort label-4563
SELECT DISTINCT col1 * + CAST ( col1 AS INTEGER ) AS col0, col0 AS col0 FROM tab1
----
196
51
2209
91
25
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 65 col0 FROM tab0
----
1365
5265
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT - - CAST( 44 AS SIGNED ) * + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-18700
-188188
-31416

skipif mysql # not compatible
query I rowsort label-4565
SELECT - - CAST ( 44 AS INTEGER ) * + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-18700
-188188
-31416

query II rowsort
SELECT + col1 AS col2, col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL - 74 AS col1 FROM tab2 cor0
----
-74
-74
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <= - col2
----
0

query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT - ( + - 28 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
28

query I rowsort
SELECT ALL 44 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT col1 + - col2, col1 FROM tab2 AS cor0
----
28
51
37
77
9
67

query I rowsort
SELECT + - 41 + + col2 + col0 + - - col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 81
----

query I rowsort
SELECT + + col0 + - ( + 89 ) FROM tab2 AS cor0
----
-14
-25
-43

query I rowsort
SELECT + col2 * - 11 + + 38 AS col0 FROM tab0 AS cor0 WHERE + col2 + - 58 IS NULL
----

query I rowsort
SELECT + 38 * - col1 FROM tab1 AS cor0
----
-1786
-190
-532

query I rowsort
SELECT ALL 45 AS col1 FROM tab0 AS cor0 WHERE - 51 IS NOT NULL
----
45
45
45

query I rowsort
SELECT ALL + 52 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 * + col0 IS NULL
----

query I rowsort
SELECT - col2 * + 58 AS col0 FROM tab1 AS cor0
----
-3422
-3944
-5568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4583
SELECT + 62 DIV - 86 * - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT + 62 / - 86 * - COUNT ( * ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE - ( + col1 ) <= + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND - 19 + col1 * + + col0
----

query I rowsort
SELECT DISTINCT col0 + - 77 FROM tab0
----
-62
10
20

query I rowsort
SELECT + 9 - + 17 FROM tab0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT ALL + CAST( NULL AS SIGNED ) + + + col0 + + col1 * - 84 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + CAST ( NULL AS INTEGER ) + + + col0 + + col1 * - 84 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL + 4 - COUNT( + - ( + 8 ) ) - - COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + 4 - COUNT ( + - ( + 8 ) ) - - COUNT ( * ) AS col1 FROM tab2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT DISTINCT + col0 DIV - col0 - + 10 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT + col0 / - col0 - + 10 FROM tab2
----
-11

query I rowsort
SELECT ALL col0 + + + 62 FROM tab2 AS cor0
----
108
126
137

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4592
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 NOT BETWEEN NULL AND - - CAST( NULL AS SIGNED ) / - - 54 * - col2 * - col0
----

skipif mysql # not compatible
query III rowsort label-4592
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 NOT BETWEEN NULL AND - - CAST ( NULL AS INTEGER ) / - - 54 * - col2 * - col0
----

query I rowsort
SELECT DISTINCT - - ( + + col2 ) * col0 - + - col1 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 92 - - col2 + + 54 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 92 - - col2 + + 54 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 84 FROM tab1 WHERE NOT NULL IS NOT NULL
----
84

query I rowsort
SELECT 21 * + 20 + + col2 AS col0 FROM tab2
----
443
460
478

query I rowsort
SELECT DISTINCT 15 * - - col0 FROM tab1
----
1275
1365
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT + 6 * - + COUNT( * ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT + 6 * - + COUNT ( * ) AS col2 FROM tab1
----
-18

query I rowsort
SELECT - - col0 * + - 26 FROM tab1 AS cor0
----
-1326
-2210
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT - + MAX( ALL - 64 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT - + MAX ( ALL - 64 ) FROM tab2 AS cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ALL 15 * + col0 DIV + col0 FROM tab1
----
15
15
15

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL 15 * + col0 / + col0 FROM tab1
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4602
SELECT * FROM tab1 WHERE NOT - 99 + + + col2 + - col1 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4602
SELECT * FROM tab1 WHERE NOT - 99 + + + col2 + - col1 = + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col0 AND + 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT 43 DIV 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT 43 / 58 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 99 AS col0 FROM tab0 AS cor0
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 10 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT MAX( ALL - 32 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32

skipif mysql # not compatible
query I rowsort label-4607
SELECT MAX ( ALL - 32 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32

query I rowsort
SELECT + - 40 * + 27 + + col1 FROM tab1 AS cor0
----
-1033
-1066
-1075

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + 53 FROM tab2
----
104
120
130

query I rowsort
SELECT + 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT MAX( - 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4612
SELECT MAX ( - 3 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL + SUM( + + ( + col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + SUM ( + + ( + col0 ) ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL + 69 + col1 * + col2 FROM tab1 AS cor0
----
1413
3265
364

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT SUM( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4615
SELECT SUM ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT + CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4616
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4617
SELECT * FROM tab2 AS cor0 WHERE + col1 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4617
SELECT * FROM tab2 AS cor0 WHERE + col1 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 3 AS col0, 56 FROM tab2 AS cor0
----
3
56

query I rowsort
SELECT - 10 + - col0 + + col2 * - 61 AS col0 FROM tab0 AS cor0
----
-2892
-6146
-707

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) BETWEEN - col0 AND - 75
----

query I rowsort
SELECT ALL - - 65 - col0 + col0 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4622
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - CAST( NULL AS DECIMAL ), col1 )
----

skipif mysql # not compatible
query III rowsort label-4622
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - CAST ( NULL AS REAL ), col1 )
----

query I rowsort
SELECT - col1 * + 99 FROM tab2 AS cor0
----
-5049
-6633
-7623

query II rowsort
SELECT - col0 AS col1, - col2 * - col1 AS col2 FROM tab1 cor0
----
-51
1344
-85
295
-91
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL 2 * + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4628
SELECT * FROM tab2 WHERE NOT - - col1 <> - CAST( - + 30 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4628
SELECT * FROM tab2 WHERE NOT - - col1 <> - CAST ( - + 30 AS INTEGER )
----

query I rowsort
SELECT ALL 25 * - ( 17 ) AS col2 FROM tab2
----
-425
-425
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + 65 * COUNT( * ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4630
SELECT + 65 * COUNT ( * ) FROM tab0
----
195

query III rowsort
SELECT * FROM tab1 WHERE NOT 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 43 AS col1 FROM tab1
----
2021
215
602

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 29 / col2 * 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 64 + 36 AS col0 FROM tab1
----
-124
-87
-96

query II rowsort
SELECT - col2 AS col0, 37 AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-23
37
-40
37
-58
37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4636
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + + col1 AS col0 FROM tab0 WHERE NOT - ( + CAST( + 15 AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + + col1 AS col0 FROM tab0 WHERE NOT - ( + CAST ( + 15 AS REAL ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4637
SELECT + col2 DIV + - 39 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4637
SELECT + col2 / + - 39 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, 29 FROM tab1 AS cor0
----
-14
29
-47
29
-5
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT col2 DIV ( col1 ) col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4640
SELECT col2 / ( col1 ) col1 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT 83 + - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-4641
SELECT 83 + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 29 + + col2 AS col0, col1 col0 FROM tab2
----
-6
51
11
77
29
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 62 col2 FROM tab2 AS cor0
----
-15
-5
11

query II rowsort
SELECT ALL - 1 + + 11 AS col0, + 23 * - + col0 * - col2 * + col2 + - - col0 AS col2 FROM tab0 cor0
----
10
200187
10
21866128
10
762120

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT - + COUNT( * ) * - SUM( ALL - col1 ) AS col0 FROM tab2 cor0
----
-585

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT - + COUNT ( * ) * - SUM ( ALL - col1 ) AS col0 FROM tab2 cor0
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL + COUNT( * ) + + 18 + 47 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + COUNT ( * ) + + 18 + 47 FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL - col0 * + col2 * col0 - - - 65 + + col0 FROM tab1 cor0
----
-249710
-426255
-563082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * col1 + + col2 col0 FROM tab0 AS cor0 WHERE NOT col1 >= + col0
----
1417
166

query I rowsort
SELECT 41 * + + col2 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT DISTINCT - 88 * + + col1 AS col0 FROM tab0 AS cor0
----
-1848
-7128
-88

query I rowsort
SELECT DISTINCT col0 + + 23 AS col1 FROM tab2
----
69
87
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4652
SELECT 61 DIV - ( col1 ), 54 AS col1 FROM tab0
----
-2
54
-61
54
0
54

skipif mysql # not compatible
query II rowsort label-4652
SELECT 61 / - ( col1 ), 54 AS col1 FROM tab0
----
-2
54
-61
54
0
54

query I rowsort
SELECT col0 * - 14 AS col1 FROM tab2
----
-1050
-644
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT - col0 DIV - - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4654
SELECT - col0 / - - col1 FROM tab0
----
-4
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 9 - + ( + col2 ) col0, - 81 FROM tab2
----
-14
-81
-31
-81
-49
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT - col2 - col0 FROM tab1 cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT + MAX( DISTINCT + 65 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4658
SELECT + MAX ( DISTINCT + 65 ) FROM tab1
----
65

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / - 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + COUNT( ALL 52 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4660
SELECT + COUNT ( ALL 52 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL + ( col0 ) * col1 - - 77 AS col0 FROM tab1
----
4354
502
791

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 - col1 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT COUNT( * ) FROM tab0 WHERE NOT ( - 22 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4663
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( - 22 ) IS NULL
----
3

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + col2 NOT BETWEEN + col0 AND NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT + MIN( ALL - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT + MIN ( ALL - col2 ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE 92 BETWEEN - 69 * + col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL SUM( 39 ) FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL SUM ( 39 ) FROM tab0
----
117

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL 48 + COUNT( * ) col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4669
SELECT ALL 48 + COUNT ( * ) col1 FROM tab1
----
51

query I rowsort
SELECT DISTINCT + 46 FROM tab1 WHERE NOT col0 + col0 BETWEEN NULL AND + col1 / - 22
----
46

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 17 AND NULL
----

query I rowsort
SELECT DISTINCT ( + 59 ) FROM tab1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4673
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - CAST( col1 AS DECIMAL ) + - col1 * - 6 )
----

skipif mysql # not compatible
query III rowsort label-4673
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - CAST ( col1 AS REAL ) + - col1 * - 6 )
----

query I rowsort
SELECT + AVG ( ALL + col2 ) AS col2 FROM tab1 WHERE - col1 > + col0
----
NULL

query I rowsort
SELECT - 62 + - col0 AS col0 FROM tab0
----
-149
-159
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4676
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 79 AND - col2 * - 78 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4676
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 79 AND - col2 * - 78 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 60 FROM tab2 WHERE NOT col2 * col2 BETWEEN NULL AND + ( - col0 )
----
-60
-60
-60

query I rowsort
SELECT ALL col1 FROM tab2 WHERE 72 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - 52 * + ( - COUNT( * ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 52 * + ( - COUNT ( * ) ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT + 23 + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + 23 + COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT ALL col1 * col2 FROM tab0 AS cor0 WHERE NOT 45 * + 30 IS NULL
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT + 42 DIV + col2 + - 27 FROM tab2 AS cor0
----
-26
-26
-27

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 42 / + col2 + - 27 FROM tab2 AS cor0
----
-26
-26
-27

query I rowsort
SELECT + 74 + + ( - 40 ) FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT - 41 + col2 * + 41 FROM tab0 AS cor0
----
1886
369
4018

query I rowsort
SELECT + col0 * 24 AS col1 FROM tab0 AS cor0
----
2088
2328
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT 93 + MAX( ALL 93 + + ( 57 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
243

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT 93 + MAX ( ALL 93 + + ( 57 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
243

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT ( + 93 * 22 ) < 9
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE - 79 = + 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4689
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + CAST( 42 AS SIGNED ) * + 80 NOT IN ( col1 / + col1 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4689
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + CAST ( 42 AS INTEGER ) * + 80 NOT IN ( col1 / + col1 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - COUNT( * ) - 72 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4690
SELECT - COUNT ( * ) - 72 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT + + COUNT( * ) - MAX( DISTINCT - col0 + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4691
SELECT + + COUNT ( * ) - MAX ( DISTINCT - col0 + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE 56 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - + 51 - COUNT( * ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - + 51 - COUNT ( * ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL col2 - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col1 + 45 AS col1 FROM tab1 AS cor0
----
50
59
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( 5 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4696
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( 5 ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT - ( MAX( 43 ) ) * 63 AS col0 FROM tab2 AS cor0
----
-2709

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - ( MAX ( 43 ) ) * 63 AS col0 FROM tab2 AS cor0
----
-2709

query I rowsort
SELECT DISTINCT + ( 27 ) - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 * + col0 + ( col1 ) ) > ( + 87 * - col1 + + 6 )
----
-32
-41
-69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col2 IN ( + 76 )
----

query I rowsort
SELECT ALL + col2 * ( - col1 ) AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4701
SELECT ALL CAST( NULL AS DECIMAL ) * + 34 * col2 + + 43 * - 29 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL CAST ( NULL AS REAL ) * + 34 * col2 + + 43 * - 29 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 78 AS col1 FROM tab0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT COUNT( * ) * + + MAX( DISTINCT - col0 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4703
SELECT COUNT ( * ) * + + MAX ( DISTINCT - col0 ) AS col2 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT 78 * + COUNT( - col1 ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-4704
SELECT 78 * + COUNT ( - col1 ) FROM tab2
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( 13 ) col1 FROM tab0
----
1287
130
611

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 5 * col1 NOT IN ( + col1 )
----

query I rowsort
SELECT ( + - 55 ) * col0 FROM tab0
----
-4785
-5335
-825

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT DISTINCT + + col0 DIV + + col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + + col0 / + + col0 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + 41 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 / - col0 )
----

query I rowsort
SELECT - ( + 43 ) AS col1 FROM tab2
----
-43
-43
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT - 18 DIV - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4711
SELECT - 18 / - COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 + + 13 - col0 >= - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT SUM( 82 ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT SUM ( 82 ) FROM tab1 AS cor0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT - - CAST( NULL AS SIGNED ) * ( col2 - - col0 ) FROM tab1 cor0 WHERE NOT NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4714
SELECT - - CAST ( NULL AS INTEGER ) * ( col2 - - col0 ) FROM tab1 cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 + 80 + + col0 * 83 = - 13 + - col1
----
3

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 + 80 + + col0 * 83 = - 13 + - col1
----
3

query I rowsort
SELECT DISTINCT - col0 * - 23 FROM tab2 AS cor0
----
1058
1472
1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL + CAST( - 58 AS SIGNED ) AS col2 FROM tab1 cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + CAST ( - 58 AS INTEGER ) AS col2 FROM tab1 cor0
----
-58
-58
-58

query I rowsort
SELECT + ( + 56 ) * col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
1288
2240
3248

query I rowsort
SELECT DISTINCT + col0 + + - 86 FROM tab2
----
-11
-22
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 40 col0 FROM tab0 WHERE col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT col0 + - ( - CAST( - - 8 AS SIGNED ) ) AS col1 FROM tab2
----
54
72
83

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT col0 + - ( - CAST ( - - 8 AS INTEGER ) ) AS col1 FROM tab2
----
54
72
83

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT ( NOT ( + 47 + + col2 <> + col1 ) )
----
51
85
91

query I rowsort
SELECT ( - 45 ) FROM tab0 cor0 WHERE ( 66 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT - - MIN( DISTINCT - + col1 ) * 61 * 50 AS col0 FROM tab2 cor0
----
-234850

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - - MIN ( DISTINCT - + col1 ) * 61 * 50 AS col0 FROM tab2 cor0
----
-234850

query II rowsort
SELECT col2 * - col0 + + col0, col0 AS col0 FROM tab0
----
-690
15
-783
87
-9506
97

query I rowsort
SELECT - 23 + - col0 FROM tab1
----
-108
-114
-74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 47 IS NOT NULL ) OR NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT col2 + + + ( - ( - + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT col2 + + + ( - ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - ( + col1 ) * + + col2 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 95 + col2 FROM tab1
----
5664
6528
9216

query I rowsort
SELECT DISTINCT + col2 + - 57 AS col1 FROM tab1
----
11
2
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL + 47 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + 47 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab2 AS cor0 WHERE col1 * - 60 <= + col1
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE + col2 >= - 42
----
46
64
75

query I rowsort
SELECT ALL + col2 - 45 FROM tab1 cor0
----
14
23
51

query I rowsort
SELECT + 90 * + col0 FROM tab1
----
4590
7650
8190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT DISTINCT + MIN( 67 ) DIV + 5 AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + MIN ( 67 ) / + 5 AS col2 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT 56 * - COUNT( * ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT 56 * - COUNT ( * ) FROM tab0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT 68 DIV col1 DIV + - 55 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT 68 / col1 / + - 55 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 * col2 col2 FROM tab1
----
1947
2244
3168

query I rowsort
SELECT + col0 + ( - 80 ) AS col2 FROM tab1 WHERE NOT ( ( NULL ) <= + ( + 52 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 BETWEEN NULL AND ( col2 + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 26 + col1, - 40 * col2 )
----

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab0 AS cor0 WHERE col0 + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4746
SELECT + 17, col2 + - - col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
17
10
17
198
17
47

skipif mysql # not compatible
query II rowsort label-4746
SELECT + 17, col2 + - - col2 / + col1 AS col0 FROM tab0 AS cor0
----
17
10
17
198
17
47

query I rowsort
SELECT ALL col0 + - col2 FROM tab0 WHERE NOT NULL IN ( - ( - col2 ) * + + col0 )
----

query I rowsort
SELECT ALL ( ( + ( - col1 ) ) ) AS col0 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col2 > + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4750
SELECT DISTINCT 45 DIV - 11 AS col0, + COUNT( * ) AS col1 FROM tab1 cor0
----
-4
3

skipif mysql # not compatible
query II rowsort label-4750
SELECT DISTINCT 45 / - 11 AS col0, + COUNT ( * ) AS col1 FROM tab1 cor0
----
-4
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT + 22 DIV col1 * + 95 AS col0 FROM tab0 AS cor0
----
0
2090
95

skipif mysql # not compatible
query I rowsort label-4751
SELECT + 22 / col1 * + 95 AS col0 FROM tab0 AS cor0
----
0
2090
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ALL col2 DIV + col1 * - + col1 + - col2 * + - col1 AS col0 FROM tab0 AS cor0
----
0
210
3807

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL col2 / + col1 * - + col1 + - col2 * + - col1 AS col0 FROM tab0 AS cor0
----
0
210
3807

query I rowsort
SELECT DISTINCT - col2 * + col1 + col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT + 49 AS col2, + COUNT( * ) FROM tab0
----
49
3

skipif mysql # not compatible
query II rowsort label-4754
SELECT + 49 AS col2, + COUNT ( * ) FROM tab0
----
49
3

query I rowsort
SELECT DISTINCT - 12 FROM tab1 WHERE NOT - 75 - 35 + + + 19 * 70 IS NULL
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT DISTINCT COUNT( * ) AS col0, + MAX( DISTINCT + col2 ) AS col0 FROM tab0
----
3
99

skipif mysql # not compatible
query II rowsort label-4756
SELECT DISTINCT COUNT ( * ) AS col0, + MAX ( DISTINCT + col2 ) AS col0 FROM tab0
----
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 * + col2 + + 84 col2 FROM tab2
----
1993
3404
4898

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - COUNT( * ) + + 86 * + MAX( DISTINCT - - col2 ) AS col0 FROM tab1
----
8253

skipif mysql # not compatible
query I rowsort label-4758
SELECT - COUNT ( * ) + + 86 * + MAX ( DISTINCT - - col2 ) AS col0 FROM tab1
----
8253

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + MIN( - col2 ) + ( - MIN( + col1 ) ) AS col1 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-4759
SELECT + MIN ( - col2 ) + ( - MIN ( + col1 ) ) AS col1 FROM tab0
----
-100

query I rowsort
SELECT + + col0 + col2 + + ( + 49 ) * col2 * - col0 - - col2 FROM tab0 AS cor0
----
-34436
-42523
-470252

query I rowsort
SELECT - col0 * - col2 * + 14 FROM tab1 AS cor0
----
68544
70210
86632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 45 * + col1 - - col0 AS col2, col1 * + col2 col2 FROM tab1 AS cor0
----
-140
295
-2024
3196
-579
1344

query I rowsort
SELECT - 61 * - + 29 AS col2 FROM tab0 AS cor0
----
1769
1769
1769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT DISTINCT - - CAST( 38 AS SIGNED ) * SUM( ALL + + 5 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1710

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - - CAST ( 38 AS INTEGER ) * SUM ( ALL + + 5 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4767
SELECT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL - 64 + + + CAST( + 32 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
27
36
64

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - 64 + + + CAST ( + 32 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
27
36
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT + + 39 + + COUNT( * ) col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT DISTINCT + + 39 + + COUNT ( * ) col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT - 31 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 58 col0 FROM tab2 AS cor0
----
-7
19
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * - + 33 col2 FROM tab2
----
162624
165825
77418

query I rowsort
SELECT + col2 * + - 13 * + col2 AS col1 FROM tab1
----
-119808
-45253
-60112

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - COUNT( * ) * - + COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4775
SELECT - COUNT ( * ) * - + COUNT ( * ) col0 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT 37 DIV + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT 37 / + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 72 * 47 FROM tab0
----
3384
3384
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL COUNT( - + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL COUNT ( - + col0 ) FROM tab2
----
3

query I rowsort
SELECT - col2 * - 52 FROM tab2
----
1196
2080
3016

query I rowsort
SELECT ALL + col1 * col0 * - col1 / col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 99 * - - 39 IS NOT NULL
----

query I rowsort
SELECT + 70 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT DISTINCT + ( - col0 ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT + ( - col0 ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT ALL + 57 AS col2, + COUNT( * ) AS col2 FROM tab1
----
57
3

skipif mysql # not compatible
query II rowsort label-4783
SELECT ALL + 57 AS col2, + COUNT ( * ) AS col2 FROM tab1
----
57
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( - 90 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 17 * - + col2 * - col0 + - col1 * + col0 * ( 93 ) AS col1 FROM tab1
----
-292565
16830
45730

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT + col1 + + + 72 DIV - ( + - col0 ) AS col2 FROM tab0 AS cor0
----
1
21
85

skipif mysql # not compatible
query I rowsort label-4786
SELECT + col1 + + + 72 / - ( + - col0 ) AS col2 FROM tab0 AS cor0
----
1
21
85

query I rowsort
SELECT ALL + + 14 AS col0 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT + ( 74 ) FROM tab1 AS cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 94 * - 62 col1 FROM tab0
----
-5747
-5807
-5827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT + 10 FROM tab1 WHERE - + ( + 14 ) + + + CAST( NULL AS SIGNED ) IS NULL
----
10
10
10

skipif mysql # not compatible
query I rowsort label-4790
SELECT + 10 FROM tab1 WHERE - + ( + 14 ) + + + CAST ( NULL AS INTEGER ) IS NULL
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 74 ), + col2 col1 FROM tab0 AS cor0 WHERE col2 + 52 IS NOT NULL
----
-74
10
-74
47
-74
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT - 0 * MAX( + 69 ) FROM tab2 AS cor0 WHERE NOT + 34 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - 0 * MAX ( + 69 ) FROM tab2 AS cor0 WHERE NOT + 34 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / - + 71 + - ( + - col0 ) / - col2 + col2 IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT + ( - col0 ) * 82 * - + 65 + - col2 + + 31 * - + 85 <= - col1 * + col0 - + - 34
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL MIN( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL MIN ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * + col2 col1 FROM tab1 AS cor0
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - COUNT( * ) * + COUNT( ALL + 73 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4798
SELECT - COUNT ( * ) * + COUNT ( ALL + 73 ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL col0 * + - col2 * - - col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - 87 + 87 * + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-87

skipif mysql # not compatible
query I rowsort label-4801
SELECT - 87 + 87 * + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-87

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 52 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT + MIN( ALL - col0 ) * + + 24 FROM tab2 AS cor0
----
-1800

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + MIN ( ALL - col0 ) * + + 24 FROM tab2 AS cor0
----
-1800

query I rowsort
SELECT DISTINCT + - 12 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

query III rowsort
SELECT * FROM tab2 WHERE 20 * + col2 * + + col2 IS NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
23
40
58

query I rowsort
SELECT + - col2 * + col2 * + + col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT - - col1 * - col2 * - 93 + + - 97 FROM tab2 AS cor0
----
108992
286343
361301

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - 37 AS col2, col0 * + - 6 AS col2 FROM tab0 AS cor0
----
-37
-522
-37
-582
-37
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) > + col2
----

query I rowsort
SELECT - col0 + + col1 * - + col1 FROM tab0 AS cor0
----
-528
-6576
-98

query I rowsort
SELECT - 69 + + col0 FROM tab1
----
-18
16
22

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NULL AND - 35 * + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + + col1 col1 FROM tab0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 + - - col2 + - col1 col0 FROM tab1
----
-12
-40
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT ALL - 62 + - COUNT( DISTINCT - col0 ) DIV COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - 62 + - COUNT ( DISTINCT - col0 ) / COUNT ( * ) FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4818
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> ( ( 89 ) * col0 + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT COUNT( col0 ) FROM tab0 AS cor0 WHERE col2 + - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT COUNT ( col0 ) FROM tab0 AS cor0 WHERE col2 + - + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT - COUNT( * ) - + COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT - COUNT ( * ) - + COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col0 + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 95 * col1 - col1 AS col0 FROM tab2 AS cor0
----
4794
6298
7238

query I rowsort
SELECT ALL + ( + - col1 ) - - 44 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 60 AS col2, - 53 FROM tab2 AS cor0
----
60
-53
60
-53
60
-53

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4827
SELECT ALL - COUNT( * ) DIV MIN( ALL - col1 ) * COUNT( * ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4827
SELECT ALL - COUNT ( * ) / MIN ( ALL - col1 ) * COUNT ( * ) col2 FROM tab0
----
0

query I rowsort
SELECT + col0 * + 19 FROM tab0 cor0
----
1653
1843
285

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4829
SELECT DISTINCT - + col1 + + + CAST( NULL AS DECIMAL ) * - - col1 - - CAST( 78 AS SIGNED ) * col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT - + col1 + + + CAST ( NULL AS REAL ) * - - col1 - - CAST ( 78 AS INTEGER ) * col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4830
SELECT + - ( - 98 ) DIV + SUM( + + 5 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4830
SELECT + - ( - 98 ) / + SUM ( + + 5 ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) * - 84 AS col1 FROM tab1 cor0
----
1176
3948
420

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) * - 84 AS col1 FROM tab1 cor0
----
1176
3948
420

query I rowsort
SELECT ALL + + ( + + 42 ) FROM tab0 cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT - CAST( + - 26 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 + 39 * col1, ( ( + + 98 ) ) )
----

skipif mysql # not compatible
query I rowsort label-4833
SELECT - CAST ( + - 26 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 + 39 * col1, ( ( + + 98 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 91 + - 68 > - + col1 + + - 80
----

query I rowsort
SELECT DISTINCT ( + - 42 ) FROM tab2
----
-42

query I rowsort
SELECT col2 * + 30 FROM tab2
----
1200
1740
690

query I rowsort
SELECT col0 * - 52 AS col2 FROM tab0
----
-4524
-5044
-780

query I rowsort
SELECT + + 20 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT + - 0 * 44 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 57 * - col2 * - 98 * - col0 * - + 59
----

query I rowsort
SELECT - 47 + 24 FROM tab2
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL - COUNT( * ) + + 79 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
79

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - COUNT ( * ) + + 79 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 * - - col1 * + col1 - - col2 AS col0, - col1 FROM tab0 cor0
----
198
-1
308414
-81
4420
-21

query I rowsort
SELECT ALL + col1 * 86 * - + col0 FROM tab2 AS cor0
----
-201756
-423808
-432150

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + 40 * COUNT( * ) * - - 3 * - 66 * + ( - + 3 ) FROM tab0 AS cor0
----
71280

skipif mysql # not compatible
query I rowsort label-4845
SELECT + 40 * COUNT ( * ) * - - 3 * - 66 * + ( - + 3 ) FROM tab0 AS cor0
----
71280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - COUNT( * ) * 72 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-4847
SELECT - COUNT ( * ) * 72 FROM tab0
----
-216

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - 71 + + + col1 + - 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT 0 - - - ( + COUNT( ALL - + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4849
SELECT 0 - - - ( + COUNT ( ALL - + col2 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - COUNT( * ) * + 94 - + + SUM( ALL 53 ) AS col0 FROM tab2
----
-441

skipif mysql # not compatible
query I rowsort label-4850
SELECT - COUNT ( * ) * + 94 - + + SUM ( ALL 53 ) AS col0 FROM tab2
----
-441

onlyif mysql # aggregate syntax: 
query II rowsort label-4851
SELECT DISTINCT COUNT( * ) + - ( 72 ) AS col0, + 11 + - SUM( ALL - col0 ) AS col0 FROM tab1
----
-69
238

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT COUNT ( * ) + - ( 72 ) AS col0, + 11 + - SUM ( ALL - col0 ) AS col0 FROM tab1
----
-69
238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 * + ( - + col2 ) - - + col0 col0 FROM tab0
----
3446
7324
817

query I rowsort
SELECT ALL - - col0 * + col0 + + + col0 - col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - col1 * col0 - col0 + col1 FROM tab2 AS cor0
----
-2341
-4915
-5033

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL - COUNT( * ) * - 55 AS col0 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - COUNT ( * ) * - 55 AS col0 FROM tab0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4856
SELECT DISTINCT + - 69 DIV - + COUNT( * ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + - 69 / - + COUNT ( * ) FROM tab0 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT COUNT( DISTINCT ( col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4857
SELECT COUNT ( DISTINCT ( col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - 77 * - col0 col2 FROM tab2 AS cor0
----
-51
3542
-67
5775
-77
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT DISTINCT - - 48 DIV + 78 + - + col0 AS col1 FROM tab1 AS cor0 WHERE + 90 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT - - 48 / + 78 + - + col0 AS col1 FROM tab1 AS cor0 WHERE + 90 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + - col1 ) AS col1 FROM tab1 WHERE NOT + col0 + + + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT - + 46 * col0 + 42 * ( col0 ) - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT - + 46 * col0 + 42 * ( col0 ) - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 - + 45 col0 FROM tab1 AS cor0
----
-68
-71
0

query II rowsort
SELECT ALL ( + col0 ) AS col1, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col0 / - col0 AND NULL
----

query I rowsort
SELECT ALL + 96 + + 28 FROM tab0
----
124
124
124

query I rowsort
SELECT DISTINCT - col1 + - 77 * + col2 AS col0 FROM tab1 AS cor0
----
-4548
-5283
-7406

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT ALL 55 DIV col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 <= + 84
----
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL 55 / col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 <= + 84
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 98 col0 FROM tab0 cor0
----
-17
-77
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 52 - - 67 FROM tab2 AS cor0
----
119
119
119

query I rowsort
SELECT ALL + - 35 * 49 FROM tab1 AS cor0
----
-1715
-1715
-1715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 32 AS col0, + 70 col2 FROM tab1 AS cor0
----
32
70

query I rowsort
SELECT - col1 * col2 + ( - - col2 ) FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ( - + 44 ) + - - COUNT( * ) FROM tab0 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4876
SELECT ( - + 44 ) + - - COUNT ( * ) FROM tab0 cor0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT DISTINCT + MIN( DISTINCT + 46 ) * 34 DIV MAX( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT + MIN ( DISTINCT + 46 ) * 34 / MAX ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL + - SUM( - 92 ) AS col0 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + - SUM ( - 92 ) AS col0 FROM tab0 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + COUNT( DISTINCT + ( 65 ) ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT ALL + COUNT ( DISTINCT + ( 65 ) ) col2 FROM tab1
----
1

query I rowsort
SELECT ALL + col1 + - + col1 + - - 67 * 77 + + 29 AS col1 FROM tab0
----
5188
5188
5188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4881
SELECT DISTINCT col2 + + + CAST( NULL AS SIGNED ) AS col2, col1 + + col1 AS col1 FROM tab0
----
NULL
162
NULL
2
NULL
42

skipif mysql # not compatible
query II rowsort label-4881
SELECT DISTINCT col2 + + + CAST ( NULL AS INTEGER ) AS col2, col1 + + col1 AS col1 FROM tab0
----
NULL
162
NULL
2
NULL
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 + col0 + - col0 col1 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT SUM( + col0 ) AS col0 FROM tab1 WHERE ( ( + 25 ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT SUM ( + col0 ) AS col0 FROM tab1 WHERE ( ( + 25 ) IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL - COUNT( * ) + + + 71 AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - COUNT ( * ) + + + 71 AS col1 FROM tab2
----
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4886
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) col0 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL ( + col0 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
21
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT DISTINCT - 92 DIV - - COUNT( * ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT - 92 / - - COUNT ( * ) FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT + COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT + COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 30 ) AS col0 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL - MIN( 52 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL - MIN ( 52 ) FROM tab2 AS cor0
----
-52

query II rowsort
SELECT + col0 * + 46, col0 AS col0 FROM tab2
----
2116
46
2944
64
3450
75

query I rowsort
SELECT - col0 * col0 * 88 FROM tab2
----
-186208
-360448
-495000

query II rowsort
SELECT - ( - 34 ) AS col2, + 43 FROM tab0
----
34
43
34
43
34
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4897
SELECT DISTINCT - col1 DIV - 3 col2 FROM tab1
----
1
15
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4897
SELECT DISTINCT - col1 / - 3 col2 FROM tab1
----
1
15
4

query I rowsort
SELECT + 87 * + 44 * + col0 FROM tab2
----
176088
244992
287100

query I rowsort
SELECT DISTINCT - col1 + - + 86 AS col2 FROM tab2
----
-137
-153
-163

query III rowsort
SELECT * FROM tab1 WHERE col2 + + 44 <= - - col0 + col0 + - + ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4901
SELECT DISTINCT + COUNT( * ) col0, - 19 AS col1 FROM tab1 AS cor0
----
3
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4901
SELECT DISTINCT + COUNT ( * ) col0, - 19 AS col1 FROM tab1 AS cor0
----
3
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT DISTINCT - + 66 + + - 96 + + col2 - + + CAST( + 67 AS SIGNED ) * - col2 * + col0 * col2 * - + 55 + + 53 AS col2 FROM tab2 cor0
----
-377344069
-89670876
-929725551

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - + 66 + + - 96 + + col2 - + + CAST ( + 67 AS INTEGER ) * - col2 * + col0 * col2 * - + 55 + + 53 AS col2 FROM tab2 cor0
----
-377344069
-89670876
-929725551

query III rowsort
SELECT * FROM tab1 WHERE + - 42 = NULL
----

query I rowsort
SELECT ALL + 86 + - 68 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + 24 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + 24 FROM tab0
----
33

query III rowsort
SELECT * FROM tab0 WHERE - 25 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - + 65 ) * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 8 col2 FROM tab1 AS cor0
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - ( - 85 ) col1 FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT + 6 - - 11 FROM tab0
----
17
17
17

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL - ( + ( - - COUNT( * ) ) ) + - - 4 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - ( + ( - - COUNT ( * ) ) ) + - - 4 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4913
SELECT ALL col0 * col1 DIV - col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL col0 * col1 / - col1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT DISTINCT + MIN( col1 ) * + CAST( - ( - COUNT( * ) ) AS SIGNED ) + + + 38 + COUNT( * ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT + MIN ( col1 ) * + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + + + 38 + COUNT ( * ) FROM tab0 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col0 ) col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col1 * + 6 * col2 FROM tab1
----
1770
19176
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4917
SELECT ALL + + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT + SUM( ALL - col0 ) FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT + SUM ( ALL - col0 ) FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4919
SELECT + col0 DIV + col0, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-4919
SELECT + col0 / + col0, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT - 75 * - 23 / ( + - 61 ) + CAST( NULL AS SIGNED ) + + col0 / + 53 + - - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 75 * - 23 / ( + - 61 ) + CAST ( NULL AS INTEGER ) + + col0 / + 53 + - - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 * - 4 col2 FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + 79 * col2 AND + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4923
SELECT ALL * FROM tab0 WHERE CAST( - + 65 AS SIGNED ) + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4923
SELECT ALL * FROM tab0 WHERE CAST ( - + 65 AS INTEGER ) + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 18 * - 63 col1 FROM tab2
----
-1059
-1070
-1088

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 / 63 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4926
SELECT DISTINCT CAST( col1 AS SIGNED ) + + + 82 + + + 58 / - CAST( NULL AS DECIMAL ) * - 81 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + + 82 + + + 58 / - CAST ( NULL AS REAL ) * - 81 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4927
SELECT ALL - 11 + - CAST( - - col0 AS SIGNED ) + + 82 + col2 AS col1, col0 FROM tab0 AS cor0
----
-6
87
103
15
73
97

skipif mysql # not compatible
query II rowsort label-4927
SELECT ALL - 11 + - CAST ( - - col0 AS INTEGER ) + + 82 + col2 AS col1, col0 FROM tab0 AS cor0
----
-6
87
103
15
73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT - COUNT( DISTINCT - ( - 74 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT - COUNT ( DISTINCT - ( - 74 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT + ( + - 98 ) * col1 + - + 59 * + - CAST( col2 AS SIGNED ) DIV col2 * col2 FROM tab2
----
-3144
-3641
-5186

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + ( + - 98 ) * col1 + - + 59 * + - CAST ( col2 AS INTEGER ) / col2 * col2 FROM tab2
----
-3144
-3641
-5186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT ALL col0 * CAST( - col0 AS SIGNED ) + - 36 FROM tab1
----
-2637
-7261
-8317

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL col0 * CAST ( - col0 AS INTEGER ) + - 36 FROM tab1
----
-2637
-7261
-8317

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 7 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col2 col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT + 5 + - + col0 FROM tab2 AS cor0 WHERE CAST( - + col0 AS SIGNED ) IS NOT NULL
----
-41
-59
-70

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 5 + - + col0 FROM tab2 AS cor0 WHERE CAST ( - + col0 AS INTEGER ) IS NOT NULL
----
-41
-59
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT DISTINCT - MIN( ALL + col2 ) * 44 DIV - - COUNT( * ) - 31 AS col0 FROM tab1 AS cor0
----
-896

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT - MIN ( ALL + col2 ) * 44 / - - COUNT ( * ) - 31 AS col0 FROM tab1 AS cor0
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + + ( 22 ) * - + ( - + MAX( ALL + col2 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
2175

skipif mysql # not compatible
query I rowsort label-4935
SELECT + + ( 22 ) * - + ( - + MAX ( ALL + col2 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
2175

query I rowsort
SELECT - - col2 + + col0 + - 96 AS col1 FROM tab2 AS cor0
----
-27
37
8

query II rowsort
SELECT DISTINCT + col1 AS col1, 5 AS col2 FROM tab2 AS cor0
----
51
5
67
5
77
5

query I rowsort
SELECT DISTINCT + col2 - 67 FROM tab0 AS cor0
----
-20
-57
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + 82 * - - 84 * + - 16 - + 84 = NULL
----

query II rowsort
SELECT DISTINCT ( + - col1 ) AS col2, col0 * col2 AS col1 FROM tab2
----
-51
1058
-67
4350
-77
2560

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IS NULL OR NULL > NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NOT ( col2 * - col0 * + col0 ) IS NULL )
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4943
SELECT + - COUNT( * ) + - 85 DIV - 14 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-4943
SELECT + - COUNT ( * ) + - 85 / - 14 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query II rowsort
SELECT DISTINCT - 78 AS col2, col2 + + col2 AS col2 FROM tab1 AS cor0
----
-78
118
-78
136
-78
192

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT + 89 DIV + ( - - col2 ) + - col0 FROM tab1 AS cor0
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 89 / + ( - - col2 ) + - col0 FROM tab1 AS cor0
----
-51
-84
-90

query I rowsort
SELECT ALL + 85 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab2 AS cor0 WHERE NOT - 55 NOT BETWEEN NULL AND + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4948
SELECT + 64 AS col0, COUNT( * ) AS col0 FROM tab0 cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-4948
SELECT + 64 AS col0, COUNT ( * ) AS col0 FROM tab0 cor0
----
64
3

query I rowsort
SELECT DISTINCT + col2 * + - 86 FROM tab0
----
-4042
-8514
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + COUNT( * ) * + 16 col0 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4950
SELECT + COUNT ( * ) * + 16 col0 FROM tab0
----
48

query I rowsort
SELECT col1 * - col0 * - - col1 AS col0 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 + - col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 + - col1 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT + + 55 AS col1, - COUNT( * ) AS col1 FROM tab0 WHERE - 74 IS NULL
----
55
0

skipif mysql # not compatible
query II rowsort label-4953
SELECT + + 55 AS col1, - COUNT ( * ) AS col1 FROM tab0 WHERE - 74 IS NULL
----
55
0

query I rowsort
SELECT - - 89 FROM tab2 cor0 WHERE ( NOT ( NULL ) > col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL + COUNT( * ) * 66 * COUNT( * ) col0 FROM tab0 AS cor0
----
594

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4955
SELECT ALL + COUNT ( * ) * 66 * COUNT ( * ) col0 FROM tab0 AS cor0
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT + - col0 DIV - - col1 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT + - col0 / - - col1 AS col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab2 cor0
----
2

query I rowsort
SELECT 17 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT CAST( - col0 AS SIGNED ) + - col1 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-4959
SELECT CAST ( - col0 AS INTEGER ) + - col1 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT COUNT( + ( 73 ) ) + - - COUNT( * ) col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4960
SELECT COUNT ( + ( 73 ) ) + - - COUNT ( * ) col0 FROM tab0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 83 + col0 * col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4962
SELECT DISTINCT + SUM( - col1 ) DIV - 26 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + SUM ( - col1 ) / - 26 FROM tab1 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT + ( + MIN( + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + ( + MIN ( + col2 ) ) FROM tab0 AS cor0
----
10

query II rowsort
SELECT 92 AS col1, - 14 + - - col0 FROM tab2
----
92
32
92
50
92
61

query I rowsort
SELECT + col1 * + ( + col2 ) AS col1 FROM tab1
----
1344
295
3196

query II rowsort
SELECT DISTINCT 71, + 75 - - 8 AS col0 FROM tab2
----
71
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + COUNT( col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4967
SELECT + COUNT ( col1 ) col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT ALL col0 DIV 70 * + col2 AS col1 FROM tab1
----
0
59
68

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL col0 / 70 * + col2 AS col1 FROM tab1
----
0
59
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 31 * - - 4 <> - - col2
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT - ( + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4972
SELECT - ( + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * - + col0 col2 FROM tab1 AS cor0
----
-3111
-5185
-5551

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( 33 ) * + 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE - col2 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL - SUM( + 15 ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL - SUM ( + 15 ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT ALL + col1 * - + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT col0 DIV 82 * - col1 + - col1 FROM tab1 cor0
----
-10
-14
-94

skipif mysql # not compatible
query I rowsort label-4978
SELECT col0 / 82 * - col1 + - col1 FROM tab1 cor0
----
-10
-14
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - MIN( - 46 ) AS col0 FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4979
SELECT - MIN ( - 46 ) AS col0 FROM tab1 cor0
----
46

query I rowsort
SELECT + 65 * col1 AS col2 FROM tab2 cor0
----
3315
4355
5005

query II rowsort
SELECT ALL + 4 + - - 70 + 20 / col0, ( - - ( + ( + + 23 ) ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + + ( + + 93 ) FROM tab2
----
116
133
151

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 / 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 97 + + - 55 + col0 * 14 FROM tab0
----
1066
1206
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL 69 + + - COUNT( * ) * - + 90 AS col1 FROM tab0
----
339

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL 69 + + - COUNT ( * ) * - + 90 AS col1 FROM tab0
----
339

query I rowsort
SELECT - col0 * + col0 + + col0 FROM tab2
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT 71 * ( + + COUNT( * ) ) + ( 38 ) FROM tab0
----
251

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT 71 * ( + + COUNT ( * ) ) + ( 38 ) FROM tab0
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT - - ( - COUNT( + col1 ) ) AS col2 FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - - ( - COUNT ( + col1 ) ) AS col2 FROM tab1 WHERE NULL = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT - col2 DIV + - col0 + - 11 FROM tab0
----
-10
-11
-8

skipif mysql # not compatible
query I rowsort label-4989
SELECT - col2 / + - col0 + - 11 FROM tab0
----
-10
-11
-8

query I rowsort
SELECT DISTINCT - 28 + - ( + + col1 ) AS col0 FROM tab1
----
-33
-42
-75

query I rowsort
SELECT - col0 + 6 FROM tab2
----
-40
-58
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT + COUNT( * ) + + COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT + COUNT ( * ) + + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT ALL - + col0 + - col2 DIV col1 FROM tab1 AS cor0
----
-57
-92
-96

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - + col0 + - col2 / col1 FROM tab1 AS cor0
----
-57
-92
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + 40 * COUNT( * ) * - 67 FROM tab0 AS cor0 WHERE + col0 <> - col1 * + - col0
----
-5360

skipif mysql # not compatible
query I rowsort label-4994
SELECT + 40 * COUNT ( * ) * - 67 FROM tab0 AS cor0 WHERE + col0 <> - col1 * + - col0
----
-5360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4995
SELECT - 67 DIV - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4995
SELECT - 67 / - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
7

query I rowsort
SELECT DISTINCT col1 + + - 20 - + col1 AS col2 FROM tab0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT CAST( NULL AS SIGNED ) / + ( - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT CAST ( NULL AS INTEGER ) / + ( - col0 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 62 * + ( col2 ) FROM tab1 AS cor0
----
-3658
-4216
-5952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4999
SELECT - COUNT( * ) DIV + + 92 + - 11 * + 70 + CAST( - - 66 AS SIGNED ) col2 FROM tab2 AS cor0
----
-704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4999
SELECT - COUNT ( * ) / + + 92 + - 11 * + 70 + CAST ( - - 66 AS INTEGER ) col2 FROM tab2 AS cor0
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL + COUNT( * ) * + 32 + - - 28 FROM tab0 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + COUNT ( * ) * + 32 + - - 28 FROM tab0 AS cor0
----
124

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE - col1 - - - 90 + col0 * col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5002
SELECT ALL - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5002
SELECT ALL - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-3
NULL

query I rowsort
SELECT - col2 * + + col2 AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT + 62 DIV col1 AS col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-5004
SELECT + 62 / col1 AS col1 FROM tab1
----
1
12
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL ( + CAST( - 28 AS SIGNED ) ) * - COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL ( + CAST ( - 28 AS INTEGER ) ) * - COUNT ( * ) AS col1 FROM tab1
----
84

query I rowsort
SELECT ALL 99 / + col0 AS col0 FROM tab1 WHERE + - col1 + - 70 + + 6 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT - 28 * - COUNT( * ) * + ( + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT - 28 * - COUNT ( * ) * + ( + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 61 <> + 87
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT ALL - COUNT( * ) DIV - 49 col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5009
SELECT ALL - COUNT ( * ) / - 49 col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT DISTINCT col1 DIV 49 col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5010
SELECT DISTINCT col1 / 49 col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT col0 DIV - col0 + + 8 AS col2 FROM tab1
----
7
7
7

skipif mysql # not compatible
query I rowsort label-5011
SELECT col0 / - col0 + + 8 AS col2 FROM tab1
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE - col2 * col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 * col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - - 20 AS col1 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col0 + 87 = NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + SUM( DISTINCT - - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + SUM ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT - 33 * 17 AS col1 FROM tab1
----
-561
-561
-561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col2 FROM tab1 WHERE col0 IS NOT NULL
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT ALL col2 DIV + 81 + - col2 AS col1 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL col2 / + 81 + - col2 AS col1 FROM tab1
----
-59
-68
-95

query I rowsort
SELECT 34 - - + ( col0 ) FROM tab1
----
119
125
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT DISTINCT + 63 * - col2 + col1 - col2 DIV col0 FROM tab0
----
-2883
-609
-6237

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + 63 * - col2 + col1 - col2 / col0 FROM tab0
----
-2883
-609
-6237

query I rowsort
SELECT col1 - + col1 + - col0 * - + 92 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT + + 43 - + 22 + + col1 - + col2 FROM tab0 AS cor0
----
-77
32
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + 71 + 60 * + - COUNT( * ) + - - 60 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5024
SELECT + 71 + 60 * + - COUNT ( * ) + - - 60 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT ALL 25 * - 40 AS col0 FROM tab1
----
-1000
-1000
-1000

query II rowsort
SELECT ALL + + ( - col1 ) * - col2 AS col2, - col2 FROM tab2 AS cor0
----
1173
-23
3080
-40
3886
-58

query II rowsort
SELECT DISTINCT - - col2 AS col2, + ( + col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
59
-295
68
-3196
96
-1344

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + col1 ) >= - col1 + col0 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 28 AS col0 FROM tab0 cor0
----
-28
-28
-28

query II rowsort
SELECT ALL + 5 AS col0, 3 + col1 FROM tab0 AS cor0
----
5
24
5
4
5
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col2 FROM tab2 AS cor0 WHERE col2 - 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT DISTINCT + - SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT + - SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT ALL col0, - 56 FROM tab2 AS cor0
----
46
-56
64
-56
75
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT - COUNT( - CAST( + 12 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5035
SELECT - COUNT ( - CAST ( + 12 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5036
SELECT * FROM tab0 WHERE NOT - ( - 91 ) + + - 84 * + CAST( + + 95 AS SIGNED ) < - col1 + + col2 * col0 / + + 78 * - col1 + col0 - - - col0
----

skipif mysql # not compatible
query III rowsort label-5036
SELECT * FROM tab0 WHERE NOT - ( - 91 ) + + - 84 * + CAST ( + + 95 AS INTEGER ) < - col1 + + col2 * col0 / + + 78 * - col1 + col0 - - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5037
SELECT ALL - 35 * - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - 35 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-105

query I rowsort
SELECT ALL - 85 * + col1 AS col1 FROM tab2
----
-4335
-5695
-6545

query II rowsort
SELECT + 67 + + 35 + col0 * - + col0 AS col0, + col0 AS col0 FROM tab0 cor0
----
-123
15
-7467
87
-9307
97

query I rowsort
SELECT + col0 * - - col0 * - - 10 AS col1 FROM tab0 AS cor0
----
2250
75690
94090

query III rowsort
SELECT * FROM tab0 WHERE - ( - - 49 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col1 > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 92 * + - col0 + - col2 AS col2, col0 col0 FROM tab2 WHERE NOT ( - col2 - + - col2 * + + col0 + + - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL + COUNT( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + COUNT ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 IS NULL OR NOT - col2 - + col2 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 + + col2 FROM tab2 cor0
----
118
135
153

query I rowsort
SELECT col2 * + 29 + - 34 FROM tab0 AS cor0
----
1329
256
2837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col2 + col1 * + 14 col0 FROM tab1 AS cor0
----
543
6
86

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 + + 23 col1 FROM tab0
----
102
102
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT - col1 + - col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) + - col2 + - col2 * - 24 / + col2 <> - - 56
----

skipif mysql # not compatible
query I rowsort label-5051
SELECT - col1 + - col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + - col2 + - col2 * - 24 / + col2 <> - - 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, 13 col2 FROM tab2
----
-23
13
-40
13
-58
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL 16 - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL 16 - COUNT ( * ) FROM tab0
----
13

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 29 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col1 / - - 97
----

query II rowsort
SELECT ALL - + col0 AS col1, + col1 * - + col2 * - 72 AS col1 FROM tab2 AS cor0
----
-46
84456
-64
221760
-75
279792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT - - MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT - - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 90 * ( + col2 ) AS col0 FROM tab1
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + MAX( DISTINCT + + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5059
SELECT + MAX ( DISTINCT + + col1 ) FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN + - 15 AND + - col1 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col2 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT DISTINCT - ( + COUNT( * ) ) AS col1, - 93 FROM tab0 AS cor0
----
-3
-93

skipif mysql # not compatible
query II rowsort label-5062
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1, - 93 FROM tab0 AS cor0
----
-3
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT 40 * MIN( col1 ) FROM tab2 AS cor0
----
2040

skipif mysql # not compatible
query I rowsort label-5063
SELECT 40 * MIN ( col1 ) FROM tab2 AS cor0
----
2040

query I rowsort
SELECT ALL + - ( - - col2 ) * - + 7 + - col2 FROM tab1 AS cor0
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT + COUNT( + col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + COUNT ( + col1 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 88 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5066
SELECT COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 88 = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT ALL - MIN( + 77 ), + 10 AS col0 FROM tab1 cor0
----
-77
10

skipif mysql # not compatible
query II rowsort label-5067
SELECT ALL - MIN ( + 77 ), + 10 AS col0 FROM tab1 cor0
----
-77
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 col2, - col2 FROM tab0
----
7
-10
7
-47
7
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 80 IS NULL
----

query I rowsort
SELECT 53 * - col0 AS col2 FROM tab1
----
-2703
-4505
-4823

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE - + col1 <> col0 * - + col2 + + - 77 + - col2
----
-23
-40
-58

query I rowsort
SELECT 94 * col2 * + col2 * + col1 AS col2 FROM tab1
----
12128256
1636070
20428832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT ALL - CAST( - 92 AS SIGNED ) AS col0 FROM tab2
----
92
92
92

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - CAST ( - 92 AS INTEGER ) AS col0 FROM tab2
----
92
92
92

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 IN ( - col2, - 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 95 * - col0 * + - 32 AS col1 FROM tab2 AS cor0
----
139840
194560
228000

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + COUNT( * ) * MAX( ALL - col2 ) AS col2 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-5077
SELECT + COUNT ( * ) * MAX ( ALL - col2 ) AS col2 FROM tab1
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT DISTINCT col2 * - CAST( col1 AS SIGNED ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT col2 * - CAST ( col1 AS INTEGER ) FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 18 * col2 FROM tab2
----
1044
414
720

query I rowsort
SELECT col0 + + 81 AS col2 FROM tab0
----
168
178
96

query I rowsort
SELECT - 76 * + 4 AS col0 FROM tab1
----
-304
-304
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT DISTINCT 55 DIV + col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT 55 / + col2 AS col0 FROM tab0
----
0
1
5

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * - col0 ) IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 - - col2 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT MIN( DISTINCT col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - ( col2 ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col0 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT ( + 6 ) DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5088
SELECT ( + 6 ) / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5089
SELECT SUM( DISTINCT col0 ) DIV SUM( DISTINCT col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5089
SELECT SUM ( DISTINCT col0 ) / SUM ( DISTINCT col1 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT 22 + + col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT + 49 DIV 17 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 49 / 17 FROM tab1
----
2
2
2

query I rowsort
SELECT + col2 + col2 * col0 AS col1 FROM tab0
----
752
880
9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL 18 - - 32 * col0 FROM tab2 WHERE 93 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL 18 - - 32 * col0 FROM tab2 WHERE 93 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5094
SELECT DISTINCT - col1 DIV + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - col1 / + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-1

query I rowsort
SELECT + 39 + + 54 FROM tab1
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5096
SELECT - AVG ( + col2 ) + - CAST( NULL AS DECIMAL ) * COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5096
SELECT - AVG ( + col2 ) + - CAST ( NULL AS REAL ) * COUNT ( * ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 83 * - 13 AS col2 FROM tab1
----
-1079
-1079
-1079

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT 76 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 63 * - col2 + col0 IS NULL
----
73

skipif mysql # not compatible
query I rowsort label-5098
SELECT 76 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 63 * - col2 + col0 IS NULL
----
73

query I rowsort
SELECT col1 * col2 FROM tab2 AS cor0 WHERE NOT 8 + 74 = 75
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5100
SELECT COUNT( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT col2 + col0 > col1 / CAST( + col1 * 28 AS SIGNED ) + - ( 36 )
----
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT col2 + col0 > col1 / CAST ( + col1 * 28 AS INTEGER ) + - ( 36 )
----
0

query I rowsort
SELECT ALL 20 - - 28 * + col0 FROM tab0 WHERE NOT col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL + CAST( - 59 AS SIGNED ) AS col2 FROM tab1 cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + CAST ( - 59 AS INTEGER ) AS col2 FROM tab1 cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL - ( - ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - ( - ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE col1 * + col1 <> - col1 + - col1
----
3

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE col1 * + col1 <> - col1 + - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT MIN( 92 ) AS col1 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5105
SELECT MIN ( 92 ) AS col1 FROM tab1 AS cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5106
SELECT - + 62 DIV + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5106
SELECT - + 62 / + col0 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 45 > 50
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 + - col2 / - col0 >= ( 18 * - col2 )
----

query I rowsort
SELECT ALL + col1 / col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 75 / 34 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT ALL - CAST( + 75 AS SIGNED ) AS col0 FROM tab1 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL - CAST ( + 75 AS INTEGER ) AS col0 FROM tab1 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND - col0
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT IN ( - col1 * col0 )
----

query I rowsort
SELECT - 58 FROM tab0 WHERE NOT + 39 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 32 * 2 FROM tab0
----
64
64
64

query I rowsort
SELECT DISTINCT + 77 * + col1 + col0 * - 17 AS col2 FROM tab2
----
3145
3884
4841

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - COUNT( * ) + + + 61 col1 FROM tab1
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5115
SELECT - COUNT ( * ) + + + 61 col1 FROM tab1
----
58

query I rowsort
SELECT ALL - 90 + + col1 - - col2 AS col0 FROM tab1
----
-26
20
25

query I rowsort
SELECT ( - col1 ) FROM tab1 AS cor0 WHERE ( - col1 ) <> + col2 + col0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 86 + - col1 FROM tab0 AS cor0
----
5
65
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT + COUNT( - - 97 ) DIV 96 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5119
SELECT + COUNT ( - - 97 ) / 96 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT - col0 DIV - 22 AS col1 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-5120
SELECT - col0 / - 22 AS col1 FROM tab0 AS cor0
----
0
3
4

query I rowsort
SELECT ALL ( - 29 ) AS col2 FROM tab0 WHERE NOT ( - col1 * - 34 ) IN ( 96 * 68 - 0 * + col0 )
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL CAST( + col2 AS SIGNED ) + - col0 AS col0 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL CAST ( + col2 AS INTEGER ) + - col0 AS col0 FROM tab0
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT ALL + col2 + col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT - ( + 74 ) DIV - col2 + + 56 + col1 AS col0 FROM tab2 AS cor0
----
110
124
134

skipif mysql # not compatible
query I rowsort label-5125
SELECT - ( + 74 ) / - col2 + + 56 + col1 AS col0 FROM tab2 AS cor0
----
110
124
134

query I rowsort
SELECT DISTINCT + 20 * + col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT col1 * 56 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT col1 * 56 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( 59 ) + + col2 FROM tab2 AS cor0
----
117
82
99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 85 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 79 - - 30 + + col2 * - 41 FROM tab1 AS cor0
----
-2468
-2837
-3985

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT ALL - 64 DIV + - col2 FROM tab0 cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - 64 / + - col2 FROM tab0 cor0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT - col0 + - - 13 DIV - col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5133
SELECT - col0 + - - 13 / - col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT DISTINCT col2 DIV ( + - 35 ) + - col2 AS col1 FROM tab1 AS cor0
----
-60
-69
-98

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT col2 / ( + - 35 ) + - col2 AS col1 FROM tab1 AS cor0
----
-60
-69
-98

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE + - col0 * - 18 IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * 1 <= 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5138
SELECT * FROM tab0 WHERE CAST( - - ( - col1 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5138
SELECT * FROM tab0 WHERE CAST ( - - ( - col1 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5139
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5139
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * 36 FROM tab2 WHERE col2 * - 73 * + col1 NOT BETWEEN col1 + col1 AND ( col0 ) / col2
----
-1836
-2412
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + MIN( ALL 68 ) * + 2 AS col2 FROM tab2
----
136

skipif mysql # not compatible
query I rowsort label-5142
SELECT + MIN ( ALL 68 ) * + 2 AS col2 FROM tab2
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5143
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( + col2 ) IN ( CAST( 77 AS SIGNED ) + + 52 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5143
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( + col2 ) IN ( CAST ( 77 AS INTEGER ) + + 52 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 77 - - 60 FROM tab2 AS cor0 WHERE NULL IS NULL
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-5145
SELECT DISTINCT 20 col2, COUNT( * ) * + - COUNT( * ) * - 91 + - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
20
7362

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5145
SELECT DISTINCT 20 col2, COUNT ( * ) * + - COUNT ( * ) * - 91 + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
20
7362

query I rowsort
SELECT + ( - 44 ) * + + col0 FROM tab1
----
-2244
-3740
-4004

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 > + - col1 + - 85
----

query I rowsort
SELECT - + 68 * col0 AS col0 FROM tab2 cor0
----
-3128
-4352
-5100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 > - + col1 AND NOT ( NULL ) <= ( col1 / + 83 + + 51 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 27 + + 84 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5151
SELECT + col0 * col1 AS col2 FROM tab1 cor0 WHERE NOT col2 * - col2 * col2 BETWEEN NULL AND ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-5151
SELECT + col0 * col1 AS col2 FROM tab1 cor0 WHERE NOT col2 * - col2 * col2 BETWEEN NULL AND ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - col0 + + 64 AS col0 FROM tab1
----
-21
-27
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5153
SELECT + col1 * - CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE ( - 31 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5153
SELECT + col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE ( - 31 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5154
SELECT DISTINCT 28 + MAX( ALL - CAST( NULL AS DECIMAL ) ) * + MIN( ALL - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT 28 + MAX ( ALL - CAST ( NULL AS REAL ) ) * + MIN ( ALL - col0 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 97 col1, - 47, - ( - - 52 ) * + 29 + + 72 AS col2 FROM tab1
----
9 values hashing to 946730b4a47adb44cb632a10bf5b2231

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT ALL - col0 DIV col2 + col1 FROM tab0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - col0 / col2 + col1 FROM tab0
----
1
13
81

query I rowsort
SELECT DISTINCT - col0 + - ( 34 ) FROM tab0
----
-121
-131
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT DISTINCT - COUNT( * ) + - CAST( AVG ( + col2 ) AS SIGNED ) AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - COUNT ( * ) + - CAST ( AVG ( + col2 ) AS INTEGER ) AS col0 FROM tab2
----
-43

query II rowsort
SELECT + col0 AS col2, - col2 AS col1 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT ALL ( - + col1 ) * + 68 * - - CAST( NULL AS SIGNED ) * + col2 FROM tab2 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL ( - + col1 ) * + 68 * - - CAST ( NULL AS INTEGER ) * + col2 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT - 94 * + MAX( + + 7 ) FROM tab1 AS cor0
----
-658

skipif mysql # not compatible
query I rowsort label-5161
SELECT - 94 * + MAX ( + + 7 ) FROM tab1 AS cor0
----
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL - + COUNT( - + 62 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL - + COUNT ( - + 62 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + COUNT( * ) + + + 35 AS col1 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5163
SELECT + COUNT ( * ) + + + 35 AS col1 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT COUNT( * ) + 55 col1 FROM tab0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5164
SELECT COUNT ( * ) + 55 col1 FROM tab0
----
58

query I rowsort
SELECT DISTINCT - 58 + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 * + + 49 ) NOT IN ( + 69 * 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT ALL CAST( + 35 AS SIGNED ) * + + 43 FROM tab0 cor0
----
1505
1505
1505

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL CAST ( + 35 AS INTEGER ) * + + 43 FROM tab0 cor0
----
1505
1505
1505

query I rowsort
SELECT 68 FROM tab0 cor0 WHERE NULL NOT IN ( + 53, col0, 71 )
----

query I rowsort
SELECT DISTINCT - 85 - - col1 AS col1 FROM tab1 cor0
----
-38
-71
-80

query I rowsort
SELECT ALL - + ( 80 ) - col1 FROM tab0 AS cor0
----
-101
-161
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT + col1 - - col1 DIV - - 76 FROM tab2 cor0
----
51
67
78

skipif mysql # not compatible
query I rowsort label-5171
SELECT + col1 - - col1 / - - 76 FROM tab2 cor0
----
51
67
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 52 IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 52 IS NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT 64, - col2 AS col1 FROM tab1
----
64
-59
64
-68
64
-96

query I rowsort
SELECT 27 FROM tab0 WHERE NOT ( + 55 ) >= ( NULL )
----

query II rowsort
SELECT DISTINCT 72 AS col0, - col0 FROM tab2
----
72
-46
72
-64
72
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT - + col2 + + - col1 + - 82 * + - col2 * + CAST( NULL AS SIGNED ) * + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + col2 + + - col1 + - 82 * + - col2 * + CAST ( NULL AS INTEGER ) * + col1 IS NOT NULL
----
3

query I rowsort
SELECT col1 * - - col1 * + col2 * - 41 * + ( col2 ) FROM tab1
----
-3568025
-418791056
-74059776

query I rowsort
SELECT ALL 21 * + col0 AS col2 FROM tab1
----
1071
1785
1911

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - 16 AND - 37
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5180
SELECT ALL 48 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL 48 * + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 * + + col2 col2 FROM tab1
----
5192
5984
8448

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + ( + - 24 ) - - + 98 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab1, tab1 cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT + 31 DIV col1 col0 FROM tab0 WHERE NOT - col2 * + - ( + col2 ) IN ( col1 * - - col0 + 79 )
----
0
1
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5185
SELECT DISTINCT + 31 / col1 col0 FROM tab0 WHERE NOT - col2 * + - ( + col2 ) IN ( col1 * - - col0 + 79 )
----
0
1
31

query I rowsort
SELECT DISTINCT + col2 * 68 + col2 AS col2 FROM tab0
----
3243
6831
690

query II rowsort
SELECT - col2 * - col2 AS col0, 68 FROM tab2 AS cor0
----
1600
68
3364
68
529
68

query II rowsort
SELECT + col2, col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 87 col0 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT - MAX( ALL 87 ) + - 5 AS col1 FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5191
SELECT - MAX ( ALL 87 ) + - 5 AS col1 FROM tab2 cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT + MAX( ALL + 47 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT + MAX ( ALL + 47 ) FROM tab1
----
47

query I rowsort
SELECT ALL - 63 + + col0 FROM tab2
----
-17
1
12

query I rowsort
SELECT DISTINCT ( + col2 ) + - - ( + 82 ) FROM tab1
----
141
150
178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5195
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN - - 20 AND 42
----

skipif mysql # not compatible
query III rowsort label-5195
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - - 20 AND 42
----

query I rowsort
SELECT 14 + - col2 FROM tab1
----
-45
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT DISTINCT + MAX( DISTINCT - col1 ) + + COUNT( * ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT + MAX ( DISTINCT - col1 ) + + COUNT ( * ) AS col2 FROM tab1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT ALL 52 DIV col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-49
-67
-76

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL 52 / col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-49
-67
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT COUNT( 83 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5199
SELECT COUNT ( 83 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + + ( col0 ) + + - col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT col2 + + 90 - - col0 + - 79 FROM tab2 AS cor0
----
115
144
80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5203
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5203
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS REAL ) ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + - col2, col1 + + col0 - col1 + + col2 + + col0 - - col2 AS col2 FROM tab2 AS cor0
----
-23
138
-40
208
-58
266

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL - SUM( ALL - 72 ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL - SUM ( ALL - 72 ) FROM tab0 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT ALL + + 12, + COUNT( * ) col2 FROM tab1 cor0
----
12
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5207
SELECT ALL + + 12, + COUNT ( * ) col2 FROM tab1 cor0
----
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT DISTINCT - + MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - + MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5209
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col0 * - 79 AS col1, + col2 AS col0 FROM tab2
----
-3634
23
-5056
40
-5925
58

query I rowsort
SELECT ALL col1 * + ( col1 ) * 76 * + col2 - + 3 AS col0 FROM tab0
----
23435889
335157
7521

query I rowsort
SELECT col1 * 89 * col2 FROM tab2
----
104397
274120
345854

onlyif mysql # DIV for integer division: 
query II rowsort label-5213
SELECT col0 DIV col0 * + - col1 col1, + 84 FROM tab0
----
-1
84
-21
84
-81
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5213
SELECT col0 / col0 * + - col1 col1, + 84 FROM tab0
----
-1
84
-21
84
-81
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT DISTINCT + ( - col2 ) DIV - 54 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + ( - col2 ) / - 54 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT DISTINCT - 58 * col1 DIV + + 44 FROM tab2 AS cor0
----
-101
-67
-88

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT - 58 * col1 / + + 44 FROM tab2 AS cor0
----
-101
-67
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * - + col1 * - col0 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5218
SELECT - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col2 * - col1 + - - 15 AS col0, - col0 FROM tab0 AS cor0
----
-195
-87
-3792
-15
-84
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT - + SUM( ALL 84 ) FROM tab2 cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT - + SUM ( ALL 84 ) FROM tab2 cor0
----
-252

query I rowsort
SELECT ALL - col0 + + - col2 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT MAX( ALL - col1 ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5222
SELECT DISTINCT MAX ( ALL - col1 ) col2 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 98 / + 34 * col1 NOT IN ( + 32 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND + + col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - MAX( DISTINCT + + col1 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-5225
SELECT - MAX ( DISTINCT + + col1 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-77

query I rowsort
SELECT ALL + col0 * + 58 FROM tab2 AS cor0
----
2668
3712
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT - SUM( ALL 7 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - SUM ( ALL 7 ) FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT + - 38 * - 46 * + col0 FROM tab0 cor0 WHERE ( ( NOT 31 / ( - - CAST( - col0 AS SIGNED ) ) <> + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-5228
SELECT + - 38 * - 46 * + col0 FROM tab0 cor0 WHERE ( ( NOT 31 / ( - - CAST ( - col0 AS INTEGER ) ) <> + col2 ) )
----

query I rowsort
SELECT ALL - ( + + col1 ) + + 49 AS col0 FROM tab0
----
-32
28
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT DISTINCT + COUNT( * ) + 94 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT + COUNT ( * ) + 94 FROM tab2
----
97

query I rowsort
SELECT DISTINCT - 87 + - - col1 AS col2 FROM tab2
----
-10
-20
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) + - + col2 * + ( + col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) + - + col2 * + ( + col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 85 / - ( - - col0 ) * + - col0 FROM tab1 WHERE + ( + - col2 ) IS NULL
----

query I rowsort
SELECT ALL col0 * + + col2 + + col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT + + COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT + + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + - 60
----

query I rowsort
SELECT + 55 + - col2 FROM tab2
----
-3
15
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT SUM( DISTINCT - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5238
SELECT SUM ( DISTINCT - col2 ) AS col2 FROM tab1
----
-223

query II rowsort
SELECT DISTINCT + 37 AS col1, col1 FROM tab0
----
37
1
37
21
37
81

query II rowsort
SELECT + 90 AS col1, col2 + - + ( + 14 ) AS col2 FROM tab2 AS cor0
----
90
26
90
44
90
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT - - SUM( col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5241
SELECT - - SUM ( col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - - SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5242
SELECT - - SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT - col0 AS col0, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT - + 73 * - + col1 FROM tab2 AS cor0
----
3723
4891
5621

query II rowsort
SELECT 10, col0 FROM tab2 AS cor0
----
10
46
10
64
10
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT DISTINCT 40 * - - 83 * COUNT( * ) col1 FROM tab2
----
9960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5246
SELECT DISTINCT 40 * - - 83 * COUNT ( * ) col1 FROM tab2
----
9960

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT SUM( DISTINCT + 63 ) AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5247
SELECT SUM ( DISTINCT + 63 ) AS col2 FROM tab0
----
63

query I rowsort
SELECT DISTINCT + col1 * 51 AS col2 FROM tab2
----
2601
3417
3927

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT DISTINCT - 54 DIV 69 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - 54 / 69 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( - ( + col1 ) ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT 60 * - COUNT( * ) FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-5252
SELECT 60 * - COUNT ( * ) FROM tab1 cor0
----
-180

query II rowsort
SELECT col0, col2 * col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + col1 + - 89 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + 81 + + 90 + col1 * + 87 * + col0 NOT BETWEEN ( 60 ) AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT COUNT( * ) * COUNT( * ) + + - COUNT( * ) - + 23 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5256
SELECT COUNT ( * ) * COUNT ( * ) + + - COUNT ( * ) - + 23 FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query III rowsort label-5257
SELECT DISTINCT - 86 AS col0, 75 AS col1, COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-86
75
0

skipif mysql # not compatible
query III rowsort label-5257
SELECT DISTINCT - 86 AS col0, 75 AS col1, COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-86
75
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IS NULL AND NOT NULL < NULL
----

query I rowsort
SELECT + + 68 + col2 AS col1 FROM tab2 cor0
----
108
126
91

query I rowsort
SELECT - + col2 * col0 + - + 53 AS col1 FROM tab0 AS cor0
----
-758
-923
-9656

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT + COUNT( * ) + - 30 AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5262
SELECT + COUNT ( * ) + - 30 AS col1 FROM tab0
----
-27

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( 23 * + col1 / - - 90 ) > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5264
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + 55 * + 18 FROM tab1
----
NULL
990
NULL
990
NULL
990

skipif mysql # not compatible
query II rowsort label-5264
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, + 55 * + 18 FROM tab1
----
NULL
990
NULL
990
NULL
990

query I rowsort
SELECT DISTINCT + + 98 FROM tab0 WHERE + 23 + - ( + 28 ) IS NULL
----

query I rowsort
SELECT 68 FROM tab2 WHERE ( + col1 * col0 ) IS NULL
----

query I rowsort
SELECT + col1 * - + col0 + - - col2 AS col0 FROM tab0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT COUNT( + - 40 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5268
SELECT COUNT ( + - 40 ) FROM tab0
----
3

query I rowsort
SELECT ALL - 92 - + - col0 * - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-25167
-290928
-68636

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + + 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL + col2 - - + CAST( + - ( + col2 ) AS SIGNED ) * + col1 AS col0 FROM tab2 cor0
----
-1150
-3040
-3828

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + col2 - - + CAST ( + - ( + col2 ) AS INTEGER ) * + col1 AS col0 FROM tab2 cor0
----
-1150
-3040
-3828

query II rowsort
SELECT DISTINCT - 54 AS col0, 18 FROM tab1 AS cor0
----
-54
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT 75 - MIN( + + col2 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5273
SELECT 75 - MIN ( + + col2 ) FROM tab1
----
16

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) + 82 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 82 AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + ( col0 ), - 31 AS col1 FROM tab0 AS cor0
----
15
-31
87
-31
97
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 17 * + col0 / - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 20 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 37 * - ( + 24 ) FROM tab1
----
-888

query I rowsort
SELECT ALL + 93 * - 69 AS col2 FROM tab0
----
-6417
-6417
-6417

query I rowsort
SELECT - 4 * - 41 FROM tab1
----
164
164
164

query II rowsort
SELECT DISTINCT + col1 AS col2, + col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT + 70 * col0 FROM tab2
----
3220
4480
5250

query II rowsort
SELECT DISTINCT col0 * - 96 + + col2 AS col2, - 73 AS col2 FROM tab2
----
-4393
-73
-6104
-73
-7142
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL + CAST( - col0 AS SIGNED ) col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5285
SELECT ALL + CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT + COUNT( * ) * 53 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT + COUNT ( * ) * 53 FROM tab1 AS cor0
----
159

query II rowsort
SELECT DISTINCT - 77 AS col2, + col2 + + + col2 - - col0 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-77
104
-77
133
-77
69

query I rowsort
SELECT ALL + 10 * - col0 * + col2 FROM tab0 AS cor0
----
-7050
-8700
-96030

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + COUNT( - 88 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5289
SELECT + COUNT ( - 88 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5290
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN col0 * + col0 AND + 92
----

skipif mysql # not compatible
query III rowsort label-5290
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN col0 * + col0 AND + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT - 36 + + MAX( col1 ) AS col1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-5291
SELECT - 36 + + MAX ( col1 ) AS col1 FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT - MAX( + 5 ) FROM tab2, tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5292
SELECT - MAX ( + 5 ) FROM tab2, tab2 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col2 col1 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - col2 * - + col2 * + col0 * + col2 AS col2 FROM tab2 AS cor0
----
14633400
4096000
559682

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT + MAX( ALL - + 29 ) * + 2 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5295
SELECT + MAX ( ALL - + 29 ) * + 2 FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT DISTINCT ( COUNT( * ) ) * + 91 AS col2 FROM tab2 cor0
----
273

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT ( COUNT ( * ) ) * + 91 AS col2 FROM tab2 cor0
----
273

query I rowsort
SELECT 90 AS col2 FROM tab0 AS cor0 WHERE col2 * + 28 NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----

query I rowsort
SELECT DISTINCT + + col2 * + col0 * - + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT ALL 28 DIV - 39 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL 28 / - 39 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT COUNT( DISTINCT + col2 ) * MIN( DISTINCT + col1 ) - + + COUNT( * ) AS col1 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-5301
SELECT COUNT ( DISTINCT + col2 ) * MIN ( DISTINCT + col1 ) - + + COUNT ( * ) AS col1 FROM tab2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT + ( + MIN( ALL - 31 ) ) * + 52 + COUNT( * ) AS col2 FROM tab2
----
-1609

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT + ( + MIN ( ALL - 31 ) ) * + 52 + COUNT ( * ) AS col2 FROM tab2
----
-1609

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * - - 45 AS col0, 35 FROM tab2
----
2070
35
2880
35
3375
35

query II rowsort
SELECT col0 - + col2, + col1 FROM tab0
----
-2
1
-32
81
77
21

query I rowsort
SELECT DISTINCT + ( + ( + col1 ) ) + col0 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT - 41 + + + col1 + - col2 FROM tab0
----
-139
-30
-7

query I rowsort
SELECT DISTINCT + 5 + + 71 * - - col0 AS col2 FROM tab0 cor0
----
1070
6182
6892

query I rowsort
SELECT ALL col0 - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT col0 + - - 63 + + col0 AS col0 FROM tab0 cor0
----
237
257
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT 44 * - SUM( - col1 ) AS col2 FROM tab2
----
8580

skipif mysql # not compatible
query I rowsort label-5311
SELECT 44 * - SUM ( - col1 ) AS col2 FROM tab2
----
8580

query I rowsort
SELECT col2 + - col0 AS col0 FROM tab0 WHERE NOT - + col1 IS NULL
----
-77
2
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5313
SELECT + - COUNT( * ) DIV ( - + MAX( + - 85 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT + - COUNT ( * ) / ( - + MAX ( + - 85 ) ) AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col1, - col2 + - 59 FROM tab2 AS cor0
----
51
-82
67
-117
77
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL + - ( + ( + MIN( col1 ) ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL + - ( + ( + MIN ( col1 ) ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + MIN( - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5316
SELECT + MIN ( - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5317
SELECT DISTINCT + 36 DIV + COUNT( * ) col2 FROM tab1 cor0 WHERE - col1 * - ( col0 ) IS NOT NULL
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5317
SELECT DISTINCT + 36 / + COUNT ( * ) col2 FROM tab1 cor0 WHERE - col1 * - ( col0 ) IS NOT NULL
----
12

query II rowsort
SELECT + col0 AS col1, - ( col2 ) AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT ALL COUNT( * ) + - + CAST( NULL AS SIGNED ) + - - 24 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - - 24 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - 60 * COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-5320
SELECT - 60 * COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - ( COUNT( * ) ) FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - ( COUNT ( * ) ) FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT + col0 / - - col0 FROM tab0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL col0 + + - 54 * - col0 AS col0 FROM tab0
----
4785
5335
825

query I rowsort
SELECT DISTINCT + 87 * - - col0 FROM tab1
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT + 53 - + COUNT( * ) AS col0 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 53 - + COUNT ( * ) AS col0 FROM tab0
----
50

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col2 * 87 <= col2 * - - col2
----

query I rowsort
SELECT ALL - - col0 + - 44 AS col2 FROM tab2 AS cor0
----
2
20
31

query I rowsort
SELECT + ( - - col1 ) + + + col0 + + 80 * + 14 FROM tab1 AS cor0
----
1185
1210
1258

query I rowsort
SELECT ALL - - 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL = col0 )
----

query I rowsort
SELECT DISTINCT - 89 * + col1 FROM tab0 AS cor0
----
-1869
-7209
-89

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT ( + - 10 ) * col1 * - col0 + - col0 + + col2 AS col0 FROM tab2
----
23437
49256
50233

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5334
SELECT - CAST( NULL AS SIGNED ), + col0 - - col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5334
SELECT - CAST ( NULL AS INTEGER ), + col0 - - col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + 16 ) FROM tab1 WHERE NOT + - 76 IS NULL
----
16
16
16

query III rowsort
SELECT * FROM tab0 WHERE - 43 >= + - col1
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5337
SELECT + COUNT( * ) col0, MIN( + CAST( + + 55 AS SIGNED ) ) FROM tab2
----
3
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5337
SELECT + COUNT ( * ) col0, MIN ( + CAST ( + + 55 AS INTEGER ) ) FROM tab2
----
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL + SUM( ALL col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL + SUM ( ALL col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT COUNT( ALL + + 24 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5339
SELECT COUNT ( ALL + + 24 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT ALL 20 * col2 * ( 7 ) DIV + col0 FROM tab1
----
104
263
97

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL 20 * col2 * ( 7 ) / + col0 FROM tab1
----
104
263
97

query II rowsort
SELECT 89 AS col2, + 9 AS col1 FROM tab1 AS cor0
----
89
9
89
9
89
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT DISTINCT - col0 * + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - col0 * + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + + ( col0 ) FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT DISTINCT + col1 / + ( - CAST( NULL AS SIGNED ) ) / + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + col1 / + ( - CAST ( NULL AS INTEGER ) ) / + col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 col2 FROM tab1 WHERE NOT + col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 45 AS col1 FROM tab2 WHERE + col0 / col1 IS NULL
----

query I rowsort
SELECT ALL + - 37 * + 51 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7dd30b98901011326c4e2540ba7ee732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 10 col0 FROM tab1
----
140
470
50

query I rowsort
SELECT ALL + 36 AS col2 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5350
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT - 18 DIV + ( col1 ) + + 99 * + col2 FROM tab1 cor0
----
5838
6732
9503

skipif mysql # not compatible
query I rowsort label-5351
SELECT - 18 / + ( col1 ) + + 99 * + col2 FROM tab1 cor0
----
5838
6732
9503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 91 col1 FROM tab1 AS cor0
----
-91
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 68 > NULL
----

query II rowsort
SELECT col1, - 72 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT - CAST( - 25 AS SIGNED ) FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-5355
SELECT - CAST ( - 25 AS INTEGER ) FROM tab2
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 + col0 * + 75 col0 FROM tab2
----
3352
4702
5527

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5357
SELECT + col1, CAST( 84 AS SIGNED ) col0 FROM tab2
----
51
84
67
84
77
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5357
SELECT + col1, CAST ( 84 AS INTEGER ) col0 FROM tab2
----
51
84
67
84
77
84

query I rowsort
SELECT AVG ( ALL + ( + - col1 ) ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT ALL + CAST( - - col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + CAST ( - - col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT col1 * - col1 + - + 70 + - col2 + - + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + ( - col0 ) - col1 AS col2 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 31 <= NULL
----

query I rowsort
SELECT + col1 - - + col1 - + + col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 * + + col2 AS col0 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + 15 * 17 * - 26 AS col1 FROM tab1
----
-6630

onlyif mysql # DIV for integer division: 
query I rowsort label-5367
SELECT ( + + col2 ) DIV + 51 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5367
SELECT ( + + col2 ) / + 51 AS col2 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT ALL CAST( - + ( + col1 ) AS SIGNED ) * + col1 AS col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL CAST ( - + ( + col1 ) AS INTEGER ) * + col1 AS col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL - MAX( DISTINCT + 33 ) AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - MAX ( DISTINCT + 33 ) AS col1 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT ALL + ( - 78 ) FROM tab2 AS cor0
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
17

query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5373
SELECT DISTINCT - 59 DIV - MAX( ALL + 1 ) AS col0 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - 59 / - MAX ( ALL + 1 ) AS col0 FROM tab0
----
59

query I rowsort
SELECT col2 + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5375
SELECT + 87 DIV CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5375
SELECT + 87 / CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT ALL - + 87 DIV + - col1 + + col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - + 87 / + - col1 + + col1 FROM tab2 AS cor0
----
52
68
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + - 7 col2, - col1 AS col0, + - 37 AS col0 FROM tab1 AS cor0
----
9 values hashing to ee604e0a16eb7546f7753b799d713122

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT - SUM( + col1 ) col1 FROM tab1 cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5378
SELECT DISTINCT - SUM ( + col1 ) col1 FROM tab1 cor0
----
-66

query I rowsort
SELECT 89 * - col2 FROM tab1 cor0
----
-5251
-6052
-8544

query II rowsort
SELECT DISTINCT + - 73 AS col2, 45 FROM tab0 AS cor0
----
-73
45

query I rowsort
SELECT DISTINCT 55 + - col2 FROM tab1
----
-13
-4
-41

query I rowsort
SELECT ALL + col2 * + + col1 * + col1 AS col2 FROM tab2
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT DISTINCT - ( + - MAX( - 60 ) ) AS col1 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT - ( + - MAX ( - 60 ) ) AS col1 FROM tab1
----
-60

query I rowsort
SELECT ALL + col1 * - col0 * - col0 + + - 69 + col2 * - - col0 FROM tab0
----
159750
18861
18943

query I rowsort
SELECT - - 40 + - col2 * - 34 - col1 + + col2 FROM tab2 WHERE + ( + 84 ) NOT BETWEEN + - col2 AND + - 54
----
1363
2003
794

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5386
SELECT DISTINCT - 15 + + col2, - CAST( + + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-5
-87
32
-15
84
-97

skipif mysql # not compatible
query II rowsort label-5386
SELECT DISTINCT - 15 + + col2, - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-5
-87
32
-15
84
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + 63 >= + + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5388
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + 33 BETWEEN NULL AND col1 * + - ( col0 ) + 38
----

skipif mysql # not compatible
query I rowsort label-5389
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + 33 BETWEEN NULL AND col1 * + - ( col0 ) + 38
----

query I rowsort
SELECT DISTINCT col0 + + + 31 FROM tab2 AS cor0
----
106
77
95

query I rowsort
SELECT ( - col2 ) * - + col1 * 74 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + 58 + COUNT( * ) FROM tab1 cor0
----
61

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 58 + COUNT ( * ) FROM tab1 cor0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT + + col0 DIV col1 + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5393
SELECT + + col0 / col1 + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 * - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 * - col0 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL - - ( COUNT( * ) ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - - ( COUNT ( * ) ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE - 61 * - ( - col2 ) * - 81 - col0 + - + col2 * - col2 + - col2 <> + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 * - col2 - - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT COUNT( * ) + - AVG ( + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT COUNT ( * ) + - AVG ( + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL + ( MIN( + col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + ( MIN ( + col2 ) ) AS col1 FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col2 FROM tab0 AS cor0
----
65

query I rowsort
SELECT DISTINCT - + 5 AS col2 FROM tab2 cor0
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + 42 ) * - + 65 / col1 * - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - 61 * col1 * - - col2 + - 95 FROM tab0 AS cor0
----
-12818
-232307
-6037

query I rowsort
SELECT ALL 89 AS col1 FROM tab0 cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - - 22 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col1 AND - col2
----

query II rowsort
SELECT ALL - col1 + - - ( - + 51 ), - col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - 46 FROM tab1 cor0
----
-2346
-3910
-4186

onlyif mysql # DIV for integer division: 
query I rowsort label-5408
SELECT ALL - 73 * col1 DIV 32 + - - ( 37 ) AS col2 FROM tab2
----
-115
-138
-79

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - 73 * col1 / 32 + - - ( 37 ) AS col2 FROM tab2
----
-115
-138
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT - 18 * + + COUNT( DISTINCT + 67 ) col2 FROM tab0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5409
SELECT - 18 * + + COUNT ( DISTINCT + 67 ) col2 FROM tab0
----
-18

query I rowsort
SELECT DISTINCT col2 * - + col0 + - 69 * col1 AS col2 FROM tab1
----
-5360
-5862
-9431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5411
SELECT ALL + COUNT( * ) DIV - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + COUNT ( * ) / - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT 4 + + COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT 4 + + COUNT ( * ) FROM tab2
----
7

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col0 AS col2 FROM tab2 cor0
----
2369
4968
5083

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 + - + 52 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT + 22 * + SUM( ALL - + col0 ) + COUNT( * ) AS col2 FROM tab1 WHERE - col1 + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT + 22 * + SUM ( ALL - + col0 ) + COUNT ( * ) AS col2 FROM tab1 WHERE - col1 + + col1 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + + 47 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 + - + 35 + - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( + col0 ) + + col0 AS col2 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab1 cor0
----
58

query I rowsort
SELECT - 37 * 7 AS col1 FROM tab1 AS cor0
----
-259
-259
-259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 10 ) col2 FROM tab2 AS cor0
----
-10
-10
-10

query II rowsort
SELECT col2 AS col0, ( - - col0 ) AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT ALL col0 DIV - 38 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL col0 / - 38 FROM tab1
----
-1
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query II rowsort
SELECT 56 AS col0, - col2 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
56
-102400
56
-24334
56
-252300

query I rowsort
SELECT - 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5427
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col2 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col1 FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5430
SELECT col0 DIV - col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
NULL
-1
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-5430
SELECT col0 / - col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
NULL
-1
NULL
0
NULL

query I rowsort
SELECT + - 94 * + col0 AS col1 FROM tab2 cor0
----
-4324
-6016
-7050

query I rowsort
SELECT ALL - 39 * + col0 FROM tab2 AS cor0
----
-1794
-2496
-2925

query I rowsort
SELECT + + ( + 40 ) + + + col0 FROM tab1 AS cor0
----
125
131
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5434
SELECT - - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 61 * - - col2 FROM tab1
----
3599
4148
5856

query I rowsort
SELECT ALL 14 * - - 73 AS col0 FROM tab0
----
1022
1022
1022

query I rowsort
SELECT + 34 FROM tab2 WHERE + 9 * col2 * - 69 IS NOT NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT - COUNT( * ) + - 68 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-5438
SELECT - COUNT ( * ) + - 68 FROM tab2
----
-71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 53 * + - 89 * + col0 - + - col1 <= NULL
----

query II rowsort
SELECT - 10 AS col1, col2 * - col2 AS col1 FROM tab1 AS cor0
----
-10
-3481
-10
-4624
-10
-9216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - - 48 * col1 FROM tab1 AS cor0
----
20400
205296
34272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5443
SELECT COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5443
SELECT COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - - col1 * 46 FROM tab1 AS cor0
----
2162
230
644

onlyif mysql # DIV for integer division: 
query I rowsort label-5445
SELECT - col2 DIV - + 59 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5445
SELECT - col2 / - + 59 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL CAST( - 87 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-5133
-5916
-8352

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL CAST ( - 87 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-5133
-5916
-8352

query II rowsort
SELECT ALL - 35 * + 21, col1 * - 21 AS col2 FROM tab0 AS cor0
----
-735
-1701
-735
-21
-735
-441

query II rowsort
SELECT + 98, 72 AS col1 FROM tab0 AS cor0
----
98
72
98
72
98
72

query I rowsort
SELECT DISTINCT - 85 * - - ( 79 ) AS col2 FROM tab0 AS cor0
----
-6715

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT ALL col0 DIV 97 + ( + col1 ) + + col0 * + col2 * + 0 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL col0 / 97 + ( + col1 ) + + col0 * + col2 * + 0 AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5451
SELECT - + col1 * 40 AS col0, CAST( NULL AS SIGNED ) * + - col1 * + col1 + + + col2 * - col2 + + 17 AS col2 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5451
SELECT - + col1 * 40 AS col0, CAST ( NULL AS INTEGER ) * + - col1 * + col1 + + + col2 * - col2 + + 17 AS col2 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL + - COUNT( DISTINCT 43 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + - COUNT ( DISTINCT 43 ) AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col1, col2 AS col1 FROM tab1 cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT - - ( - - SUM( + col0 ) ) AS col1 FROM tab2 WHERE NOT 45 - - 31 + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT - - ( - - SUM ( + col0 ) ) AS col1 FROM tab2 WHERE NOT 45 - - 31 + + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5455
SELECT 11 * + CAST( NULL AS SIGNED ) AS col1, ( + 97 ) AS col2 FROM tab0
----
NULL
97
NULL
97
NULL
97

skipif mysql # not compatible
query II rowsort label-5455
SELECT 11 * + CAST ( NULL AS INTEGER ) AS col1, ( + 97 ) AS col2 FROM tab0
----
NULL
97
NULL
97
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab1 cor0 WHERE NOT col1 <= - col1
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL ( + 23 ) + - SUM( ALL + col2 ) AS col0 FROM tab0
----
-133

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL ( + 23 ) + - SUM ( ALL + col2 ) AS col0 FROM tab0
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-5458
SELECT DISTINCT 25 + + col2 DIV + - 88 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT 25 + + col2 / + - 88 FROM tab2
----
25

query I rowsort
SELECT + 70 + - ( + 69 ) AS col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col0 * ( + 3 ) - 82 * + + col2 col2 FROM tab1
----
-5088
-5802
-8011

query I rowsort
SELECT DISTINCT - 21 * 45 FROM tab2 AS cor0
----
-945

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + 72 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 10 * - 67 FROM tab1 AS cor0
----
-670
-670
-670

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT - - col1 DIV 18 col1 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5464
SELECT - - col1 / 18 col1 FROM tab0 AS cor0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - 43 * - COUNT( * ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-5465
SELECT - 43 * - COUNT ( * ) FROM tab1
----
129

query I rowsort
SELECT DISTINCT col2 * - 38 + ( - col2 ) FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5467
SELECT + col2 DIV col2 * - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5467
SELECT + col2 / col2 * - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT MAX( ALL + - 71 ) col1 FROM tab1
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5468
SELECT DISTINCT MAX ( ALL + - 71 ) col1 FROM tab1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT col1 DIV - - col0 - + col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5469
SELECT col1 / - - col0 - + col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - 11 - - col1 AS col0 FROM tab2
----
40
56
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT ALL col2 + col2 - - + col1 DIV col0 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL col2 + col2 - - + col1 / col0 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5472
SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5472
SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST ( col2 AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 >= - - 79
----

query I rowsort
SELECT DISTINCT + col0 + + + col1 + - col0 * - col0 * - + col0 + - col0 AS col1 FROM tab1 cor0
----
-132637
-614120
-753524

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT ALL col1 - - + col2 + - - col1 DIV - - 13 FROM tab0 AS cor0
----
100
134
32

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL col1 - - + col2 + - - col1 / - - 13 FROM tab0 AS cor0
----
100
134
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, + 18 col1 FROM tab0 AS cor0 WHERE ( + 2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL COUNT( * ) * + + COUNT( col2 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL COUNT ( * ) * + + COUNT ( col2 ) AS col0 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5478
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 74 ) * - - col2 / 15 + - CAST( - - ( - + 7 ) AS SIGNED ) + + col2 > 2
----

skipif mysql # not compatible
query III rowsort label-5478
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 74 ) * - - col2 / 15 + - CAST ( - - ( - + 7 ) AS INTEGER ) + + col2 > 2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5479
SELECT DISTINCT - CAST( + 25 AS SIGNED ) DIV + col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT - CAST ( + 25 AS INTEGER ) / + col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5480
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) NOT IN ( + - 53 + + + col0, 34, col0 * + + ( col2 ) + col2, + + col0 )
----

skipif mysql # not compatible
query III rowsort label-5480
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) NOT IN ( + - 53 + + + col0, 34, col0 * + + ( col2 ) + col2, + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab1 cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - ( 15 ) AS col2 FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5483
SELECT - 2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT - 2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT + - SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5484
SELECT + - SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT DISTINCT - + MAX( ( col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - + MAX ( ( col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5486
SELECT ALL * FROM tab1 WHERE NOT + CAST( + - 71 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5486
SELECT ALL * FROM tab1 WHERE NOT + CAST ( + - 71 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL ( - - COUNT( - 82 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL ( - - COUNT ( - 82 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT 53 * col2 + - 51 + col2 + - + col1 * col0 + + col0 * - - 83 FROM tab1 AS cor0
----
6897
8652
9765

query II rowsort
SELECT + - col2 AS col1, - 65 AS col2 FROM tab2 AS cor0
----
-23
-65
-40
-65
-58
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT ALL - COUNT( * ) AS col0, - COUNT( DISTINCT 78 ) FROM tab1 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-5490
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( DISTINCT 78 ) FROM tab1 AS cor0
----
-3
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - 12 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 14 + + col2 * - 78 AS col0 FROM tab1
----
-4588
-5290
-7474

query I rowsort
SELECT + col0 + - col1 + - + 54 AS col1 FROM tab1 AS cor0
----
-10
-17
26

query I rowsort
SELECT + - 85 * + col2 * - 1 - + 37 * - col1 * 90 + + col1 FROM tab0 AS cor0
----
11746
273806
70801

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + MAX( col2 ) + - 35 col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5495
SELECT DISTINCT + MAX ( col2 ) + - 35 col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT - col0 + + col0 + col1 + + 17 * 33 AS col0 FROM tab2 AS cor0
----
612
628
638

query I rowsort
SELECT col1 + + col0 * + ( + col1 ) FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT + col1 + + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL - + MIN( + - col0 ) - COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - + MIN ( + - col0 ) - COUNT ( * ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT - col1 * + col2 + + col1 - + ( col2 ) * - + col2 - + 33 FROM tab0 AS cor0
----
-122
-1550
9670

query I rowsort
SELECT ALL 85 FROM tab1 cor0
----
85
85
85

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 28 - - + col1 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 69 FROM tab0
----
-1449
-5589
-69

query II rowsort
SELECT - - 15, + 91 * + col1 + + - 69 AS col0 FROM tab0 AS cor0
----
15
1842
15
22
15
7302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 AS col1, + 75 * - col2 col1 FROM tab2 AS cor0
----
23
-1725
40
-3000
58
-4350

query II rowsort
SELECT DISTINCT + + col1 + - 43, col2 - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col0 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL MIN( + 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL MIN ( + 91 ) FROM tab2
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT - ( - col1 ) + + col1 DIV - col0 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5510
SELECT - ( - col1 ) + + col1 / - col0 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + 87 + COUNT( * ) AS col1 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 87 + COUNT ( * ) AS col1 FROM tab0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 + 64 AS col2 FROM tab1
----
-32
-4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT DISTINCT - col0 * ( CAST( col0 AS SIGNED ) ) FROM tab1 WHERE - ( + col2 ) NOT IN ( col0 )
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - col0 * ( CAST ( col0 AS INTEGER ) ) FROM tab1 WHERE - ( + col2 ) NOT IN ( col0 )
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT - COUNT( * ) - 67 AS col1 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT - COUNT ( * ) - 67 AS col1 FROM tab1
----
-70

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN - col0 AND col2
----

query I rowsort
SELECT ALL 22 - col0 * 22 FROM tab1
----
-1100
-1848
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5518
SELECT DISTINCT * FROM tab0 WHERE col0 * col1 <> col0 * CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-5518
SELECT DISTINCT * FROM tab0 WHERE col0 * col1 <> col0 * CAST ( NULL AS INTEGER ) + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT DISTINCT col2 DIV + col1 AS col2 FROM tab0 WHERE col2 + - ( col0 ) DIV col0 < ( col2 )
----
0
99

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT col2 / + col1 AS col2 FROM tab0 WHERE col2 + - ( col0 ) / col0 < ( col2 )
----
0
99

query I rowsort
SELECT 45 + ( + col2 + 20 * 92 ) FROM tab2
----
1908
1925
1943

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL IN ( + 14 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 11 col2 FROM tab1
----
-1056
-649
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 87 col2 FROM tab1
----
1218
4089
435

query I rowsort
SELECT col1 * 83 FROM tab0 WHERE col0 * - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - 88 * 94 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT COUNT( * ) + COUNT( * ) * SUM( 13 ) AS col0 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * SUM ( 13 ) AS col0 FROM tab2
----
120

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT - 27 + 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + 15 AS col0 FROM tab1 WHERE NOT col0 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - 9 + + 93 * - MAX( + col1 ) FROM tab1
----
-4380

skipif mysql # not compatible
query I rowsort label-5530
SELECT - 9 + + 93 * - MAX ( + col1 ) FROM tab1
----
-4380

query I rowsort
SELECT ALL ( 60 ) * - 4 AS col1 FROM tab2
----
-240
-240
-240

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( - 33 + col2 ) AND ( col1 )
----

query I rowsort
SELECT ALL 12 + 66 AS col0 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT col0 * + col0 FROM tab1 AS cor0 WHERE col1 * 10 BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 - + col2 ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE ( col1 + - 67 * + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT - MAX( - col0 ) * 9 FROM tab0 WHERE NULL IS NULL
----
135

skipif mysql # not compatible
query I rowsort label-5537
SELECT - MAX ( - col0 ) * 9 FROM tab0 WHERE NULL IS NULL
----
135

query III rowsort
SELECT * FROM tab2 WHERE col0 + + 87 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND ( col2 )
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - + 13 * col1 FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT ALL 64 - 10 AS col0 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT CAST( + col2 AS SIGNED ) + + col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5543
SELECT CAST ( + col2 AS INTEGER ) + + col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT + 51 - - col2 * col1 FROM tab1 AS cor0
----
1395
3247
346

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT DISTINCT - CAST( + 77 AS SIGNED ) AS col2 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT - CAST ( + 77 AS INTEGER ) AS col2 FROM tab1
----
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 96 <> NULL
----

query I rowsort
SELECT col1 - + + ( col1 ) + ( col1 ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5550
SELECT * FROM tab2 WHERE ( - col0 * col2 ) NOT BETWEEN + col2 / CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5550
SELECT * FROM tab2 WHERE ( - col0 * col2 ) NOT BETWEEN + col2 / CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT COUNT( + 65 ) - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT COUNT ( + 65 ) - + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT 41 + - + col1 * - col0 AS col2 FROM tab0
----
1256
138
1868

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) IN ( - 7 )
----

query I rowsort
SELECT col2 * + 54 AS col0 FROM tab0 WHERE col0 * 1 IS NOT NULL
----
2538
5346
540

query I rowsort
SELECT ( - - 48 ) + col0 AS col2 FROM tab0
----
135
145
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT ALL CAST( 91 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL CAST ( 91 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT ALL - 77 + - 27 FROM tab0 WHERE NOT - 70 + 27 IN ( col1 + + col0 )
----
-104
-104
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - MAX( DISTINCT + 40 ) AS col2 FROM tab2, tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5558
SELECT - MAX ( DISTINCT + 40 ) AS col2 FROM tab2, tab1 AS cor0
----
-40

query I rowsort
SELECT + col2 * col0 AS col1 FROM tab1 WHERE NOT ( + 41 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 40 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-40

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL <= 26
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 29 AS col0 FROM tab2 AS cor0 WHERE NOT col0 > + 77 * col2
----
-29
-29
-29

query II rowsort
SELECT DISTINCT + - col2, col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + ( - 24 ) FROM tab0 AS cor0
----
-24
-24
-24

query II rowsort
SELECT + col0 AS col2, - 60 AS col2 FROM tab2 AS cor0
----
46
-60
64
-60
75
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 68 <= + - 23 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT CAST( - ( col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5569
SELECT CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - ( - 19 ) FROM tab1 AS cor0
----
19
19
19

query II rowsort
SELECT + 45, 26 * - col0 + col0 * + 98 AS col1 FROM tab2 AS cor0
----
45
3312
45
4608
45
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + COUNT( * ) + + + MAX( DISTINCT + 21 ) AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + COUNT ( * ) + + + MAX ( DISTINCT + 21 ) AS col1 FROM tab0
----
24

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + ( + + col2 ) AND - 5
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL BETWEEN 52 - col0 AND ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE ( col1 + + ( ( 16 ) ) * + 24 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT DISTINCT 55 + SUM( DISTINCT - - 69 ) AS col1 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT 55 + SUM ( DISTINCT - - 69 ) AS col1 FROM tab2
----
124

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 - - - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5578
SELECT SUM( - CAST( NULL AS SIGNED ) ) + + 66 + MIN( CAST( - 28 AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) + + 66 + MIN ( CAST ( - 28 AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT DISTINCT COUNT( * ) * SUM( - col2 * col1 ) + - SUM( 16 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT COUNT ( * ) * SUM ( - col2 * col1 ) + - SUM ( 16 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( - - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT DISTINCT + 28 DIV + - col1 + + - col0 + col0 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + 28 / + - col1 + + - col0 + col0 FROM tab1
----
-2
-5
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - 99 AS col1 FROM tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT - col1 * + 39 + + 81 AS col2 FROM tab1 AS cor0
----
-114
-1752
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT + + SUM( ALL - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5584
SELECT + + SUM ( ALL - - col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT - 79 * + + col1 * col0 AS col0 FROM tab2 cor0
----
-185334
-389312
-396975

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL - + COUNT( ALL - col2 ) + - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - + COUNT ( ALL - col2 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5587
SELECT - CAST( 22 AS DECIMAL ) + + col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-5587
SELECT - CAST ( 22 AS REAL ) + + col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL 25 * - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
225

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL 25 * - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT DISTINCT - ( + col1 ) + + CAST( - - 5 AS SIGNED ) FROM tab2
----
-46
-62
-72

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - ( + col1 ) + + CAST ( - - 5 AS INTEGER ) FROM tab2
----
-46
-62
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 54 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 + - - col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT ALL - 35 - - - 37 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT - COUNT( * ) DIV + 92 * + 85 + 58 - - + 34 * + 10 AS col1 FROM tab2 AS cor0
----
398

skipif mysql # not compatible
query I rowsort label-5593
SELECT - COUNT ( * ) / + 92 * + 85 + 58 - - + 34 * + 10 AS col1 FROM tab2 AS cor0
----
398

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND ( NULL ) IN ( - col2 + + - col1 )
----

query I rowsort
SELECT - 58 + + - col0 FROM tab2 AS cor0
----
-104
-122
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT - col2 + col0 * - + col0 FROM tab1 cor0
----
-2697
-7284
-8349

query I rowsort
SELECT ALL + col2 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT AVG ( - 90 ) / + AVG ( - col1 - col1 ) FROM tab2 WHERE ( - col1 * - 24 * + 4 ) BETWEEN ( + col2 * col0 ) AND 28
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + col0 + col1 FROM tab0 WHERE - - col1 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT ALL 28 DIV + 52 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5601
SELECT ALL 28 / + 52 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab1, tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT - 95, - COUNT( * ) AS col0 FROM tab0
----
-95
-3

skipif mysql # not compatible
query II rowsort label-5603
SELECT - 95, - COUNT ( * ) AS col0 FROM tab0
----
-95
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5604
SELECT DISTINCT COUNT( * ) DIV + ( COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT COUNT ( * ) / + ( COUNT ( * ) ) FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 86 * - 17 + - ( - - col2 ) ) IN ( + 84 * ( col0 * ( col0 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 col0, + col0 * - col2 AS col1 FROM tab2
----
47
-1058
47
-2560
47
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-5607
SELECT ALL - 41 AS col0, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-41
3

skipif mysql # not compatible
query II rowsort label-5607
SELECT ALL - 41 AS col0, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-41
3

query II rowsort
SELECT + + col0, - col2 * - col0 AS col2 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT ALL - col0 * - col1 DIV + - col1 col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5609
SELECT ALL - col0 * - col1 / + - col1 col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT 39, 78 AS col0 FROM tab0 AS cor0
----
39
78
39
78
39
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 56 + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT + SUM( - 94 ) AS col2 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT + SUM ( - 94 ) AS col2 FROM tab0
----
-282

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5613
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to b031bd4ecaeaa0c0d99b71622d846303

skipif mysql # not compatible
query II rowsort label-5613
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to b031bd4ecaeaa0c0d99b71622d846303

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5614
SELECT CAST( - - col0 AS SIGNED ) * col1 DIV - col1 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5614
SELECT CAST ( - - col0 AS INTEGER ) * col1 / - col1 AS col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT col2 + col2 AS col1, col1 AS col1 FROM tab1 AS cor0
----
118
5
136
47
192
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( - col2 ) AND - col0
----
85
5
59
91
47
68

query II rowsort
SELECT + col2 * + col0 AS col0, - 54 - + 86 AS col1 FROM tab2 AS cor0
----
1058
-140
2560
-140
4350
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * 98 col0, + col2 FROM tab0 cor0
----
-4606
47
-9702
99
-980
10

query II rowsort
SELECT DISTINCT + 13 * - col1 * - 81, col2 * - 18 AS col1 FROM tab0 AS cor0
----
1053
-1782
22113
-180
85293
-846

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5620
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - CAST( - col2 AS SIGNED ) * col2 AND ( ( - - col0 ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-5620
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - CAST ( - col2 AS INTEGER ) * col2 AND ( ( - - col0 ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( 35 + + + col1 + - + col1 / + col2 + + 25 ) NOT BETWEEN NULL AND col2 / - col1 + 28
----
3

skipif mysql # not compatible
query I rowsort label-5621
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( 35 + + + col1 + - + col1 / + col2 + + 25 ) NOT BETWEEN NULL AND col2 / - col1 + 28
----
3

query I rowsort
SELECT DISTINCT 19 + 1 AS col2 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL COUNT( * ) + - ( + 18 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL COUNT ( * ) + - ( + 18 ) FROM tab0
----
-15

query I rowsort
SELECT - ( + + 94 ) FROM tab1
----
-94
-94
-94

query I rowsort
SELECT DISTINCT col0 + + + 51 FROM tab0
----
138
148
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT ALL - + CAST( col0 AS SIGNED ) + + ( + col0 ) - col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - + CAST ( col0 AS INTEGER ) + + ( + col0 ) - col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 WHERE NOT - + 15 * - 22 * + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - + 15 * - 22 * + + col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL >= - 70 OR ( NOT + 0 IS NOT NULL )
----

query I rowsort
SELECT - + ( - 41 ) FROM tab0 cor0
----
41
41
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5630
SELECT ALL - - col0 / + CAST( NULL AS DECIMAL ) + + col2 + - + ( col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - - col0 / + CAST ( NULL AS REAL ) + + col2 + - + ( col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - - col0 ) + + ( + col0 ) - + - col0 FROM tab1 AS cor0
----
153
255
273

query II rowsort
SELECT ALL col0, col2 + 50 AS col1 FROM tab0 cor0
----
15
97
87
60
97
149

query I rowsort
SELECT ALL - col2 * + 34 FROM tab1 AS cor0
----
-2006
-2312
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - + 33 * - 67 + - SUM( DISTINCT + 70 ) * + COUNT( * ) + + 14 + MAX( - - ( col1 ) ) FROM tab0 AS cor0
----
2096

skipif mysql # not compatible
query I rowsort label-5634
SELECT - + 33 * - 67 + - SUM ( DISTINCT + 70 ) * + COUNT ( * ) + + 14 + MAX ( - - ( col1 ) ) FROM tab0 AS cor0
----
2096

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 54 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - - col0 )
----

query II rowsort
SELECT DISTINCT - 17 + - col2, - 35 AS col2 FROM tab2 AS cor0
----
-40
-35
-57
-35
-75
-35

query I rowsort
SELECT DISTINCT col1 * + col2 * + ( + col0 ) - 93 FROM tab1 AS cor0
----
24982
290743
68451

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( col0 - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 7 col0 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT - - col0 * + 15 FROM tab1 cor0
----
1275
1365
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5642
SELECT ALL - SUM( - col1 ) DIV COUNT( * ) * - 2 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - SUM ( - col1 ) / COUNT ( * ) * - 2 FROM tab1
----
-44

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT ALL + col0 + + col1 + col2 * + col2 AS col0 FROM tab2 WHERE - ( + CAST( NULL AS SIGNED ) ) < - - 63 - - col2
----

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + col0 + + col1 + col2 * + col2 AS col0 FROM tab2 WHERE - ( + CAST ( NULL AS INTEGER ) ) < - - 63 - - col2
----

query I rowsort
SELECT DISTINCT 72 * - 90 AS col1 FROM tab2 AS cor0
----
-6480

query I rowsort
SELECT + col0 * - + ( + col2 ) * - + 56 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL + MAX( DISTINCT - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL + MAX ( DISTINCT - col2 ) AS col0 FROM tab0
----
-10

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 98 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + 85 AS col0 FROM tab0
----
1275
7395
8245

query I rowsort
SELECT ALL + 16 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5651
SELECT ALL COUNT( * ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5651
SELECT ALL COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
3
NULL

query I rowsort
SELECT col1 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL + 4 + - COUNT( * ) + 26 AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL + 4 + - COUNT ( * ) + 26 AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT - MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT MIN( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT + SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5656
SELECT + SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 98 * + 89 AS col0 FROM tab2 AS cor0
----
8722
8722
8722

query I rowsort
SELECT ALL - - ( 81 ) FROM tab0 AS cor0
----
81
81
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + + col0
----

query I rowsort
SELECT ALL + col1 + + col2 * col2 + - 33 AS col2 FROM tab2
----
1644
3398
547

query I rowsort
SELECT ( col0 ) + - 40 FROM tab1
----
11
45
51

query I rowsort
SELECT - col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE - 64 = col1
----

query I rowsort
SELECT - ( - col2 ) + - col2 * - col2 AS col1 FROM tab2
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT COUNT( DISTINCT - col2 ) AS col0, 59 FROM tab0
----
3
59

skipif mysql # not compatible
query II rowsort label-5665
SELECT COUNT ( DISTINCT - col2 ) AS col0, 59 FROM tab0
----
3
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT ALL + 40 - + + ( col1 ) DIV 65 - + col2 col1 FROM tab0 AS cor0
----
-59
-8
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5666
SELECT ALL + 40 - + + ( col1 ) / 65 - + col2 col1 FROM tab0 AS cor0
----
-59
-8
30

query I rowsort
SELECT + - 23 AS col0 FROM tab2 cor0
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT + - 86 DIV col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT + - 86 / col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + col2 * + - col2 + + 86 FROM tab0 AS cor0
----
-14
-2123
-9715

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT DISTINCT + 60 DIV - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 72 IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT + 60 / - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 72 IS NULL
----
-1
0

query I rowsort
SELECT col1 - - - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 35 + - ( 38 ) FROM tab2
----
-73
-73
-73

query I rowsort
SELECT DISTINCT 22 - - col0 FROM tab0
----
109
119
37

query I rowsort
SELECT ALL 79 - + col2 + 15 FROM tab2 AS cor0
----
36
54
71

query II rowsort
SELECT - 24, - col0 * - 11 AS col2 FROM tab1 AS cor0
----
-24
1001
-24
561
-24
935

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT DISTINCT + - col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + - col2 / + col2 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 0 FROM tab1 AS cor0 WHERE NULL <= col1 / - col2
----

query I rowsort
SELECT DISTINCT - + 75 FROM tab0 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5680
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( - 19 AS SIGNED ) - - + 74 * - ( + + 89 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5680
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( - 19 AS INTEGER ) - - + 74 * - ( + + 89 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT - CAST( NULL AS SIGNED ) * 2 * 61 / COUNT( * ) / COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT - CAST ( NULL AS INTEGER ) * 2 * 61 / COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5682
SELECT col0 DIV + 2, - col1 + + ( - + col2 ) col2 FROM tab2
----
23
-74
32
-117
37
-125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5682
SELECT col0 / + 2, - col1 + + ( - + col2 ) col2 FROM tab2
----
23
-74
32
-117
37
-125

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT - col2 / + + col2 * + col1 IS NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + col2 >= NULL
----

query I rowsort
SELECT DISTINCT + - 11 AS col2 FROM tab2 cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT DISTINCT - col1 * + - col0 + - col0 + ( - 59 ) DIV + 17 + col1 FROM tab1 cor0
----
342
4230
674

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT - col1 * + - col0 + - col0 + ( - 59 ) / + 17 + col1 FROM tab1 cor0
----
342
4230
674

query I rowsort
SELECT ALL + 56 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 45 ) AS col1 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL + ( - - COUNT( + + 36 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL + ( - - COUNT ( + + 36 ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( ( + ( + col2 ) ) ) FROM tab1
----
59
68
96

query II rowsort
SELECT col2 AS col0, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT CAST( + - ( col0 ) AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5693
SELECT CAST ( + - ( col0 ) AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5694
SELECT 90 AS col1, - MAX( - col0 ) * + 56 AS col1 FROM tab2
----
90
2576

skipif mysql # not compatible
query II rowsort label-5694
SELECT 90 AS col1, - MAX ( - col0 ) * + 56 AS col1 FROM tab2
----
90
2576

query II rowsort
SELECT DISTINCT - 75 AS col0, + col1 FROM tab0
----
-75
1
-75
21
-75
81

query II rowsort
SELECT + col1 - + 22 AS col0, col0 FROM tab0
----
-1
87
-21
97
59
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT ALL 95 DIV - col2 + + col0 AS col0 FROM tab0
----
13
78
97

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL 95 / - col2 + + col0 AS col0 FROM tab0
----
13
78
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( + col1 ) AS col0, + col0 col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL - 64 - - 4 + - col2 AS col1 FROM tab1 cor0
----
-119
-128
-156

query II rowsort
SELECT + 2 * col1, 35 + + 15 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
10
109
28
146
94
118

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab2 WHERE NOT - col0 * - 63 - col1 NOT BETWEEN + 63 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - + MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5702
SELECT - + MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL <= col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 42 col2 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5706
SELECT DISTINCT - ( COUNT( * ) ) AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5706
SELECT DISTINCT - ( COUNT ( * ) ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT - col2 * - + col0 + + col2 FROM tab0 AS cor0
----
752
880
9702

query II rowsort
SELECT col0 AS col1, + col1 * + col0 AS col0 FROM tab0
----
15
1215
87
1827
97
97

query III rowsort
SELECT * FROM tab0 WHERE NOT 91 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT - COUNT( DISTINCT + 16 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5710
SELECT - COUNT ( DISTINCT + 16 ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT CAST( 13 AS SIGNED ) FROM tab0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-5711
SELECT CAST ( 13 AS INTEGER ) FROM tab0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT DISTINCT + 17 * + - COUNT( * ) * - 33 FROM tab2
----
1683

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + 17 * + - COUNT ( * ) * - 33 FROM tab2
----
1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT col1 * CAST( + + 8 AS SIGNED ) FROM tab2
----
408
536
616

skipif mysql # not compatible
query I rowsort label-5713
SELECT col1 * CAST ( + + 8 AS INTEGER ) FROM tab2
----
408
536
616

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT + COUNT( * ) col2, 56 FROM tab1 AS cor0
----
3
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5715
SELECT + COUNT ( * ) col2, 56 FROM tab1 AS cor0
----
3
56

query I rowsort
SELECT ALL - col2 * + 7 FROM tab1
----
-413
-476
-672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT col2 * - col1 - col1 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT + + CAST( NULL AS SIGNED ) * + - COUNT( DISTINCT - - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT + + CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 52 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT ALL - - ( - + col2 ) * - - col1 * - 15 AS col0 FROM tab1 AS cor0
----
20160
4425
47940

query I rowsort
SELECT - col0 + - 9 + col1 FROM tab1 AS cor0
----
-46
-53
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT COUNT( * ) + - + COUNT( DISTINCT + + col1 ) + + + COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5723
SELECT COUNT ( * ) + - + COUNT ( DISTINCT + + col1 ) + + + COUNT ( * ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT - col0 * + CAST( NULL AS SIGNED ) + - col0 + - 97 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT - col0 * + CAST ( NULL AS INTEGER ) + - col0 + - 97 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 91 + col2 - 97 FROM tab0 AS cor0
----
4
41
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT col1 + + col1 + + CAST( NULL AS SIGNED ) + + 96 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT col1 + + col1 + + CAST ( NULL AS INTEGER ) + + 96 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT col1 <> - - 0 * ( + col2 ) )
----

query II rowsort
SELECT DISTINCT + col0, + col1 AS col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5729
SELECT CAST( NULL AS SIGNED ) + - - col0 * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT CAST ( NULL AS INTEGER ) + - - col0 * - - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 98 BETWEEN - + col2 AND + col1
----
97
1
99

query I rowsort
SELECT DISTINCT + 79 + - col2 AS col0 FROM tab0
----
-20
32
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - + 62 BETWEEN + col1 * + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - + 62 BETWEEN + col1 * + col0 AND NULL
----
0

query I rowsort
SELECT - + col1 + + 42 - + col0 * - - col0 FROM tab0 WHERE - + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT ALL col1 DIV - 90 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL col1 / - 90 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + ( col1 ) - - 1 + col0 FROM tab2
----
144
206
218

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + + col1 + - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 77 - col2 FROM tab1
----
-19
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL + COUNT( * ) * - 85 + COUNT( - 66 ) col1 FROM tab2
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5738
SELECT ALL + COUNT ( * ) * - 85 + COUNT ( - 66 ) col1 FROM tab2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT MIN( DISTINCT - col0 ) col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5739
SELECT MIN ( DISTINCT - col0 ) col0 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 > + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT + COUNT( DISTINCT col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + COUNT ( DISTINCT col0 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 / 62 AND 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 / + + 23 * + CAST( NULL AS SIGNED ) * + 54 + col2 * + - ( - 97 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5743
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 / + + 23 * + CAST ( NULL AS INTEGER ) * + 54 + col2 * + - ( - 97 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - 91 FROM tab2 AS cor0
----
-51
-91
-67
-91
-77
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT + 53 col1, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
53
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5745
SELECT + 53 col1, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
53
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT + 34 DIV MIN( 78 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 34 / MIN ( 78 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT col1 AS col2, + col2 + - 62 AS col1 FROM tab1 AS cor0
----
14
34
47
6
5
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT - 48 + - MAX( DISTINCT + 9 ) FROM tab1 AS cor0 WHERE + 17 * + - col0 / + col0 IS NOT NULL
----
-57

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT - 48 + - MAX ( DISTINCT + 9 ) FROM tab1 AS cor0 WHERE + 17 * + - col0 / + col0 IS NOT NULL
----
-57

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col0 AS col1, 80 * col1 * + col2 col1 FROM tab2
----
-1058
93840
-2560
246400
-4350
310880

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT DISTINCT - SUM( + 4 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT - SUM ( + 4 ) FROM tab2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT ALL - + AVG ( ALL + 39 ) AS col1 FROM tab0 WHERE - col2 * - + CAST( NULL AS SIGNED ) - + ( col2 ) * 54 / + + col1 NOT BETWEEN col1 * + col1 / - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL - + AVG ( ALL + 39 ) AS col1 FROM tab0 WHERE - col2 * - + CAST ( NULL AS INTEGER ) - + ( col2 ) * 54 / + + col1 NOT BETWEEN col1 * + col1 / - col0 AND NULL
----
NULL

query I rowsort
SELECT col0 * ( + - 8 ) AS col1 FROM tab0
----
-120
-696
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col2 FROM tab1 cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5755
SELECT DISTINCT - ( - ( - 43 ) ) + COUNT( * ) DIV COUNT( * ) col0 FROM tab2
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5755
SELECT DISTINCT - ( - ( - 43 ) ) + COUNT ( * ) / COUNT ( * ) col0 FROM tab2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL 41 * - COUNT( * ) * - MIN( + - 44 ) + - + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL 41 * - COUNT ( * ) * - MIN ( + - 44 ) + - + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * - - 66 FROM tab1 AS cor0
----
3894
4488
6336

query I rowsort
SELECT DISTINCT + col2 - - - 52 FROM tab0 AS cor0
----
-42
-5
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL + 19 DIV - 55 - - col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + 19 / - 55 - - col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + col2 * - + col1 AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5761
SELECT ALL MIN( DISTINCT 57 ) DIV + 7 AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL MIN ( DISTINCT 57 ) / + 7 AS col2 FROM tab1 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 * + 67 col1 FROM tab0
----
2278

query I rowsort
SELECT col2 - + - 55 + - col1 - 42 * - col0 FROM tab1
----
2279
3679
3898

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 11 * - - 1 * + 9 AND + col1 - col2
----

query I rowsort
SELECT col2 * - col1 * - col1 + + + col2 FROM tab0 WHERE + - col1 / col1 IS NOT NULL
----
198
308414
4420

query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab2, tab1 cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT - col0 - - CAST( - - 8 AS SIGNED ) FROM tab0
----
-7
-79
-89

skipif mysql # not compatible
query I rowsort label-5767
SELECT - col0 - - CAST ( - - 8 AS INTEGER ) FROM tab0
----
-7
-79
-89

query I rowsort
SELECT DISTINCT + col0 * - 99 AS col1 FROM tab0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT ALL 18 DIV - SUM( col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL 18 / - SUM ( col1 ) FROM tab2
----
0

query I rowsort
SELECT + 98 + + 64 - + col0 FROM tab1
----
111
71
77

query I rowsort
SELECT ALL + col2 + - - col0 + col2 * - 62 AS col2 FROM tab0
----
-2852
-523
-5942

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 9 * + 72 IS NULL
----

query I rowsort
SELECT DISTINCT - + 27 AS col2 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5774
SELECT ALL - COUNT( * ) AS col1, + 77 AS col2 FROM tab1 AS cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-5774
SELECT ALL - COUNT ( * ) AS col1, + 77 AS col2 FROM tab1 AS cor0
----
-3
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT - CAST( ( - col2 ) AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5775
SELECT - CAST ( ( - col2 ) AS INTEGER ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL - MIN( DISTINCT 19 ) col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT ALL - MIN ( DISTINCT 19 ) col0 FROM tab2 AS cor0
----
-19

query II rowsort
SELECT ALL 86 AS col1, + col0 FROM tab2
----
86
46
86
64
86
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + COUNT( ALL + ( + + col2 ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5778
SELECT + COUNT ( ALL + ( + + col2 ) ) col1 FROM tab1
----
3

query I rowsort
SELECT ALL + 16 + + 39 FROM tab0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( - col1 ) col0 FROM tab2 WHERE NOT + col1 * + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-15
-87
-97

query I rowsort
SELECT col1 * - 60 FROM tab1 cor0
----
-2820
-300
-840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5783
SELECT ALL * FROM tab1 AS cor0 WHERE 89 NOT BETWEEN - col0 * ( + - col0 ) + - ( + col2 ) - CAST( NULL AS SIGNED ) + + 68 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5783
SELECT ALL * FROM tab1 AS cor0 WHERE 89 NOT BETWEEN - col0 * ( + - col0 ) + - ( + col2 ) - CAST ( NULL AS INTEGER ) + + 68 AND NULL
----

query I rowsort
SELECT ALL 12 + + + 0 + - col1 + 61 * 62 * + col1 AS col1 FROM tab2
----
192843
253339
291149

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 11 - + - 98 + + + 4 * - + ( + 12 ) + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT 99 * - - 50 - + - MIN( DISTINCT + 95 ) AS col0 FROM tab2
----
5045

skipif mysql # not compatible
query I rowsort label-5786
SELECT 99 * - - 50 - + - MIN ( DISTINCT + 95 ) AS col0 FROM tab2
----
5045

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE - col0 = NULL
----

query II rowsort
SELECT DISTINCT - 11 - - col0 AS col1, col0 FROM tab2
----
35
46
53
64
64
75

query I rowsort
SELECT ALL + + 24 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2025
-25
-525

query I rowsort
SELECT - 18 + 5 AS col0 FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT DISTINCT MIN( DISTINCT - 88 ) + - COUNT( * ) * 32 FROM tab2 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT MIN ( DISTINCT - 88 ) + - COUNT ( * ) * 32 FROM tab2 AS cor0
----
-184

query I rowsort
SELECT ALL - ( + col2 ) - - 87 * col1 AS col0 FROM tab1 AS cor0
----
1122
376
4021

query I rowsort
SELECT + col1 + 43 FROM tab0 AS cor0
----
124
44
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5794
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 54 * - col2, + CAST( + col0 AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-5794
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 54 * - col2, + CAST ( + col0 AS INTEGER ), col0 )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 + + 84 * - col1 FROM tab0 AS cor0
----
-1743
-6723
-83

query I rowsort
SELECT ALL - col0 * + - 27 + - col2 + + 27 FROM tab1 AS cor0
----
1308
2263
2416

query I rowsort
SELECT ALL ( + col1 ) + - col0 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT - 15 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT - 15 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ( - + ( + ( - col0 ) ) ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT - COUNT( * ) DIV + 31 * MAX( + col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5801
SELECT - COUNT ( * ) / + 31 * MAX ( + col0 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT + + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) + + + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT DISTINCT + + SUM( col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT + + SUM ( col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL col0 * + + ( - 57 ) * + col0 - + col0 FROM tab0 AS cor0
----
-12840
-431520
-536410

query I rowsort
SELECT DISTINCT + - 14 FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + ( - 73 ) ), 36, - - col1 * - + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + 84 + 20 * - col2 - + 23 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT DISTINCT + col2 DIV + 28 AS col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT + col2 / + 28 AS col2 FROM tab2 AS cor0
----
0
1
2

query II rowsort
SELECT DISTINCT + col2, - 44 + + + 50 + + 31 FROM tab0
----
10
37
47
37
99
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5810
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) + + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5810
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5811
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) >= + col2
----

skipif mysql # not compatible
query III rowsort label-5811
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) >= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT DISTINCT ( col2 ) DIV + col0 + + - 63 + col1 + + + 79 - - + col2 DIV + col1 AS col0 FROM tab1
----
32
37
64

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT ( col2 ) / + col0 + + - 63 + col1 + + + 79 - - + col2 / + col1 AS col0 FROM tab1
----
32
37
64

query III rowsort
SELECT * FROM tab1 WHERE + - col1 + + - 26 + - col2 * + col2 < - 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN ( NULL ) AND - col0 * - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT ALL + CAST( NULL AS SIGNED ) + + - 67 + - ( 4 ) - - + col2 + 53 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 67 + - ( 4 ) - - + col2 + 53 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 77 + col2 AS col0, 90 * - col2 AS col1 FROM tab0
----
-30
-4230
-67
-900
22
-8910

query I rowsort
SELECT DISTINCT + col1 - 72 AS col2 FROM tab1
----
-25
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + 8 + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 * 25 * + col2 * - - 86 IN ( + - 47 )
----
8

skipif mysql # not compatible
query I rowsort label-5818
SELECT + 8 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 * 25 * + col2 * - - 86 IN ( + - 47 )
----
8

query I rowsort
SELECT DISTINCT + col0 + + col2 * + + 98 * - + col1 AS col0 FROM tab1 AS cor0
----
-131661
-28825
-313117

onlyif mysql # aggregate syntax: 
query II rowsort label-5820
SELECT + 74, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
74
3

skipif mysql # not compatible
query II rowsort label-5820
SELECT + 74, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5821
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL + col0 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - - col0 col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT + col1 - + + col0 DIV + col0 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5824
SELECT + col1 - + + col0 / + col0 FROM tab2
----
50
66
76

query I rowsort
SELECT col0 * - 8 * 83 AS col1 FROM tab0
----
-57768
-64408
-9960

query I rowsort
SELECT ALL - 40 * - 53 FROM tab0
----
2120
2120
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT COUNT( * ) * 98 * + - 21 AS col1 FROM tab1
----
-6174

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT COUNT ( * ) * 98 * + - 21 AS col1 FROM tab1
----
-6174

onlyif mysql # DIV for integer division: 
query II rowsort label-5828
SELECT + 73 DIV - - col1 AS col0, + 38 FROM tab1
----
1
38
14
38
5
38

skipif mysql # not compatible
query II rowsort label-5828
SELECT + 73 / - - col1 AS col0, + 38 FROM tab1
----
1
38
14
38
5
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5829
SELECT * FROM tab1 WHERE NOT col0 - - col1 IN ( + CAST( NULL AS SIGNED ) + 49, col0 + ( col1 ), + col1, + - col2 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-5829
SELECT * FROM tab1 WHERE NOT col0 - - col1 IN ( + CAST ( NULL AS INTEGER ) + 49, col0 + ( col1 ), + col1, + - col2 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT - 39 DIV + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 39 / + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - - 52 * - col2 FROM tab0 cor0
----
-2444
-5148
-520

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 25 <= - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT DISTINCT - COUNT( + - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT - COUNT ( + - col2 ) FROM tab1 AS cor0
----
-3

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NOT NULL IS NULL, tab2 AS cor2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 14 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 47 AS col1, col1 + - 12 AS col1 FROM tab2 cor0
----
-47
39
-47
55
-47
65

query II rowsort
SELECT DISTINCT col2, ( + ( 26 ) ) FROM tab1 AS cor0
----
59
26
68
26
96
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5839
SELECT 30 AS col1, - MIN( ( 49 ) ) FROM tab0 AS cor0
----
30
-49

skipif mysql # not compatible
query II rowsort label-5839
SELECT 30 AS col1, - MIN ( ( 49 ) ) FROM tab0 AS cor0
----
30
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT - MIN( DISTINCT 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5840
SELECT - MIN ( DISTINCT 91 ) FROM tab0 AS cor0
----
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT + ( col0 ) DIV + 53 + - col1 DIV + 42 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5842
SELECT + ( col0 ) / + 53 + - col1 / + 42 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT + ( - - 43 ) * - 33 * 37 AS col0 FROM tab0 AS cor0
----
-52503
-52503
-52503

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT - - col2 DIV + ( - + col1 ) FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5844
SELECT - - col2 / + ( - + col1 ) FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT - COUNT( * ) + 49 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - COUNT ( * ) + 49 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE NOT + 53 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE NOT + 53 < NULL
----
0

query I rowsort
SELECT - - 19 * + - 49 + 1 * ( col1 ) + + - col0 FROM tab0 AS cor0
----
-1027
-865
-997

query I rowsort
SELECT - + col1 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1122
3003
3819

query II rowsort
SELECT ALL col1 + - col2 AS col0, col0 FROM tab2
----
28
46
37
64
9
75

query I rowsort
SELECT ALL - + 86 FROM tab1 WHERE NOT + - 99 IS NULL
----
-86
-86
-86

query I rowsort
SELECT ALL - 86 AS col1 FROM tab0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * col1 col2, + col2 AS col1 FROM tab0
----
1
99
441
10
6561
47

query II rowsort
SELECT - 7, - col1 + - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-7
-110
-7
-115
-7
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE ( NULL ) > ( - - col0 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5855
SELECT * FROM tab1 AS cor0 WHERE - 74 * col2 + CAST( NULL AS SIGNED ) * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5855
SELECT * FROM tab1 AS cor0 WHERE - 74 * col2 + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 91 + + col0 FROM tab1
----
142
176
182

query I rowsort
SELECT DISTINCT + 1 - - - col0 AS col0 FROM tab1
----
-50
-84
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 51 + + + col2 col0 FROM tab0 cor0
----
150
61
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + 17 + - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-5859
SELECT + 17 + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
14

query I rowsort
SELECT + + 67 * + col2 + + col1 + - col1 FROM tab2 AS cor0
----
1541
2680
3886

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 37 * 87 / - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5862
SELECT * FROM tab2 WHERE NOT - CAST( - 15 AS DECIMAL ) NOT BETWEEN - CAST( col2 AS SIGNED ) AND + col0 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5862
SELECT * FROM tab2 WHERE NOT - CAST ( - 15 AS REAL ) NOT BETWEEN - CAST ( col2 AS INTEGER ) AND + col0 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5863
SELECT DISTINCT 51 AS col2, - COUNT( * ) FROM tab1
----
51
-3

skipif mysql # not compatible
query II rowsort label-5863
SELECT DISTINCT 51 AS col2, - COUNT ( * ) FROM tab1
----
51
-3

query I rowsort
SELECT ALL col0 * - - 72 FROM tab1
----
3672
6120
6552

query II rowsort
SELECT + col2 AS col0, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL + + col2 AS col2, col0 * + 19 AS col1 FROM tab2 AS cor0
----
23
874
40
1216
58
1425

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 73 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - + 15 AS col0, - 26 FROM tab1 AS cor0
----
-15
-26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - + 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5870
SELECT - CAST( NULL AS SIGNED ) + - 1 / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT - CAST ( NULL AS INTEGER ) + - 1 / + COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + - col0 + + col0 AS col0, col0 * + col1 + + - col2 + - + col0 FROM tab1 AS cor0
----
0
281
0
4118
0
567

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 31 * + 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 43 AND - col2 / - - 72
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE ( ( + 1 IS NULL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT MIN( DISTINCT - 96 ) AS col0 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-5877
SELECT MIN ( DISTINCT - 96 ) AS col0 FROM tab2
----
-96

query II rowsort
SELECT col2, col0 - col1 AS col0 FROM tab2
----
23
-5
40
-13
58
8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5879
SELECT col1 * - col2 - - 98 AS col1, 75 * + col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
-1075
NULL
-2982
NULL
-3788
NULL

skipif mysql # not compatible
query II rowsort label-5879
SELECT col1 * - col2 - - 98 AS col1, 75 * + col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
-1075
NULL
-2982
NULL
-3788
NULL

query I rowsort
SELECT - 18 * col1 - col1 AS col1 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT - 0 + + col1 - - - 90 FROM tab1 cor0
----
-43
-76
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 59 + + col1 AS col0 FROM tab0 AS cor0
----
-38
-58
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5884
SELECT ALL * FROM tab0 WHERE NOT ( 52 * + 38 / - ( + CAST( NULL AS SIGNED ) ) ) >= 67
----

skipif mysql # not compatible
query III rowsort label-5884
SELECT ALL * FROM tab0 WHERE NOT ( 52 * + 38 / - ( + CAST ( NULL AS INTEGER ) ) ) >= 67
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT SUM( DISTINCT 62 ) * 7 + COUNT( * ) + 86 DIV + MAX( DISTINCT - col2 ) + - COUNT( * ) - - SUM( ALL + ( + - 57 ) ) FROM tab2
----
260

skipif mysql # not compatible
query I rowsort label-5885
SELECT SUM ( DISTINCT 62 ) * 7 + COUNT ( * ) + 86 / + MAX ( DISTINCT - col2 ) + - COUNT ( * ) - - SUM ( ALL + ( + - 57 ) ) FROM tab2
----
260

query I rowsort
SELECT DISTINCT + - col1 * col1 AS col0 FROM tab2 AS cor0 WHERE + col2 + - col0 IS NOT NULL
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL >= + col2 * - - col2 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5888
SELECT + ( - CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5888
SELECT + ( - CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT DISTINCT - col0 / + CAST( - col1 AS SIGNED ) + - + col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND 85 * - col2
----

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT - col0 / + CAST ( - col1 AS INTEGER ) + - + col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND 85 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col0 FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL - + MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL - + MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT - SUM( ALL + - col1 ) col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5892
SELECT DISTINCT - SUM ( ALL + - col1 ) col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL - COUNT( ALL - + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - COUNT ( ALL - + col0 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT COUNT( ALL + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT COUNT ( ALL + col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 97 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN 33 AND + + col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5897
SELECT - SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 3 + - - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5899
SELECT ALL - COUNT( * ), 96 AS col1 FROM tab1 AS cor0
----
-3
96

skipif mysql # not compatible
query II rowsort label-5899
SELECT ALL - COUNT ( * ), 96 AS col1 FROM tab1 AS cor0
----
-3
96

query II rowsort
SELECT + - col0 AS col2, - col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT ALL + 30 * - col0 * - 85 + ( + col0 ) DIV + - col0 * + col1 DIV 49 AS col1 FROM tab2 AS cor0
----
117299
163199
191249

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + 30 * - col0 * - 85 + ( + col0 ) / + - col0 * + col1 / 49 AS col1 FROM tab2 AS cor0
----
117299
163199
191249

query I rowsort
SELECT ALL 71 * - 96 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col0 FROM tab0 cor0
----
73
73
73

onlyif mysql # DIV for integer division: 
query II rowsort label-5904
SELECT DISTINCT - col1 AS col1, - col1 DIV + + col1 FROM tab0 AS cor0
----
-1
-1
-21
-1
-81
-1

skipif mysql # not compatible
query II rowsort label-5904
SELECT DISTINCT - col1 AS col1, - col1 / + + col1 FROM tab0 AS cor0
----
-1
-1
-21
-1
-81
-1

query I rowsort
SELECT - 4 + + col1 AS col1 FROM tab0 AS cor0
----
-3
17
77

query I rowsort
SELECT ALL - 77 - + - col0 FROM tab2 AS cor0 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT - col0 FROM tab2 WHERE - + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 40 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 40 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 / + 60 col1 FROM tab1 WHERE - col1 <> NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN col1 * - 48 AND + col0 )
----

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 WHERE - ( + 87 ) < + col1
----
59
68
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN 81 + + - col0 + - + 91 AND 87
----

query I rowsort
SELECT DISTINCT - 98 - col1 FROM tab1 AS cor0
----
-103
-112
-145

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 cor0 WHERE NOT ( col2 ) - col2 + - 47 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( col2 ) + - 12 + + col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT - 12 DIV - col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5917
SELECT - 12 / - col1 FROM tab1
----
0
0
2

query I rowsort
SELECT 83 * col0 AS col1 FROM tab0
----
1245
7221
8051

query I rowsort
SELECT - 36 FROM tab1 cor0 WHERE NOT NULL <= - col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT + + MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + + MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE + col1 IN ( + col0 + + + col0, - 12 * 11 )
----

query I rowsort
SELECT ALL 85 AS col2 FROM tab0 cor0
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT DISTINCT + - 85 DIV col2 FROM tab0 cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + - 85 / col2 FROM tab0 cor0
----
-1
-8
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - 57 ) - 98 + - col0 / - + 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT + col1 - + col0 AS col2 FROM tab1 WHERE NOT + col0 + col2 * - CAST( + + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5925
SELECT + col1 - + col0 AS col2 FROM tab1 WHERE NOT + col0 + col2 * - CAST ( + + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL + MAX( 76 ) col0 FROM tab0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5926
SELECT ALL + MAX ( 76 ) col0 FROM tab0
----
76

query I rowsort
SELECT - col0 * + - ( - col2 ) AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + 60 * - col1 FROM tab1
----
-2820
-300
-840

query II rowsort
SELECT DISTINCT - col1 * + - col0 AS col1, 32 AS col1 FROM tab2 AS cor0
----
2346
32
4928
32
5025
32

query I rowsort
SELECT DISTINCT - 38 + - 52 FROM tab0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5931
SELECT ALL + CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col0 / - col0 * + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + + 39 / - col2 <> NULL
----

query I rowsort
SELECT DISTINCT + - 76 * - 19 * - - col0 * + + 57 FROM tab2 cor0
----
3786168
5267712
6173100

query I rowsort
SELECT ALL - 4 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT ALL + COUNT( * ) * - 53 AS col1 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL + COUNT ( * ) * - 53 AS col1 FROM tab1 AS cor0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - + col1 + + + 13 AS col2 FROM tab1 AS cor0
----
-12
-183
-2196

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - + col1 + + + 13 AS col2 FROM tab1 AS cor0
----
-12
-183
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT + MAX( + - 57 ) AS col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT + MAX ( + - 57 ) AS col1 FROM tab1 AS cor0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT - 73 DIV + - ( + + col2 ) + + ( - col2 ) FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-5939
SELECT - 73 / + - ( + + col2 ) + + ( - col2 ) FROM tab1 AS cor0
----
-58
-67
-96

query II rowsort
SELECT col0 AS col2, + col0 * + - col0 FROM tab2 WHERE - col2 IS NOT NULL
----
46
-2116
64
-4096
75
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 0 ) + - col0 col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL 35 - - 42 AS col0 FROM tab2
----
77
77
77

query I rowsort
SELECT col0 + - 39 FROM tab1
----
12
46
52

query I rowsort
SELECT ALL 88 + - + ( col2 ) FROM tab2
----
30
48
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 87 + 43 + + col0 col1 FROM tab1
----
-1124
-307
-3955

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT + MAX( ALL + col1 ) * + MAX( ALL col1 ) AS col2 FROM tab2 cor0
----
5929

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + MAX ( ALL + col1 ) * + MAX ( ALL col1 ) AS col2 FROM tab2 cor0
----
5929

query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + ( - 41 ) AS col0 FROM tab1
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + MAX( - col1 ) FROM tab1 WHERE NOT + col2 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-5949
SELECT + MAX ( - col1 ) FROM tab1 WHERE NOT + col2 IS NULL
----
-5

query II rowsort
SELECT + col0 AS col0, + 52 FROM tab1
----
51
52
85
52
91
52

query II rowsort
SELECT col2, 39 FROM tab0
----
10
39
47
39
99
39

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col0 + col0 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5954
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT 84 + 68 AS col1 FROM tab1
----
152
152
152

query I rowsort
SELECT col2 * 15 AS col2 FROM tab1
----
1020
1440
885

query I rowsort
SELECT DISTINCT col1 * - col1 + + ( + col2 ) AS col1 FROM tab1
----
-100
-2141
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 71 col0 FROM tab1
----
4189
4828
6816

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 55 )
----

query I rowsort
SELECT + 74 * - col1 FROM tab1
----
-1036
-3478
-370

query III rowsort
SELECT ALL * FROM tab2 WHERE - 9 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + + col0 * - col0 col1 FROM tab1
----
-2509
-7133
-8189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT + col1 * 53 + 99 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5964
SELECT + col1 * 53 + 99 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5965
SELECT ALL 59 * CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL 59 * CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT col0 DIV 29 + col1 FROM tab1
----
15
50
7

skipif mysql # not compatible
query I rowsort label-5966
SELECT col0 / 29 + col1 FROM tab1
----
15
50
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col0 FROM tab2
----
86

query I rowsort
SELECT ALL + 72 * + 81 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < 33
----

query I rowsort
SELECT - col0 * 39 + + ( - col0 ) FROM tab2
----
-1840
-2560
-3000

query III rowsort
SELECT * FROM tab0 WHERE col2 + + 30 = NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( - 43 + col2 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * - col1 + + col0 AS col0 FROM tab0
----
-1200
-1740
0

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( 66 )
----

query I rowsort
SELECT - ( 7 ) FROM tab2
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5976
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 AND ( CAST( NULL AS SIGNED ) / + col2 )
----

skipif mysql # not compatible
query III rowsort label-5976
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 AND ( CAST ( NULL AS INTEGER ) / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT MAX( - 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT MAX ( - 98 ) FROM tab1
----
-98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 4 * col0 + + col0 NOT BETWEEN 62 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5979
SELECT * FROM tab1 WHERE CAST( - 53 AS SIGNED ) >= + col1
----

skipif mysql # not compatible
query III rowsort label-5979
SELECT * FROM tab1 WHERE CAST ( - 53 AS INTEGER ) >= + col1
----

query I rowsort
SELECT ( + col2 ) FROM tab0 AS cor0 WHERE col0 - 56 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - ( - COUNT( * ) ) col2 FROM tab2 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-5981
SELECT - ( - COUNT ( * ) ) col2 FROM tab2 cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * 14 col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( ( col2 ) * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5985
SELECT CAST( col2 AS DECIMAL ) * col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-5985
SELECT CAST ( col2 AS REAL ) * col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT DISTINCT + MAX( col1 ) FROM tab2 AS cor0 WHERE ( 10 ) = + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT + MAX ( col1 ) FROM tab2 AS cor0 WHERE ( 10 ) = + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT ALL - col1 * + 81 FROM tab2
----
-4131
-5427
-6237

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( col0 ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT - CAST( col0 AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-5990
SELECT - CAST ( col0 AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT ALL 52 * - col0 AS col0 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + 32 * - COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 32 * - COUNT ( * ) FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT + MAX( - col2 ) + + MAX( col0 ) * + ( 45 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT + MAX ( - col2 ) + + MAX ( col0 ) * + ( 45 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( 6 * + col0 - 96 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 53 col2 FROM tab0
----
134
54
74

query III rowsort
SELECT ALL * FROM tab1 WHERE - 15 + + col2 IS NULL
----

query I rowsort
SELECT ALL - ( 32 ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT ALL - col1 + - - col0 DIV 63 FROM tab0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - col1 + - - col0 / 63 FROM tab0
----
-20
-81
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5999
SELECT ALL - COUNT( * ) DIV - COUNT( * ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5999
SELECT ALL - COUNT ( * ) / - COUNT ( * ) col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = col2 + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col0 IN ( col2 / + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT ALL 37 DIV + col0 * col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL 37 / + col0 * col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN ( + 66 * + 28 - + 1 ) AND ( + col0 + + ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT DISTINCT col1 DIV - + ( ( + 68 ) ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6004
SELECT DISTINCT col1 / - + ( ( + 68 ) ) col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 62 IN ( - 12 + col1 )
----

query I rowsort
SELECT ALL + 81 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = ( col1 ) AND col1 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT SUM( DISTINCT - + col2 ) * COUNT( ALL 18 ) AS col1 FROM tab1 cor0
----
-669

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT SUM ( DISTINCT - + col2 ) * COUNT ( ALL 18 ) AS col1 FROM tab1 cor0
----
-669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6008
SELECT 53 + + 64 + - ( CAST( NULL AS SIGNED ) ) - - COUNT( ALL + col2 - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT 53 + + 64 + - ( CAST ( NULL AS INTEGER ) ) - - COUNT ( ALL + col2 - col1 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL ( + col0 ) * - 34 AS col0 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT ALL - ( - - 7 ) FROM tab2
----
-7
-7
-7

query I rowsort
SELECT - 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT DISTINCT + + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2601
-7225
-8281

query II rowsort
SELECT + col1 AS col0, + ( - col2 ) AS col1 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - + MIN( + 82 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-82

skipif mysql # not compatible
query I rowsort label-6015
SELECT - + MIN ( + 82 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-82

query I rowsort
SELECT ALL - col1 * - 85 + - col2 * + col0 - col0 FROM tab1 AS cor0
----
-2284
-3757
-4675

query II rowsort
SELECT DISTINCT + col2, 31 AS col0 FROM tab2 AS cor0
----
23
31
40
31
58
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT col2 DIV + col1 - + + col1 FROM tab1 AS cor0
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-6018
SELECT col2 / + col1 - + + col1 FROM tab1 AS cor0
----
-46
-8
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL - COUNT( * ) - - MAX( 76 ) * - 46 AS col1 FROM tab0 AS cor0
----
-3499

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - COUNT ( * ) - - MAX ( 76 ) * - 46 AS col1 FROM tab0 AS cor0
----
-3499

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL MAX( - 63 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL MAX ( - 63 ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT - + col1 - - - 10 + - + col2 AS col1 FROM tab2 AS cor0
----
-127
-135
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT - COUNT( * ) - COUNT( * ) col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6022
SELECT - COUNT ( * ) - COUNT ( * ) col0 FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6023
SELECT - ( 40 ) - + 5 DIV - col1 AS col2 FROM tab0
----
-35
-40
-40

skipif mysql # not compatible
query I rowsort label-6023
SELECT - ( 40 ) - + 5 / - col1 AS col2 FROM tab0
----
-35
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT DISTINCT - col2 DIV - 3 + - - ( col0 ) + + col1 * + col2 AS col0 FROM tab0
----
229
300
3837

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT - col2 / - 3 + - - ( col0 ) + + col1 * + col2 AS col0 FROM tab0
----
229
300
3837

query I rowsort
SELECT + col2 - - 36 AS col2 FROM tab2
----
59
76
94

query I rowsort
SELECT ALL col0 + - col1 + - - 53 + col1 * 10 AS col0 FROM tab2
----
558
731
810

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT ALL col2 DIV + col2 + col1 + - col2 * col2 FROM tab2
----
-1522
-3296
-477

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL col2 / + col2 + col1 + - col2 * col2 FROM tab2
----
-1522
-3296
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL + MIN( - - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + MIN ( - - col1 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT 82 - + col2 * 23 FROM tab0 WHERE ( - 26 * + - col0 ) IS NOT NULL
----
-148
-2195
-999

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL 95 * + + MIN( ALL + - col0 ) AS col2 FROM tab1
----
-8645

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL 95 * + + MIN ( ALL + - col0 ) AS col2 FROM tab1
----
-8645

onlyif mysql # DIV for integer division: 
query II rowsort label-6031
SELECT DISTINCT ( - col0 ) AS col1, 16 + col0 DIV col1 col0 FROM tab2 AS cor0
----
-46
16
-64
16
-75
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6031
SELECT DISTINCT ( - col0 ) AS col1, 16 + col0 / col1 col0 FROM tab2 AS cor0
----
-46
16
-64
16
-75
17

query I rowsort
SELECT DISTINCT + ( + 38 ) FROM tab1
----
38

query I rowsort
SELECT DISTINCT + - 85 + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0, + col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT + 66 * + - col2 AS col0 FROM tab0
----
-3102
-6534
-660

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - ( + col1 ) + + col2 )
----

query I rowsort
SELECT - 87 * + col0 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-1305
-7569
-8439

query I rowsort
SELECT - - 81 * - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-4131
-6885
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL - COUNT( col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - COUNT ( col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 0 <= + col0
----

query I rowsort
SELECT ( + 57 ) AS col2 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6042
SELECT + MIN ( - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT CAST( - CAST( AVG ( DISTINCT - col1 ) AS SIGNED ) AS SIGNED ) + 60 + COUNT( * ) * 57 FROM tab2
----
296

skipif mysql # not compatible
query I rowsort label-6043
SELECT CAST ( - CAST ( AVG ( DISTINCT - col1 ) AS INTEGER ) AS INTEGER ) + 60 + COUNT ( * ) * 57 FROM tab2
----
296

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN + + col2 + - + 71 + + 80 + + col0 * col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL COUNT( * ) * - 20 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL COUNT ( * ) * - 20 FROM tab2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6048
SELECT ALL - MIN( DISTINCT + col0 ) + 39 - + 61 + + + ( + 39 ) DIV + COUNT( * ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - MIN ( DISTINCT + col0 ) + 39 - + 61 + + + ( + 39 ) / + COUNT ( * ) AS col0 FROM tab0
----
-24

query I rowsort
SELECT DISTINCT 76 * + + col2 AS col2 FROM tab0 WHERE - + 79 IS NOT NULL
----
3572
7524
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 28 col0 FROM tab2
----
-51
28
-67
28
-77
28

query II rowsort
SELECT ALL + 39, + col2 FROM tab1 AS cor0
----
39
59
39
68
39
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6052
SELECT DISTINCT - col0 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT - col0 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab2 WHERE ( - 97 / - + col0 + + 6 + + 38 * col0 + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT ALL 65 + - + COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL 65 + - + COUNT ( * ) FROM tab1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6055
SELECT DISTINCT - 9 * + CAST( NULL AS SIGNED ) * 84 + - 48 + 80 - + - MAX( ALL + 17 ) * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - 9 * + CAST ( NULL AS INTEGER ) * 84 + - 48 + 80 - + - MAX ( ALL + 17 ) * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 29 + - col2 FROM tab0 AS cor0
----
-128
-39
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6057
SELECT + - 88 + + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6057
SELECT + - 88 + + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL BETWEEN col2 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL BETWEEN col2 AND col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT + 32 * + 1 * + - col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT + 32 * + 1 * + - col2 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT - 49 - + COUNT( * ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - 49 - + COUNT ( * ) FROM tab1 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6061
SELECT DISTINCT 38 DIV + col0 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6061
SELECT DISTINCT 38 / + col0 col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + ( - - 19 ) - + col0 NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT - col1 + + 20 * ( col1 DIV col2 ) FROM tab0 WHERE NOT 38 * - + 54 * - 4 + - - 71 + + 65 IS NULL
----
-1
-61
19

skipif mysql # not compatible
query I rowsort label-6064
SELECT - col1 + + 20 * ( col1 / col2 ) FROM tab0 WHERE NOT 38 * - + 54 * - 4 + - - 71 + + 65 IS NULL
----
-1
-61
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6065
SELECT + col0, ( + CAST( col1 AS SIGNED ) ) * + col1 - - col1 AS col1 FROM tab2
----
46
2652
64
6006
75
4556

skipif mysql # not compatible
query II rowsort label-6065
SELECT + col0, ( + CAST ( col1 AS INTEGER ) ) * + col1 - - col1 AS col1 FROM tab2
----
46
2652
64
6006
75
4556

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE - col2 + col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - - 66 AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + + ( - + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col0 + - - 7 * 73 / 35 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT ALL - MAX( ALL - 48 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - MAX ( ALL - 48 ) FROM tab2
----
48

query I rowsort
SELECT - ( + 96 ) + + 72 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT - - 84 * - - 88 FROM tab2 cor0
----
7392
7392
7392

query I rowsort
SELECT ALL col1 * + + 7 AS col0 FROM tab1 AS cor0
----
329
35
98

query II rowsort
SELECT col0, + 98 FROM tab0 WHERE + + col2 IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6075
SELECT * FROM tab0 WHERE + - 47 IN ( + - CAST( + col2 AS SIGNED ), col0 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-6075
SELECT * FROM tab0 WHERE + - 47 IN ( + - CAST ( + col2 AS INTEGER ), col0 )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT ALL - COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT - 93 * - COUNT( * ) * MIN( 7 ) + + COUNT( * ) + + + SUM( + + col1 ) FROM tab0
----
2059

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - 93 * - COUNT ( * ) * MIN ( 7 ) + + COUNT ( * ) + + + SUM ( + + col1 ) FROM tab0
----
2059

query I rowsort
SELECT + + 88 * col2 AS col0 FROM tab1 WHERE col0 / + 25 * + - 48 + col1 * + - 98 + + 34 IS NOT NULL
----
5192
5984
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT - COUNT( + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6079
SELECT - COUNT ( + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - MAX( DISTINCT + 60 ) AS col0 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6080
SELECT - MAX ( DISTINCT + 60 ) AS col0 FROM tab1
----
-60

query I rowsort
SELECT ALL col2 + + - 63 AS col0 FROM tab2
----
-23
-40
-5

query I rowsort
SELECT ALL - ( + 41 ) * + 84 * - - 93 * - 67 AS col2 FROM tab1
----
21459564
21459564
21459564

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 / - col1 IS NOT NULL
----

query I rowsort
SELECT 97 + 95 AS col1 FROM tab1
----
192
192
192

query I rowsort
SELECT + + col2 * col0 + - - col0 FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT ALL + 61 DIV - 50 + + 68 * 43 AS col0 FROM tab0 cor0
----
2923
2923
2923

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL + 61 / - 50 + + 68 * 43 AS col0 FROM tab0 cor0
----
2923
2923
2923

query I rowsort
SELECT DISTINCT + col2 - - 97 FROM tab1 AS cor0
----
156
165
193

query I rowsort
SELECT ALL - - col0 - + - 45 * - col2 AS col1 FROM tab0 cor0
----
-2100
-363
-4358

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6089
SELECT ALL + col0 - + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL + col0 - + - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 26 NOT IN ( - 13 )
----

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT - 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL - COUNT( * ) * - + 76 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - COUNT ( * ) * - + 76 FROM tab1 AS cor0
----
228

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - COUNT( * ) * + COUNT( * ) + - - 16 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-6094
SELECT - COUNT ( * ) * + COUNT ( * ) + - - 16 FROM tab0 cor0
----
7

query II rowsort
SELECT col1 * + col0 AS col2, + col2 AS col0 FROM tab0
----
1215
47
1827
10
97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6096
SELECT 83 DIV - col1 AS col1, + 90 FROM tab2
----
-1
90
-1
90
-1
90

skipif mysql # not compatible
query II rowsort label-6096
SELECT 83 / - col1 AS col1, + 90 FROM tab2
----
-1
90
-1
90
-1
90

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( - col2 * + 44 + + + col0 * col0 + + col0 / - col1 + + col0 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 1 AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT + ( + ( + col1 ) ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT NULL >= - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 97 + - - col1 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + 47 + MAX( + + 17 ) AS col0 FROM tab1 cor0 WHERE NOT col1 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6103
SELECT + 47 + MAX ( + + 17 ) AS col0 FROM tab1 cor0 WHERE NOT col1 >= ( NULL )
----
NULL

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL <= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + 76 ) > NULL
----

query I rowsort
SELECT col0 * - + col0 + + ( col0 ) + - 73 FROM tab0 AS cor0
----
-283
-7555
-9385

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 1 / + + 78 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 57 ) FROM tab1 AS cor0
----
-57

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6110
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6110
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT 92 + + - 69 * - - 97, col1 AS col0 FROM tab0 cor0
----
-6601
1
-6601
21
-6601
81

onlyif mysql # DIV for integer division: 
query II rowsort label-6112
SELECT + - col0 * + col2 + + - col1 + + + 28 + col0 DIV col1 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-1081
-51
-2609
-77
-4388
-67

skipif mysql # not compatible
query II rowsort label-6112
SELECT + - col0 * + col2 + + - col1 + + + 28 + col0 / col1 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-1081
-51
-2609
-77
-4388
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + 50 + + COUNT( * ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6113
SELECT + 50 + + COUNT ( * ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT - - col2 + 55 * col2 AS col1 FROM tab1 AS cor0
----
3304
3808
5376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT ALL + col1 + + + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6115
SELECT ALL + col1 + + + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = col0 * 61
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT ( - CAST( + + 46 AS SIGNED ) ) FROM tab1 cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-6118
SELECT ( - CAST ( + + 46 AS INTEGER ) ) FROM tab1 cor0
----
-46
-46
-46

query II rowsort
SELECT ALL - 15 AS col1, + col2 + - 59 * + - col2 * + col0 FROM tab2 cor0 WHERE NOT NULL > + col1 * 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT - SUM( col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-6120
SELECT - SUM ( col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( + - 28 + + 2 * col0 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT - CAST( NULL AS SIGNED ) - 53 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT - CAST ( NULL AS INTEGER ) - 53 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) - 99 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) - 99 FROM tab2
----
NULL

query I rowsort
SELECT + col0 + - col2 + - - col0 FROM tab1
----
111
114
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT - 13 + + + COUNT( ALL col0 ) AS col2 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 13 + + + COUNT ( ALL col0 ) AS col2 FROM tab2
----
-10

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + + col0 < NULL
----

query II rowsort
SELECT + 69 AS col1, col2 FROM tab1 AS cor0
----
69
59
69
68
69
96

query I rowsort
SELECT + col0 * + col0 * col1 * 17 AS col2 FROM tab2 cor0
----
1834572
5361664
6406875

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col1 ) IN ( - col0, 61 * + + 87 + + - 52 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6130
SELECT - 75, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-6130
SELECT - 75, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-75
3

query I rowsort
SELECT DISTINCT col1 * col1 * + col0 AS col2 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( col0 * + col1 * col0 ) NOT IN ( + col1, col2 * + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( col0 * + col1 * col0 ) NOT IN ( + col1, col2 * + col1 )
----
-3

query II rowsort
SELECT + col2 AS col0, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - 97 * - + col1 FROM tab1
----
1358
4559
485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT + COUNT( col1 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT + COUNT ( col1 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL - MIN( ALL - 46 ) FROM tab1 WHERE NOT NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL - MIN ( ALL - 46 ) FROM tab1 WHERE NOT NULL = col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6137
SELECT * FROM tab0 WHERE NOT col0 + - col1 <> + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6137
SELECT * FROM tab0 WHERE NOT col0 + - col1 <> + - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + col1 * - 25 - + + col2 FROM tab0 cor0 WHERE NOT ( ( NULL ) >= ( NULL ) )
----

query I rowsort
SELECT + col1 * + col1 + col2 + 79 + - + 21 FROM tab0 AS cor0
----
158
509
6666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT + - ( + col0 ) + ( - 88 ) - + col2 + col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( col2 + col2, col2, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6140
SELECT + - ( + col0 ) + ( - 88 ) - + col2 + col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( col2 + col2, col2, + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - MAX( DISTINCT - - 15 ) FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6141
SELECT - MAX ( DISTINCT - - 15 ) FROM tab1 cor0
----
-15

query I rowsort
SELECT DISTINCT + - 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-48

query I rowsort
SELECT + col2 + - 56 FROM tab2
----
-16
-33
2

query I rowsort
SELECT ALL + 44 + - col2 AS col1 FROM tab2 AS cor0
----
-14
21
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6145
SELECT DISTINCT + COUNT( * ) / + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT + COUNT ( * ) / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6147
SELECT ALL + + col2 / - col0 + CAST( NULL AS SIGNED ) / + + col1 / - 88 FROM tab2 AS cor0 WHERE NOT CAST( 22 AS DECIMAL ) > col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL + + col2 / - col0 + CAST ( NULL AS INTEGER ) / + + col1 / - 88 FROM tab2 AS cor0 WHERE NOT CAST ( 22 AS REAL ) > col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + 72 AS col1 FROM tab0 cor0
----
159
169
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT - COUNT( ALL - + 16 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6149
SELECT - COUNT ( ALL - + 16 ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL + MIN( DISTINCT - - col0 ) FROM tab0 WHERE NOT - + 29 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL + MIN ( DISTINCT - - col0 ) FROM tab0 WHERE NOT - + 29 IS NULL
----
15

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN + col0 AND ( NULL )
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 - 54 IS NULL
----

query I rowsort
SELECT - col0 - - - col0 AS col0 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6154
SELECT CAST( NULL AS SIGNED ) - 21 * ( + col0 ) * - + 84 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT CAST ( NULL AS INTEGER ) - 21 * ( + col0 ) * - + 84 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT ALL col1 DIV + 76 + + + col2 * - col2 FROM tab2
----
-1599
-3364
-529

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL col1 / + 76 + + + col2 * - col2 FROM tab2
----
-1599
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT MIN( ALL + col1 ) - - 24 AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-6156
SELECT MIN ( ALL + col1 ) - - 24 AS col1 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT - COUNT( * ) + + - 37 + - - COUNT( * ) FROM tab0 WHERE + - col2 * - + col0 NOT IN ( + col1 + + col0 )
----
-37

skipif mysql # not compatible
query I rowsort label-6157
SELECT - COUNT ( * ) + + - 37 + - - COUNT ( * ) FROM tab0 WHERE + - col2 * - + col0 NOT IN ( + col1 + + col0 )
----
-37

query I rowsort
SELECT DISTINCT - ( + col0 ) - - + col0 + 19 AS col1 FROM tab0
----
19

query I rowsort
SELECT ALL col0 + - 32 AS col2 FROM tab0
----
-17
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL + 54 - - COUNT( * ) FROM tab2 AS cor0 WHERE - 83 - + col2 + col2 / col2 / col2 IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL + 54 - - COUNT ( * ) FROM tab2 AS cor0 WHERE - 83 - + col2 + col2 / col2 / col2 IS NULL
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 57 col0, + col1 AS col0 FROM tab0 AS cor0
----
57
1
57
21
57
81

query I rowsort
SELECT DISTINCT AVG ( ALL 43 ) AS col1 FROM tab1 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6163
SELECT + COUNT( * ) DIV + + 10 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6163
SELECT + COUNT ( * ) / + + 10 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 44 AS col1 FROM tab1 cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT - + COUNT( + 57 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6165
SELECT - + COUNT ( + 57 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT ALL + CAST( - + col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + CAST ( - + col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6167
SELECT DISTINCT COUNT( * ) col0, MAX( DISTINCT ( col0 ) ) AS col1 FROM tab2
----
3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6167
SELECT DISTINCT COUNT ( * ) col0, MAX ( DISTINCT ( col0 ) ) AS col1 FROM tab2
----
3
75

query I rowsort
SELECT ALL col0 * - 44 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT col1 + + 63 * 56 AS col0 FROM tab0 WHERE NOT col2 - + 15 = ( NULL )
----

query I rowsort
SELECT ALL - 68 * - 53 FROM tab0
----
3604
3604
3604

query I rowsort
SELECT 96 AS col1 FROM tab1 WHERE NOT + + col2 * + col0 IN ( col0 )
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL 9 * - ( + COUNT( - col1 ) ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL 9 * - ( + COUNT ( - col1 ) ) AS col0 FROM tab2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT ALL COUNT( * ) DIV - 76 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL COUNT ( * ) / - 76 FROM tab2
----
0

query II rowsort
SELECT ALL + - col2 AS col0, col0 * col0 AS col1 FROM tab0 WHERE ( ( NOT NULL <> - col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 2 - 30 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6176
SELECT ALL + CAST( - SUM( DISTINCT - col0 ) AS SIGNED ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL + CAST ( - SUM ( DISTINCT - col0 ) AS INTEGER ) AS col2 FROM tab0
----
199

query I rowsort
SELECT col2 + + 94 FROM tab2 AS cor0
----
117
134
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT DISTINCT 50 + + COUNT( * ) DIV + 52 AS col2 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT 50 + + COUNT ( * ) / + 52 AS col2 FROM tab0 AS cor0
----
50

query I rowsort
SELECT ALL - 58 + - col0 FROM tab2 AS cor0
----
-104
-122
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT + 30 + + 20 * - MIN( col0 ) AS col2 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-6180
SELECT + 30 + + 20 * - MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
-270

query I rowsort
SELECT - - 53 + - 42 AS col2 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT ( - 70 ) + col0 AS col0 FROM tab0 AS cor0
----
-55
17
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6183
SELECT - col1 DIV + col1 + col1 FROM tab1 cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-6183
SELECT - col1 / + col1 + col1 FROM tab1 cor0
----
13
4
46

query II rowsort
SELECT - col1 + - 40, - 85 AS col1 FROM tab0 AS cor0
----
-121
-85
-41
-85
-61
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 * + 13 col1 FROM tab1
----
-119808
-45253
-60112

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 > 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 93 col0 FROM tab0
----
103
140
192

query I rowsort
SELECT ALL - ( + col1 ) + col0 FROM tab2
----
-13
-5
8

query II rowsort
SELECT ( + - 16 ), + 13 AS col0 FROM tab1
----
-16
13
-16
13
-16
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT ALL col2 - - 66 DIV + - col2 FROM tab0 cor0
----
4
46
99

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL col2 - - 66 / + - col2 FROM tab0 cor0
----
4
46
99

query II rowsort
SELECT ALL - + col1 * col0, col1 AS col1 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT col2 - + col0 * - 85 - col1 FROM tab0 AS cor0
----
1241
7384
8343

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 65 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab2
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col1, 6 FROM tab0 AS cor0
----
-15
6
-87
6
-97
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6197
SELECT + + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6197
SELECT + + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT ALL - 25 * - + col0 * + 85 - + ( CAST( - 81 AS SIGNED ) ) + - col0 AS col1 FROM tab1 AS cor0
----
108405
180621
193365

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - 25 * - + col0 * + 85 - + ( CAST ( - 81 AS INTEGER ) ) + - col0 AS col1 FROM tab1 AS cor0
----
108405
180621
193365

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + + col2 + - 48 + + ( + - 47 ) * col2 + + - col2 * + - col1 * + 70 NOT BETWEEN 26 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 76 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6202
SELECT COUNT( * ) + + 81 + SUM( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 WHERE NOT + 21 / + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT COUNT ( * ) + + 81 + SUM ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 WHERE NOT + 21 / + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 7 + - col0 FROM tab2
----
-53
-71
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL + SUM( ALL - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + SUM ( ALL - + col0 ) FROM tab1
----
-227

query I rowsort
SELECT ALL - 14 + col2 + - col2 * 60 FROM tab1
----
-3495
-4026
-5678

query II rowsort
SELECT - col0 * + 87 AS col1, - col2 AS col2 FROM tab1 AS cor0
----
-4437
-96
-7395
-59
-7917
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT - - ( SUM( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6207
SELECT - - ( SUM ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + 31 * + 16 AS col1 FROM tab0 AS cor0
----
496
496
496

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) >= col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6211
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IN ( - col2, + col2 )
----

skipif mysql # not compatible
query III rowsort label-6211
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - col2, + col2 )
----

query I rowsort
SELECT 39 + 93 FROM tab1
----
132
132
132

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT - COUNT( + - 60 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6214
SELECT - COUNT ( + - 60 ) col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL col0 + + - 19 + - col2, 10 AS col0 FROM tab0 AS cor0
----
-21
10
-51
10
58
10

query I rowsort
SELECT DISTINCT - col0 + 37 FROM tab0 AS cor0
----
-50
-60
22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 45 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT - + 20 - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT - + 20 - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 * - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * 64 AS col1 FROM tab0 cor0
----
1344
5184
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - ( + col2 ) < - col1 )
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * 24 col2 FROM tab0 AS cor0 WHERE ( ( - - col1 ) / + col0 * + 23 ) NOT BETWEEN 27 + + + col0 * - col2 AND - 75
----
24
24
24

query I rowsort
SELECT DISTINCT - col2 + + col1 + + - 3 AS col0 FROM tab2
----
25
34
6

query I rowsort
SELECT 13 * + col2 - + col1 * + 39 FROM tab1
----
-949
572
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col0 col1, - ( - - 62 ) * - col0 - ( col1 ) col2 FROM tab2
----
141
3891
142
4583
97
2801

onlyif mysql # aggregate syntax: 
query II rowsort label-6226
SELECT DISTINCT 80 AS col1, COUNT( * ) AS col2 FROM tab1
----
80
3

skipif mysql # not compatible
query II rowsort label-6226
SELECT DISTINCT 80 AS col1, COUNT ( * ) AS col2 FROM tab1
----
80
3

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab0 WHERE - col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 25 + - col2 AS col2 FROM tab0
----
-124
-35
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6229
SELECT col0 + + col1, + CAST( + - col1 AS SIGNED ) + - + 62 AS col0 FROM tab0
----
108
-83
96
-143
98
-63

skipif mysql # not compatible
query II rowsort label-6229
SELECT col0 + + col1, + CAST ( + - col1 AS INTEGER ) + - + 62 AS col0 FROM tab0
----
108
-83
96
-143
98
-63

query I rowsort
SELECT ALL + - 69 * - 87 FROM tab0 AS cor0
----
6003
6003
6003

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT ALL col2 DIV + col2 + - - 2 col2 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6231
SELECT ALL col2 / + col2 + - - 2 col2 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT ALL + col2 * + 62 * 26 FROM tab0 AS cor0
----
159588
16120
75764

query II rowsort
SELECT - col1, + col0 FROM tab0 cor0
----
-1
97
-21
87
-81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col2 FROM tab2 AS cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col0 FROM tab0 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL + + MIN( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + + MIN ( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT - - CAST( 37 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <> 78
----

skipif mysql # not compatible
query I rowsort label-6237
SELECT - - CAST ( 37 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <> 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT COUNT( + 32 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6238
SELECT COUNT ( + 32 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - + ( 0 ) AS col2, col1 AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6240
SELECT + + 49 DIV + COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6240
SELECT + + 49 / + COUNT ( * ) FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL - col1 * - 95 AS col1 FROM tab1
----
1330
4465
475

query I rowsort
SELECT col2 * col2 + 58 AS col0 FROM tab0
----
158
2267
9859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + 75 col2 FROM tab2
----
-17
-35
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6244
SELECT * FROM tab0 WHERE NOT - + col2 / + CAST( NULL AS SIGNED ) - - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6244
SELECT * FROM tab0 WHERE NOT - + col2 / + CAST ( NULL AS INTEGER ) - - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 2 + - col0 FROM tab2
----
-44
-62
-73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 11 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + col2 + - col1 * 67 * + col1 * + - ( - + col0 ) + col2 - + - col2 AS col0 FROM tab0 AS cor0
----
-2570549
-6103
-6593617

query II rowsort
SELECT ALL + 74 + 40, - col0 AS col0 FROM tab1
----
114
-51
114
-85
114
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT ALL - + col1 - - - CAST( + col0 AS SIGNED ) - 68 * col2 AS col2 FROM tab1 AS cor0
----
-4102
-4762
-6593

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL - + col1 - - - CAST ( + col0 AS INTEGER ) - 68 * col2 AS col2 FROM tab1 AS cor0
----
-4102
-4762
-6593

query I rowsort
SELECT DISTINCT + col2 * + - 25 + + - col0 FROM tab0 AS cor0
----
-1190
-2572
-337

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND - 84 * - 1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT ALL - + col0 DIV - + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL - + col0 / - + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT DISTINCT - 69 * + MIN( + col0 ) + + 96 AS col2 FROM tab2
----
-3078

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT - 69 * + MIN ( + col0 ) + + 96 AS col2 FROM tab2
----
-3078

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT DISTINCT 90 * - 12 * - 12 - + 25 + + 34 * 64 DIV + - 53 FROM tab2, tab1 AS cor0
----
12894

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT 90 * - 12 * - 12 - + 25 + + 34 * 64 / + - 53 FROM tab2, tab1 AS cor0
----
12894

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL + + 98 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + + 98 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6256
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - col2 IN ( + + CAST( + col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6256
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - col2 IN ( + + CAST ( + col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT + + MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6258
SELECT DISTINCT COUNT( * ) DIV + ( - COUNT( * ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT COUNT ( * ) / + ( - COUNT ( * ) ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - COUNT( - col0 ) * + 84 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-6259
SELECT - COUNT ( - col0 ) * + 84 FROM tab0
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + 58 FROM tab1
----
-14
58
-47
58
-5
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT DISTINCT COUNT( + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT COUNT ( + col1 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 = + col1 * + 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT SUM( ALL + - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6263
SELECT SUM ( ALL + - col1 ) FROM tab1 cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT + + 7 * 23 DIV ( - + col0 ) + - - col1 + - col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-1
-1
-10

skipif mysql # not compatible
query I rowsort label-6264
SELECT + + 7 * 23 / ( - + col0 ) + - - col1 + - col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-1
-1
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT 7 * + SUM( ALL + + col2 ) * - COUNT( * ) FROM tab2 AS cor0
----
-2541

skipif mysql # not compatible
query I rowsort label-6265
SELECT 7 * + SUM ( ALL + + col2 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-2541

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT 42 DIV + - 7 AS col1 FROM tab1 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-6266
SELECT 42 / + - 7 AS col1 FROM tab1 AS cor0
----
-6
-6
-6

query II rowsort
SELECT ALL - + col2, col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT 81 * - + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1701
-6561
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT ALL - + CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) + - 72 * + + 2 - col0 AS col0 FROM tab2 AS cor0
----
-241
-285
-286

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL - + CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) + - 72 * + + 2 - col0 AS col0 FROM tab2 AS cor0
----
-241
-285
-286

query I rowsort
SELECT col0 * + 49 AS col1 FROM tab0
----
4263
4753
735

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - MAX( DISTINCT 50 ) AS col1 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-6271
SELECT - MAX ( DISTINCT 50 ) AS col1 FROM tab1
----
-50

query I rowsort
SELECT 83 * - 17 AS col2 FROM tab0
----
-1411
-1411
-1411

query I rowsort
SELECT ALL - 62 + + 47 AS col0 FROM tab0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6274
SELECT 64 + + CAST( NULL AS SIGNED ) * - 8 AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6274
SELECT 64 + + CAST ( NULL AS INTEGER ) * - 8 AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 41 + + col2 NOT BETWEEN NULL AND 87
----
75
67
58

query I rowsort
SELECT + col0 * + col0 * col2 + + + col1 FROM tab0 AS cor0
----
10656
75711
931492

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT + 82 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + 82 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
85

query I rowsort
SELECT + col2 + - 43 AS col0 FROM tab1
----
16
25
53

query I rowsort
SELECT ALL + 35 * + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e60277ac3b295a1fa851d35d64437121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + col2 + col1 * + col2 + - 91 col1 FROM tab1
----
1253
204
3105

query I rowsort
SELECT ALL - - col0 - col2 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < - col2 - - + 91 / - col2 - col2 + - col1 + - - 65 * - col2
----

query II rowsort
SELECT ALL + + 38 AS col0, + 6 + + - 50 AS col0 FROM tab0 cor0
----
38
-44
38
-44
38
-44

query I rowsort
SELECT - col0 * col1 + + col2 - - 15 AS col2 FROM tab2 AS cor0
----
-2308
-4873
-4952

query I rowsort
SELECT + col1 - - - col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT + 42 FROM tab2 WHERE NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * col2 col1 FROM tab2
----
-1160
-1682
-667

query I rowsort
SELECT - ( - 84 ) AS col0 FROM tab0 WHERE NOT col2 > - 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * + col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + col0 FROM tab2
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT ALL col0 * - + col0 DIV - col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL col0 * - + col0 / - col0 AS col2 FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT 50 * - 92 AS col2, + col1 AS col1 FROM tab1
----
-4600
14
-4600
47
-4600
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6292
SELECT - - COUNT( DISTINCT + 84 ), 67 AS col2 FROM tab2 AS cor0
----
1
67

skipif mysql # not compatible
query II rowsort label-6292
SELECT - - COUNT ( DISTINCT + 84 ), 67 AS col2 FROM tab2 AS cor0
----
1
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col2 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + 69 * - 88 * - 30 AS col0 FROM tab2
----
182160

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + - col2 ) * - 20 > 7 + + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT DISTINCT + - col2 DIV 36 AS col0 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + - col2 / 36 AS col0 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6297
SELECT - CAST( + 86 AS SIGNED ) DIV - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6297
SELECT - CAST ( + 86 AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT - 46 * 47 * - 12 + - col0 + - - col0 AS col2, - col0 * + col0 * + col2 FROM tab0 AS cor0
----
25944
-10575
25944
-75690
25944
-931491

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL = - 38 + + col1 + col1 + + + ( + col0 ) - 23
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( 70 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + col0 + col1 * - 3 FROM tab2
----
-153
-201
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT DISTINCT - 96 + + COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT - 96 + + COUNT ( * ) FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT ALL ( + col1 ) + + col2 + + - 24 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6303
SELECT ALL ( + col1 ) + + col2 + + - 24 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 5 + + + 84 AS col2 FROM tab0 AS cor0
----
89

query II rowsort
SELECT - + col0, - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-51
-147
-85
-144
-91
-159

query I rowsort
SELECT ALL + + 13 * - + 88 FROM tab1 AS cor0 WHERE - 33 IS NOT NULL
----
-1144
-1144
-1144

query I rowsort
SELECT ALL - 94 - - col2 + - col2 * - - 47 * 1 + + + col2 FROM tab0 AS cor0
----
-2209
-4549
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + + SUM( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6308
SELECT + + SUM ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + 73 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - SUM( 12 ) AS col0 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - SUM ( 12 ) AS col0 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL ( - 22 ) * - COUNT( * ) * 53 AS col0 FROM tab1
----
3498

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL ( - 22 ) * - COUNT ( * ) * 53 AS col0 FROM tab1
----
3498

query I rowsort
SELECT DISTINCT 14 * 76 AS col0 FROM tab0
----
1064

query I rowsort
SELECT - 90 AS col1 FROM tab0 WHERE NOT 34 IS NOT NULL
----

query I rowsort
SELECT + ( + + 97 ) FROM tab0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT - COUNT( * ) * COUNT( * ) col2 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6315
SELECT - COUNT ( * ) * COUNT ( * ) col2 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT + 42 * - COUNT( * ) AS col2 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT + 42 * - COUNT ( * ) AS col2 FROM tab0
----
-126

query I rowsort
SELECT - 96 * - col0 + + - col1 + - col0 AS col2 FROM tab1 AS cor0
----
4831
8070
8598

query II rowsort
SELECT ALL 68, + 41 AS col0 FROM tab1 AS cor0
----
68
41
68
41
68
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 77 col1, - col2 AS col0 FROM tab1 AS cor0
----
77
-59
77
-68
77
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT + + 99 DIV + 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

skipif mysql # not compatible
query I rowsort label-6320
SELECT + + 99 / + 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT + + 3 * 36 AS col1 FROM tab0 WHERE NOT - + 84 * + 79 = - col1
----
108
108
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6323
SELECT CAST( NULL AS SIGNED ) / - col2 AS col0, 55 AS col1 FROM tab1 AS cor0
----
NULL
55
NULL
55
NULL
55

skipif mysql # not compatible
query II rowsort label-6323
SELECT CAST ( NULL AS INTEGER ) / - col2 AS col0, 55 AS col1 FROM tab1 AS cor0
----
NULL
55
NULL
55
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ALL - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col2 + - + 60 * - + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col2 + - + 60 * - + col0 IS NULL
----
3

query II rowsort
SELECT ALL - col0 * 35 AS col1, + col1 + - + col2 FROM tab1 AS cor0
----
-1785
-82
-2975
-54
-3185
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL ( + MIN( - - col0 ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL ( + MIN ( - - col0 ) ) FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT 86 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT 34 DIV - - 63 * - col1 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6328
SELECT 34 / - - 63 * - col1 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 36 AS col1 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT DISTINCT - ( - col2 ) FROM tab1 WHERE 2 / + col1 * - ( + - 10 ) - CAST( NULL AS SIGNED ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT - ( - col2 ) FROM tab1 WHERE 2 / + col1 * - ( + - 10 ) - CAST ( NULL AS INTEGER ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT - COUNT( * ) - - + 59 AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-6331
SELECT - COUNT ( * ) - - + 59 AS col2 FROM tab0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 - - 40 - + col2 * 13 col0 FROM tab1
----
-1142
-661
-778

query I rowsort
SELECT DISTINCT 33 - - col0 AS col2 FROM tab1
----
118
124
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - COUNT( * ) + - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6334
SELECT - COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL + 9 + + MAX( ALL - col1 ) AS col0 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + 9 + + MAX ( ALL - col1 ) AS col0 FROM tab2
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 - col1 + - + col2 col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT col0 * - - col2 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - col0 * ( 90 ) + - 84 + - col1 * + col0 + - col1 + 39 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 + - + col0 * - col1 * - col0 * - col2 FROM tab1
----
2131380
26466123
3495758

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT ALL 76, - MAX( - col1 ) AS col2 FROM tab0
----
76
1

skipif mysql # not compatible
query II rowsort label-6341
SELECT ALL 76, - MAX ( - col1 ) AS col2 FROM tab0
----
76
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col2 col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col2 * 90 + + col0 IS NULL
----
10
47
99

query I rowsort
SELECT ALL - 94 AS col2 FROM tab2 cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6345
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 17 BETWEEN NULL AND + col0 / 59 + + col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - col2 ) BETWEEN col2 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6348
SELECT ( + COUNT( * ) ) AS col1, + 89 FROM tab0
----
3
89

skipif mysql # not compatible
query II rowsort label-6348
SELECT ( + COUNT ( * ) ) AS col1, + 89 FROM tab0
----
3
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * + + 64 * - 68 col1 FROM tab1
----
-243712
-243712
-243712

query I rowsort
SELECT ( + - 62 ) FROM tab1
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-6351
SELECT - 71 DIV + + 23 col2, - col1 FROM tab2
----
-3
-51
-3
-67
-3
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6351
SELECT - 71 / + + 23 col2, - col1 FROM tab2
----
-3
-51
-3
-67
-3
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + ( - MAX( - 44 ) ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-6352
SELECT + ( - MAX ( - 44 ) ) AS col1 FROM tab1
----
44

query I rowsort
SELECT - col1 - - col2 AS col0 FROM tab0 WHERE NOT + - 24 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 < + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT DISTINCT - col2 DIV - + 67 + - col2 + - + col2 FROM tab1 AS cor0
----
-118
-135
-191

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT - col2 / - + 67 + - col2 + - + col2 FROM tab1 AS cor0
----
-118
-135
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT + - col2 FROM tab1 cor0 WHERE ( NULL BETWEEN + - CAST( col2 AS SIGNED ) AND + + col1 )
----

skipif mysql # not compatible
query I rowsort label-6356
SELECT + - col2 FROM tab1 cor0 WHERE ( NULL BETWEEN + - CAST ( col2 AS INTEGER ) AND + + col1 )
----

query II rowsort
SELECT DISTINCT + 21 + + 36, + col0 AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL + + MAX( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL + + MAX ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + + ( - ( + + col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - - col2 + - col2 * - 99 FROM tab2 AS cor0
----
2300
4000
5800

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL - SUM( DISTINCT + 36 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - SUM ( DISTINCT + 36 ) FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + + 90 + - - 71 + - 92 + 65 * - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-6362
SELECT + + 90 + - - 71 + - 92 + 65 * - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT COUNT( * ) * - SUM( ALL - + 93 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
837

skipif mysql # not compatible
query I rowsort label-6363
SELECT COUNT ( * ) * - SUM ( ALL - + 93 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT - COUNT( * ) * + 99 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - COUNT ( * ) * + 99 FROM tab1
----
-297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab1 WHERE + col0 > 6 / - 50
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 >= + col1 * col0
----

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab0 WHERE NULL > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT DISTINCT + col0 DIV + + col1 + col2 AS col2 FROM tab0 AS cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + col0 / + + col1 + col2 AS col2 FROM tab0 AS cor0
----
14
196
47

query I rowsort
SELECT 10 * + - col1 - - 22 * - col2 + col1 FROM tab0 AS cor0
----
-1763
-2187
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT - 26 - - - 47 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-6370
SELECT - 26 - - - 47 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
115

query I rowsort
SELECT ALL + 29 * + col1 AS col0 FROM tab1
----
1363
145
406

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 - - + 3 IS NOT NULL
----

query I rowsort
SELECT ( + - 18 ) AS col2 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6375
SELECT DISTINCT - + 48 DIV col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT - + 48 / col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6376
SELECT DISTINCT - 46 DIV + 37 FROM tab0 AS cor0 WHERE 55 + col0 NOT BETWEEN NULL AND + col2 - col0
----
-1

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT - 46 / + 37 FROM tab0 AS cor0 WHERE 55 + col0 NOT BETWEEN NULL AND + col2 - col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL + COUNT( DISTINCT + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + COUNT ( DISTINCT + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 61 AS col2, col2 FROM tab2
----
61
23
61
40
61
58

query II rowsort
SELECT + 34 AS col2, col2 + col0 AS col1 FROM tab1
----
34
144
34
147
34
159

onlyif mysql # DIV for integer division: 
query I rowsort label-6380
SELECT 35 * 24 DIV 71 FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-6380
SELECT 35 * 24 / 71 FROM tab0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT DISTINCT + COUNT( ( - 8 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT + COUNT ( ( - 8 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + ( + - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6382
SELECT + ( + - COUNT ( * ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - 95 + col0 * col0 FROM tab2 WHERE NOT - + ( - 28 ) IS NOT NULL
----

query II rowsort
SELECT - 7, col1 AS col0 FROM tab1
----
-7
14
-7
47
-7
5

query II rowsort
SELECT DISTINCT - 33, 22 + - 14 AS col1 FROM tab1
----
-33
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT COUNT( - - 59 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6386
SELECT COUNT ( - - 59 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6387
SELECT * FROM tab0 AS cor0 WHERE NOT ( - CAST( + col2 AS SIGNED ) / + + 88 + + + ( - - col1 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6387
SELECT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( + col2 AS INTEGER ) / + + 88 + + + ( - - col1 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 cor0 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT 91 + col1 AS col1 FROM tab2 cor0
----
142
158
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6390
SELECT 19 + + 85 + - CAST( + - ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-6390
SELECT 19 + + 85 + - CAST ( + - ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0
----
107

query I rowsort
SELECT ALL col2 + ( col0 ) FROM tab1
----
144
147
159

query I rowsort
SELECT + ( + + col1 ) FROM tab0 AS cor0 WHERE col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT ALL - col2 * col1 DIV - - col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - col2 * col1 / - - col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT col2 DIV col2 * - col0 - - + 79 + col2 * - 35 * col2 AS col0 FROM tab0
----
-343053
-3508
-77251

skipif mysql # not compatible
query I rowsort label-6395
SELECT col2 / col2 * - col0 - - + 79 + col2 * - 35 * col2 AS col0 FROM tab0
----
-343053
-3508
-77251

query II rowsort
SELECT ALL col1 AS col2, - col2 * col1 * + ( + 98 ) AS col2 FROM tab1
----
14
-131712
47
-313208
5
-28910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT ALL - - col1 * CAST( NULL AS SIGNED ) * 88 / - 67 + col2 AS col1 FROM tab0 WHERE NOT - CAST( - col2 AS SIGNED ) + + 78 * + 51 BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) * 88 / - 67 + col2 AS col1 FROM tab0 WHERE NOT - CAST ( - col2 AS INTEGER ) + + 78 * + 51 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT - col0 * - - col0 * + + 23 + 89 + + - CAST( + 5 AS SIGNED ) * - - 79 col2 FROM tab1
----
-166481
-190769
-60129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6398
SELECT - col0 * - - col0 * + + 23 + 89 + + - CAST ( + 5 AS INTEGER ) * - - 79 col2 FROM tab1
----
-166481
-190769
-60129

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 AS col2 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT DISTINCT MAX( 35 ) FROM tab1 WHERE ( - 78 + + 80 * CAST( NULL AS SIGNED ) ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT MAX ( 35 ) FROM tab1 WHERE ( - 78 + + 80 * CAST ( NULL AS INTEGER ) ) < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 - 28 col2 FROM tab2 AS cor0
----
1572
3336
501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col1 FROM tab1 WHERE col0 * + col0 BETWEEN col2 AND col2 - + col0
----

query I rowsort
SELECT ALL + col2 + - col2 * col2 AS col1 FROM tab1
----
-3422
-4556
-9120

query I rowsort
SELECT - ( 53 ) FROM tab1
----
-53
-53
-53

query I rowsort
SELECT ALL + 79 * - col2 + col0 FROM tab2
----
-1771
-3096
-4507

query I rowsort
SELECT DISTINCT - col2 + - 42 * 28 AS col0 FROM tab2
----
-1199
-1216
-1234

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) FROM tab1
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE 8 + 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col2 > 65
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 * col1 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6411
SELECT * FROM tab1 WHERE NULL <= ( + col2 + - CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-6411
SELECT * FROM tab1 WHERE NULL <= ( + col2 + - CAST ( NULL AS INTEGER ) * col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= ( col2 )
----

query I rowsort
SELECT DISTINCT - col0 * - col0 + + col2 AS col0 FROM tab0
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT COUNT( ALL 72 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6414
SELECT COUNT ( ALL 72 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT IN ( + col0 )
----

query I rowsort
SELECT - 84 * + 74 + col0 FROM tab0
----
-6119
-6129
-6201

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 52 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + col1 NOT IN ( col2 * - col2 )
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6419
SELECT COUNT( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT - 48 / + col0 IN ( 31 )
----
3

skipif mysql # not compatible
query I rowsort label-6419
SELECT COUNT ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT - 48 / + col0 IN ( 31 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + MAX( col1 ) AS col0 FROM tab0 WHERE NOT + 31 / 94 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT + MAX ( col1 ) AS col0 FROM tab0 WHERE NOT + 31 / 94 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 + - col2 * - 95 ) <> - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 * + col2 AND col0 * col2
----
0

skipif mysql # not compatible
query I rowsort label-6422
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 * + col2 AND col0 * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT 3 + + COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN + col1 AND col0
----
3

skipif mysql # not compatible
query I rowsort label-6423
SELECT 3 + + COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN + col1 AND col0
----
3

query I rowsort
SELECT + 64 * 36 AS col2 FROM tab2
----
2304
2304
2304

query I rowsort
SELECT - col1 + + 99 * 81 AS col2 FROM tab2
----
7942
7952
7968

query I rowsort
SELECT - 65 * 60 AS col1 FROM tab0
----
-3900
-3900
-3900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab1 WHERE - col2 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + + col2 AS col1 FROM tab0
----
198
220
3854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6429
SELECT MAX( DISTINCT - 85 ) + CAST( COUNT( * ) AS DECIMAL ) AS col1 FROM tab0 WHERE NOT col2 * 40 + - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT MAX ( DISTINCT - 85 ) + CAST ( COUNT ( * ) AS REAL ) AS col1 FROM tab0 WHERE NOT col2 * 40 + - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 / 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( ( ( 99 ) ) ) + - col1 AS col0 FROM tab2
----
22
32
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + 54 IS NULL
----

query I rowsort
SELECT col1 + 61 FROM tab0 WHERE NOT NULL IN ( col1 / + col2 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT + 65 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST( col1 AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-6434
SELECT + 65 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST ( col1 AS INTEGER ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL COUNT( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL COUNT ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6436
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND CAST( col2 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-6436
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND CAST ( col2 AS INTEGER )
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 96 col1 FROM tab1 AS cor0
----
4896
8160
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col1 FROM tab0 cor0 WHERE NOT NULL <= + 21 * + ( + 76 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 8 * + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 * 45 > 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT - COUNT( ALL + col1 ) + 98 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-6441
SELECT - COUNT ( ALL + col1 ) + 98 FROM tab2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT ALL col2 DIV + col0 + - col0 FROM tab1
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL col2 / + col0 + - col0 FROM tab1
----
-50
-85
-91

query I rowsort
SELECT + col2 + 20 AS col2 FROM tab0 AS cor0
----
119
30
67

query I rowsort
SELECT ALL + col2 * 26 + 7 FROM tab1 AS cor0
----
1541
1775
2503

query I rowsort
SELECT DISTINCT - 13 FROM tab2 cor0
----
-13

query I rowsort
SELECT col2 + + 40 / + 90 FROM tab2 AS cor0 WHERE col1 * col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6447
SELECT + 35 + + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6447
SELECT + 35 + + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT - - 66 + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6448
SELECT - - 66 + COUNT ( * ) FROM tab1 AS cor0
----
69

query I rowsort
SELECT DISTINCT col0 / - col2 AS col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - ( 57 ) FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 40 + + 48 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 40 + + 48 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT MIN( + ( + col2 ) ) * MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
3009

skipif mysql # not compatible
query I rowsort label-6452
SELECT MIN ( + ( + col2 ) ) * MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
3009

query I rowsort
SELECT ALL 62 AS col2 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT DISTINCT + COUNT( 53 ) FROM tab2 WHERE + col2 BETWEEN NULL AND NULL OR NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT + COUNT ( 53 ) FROM tab2 WHERE + col2 BETWEEN NULL AND NULL OR NULL IS NULL
----
3

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 * col0 * + col0 + + col1 * ( col2 ) col1 FROM tab2 AS cor0
----
30797
60424
82636

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL - ( - COUNT( DISTINCT 65 ) ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6457
SELECT ALL - ( - COUNT ( DISTINCT 65 ) ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col2 * - col2 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - - SUM( - - col1 ) AS col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-6459
SELECT - - SUM ( - - col1 ) AS col1 FROM tab0 cor0
----
103

query I rowsort
SELECT ( 49 ) * + 84 AS col1 FROM tab2 AS cor0
----
4116
4116
4116

query I rowsort
SELECT ALL 97 * 66 + + col0 AS col0 FROM tab1 AS cor0 WHERE col0 <> ( col1 )
----
6453
6487
6493

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col1 FROM tab1 WHERE NOT ( NOT NULL IN ( - 97 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col1 FROM tab1 WHERE NOT ( NOT NULL IN ( - 97 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( + 13 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6463
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( + 13 IS NOT NULL )
----
0

query I rowsort
SELECT + 47 * + 64 AS col2 FROM tab1 AS cor0
----
3008
3008
3008

query I rowsort
SELECT ALL + + col2 * + - col2 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
-33120
-8613
-950600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6466
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) - col0 ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6466
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) - col0 ) IN ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6467
SELECT ALL COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT - COUNT( DISTINCT + + 2 ) * 96 AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6468
SELECT - COUNT ( DISTINCT + + 2 ) * 96 AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - - COUNT( - + 66 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6469
SELECT - - COUNT ( - + 66 ) FROM tab2 cor0
----
3

query I rowsort
SELECT col1 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + - 0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col1 AS col0, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 31 + 53 FROM tab2 WHERE NOT + col2 >= 26 - - col2
----
84
84
84

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + 64 + - col0 * + 82 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 36 ) <= ( - ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6477
SELECT DISTINCT 29 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT 29 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 45 + 46 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT ALL + col2 * 12 DIV - - col2 + 9 FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL + col2 * 12 / - - col2 + 9 FROM tab2
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT ALL - col2 DIV - + col1 AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - col2 / - + col1 AS col1 FROM tab1
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT ALL + col1 * + col0 FROM tab0 cor0 WHERE NOT col1 / CAST( - 48 AS SIGNED ) * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + col1 * + col0 FROM tab0 cor0 WHERE NOT col1 / CAST ( - 48 AS INTEGER ) * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT DISTINCT col1 DIV - + col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT col1 / - + col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6483
SELECT - 82 + + 50 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-32
-3

skipif mysql # not compatible
query II rowsort label-6483
SELECT - 82 + + 50 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-32
-3

query I rowsort
SELECT ALL 59 FROM tab2 AS cor0 WHERE NOT ( + col0 * 15 * + col2 ) <> - col0 + col0
----

query I rowsort
SELECT - + col2 * ( ( col0 ) ) + + col1 FROM tab1 cor0
----
-4882
-5010
-6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col0 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + COUNT( * ) + 34 AS col0 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6487
SELECT + COUNT ( * ) + 34 AS col0 FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE + col0 + + - col0 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6488
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE + col0 + + - col0 = ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 11 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 72 * + - col0 * - + col0 * 15 / - 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 71 * col0 - - col1 FROM tab1 AS cor0
----
-3607
-6030
-6414

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT + - SUM( ALL col2 ) AS col1 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + - SUM ( ALL col2 ) AS col1 FROM tab2 cor0
----
-121

query I rowsort
SELECT ALL - col1 * + 19 + - + col1 - col0 AS col1 FROM tab0 AS cor0
----
-117
-1635
-507

query I rowsort
SELECT + 17 FROM tab0 AS cor0 WHERE - 98 IS NOT NULL
----
17
17
17

query III rowsort
SELECT DISTINCT + 37, - 89 + col2 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
9 values hashing to d04d7f2a26c99bdfdf8d720a73b26540

query I rowsort
SELECT - 14 - + col2 FROM tab0 AS cor0
----
-113
-24
-61

query III rowsort
SELECT * FROM tab1 WHERE NULL <= 38
----

query I rowsort
SELECT 47 + - ( 54 ) AS col2 FROM tab1
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT - CAST( NULL AS SIGNED ) + + 29 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT - CAST ( NULL AS INTEGER ) + + 29 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT + col2 * + + col0 + - - col0 DIV ( - col2 ) * - 29 AS col0 FROM tab2
----
1116
2589
4379

skipif mysql # not compatible
query I rowsort label-6500
SELECT + col2 * + + col0 + - - col0 / ( - col2 ) * - 29 AS col0 FROM tab2
----
1116
2589
4379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT col2 / + CAST( - col1 AS SIGNED ) * - CAST( NULL AS SIGNED ) * - col2 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6501
SELECT col2 / + CAST ( - col1 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - col2 + + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT - ( + SUM( + 42 ) ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT - ( + SUM ( + 42 ) ) FROM tab2
----
-126

query I rowsort
SELECT + col1 * - 69 AS col1 FROM tab0
----
-1449
-5589
-69

query I rowsort
SELECT DISTINCT + + 70 AS col0 FROM tab1 AS cor0
----
70

query II rowsort
SELECT + + col0, col0 * + 7 * ( + col2 ) FROM tab0 AS cor0
----
15
4935
87
6090
97
67221

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 64 <= ( - - col0 )
----
51
14
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 5 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT - ( COUNT( * ) ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - ( COUNT ( * ) ) * COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col1
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - ( col0 ) * - 18 >= 30
----

query I rowsort
SELECT DISTINCT - col1 * 14 FROM tab1 cor0
----
-196
-658
-70

query I rowsort
SELECT - col0 * - + ( - - col2 ) * col0 FROM tab2 AS cor0
----
163840
326250
48668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col0 FROM tab0 cor0
----
43

query I rowsort
SELECT + 95 AS col1 FROM tab1 AS cor0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - - 76 AS col0 FROM tab1 AS cor0
----
-3876
-6460
-6916

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = ( 93 * - col2 / + + col1 * - - 94 * col2 + col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - MAX( col0 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6517
SELECT - MAX ( col0 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL - - MIN( DISTINCT ( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL - - MIN ( DISTINCT ( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) * + col1 - + col1 ) BETWEEN ( NULL ) AND 91 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - + 82 * - col2 NOT IN ( + - col1 + + 22 + col2 + + 60 - - col0 * + 55 )
----
-51
-67
-77

query I rowsort
SELECT - col1 + + 60 AS col0 FROM tab0
----
-21
39
59

query I rowsort
SELECT col2 + + 31 * + 36 * + col1 + + 40 AS col0 FROM tab2
----
56979
74870
86012

query I rowsort
SELECT ALL - col2 + + 88 AS col1 FROM tab1
----
-8
20
29

query I rowsort
SELECT - col0 + ( col0 ) + - col0 AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT + COUNT( * ) * - - 41 + + - COUNT( * ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + COUNT ( * ) * - - 41 + + - COUNT ( * ) FROM tab1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT + 7 * - ( + col2 ) + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 WHERE - + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT + 7 * - ( + col2 ) + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 WHERE - + col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT DISTINCT + CAST( col1 AS SIGNED ) + + 81 FROM tab0
----
102
162
82

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + + 81 FROM tab0
----
102
162
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL 50 * COUNT( * ) + + + 70 + + + 22 AS col1 FROM tab0
----
242

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL 50 * COUNT ( * ) + + + 70 + + + 22 AS col1 FROM tab0
----
242

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6529
SELECT * FROM tab0 WHERE 32 / + - col1 * - CAST( NULL AS SIGNED ) + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6529
SELECT * FROM tab0 WHERE 32 / + - col1 * - CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 * 94 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - ( - + col2 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6532
SELECT DISTINCT - 53, ( + + 59 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-53
177

skipif mysql # not compatible
query II rowsort label-6532
SELECT DISTINCT - 53, ( + + 59 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-53
177

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 BETWEEN + col0 * - col2 AND + col2 / + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6534
SELECT DISTINCT MAX( - ( + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT MAX ( - ( + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 - - 12 FROM tab2
----
63
79
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6536
SELECT + - MAX( DISTINCT - 83 ), 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
83
31

skipif mysql # not compatible
query II rowsort label-6536
SELECT + - MAX ( DISTINCT - 83 ), 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
83
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + + ( COUNT( 14 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6537
SELECT + + ( COUNT ( 14 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT ( NOT + 67 * + col2 + + 84 - - - col0 + col0 + - 55 * col2 * 95 IN ( 64 ) )
----

query I rowsort
SELECT + col2 * + + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL - + SUM( ALL - - 55 ) + - - COUNT( * ) * SUM( ALL - + col0 ) FROM tab2 AS cor0
----
-720

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - + SUM ( ALL - - 55 ) + - - COUNT ( * ) * SUM ( ALL - + col0 ) FROM tab2 AS cor0
----
-720

query I rowsort
SELECT + 17 + + 40 + 36 - + + col2 - + 16 + + + col1 * + + 74 AS col2 FROM tab1 AS cor0
----
1017
3487
388

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6543
SELECT - - COUNT( * ) * - - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0 WHERE col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6543
SELECT - - COUNT ( * ) * - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0 WHERE col0 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT DISTINCT - CAST( + col1 AS SIGNED ) - - 28 AS col2 FROM tab2 AS cor0
----
-23
-39
-49

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) - - 28 AS col2 FROM tab2 AS cor0
----
-23
-39
-49

query I rowsort
SELECT DISTINCT + + ( + - 22 ) * ( - - col2 ) AS col2 FROM tab0 AS cor0
----
-1034
-2178
-220

query I rowsort
SELECT - - col0 * + col0 + col0 FROM tab0 cor0
----
240
7656
9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT + COUNT( * ) DIV - SUM( ALL - col1 ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6547
SELECT + COUNT ( * ) / - SUM ( ALL - col1 ) col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND + 12 * + - ( + + col0 ) + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + col0 FROM tab0 WHERE NOT - - col1 / - - 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT - CAST( - + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6550
SELECT - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL col0 * 48 AS col0 FROM tab0
----
4176
4656
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT ALL - SUM( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 91 ) col0 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + MIN( + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6554
SELECT + MIN ( + - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT - COUNT( 43 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - COUNT ( 43 ) FROM tab1 AS cor0
----
-3

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 91 IS NULL
----

query I rowsort
SELECT 64 + - - col2 AS col2 FROM tab1
----
123
132
160

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6558
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col0 * + 70 * - col1 + + col1 / + CAST( - + col2 AS DECIMAL ) + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6558
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col0 * + 70 * - col1 + + col1 / + CAST ( - + col2 AS REAL ) + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 51 IS NOT NULL
----

query I rowsort
SELECT ALL ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - + 33 * - col0 FROM tab1 AS cor0
----
1683
2805
3003

query I rowsort
SELECT 65 * - - 8 AS col1 FROM tab1 cor0
----
520
520
520

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT + MIN( ALL - 23 ) AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT + MIN ( ALL - 23 ) AS col1 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT MIN( ALL - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT MIN ( ALL - + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6565
SELECT DISTINCT - + 60 col0 FROM tab1 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6565
SELECT DISTINCT - + 60 col0 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6566
SELECT ALL 32 DIV - COUNT( * ) + - 79 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL 32 / - COUNT ( * ) + - 79 FROM tab1
----
-89

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( - col2 + + col0 * - col2, col0, + col1 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 50 * - col0 AS col2 FROM tab1 WHERE + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT COUNT( * ) + + 39, 87 AS col2 FROM tab0
----
42
87

skipif mysql # not compatible
query II rowsort label-6569
SELECT COUNT ( * ) + + 39, 87 AS col2 FROM tab0
----
42
87

query I rowsort
SELECT ALL 48 + - + 37 * col1 FROM tab0
----
-2949
-729
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - - 8
----

query I rowsort
SELECT DISTINCT - 62 + + - ( - + 0 ) AS col2 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT 49 * - col2 + col0 FROM tab1 AS cor0
----
-2806
-3241
-4653

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 40 - col2 - 64 * - - ( - ( - - col1 ) ) * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT SUM( DISTINCT 10 ) * - 67 FROM tab1
----
-670

skipif mysql # not compatible
query I rowsort label-6575
SELECT SUM ( DISTINCT 10 ) * - 67 FROM tab1
----
-670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 35 col1, 11 + col2 + + col0 * col0 FROM tab0
----
35
283
35
7590
35
9519

query II rowsort
SELECT col2, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT DISTINCT - CAST( col1 AS SIGNED ) - - - ( + + col2 ) + - col1 - + ( - col0 ) FROM tab0 AS cor0
----
-194
-4
35

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - - - ( + + col2 ) + - col1 - + ( - col0 ) FROM tab0 AS cor0
----
-194
-4
35

query I rowsort
SELECT DISTINCT + 98 - + col0 + 33 * - + 54 + - 46 FROM tab0 AS cor0
----
-1745
-1817
-1827

query I rowsort
SELECT ALL - col2 * + - 53 FROM tab2 cor0
----
1219
2120
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT + COUNT( * ) * + + COUNT( DISTINCT - 0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( DISTINCT - 0 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT DISTINCT - col1 * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT - col1 * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - col2 * - 13 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( - col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - - 14 * + - 23 + 86 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-236
-236
-236

query I rowsort
SELECT - - col0 * + + col2 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - + ( ( - col0 ) ) ) col1, + col2 * + ( - + 33 ) + - - 97 AS col0 FROM tab0
----
-15
-1454
-87
-233
-97
-3170

query I rowsort
SELECT 31 * - col0 * - - 62 FROM tab2
----
-123008
-144150
-88412

query I rowsort
SELECT + 73 * 56 FROM tab2
----
4088
4088
4088

query I rowsort
SELECT ALL 40 * + col2 * 25 AS col0 FROM tab2
----
23000
40000
58000

query I rowsort
SELECT ALL ( + 59 ) AS col2 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + + col1 * - 3 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT DISTINCT + col2 * - 13 + - col1 AS col0 FROM tab0 AS cor0
----
-1288
-151
-692

query I rowsort
SELECT - - col1 + 16 AS col1 FROM tab0 AS cor0
----
17
37
97

query I rowsort
SELECT + + col0 + - 89 FROM tab1 AS cor0
----
-38
-4
2

query I rowsort
SELECT col0 + - ( - + col1 ) FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - + col0 + + ( col1 ) col1 FROM tab2
----
-119595
-336608
-379379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6598
SELECT DISTINCT - COUNT( * ) + - CAST( MIN( + 71 ) AS SIGNED ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - COUNT ( * ) + - CAST ( MIN ( + 71 ) AS INTEGER ) AS col1 FROM tab1
----
-74

query I rowsort
SELECT DISTINCT - ( + - col0 ) + - col0 + col2 AS col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT DISTINCT CAST( + + 4 AS SIGNED ) * + col2 / + - ( - + 11 ) + 64 + - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT CAST ( + + 4 AS INTEGER ) * + col2 / + - ( - + 11 ) + 64 + - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + + 20 AS col0 FROM tab1 cor0 WHERE ( NULL ) <= - - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT - COUNT( * ) * 74 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT - COUNT ( * ) * 74 FROM tab0 AS cor0
----
-222

query II rowsort
SELECT ALL + + col0 * + - col1 AS col1, col2 * 78 AS col1 FROM tab2 AS cor0
----
-2346
1794
-4928
3120
-5025
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT + SUM( DISTINCT 66 ) AS col0 FROM tab2 cor0
----
66

skipif mysql # not compatible
query I rowsort label-6604
SELECT + SUM ( DISTINCT 66 ) AS col0 FROM tab2 cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 94 * + + col0 + - col0 + - + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL 16 * MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
-368

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL 16 * MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
-368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT ALL - - col0 FROM tab0 WHERE NOT + 32 IN ( col1 * + - CAST( NULL AS SIGNED ), + col1, - - col2 + col1 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - - col0 FROM tab0 WHERE NOT + 32 IN ( col1 * + - CAST ( NULL AS INTEGER ), + col1, - - col2 + col1 * - col1 )
----

query I rowsort
SELECT ALL + ( + 37 ) AS col1 FROM tab2 AS cor0
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6610
SELECT ALL + CAST( NULL AS SIGNED ) * col2 AS col2, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-6610
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 AS col2, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT - 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-6611
SELECT - MAX ( col0 ) col0 FROM tab2 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT DISTINCT + + col2 DIV - ( - col1 ) - + - col2 - - col1 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT + + col2 / - ( - col1 ) - + - col2 - - col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT - 56 FROM tab0 WHERE NOT + col2 * col2 + - col0 IS NULL
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6614
SELECT ALL 55 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
55
NULL
55
NULL
55
NULL

skipif mysql # not compatible
query II rowsort label-6614
SELECT ALL 55 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
55
NULL
55
NULL
55
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 39 IS NOT NULL )
----

query I rowsort
SELECT + col1 * - - col1 * - 48 * + 38 AS col1 FROM tab2
----
-10814496
-4744224
-8187936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6617
SELECT DISTINCT + COUNT( * ) DIV - + 24 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT + COUNT ( * ) / - + 24 FROM tab0
----
0

query I rowsort
SELECT ALL col1 * - 49 * + ( + col1 ) AS col0 FROM tab1
----
-108241
-1225
-9604

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT ALL col0 DIV - - 28 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL col0 / - - 28 FROM tab0
----
0
3
3

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + col2 * - + col0 * 47 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 60 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 * ( - col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 * ( - col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + + ( - + COUNT( * ) ) * 6 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6623
SELECT + + ( - + COUNT ( * ) ) * 6 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT + + 57 AS col2 FROM tab0 AS cor0
----
57

query I rowsort
SELECT + + col0 * - - col1 + 9 FROM tab1 AS cor0
----
4286
434
723

query I rowsort
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, col0, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT - + col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) - - CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6627
SELECT - + col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - - CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + col1 FROM tab0 WHERE + col0 >= + col0
----
-98
11
34

query I rowsort
SELECT - 28 - col2 AS col0 FROM tab2
----
-51
-68
-86

query I rowsort
SELECT + col1 - - 61 FROM tab1
----
108
66
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6631
SELECT - CAST( NULL AS DECIMAL ) / col0 + 75 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT - CAST ( NULL AS REAL ) / col0 + 75 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT 40 + - col1 AS col1 FROM tab1
----
-7
26
35

query I rowsort
SELECT DISTINCT col0 - - 68 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL + 32 + - 5 AS col2 FROM tab2
----
27
27
27

query I rowsort
SELECT - col1 * + + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6637
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6637
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 83 * + 68 NOT IN ( + - col1, - col0, + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 83 * + 68 NOT IN ( + - col1, - col0, + + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col0, 38 FROM tab1 AS cor0
----
-59
38
-68
38
-96
38

query II rowsort
SELECT + col0 AS col0, + 82 AS col1 FROM tab1 AS cor0
----
51
82
85
82
91
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 50 * + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + 23 AS col2, + 71 AS col2 FROM tab0 AS cor0
----
23
71
23
71
23
71

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6643
SELECT DISTINCT - - 10 AS col0, CAST( NULL AS DECIMAL ) / + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-6643
SELECT DISTINCT - - 10 AS col0, CAST ( NULL AS REAL ) / + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
10
NULL

query I rowsort
SELECT ALL + - col2 FROM tab0 cor0 WHERE col1 <> col2
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6645
SELECT + COUNT( ALL col2 ) AS col0, - 27 FROM tab1 AS cor0
----
3
-27

skipif mysql # not compatible
query II rowsort label-6645
SELECT + COUNT ( ALL col2 ) AS col0, - 27 FROM tab1 AS cor0
----
3
-27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + 84, col2 * + col0 * - 66, + 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT 98 * - COUNT( * ) * - 10 AS col0 FROM tab2
----
2940

skipif mysql # not compatible
query I rowsort label-6647
SELECT 98 * - COUNT ( * ) * - 10 AS col0 FROM tab2
----
2940

query I rowsort
SELECT DISTINCT + ( - 63 ) * + col1 AS col1 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT col0 * ( + col1 ) FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6650
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT DISTINCT 85 DIV + - 18 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT 85 / + - 18 FROM tab2
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8, col1 col0 FROM tab2 AS cor0 WHERE NOT - 81 * - 46 * - - col0 IS NULL
----
-8
51
-8
67
-8
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 85 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + + col0 + + 94 FROM tab1
----
238
241
253

onlyif mysql # aggregate syntax: 
query II rowsort label-6655
SELECT - - 62, - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
62
-9

skipif mysql # not compatible
query II rowsort label-6655
SELECT - - 62, - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
62
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT DISTINCT 31 * + 83 + - + COUNT( - col2 ) * + COUNT( * ) col0 FROM tab0
----
2564

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6656
SELECT DISTINCT 31 * + 83 + - + COUNT ( - col2 ) * + COUNT ( * ) col0 FROM tab0
----
2564

query I rowsort
SELECT DISTINCT 21 - + + ( - col0 ) FROM tab1 AS cor0
----
106
112
72

query I rowsort
SELECT - col2 + + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-2277
-292
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT DISTINCT + col2 + + + CAST( - ( col2 ) AS SIGNED ) + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT + col2 + + + CAST ( - ( col2 ) AS INTEGER ) + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 72 * + col1 + col2 FROM tab2 cor0
----
3695
4882
5584

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 18 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL + 72 + + COUNT( * ) - + - 22 AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL + 72 + + COUNT ( * ) - + - 22 AS col0 FROM tab2
----
97

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT 91 * + col1 - 72 FROM tab0
----
1839
19
7299

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + 80 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT MIN( DISTINCT col0 ) - + + ( 97 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6666
SELECT MIN ( DISTINCT col0 ) - + + ( 97 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6667
SELECT + COUNT( * ) - + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6667
SELECT + COUNT ( * ) - + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 - - + 9 AS col2 FROM tab0 AS cor0
----
-1
-38
-90

query I rowsort
SELECT + - ( col0 ) - + - 17 AS col2 FROM tab2 AS cor0
----
-29
-47
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT - + col0 * - col0 * - col1 DIV - col1 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-6670
SELECT - + col0 * - col0 * - col1 / - col1 FROM tab0 AS cor0
----
225
7569
9409

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 41 * + col0 FROM tab1 WHERE - col1 / 1 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT ALL 96 * - MAX( + 43 ) AS col1 FROM tab2 AS cor0
----
-4128

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL 96 * - MAX ( + 43 ) AS col1 FROM tab2 AS cor0
----
-4128

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + - col2 >= - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT MAX( 9 ) * - 94 FROM tab0
----
-846

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT MAX ( 9 ) * - 94 FROM tab0
----
-846

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 * + col2 col2 FROM tab2
----
1664
3439
575

query I rowsort
SELECT DISTINCT + col2 * + - col0 AS col0 FROM tab1 WHERE NOT 60 IS NOT NULL
----

query I rowsort
SELECT 8 * - col0 * col1 FROM tab2
----
-18768
-39424
-40200

query I rowsort
SELECT ( + 56 ) * + 44 + - - col1 FROM tab0
----
2465
2485
2545

query I rowsort
SELECT 49 * + 20 FROM tab2
----
980
980
980

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + 98 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6683
SELECT - 27 * 25 DIV 32 * + + COUNT( * ) DIV + COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6683
SELECT - 27 * 25 / 32 * + + COUNT ( * ) / + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
-18

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + - col2 - - + 64 + - 93 >= - - 49
----

query I rowsort
SELECT + 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT col1 FROM tab2 WHERE - 30 + + 70 + - - col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT - COUNT( * ) + + 64 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-6687
SELECT - COUNT ( * ) + + 64 FROM tab0
----
61

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE - col1 > NULL
----

query II rowsort
SELECT DISTINCT - col1 * - col2, col2 AS col2 FROM tab0
----
210
10
3807
47
99
99

query I rowsort
SELECT col1 * ( col2 ) AS col2 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT 31 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 88 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - - - col2 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6694
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( 32, - col1 * - ( - 36 ) * - + col2 * - - col1 * + 41 + CAST( + 39 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6694
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( 32, - col1 * - ( - 36 ) * - + col2 * - - col1 * + 41 + CAST ( + 39 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + 99 AS col1 FROM tab0
----
12
2
84

query I rowsort
SELECT col2 + + col2 + 89 AS col2 FROM tab2
----
135
169
205

query I rowsort
SELECT + col2 + - 17 AS col1 FROM tab2
----
23
41
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6698
SELECT ALL 36 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 36 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - - 58 * + col2 FROM tab2
----
1380
2384
3439

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT - COUNT( * ) + - ( + ( COUNT( * ) ) ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6700
SELECT - COUNT ( * ) + - ( + ( COUNT ( * ) ) ) AS col2 FROM tab1
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-6701
SELECT ALL 2 DIV + 22 * col1 AS col2, col0 * - 62 FROM tab0
----
0
-5394
0
-6014
0
-930

skipif mysql # not compatible
query II rowsort label-6701
SELECT ALL 2 / + 22 * col1 AS col2, col0 * - 62 FROM tab0
----
0
-5394
0
-6014
0
-930

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 26 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 46 IS NULL
----

query I rowsort
SELECT - - 99 FROM tab0 AS cor0 WHERE NOT ( col1 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / - ( - - col2 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( - + col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + + 99 AS col0 FROM tab1 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col2 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT ALL + 5 * col2 FROM tab2
----
115
200
290

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL COUNT( * ) * + 22 + + 84 col2 FROM tab0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6711
SELECT ALL COUNT ( * ) * + 22 + + 84 col2 FROM tab0
----
150

query I rowsort
SELECT DISTINCT + 55 * + + col1 FROM tab1
----
2585
275
770

query I rowsort
SELECT col1 + - + 0 FROM tab0
----
1
21
81

query I rowsort
SELECT + 4 FROM tab2 WHERE NOT - ( - 98 ) IS NULL
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 43 ) + - + 51 col2 FROM tab0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6716
SELECT DISTINCT + - SUM( ALL + col0 ) col1, + 49 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
NULL
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6716
SELECT DISTINCT + - SUM ( ALL + col0 ) col1, + 49 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
NULL
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 47 = 75
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 * col0 + + col0 / + + col1 * + - col1 + - col0 AND - - 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6719
SELECT ALL + - col0 * - CAST( NULL AS SIGNED ) + + - col0, + 95 AS col2 FROM tab2 AS cor0
----
NULL
95
NULL
95
NULL
95

skipif mysql # not compatible
query II rowsort label-6719
SELECT ALL + - col0 * - CAST ( NULL AS INTEGER ) + + - col0, + 95 AS col2 FROM tab2 AS cor0
----
NULL
95
NULL
95
NULL
95

query I rowsort
SELECT + - col1 * 76 + - + 1 FROM tab2 AS cor0
----
-3877
-5093
-5853

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6721
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6721
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + + CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1677
-3431
-580

query I rowsort
SELECT - col2 FROM tab2 WHERE + + col1 + + col0 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + + 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6725
SELECT DISTINCT - MIN( DISTINCT col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - MIN ( DISTINCT col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT - + 11 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6726
SELECT - + 11 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 AND - 22 + - - 87
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT + COUNT( * ) - - 80 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT + COUNT ( * ) - - 80 FROM tab0 AS cor0
----
83

query I rowsort
SELECT + - col1 + + + col0 * - col1 * - col1 * + 34 FROM tab0 AS cor0
----
1304457
3297
3346029

query I rowsort
SELECT ALL - ( col2 ) - - + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT col1 - + col1 AS col1 FROM tab1 AS cor0 WHERE - 57 > ( - col0 )
----
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN - col1 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6733
SELECT 16 AS col0, + CAST( NULL AS SIGNED ) + - + col0 FROM tab0 AS cor0
----
16
NULL
16
NULL
16
NULL

skipif mysql # not compatible
query II rowsort label-6733
SELECT 16 AS col0, + CAST ( NULL AS INTEGER ) + - + col0 FROM tab0 AS cor0
----
16
NULL
16
NULL
16
NULL

query I rowsort
SELECT - col0 * + - 5 FROM tab1 AS cor0
----
255
425
455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT ALL - + MIN( + 15 ) DIV - 8 + - COUNT( ALL + ( - col2 ) ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - + MIN ( + 15 ) / - 8 + - COUNT ( ALL + ( - col2 ) ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - col0 - - 22 FROM tab1 AS cor0
----
-29
-63
-69

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 - + 7
----

query II rowsort
SELECT col2, col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - 90 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6742
SELECT + COUNT( - 81 ) DIV - SUM( - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT + COUNT ( - 81 ) / - SUM ( - col2 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + 50 AND + col0 * + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6747
SELECT ALL + 92 DIV col2 * - col1 AS col0, CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
-189
NULL
-81
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-6747
SELECT ALL + 92 / col2 * - col1 AS col0, CAST ( NULL AS REAL ) AS col0 FROM tab0
----
-189
NULL
-81
NULL
0
NULL

query I rowsort
SELECT DISTINCT - + col0 * - - 36 FROM tab0 AS cor0
----
-3132
-3492
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6749
SELECT MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - + ( - col0 ) ), + col1 col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT - ( + 48 ) AS col0, - COUNT( * ) * + 76 FROM tab0
----
-48
-228

skipif mysql # not compatible
query II rowsort label-6752
SELECT - ( + 48 ) AS col0, - COUNT ( * ) * + 76 FROM tab0
----
-48
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6753
SELECT DISTINCT - 21 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-117
-80
-89

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - 21 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-117
-80
-89

query I rowsort
SELECT ALL + col2 + - 94 + - 12 AS col1 FROM tab0
----
-59
-7
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6755
SELECT ALL CAST( - 5 AS SIGNED ) + - - MIN( DISTINCT col1 ) AS col2, MAX( + 46 ) col1 FROM tab0
----
-4
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6755
SELECT ALL CAST ( - 5 AS INTEGER ) + - - MIN ( DISTINCT col1 ) AS col2, MAX ( + 46 ) col1 FROM tab0
----
-4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col2 FROM tab0 WHERE - - col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 > - col1 / + col0 * ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT 44 + - COUNT( * ) * - ( COUNT( * ) ) FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-6758
SELECT 44 + - COUNT ( * ) * - ( COUNT ( * ) ) FROM tab1 cor0
----
53

query I rowsort
SELECT ALL + col0 + 44 AS col2 FROM tab1 cor0
----
129
135
95

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 + + ( - + col1 ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
SELECT DISTINCT - AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT - AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT DISTINCT 20 DIV + + 25 + + 72 + 40 col2 FROM tab2
----
112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6762
SELECT DISTINCT 20 / + + 25 + + 72 + 40 col2 FROM tab2
----
112

query I rowsort
SELECT DISTINCT - 65 + + ( col1 ) - - col0 FROM tab0
----
31
33
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6764
SELECT - - COUNT( DISTINCT - CAST( + 65 AS DECIMAL ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6764
SELECT - - COUNT ( DISTINCT - CAST ( + 65 AS REAL ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT + col1 - + 27 - col1 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + - 84 + + col1 FROM tab2 AS cor0
----
-17
-33
-7

query I rowsort
SELECT - 16 * - col2 * - + col2 FROM tab0 AS cor0
----
-156816
-1600
-35344

query I rowsort
SELECT ALL - 31 AS col0 FROM tab1 cor0
----
-31
-31
-31

query I rowsort
SELECT + 61 * + col1 FROM tab0
----
1281
4941
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6770
SELECT CAST( NULL AS DECIMAL ) * + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT CAST ( NULL AS REAL ) * + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL MAX( ALL - + col0 ) * + 26 AS col1 FROM tab1
----
-1326

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL MAX ( ALL - + col0 ) * + 26 AS col1 FROM tab1
----
-1326

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6772
SELECT CAST( + + col0 AS SIGNED ) DIV + + col1 AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6772
SELECT CAST ( + + col0 AS INTEGER ) / + + col1 AS col2 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6773
SELECT DISTINCT 13 + - COUNT( * ) DIV + 42 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT 13 + - COUNT ( * ) / + 42 FROM tab1
----
13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN + 78 - - - col1 AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT DISTINCT MIN( - col1 ) DIV - 1 col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6775
SELECT DISTINCT MIN ( - col1 ) / - 1 col0 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > - col0 * + col0
----

query I rowsort
SELECT - + col1 * + col1 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-100
-10368
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-6778
SELECT col2 DIV + + col1 + - col1 + - ( - col0 ) + - 59 FROM tab0 cor0
----
-125
136
7

skipif mysql # not compatible
query I rowsort label-6778
SELECT col2 / + + col1 + - col1 + - ( - col0 ) + - 59 FROM tab0 cor0
----
-125
136
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 col0, + col2 FROM tab0 cor0 WHERE + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6780
SELECT * FROM tab2 WHERE NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6780
SELECT * FROM tab2 WHERE NULL < - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6781
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - + col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 44 + 98 FROM tab1
----
142
142
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 21 + - col0 AS col0 FROM tab1
----
-30
-64
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL + COUNT( * ) + - MAX( DISTINCT - col1 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT - col1 ) FROM tab0
----
4

query I rowsort
SELECT ALL 67 + 61 + + - 94 - + + col1 * + - col1 FROM tab2 cor0
----
2635
4523
5963

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL - COUNT( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - COUNT ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT SUM( DISTINCT - + 76 ) AS col0, 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-76
42

skipif mysql # not compatible
query II rowsort label-6788
SELECT SUM ( DISTINCT - + 76 ) AS col0, 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-76
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6789
SELECT DISTINCT + + COUNT( * ) * + + COUNT( * ) col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6789
SELECT DISTINCT + + COUNT ( * ) * + + COUNT ( * ) col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT DISTINCT + + MIN( 89 ) col2 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6790
SELECT DISTINCT + + MIN ( 89 ) col2 FROM tab1 AS cor0
----
89

query I rowsort
SELECT DISTINCT AVG ( + 48 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

query I rowsort
SELECT + - ( 90 ) AS col1 FROM tab0 AS cor0
----
-90
-90
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT ALL + + COUNT( ALL + 99 ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6794
SELECT ALL + + COUNT ( ALL + 99 ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT - col0, - 33 - + - col0 AS col2 FROM tab1
----
-51
18
-85
52
-91
58

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL 24 * + COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL 24 * + COUNT ( * ) FROM tab0
----
72

query I rowsort
SELECT 60 * + col1 FROM tab2
----
3060
4020
4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col2 / - col2 col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 85 col2 FROM tab1 AS cor0
----
-4335
-7225
-7735

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT - SUM( - - 4 ) AS col1 FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6802
SELECT - SUM ( - - 4 ) AS col1 FROM tab0 cor0
----
-12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col1 <= NULL
----

query I rowsort
SELECT + col1 + + + col0 AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT - col2 * + + col2 + col0 + col2 AS col1 FROM tab2
----
-1496
-3231
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT - 13 + + 32 * + COUNT( * ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - 13 + + 32 * + COUNT ( * ) FROM tab0 AS cor0
----
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( 86 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6808
SELECT ALL + 79 col1, - ( - 60 ) * - MIN( ALL + - 53 ) * - 70 FROM tab2 AS cor0
----
79
-222600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6808
SELECT ALL + 79 col1, - ( - 60 ) * - MIN ( ALL + - 53 ) * - 70 FROM tab2 AS cor0
----
79
-222600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 42 ) col2 FROM tab2 AS cor0
----
-42
-42
-42

query II rowsort
SELECT DISTINCT + + col1 AS col2, - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 <> - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 42 NOT BETWEEN 50 + col0 AND - ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6813
SELECT - col0 DIV col0 DIV col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6813
SELECT - col0 / col0 / col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT DISTINCT + col0 DIV + 28 + + ( - 76 ) AS col2 FROM tab0
----
-73
-76

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + col0 / + 28 + + ( - 76 ) AS col2 FROM tab0
----
-73
-76

query I rowsort
SELECT 74 + - 68 FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT MAX( + + col2 ) FROM tab1 WHERE 89 BETWEEN + 56 AND + + col1 + - col2 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT MAX ( + + col2 ) FROM tab1 WHERE 89 BETWEEN + 56 AND + + col1 + - col2 * + col0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + ( - 89 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + - 8 col0 FROM tab0
----
-449
-6569
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 90 NOT BETWEEN NULL AND 90
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT + 63 DIV + col1 col0 FROM tab1
----
1
12
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6820
SELECT + 63 / + col1 col0 FROM tab1
----
1
12
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6821
SELECT DISTINCT + + 14 AS col1, COUNT( ALL - 10 ) AS col0 FROM tab2 AS cor0
----
14
3

skipif mysql # not compatible
query II rowsort label-6821
SELECT DISTINCT + + 14 AS col1, COUNT ( ALL - 10 ) AS col0 FROM tab2 AS cor0
----
14
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT DISTINCT CAST( + 54 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT CAST ( + 54 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT ALL - MAX( DISTINCT - 10 ) col0 FROM tab2 cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6823
SELECT ALL - MAX ( DISTINCT - 10 ) col0 FROM tab2 cor0
----
10

query II rowsort
SELECT DISTINCT - col2 AS col2, - 44 FROM tab2 AS cor0
----
-23
-44
-40
-44
-58
-44

query I rowsort
SELECT + ( - col0 ) * + 43 * - col1 FROM tab2 AS cor0
----
100878
211904
216075

query I rowsort
SELECT + 35 * - col0 * col1 AS col0 FROM tab2
----
-172480
-175875
-82110

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT ALL COUNT( * ) * - 6, 3 AS col0 FROM tab0
----
-18
3

skipif mysql # not compatible
query II rowsort label-6827
SELECT ALL COUNT ( * ) * - 6, 3 AS col0 FROM tab0
----
-18
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT + MIN( DISTINCT 53 ) AS col1 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT + MIN ( DISTINCT 53 ) AS col1 FROM tab0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 42 col0 FROM tab2 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + + 10 col1 FROM tab0
----
44
44
44

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab2 WHERE NOT col0 >= - + ( + 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL COUNT( * ) + MIN( col2 ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL COUNT ( * ) + MIN ( col2 ) AS col1 FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 88 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6833
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 88 IS NOT NULL
----
3

query I rowsort
SELECT ALL col0 + - - col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT col0 + + col0 * col1 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT 59 AS col0 FROM tab1 AS cor0 WHERE NULL <= col0 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + 66 + SUM( + 22 ) * + MIN( + col0 ) FROM tab2 AS cor0
----
3102

skipif mysql # not compatible
query I rowsort label-6837
SELECT + 66 + SUM ( + 22 ) * + MIN ( + col0 ) FROM tab2 AS cor0
----
3102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6838
SELECT - col2 + CAST( - col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6838
SELECT - col2 + CAST ( - col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL COUNT( * ) * + 17 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL COUNT ( * ) * + 17 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col0 + - col1 + - col1 * col2 FROM tab2 cor0
----
-1178
-3093
-3878

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT + COUNT( * ) * + 72 AS col0 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT + COUNT ( * ) * + 72 AS col0 FROM tab1 AS cor0
----
216

query I rowsort
SELECT DISTINCT 51 + 22 FROM tab0 AS cor0
----
73

query II rowsort
SELECT 84 + + col0 + - col2 + - col2 - - 49 * - col1, + col0 + col0 AS col1 FROM tab1 AS cor0
----
-194
170
-2264
182
-743
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT ( + - col1 ) DIV col2 col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6844
SELECT ( + - col1 ) / col2 col1 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - + col2 + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6846
SELECT DISTINCT 19 + - col1 + CAST( NULL AS SIGNED ) * - - 26 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT 19 + - col1 + CAST ( NULL AS INTEGER ) * - - 26 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + - col1 AS col2 FROM tab0
----
-66
66
96

query I rowsort
SELECT 92 * - col0 - + - col0 FROM tab1 AS cor0
----
-4641
-7735
-8281

query I rowsort
SELECT + - 77 - + + 10 + 3 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT COUNT( * ) - 1 - + 88 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-6851
SELECT COUNT ( * ) - 1 - + 88 FROM tab1 AS cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT DISTINCT 31 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT 31 / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col1 + + 2 FROM tab2 AS cor0
----
-2599
-4487
-5927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6855
SELECT MAX( - CAST( + - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6855
SELECT MAX ( - CAST ( + - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT - - ( 22 ) * col2 AS col0 FROM tab0 AS cor0
----
1034
2178
220

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + + col2 ) BETWEEN NULL AND + col1
----

query II rowsort
SELECT - ( ( - + col0 ) ), + col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT ALL + col0, + col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6860
SELECT + col0 AS col2, + col0 DIV col0 FROM tab1
----
51
1
85
1
91
1

skipif mysql # not compatible
query II rowsort label-6860
SELECT + col0 AS col2, + col0 / col0 FROM tab1
----
51
1
85
1
91
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col1 * ( - + ( + 37 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 59 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL + COUNT( ALL - 26 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + COUNT ( ALL - 26 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( + 92 ) + 7 AS col2 FROM tab1
----
99

query I rowsort
SELECT + col1 * - 26 FROM tab2
----
-1326
-1742
-2002

query I rowsort
SELECT col2 * + 16 AS col0 FROM tab2
----
368
640
928

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + + col1 * - 85 = col1 + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6868
SELECT DISTINCT + col2 FROM tab1 WHERE - CAST( 94 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + col2 FROM tab1 WHERE - CAST ( 94 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT + 61 + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( col1 * - 57 + - col1 ) IS NULL
----
64

skipif mysql # not compatible
query I rowsort label-6869
SELECT + 61 + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( col1 * - 57 + - col1 ) IS NULL
----
64

query I rowsort
SELECT ALL - 18 + col1 AS col0 FROM tab0
----
-17
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT + ( COUNT( * ) ) + 81 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + ( col1 ) * + 9 + 14
----
81

skipif mysql # not compatible
query I rowsort label-6871
SELECT + ( COUNT ( * ) ) + 81 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + ( col1 ) * + 9 + 14
----
81

query I rowsort
SELECT - 98 + col0 AS col2 FROM tab2 WHERE NOT col0 - + 84 * 17 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + 39 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT CAST( 64 AS SIGNED ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6874
SELECT CAST ( 64 AS INTEGER ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT + SUM( DISTINCT CAST( col0 AS SIGNED ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6875
SELECT + SUM ( DISTINCT CAST ( col0 AS INTEGER ) ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT + col1 FROM tab0 WHERE CAST( + 79 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6876
SELECT + col1 FROM tab0 WHERE CAST ( + 79 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT + CAST( NULL AS SIGNED ) / col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT + CAST ( NULL AS INTEGER ) / col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT - 38 / ( ( CAST( NULL AS SIGNED ) ) * + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT - 38 / ( ( CAST ( NULL AS INTEGER ) ) * + col2 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT col2 DIV 87 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6879
SELECT col2 / 87 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL 17 + - 25 AS col1 FROM tab0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - 45 * - SUM( 11 * col1 ) FROM tab0
----
50985

skipif mysql # not compatible
query I rowsort label-6881
SELECT - 45 * - SUM ( 11 * col1 ) FROM tab0
----
50985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6882
SELECT DISTINCT - CAST( NULL AS SIGNED ) + SUM( ALL + 43 ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6882
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + SUM ( ALL + 43 ) col0 FROM tab2
----
NULL

query I rowsort
SELECT 46 * 21 AS col0 FROM tab1
----
966
966
966

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL + COUNT( * ) + + MIN( + 33 ) AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + COUNT ( * ) + + MIN ( + 33 ) AS col2 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT + SUM( DISTINCT 98 ) + - 61 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-6885
SELECT + SUM ( DISTINCT 98 ) + - 61 FROM tab1
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> 75
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * 92 + col2 * - col1 NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT 70 * SUM( DISTINCT col2 ) AS col1 FROM tab1
----
15610

skipif mysql # not compatible
query I rowsort label-6888
SELECT 70 * SUM ( DISTINCT col2 ) AS col1 FROM tab1
----
15610

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab0 AS cor0 WHERE - col2 + - 60 NOT IN ( 91 / + 82 )
----
-225
-7569
-9409

query I rowsort
SELECT ALL ( 97 ) - + 21 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT SUM( col2 ) * + COUNT( * ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-6891
SELECT SUM ( col2 ) * + COUNT ( * ) FROM tab0
----
468

query I rowsort
SELECT 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6893
SELECT - CAST( 61 AS SIGNED ) FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-6893
SELECT - CAST ( 61 AS INTEGER ) FROM tab2
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * col0 AND col2 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * col0 AND col2 * - col0
----
0

query I rowsort
SELECT ALL - col0 * - 15 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= + col0 / col2
----

query I rowsort
SELECT - col0 * 66 AS col0 FROM tab1 AS cor0
----
-3366
-5610
-6006

query I rowsort
SELECT ( 36 ) FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT - MAX( 52 ) AS col1 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6898
SELECT - MAX ( 52 ) AS col1 FROM tab2 AS cor0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 >= col2
----

query I rowsort
SELECT + AVG ( DISTINCT 44 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - 55 + - col1 FROM tab2
----
-106
-122
-132

query I rowsort
SELECT - col0 + 18 * + col0 AS col2 FROM tab1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL - SUM( DISTINCT + - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - SUM ( DISTINCT + - col0 ) FROM tab0
----
199

query III rowsort
SELECT * FROM tab2 WHERE NOT 26 NOT BETWEEN 77 * col0 - col2 AND col2 * + col0
----

query I rowsort
SELECT col2 * + col0 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL 41 + SUM( ( + col1 ) ) AS col0 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL 41 + SUM ( ( + col1 ) ) AS col0 FROM tab0
----
144

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - 77 ) + col1 BETWEEN + 89 AND 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - - COUNT( * ) * COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6908
SELECT - - COUNT ( * ) * COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT DISTINCT - col0 + + col1 + - col2 - + col0 FROM tab0 AS cor0
----
-163
-292
4

query I rowsort
SELECT col1 + - + 35 AS col1 FROM tab1 AS cor0
----
-21
-30
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * + - 69 col2 FROM tab2 AS cor0
----
-4623

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT + COUNT( ALL ( 1 ) ) + - 66 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-6912
SELECT + COUNT ( ALL ( 1 ) ) + - 66 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL < col2 * col0
----

query I rowsort
SELECT - 7 + - 5 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT + MIN( - 96 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6915
SELECT + MIN ( - 96 ) AS col0 FROM tab0 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT - + col0 * - CAST( - 56 AS SIGNED ) * + col1 + + col0 FROM tab2 AS cor0
----
-131330
-275904
-281325

skipif mysql # not compatible
query I rowsort label-6917
SELECT - + col0 * - CAST ( - 56 AS INTEGER ) * + col1 + + col0 FROM tab2 AS cor0
----
-131330
-275904
-281325

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT + 22 DIV - 20 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 22 / - 20 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 * + 21 FROM tab2
----
-1344
-1575
-966

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 34 / - 70 + col1 * + 95 BETWEEN col2 + - col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - ( col2 ) + - 14 AS col0 FROM tab0 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT COUNT( * ) FROM tab0 WHERE ( + col1 * - 63 ) >= 91 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-6923
SELECT COUNT ( * ) FROM tab0 WHERE ( + col1 * - 63 ) >= 91 + + col0
----
0

query I rowsort
SELECT DISTINCT - col1 * - 60 * + - 78 FROM tab0 AS cor0
----
-379080
-4680
-98280

query I rowsort
SELECT DISTINCT + 95 * - col0 + col1 + + 12 - 80 FROM tab0 AS cor0
----
-1412
-8312
-9282

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT - - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6926
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + col1 * col2 + col2 AS col1 FROM tab0 WHERE NOT col0 IN ( + + col1 )
----
198
220
3854

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT - col1 DIV + 47 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6928
SELECT - col1 / + 47 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 * + + col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6930
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 72 + + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6930
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 72 + + + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT + + col2 AS col1, col1 + + col2 + col0 AS col2 FROM tab2 cor0
----
23
120
40
181
58
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 18 col1 FROM tab0 AS cor0
----
1782
180
846

query I rowsort
SELECT DISTINCT + 97 FROM tab0 WHERE ( - - col0 * 1 + + col0 ) IS NOT NULL
----
97

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT col1 >= col1 / + 35
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 51 IS NULL
----

query I rowsort
SELECT DISTINCT 75 * + 74 + - - 72 FROM tab2
----
5622

query I rowsort
SELECT - ( - 41 ) AS col0 FROM tab0
----
41
41
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6938
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( * ) * 99 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * 99 FROM tab2
----
NULL

query I rowsort
SELECT + col1 + - 6 + - ( col2 ) FROM tab2 AS cor0
----
22
3
31

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab2 cor0
----
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL COUNT( * ) + - SUM( ALL - col2 ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL COUNT ( * ) + - SUM ( ALL - col2 ) AS col1 FROM tab0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6944
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN - 39 AND + col0 * - + col1 + col2 + CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-6944
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN - 39 AND + col0 * - + col1 + col2 + CAST ( NULL AS INTEGER ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT + + COUNT( * ) - + 67 * + + 59 FROM tab1 AS cor0
----
-3950

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT + + COUNT ( * ) - + 67 * + + 59 FROM tab1 AS cor0
----
-3950

query I rowsort
SELECT - - 0 - + - 43 AS col1 FROM tab1 AS cor0
----
43
43
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - - col1 * - + 98 IS NULL
----

query I rowsort
SELECT ALL ( - + col1 ) - - col0 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL - - COUNT( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - - COUNT ( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT - 10 + - MAX( - col2 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-6950
SELECT - 10 + - MAX ( - col2 ) FROM tab2
----
13

query I rowsort
SELECT 56 * - 29 FROM tab1
----
-1624
-1624
-1624

query I rowsort
SELECT ALL ( - - 28 ) AS col0 FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT - col1 * 6 AS col0 FROM tab0
----
-126
-486
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT ALL COUNT( + - CAST( + + col0 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL COUNT ( + - CAST ( + + col0 AS INTEGER ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - ( - + 35 ) + - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT 42 * + + MAX( col2 ) FROM tab2
----
2436

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT 42 * + + MAX ( col2 ) FROM tab2
----
2436

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6958
SELECT ALL - col1 * - 66, + CAST( NULL AS SIGNED ) col0 FROM tab1
----
3102
NULL
330
NULL
924
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6958
SELECT ALL - col1 * - 66, + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
3102
NULL
330
NULL
924
NULL

query I rowsort
SELECT + 90 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-4567
-5972
-6890

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT - - col0 + + - col0 DIV - 51 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-6960
SELECT - - col0 + + - col0 / - 51 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT - 86 + - + SUM( ALL + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT - 86 + - + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE 47 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col2 * 29 FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
-1160
-1682
-667

query I rowsort
SELECT ALL + 28 * - + col2 FROM tab2
----
-1120
-1624
-644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6965
SELECT 62 DIV SUM( DISTINCT ( - col0 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6965
SELECT 62 / SUM ( DISTINCT ( - col0 ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - 27 * - COUNT( + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6967
SELECT - 27 * - COUNT ( + col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - + 32 AS col0 FROM tab1 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6969
SELECT * FROM tab1 WHERE NULL = + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6969
SELECT * FROM tab1 WHERE NULL = + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 40 AS col1 FROM tab0 WHERE - + col0 NOT BETWEEN - + col2 AND + 61
----
40

query I rowsort
SELECT + col1 FROM tab2 WHERE - - 16 IN ( - col0, col2, - - col0, col2 )
----

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab0 WHERE NOT col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT ALL + 28 - ( + col2 ) + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-32
-41
-69

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL + 28 - ( + col2 ) + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-32
-41
-69

query II rowsort
SELECT - - col0, col2 + - ( + 25 ) AS col1 FROM tab0 AS cor0
----
15
22
87
-15
97
74

query II rowsort
SELECT col1 AS col0, - 33 FROM tab1 cor0
----
14
-33
47
-33
5
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 - col2 col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-6977
SELECT + + 0, + 44 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-6977
SELECT + + 0, + 44 / col1 AS col2 FROM tab2 AS cor0
----
0
0
0
0
0
0

query II rowsort
SELECT ALL - - 81 AS col1, ( + + col0 ) FROM tab1 AS cor0
----
81
51
81
85
81
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <= - ( + ( 71 ) ) * 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT - ( SUM( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - ( SUM ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT 25 * + - col0 AS col1 FROM tab1
----
-1275
-2125
-2275

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col1 IS NULL )
----

query I rowsort
SELECT - + 6 AS col0 FROM tab0 cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT MIN( - - 72 ) AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT MIN ( - - 72 ) AS col1 FROM tab2 AS cor0
----
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT DISTINCT + SUM( ALL 48 ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT + SUM ( ALL 48 ) FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT DISTINCT ( - SUM( + ( - col0 ) ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT ( - SUM ( + ( - col0 ) ) ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + SUM( ALL col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-6988
SELECT + SUM ( ALL col1 ) FROM tab0 cor0
----
103

query II rowsort
SELECT + col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT + col1 * - - 80 * + ( col2 ) + + col2 FROM tab1 AS cor0
----
107616
23659
255748

query II rowsort
SELECT DISTINCT - + col2, ( - col1 ) + + 86 AS col0 FROM tab2 cor0
----
-23
35
-40
9
-58
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6992
SELECT ALL + - col1 - - ( - - 36 ) AS col1 FROM tab1 cor0 WHERE ( NOT col0 NOT IN ( - 73, CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + - col1 - - ( - - 36 ) AS col1 FROM tab1 cor0 WHERE ( NOT col0 NOT IN ( - 73, CAST ( NULL AS REAL ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL <> ( NULL ) )
----

query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE + col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL + 18 * + COUNT( * ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + 18 * + COUNT ( * ) AS col1 FROM tab0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT COUNT( * ) DIV + ( + + ( + COUNT( * ) ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6997
SELECT COUNT ( * ) / + ( + + ( + COUNT ( * ) ) ) FROM tab2
----
1

query I rowsort
SELECT col0 + - + ( + col0 ) FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6999
SELECT DISTINCT + + 28 AS col2, CAST( + col0 AS SIGNED ) FROM tab0 WHERE NOT - - col2 IS NULL
----
28
15
28
87
28
97

skipif mysql # not compatible
query II rowsort label-6999
SELECT DISTINCT + + 28 AS col2, CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NOT - - col2 IS NULL
----
28
15
28
87
28
97

query II rowsort
SELECT - col1 + + + col0 AS col1, col0 FROM tab1
----
37
51
44
91
80
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col2 FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col0 + 89 + - - col2 AS col2 FROM tab0 cor0
----
151
186
285

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col1 FROM tab0 WHERE ( NULL > - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7005
SELECT ALL + - col2 DIV - CAST( 50 AS SIGNED ) + 92 + col0 FROM tab2 AS cor0 WHERE + col2 IN ( - - ( - 26 ), + col2 )
----
138
156
168

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + - col2 / - CAST ( 50 AS INTEGER ) + 92 + col0 FROM tab2 AS cor0 WHERE + col2 IN ( - - ( - 26 ), + col2 )
----
138
156
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + col0 * + - CAST( NULL AS SIGNED ) * - + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + col0 * + - CAST ( NULL AS INTEGER ) * - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL COUNT( ALL + - 69 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL COUNT ( ALL + - 69 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7009
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL OR NOT + col1 NOT BETWEEN NULL AND + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7009
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL OR NOT + col1 NOT BETWEEN NULL AND + CAST ( col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT + COUNT( * ) * - MIN( ALL - col0 ) AS col1, 67 col0 FROM tab0 AS cor0
----
291
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7010
SELECT + COUNT ( * ) * - MIN ( ALL - col0 ) AS col1, 67 col0 FROM tab0 AS cor0
----
291
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT COUNT( * ) * - ( + 22 ) AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-7011
SELECT COUNT ( * ) * - ( + 22 ) AS col0 FROM tab0
----
-66

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN - - col0 - + 32 AND - + col0 * - col0 + - + col1 - - col2 * + col0
----
87
21
10
97
1
99

query I rowsort
SELECT - col1 * + ( + col0 ) AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL + col1 * col1 FROM tab1 WHERE NOT 79 * - 8 + col2 IS NULL
----
196
2209
25

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 12, col2 FROM tab0
----
12
10
12
47
12
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT DISTINCT + col1 DIV ( col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT + col1 / ( col2 ) FROM tab1
----
0

query I rowsort
SELECT - 63 * + col2 FROM tab2
----
-1449
-2520
-3654

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7019
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7020
SELECT ALL col1 AS col0, + ( + CAST( + ( + - 16 ) AS SIGNED ) ) * col2 FROM tab1
----
14
-1536
47
-1088
5
-944

skipif mysql # not compatible
query II rowsort label-7020
SELECT ALL col1 AS col0, + ( + CAST ( + ( + - 16 ) AS INTEGER ) ) * col2 FROM tab1
----
14
-1536
47
-1088
5
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT ( NOT col1 + - - 99 < - col2 * - 13 * + col1 + + col1 + + col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT DISTINCT COUNT( ALL + col2 ), 67 AS col1 FROM tab0
----
3
67

skipif mysql # not compatible
query II rowsort label-7022
SELECT DISTINCT COUNT ( ALL + col2 ), 67 AS col1 FROM tab0
----
3
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 35 col2 FROM tab0
----
-2835
-35
-735

onlyif mysql # DIV for integer division: 
query II rowsort label-7024
SELECT 32 * + + col0 col0, + col1 DIV - 9 + - 52 + col2 AS col1 FROM tab0
----
2784
-44
3104
47
480
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7024
SELECT 32 * + + col0 col0, + col1 / - 9 + - 52 + col2 AS col1 FROM tab0
----
2784
-44
3104
47
480
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <= - 56
----

query I rowsort
SELECT ALL - + ( - 60 ) AS col0 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT col0 + - + 74 AS col2 FROM tab1 AS cor0
----
-23
11
17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7029
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) < + - col2
----

skipif mysql # not compatible
query III rowsort label-7029
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) < + - col2
----

query I rowsort
SELECT 53 + + - col0 * 45 + + 91 AS col2 FROM tab2 AS cor0
----
-1926
-2736
-3231

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT COUNT( * ) + + - MAX( - + 96 ) + - - COUNT( col0 ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-7031
SELECT COUNT ( * ) + + - MAX ( - + 96 ) + - - COUNT ( col0 ) FROM tab0 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT DISTINCT - COUNT( DISTINCT - - col1 ) * - 33 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT - COUNT ( DISTINCT - - col1 ) * - 33 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT - COUNT( * ) col2 FROM tab2 WHERE + - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7033
SELECT - COUNT ( * ) col2 FROM tab2 WHERE + - col2 IS NOT NULL
----
-3

query II rowsort
SELECT ALL - col2 AS col2, col1 / - 11 + - + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 92 ) + - 45 FROM tab2
----
-137
-137
-137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 5 col2, col2 - + + col1 FROM tab1
----
5
21
5
54
5
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT DISTINCT 83 * + COUNT( DISTINCT 42 ) + - 50 - + COUNT( * ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT 83 * + COUNT ( DISTINCT 42 ) + - 50 - + COUNT ( * ) AS col0 FROM tab1
----
30

query I rowsort
SELECT ALL 83 * + col2 AS col2 FROM tab1 AS cor0
----
4897
5644
7968

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT DISTINCT col0 DIV + + 39 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT col0 / + + 39 AS col2 FROM tab2
----
1

query I rowsort
SELECT 23 + - + col2 * + col0 + col0 + - col2 AS col2 FROM tab0
----
-714
-770
-9582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7041
SELECT DISTINCT col1 + - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT col1 + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL + - 37 * + col0 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7043
SELECT 98 DIV 38 AS col2, - 8 DIV - CAST( 98 AS SIGNED ) col2 FROM tab2 AS cor0
----
2
0
2
0
2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7043
SELECT 98 / 38 AS col2, - 8 / - CAST ( 98 AS INTEGER ) col2 FROM tab2 AS cor0
----
2
0
2
0
2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT - COUNT( ALL + - col1 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7044
SELECT - COUNT ( ALL + - col1 ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + 23 * col1 FROM tab0 AS cor0
----
1863
23
483

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT ALL - + col1 DIV col2 * + - col2 FROM tab0 AS cor0
----
0
20
47

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - + col1 / col2 * + - col2 FROM tab0 AS cor0
----
0
20
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 31
----

query I rowsort
SELECT ALL + col0 * - - 28 FROM tab1
----
1428
2380
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT + COUNT( * ) * - 85 AS col2 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-7049
SELECT + COUNT ( * ) * - 85 AS col2 FROM tab1
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT ALL + 99, + SUM( ALL + col0 ) col1 FROM tab1
----
99
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7050
SELECT ALL + 99, + SUM ( ALL + col0 ) col1 FROM tab1
----
99
227

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7051
SELECT ALL + COUNT( * ) AS col0, + 90 DIV - + 96 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-7051
SELECT ALL + COUNT ( * ) AS col0, + 90 / - + 96 FROM tab0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7052
SELECT + 81 * + + CAST( - + 38 AS SIGNED ), col2 FROM tab1
----
-3078
59
-3078
68
-3078
96

skipif mysql # not compatible
query II rowsort label-7052
SELECT + 81 * + + CAST ( - + 38 AS INTEGER ), col2 FROM tab1
----
-3078
59
-3078
68
-3078
96

query I rowsort
SELECT col2 * - 39 AS col0 FROM tab1
----
-2301
-2652
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7054
SELECT + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 + + 72 + + - col0 * + col2 - - col1 * col0 = + 38
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 + + 72 + + - col0 * + col2 - - col1 * col0 = + 38
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <= - 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL 74 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL 74 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT DISTINCT + ( - + 39 ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT + ( - + 39 ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL MAX( DISTINCT 40 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL MAX ( DISTINCT 40 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT ALL - col1 * - col0 + - col0 + + col2 col1 FROM tab2 WHERE ( NOT ( + CAST( col2 AS SIGNED ) ) IS NULL )
----
2323
4904
5008

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7059
SELECT ALL - col1 * - col0 + - col0 + + col2 col1 FROM tab2 WHERE ( NOT ( + CAST ( col2 AS INTEGER ) ) IS NULL )
----
2323
4904
5008

query I rowsort
SELECT ALL 99 + col1 FROM tab0
----
100
120
180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN - col0 + - - 25 + col0 AND + + 82
----

query III rowsort
SELECT * FROM tab2 WHERE - 99 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col1, - 87 * - col0 FROM tab0
----
15
1305
87
7569
97
8439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 73 col1 FROM tab2 cor0
----
-3358
-4672
-5475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT + 73 * 77 - - CAST( + col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
5717
5719
5729

skipif mysql # not compatible
query I rowsort label-7065
SELECT + 73 * 77 - - CAST ( + col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
5717
5719
5729

query I rowsort
SELECT - 86 + + - 53 * col2 FROM tab0
----
-2577
-5333
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT DISTINCT - ( - COUNT( ( + 89 ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT - ( - COUNT ( ( + 89 ) ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - col1 * - col2 * - 86 + - - 26 FROM tab0
----
-18034
-327376
-8488

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT COUNT( * ) + + 0 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7069
SELECT COUNT ( * ) + + 0 AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL col2 * - col0 * + - 71 + - - ( - - col1 ) AS col0 FROM tab0
----
50136
61791
681814

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT DISTINCT - MIN( ALL + + col2 ) + COUNT( * ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT - MIN ( ALL + + col2 ) + COUNT ( * ) AS col1 FROM tab0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT ALL - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) + - MAX( - + 70 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - MAX ( - + 70 ) FROM tab0
----
NULL

query I rowsort
SELECT col1 + + + 15 FROM tab2
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT + 69 + - CAST( - col2 AS SIGNED ) * + + col1 AS col1 FROM tab1 cor0
----
1413
3265
364

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 69 + - CAST ( - col2 AS INTEGER ) * + + col1 AS col1 FROM tab1 cor0
----
1413
3265
364

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 < col0
----

query I rowsort
SELECT ALL - col0 * + - 49 AS col2 FROM tab0 AS cor0
----
4263
4753
735

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7078
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7078
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= + - col2
----

query I rowsort
SELECT - - ( - + col2 ) FROM tab0 cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7082
SELECT + CAST( - - COUNT( ALL - - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7082
SELECT + CAST ( - - COUNT ( ALL - - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 >= + 64 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL - col1 * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7084
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 71 * col0 FROM tab0
----
1065
6177
6887

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT DISTINCT - col2 DIV - col0 * col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT - col2 / - col0 * col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT ALL - - col0 * - ( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - - col0 * - ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT - - CAST( - - col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7088
SELECT - - CAST ( - - col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + + col1 IS NULL
----

query I rowsort
SELECT ALL col2 * col2 + + col0 + - col0 AS col1 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - 11 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - 38, 54 * - - col1, - - col0 * - - col1 + + + 10, - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN - 43 AND col0
----

query I rowsort
SELECT DISTINCT + 93 + - 63 AS col2 FROM tab2 cor0
----
30

query I rowsort
SELECT ALL + - 82 - + + 67 + + 47 FROM tab0 AS cor0
----
-102
-102
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT - + 2 * - col2 * + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT - + 2 * - col2 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT + - ( COUNT( * ) ) + - + 74 * + + 24 FROM tab1 AS cor0
----
-1779

skipif mysql # not compatible
query I rowsort label-7097
SELECT + - ( COUNT ( * ) ) + - + 74 * + + 24 FROM tab1 AS cor0
----
-1779

query I rowsort
SELECT ALL - 57 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 77 + + 97 * col1 - + ( col1 ) AS col2 FROM tab2 AS cor0
----
4973
6509
7469

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE - col1 > + 66
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT DISTINCT - 19 AS col0, - SUM( col0 ) FROM tab0
----
-19
-199

skipif mysql # not compatible
query II rowsort label-7101
SELECT DISTINCT - 19 AS col0, - SUM ( col0 ) FROM tab0
----
-19
-199

query III rowsort
SELECT * FROM tab0 WHERE NULL <= 50 * - + 52 + - col1 * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7103
SELECT ALL + 60 AS col1, CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
60
3

skipif mysql # not compatible
query II rowsort label-7103
SELECT ALL + 60 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
60
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT ALL 65 * col2 - - 58 DIV - + col2 AS col1 FROM tab1 WHERE 76 IS NOT NULL
----
3835
4420
6240

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL 65 * col2 - - 58 / - + col2 AS col1 FROM tab1 WHERE 76 IS NOT NULL
----
3835
4420
6240

query III rowsort
SELECT * FROM tab2 WHERE + 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - - col1 - + - 21 FROM tab2 AS cor0
----
1194
3101
3907

query II rowsort
SELECT DISTINCT - + 23 AS col1, 51 AS col0 FROM tab0 AS cor0
----
-23
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7108
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - col0 * col1 * - + col2 + + 92 * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7108
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - col0 * col1 * - + col2 + + 92 * col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT + col0 DIV col2 + + - col1 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-7109
SELECT + col0 / col2 + + - col1 FROM tab2 AS cor0
----
-49
-66
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT ALL - CAST( NULL AS SIGNED ) + - 33 + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7110
SELECT ALL - CAST ( NULL AS INTEGER ) + - 33 + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2 * - col0 / col1, col2 * - col0 AS col1 FROM tab1 cor0 WHERE NOT - 58 / - - col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL COUNT( - + 72 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL COUNT ( - + 72 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 * - col0 * col0 FROM tab0 AS cor0
----
-3375
-658503
-912673

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7114
SELECT DISTINCT * FROM tab2 WHERE - - CAST( col2 AS SIGNED ) NOT IN ( - 76, + col2, - + col1 * + 39 - - col1, - + ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7114
SELECT DISTINCT * FROM tab2 WHERE - - CAST ( col2 AS INTEGER ) NOT IN ( - 76, + col2, - + col1 * + 39 - - col1, - + ( col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT ALL COUNT( * ) * + 1 DIV 86 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL COUNT ( * ) * + 1 / 86 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT DISTINCT - 41 DIV - col1 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT - 41 / - col1 FROM tab1
----
0
2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT SUM( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-7117
SELECT SUM ( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-185

query III rowsort
SELECT ALL * FROM tab0 WHERE + 11 <> col1 + - ( + - 20 ) * col2 + + - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * 82 AS col0 FROM tab2
----
4182
5494
6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT DISTINCT - ( - CAST( + col1 AS SIGNED ) ) * 65 FROM tab0
----
1365
5265
65

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT - ( - CAST ( + col1 AS INTEGER ) ) * 65 FROM tab0
----
1365
5265
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT COUNT( * ) * - 51 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-7121
SELECT COUNT ( * ) * - 51 FROM tab2
----
-153

query II rowsort
SELECT + col2 AS col2, - col2 * - - 28 + - + col1 FROM tab0 AS cor0
----
10
-301
47
-1397
99
-2773

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT - SUM( ALL - 86 ) col1 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7124
SELECT DISTINCT - SUM ( ALL - 86 ) col1 FROM tab0 AS cor0
----
258

query I rowsort
SELECT 10 + - - col2 + - ( 13 ) * + 63 + - col1 FROM tab2 AS cor0
----
-818
-837
-846

query I rowsort
SELECT ALL + + 58 * + 61 * + col2 * + - col2 FROM tab0 AS cor0
----
-34675938
-353800
-7815442

query I rowsort
SELECT col2 + - - col2 AS col2 FROM tab2
----
116
46
80

query I rowsort
SELECT 39 + + col0 FROM tab0 WHERE NULL BETWEEN + 73 AND col1 + - 57 + + col1
----

query I rowsort
SELECT ( 8 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT - + 67 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT DISTINCT - - SUM( + - 92 ) * + 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT - - SUM ( + - 92 ) * + 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT CAST( NULL AS SIGNED ) * + - ( MAX( ALL + col1 ) ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT CAST ( NULL AS INTEGER ) * + - ( MAX ( ALL + col1 ) ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( + ( - 13 ) ) AS col1 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + - 9 * - 72 AS col2 FROM tab0 AS cor0
----
648

query I rowsort
SELECT - col2 + + 26 FROM tab1 AS cor0
----
-33
-42
-70

query I rowsort
SELECT - 26 + - - col2 * - + col2 * - - col1 - + - 43 FROM tab0
----
-178912
-2083
-9784

query I rowsort
SELECT col2 + - col1 + - col1 FROM tab2
----
-114
-76
-79

query I rowsort
SELECT + 44 + + - 77 AS col0 FROM tab0
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT ALL ( - - 93 ) + CAST( NULL AS SIGNED ) + COUNT( * ) / - CAST( + CAST( + 4 AS SIGNED ) AS SIGNED ) + + 94 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT ALL ( - - 93 ) + CAST ( NULL AS INTEGER ) + COUNT ( * ) / - CAST ( + CAST ( + 4 AS INTEGER ) AS INTEGER ) + + 94 col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 * - col1 + + col0 AS col0 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT ALL col2 DIV + + col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL col2 / + + col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * - col0 * + + 68 col0 FROM tab1
----
-329460
-549100
-587860

query I rowsort
SELECT + ( - ( - 26 ) ) FROM tab0 cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 71 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 96, - ( + col2 ) * + 56 col0 FROM tab0 AS cor0
----
96
-2632
96
-5544
96
-560

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN col2 * - + 76 * col2 + + 15 AND + - col1
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT + COUNT( DISTINCT + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - - 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + + 12 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + + col0 <= - 2
----
12
12
12

query I rowsort
SELECT - - col2 FROM tab1 cor0 WHERE NOT ( NOT + col1 BETWEEN NULL AND - - 36 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7153
SELECT + COUNT( * ) DIV - 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT + COUNT ( * ) / - 79 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col1 AS col2, - 75 FROM tab1 AS cor0
----
14
-75
47
-75
5
-75

query I rowsort
SELECT + col1 + + 58 - col1 AS col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT - + 99 + 35 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE 75 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE 75 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT - col0 * col2 DIV + + 10 + + col1 * - 66 FROM tab2
----
-3471
-4857
-5338

skipif mysql # not compatible
query I rowsort label-7158
SELECT - col0 * col2 / + + 10 + + col1 * - 66 FROM tab2
----
-3471
-4857
-5338

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7159
SELECT ALL CAST( - 29 AS SIGNED ) AS col2, - col1 AS col0 FROM tab1
----
-29
-14
-29
-47
-29
-5

skipif mysql # not compatible
query II rowsort label-7159
SELECT ALL CAST ( - 29 AS INTEGER ) AS col2, - col1 AS col0 FROM tab1
----
-29
-14
-29
-47
-29
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT DISTINCT col0 + + CAST( - + 62 AS SIGNED ) AS col0 FROM tab2
----
-16
13
2

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT col0 + + CAST ( - + 62 AS INTEGER ) AS col0 FROM tab2
----
-16
13
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + 44 * - ( + + col2 ) + col1 * col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 40 <= 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT 28 DIV + + 14 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-7163
SELECT 28 / + + 14 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab2 WHERE + col2 - col2 IS NOT NULL
----
46
46
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 76 IS NULL )
----

query I rowsort
SELECT DISTINCT - 89 + - 78 * - - col1 FROM tab2
----
-4067
-5315
-6095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT + 28 + - CAST( NULL AS SIGNED ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7167
SELECT + 28 + - CAST ( NULL AS INTEGER ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 49 + + col1 FROM tab1 AS cor0
----
54
63
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT + 53 + - - SUM( + + col1 ) + + ( - 84 ) * + - 23 col0 FROM tab0 AS cor0
----
2088

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7169
SELECT + 53 + - - SUM ( + + col1 ) + + ( - 84 ) * + - 23 col0 FROM tab0 AS cor0
----
2088

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * + 28 > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 33 * col2 col0 FROM tab2 AS cor0
----
1320
1914
759

query I rowsort
SELECT - col0 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL COUNT( * ) * + + 39 - - 49 AS col2 FROM tab0 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL COUNT ( * ) * + + 39 - - 49 AS col2 FROM tab0 AS cor0
----
166

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 13 - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 + - 63 * + 44 col1 FROM tab2 AS cor0
----
-2772

query II rowsort
SELECT col1 AS col0, + 78 FROM tab0 AS cor0
----
1
78
21
78
81
78

query I rowsort
SELECT + col0 * + 70 AS col1 FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7178
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) * + 76 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7178
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) * + 76 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col0 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7180
SELECT - CAST( COUNT( * ) AS SIGNED ) * - - COUNT( * ) col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7180
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) col1 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT DISTINCT + 61 * + col0, + col1 AS col2 FROM tab0
----
5307
21
5917
1
915
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT - MAX( ALL + 77 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT - MAX ( ALL + 77 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 20 col2 FROM tab2 cor0 WHERE NOT col2 <= - 1
----
-1160
-460
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + MAX( DISTINCT + + 50 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7185
SELECT + MAX ( DISTINCT + + 50 ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT 61 * 58 AS col1 FROM tab2
----
3538
3538
3538

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 41 NOT BETWEEN NULL AND col0 * + + 92 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col2 FROM tab2 AS cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7189
SELECT + col0 AS col2, - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7189
SELECT + col0 AS col2, - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col2 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7192
SELECT ALL - - SUM( ALL ( 41 ) ) col2, ( COUNT( * ) ) FROM tab0 AS cor0
----
123
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7192
SELECT ALL - - SUM ( ALL ( 41 ) ) col2, ( COUNT ( * ) ) FROM tab0 AS cor0
----
123
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 32 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE col2 + + 50 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col2 + - + 18 FROM tab0
----
-8
29
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7196
SELECT + 12 DIV CAST( ( + ( + 57 ) ) AS SIGNED ) + + 36 * + col1 + col0 FROM tab1
----
1783
265
555

skipif mysql # not compatible
query I rowsort label-7196
SELECT + 12 / CAST ( ( + ( + 57 ) ) AS INTEGER ) + + 36 * + col1 + col0 FROM tab1
----
1783
265
555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7197
SELECT - CAST( NULL AS SIGNED ) + + 46 + + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT - CAST ( NULL AS INTEGER ) + + 46 + + - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 19 + col2 AS col1 FROM tab2
----
42
59
77

query I rowsort
SELECT col2 * + col2 + + col2 AS col2 FROM tab0
----
110
2256
9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT ALL + col1 * + ( - col1 ) - - 85 * - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + col2 + col0 - - 72 / + - col1 * + col2 * - 61 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL + col1 * + ( - col1 ) - - 85 * - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + col2 + col0 - - 72 / + - col1 * + col2 * - 61 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 + - - col1 + + 76 * - col2 + 83 AS col0 FROM tab1 AS cor0
----
-4308
-4950
-7111

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT ALL + CAST( - 36 AS SIGNED ) - + 67 FROM tab1 AS cor0
----
-103
-103
-103

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + CAST ( - 36 AS INTEGER ) - + 67 FROM tab1 AS cor0
----
-103
-103
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT + - 37 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-34

skipif mysql # not compatible
query I rowsort label-7204
SELECT + - 37 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-34

query I rowsort
SELECT col1 * + + col1 FROM tab1 cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7206
SELECT - col0 AS col1, CAST( NULL AS SIGNED ) col0 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-7206
SELECT - col0 AS col1, CAST ( NULL AS INTEGER ) col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT SUM( - ( 80 ) ) AS col0 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT SUM ( - ( 80 ) ) AS col0 FROM tab0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL - 12 * - + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL - 12 * - + COUNT ( * ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT col2 * - 91 FROM tab2
----
-2093
-3640
-5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + + col2 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT col1 DIV - 90 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT col1 / - 90 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7212
SELECT ALL col2 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7212
SELECT ALL col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7213
SELECT ALL + SUM( - col0 ) * + 48 DIV - COUNT( * ) FROM tab1
----
3632

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL + SUM ( - col0 ) * + 48 / - COUNT ( * ) FROM tab1
----
3632

query II rowsort
SELECT DISTINCT col1 AS col0, col2 + - ( col1 ) FROM tab1
----
14
82
47
21
5
54

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - col0 * 42 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IN ( - - col1, col1 * - 3 + ( - col0 ) )
----
-3654
-4074
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT ALL - + col0 DIV col2 * + col2 AS col0 FROM tab2 AS cor0
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - + col0 / col2 * + col2 AS col0 FROM tab2 AS cor0
----
-40
-46
-58

query II rowsort
SELECT DISTINCT col1, + col0 + col2 FROM tab0 AS cor0
----
1
196
21
97
81
62

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7220
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 97 AS col0 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT DISTINCT - SUM( ALL - + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT - SUM ( ALL - + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT CAST( + col2 AS SIGNED ) / - col0 * - 65 * - col0 FROM tab1 AS cor0 WHERE col1 - + - 90 + 65 + - col2 + + 58 * - - ( 23 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7224
SELECT CAST ( + col2 AS INTEGER ) / - col0 * - 65 * - col0 FROM tab1 AS cor0 WHERE col1 - + - 90 + 65 + - col2 + + 58 * - - ( 23 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT + + SUM( ALL 63 ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT + + SUM ( ALL 63 ) FROM tab1 AS cor0
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT + - CAST( NULL AS SIGNED ) * + col1 + - 25 + + col0 * + col1 + - col0 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT + - CAST ( NULL AS INTEGER ) * + col1 + - 25 + + col0 * + col1 + - col0 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL MIN( ALL - - col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL MIN ( ALL - - col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 89 * + 55 * 35 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL - MIN( col1 ) + - - MIN( col1 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7229
SELECT ALL - MIN ( col1 ) + - - MIN ( col1 ) col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 5 + + 85 FROM tab1
----
90

query I rowsort
SELECT 68 AS col0 FROM tab1 cor0 WHERE - ( - - 94 ) + + + col2 * 35 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 60 col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( - col2 ) + + + col0 * + + col0 * - col0
----

query I rowsort
SELECT - 98 * + col1 - - - 31 AS col2 FROM tab0 AS cor0
----
-129
-2089
-7969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT + col0 * + CAST( NULL AS SIGNED ) + + ( 67 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT + col0 * + CAST ( NULL AS INTEGER ) + + ( 67 ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT + SUM( ALL - col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7236
SELECT DISTINCT + SUM ( ALL - col2 ) col2 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7237
SELECT + COUNT( * ) * + - ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT + COUNT ( * ) * + - ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT + - CAST( + 86 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-7238
SELECT + - CAST ( + 86 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * col2 + 41 / + 51 * col0 BETWEEN NULL AND 52 + + ( ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( 12 ) * - col2 AS col1, col0 FROM tab0
----
-1188
97
-120
87
-564
15

query II rowsort
SELECT ALL - col1 * - col2, col2 * + col1 * + - 89 AS col0 FROM tab2
----
1173
-104397
3080
-274120
3886
-345854

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + 1 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7244
SELECT col0 * CAST( - - col2 AS SIGNED ) - - - ( - ( - col2 ) ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7244
SELECT col0 * CAST ( - - col2 AS INTEGER ) - - - ( - ( - col2 ) ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL + + col2 DIV + - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + + col2 / + - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL + + col2 * + 12 AS col0 FROM tab2 AS cor0
----
276
480
696

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT + COUNT( + + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT + COUNT ( + + col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7249
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + 54 + - ( + + col1 ) AS col1 FROM tab1
----
40
49
7

query III rowsort
SELECT * FROM tab2 WHERE + ( + col0 ) <= + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT DISTINCT + 50 + + CAST( NULL AS SIGNED ) - - col2 * + - col0 + + ( 41 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT + 50 + + CAST ( NULL AS INTEGER ) - - col2 * + - col0 + + ( 41 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 * - - col2 + + col2 + col1 FROM tab2
----
1132
2677
4475

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN - + 39 AND - 47 + - col2 * - - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 42 ) + col1 AS col1 FROM tab2
----
109
119
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + - col2 col1, 11 * + col1 FROM tab1
----
0
154
0
517
0
55

query III rowsort
SELECT * FROM tab0 WHERE - 1 * - - col1 + + col1 BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7258
SELECT + CAST( + - col2 AS SIGNED ) * col2 AS col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7258
SELECT + CAST ( + - col2 AS INTEGER ) * col2 AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT 24 DIV 97 * - + SUM( DISTINCT col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7259
SELECT 24 / 97 * - + SUM ( DISTINCT col1 ) FROM tab2
----
0

query I rowsort
SELECT + col2 * - - 65 AS col2 FROM tab1 AS cor0
----
3835
4420
6240

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 44 + 14 AND 10
----

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) < col1
----

query I rowsort
SELECT DISTINCT - - 72 * - col2 FROM tab0 AS cor0
----
-3384
-7128
-720

query I rowsort
SELECT + 59 * + col1 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT col0 * + - 32 * col0 FROM tab2
----
-131072
-180000
-67712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7266
SELECT ALL + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col2 * ( + ( - - col0 ) ) + - 78 FROM tab2
----
2482
4272
980

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + + 91 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 IN ( - + col1, + col0 * - col2 * + 33 )
----

query I rowsort
SELECT - ( + col1 ) * 43 + + - col0 FROM tab0 AS cor0
----
-140
-3498
-990

query I rowsort
SELECT - ( 53 ) + - - col0 FROM tab2 AS cor0
----
-7
11
22

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 / + - col2 IS NULL )
----

query I rowsort
SELECT ALL ( - 2 ) + + col2 * + + col1 FROM tab0
----
208
3805
97

query I rowsort
SELECT ALL col2 + 95 AS col1 FROM tab0
----
105
142
194

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + col1 * col0 + + col0 * - 29 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 - - - 72 AS col0 FROM tab0 AS cor0
----
-57
15
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT + COUNT( * ) - + 63 * - - COUNT( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-7279
SELECT + COUNT ( * ) - + 63 * - - COUNT ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT - col0 - - CAST( + col0 AS SIGNED ) * + 12 FROM tab2 AS cor0
----
506
704
825

skipif mysql # not compatible
query I rowsort label-7280
SELECT - col0 - - CAST ( + col0 AS INTEGER ) * + 12 FROM tab2 AS cor0
----
506
704
825

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( ( col0 ) ) NOT BETWEEN - col0 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - - col2 AS col0 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7284
SELECT DISTINCT col1 DIV col1 - + col1 + - + col1 FROM tab0 AS cor0
----
-1
-161
-41

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT col1 / col1 - + col1 + - + col1 FROM tab0 AS cor0
----
-1
-161
-41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > 61
----

query I rowsort
SELECT DISTINCT - 44 * + col1 + - col1 AS col0 FROM tab0
----
-3645
-45
-945

query I rowsort
SELECT DISTINCT + col0 / + col0 + - col2 * + col0 FROM tab2 WHERE NOT + col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT + 37 * COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT + 37 * COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 73 = col0 + 38 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT - col0 IN ( - 98 * col2 )
----
1
21
81

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE + col1 + 46 < - col2 * 39
----

query III rowsort
SELECT * FROM tab2 WHERE - 71 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 30 * col1 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 93 * 69 BETWEEN + 33 + - 21 * - 95 AND ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN ( + col0 + + 43 * 88 ) AND 31 * + 38
----

query I rowsort
SELECT col2 * col2 + col0 AS col0 FROM tab2 WHERE ( + col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT + COUNT( * ) * - 44 + COUNT( ALL 96 + ( + 31 ) ) AS col0 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-7299
SELECT + COUNT ( * ) * - 44 + COUNT ( ALL 96 + ( + 31 ) ) AS col0 FROM tab0
----
-129

query I rowsort
SELECT DISTINCT + 93 FROM tab2 WHERE col1 NOT IN ( col2 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT 22 + + COUNT( * ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-7301
SELECT 22 + + COUNT ( * ) AS col0 FROM tab0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7302
SELECT 59 + MIN( DISTINCT - col1 ) DIV 65 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7302
SELECT 59 + MIN ( DISTINCT - col1 ) / 65 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - col2 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 * - col0 - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 52 >= 97 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + col0 * 4 AS col1 FROM tab1 WHERE NOT - 82 + - col1 IN ( + col1 )
----
153
255
273

query I rowsort
SELECT ALL 83 * 9 FROM tab2
----
747
747
747

query I rowsort
SELECT col0 * 96 + col2 * - col0 AS col2 FROM tab0
----
-291
735
7482

query I rowsort
SELECT - col2 * 76 + col1 FROM tab0
----
-3491
-739
-7523

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT DISTINCT - COUNT( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col1 + + 7 FROM tab2 cor0
----
58
74
84

query I rowsort
SELECT ALL - 90 AS col0 FROM tab1 cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7314
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * col1 NOT BETWEEN col1 * + 41 AND + col1
----

skipif mysql # not compatible
query III rowsort label-7314
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col1 NOT BETWEEN col1 * + 41 AND + col1
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( - col0 * 38 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN + 57 AND ( col1 ) / col2 + - 13
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + + 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - ( - SUM( - col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7318
SELECT - ( - SUM ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL 58 / SUM( + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL 58 / SUM ( + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 56 + - ( - col2 + 40 * + col0 ) FROM tab1 cor0
----
-1888
-3285
-3516

query I rowsort
SELECT ALL + - 39 * col2 FROM tab0 AS cor0
----
-1833
-3861
-390

query I rowsort
SELECT - ( - 3 ) FROM tab1 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT DISTINCT + ( - col2 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col0 + + 99 BETWEEN 93 AND ( col2 ) / col1
----

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + ( - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col0 + + 99 BETWEEN 93 AND ( col2 ) / col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 <> ( + 38 )
----

query I rowsort
SELECT ALL 17 * col2 FROM tab1 AS cor0
----
1003
1156
1632

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * col1 )
----

query I rowsort
SELECT DISTINCT 63 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - 74 + + col0 AS col0 FROM tab2
----
-10
-28
1

query I rowsort
SELECT 35 * + + 99 + col0 FROM tab1
----
3516
3550
3556

query I rowsort
SELECT ALL - col0 + + - 62 AS col0 FROM tab2
----
-108
-126
-137

query I rowsort
SELECT col2 * - col0 + 33 FROM tab1
----
-4863
-4982
-6155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + - - col2 col0 FROM tab1
----
148
157
185

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7333
SELECT ALL 93 + COUNT( * ) + - 6 * + AVG ( DISTINCT col2 * + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL 93 + COUNT ( * ) + - 6 * + AVG ( DISTINCT col2 * + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 + - ( + col1 ) AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT 67 * col0 * + col0 + col2 FROM tab0
----
15122
507133
630502

query I rowsort
SELECT ALL + col0 - 28 FROM tab2 AS cor0
----
18
36
47

query II rowsort
SELECT ALL 85 AS col2, - col1 AS col2 FROM tab2
----
85
-51
85
-67
85
-77

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT 73 * - 73 <= ( - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT NULL <= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7340
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = ( CAST( - col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7340
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = ( CAST ( - col2 AS REAL ) )
----

query I rowsort
SELECT ALL + ( col0 ) + + col2 FROM tab2 AS cor0 WHERE ( col0 ) NOT IN ( + col1 / 35 )
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT SUM( - - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7342
SELECT SUM ( - - col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT ALL - 9 DIV + col2 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-7343
SELECT ALL - 9 / + col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7344
SELECT - 30 AS col1, + CAST( - col2 AS SIGNED ) * - ( - col2 ) FROM tab1 cor0
----
-30
-3481
-30
-4624
-30
-9216

skipif mysql # not compatible
query II rowsort label-7344
SELECT - 30 AS col1, + CAST ( - col2 AS INTEGER ) * - ( - col2 ) FROM tab1 cor0
----
-30
-3481
-30
-4624
-30
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7345
SELECT MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + + col1 * - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL + 18 + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
19
39
99

query I rowsort
SELECT + + ( 32 ) * - + 53 + + col1 + col0 FROM tab1 AS cor0
----
-1558
-1606
-1631

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 49 IS NULL
----

query I rowsort
SELECT col0 * col1 * ( + col0 ) * + 40 + col0 AS col2 FROM tab0
----
376457
6358047
729015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7351
SELECT + 33 + + + CAST( NULL AS SIGNED ) * - + 66 * + 96 + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT + 33 + + + CAST ( NULL AS INTEGER ) * - + 66 * + 96 + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7352
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7352
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 - 73 AS col1 FROM tab1 WHERE NOT + 91 * - col1 IS NULL
----
-22
12
18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 49 * - col0 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7355
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7355
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL <= ( NULL )
----
0

query I rowsort
SELECT + col0 * ( - 42 ) AS col2 FROM tab1 WHERE NOT ( 45 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - col1 <> - - 81
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT + MIN( - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7360
SELECT + MIN ( - col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT - - col1 * + 60 AS col1 FROM tab2 AS cor0 WHERE 26 * col0 > - 77
----
3060
4020
4620

query I rowsort
SELECT ALL + col0 + + - col2 * - 32 FROM tab2 AS cor0
----
1344
1931
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 - - 64 col2 FROM tab2 cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 97 BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 / + col2 * + + col2 / + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7366
SELECT * FROM tab1 AS cor0 WHERE 88 * col1 BETWEEN - col0 + + + col2 * - CAST( + 72 + col0 AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-7366
SELECT * FROM tab1 AS cor0 WHERE 88 * col1 BETWEEN - col0 + + + col2 * - CAST ( + 72 + col0 AS INTEGER ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + MIN( ALL col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7367
SELECT + MIN ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE - 98 / - - col2 - ( + - col0 ) IN ( 50 * - 28 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 - + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + + col1 * + - 47 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * col1 * + + col0 AS col1 FROM tab1
----
201019
2125
9996

query III rowsort
SELECT * FROM tab0 WHERE - + 8 + - col1 * col0 / - - col1 >= - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT 50 = ( CAST( col2 AS SIGNED ) )
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT 50 = ( CAST ( col2 AS INTEGER ) )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL MIN( ALL - 83 ) AS col2 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL MIN ( ALL - 83 ) AS col2 FROM tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + 96 ) + col2 * - ( - 27 ) * 1 col0 FROM tab2
----
1176
1662
717

query II rowsort
SELECT DISTINCT + 17, 91 AS col1 FROM tab0
----
17
91

query I rowsort
SELECT ALL 24 * - - col0 FROM tab2
----
1104
1536
1800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7379
SELECT * FROM tab2 WHERE NOT NULL > + - CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7379
SELECT * FROM tab2 WHERE NOT NULL > + - CAST ( + - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7380
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 57 * - - col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND + CAST( + col1 AS SIGNED ) / 77
----

skipif mysql # not compatible
query I rowsort label-7380
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 57 * - - col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + CAST ( + col1 AS INTEGER ) / 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0 cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 43 IS NULL
----

query I rowsort
SELECT DISTINCT - 66 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 * - col2 + col2 ) <= 56 + - col0 + col0 * 25
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( col0 / - col0 + - 37 * + col0 )
----

query I rowsort
SELECT col0 * - 93 FROM tab1
----
-4743
-7905
-8463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col0 FROM tab1 AS cor0
----
64

query I rowsort
SELECT + col1 * + + col0 + + + 98 FROM tab1 cor0
----
4375
523
812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT - + CAST( - - 95 AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT ( CAST( + col2 AS SIGNED ) IS NOT NULL )
----
-95

skipif mysql # not compatible
query I rowsort label-7389
SELECT - + CAST ( - - 95 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT ( CAST ( + col2 AS INTEGER ) IS NOT NULL )
----
-95

onlyif mysql # DIV for integer division: 
query III rowsort label-7390
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + + col2 NOT IN ( + - col0 DIV - col1 + - col1 + + col1 )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-7390
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + + col2 NOT IN ( + - col0 / - col1 + - col1 + + col1 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT + COUNT( * ) + - 64 col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7391
SELECT DISTINCT + COUNT ( * ) + - 64 col0 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT 69 / - - 21 + 41 + + col1 AS col0 FROM tab0 WHERE NOT NULL <> + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 IN ( + + col0 )
----

query I rowsort
SELECT - col0 + - col2 + col0 AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + + col2 + + - 87 FROM tab1 AS cor0
----
-19
-28
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 - - - col1 col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IN ( + col1, col1 / col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE + - col0 - + 33 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ( - + col0 ) - ( - col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 11 + - 51 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - - 19 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - col1 * + + col1 FROM tab0 AS cor0
----
-528
-6576
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 28 IN ( - + col0 )
----

query I rowsort
SELECT - + 77 FROM tab2 AS cor0 WHERE - 3 IS NOT NULL
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL + + SUM( col0 ) col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7407
SELECT ALL + + SUM ( col0 ) col1 FROM tab1 cor0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7408
SELECT DISTINCT CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 14 * col1 IS NULL
----

query I rowsort
SELECT 94 + 20 + - 83 FROM tab0 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL - COUNT( * ) - MAX( DISTINCT + - col1 ) FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - COUNT ( * ) - MAX ( DISTINCT + - col1 ) FROM tab1 cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + col0 + 21 + - 47 / + 83
----

query II rowsort
SELECT DISTINCT col2 AS col0, ( col2 ) * - - col1 AS col0 FROM tab2
----
23
1173
40
3080
58
3886

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 48 * + ( + - col2 ) AS col1 FROM tab2
----
1104
1920
2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 44 col0 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT + 66 * - - col1 FROM tab2
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT MIN( DISTINCT - 77 ) AS col1 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-7419
SELECT MIN ( DISTINCT - 77 ) AS col1 FROM tab1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT COUNT( DISTINCT ( col2 ) ) * - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7420
SELECT COUNT ( DISTINCT ( col2 ) ) * - COUNT ( * ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT ( 63 ) AS col2 FROM tab0
----
63
63
63

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + + 58 <= ( col1 * - - 12 )
----
97
1
99

query II rowsort
SELECT 22 AS col1, - 34 * ( - col1 ) * 22 FROM tab1
----
22
10472
22
35156
22
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT COUNT( * ) FROM tab2 WHERE NOT + - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7424
SELECT COUNT ( * ) FROM tab2 WHERE NOT + - col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7425
SELECT * FROM tab0 WHERE NOT ( 85 * + 84 - CAST( NULL AS SIGNED ) + col0 * + col1 + + + col2 ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7425
SELECT * FROM tab0 WHERE NOT ( 85 * + 84 - CAST ( NULL AS INTEGER ) + col0 * + col1 + + + col2 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL + MIN( ALL - 91 ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + MIN ( ALL - 91 ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-273

query I rowsort
SELECT - + 97 AS col0 FROM tab0 AS cor0
----
-97
-97
-97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - ( - 74 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT col0 * 74 * - 18 FROM tab1
----
-113220
-121212
-67932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 6 col1 FROM tab0
----
126
486
6

query II rowsort
SELECT ALL col2 AS col2, - ( - col2 ) - 75 - 11 FROM tab2 cor0
----
23
-63
40
-46
58
-28

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = + + col1 * - + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 + - 6 + col0 FROM tab2 AS cor0
----
-11
-19
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL - 45 * - - 53 + MAX( ALL + col0 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - 45 * - - 53 + MAX ( ALL + col0 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT DISTINCT + 80 DIV col1 + col1 FROM tab1
----
19
21
48

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + 80 / col1 + col1 FROM tab1
----
19
21
48

query I rowsort
SELECT - col0 + - 9 + ( - col0 ) + - + 55 FROM tab2
----
-156
-192
-214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col0 FROM tab2 WHERE + col1 + + col1 NOT IN ( + ( col2 ) - - 45, col2 + - 98 * - col1 )
----
1058
2560
4350

query I rowsort
SELECT ALL - 0 * + ( col0 ) + col2 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * - 40 * - col1 * col0 - + + col2 col1 FROM tab2 AS cor0
----
15178200
15476942
7225657

query I rowsort
SELECT + + 29 AS col1 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7443
SELECT + + col1, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7443
SELECT + + col1, CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 * + 9 / - col1 * col1 NOT IN ( + 33 + 69 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT COUNT( ALL + ( - 31 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT COUNT ( ALL + ( - 31 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT + + 77 DIV + ( - col1 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7446
SELECT + + 77 / + ( - col1 ) FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT + 89 AS col0, 72 FROM tab0 WHERE - + col1 IS NOT NULL
----
89
72

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 77 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT MIN( ALL + + col0 ) * - - 5 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-7449
SELECT MIN ( ALL + + col0 ) * - - 5 FROM tab0
----
75

query I rowsort
SELECT ALL - - ( + - ( + + 70 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT 44 * COUNT( * ) AS col2 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-7451
SELECT 44 * COUNT ( * ) AS col2 FROM tab1
----
132

query I rowsort
SELECT - col1 * + + col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - col1 * col2 * + 86 AS col1 FROM tab2 AS cor0
----
-100878
-264880
-334196

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + + col0 = NULL OR NULL IN ( - + col0 - + col1 + + 2 * - 55 * 90, + col0 * + 46 )
----

query I rowsort
SELECT + + 27 * - col1 FROM tab1 AS cor0
----
-1269
-135
-378

query I rowsort
SELECT - - col1 * 39 AS col2 FROM tab2 AS cor0
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT - 8 * MIN( ALL - - col2 ) FROM tab1 AS cor0
----
-472

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT - 8 * MIN ( ALL - - col2 ) FROM tab1 AS cor0
----
-472

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 2 + + col1 * + + col2 FROM tab1
----
1342
293
3194

query I rowsort
SELECT ALL 50 + - - col2 FROM tab0
----
149
60
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL 16 + - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL 16 + - COUNT ( * ) FROM tab0
----
13

query I rowsort
SELECT ALL - 42 - + - col2 FROM tab2
----
-19
-2
16

query I rowsort
SELECT ALL - + 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - 64 * - col0 - ( col2 ) AS col0 FROM tab1
----
3168
5381
5756

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT + ( + 77 ) + + COUNT( * ) - + ( COUNT( * ) ) * + - 88 col0 FROM tab1
----
344

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7465
SELECT DISTINCT + ( + 77 ) + + COUNT ( * ) - + ( COUNT ( * ) ) * + - 88 col0 FROM tab1
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT + - COUNT( DISTINCT col0 ) * + 30 * + COUNT( * ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + - COUNT ( DISTINCT col0 ) * + 30 * + COUNT ( * ) FROM tab2 AS cor0
----
-270

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 37 AND + - col1 + ( + 7 )
----

query II rowsort
SELECT DISTINCT - + 9 AS col2, 53 + + 65 - + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-9
108
-9
19
-9
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + + SUM( - col2 ) * MAX( ALL - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
1560

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + + SUM ( - col2 ) * MAX ( ALL - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT DISTINCT - 70 DIV - COUNT( * ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - 70 / - COUNT ( * ) FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - ( col2 ) ) * - ( + + col0 ) * - - col1 col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query II rowsort
SELECT 65, - 96 AS col0 FROM tab1
----
65
-96
65
-96
65
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT - COUNT( * ) * + 23 AS col0 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-7473
SELECT - COUNT ( * ) * + 23 AS col0 FROM tab2
----
-69

query I rowsort
SELECT DISTINCT ( - 37 ) FROM tab0
----
-37

query III rowsort
SELECT * FROM tab0 WHERE NOT + 33 * - 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 * + col1 * + col2 * - 91, 93 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 99 AND NULL
----

query I rowsort
SELECT ALL - col0 + - col2 + 79 FROM tab0 AS cor0
----
-117
-18
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT ALL + 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT + + ( + 18 ) + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT + + ( + 18 ) + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + + - col2 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - - 70 + - col1 + + col2 * ( - 90 ) FROM tab2 AS cor0
----
-2051
-3607
-5217

query II rowsort
SELECT + col0 * - - col0 + + col2 * - - col0, - ( - col2 ) AS col0 FROM tab0 AS cor0
----
19012
99
8439
10
930
47

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * col2 NOT BETWEEN + col0 * col2 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + - 96 + - + MIN( - + col1 ) col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT + - 96 + - + MIN ( - + col1 ) col1 FROM tab2 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT - MIN( - - 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT - MIN ( - - 0 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7488
SELECT - col1 AS col1, col1 DIV - col2 FROM tab0
----
-1
0
-21
-2
-81
-1

skipif mysql # not compatible
query II rowsort label-7488
SELECT - col1 AS col1, col1 / - col2 FROM tab0
----
-1
0
-21
-2
-81
-1

query I rowsort
SELECT ALL - col2 * - 1 + - + 6 FROM tab2
----
17
34
52

query I rowsort
SELECT DISTINCT + 82 + col2 FROM tab1
----
141
150
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT - MAX( + col0 ) FROM tab1 WHERE col1 * + - ( - - col1 ) NOT BETWEEN NULL AND - + 86
----
-85

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - MAX ( + col0 ) FROM tab1 WHERE col1 * + - ( - - col1 ) NOT BETWEEN NULL AND - + 86
----
-85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > + + 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 54 - - ( ( - 4 ) ) * + + 79 * - + col0 AS col0 FROM tab2 AS cor0
----
14482
20170
23646

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL col2 - + - ( + 60 ) AS col2 FROM tab0 WHERE + - CAST( NULL AS SIGNED ) / + col1 <> col2
----

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL col2 - + - ( + 60 ) AS col2 FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) / + col1 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT ALL - 86 * - col0 * - CAST( + - 12 AS SIGNED ) AS col1 FROM tab1 cor0
----
52632
87720
93912

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - 86 * - col0 * - CAST ( + - 12 AS INTEGER ) AS col1 FROM tab1 cor0
----
52632
87720
93912

query II rowsort
SELECT DISTINCT - col2 AS col1, + col2 * - + col0 FROM tab1 AS cor0
----
-59
-5015
-68
-6188
-96
-4896

query II rowsort
SELECT 21, col0 * col2 AS col2 FROM tab2 AS cor0
----
21
1058
21
2560
21
4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7499
SELECT * FROM tab0 AS cor0 WHERE NOT - 26 / CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7499
SELECT * FROM tab0 AS cor0 WHERE NOT - 26 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col2 * + + col2 * ( + col2 ) FROM tab0 AS cor0
----
-1000
-103823
-970299

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - COUNT( - + col2 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7501
SELECT - COUNT ( - + col2 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7502
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 73 ) + - col0 + - - 76 - - + 68 IS NOT NULL
----

query I rowsort
SELECT col1 * - 64 FROM tab2
----
-3264
-4288
-4928

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT + col1 * + ( - - col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT + 69 DIV - col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7508
SELECT + 69 / - col0 FROM tab0 AS cor0
----
-4
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NULL ) <= NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT DISTINCT - 71 DIV + MAX( ALL + col2 ) - MIN( ALL + + col2 ) + COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT - 71 / + MAX ( ALL + col2 ) - MIN ( ALL + + col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT ALL CAST( + - 42 AS SIGNED ) FROM tab1
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL CAST ( + - 42 AS INTEGER ) FROM tab1
----
-42
-42
-42

query I rowsort
SELECT ALL - + col2 * + 84 * - 55 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
217140
457380
46200

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT - - 87 DIV 62 + + col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7513
SELECT - - 87 / 62 + + col2 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT + - 73 * - + col1 * - + ( col0 ) AS col0 FROM tab1 AS cor0
----
-31025
-312221
-52122

query I rowsort
SELECT ALL - col0 * + + col0 + + - col0 AS col2 FROM tab2 AS cor0
----
-2162
-4160
-5700

query I rowsort
SELECT + + col0 * - - 56 FROM tab2 AS cor0
----
2576
3584
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT MIN( ALL + col0 ) FROM tab0 cor0 WHERE ( + col2 / + 42 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT MIN ( ALL + col0 ) FROM tab0 cor0 WHERE ( + col2 / + 42 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7518
SELECT ALL - COUNT( * ) AS col1, ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7518
SELECT ALL - COUNT ( * ) AS col1, ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7519
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE - col2 * + + col0 - + + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE - col2 * + + col0 - + + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT - COUNT( * ) + - 63 AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT - COUNT ( * ) + - 63 AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT ALL - 42 + col1 * + col2 FROM tab1
----
1302
253
3154

query I rowsort
SELECT 67 * 50 FROM tab2, tab0 AS cor0
----
9 values hashing to aee51bcecc0ee6c34f96b8d797c67de9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT CAST( - col2 AS SIGNED ) + - col1 * col0 + 19 AS col1 FROM tab1
----
-4326
-465
-791

skipif mysql # not compatible
query I rowsort label-7523
SELECT CAST ( - col2 AS INTEGER ) + - col1 * col0 + 19 AS col1 FROM tab1
----
-4326
-465
-791

query I rowsort
SELECT DISTINCT 43 + - col2 AS col1 FROM tab0
----
-4
-56
33

query I rowsort
SELECT ALL - col1 - - - 13 * col2 + - + col2 + - col1 AS col2 FROM tab2
----
-424
-714
-946

query I rowsort
SELECT DISTINCT 9 + + col2 + 70 FROM tab2
----
102
119
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT col1 + CAST( NULL AS SIGNED ) * - + CAST( 55 AS SIGNED ) + - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT col1 + CAST ( NULL AS INTEGER ) * - + CAST ( 55 AS INTEGER ) + - - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL COUNT( * ) + - 21 * + 9 AS col2 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL COUNT ( * ) + - 21 * + 9 AS col2 FROM tab2
----
-186

query III rowsort
SELECT ALL * FROM tab1 WHERE - 89 * + + ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * - col2 * + - col1 + col2 - + + 51 AS col0 FROM tab0 AS cor0
----
-18311
-57109
-9555

query I rowsort
SELECT DISTINCT col1 - col0 * - col0 * - col1 FROM tab2 AS cor0
----
-107865
-315315
-376808

query I rowsort
SELECT DISTINCT + - ( + 56 ) AS col2 FROM tab1 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col0 FROM tab0
----
-58
-58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT 9 DIV 18 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7534
SELECT 9 / 18 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + + col0 ) = - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL + SUM( ALL ( 37 ) ) AS col2 FROM tab1 AS cor0 WHERE - col2 * 27 + + - col0 IS NOT NULL
----
111

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL + SUM ( ALL ( 37 ) ) AS col2 FROM tab1 AS cor0 WHERE - col2 * 27 + + - col0 IS NOT NULL
----
111

query I rowsort
SELECT ALL ( - - col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT - col2 AS col0, col0 + - - 67 FROM tab0
----
-10
154
-47
82
-99
164

query II rowsort
SELECT - 6 AS col0, 65 FROM tab2
----
-6
65
-6
65
-6
65

query I rowsort
SELECT + ( - - 18 ) AS col0 FROM tab2
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT 93 * + COUNT( * ) AS col0 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-7541
SELECT 93 * + COUNT ( * ) AS col0 FROM tab2
----
279

query I rowsort
SELECT DISTINCT 0 * - - col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * + ( - col0 ) col0 FROM tab0
----
-1067
-165
-957

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7544
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + col1 NOT IN ( + CAST( + + 81 AS DECIMAL ) + - ( col1 ), - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col1 NOT IN ( + CAST ( + + 81 AS REAL ) + - ( col1 ), - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT DISTINCT - 14 DIV col1 * - col2 FROM tab0
----
0
1386

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT - 14 / col1 * - col2 FROM tab0
----
0
1386

query I rowsort
SELECT ALL - col0 * + + col2 * + ( + - 14 ) AS col2 FROM tab1 AS cor0
----
68544
70210
86632

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col0 / + + col0 AND NULL
----

query II rowsort
SELECT + + col1 AS col1, - col2 + col2 FROM tab0 AS cor0
----
1
0
21
0
81
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7549
SELECT - 33 DIV - + col1 AS col2, - col0 FROM tab2
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-7549
SELECT - 33 / - + col1 AS col2, - col0 FROM tab2
----
0
-46
0
-64
0
-75

query I rowsort
SELECT 31 * col1 AS col1 FROM tab1
----
1457
155
434

query I rowsort
SELECT 13 * - 52 FROM tab2, tab0 AS cor0
----
9 values hashing to 1a54cd30bc4312a4d9f916b2dcc985a4

query I rowsort
SELECT ALL 37 * + 48 + col1 AS col1 FROM tab1
----
1781
1790
1823

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT - COUNT( * ) * 4 * + + 14 * - - MIN( ALL - - 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40824

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - COUNT ( * ) * 4 * + + 14 * - - MIN ( ALL - - 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40824

query I rowsort
SELECT + col1 * - 96 + + col2 + col1 AS col0 FROM tab1 cor0
----
-1234
-416
-4397

query I rowsort
SELECT DISTINCT - ( - 46 ) - + + 52 FROM tab1 cor0
----
-6

query I rowsort
SELECT - col1 + - - 11 * col0 FROM tab1 AS cor0
----
547
930
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + + 30 * + - 94 col1 FROM tab2 AS cor0
----
2871
2887
2897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 col1 FROM tab0 cor0
----
6
6
6

query I rowsort
SELECT + ( 74 ) AS col1 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7560
SELECT DISTINCT + ( - + 55 ) * CAST( - + 51 AS SIGNED ) - - col1 + - - 92 * + + 18 + + col2 * - - 64 FROM tab1
----
10619
8242
8860

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT + ( - + 55 ) * CAST ( - + 51 AS INTEGER ) - - col1 + - - 92 * + + 18 + + col2 * - - 64 FROM tab1
----
10619
8242
8860

query I rowsort
SELECT ALL + 10 * - col0 + 21 AS col0 FROM tab1
----
-489
-829
-889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT + col2 / + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7562
SELECT + col2 / + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7563
SELECT - + col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT - + col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7564
SELECT CAST( NULL AS SIGNED ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7564
SELECT CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 4 IN ( - + 21 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - - 15 AS col0 FROM tab1 AS cor0
----
1275
1365
765

query II rowsort
SELECT + col2 AS col0, + 49 FROM tab1 cor0
----
59
49
68
49
96
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT 79 DIV - col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-7568
SELECT 79 / - col2 FROM tab2
----
-1
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT + - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7569
SELECT + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - 53 FROM tab0 cor0 WHERE NOT NULL = - col0 * - 61
----

query I rowsort
SELECT + + 31 AS col2 FROM tab1 cor0
----
31
31
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - 22 * col1 - col2 / - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col1 FROM tab0 AS cor0 WHERE NULL IN ( + col2, col2 )
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT col1 + + - col0 NOT IN ( - + 52 * - col1 * + col2, + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - COUNT( ALL - - col1 ) AS col2 FROM tab1 WHERE NOT ( NULL ) <> - 34
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT - COUNT ( ALL - - col1 ) AS col2 FROM tab1 WHERE NOT ( NULL ) <> - 34
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 96 col0 FROM tab0
----
2016
7776
96

query I rowsort
SELECT ALL col1 + - col0 * + 42 FROM tab0
----
-3633
-4073
-549

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE ( NOT 4 / col0 - col2 IS NULL )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT ALL + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL - COUNT( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7581
SELECT ALL - COUNT ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT + + col1 / CAST( NULL AS SIGNED ) * + col1 + ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT + + col1 / CAST ( NULL AS INTEGER ) * + col1 + ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <= + 48
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7584
SELECT ( - 81 ), COUNT( * ) AS col1 FROM tab0
----
-81
3

skipif mysql # not compatible
query II rowsort label-7584
SELECT ( - 81 ), COUNT ( * ) AS col1 FROM tab0
----
-81
3

query I rowsort
SELECT ALL - - col2 * - 25 - + col0 AS col1 FROM tab2 AS cor0
----
-1064
-1525
-621

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE ( NOT ( NULL BETWEEN ( - 99 / - col1 ) AND NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT 76 - - col2 FROM tab1 AS cor0
----
135
144
172

query II rowsort
SELECT ALL - + col2, col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + 50 + col2 FROM tab0
----
149
60
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT DISTINCT ( - col2 ) DIV + 52 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT ( - col2 ) / + 52 FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) IN ( 69, 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - col1 ) FROM tab1 WHERE col1 / - col0 + - 53 + + 71 + col1 + col1 NOT BETWEEN - + col2 AND + 65
----
-47

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col1 AND - col1 + + col1 * - col2
----

query I rowsort
SELECT - 16 + - + ( + 52 ) FROM tab0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL + + COUNT( - - col1 ) FROM tab2 WHERE + 80 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + + COUNT ( - - col1 ) FROM tab2 WHERE + 80 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7597
SELECT ALL * FROM tab0 WHERE NOT - + col1 * - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7597
SELECT ALL * FROM tab0 WHERE NOT - + col1 * - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7598
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + ( - 69 ) FROM tab1
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT - ( - col1 ) DIV + col0 - + col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7600
SELECT - ( - col1 ) / + col0 - + col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL col2 * - 97 * - - ( - col0 ) FROM tab1
----
474912
486455
600236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT DISTINCT - COUNT( * ) DIV - ( - COUNT( * ) ) AS col0 FROM tab1, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - COUNT ( * ) / - ( - COUNT ( * ) ) AS col0 FROM tab1, tab0 AS cor0
----
-1

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7605
SELECT DISTINCT COUNT( * ) AS col1, MIN( col2 ) col2 FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7605
SELECT DISTINCT COUNT ( * ) AS col1, MIN ( col2 ) col2 FROM tab1 AS cor0
----
3
59

query I rowsort
SELECT ALL - ( - 82 ) AS col2 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL + 1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + 1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7608
SELECT - 14 + col0 DIV - 7 AS col2, 82 FROM tab0 AS cor0
----
-16
82
-26
82
-27
82

skipif mysql # not compatible
query II rowsort label-7608
SELECT - 14 + col0 / - 7 AS col2, 82 FROM tab0 AS cor0
----
-16
82
-26
82
-27
82

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT - + col2 + + CAST( + 36 AS SIGNED ) AS col2 FROM tab2 cor0
----
-22
-4
13

skipif mysql # not compatible
query I rowsort label-7610
SELECT - + col2 + + CAST ( + 36 AS INTEGER ) AS col2 FROM tab2 cor0
----
-22
-4
13

query I rowsort
SELECT ALL - - 24 AS col1 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT CAST( - - col0 AS SIGNED ) + + col2 * + 77 * + 80 * + col2 + + col2 FROM tab2
----
20722373
3258709
9856104

skipif mysql # not compatible
query I rowsort label-7612
SELECT CAST ( - - col0 AS INTEGER ) + + col2 * + 77 * + 80 * + col2 + + col2 FROM tab2
----
20722373
3258709
9856104

query I rowsort
SELECT 45 + 56 FROM tab2
----
101
101
101

query I rowsort
SELECT DISTINCT 22 + + col1 FROM tab1
----
27
36
69

query II rowsort
SELECT col1 AS col1, + col2 - col0 FROM tab1 WHERE - - col0 IS NOT NULL
----
14
45
47
-23
5
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT DISTINCT - ( COUNT( ALL + - ( - + 68 ) ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7616
SELECT DISTINCT - ( COUNT ( ALL + - ( - + 68 ) ) ) col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - col1 - + 60 - - + 91 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT DISTINCT - - MAX( ALL + 72 ) AS col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - - MAX ( ALL + 72 ) AS col2 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + col0 * ( + 12 ) AS col1 FROM tab0 AS cor0
----
1044
1164
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT + + 47 * + col0 + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2116
2944
3450

skipif mysql # not compatible
query I rowsort label-7620
SELECT + + 47 * + col0 + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2116
2944
3450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( + col0 ) * + col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT DISTINCT + col0 * col2 DIV - + col0 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT + col0 * col2 / - + col0 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE 16 + - col0 = - - col0
----

query I rowsort
SELECT DISTINCT - col2 * - 85 FROM tab2 cor0
----
1955
3400
4930

query I rowsort
SELECT - + col0 * + 98 FROM tab1 AS cor0
----
-4998
-8330
-8918

query II rowsort
SELECT ALL - 47 - col1 * col2 AS col0, + col0 * - + ( col0 ) AS col2 FROM tab0 AS cor0
----
-146
-9409
-257
-7569
-3854
-225

query I rowsort
SELECT DISTINCT + 2 * + - ( - col0 ) + 12 AS col0 FROM tab1 AS cor0
----
114
182
194

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT + SUM( - col0 ) * - 90 AS col2 FROM tab0 AS cor0
----
17910

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT + SUM ( - col0 ) * - 90 AS col2 FROM tab0 AS cor0
----
17910

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * + 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT DISTINCT - 67 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - 67 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7634
SELECT COUNT( DISTINCT + 32 ) DIV - 24 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT COUNT ( DISTINCT + 32 ) / - 24 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL - MIN( ALL + col2 ) * - + 26 FROM tab0 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - MIN ( ALL + col2 ) * - + 26 FROM tab0 AS cor0
----
260

query II rowsort
SELECT col0 AS col2, 88 * - ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7637
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, col1 AS col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7637
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col1 AS col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ( - 86 ) * + 59 AS col2 FROM tab0 AS cor0
----
-5074
-5074
-5074

query I rowsort
SELECT ALL + 32 FROM tab2 AS cor0 WHERE NOT NULL >= col0 * - + col1
----

query I rowsort
SELECT - - 38 * col0 - - col2 + + col1 * col1 FROM tab1 AS cor0
----
2230
3314
5735

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT SUM( - + 21 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7641
SELECT SUM ( - + 21 ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT + col2 * + + 45 * + - col1 FROM tab1 cor0
----
-13275
-143820
-60480

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 19 BETWEEN 86 AND + col0 * - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT + + col2 * - col0 + ( - col0 ) DIV - col0 AS col2 FROM tab1 AS cor0
----
-4895
-5014
-6187

skipif mysql # not compatible
query I rowsort label-7644
SELECT + + col2 * - col0 + ( - col0 ) / - col0 AS col2 FROM tab1 AS cor0
----
-4895
-5014
-6187

query II rowsort
SELECT + col0 AS col2, - 82 AS col1 FROM tab2 WHERE NULL IS NULL
----
46
-82
64
-82
75
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT ALL + COUNT( * ) + 76 AS col2 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL + COUNT ( * ) + 76 AS col2 FROM tab0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT ALL + col2 / - 30 + - col2 + - col1 * CAST( NULL AS SIGNED ) * - CAST( 66 AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL + col2 / - 30 + - col2 + - col1 * CAST ( NULL AS INTEGER ) * - CAST ( 66 AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 50 + + col0 AS col2 FROM tab1
----
101
135
141

query I rowsort
SELECT ALL - 8 + + col0 FROM tab1
----
43
77
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7650
SELECT ALL + - 71 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-71
3

skipif mysql # not compatible
query II rowsort label-7650
SELECT ALL + - 71 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-71
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - COUNT( * ) + + ( 99 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7651
SELECT - COUNT ( * ) + + ( 99 ) FROM tab2 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT CAST( + 41 AS SIGNED ) + - 3 AS col2 FROM tab1 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-7652
SELECT CAST ( + 41 AS INTEGER ) + - 3 AS col2 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT DISTINCT + col1 * + + col2 + + ( - - ( + CAST( NULL AS SIGNED ) ) ) + + col1 / + col0 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7653
SELECT DISTINCT + col1 * + + col2 + + ( - - ( + CAST ( NULL AS INTEGER ) ) ) + + col1 / + col0 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7654
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + - CAST( 30 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7654
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + - CAST ( 30 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 50 * col2 FROM tab0 AS cor0
----
-2350
-4950
-500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - + col1 ) col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT + SUM( DISTINCT + - 51 ) * - CAST( + 74 AS SIGNED ) + - ( + COUNT( * ) ) col1 FROM tab0
----
3771

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7657
SELECT + SUM ( DISTINCT + - 51 ) * - CAST ( + 74 AS INTEGER ) + - ( + COUNT ( * ) ) col1 FROM tab0
----
3771

query I rowsort
SELECT - col2 * + 89 - - col0 AS col0 FROM tab1
----
-5166
-5961
-8493

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL 92 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL 92 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
95

query I rowsort
SELECT + + 60 + + col2 AS col0 FROM tab1 AS cor0
----
119
128
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - + COUNT( * ) * - 47 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-423

skipif mysql # not compatible
query I rowsort label-7662
SELECT - + COUNT ( * ) * - 47 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-423

query I rowsort
SELECT DISTINCT - col2 * + + col0 * + col2 - + col0 FROM tab2 AS cor0
----
-102464
-24380
-252375

query I rowsort
SELECT - 77 * + col1 AS col0 FROM tab0
----
-1617
-6237
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT col2 DIV - - col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7665
SELECT col2 / - - col0 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT + - SUM( ALL - col0 ) FROM tab2 WHERE NOT - col0 IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + - SUM ( ALL - col0 ) FROM tab2 WHERE NOT - col0 IS NULL
----
185

query I rowsort
SELECT - col2 * 88 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - COUNT( * ) * + + 18 col1 FROM tab1
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7668
SELECT - COUNT ( * ) * + + 18 col1 FROM tab1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT 46 DIV - - col0 * - - col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7669
SELECT 46 / - - col0 * - - col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 41 * + 32 AS col0 FROM tab0
----
1312
1312
1312

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - col0 * + - col2 IS NOT NULL AND NOT 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT DISTINCT - 59 + - ( + COUNT( * ) ) - - 45 FROM tab2 WHERE NOT + ( + 24 ) + + col0 IS NOT NULL
----
-14

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT - 59 + - ( + COUNT ( * ) ) - - 45 FROM tab2 WHERE NOT + ( + 24 ) + + col0 IS NOT NULL
----
-14

query I rowsort
SELECT col0 * - col2 * + ( - 50 ) AS col0 FROM tab2
----
128000
217500
52900

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT + COUNT( ALL col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7674
SELECT + COUNT ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 52 * - col1 * col1 * + + col0 FROM tab0 AS cor0
----
-1995084
-5044
-5117580

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT ALL - ( + + 36 ) DIV + col2 + ( 52 ) - col0 + - + ( - 47 ) FROM tab1
----
14
48
8

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - ( + + 36 ) / + col2 + ( 52 ) - col0 + - + ( - 47 ) FROM tab1
----
14
48
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - 62 col1 FROM tab2
----
2666
2666
2666

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - col2 * 36 * col0 + - ( + col1 ) FROM tab2 AS cor0
----
-156667
-38139
-92237

query I rowsort
SELECT + - 22 + + col2 AS col2 FROM tab0 AS cor0
----
-12
25
77

query I rowsort
SELECT 79 + + + col0 * col1 AS col2 FROM tab0 AS cor0
----
1294
176
1906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7684
SELECT - COUNT( * ) DIV COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7684
SELECT - COUNT ( * ) / COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT CAST( - col2 AS SIGNED ) * col2 * col0 FROM tab0
----
-33135
-8700
-950697

skipif mysql # not compatible
query I rowsort label-7685
SELECT CAST ( - col2 AS INTEGER ) * col2 * col0 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT CAST( - - AVG ( ALL 13 ) AS SIGNED ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-7686
SELECT CAST ( - - AVG ( ALL 13 ) AS INTEGER ) FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT COUNT( * ) + MAX( + col1 ) AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT COUNT ( * ) + MAX ( + col1 ) AS col2 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT DISTINCT SUM( ALL - 16 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT SUM ( ALL - 16 ) FROM tab2
----
-48

query II rowsort
SELECT DISTINCT - 74 + + col0, - col0 AS col2 FROM tab2
----
-10
-64
-28
-46
1
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7691
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col0 + - col1 + 66 + + + col2 AS col1 FROM tab0
----
257
7624
9573

query I rowsort
SELECT + ( + + 47 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - - + col2, 30 col2 FROM tab1 AS cor0
----
118
30
136
30
192
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7695
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + - + 35 * + col0 * + col1 + + col2 col1 FROM tab0
----
-3261
-42443
-63900

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 45 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 6 col0, - 25 + - 99 AS col2 FROM tab2 AS cor0
----
-6
-124
-6
-124
-6
-124

query II rowsort
SELECT col2, col1 + + col0 + + + col2 + + col1 FROM tab0 AS cor0
----
10
139
47
224
99
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7701
SELECT DISTINCT + - col2 AS col1, + ( - 19 ) * - 89 + - + col1 DIV + - col0 AS col1 FROM tab0 AS cor0
----
-10
1691
-47
1696
-99
1691

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT + - col2 AS col1, + ( - 19 ) * - 89 + - + col1 / + - col0 AS col1 FROM tab0 AS cor0
----
-10
1691
-47
1696
-99
1691

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT ALL + COUNT( * ) AS col0, MAX( ALL - 83 ) col1 FROM tab0 AS cor0
----
3
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7702
SELECT ALL + COUNT ( * ) AS col0, MAX ( ALL - 83 ) col1 FROM tab0 AS cor0
----
3
-83

query I rowsort
SELECT + - 38 FROM tab2 cor0 WHERE NOT col0 / col2 IS NULL
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT - COUNT( ALL col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT - COUNT ( ALL col1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col2 + - + col2 + - col1 * col1 + + col0 + col0 * + + 19
----

query I rowsort
SELECT ALL + 15 * - 86 * - + ( col1 ) * col2 + - 15 AS col0 FROM tab2
----
1513155
3973185
5012925

query I rowsort
SELECT - 20 * + - col2 AS col2 FROM tab2
----
1160
460
800

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 BETWEEN NULL AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7709
SELECT col0 DIV CAST( - + col1 AS SIGNED ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT col0 / CAST ( - + col1 AS INTEGER ) FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT - SUM( ALL - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-7710
SELECT - SUM ( ALL - col2 ) FROM tab2 cor0
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-7711
SELECT - col2 DIV - 41, - 45 AS col1 FROM tab2 AS cor0
----
0
-45
0
-45
1
-45

skipif mysql # not compatible
query II rowsort label-7711
SELECT - col2 / - 41, - 45 AS col1 FROM tab2 AS cor0
----
0
-45
0
-45
1
-45

query I rowsort
SELECT + - 24 * + - 49 FROM tab2 AS cor0
----
1176
1176
1176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 38 + + + col0 + + 56 col0 FROM tab2 cor0
----
1850
2552
2981

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT MAX( DISTINCT 34 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-7714
SELECT MAX ( DISTINCT 34 ) FROM tab2
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT col0 * 17 AS col0 FROM tab0
----
1479
1649
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT 71 + + COUNT( * ) + - + MIN( ALL col1 ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT 71 + + COUNT ( * ) + - + MIN ( ALL col1 ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT DISTINCT - + 60 DIV - 6 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT - + 60 / - 6 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL - MIN( - col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - MIN ( - col1 ) FROM tab2 cor0
----
77

query II rowsort
SELECT DISTINCT - + 46, ( - 27 ) AS col2 FROM tab2 AS cor0
----
-46
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT - COUNT( * ) * + 36 AS col1 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - COUNT ( * ) * + 36 AS col1 FROM tab1
----
-108

query III rowsort
SELECT * FROM tab2 WHERE 85 / + col0 * - col1 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - col1 * 21 FROM tab0
----
-2037
-25515
-38367

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT - COUNT( * ) + COUNT( * ) * - 81 AS col0 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) * - 81 AS col0 FROM tab2
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT - COUNT( * ) + - 38 * 95 + SUM( ALL + + 92 ) FROM tab0
----
-3337

skipif mysql # not compatible
query I rowsort label-7726
SELECT - COUNT ( * ) + - 38 * 95 + SUM ( ALL + + 92 ) FROM tab0
----
-3337

query I rowsort
SELECT DISTINCT + col1 * - col0 * - col0 + + - col0 - col0 FROM tab1
----
35955
36312
389025

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT - col0 + - 83 DIV - col1 AS col2 FROM tab0
----
-14
-14
-84

skipif mysql # not compatible
query I rowsort label-7728
SELECT - col0 + - 83 / - col1 AS col2 FROM tab0
----
-14
-14
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 = col1
----

query I rowsort
SELECT - ( - 61 ) AS col0 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT col2 * - + col0 * - col1 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > col0
----

query I rowsort
SELECT + 52 * + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < 98 - - + col0 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 + + col2 col0 FROM tab0 AS cor0
----
110
2256
9900

query I rowsort
SELECT ALL - ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7737
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL < CAST( + - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7737
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL < CAST ( + - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7738
SELECT COUNT( * ) DIV - 46 * COUNT( * ) FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7738
SELECT COUNT ( * ) / - 46 * COUNT ( * ) FROM tab0, tab1 AS cor0
----
0

query II rowsort
SELECT ALL - col0 AS col0, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL - COUNT( * ) * - 21 AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - COUNT ( * ) * - 21 AS col1 FROM tab1
----
63

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col0 * + ( - col1 ) + + col0 + + + col1 + col0 * - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - ( 14 ) * + col2 * + col2 * - + col1 + - - col2 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - ( - - 57 ) * + 96 + + + col0
----

query II rowsort
SELECT DISTINCT 30 * - 60 * - + col2 AS col1, + col2 AS col0 FROM tab0
----
178200
99
18000
10
84600
47

query II rowsort
SELECT DISTINCT col1, - ( + + 9 ) AS col1 FROM tab2
----
51
-9
67
-9
77
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7746
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 82 + - 24 * col1 ) NOT BETWEEN + CAST( NULL AS SIGNED ) - + col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7746
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 82 + - 24 * col1 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) - + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT ( COUNT( DISTINCT + ( ( 57 ) ) ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT ( COUNT ( DISTINCT + ( ( 57 ) ) ) ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 * 90 col0 FROM tab0
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT COUNT( - col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT COUNT ( - col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + 32 * ( - 34 ) FROM tab1 WHERE - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT MIN( ALL col1 ) + 32 FROM tab1 WHERE + col0 * + 95 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT MIN ( ALL col1 ) + 32 FROM tab1 WHERE + col0 * + 95 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( 24 ) * ( col2 ) FROM tab0
----
1128
2376
240

query I rowsort
SELECT - col0 * 84 AS col0 FROM tab0 WHERE - 1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT + col1 + + CAST( NULL AS SIGNED ) * - col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7754
SELECT + col1 + + CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + 87 * - COUNT( DISTINCT - col1 ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-7756
SELECT + 87 * - COUNT ( DISTINCT - col1 ) FROM tab0
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT ALL - 29 + ( CAST( col0 AS SIGNED ) + col1 * - col1 ) AS col2 FROM tab0
----
-383
-6575
67

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - 29 + ( CAST ( col0 AS INTEGER ) + col1 * - col1 ) AS col2 FROM tab0
----
-383
-6575
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL + ( + 81 ) * ( COUNT( * ) - COUNT( * ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + ( + 81 ) * ( COUNT ( * ) - COUNT ( * ) ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT - COUNT( * ) * + ( - 4 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7759
SELECT - COUNT ( * ) * + ( - 4 ) FROM tab1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7760
SELECT + CAST( - AVG ( col1 ) AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-7760
SELECT + CAST ( - AVG ( col1 ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT - CAST( + col1 AS SIGNED ) * col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-7761
SELECT - CAST ( + col1 AS INTEGER ) * col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab1 WHERE NOT + 32 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT + col2 > 95
----
15
87

query I rowsort
SELECT - col0 / col0 FROM tab2 WHERE NOT + col0 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7765
SELECT 14 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT 14 + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT NULL >= ( 90 * + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( ( + 29 ) )
----

query I rowsort
SELECT DISTINCT 64 * - col1 AS col2 FROM tab0
----
-1344
-5184
-64

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col2 ) ) >= - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= ( - 0 * col2 )
----

query I rowsort
SELECT ALL col1 + ( 23 ) AS col1 FROM tab2
----
100
74
90

query I rowsort
SELECT - col2 + 62 AS col1 FROM tab0
----
-37
15
52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col2 + - col2
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE - 69 IS NULL
----

query I rowsort
SELECT ALL col1 - ( col1 + col2 ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT 24 + col0 AS col1 FROM tab0 AS cor0
----
111
121
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT COUNT( * ) + + 43 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7777
SELECT COUNT ( * ) + + 43 FROM tab1 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 55 + - col1 * ( + col1 ) ) = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT COUNT( * ) * COUNT( * ) FROM tab2 WHERE NOT col1 * 92 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-7780
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE NOT col1 * 92 IS NULL
----
9

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL - col0 * col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + - COUNT( DISTINCT + 41 ) AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7784
SELECT + - COUNT ( DISTINCT + 41 ) AS col2 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT + COUNT( DISTINCT 38 ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7785
SELECT + COUNT ( DISTINCT 38 ) col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ( + 61 ) AS col0 FROM tab2 AS cor0
----
61
61
61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col0 - 38 * - col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 50 FROM tab2 cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 < - 13
----

query I rowsort
SELECT + 95 AS col1 FROM tab2 WHERE NOT 39 + + 30 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL + ( + COUNT( * ) ) + + 62 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL + ( + COUNT ( * ) ) + + 62 FROM tab2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT SUM( DISTINCT + 92 ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-7793
SELECT SUM ( DISTINCT + 92 ) FROM tab0
----
92

query I rowsort
SELECT DISTINCT + col2 + - col0 * 12 FROM tab2
----
-529
-728
-842

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 36 IN ( col1 * 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - 49 + col0 FROM tab2 AS cor0
----
-25
-26
-32

query I rowsort
SELECT - 17 * - - col2 * - col0 AS col2 FROM tab1
----
105196
83232
85255

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT - + COUNT( DISTINCT 89 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7798
SELECT - + COUNT ( DISTINCT 89 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 39 * + col2 FROM tab0 AS cor0
----
-1833
-3861
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL + MAX( col2 ) * - 96 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
-5568

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + MAX ( col2 ) * - 96 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
-5568

query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab2 AS cor0 WHERE NOT 83 = 98
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT ALL CAST( NULL AS SIGNED ) * 3 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-7802
SELECT ALL CAST ( NULL AS INTEGER ) * 3 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col1 * - col0 AS col1 FROM tab1 AS cor0 WHERE - 10 <= col2
----
-340
-4186
-663

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 66 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / - col2 * 13 NOT BETWEEN - col0 / - 23 + - 43 * col1 AND ( NULL )
----

query I rowsort
SELECT - 6 - - ( - col2 ) FROM tab0 AS cor0
----
-105
-16
-53

query I rowsort
SELECT 41 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT - + 76 + MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7808
SELECT - + 76 + MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + 15 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
15
15

query I rowsort
SELECT DISTINCT + + col2 * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 WHERE + + 17 * 28 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7812
SELECT ALL COUNT( * ) DIV 79, MIN( - col0 ) AS col0 FROM tab0
----
0
-97

skipif mysql # not compatible
query II rowsort label-7812
SELECT ALL COUNT ( * ) / 79, MIN ( - col0 ) AS col0 FROM tab0
----
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT SUM( ALL - 91 ) + - + 28 * + + COUNT( * ) FROM tab2
----
-357

skipif mysql # not compatible
query I rowsort label-7813
SELECT SUM ( ALL - 91 ) + - + 28 * + + COUNT ( * ) FROM tab2
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT - 18 + + 88 * + ( COUNT( 74 ) ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-7814
SELECT - 18 + + 88 * + ( COUNT ( 74 ) ) FROM tab0
----
246

query I rowsort
SELECT DISTINCT + ( + - 80 ) + 72 FROM tab2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7816
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( 42 ) FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL MAX( + col1 ) AS col2 FROM tab0 WHERE + ( col2 ) / col2 + col0 >= + col1
----
21

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL MAX ( + col1 ) AS col2 FROM tab0 WHERE + ( col2 ) / col2 + col0 >= + col1
----
21

query I rowsort
SELECT DISTINCT - 50 FROM tab2 WHERE + + col0 NOT IN ( - 79 + 34 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE + col2 + 12 - 36 / + col2 = 88 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE + col2 + 12 - 36 / + col2 = 88 * - col1
----
0

query I rowsort
SELECT DISTINCT + + col2 * col0 + - ( + col2 + - 54 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
1089
2574
4346

query I rowsort
SELECT ( + col2 ) * - + col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( 85 )
----

query I rowsort
SELECT 82 * col0 FROM tab1
----
4182
6970
7462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 17 + + col0 col1 FROM tab0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 55 )
----

query I rowsort
SELECT ALL - 41 * 76 FROM tab2 cor0
----
-3116
-3116
-3116

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 95 ) NOT BETWEEN - 11 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT DISTINCT ( - col0 ) DIV col2 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT ( - col0 ) / col2 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( 91 ) IS NOT NULL
----

query I rowsort
SELECT ALL 98 * + col1 + + 15 FROM tab1
----
1387
4621
505

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( NOT ( NOT + col0 > + col0 ) )
----
51
67
77

query I rowsort
SELECT ALL - 11 * + 30 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 71602b5e4ec59c9a71c47fb9a93e908d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT MIN( ALL ( + + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT MIN ( ALL ( + + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7835
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) + + - 31 * - - ( + + 14 ) + - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7835
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) + + - 31 * - - ( + + 14 ) + - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT ALL + 46, + 48 - - MIN( - + col0 ) + SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
46
168

skipif mysql # not compatible
query II rowsort label-7836
SELECT ALL + 46, + 48 - - MIN ( - + col0 ) + SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
46
168

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 / + col0 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( + col1 ) + 31 * col2 + ( 98 ) col0 FROM tab0 AS cor0
----
-33
-5006
3166

query I rowsort
SELECT DISTINCT + col0 + - col1 + - + col2 * - col0 AS col1 FROM tab0
----
639
936
9699

query I rowsort
SELECT col0 + + - 65 + + col1 AS col0 FROM tab0
----
31
33
43

query I rowsort
SELECT col2 + + - 51 + + - col0 AS col1 FROM tab1
----
-6
-74
-77

query I rowsort
SELECT DISTINCT - 33 + - - col2 AS col2 FROM tab0
----
-23
14
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 91 ) * - 64 + - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL - CAST( NULL AS SIGNED ) + + 27 - - + col2 * - - ( col2 ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - CAST ( NULL AS INTEGER ) + + 27 - - + col2 * - - ( col2 ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT - + 67 + ( - - COUNT( * ) ) FROM tab2 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7845
SELECT - + 67 + ( - - COUNT ( * ) ) FROM tab2 cor0
----
-64

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE ( ( ( + col0 ) IN ( col0 ) ) )
----
-51
-85
-91

query I rowsort
SELECT + ( - - 42 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 53 AND ( NULL )
----

query I rowsort
SELECT ALL - ( - col1 ) * - - col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + COUNT( + col1 ) * 15 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7849
SELECT + COUNT ( + col1 ) * 15 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT DISTINCT + COUNT( DISTINCT col1 ) + + COUNT( * ) * SUM( DISTINCT + + 10 ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT 82 IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT + COUNT ( DISTINCT col1 ) + + COUNT ( * ) * SUM ( DISTINCT + + 10 ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 82 IS NULL
----
93

query I rowsort
SELECT ALL + 59 AS col2 FROM tab2 cor0 WHERE NOT ( NOT ( col2 * - + col1 IS NOT NULL ) )
----
59
59
59

query I rowsort
SELECT col2 * + col2 - col2 AS col1 FROM tab2
----
1560
3306
506

query I rowsort
SELECT - 41 - col1 FROM tab0
----
-122
-42
-62

query II rowsort
SELECT DISTINCT 65, 82 + - 70 AS col0 FROM tab2
----
65
12

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 = ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * + 66 AS col2 FROM tab0
----
3102
6534
660

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT - - col2, col1 * - col0 AS col2 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

query I rowsort
SELECT - ( + 88 ) FROM tab1 AS cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + 10 + + 53 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7863
SELECT ALL 13 * - - COUNT( * ), + MIN( col2 ) AS col1 FROM tab1
----
39
59

skipif mysql # not compatible
query II rowsort label-7863
SELECT ALL 13 * - - COUNT ( * ), + MIN ( col2 ) AS col1 FROM tab1
----
39
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT DISTINCT MIN( DISTINCT + - col1 ), 5 AS col2 FROM tab0
----
-81
5

skipif mysql # not compatible
query II rowsort label-7864
SELECT DISTINCT MIN ( DISTINCT + - col1 ), 5 AS col2 FROM tab0
----
-81
5

query II rowsort
SELECT - col2 * - col2, col1 FROM tab0
----
100
21
2209
81
9801
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, col0 - + + col0 * + col0, col1 )
----

query I rowsort
SELECT DISTINCT col1 * - - col2 * - 10 FROM tab1 AS cor0
----
-13440
-2950
-31960

onlyif mysql # DIV for integer division: 
query I rowsort label-7868
SELECT ALL - - 43 DIV + col2 + + 86 * + col2 * - col2 FROM tab0 AS cor0
----
-189974
-842886
-8596

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - - 43 / + col2 + + 86 * + col2 * - col2 FROM tab0 AS cor0
----
-189974
-842886
-8596

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT - + 90 * COUNT( * ) * - - 50 FROM tab1 AS cor0
----
-13500

skipif mysql # not compatible
query I rowsort label-7869
SELECT - + 90 * COUNT ( * ) * - - 50 FROM tab1 AS cor0
----
-13500

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 - 3 - + 28 + + 27 IS NOT NULL
----

query I rowsort
SELECT - col0 + 98 * + 44 AS col1 FROM tab0 WHERE + col2 > NULL
----

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) + col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 94 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT CAST( NULL AS SIGNED ) + + 54 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT CAST ( NULL AS INTEGER ) + + 54 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7875
SELECT SUM( + + col1 ) + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT SUM ( + + col1 ) + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + - col0 * - col1 AND ( 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL - - SUM( DISTINCT - 89 ) FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL - - SUM ( DISTINCT - 89 ) FROM tab1 AS cor0
----
-89

query I rowsort
SELECT - 8 * 62 + - - 8 * - + col0 AS col1 FROM tab0 AS cor0
----
-1192
-1272
-616

query I rowsort
SELECT ALL 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL - + col0 - + - col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 - + 44 FROM tab2 AS cor0
----
23
33
7

query I rowsort
SELECT ALL - ( - 72 ) AS col2 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7884
SELECT DISTINCT COUNT( * ) - 4 AS col1, - 66 FROM tab1 AS cor0
----
-1
-66

skipif mysql # not compatible
query II rowsort label-7884
SELECT DISTINCT COUNT ( * ) - 4 AS col1, - 66 FROM tab1 AS cor0
----
-1
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT ALL - 22 - - ( - COUNT( * ) ) col2 FROM tab0 cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7885
SELECT ALL - 22 - - ( - COUNT ( * ) ) col2 FROM tab0 cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL - ( - CAST( col0 AS SIGNED ) ) col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7886
SELECT ALL - ( - CAST ( col0 AS INTEGER ) ) col0 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 98 BETWEEN NULL AND 14 + - ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT DISTINCT + ( + COUNT( * ) ), COUNT( ALL 7 ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-7888
SELECT DISTINCT + ( + COUNT ( * ) ), COUNT ( ALL 7 ) FROM tab1
----
3
3

query I rowsort
SELECT 11 * 50 FROM tab1
----
550
550
550

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL + SUM( - + ( + ( col1 ) ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + SUM ( - + ( + ( col1 ) ) ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT col0 * + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT col0 * + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col2 * - col0 * - 75 FROM tab1
----
18727200
31970625
42233100

query I rowsort
SELECT ALL + 0 * 3 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - 9 * + col0 * + col1 FROM tab1 AS cor0
----
3825
38493
6426

query I rowsort
SELECT DISTINCT + ( - - 70 ) * + - col0 * + col2 + 48 FROM tab0 AS cor0
----
-49302
-60852
-672162

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + - col1
----

query I rowsort
SELECT + col2 + - - ( col2 ) - - + col0 + - 95 * + - 83 AS col2 FROM tab0 AS cor0
----
7992
7994
8180

onlyif mysql # aggregate syntax: 
query II rowsort label-7898
SELECT DISTINCT - + COUNT( * ) col1, 66 * + 57 AS col1 FROM tab1 cor0
----
-3
3762

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7898
SELECT DISTINCT - + COUNT ( * ) col1, 66 * + 57 AS col1 FROM tab1 cor0
----
-3
3762

query II rowsort
SELECT ALL col1 AS col2, ( + 62 ) AS col1 FROM tab0 AS cor0
----
1
62
21
62
81
62

query I rowsort
SELECT 64 + + + 38 * 54 FROM tab0 AS cor0
----
2116
2116
2116

query I rowsort
SELECT DISTINCT - 43 + - 36 FROM tab1
----
-79

query III rowsort
SELECT * FROM tab2 WHERE + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT SUM( DISTINCT col1 ) col2 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7903
SELECT SUM ( DISTINCT col1 ) col2 FROM tab0
----
103

query I rowsort
SELECT DISTINCT + 22 + + 51 FROM tab0 AS cor0
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7905
SELECT - col2 + CAST( NULL AS DECIMAL ), - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-7905
SELECT - col2 + CAST ( NULL AS REAL ), - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT - col1 + + - 84 + - + col0 FROM tab0 AS cor0
----
-180
-182
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT ALL - - CAST( NULL AS SIGNED ) + - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - + - 96 FROM tab0 WHERE ( NOT 80 IS NULL )
----
-1
81
9

query I rowsort
SELECT ( 79 ) FROM tab0
----
79
79
79

query I rowsort
SELECT + 88 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7911
SELECT MIN( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7912
SELECT + + 61 AS col0, - col0 DIV col1 col0 FROM tab1 cor0
----
61
-1
61
-17
61
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7912
SELECT + + 61 AS col0, - col0 / col1 col0 FROM tab1 cor0
----
61
-1
61
-17
61
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT DISTINCT + ( + COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7913
SELECT DISTINCT + ( + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, 49 col1 FROM tab1 AS cor0
----
-14
49
-47
49
-5
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL - COUNT( DISTINCT - + 63 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL - COUNT ( DISTINCT - + 63 ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL col1 AS col2, - col2 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + col0 NOT IN ( - - col1 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( ( - col0 ), 76 * col1 * + ( col0 ) - - ( - + col1 ) + + + col2 * + - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7920
SELECT ALL CAST( + + SUM( ALL + col1 ) AS SIGNED ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL CAST ( + + SUM ( ALL + col1 ) AS INTEGER ) FROM tab2
----
195

query II rowsort
SELECT + + col0, - 6 * - - 2 * col1 * + 8 FROM tab2 AS cor0
----
46
-4896
64
-7392
75
-6432

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL COUNT( * ) * - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL COUNT ( * ) * - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < + col0
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT DISTINCT 8 * col2 DIV - + col1 FROM tab1
----
-11
-54
-94

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT 8 * col2 / - + col1 FROM tab1
----
-11
-54
-94

query I rowsort
SELECT - - ( + 65 ) * 28 + col2 AS col2 FROM tab0 WHERE NOT - col1 < 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7926
SELECT + ( - col0 ) AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7926
SELECT + ( - col0 ) AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT + + col0 * + col0 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT - CAST( 0 AS SIGNED ) * - 93 * - col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7928
SELECT - CAST ( 0 AS INTEGER ) * - 93 * - col1 AS col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col0 ) + - 88 <= + ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 50 * + - col0 FROM tab2 AS cor0
----
-2300
-3200
-3750

onlyif mysql # DIV for integer division: 
query I rowsort label-7931
SELECT DISTINCT - col2 DIV - + col1 AS col2 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
1
11
6

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - col2 / - + col1 AS col2 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
1
11
6

query I rowsort
SELECT DISTINCT + + col0 * - 49 AS col0 FROM tab1 AS cor0
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND - + 60
----
0

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND - + 60
----
0

query I rowsort
SELECT DISTINCT + ( + + 94 ) AS col2 FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT + col2 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT col0 + + col2 - + col2 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE + + col0 = + + col1
----

query I rowsort
SELECT + col1 - + - col0 + - ( + - col1 ) FROM tab1 WHERE - - col0 * + 68 IS NOT NULL
----
185
79
95

query II rowsort
SELECT DISTINCT 34, - col2 AS col2 FROM tab2
----
34
-23
34
-40
34
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7940
SELECT + CAST( NULL AS DECIMAL ) + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT + CAST ( NULL AS REAL ) + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL + ( + AVG ( + CAST( NULL AS SIGNED ) ) ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + ( + AVG ( + CAST ( NULL AS INTEGER ) ) ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( + ( + + col1 ) ) * col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - - SUM( ALL + 51 ) * + + COUNT( + + col1 ) FROM tab2 cor0
----
459

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - - SUM ( ALL + 51 ) * + + COUNT ( + + col1 ) FROM tab2 cor0
----
459

query I rowsort
SELECT - col2 * - 46 AS col2 FROM tab2
----
1058
1840
2668

query I rowsort
SELECT DISTINCT - 71 + - + col0 AS col0 FROM tab1
----
-122
-156
-162

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 * + 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT MAX( DISTINCT + ( + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7948
SELECT MAX ( DISTINCT + ( + col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7949
SELECT DISTINCT - + ( - - col1 ), 70 / + col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-7949
SELECT DISTINCT - + ( - - col1 ), 70 / + col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

query II rowsort
SELECT DISTINCT 27 AS col0, - 20 FROM tab2
----
27
-20

query I rowsort
SELECT - col2 * 5 * - + 56 FROM tab0
----
13160
27720
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT DISTINCT + COUNT( ALL - 74 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + COUNT ( ALL - 74 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - - ( + 79 ) col2 FROM tab0
----
5056
5056
5056

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7954
SELECT COUNT( * ) * + - CAST( NULL AS DECIMAL ) * + 12 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT COUNT ( * ) * + - CAST ( NULL AS REAL ) * + 12 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT ALL - ( + - CAST( + col2 AS SIGNED ) ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL - ( + - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 1 > NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col0 + - - 31 + + + col2 + - 24 FROM tab1
----
119
140
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, 80 AS col2 FROM tab2
----
23
80
40
80
58
80

query I rowsort
SELECT DISTINCT - 29 * + col2 + - col0 - - ( 1 ) FROM tab2 WHERE NULL NOT IN ( + - col1, - col1, + 34 )
----

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE ( NULL ) <= - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT 62 * COUNT( * ) FROM tab2 cor0 WHERE NULL <= + col1 + + col0 - + - 27 + - 85 / - - 63
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT 62 * COUNT ( * ) FROM tab2 cor0 WHERE NULL <= + col1 + + col0 - + - 27 + - 85 / - - 63
----
0

query I rowsort
SELECT col2 + + + 25 FROM tab1 AS cor0
----
121
84
93

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1, col0, col0, + col2, + col1 + - col2 )
----

query I rowsort
SELECT ALL - ( + col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT + ( + - col2 ) + + + col1 + 47 + + 76 AS col0 FROM tab2 AS cor0
----
132
151
160

query I rowsort
SELECT - col1 * ( - + ( + - ( - col1 ) ) ) AS col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL - col1 * + - col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT COUNT( * ) * + - 72 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-7968
SELECT COUNT ( * ) * + - 72 FROM tab2 AS cor0
----
-216

query I rowsort
SELECT - 90 AS col0 FROM tab0 AS cor0 WHERE + col0 * + col0 NOT BETWEEN NULL AND - - col2
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7970
SELECT col2 AS col2, col2 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
59
118
68
136
96
192

skipif mysql # not compatible
query II rowsort label-7970
SELECT col2 AS col2, col2 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
59
118
68
136
96
192

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT DISTINCT - col1 * 75 * + col2 DIV + col2 AS col2 FROM tab1
----
-1050
-3525
-375

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT - col1 * 75 * + col2 / + col2 AS col2 FROM tab1
----
-1050
-3525
-375

query I rowsort
SELECT DISTINCT + col1 + - + col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL 90 + - COUNT( * ) + + SUM( col1 ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL 90 + - COUNT ( * ) + + SUM ( col1 ) FROM tab2
----
282

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col1 + - 35 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT + 17 DIV + 44 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7975
SELECT + 17 / + 44 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT ALL col0 - + - col1 DIV 85 * 6 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL col0 - + - col1 / 85 * 6 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + 71 + - - 59 FROM tab0
----
130

query I rowsort
SELECT - col2 - - col2 + 41 - - col1 AS col0 FROM tab0 cor0
----
122
42
62

query I rowsort
SELECT ALL - - 68 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT + 91 DIV - - 16 FROM tab2 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-7981
SELECT + 91 / - - 16 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + col0 * - 78 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL + - 42 / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + - 42 / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 86 AS col0, 41 FROM tab0 AS cor0
----
86
41
86
41
86
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7986
SELECT ALL - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - SUM( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7987
SELECT - SUM ( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / - + 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL + ( - 24 ) * + COUNT( * ) + - ( - - 37 ) FROM tab0
----
-109

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + ( - 24 ) * + COUNT ( * ) + - ( - - 37 ) FROM tab0
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT DISTINCT col2 DIV - ( - - 71 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7990
SELECT DISTINCT col2 / - ( - - 71 ) col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7991
SELECT + 81 * - - COUNT( * ) col0, - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
243
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7991
SELECT + 81 * - - COUNT ( * ) col0, - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
243
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7992
SELECT 28 DIV - ( + MIN( ALL + col2 ) ) + COUNT( * ) FROM tab0 WHERE NOT ( NOT ( NOT + 56 > + 70 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7992
SELECT 28 / - ( + MIN ( ALL + col2 ) ) + COUNT ( * ) FROM tab0 WHERE NOT ( NOT ( NOT + 56 > + 70 ) )
----
1

query I rowsort
SELECT - 29 * + + col2 * - 49 AS col2 FROM tab0
----
140679
14210
66787

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + - col1 < - col0 * - + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT + + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7995
SELECT + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7996
SELECT - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7997
SELECT - col1, col2 + - col1 / - CAST( NULL AS SIGNED ) col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7997
SELECT - col1, col2 + - col1 / - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT - 47 * 68 FROM tab2
----
-3196
-3196
-3196

query I rowsort
SELECT ALL + - 49 AS col0 FROM tab0 WHERE NULL IS NULL
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT COUNT( DISTINCT - 83 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8000
SELECT COUNT ( DISTINCT - 83 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8001
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 * 21 FROM tab0 AS cor0
----
-1827
-2037
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + SUM( - + 35 ) - + MIN( + 92 ) AS col0 FROM tab0 AS cor0
----
-197

skipif mysql # not compatible
query I rowsort label-8003
SELECT + SUM ( - + 35 ) - + MIN ( + 92 ) AS col0 FROM tab0 AS cor0
----
-197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 82 * + col1 AS col1 FROM tab0 AS cor0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT - MIN( - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT - MIN ( - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) * - MIN( ALL col1 ) * + 78 FROM tab2 cor0
----
11934

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) * - MIN ( ALL col1 ) * + 78 FROM tab2 cor0
----
11934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + col0 col1 FROM tab0
----
154
164
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL MIN( DISTINCT - + col2 ) - COUNT( * ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL MIN ( DISTINCT - + col2 ) - COUNT ( * ) FROM tab0
----
-102

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8011
SELECT - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8011
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL <> ( NULL ) )
----

query I rowsort
SELECT + 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query II rowsort
SELECT 5 AS col0, col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8015
SELECT - col0 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 34, - 11 * + col1 + - - 60 * CAST( 71 AS SIGNED ) * col1 * - 67 )
----

skipif mysql # not compatible
query I rowsort label-8015
SELECT - col0 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 34, - 11 * + col1 + - - 60 * CAST ( 71 AS INTEGER ) * col1 * - 67 )
----

query I rowsort
SELECT ALL + 17 * + - 13 * + + col0 AS col2 FROM tab1 cor0
----
-11271
-18785
-20111

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT DISTINCT col1 DIV + + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT col1 / + + col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL - MAX( col1 ) FROM tab2 AS cor0 WHERE + col1 * - col2 + col0 * col2 NOT IN ( - col0, ( - col2 ) + + - col2, + + ( + col1 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - MAX ( col1 ) FROM tab2 AS cor0 WHERE + col1 * - col2 + col0 * col2 NOT IN ( - col0, ( - col2 ) + + - col2, + + ( + col1 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8019
SELECT COUNT( * ) / + 91 + ( - COUNT( ALL - + 2 ) ) + CAST( NULL AS DECIMAL ) + - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 75 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT COUNT ( * ) / + 91 + ( - COUNT ( ALL - + 2 ) ) + CAST ( NULL AS REAL ) + - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 75 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / - 99 + - col2 - 73 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 49 ) col1 FROM tab2
----
49
49
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT - COUNT( * ), 50 AS col1 FROM tab1
----
-3
50

skipif mysql # not compatible
query II rowsort label-8022
SELECT - COUNT ( * ), 50 AS col1 FROM tab1
----
-3
50

query I rowsort
SELECT DISTINCT 92 + + + col0 AS col0 FROM tab2
----
138
156
167

query I rowsort
SELECT ALL - col2 * 16 AS col0 FROM tab1
----
-1088
-1536
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + COUNT( DISTINCT ( col0 ) ) * MAX( + col1 ) * + + 10 AS col0 FROM tab0
----
2430

skipif mysql # not compatible
query I rowsort label-8025
SELECT + COUNT ( DISTINCT ( col0 ) ) * MAX ( + col1 ) * + + 10 AS col0 FROM tab0
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT + 77 + + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + 77 + + COUNT ( * ) FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT COUNT( * ) * COUNT( * ) * + ( + 64 ) AS col0 FROM tab1
----
576

skipif mysql # not compatible
query I rowsort label-8027
SELECT COUNT ( * ) * COUNT ( * ) * + ( + 64 ) AS col0 FROM tab1
----
576

query II rowsort
SELECT DISTINCT col0 AS col1, - ( + - 75 ) AS col0 FROM tab0
----
15
75
87
75
97
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT - col0 * - col2 * - col0 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT + col1 DIV + 6 AS col0 FROM tab0 AS cor0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-8030
SELECT + col1 / + 6 AS col0 FROM tab0 AS cor0
----
0
13
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8031
SELECT ALL - + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT + 67 + + - COUNT( 67 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT + 67 + + - COUNT ( 67 ) FROM tab0
----
64

query III rowsort
SELECT * FROM tab0 WHERE + - 97 IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT - ( + COUNT( ALL col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT - ( + COUNT ( ALL col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT + 65 - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + 65 - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT - CAST( NULL AS SIGNED ) * + 82 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT - CAST ( NULL AS INTEGER ) * + 82 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN - col0 * - col2 + + col1 AND NULL )
----

query I rowsort
SELECT ALL + col1 + col2 + 53 FROM tab2
----
127
170
178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8041
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( + 94 AS SIGNED ) IN ( + col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8041
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( + 94 AS INTEGER ) IN ( + col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT SUM( - - 38 ) - + + MAX( DISTINCT + + 99 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8042
SELECT SUM ( - - 38 ) - + + MAX ( DISTINCT + + 99 ) FROM tab1
----
15

query I rowsort
SELECT ALL - + ( + col0 ) * - - col0 - + - 30 + 8 FROM tab2 cor0
----
-2078
-4058
-5587

onlyif mysql # aggregate syntax: 
query II rowsort label-8044
SELECT ALL + COUNT( * ) AS col0, 94 col1 FROM tab1 AS cor0
----
3
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8044
SELECT ALL + COUNT ( * ) AS col0, 94 col1 FROM tab1 AS cor0
----
3
94

query I rowsort
SELECT ALL - + 95 AS col2 FROM tab2 AS cor0
----
-95
-95
-95

query II rowsort
SELECT DISTINCT + col1, + 4 FROM tab1 AS cor0
----
14
4
47
4
5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - + COUNT( * ) FROM tab2 WHERE NOT - + col2 <= - ( + 38 ) * 49
----
-3

skipif mysql # not compatible
query I rowsort label-8047
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT - + col2 <= - ( + 38 ) * 49
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL COUNT( * ) * - 6 * + - 63 AS col1 FROM tab0
----
1134

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL COUNT ( * ) * - 6 * + - 63 AS col1 FROM tab0
----
1134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8050
SELECT ALL 66 AS col0, + col0 DIV - - col1 FROM tab0
----
66
0
66
4
66
97

skipif mysql # not compatible
query II rowsort label-8050
SELECT ALL 66 AS col0, + col0 / - - col1 FROM tab0
----
66
0
66
4
66
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8051
SELECT + - 78 AS col1, MIN( DISTINCT - - col0 ) / + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-8051
SELECT + - 78 AS col1, MIN ( DISTINCT - - col0 ) / + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-78
NULL

query I rowsort
SELECT 79 * - + col1 AS col2 FROM tab2 AS cor0
----
-4029
-5293
-6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - 66 ) col0 FROM tab2 AS cor0
----
-66

query III rowsort
SELECT - 98, 4 AS col1, - col0 - + 57 AS col0 FROM tab1 AS cor0
----
9 values hashing to c30ce9f030a10931514e858017a1738a

query II rowsort
SELECT - col2 AS col1, - 37 AS col0 FROM tab0 AS cor0
----
-10
-37
-47
-37
-99
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + col0 >= - 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT + 38 + + 75 DIV 13 * - 2 AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + 38 + + 75 / 13 * - 2 AS col1 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL >= + 0
----
0

skipif mysql # not compatible
query I rowsort label-8058
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL >= + 0
----
0

query I rowsort
SELECT + 93 / - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1 * + 40 - + col1
----

query I rowsort
SELECT DISTINCT col0 + + ( 99 ) AS col2 FROM tab0
----
114
186
196

query I rowsort
SELECT 23 * - col1 FROM tab1
----
-1081
-115
-322

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - - 36 + col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + 77 * + col2 col2 FROM tab0 WHERE + + 30 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + 55 + 17 FROM tab1
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT 77 * - + 48 AS col1 FROM tab2 WHERE + - col0 IN ( + + CAST( - 73 AS SIGNED ) / - col2 + - col2 / 59 + + + col1 )
----

skipif mysql # not compatible
query I rowsort label-8065
SELECT 77 * - + 48 AS col1 FROM tab2 WHERE + - col0 IN ( + + CAST ( - 73 AS INTEGER ) / - col2 + - col2 / 59 + + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <> + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - COUNT( + 7 ) FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8068
SELECT - COUNT ( + 7 ) FROM tab1, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ( COUNT( * ) ) AS col1 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8069
SELECT ( COUNT ( * ) ) AS col1 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8070
SELECT DISTINCT 30 * CAST( NULL AS SIGNED ) + - + 98 AS col0, 87 FROM tab0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-8070
SELECT DISTINCT 30 * CAST ( NULL AS INTEGER ) + - + 98 AS col0, 87 FROM tab0
----
NULL
87

query I rowsort
SELECT col0 FROM tab1 WHERE - col1 NOT IN ( 75 * - col1, col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT MIN( DISTINCT - - 57 ) - + + COUNT( * ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8072
SELECT MIN ( DISTINCT - - 57 ) - + + COUNT ( * ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT DISTINCT col1 + + ( - col2 ) + - col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - 84
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT col0 DIV 73 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8075
SELECT col0 / 73 AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * 78 * - col0 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + ( - MAX( - - ( - 72 ) ) ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + ( - MAX ( - - ( - 72 ) ) ) FROM tab0 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT DISTINCT + CAST( + + ( - col2 ) AS SIGNED ) + - + col1 + + + col0 AS col2 FROM tab1 WHERE 1 IS NOT NULL
----
-24
-59
21

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + CAST ( + + ( - col2 ) AS INTEGER ) + - + col1 + + + col0 AS col2 FROM tab1 WHERE 1 IS NOT NULL
----
-24
-59
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - COUNT( DISTINCT - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL + - MIN( ALL - ( col2 ) ) col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8081
SELECT ALL + - MIN ( ALL - ( col2 ) ) col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL - ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8083
SELECT - + COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT - + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 * + - 93 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL + COUNT( * ) + + - 78 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + COUNT ( * ) + + - 78 FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 32 + col1 AS col2 FROM tab1
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + MIN( ALL + - 41 ) AS col2 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + MIN ( ALL + - 41 ) AS col2 FROM tab0
----
-41

query I rowsort
SELECT - col0 + + ( + col2 ) FROM tab2 WHERE NULL IS NULL
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT DISTINCT ( + 32 ) DIV + col0 + - - 1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT ( + 32 ) / + col0 + - - 1 FROM tab1
----
1

query I rowsort
SELECT ALL - col0 * + - col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT + - col0 * - - col2 * - CAST( + 31 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
151776
155465
191828

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + - col0 * - - col2 * - CAST ( + 31 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
151776
155465
191828

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - COUNT( * ) * + 96 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - COUNT ( * ) * + 96 FROM tab0
----
-288

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE - col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8096
SELECT DISTINCT 26 DIV col2 - 44 * 76 + - + CAST( - - 32 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-3504
-3792
-4848

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT 26 / col2 - 44 * 76 + - + CAST ( - - 32 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-3504
-3792
-4848

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT + COUNT( * ) - + 34 + + 51 AS col2 FROM tab0 AS cor0 WHERE NOT ( - - ( + + 58 ) + 19 + + col0 = NULL )
----
17

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT + COUNT ( * ) - + 34 + + 51 AS col2 FROM tab0 AS cor0 WHERE NOT ( - - ( + + 58 ) + 19 + + col0 = NULL )
----
17

query I rowsort
SELECT DISTINCT + + 27 - - 70 AS col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT 62 * col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col1 FROM tab2 AS cor0 WHERE NOT - 75 * 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8101
SELECT ALL COUNT( * ), + COUNT( * ) col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8101
SELECT ALL COUNT ( * ), + COUNT ( * ) col0 FROM tab1
----
3
3

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + 66 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8103
SELECT ALL - - CAST( - 14 AS SIGNED ) FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL - - CAST ( - 14 AS INTEGER ) FROM tab2 AS cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - - col2
----

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 cor0 WHERE col2 > + + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + - COUNT( * ) * - 26 AS col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8106
SELECT + - COUNT ( * ) * - 26 AS col2 FROM tab0 AS cor0
----
78

query II rowsort
SELECT DISTINCT - 70, - col0 AS col2 FROM tab0 cor0
----
-70
-15
-70
-87
-70
-97

query II rowsort
SELECT DISTINCT + col0 + 77 AS col0, + col2 AS col2 FROM tab1 WHERE NOT - + 35 IN ( col2, - col1 )
----
128
96
162
59
168
68

query I rowsort
SELECT DISTINCT - 75 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

query I rowsort
SELECT 83 * + - col2 AS col1 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT - ( ( - - 33 ) ) FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT + - 96 * col2 FROM tab2 cor0
----
-2208
-3840
-5568

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT - 77 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 77 / col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 53 FROM tab1 AS cor0 WHERE 92 IS NOT NULL
----
-53
-53
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT ALL COUNT( + col1 ) * + MAX( ALL ( + - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL COUNT ( + col1 ) * + MAX ( ALL ( + - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 * - - col2 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT CAST( + 91 AS SIGNED ) + - col1 FROM tab0
----
10
70
90

skipif mysql # not compatible
query I rowsort label-8117
SELECT CAST ( + 91 AS INTEGER ) + - col1 FROM tab0
----
10
70
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT CAST( NULL AS SIGNED ) + - col2 + - col2 + - 70 - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT CAST ( NULL AS INTEGER ) + - col2 + - col2 + - 70 - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 + + 64 * - col2 col0 FROM tab2
----
-1481
-2569
-3721

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT - 33 + - - MIN( 58 ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT - 33 + - - MIN ( 58 ) AS col1 FROM tab0
----
25

query I rowsort
SELECT ALL + col1 * + 21 FROM tab2 AS cor0
----
1071
1407
1617

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col0 - col2 / col1, + col0 * 39 + - col1 + 47 * + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL COUNT( 24 ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL COUNT ( 24 ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 - - col0 * + 40 IS NOT NULL AND ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + + COUNT( * ) * MIN( DISTINCT col0 ) FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT + + COUNT ( * ) * MIN ( DISTINCT col0 ) FROM tab0 cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8126
SELECT DISTINCT + 28 DIV - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + 28 / - COUNT ( * ) FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL + + col1 * + 61 AS col0 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT DISTINCT COUNT( ALL 54 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8128
SELECT DISTINCT COUNT ( ALL 54 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT MAX( ALL - 10 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT MAX ( ALL - 10 ) FROM tab1
----
-10

query I rowsort
SELECT + ( + ( + ( + col0 ) ) ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - MIN( ALL + + 18 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-8131
SELECT - MIN ( ALL + + 18 ) FROM tab2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT DISTINCT - + col1 AS col0 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT - + col1 AS col0 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL COUNT( * ) * + MAX( ALL + col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL COUNT ( * ) * + MAX ( ALL + col2 ) FROM tab0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT DISTINCT - 51 DIV col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - 51 / col1 FROM tab2
----
-1
0

query I rowsort
SELECT + + col0 * - col1 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2, col0 * + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT DISTINCT - col0 DIV + 29 AS col0 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT - col0 / + 29 AS col0 FROM tab0
----
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8140
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) / - 45 FROM tab1 AS cor0 WHERE NOT + 90 * + - 87 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) / - 45 FROM tab1 AS cor0 WHERE NOT + 90 * + - 87 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT ALL COUNT( * ) AS col0, + 43 AS col2 FROM tab2 cor0
----
3
43

skipif mysql # not compatible
query II rowsort label-8141
SELECT ALL COUNT ( * ) AS col0, + 43 AS col2 FROM tab2 cor0
----
3
43

query I rowsort
SELECT - 13 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT + SUM( + col0 ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8143
SELECT DISTINCT + SUM ( + col0 ) col2 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8144
SELECT ALL - COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8144
SELECT ALL - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE col1 + - col1 / - - 9 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8146
SELECT - 56 DIV ( CAST( + ( - 73 ) AS SIGNED ) ) * - 37 + - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8146
SELECT - 56 / ( CAST ( + ( - 73 ) AS INTEGER ) ) * - 37 + - + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 24 + ( col0 ) AS col0 FROM tab0
----
111
121
39

query I rowsort
SELECT ALL - 51 + col0 * col1 AS col0 FROM tab0 AS cor0
----
1164
1776
46

query II rowsort
SELECT 15 + + 80 AS col2, - col1 * 38 FROM tab0 AS cor0
----
95
-3078
95
-38
95
-798

onlyif mysql # aggregate syntax: 
query II rowsort label-8150
SELECT + 99 + + - 74, COUNT( DISTINCT col2 ) AS col0 FROM tab0 WHERE ( NULL IS NOT NULL )
----
25
0

skipif mysql # not compatible
query II rowsort label-8150
SELECT + 99 + + - 74, COUNT ( DISTINCT col2 ) AS col0 FROM tab0 WHERE ( NULL IS NOT NULL )
----
25
0

query II rowsort
SELECT col0 AS col0, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL - + CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - + CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT - col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT + ( - - 78 ) AS col2 FROM tab2 AS cor0
----
78

query I rowsort
SELECT col1 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT ALL - 32 * - col1 * - + 48 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----

query II rowsort
SELECT ALL col0, + ( - - 98 ) FROM tab2 AS cor0
----
46
98
64
98
75
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT - - col2 DIV col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8158
SELECT - - col2 / col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
99

query II rowsort
SELECT + 30, 47 * + + ( + col0 ) AS col2 FROM tab0
----
30
4089
30
4559
30
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * col0, col0 col1 FROM tab2
----
2116
46
4096
64
5625
75

query I rowsort
SELECT DISTINCT 24 * + + col0 AS col1 FROM tab2
----
1104
1536
1800

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT ( - AVG ( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT ( - AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 57 * + 69 * + + col1 AS col1 FROM tab1
----
184851
19665
55062

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT - 97 DIV + - ( col0 ) FROM tab0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-8165
SELECT - 97 / + - ( col0 ) FROM tab0
----
1
1
6

query II rowsort
SELECT ALL - ( col0 ) * col1 + - 41, - col1 * + 23 AS col0 FROM tab1
----
-4318
-1081
-466
-115
-755
-322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 33 col2 FROM tab0 AS cor0
----
2871
3201
495

query I rowsort
SELECT + ( - col0 ) + - - col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + + col0 * col0 + - col2 + 45 * - col1 FROM tab1 AS cor0
----
1875
6098
6941

query I rowsort
SELECT + + 92 * 86 + col0 AS col0 FROM tab2 AS cor0
----
7958
7976
7987

onlyif mysql # aggregate syntax: 
query II rowsort label-8171
SELECT ALL MIN( DISTINCT + 6 ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
6
-3

skipif mysql # not compatible
query II rowsort label-8171
SELECT ALL MIN ( DISTINCT + 6 ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
6
-3

query II rowsort
SELECT - - 88, ( - 36 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 >= 20
----
88
-36
88
-36
88
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT + COUNT( * ) * - + 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-495

skipif mysql # not compatible
query I rowsort label-8173
SELECT + COUNT ( * ) * - + 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-495

query I rowsort
SELECT - - col1 / + 37 + col0 AS col1 FROM tab0 cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8175
SELECT ( - + col1 ) AS col1, col1 DIV - - col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
1
-81
1

skipif mysql # not compatible
query II rowsort label-8175
SELECT ( - + col1 ) AS col1, col1 / - - col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
1
-81
1

query II rowsort
SELECT ALL + - col0 + + 45 - - col0 * + 34 * - 60 * - ( + col0 ) AS col1, - col1 FROM tab0 AS cor0
----
15440718
-21
19194308
-1
459030
-81

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE + 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT - ( - SUM( + col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT - ( - SUM ( + col1 ) ) FROM tab2 AS cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT + col1 + - col1 DIV - - col0 FROM tab0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-8179
SELECT + col1 + - col1 / - - col0 FROM tab0
----
1
21
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT 48 + COUNT( * ) AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT 48 + COUNT ( * ) AS col2 FROM tab0
----
51

query I rowsort
SELECT + 51 AS col0 FROM tab2 WHERE - + col1 * + col1 IS NOT NULL
----
51
51
51

query I rowsort
SELECT DISTINCT - ( + col2 ) - col2 + + 80 AS col2 FROM tab2 AS cor0
----
-36
0
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, + 67 + - col2 col0 FROM tab1 AS cor0
----
59
8
68
-1
96
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL - + 91 - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - + 91 - COUNT ( * ) FROM tab1 AS cor0
----
-94

query I rowsort
SELECT ALL 60 - col2 AS col0 FROM tab1
----
-36
-8
1

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - 11 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col1 * + 73 + col1 AS col1 FROM tab0 WHERE - col1 > ( + col2 + + 5 )
----

query I rowsort
SELECT col2 * + col0 FROM tab0 WHERE NOT ( col2 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT DISTINCT ( 37 ) DIV + 91 + col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT ( 37 ) / + 91 + col0 AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT SUM( + col0 ) col0 FROM tab0 WHERE - 13 + 20 * col2 > col2 + col0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8190
SELECT SUM ( + col0 ) col0 FROM tab0 WHERE - 13 + 20 * col2 > col2 + col0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8191
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 75 AS col0 FROM tab2 WHERE NOT - col2 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col2 FROM tab2 WHERE NOT + ( 67 ) < - 74
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT MAX( 61 ) AS col1 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT MAX ( 61 ) AS col1 FROM tab0
----
61

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE ( + col0 / col1 ) <> col1
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT - 65 * - 7 - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - 25 FROM tab0 WHERE ( NULL ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + MAX( ALL 41 ) + COUNT( * ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-8198
SELECT + MAX ( ALL 41 ) + COUNT ( * ) FROM tab0
----
44

query I rowsort
SELECT ALL col1 * col0 + ( + col2 ) FROM tab2
----
2369
4968
5083

query I rowsort
SELECT ALL ( 92 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
92
92
92

query I rowsort
SELECT col2 * - 32 AS col1 FROM tab0 AS cor0
----
-1504
-3168
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT ( + SUM( + col0 ) ) * 31 FROM tab1 AS cor0
----
7037

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT ( + SUM ( + col0 ) ) * 31 FROM tab1 AS cor0
----
7037

query I rowsort
SELECT DISTINCT 12 + ( col0 + - col2 ) * col1 FROM tab0
----
-2580
10
1629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
99

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 49 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
-2208
-3072
-3600

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - col2 ) + + 0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) BETWEEN col0 AND NULL
----
46
64
75

query I rowsort
SELECT col2 * - col0 + + 20 AS col0 FROM tab1 AS cor0
----
-4876
-4995
-6168

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT ALL - SUM( ALL col0 ) col0 FROM tab1 AS cor0 WHERE NOT + col1 * 42 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8212
SELECT ALL - SUM ( ALL col0 ) col0 FROM tab1 AS cor0 WHERE NOT + col1 * 42 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 * - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-2615
-7230
-8328

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT MIN( ALL col1 ) * 35 AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8214
SELECT MIN ( ALL col1 ) * 35 AS col0 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT ALL - MAX( DISTINCT + col0 ) * 65 AS col1 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * col2 ) >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - MAX ( DISTINCT + col0 ) * 65 AS col1 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * col2 ) >= + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT - ( ( + CAST( NULL AS SIGNED ) ) ) / col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT - ( ( + CAST ( NULL AS INTEGER ) ) ) / col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 67 AS col1 FROM tab0 AS cor0 WHERE ( 22 ) NOT BETWEEN + col2 AND ( NULL )
----
-1005
-6499

query I rowsort
SELECT ALL + - 23 * 96 FROM tab2 AS cor0
----
-2208
-2208
-2208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 87 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT ( - CAST( NULL AS SIGNED ) ) * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT ( - CAST ( NULL AS INTEGER ) ) * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( col0 ) * - col1 ) NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab0 WHERE ( 96 ) IN ( 49 * + col0 )
----

query I rowsort
SELECT DISTINCT col2 + + 46 FROM tab2
----
104
69
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT + COUNT( DISTINCT col1 ) + 86 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT + COUNT ( DISTINCT col1 ) + 86 FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT + COUNT( - 72 ) - 1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + COUNT ( - 72 ) - 1 FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8228
SELECT col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT + COUNT( ALL col0 ) * 88 + - 69 AS col2 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8229
SELECT + COUNT ( ALL col0 ) * 88 + - 69 AS col2 FROM tab0 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT + COUNT( * ) * + - 4 * - COUNT( * ) AS col2 FROM tab0 cor0
----
36

skipif mysql # not compatible
query I rowsort label-8230
SELECT + COUNT ( * ) * + - 4 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
36

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - 19 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - + ( - 44 ) AS col0 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + COUNT( * ) col0 FROM tab0 cor0 WHERE ( col2 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8235
SELECT ALL + COUNT ( * ) col0 FROM tab0 cor0 WHERE ( col2 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col0 FROM tab1 cor0
----
45
45
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 87 / col1 AND NULL OR NULL > 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE ( col2 * col0 + - 6 * - 55 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE ( col2 * col0 + - 6 * - 55 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT ALL 66 col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8239
SELECT ALL 66 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
66
3

query II rowsort
SELECT DISTINCT + 31 AS col0, + 18 FROM tab1 AS cor0
----
31
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL - ( + COUNT( * ) ) + + 72 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL - ( + COUNT ( * ) ) + + 72 FROM tab0 AS cor0
----
69

query I rowsort
SELECT col1 / + 42 AS col1 FROM tab0 WHERE NOT NULL IN ( + col1 + col2 )
----

query I rowsort
SELECT - - col1 + - col0 AS col0 FROM tab1 WHERE NOT + + col0 IS NULL
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT - MAX( DISTINCT col1 ) + + COUNT( ALL + col0 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - MAX ( DISTINCT col1 ) + + COUNT ( ALL + col0 ) FROM tab2
----
-74

query II rowsort
SELECT ALL - ( + 1 ) AS col2, + 86 + - col1 AS col2 FROM tab0
----
-1
5
-1
65
-1
85

query I rowsort
SELECT 7 * + col0 AS col2 FROM tab0 WHERE NOT ( - ( + - col2 ) * - col1 ) IS NOT NULL
----

query I rowsort
SELECT 56 * - 64 + - + col2 AS col2 FROM tab2
----
-3607
-3624
-3642

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + + 9 * - - 26 + + 97 + + + COUNT( * ) FROM tab1 AS cor0
----
334

skipif mysql # not compatible
query I rowsort label-8249
SELECT + + 9 * - - 26 + + 97 + + + COUNT ( * ) FROM tab1 AS cor0
----
334

query I rowsort
SELECT - 98 AS col1 FROM tab2 AS cor0 WHERE ( ( + col1 * 76 ) IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8251
SELECT DISTINCT col2 * 16 FROM tab1 AS cor0 WHERE NOT + CAST( - 93 AS DECIMAL ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT col2 * 16 FROM tab1 AS cor0 WHERE NOT + CAST ( - 93 AS REAL ) + - col0 IS NOT NULL
----

query I rowsort
SELECT col0 + col0 * + - 40 FROM tab1 cor0
----
-1989
-3315
-3549

query I rowsort
SELECT - col2 + - 6 FROM tab0 AS cor0
----
-105
-16
-53

query I rowsort
SELECT - col2 - ( col2 + + col2 * col2 ) * + 12 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + - 46 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + - 46 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 9 col0 FROM tab2
----
55
73
84

query I rowsort
SELECT DISTINCT + ( col0 ) * 78 + 64 * 59 + - col0 AS col2 FROM tab0
----
10475
11245
4931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT ALL - col2 - + + CAST( NULL AS SIGNED ) + - col0 * - + CAST( - - col0 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL - col2 - + + CAST ( NULL AS INTEGER ) + - col0 * - + CAST ( - - col0 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8259
SELECT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT 24 * MAX( DISTINCT - + 62 ) + + - ( - MAX( ( - 43 ) ) ) FROM tab0 AS cor0
----
-1531

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT 24 * MAX ( DISTINCT - + 62 ) + + - ( - MAX ( ( - 43 ) ) ) FROM tab0 AS cor0
----
-1531

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL + COUNT( * ) * + COUNT( * ) col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8261
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - col2 - + col0 AS col1 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + + COUNT( * ) * + ( - COUNT( * ) ) - 87 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8263
SELECT + + COUNT ( * ) * + ( - COUNT ( * ) ) - 87 FROM tab0 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 * - col2 + 31 + - col0 + col2 * 91 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 * + col2 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 * + col2 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 23 AS col1 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col0 + - - col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-8268
SELECT ALL - col2 DIV - - col2 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL - col2 / - - col2 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8269
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 / CAST( + + 26 AS SIGNED ) * ( + col0 ) ) IN ( + ( col0 ) * + col2 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8269
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 / CAST ( + + 26 AS INTEGER ) * ( + col0 ) ) IN ( + ( col0 ) * + col2 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( col0 ) * + col0 FROM tab2 WHERE NULL IS NULL
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT + 86 + - - col0 DIV 39 FROM tab1 WHERE NOT ( NOT ( col2 ) IS NOT NULL )
----
87
88
88

skipif mysql # not compatible
query I rowsort label-8271
SELECT + 86 + - - col0 / 39 FROM tab1 WHERE NOT ( NOT ( col2 ) IS NOT NULL )
----
87
88
88

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 NOT IN ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8273
SELECT - CAST( 67 AS SIGNED ) AS col0, - COUNT( * ) AS col0 FROM tab2
----
-67
-3

skipif mysql # not compatible
query II rowsort label-8273
SELECT - CAST ( 67 AS INTEGER ) AS col0, - COUNT ( * ) AS col0 FROM tab2
----
-67
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT ALL CAST( NULL AS SIGNED ) * + 37 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL CAST ( NULL AS INTEGER ) * + 37 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT 46 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
46
46
46

query I rowsort
SELECT ALL - 58 + + 59 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8278
SELECT ALL - CAST( NULL AS DECIMAL ) * + 22 * 22 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - CAST ( NULL AS REAL ) * + 22 * 22 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - col0 FROM tab2 AS cor0 WHERE NOT ( NOT col1 * col0 IS NOT NULL )
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT SUM( ALL - col2 ) * + + COUNT( * ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-8280
SELECT SUM ( ALL - col2 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-669

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 64 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 21 - + col1 ) BETWEEN + 41 + 78 AND + col2 * - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - 9 col0, 50 col0 FROM tab1 cor0
----
50
50
59
50
87
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - 85 + + 0 * COUNT( * ) FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8284
SELECT - 85 + + 0 * COUNT ( * ) FROM tab1 AS cor0
----
-85

query I rowsort
SELECT - + col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + + col1 + - col1 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL MAX( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL MAX ( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - 63 + + - 10 AS col1 FROM tab1
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 38 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 93, + ( - col2 ) AS col0 FROM tab1
----
93
-59
93
-68
93
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT COUNT( * ) FROM tab1 WHERE NOT ( + 11 * - 31 - + 14 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8290
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( + 11 * - 31 - + 14 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT MAX( - - ( - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8291
SELECT MAX ( - - ( - col1 ) ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT - SUM( ALL ( col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - SUM ( ALL ( col2 ) ) FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8293
SELECT - col2 AS col2, - 42 + 67 + - CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8293
SELECT - col2 AS col2, - 42 + 67 + - CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT COUNT( * ) + - COUNT( col0 ) + - 73 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT COUNT ( * ) + - COUNT ( col0 ) + - 73 FROM tab2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8295
SELECT * FROM tab1 WHERE - col1 * - 89 + - + 35 * + ( CAST( NULL AS SIGNED ) ) + col0 = ( - ( + col1 ) / col0 )
----

skipif mysql # not compatible
query III rowsort label-8295
SELECT * FROM tab1 WHERE - col1 * - 89 + - + 35 * + ( CAST ( NULL AS INTEGER ) ) + col0 = ( - ( + col1 ) / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT + CAST( NULL AS SIGNED ) + - - col0 FROM tab1 WHERE + col2 <= - 75
----

skipif mysql # not compatible
query I rowsort label-8296
SELECT + CAST ( NULL AS INTEGER ) + - - col0 FROM tab1 WHERE + col2 <= - 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - - 87 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-98

query I rowsort
SELECT DISTINCT 86 - - + 54 FROM tab2
----
140

query I rowsort
SELECT ALL col1 * + + 33 * + + 11 + + - ( + 99 ) * + col2 FROM tab2
----
16236
18579
23991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8302
SELECT - col0 FROM tab2 WHERE ( NOT NULL NOT IN ( - 98 * ( - - 20 ) * + CAST( - - 5 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-8302
SELECT - col0 FROM tab2 WHERE ( NOT NULL NOT IN ( - 98 * ( - - 20 ) * + CAST ( - - 5 AS INTEGER ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * col2 + col0 + col0 <> + - 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE - col1 BETWEEN - ( + 74 ) AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 * + col2 + - - col2 * + + col0 * - 91 * - col2 FROM tab1 cor0
----
26925830
38294540
42772800

query I rowsort
SELECT ALL - + col1 * - col2 * - + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-15178240
-19527150
-2751858

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT - 79 * + - 52 + MAX( + col0 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
4381

skipif mysql # not compatible
query I rowsort label-8307
SELECT - 79 * + - 52 + MAX ( + col0 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
4381

query I rowsort
SELECT col0 * - 68 FROM tab0 AS cor0
----
-1020
-5916
-6596

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 + - 94 ) >= ( col2 ) * 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( - - col2 ) * + + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL MIN( - 20 ) AS col1 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL MIN ( - 20 ) AS col1 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 55 * 73 * - + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8313
SELECT DISTINCT - SUM( ALL + col0 ) DIV 59 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT - SUM ( ALL + col0 ) / 59 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col2 * - col1 - + ( col2 ) FROM tab2
----
1150
3040
3828

query I rowsort
SELECT + 99 * + col1 FROM tab2
----
5049
6633
7623

query I rowsort
SELECT ALL 2 AS col1 FROM tab0 WHERE NOT + col0 * - 32 + - col0 + - 81 IS NULL
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 / - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 24 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( + 0 + col2 + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8320
SELECT ALL - - SUM( ALL + 58 ) - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - 66 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - - SUM ( ALL + 58 ) - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - 66 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) + - + 35 * + 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT 1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + 51
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT ( 49 ) * + - col1 AS col0 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT MAX( - 79 ) AS col1 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8327
SELECT MAX ( - 79 ) AS col1 FROM tab0 AS cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - ( + 79 ) * - - col1 * col1 col1 FROM tab2 AS cor0
----
-10479429
-23760277
-36066107

query II rowsort
SELECT - col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT ALL * FROM tab2 WHERE + 30 BETWEEN NULL AND + + col2 + - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - 23 <= + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8332
SELECT DISTINCT + col0 + + ( - - CAST( - 55 AS SIGNED ) ) DIV - 80 * CAST( col2 AS SIGNED ), col2 FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-8332
SELECT DISTINCT + col0 + + ( - - CAST ( - 55 AS INTEGER ) ) / - 80 * CAST ( col2 AS INTEGER ), col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT + 45 + - + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-8333
SELECT + 45 + - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL 23 + MAX( + col2 ) AS col2 FROM tab0
----
122

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL 23 + MAX ( + col2 ) AS col2 FROM tab0
----
122

query II rowsort
SELECT DISTINCT - col0 + - + col1 AS col1, 59 FROM tab0
----
-108
59
-96
59
-98
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 3 + + ( 48 ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT - COUNT( DISTINCT 95 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT - COUNT ( DISTINCT 95 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + ( + + ( + 45 ) ) * + col0 + - col0 AS col2, col2 FROM tab2 AS cor0
----
2024
23
2816
40
3300
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + ( - - 19 ) * + MIN( DISTINCT - col0 ) AS col1 FROM tab2
----
-1425

skipif mysql # not compatible
query I rowsort label-8339
SELECT + ( - - 19 ) * + MIN ( DISTINCT - col0 ) AS col1 FROM tab2
----
-1425

query I rowsort
SELECT - 53 - col2 FROM tab2 AS cor0
----
-111
-76
-93

query I rowsort
SELECT - + ( - col1 ) * + col0 * - 82 + + col0 AS col0 FROM tab2 AS cor0
----
-192326
-404032
-411975

query I rowsort
SELECT DISTINCT - 60 * + 88 - + col1 + col2 AS col1 FROM tab2 AS cor0
----
-5289
-5308
-5317

query I rowsort
SELECT - col1 + - + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-141
-142
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 83 >= ( - 88 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 AS col0, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT + - 24 FROM tab2 cor0
----
-24

query II rowsort
SELECT - col0 * + - col2 AS col0, - 46 * - + col0 + ( - - col2 ) FROM tab2
----
1058
2139
2560
2984
4350
3508

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - COUNT( * ) * + 55 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-8348
SELECT - COUNT ( * ) * + 55 FROM tab0
----
-165

query I rowsort
SELECT ALL - ( - col1 ) * - col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL 63 * + MIN( - col0 ) * + + 94 * COUNT( * ) FROM tab2
----
-1332450

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL 63 * + MIN ( - col0 ) * + + 94 * COUNT ( * ) FROM tab2
----
-1332450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8351
SELECT ALL COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8352
SELECT col0 DIV - col0 + + - col1 col0 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8352
SELECT col0 / - col0 + + - col1 col0 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT DISTINCT + ( - 74 ) * - + 79 FROM tab0 AS cor0
----
5846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * + col0 col1 FROM tab2
----
4462
6208
7275

query I rowsort
SELECT 37 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT DISTINCT SUM( DISTINCT - + 26 ) / + CAST( NULL AS SIGNED ) + - - COUNT( * ) * - 89 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT SUM ( DISTINCT - + 26 ) / + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * - 89 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT DISTINCT - ( CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT - ( CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + - 27 FROM tab1 AS cor0 WHERE - 34 IS NOT NULL
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - MAX( ( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8359
SELECT - MAX ( ( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 7 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8361
SELECT ALL - 67 * col1 * ( + 26 ) * - ( + CAST( NULL AS DECIMAL ) ) + - col2 * - 37 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - 67 * col1 * ( + 26 ) * - ( + CAST ( NULL AS REAL ) ) + - col2 * - 37 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 col2 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT col0 * + 27 + + col0 AS col2 FROM tab2
----
1288
1792
2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT ALL - CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL - CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab2
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - col0 ) + - - col1 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL + 76 * + COUNT( * ) + MAX( - 39 ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + 76 * + COUNT ( * ) + MAX ( - 39 ) FROM tab1
----
189

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8369
SELECT - ( col1 ) * - CAST( + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) + + - 7 AS col2, + col0 col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8369
SELECT - ( col1 ) * - CAST ( + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) + + - 7 AS col2, + col0 col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT ALL + col2 AS col2, 15 FROM tab1 AS cor0
----
59
15
68
15
96
15

query I rowsort
SELECT - col0 + + col1 - col0 AS col0 FROM tab2 AS cor0
----
-41
-51
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8372
SELECT ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL 81 + col0, col0 AS col0 FROM tab0 AS cor0 WHERE col1 * + 7 NOT BETWEEN - 51 AND col2
----
168
87
96
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT DISTINCT + + col0 * - 95 + col0 DIV - + 28 FROM tab0 AS cor0
----
-1425
-8268
-9218

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + + col0 * - 95 + col0 / - + 28 FROM tab0 AS cor0
----
-1425
-8268
-9218

query I rowsort
SELECT ALL - + ( - col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NULL ) <> + 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT + CAST( - col2 AS SIGNED ) * - col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8377
SELECT + CAST ( - col2 AS INTEGER ) * - col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + col0 * + 76 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
1140
6612
7372

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - ( + COUNT( ALL + 72 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8379
SELECT - ( + COUNT ( ALL + 72 ) ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8380
SELECT + 82, COUNT( * ) AS col2 FROM tab0
----
82
3

skipif mysql # not compatible
query II rowsort label-8380
SELECT + 82, COUNT ( * ) AS col2 FROM tab0
----
82
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - COUNT( - - col2 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COUNT ( - - col2 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8382
SELECT ALL + 74 AS col1, COUNT( * ) FROM tab1 AS cor0
----
74
3

skipif mysql # not compatible
query II rowsort label-8382
SELECT ALL + 74 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
74
3

query I rowsort
SELECT + + 72 * - + col0 AS col0 FROM tab1 AS cor0
----
-3672
-6120
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + + MIN( ALL + + ( + col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8384
SELECT + + MIN ( ALL + + ( + col1 ) ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT + CAST( NULL AS SIGNED ) * - 5 * - col1 + - - col0 * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT + CAST ( NULL AS INTEGER ) * - 5 * - col1 + - - col0 * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT - col0 * + - col0 * + + col2 + - CAST( + 74 AS SIGNED ) FROM tab0 AS cor0
----
10501
75616
931417

skipif mysql # not compatible
query I rowsort label-8386
SELECT - col0 * + - col0 * + + col2 + - CAST ( + 74 AS INTEGER ) FROM tab0 AS cor0
----
10501
75616
931417

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 80 * col0 - + col2 + + col2 <= + - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8389
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, - 1 * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8389
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, - 1 * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> - ( + 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + + col2 ) + col2 * - col2 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL 18 + + + COUNT( * ) * - + 50 col2 FROM tab0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8392
SELECT ALL 18 + + + COUNT ( * ) * - + 50 col2 FROM tab0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) * - col0 * col2 / - col0 + - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) * - col0 * col2 / - col0 + - col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + col0 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT - CAST( NULL AS SIGNED ) + + col0 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT - CAST ( NULL AS INTEGER ) + + col0 * + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT - 22 DIV col2 + + 21 FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 22 / col2 + + 21 FROM tab2
----
21
21
21

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL + + COUNT( * ) + 10 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL + + COUNT ( * ) + 10 FROM tab1 AS cor0
----
13

query II rowsort
SELECT ALL + 38 AS col0, + ( - 51 ) FROM tab1 cor0
----
38
-51
38
-51
38
-51

query I rowsort
SELECT DISTINCT + col0 * - 80 AS col1 FROM tab0 AS cor0 WHERE NOT 59 >= + 56
----

query I rowsort
SELECT - col1 * - col0 FROM tab0 cor0 WHERE ( col1 ) > + col2
----
1215
1827

query I rowsort
SELECT - + 99 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT - 91 AS col2 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-91
-91
-91

query I rowsort
SELECT ALL 76 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, + col1 FROM tab0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 74 * col0 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT + col1 * - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 + + - CAST( NULL AS SIGNED ) + - col0 ) >= col0
----

skipif mysql # not compatible
query I rowsort label-8408
SELECT + col1 * - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 + + - CAST ( NULL AS INTEGER ) + - col0 ) >= col0
----

query II rowsort
SELECT col2 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL + ( + col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL + 79 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 80 >= NULL
----

query II rowsort
SELECT DISTINCT + col2, col1 * - ( 58 ) AS col0 FROM tab1 AS cor0
----
59
-290
68
-2726
96
-812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 + col0 + + col0 col0 FROM tab0 AS cor0
----
15
111
87
195
97
195

onlyif mysql # aggregate syntax: 
query II rowsort label-8415
SELECT ALL - COUNT( * ), COUNT( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8415
SELECT ALL - COUNT ( * ), COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT MAX( ALL + + 89 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-8416
SELECT MAX ( ALL + + 89 ) FROM tab0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT CAST( NULL AS SIGNED ) * + 78 * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT CAST ( NULL AS INTEGER ) * + 78 * + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8418
SELECT + AVG ( - + col0 ) * + CAST( NULL AS SIGNED ) * 46 * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT + AVG ( - + col0 ) * + CAST ( NULL AS INTEGER ) * 46 * + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 69 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( col0 ) * 72 * - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-184320
-313200
-76176

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT - 24 * - COUNT( * ) AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8421
SELECT - 24 * - COUNT ( * ) AS col2 FROM tab2
----
72

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75

query I rowsort
SELECT + col2 * col2 * - - 85 AS col1 FROM tab2
----
136000
285940
44965

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT DISTINCT - + 14 + - col0 DIV - - col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT - + 14 + - col0 / - - col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-15

query I rowsort
SELECT DISTINCT + - 91 * - col1 * - col2 FROM tab0 AS cor0
----
-19110
-346437
-9009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col0 FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT - + ( 21 ) DIV 30 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT - + ( 21 ) / 30 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col1 + - col2 + col1 * - col0
----

query I rowsort
SELECT ( - ( 82 ) ) * + col0 + - 98 AS col1 FROM tab1
----
-4280
-7068
-7560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT - 1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT - 1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 86 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT - MIN( - 27 ) * + 15 + - + 81 FROM tab1 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - MIN ( - 27 ) * + 15 + - + 81 FROM tab1 AS cor0
----
324

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 70
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT - 60 DIV - 93 + - 93 * - col0 AS col2 FROM tab0 cor0
----
1395
8091
9021

skipif mysql # not compatible
query I rowsort label-8434
SELECT - 60 / - 93 + - 93 * - col0 AS col2 FROM tab0 cor0
----
1395
8091
9021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) + - 0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) + - 0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT MIN( + - col1 ) * COUNT( * ) + - COUNT( * ) + - 2 AS col1 FROM tab2
----
-236

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT MIN ( + - col1 ) * COUNT ( * ) + - COUNT ( * ) + - 2 AS col1 FROM tab2
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT MIN( + + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8437
SELECT MIN ( + + col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( 2 ) + + - col0 * col2 + - 96 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( 2 ) + + - col0 * col2 + - 96 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT DISTINCT + col0 * col2 - + - col1 DIV + ( col1 ) FROM tab2
----
1059
2561
4351

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT + col0 * col2 - + - col1 / + ( col1 ) FROM tab2
----
1059
2561
4351

query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL + 91 - col2 AS col2 FROM tab1 AS cor0
----
-5
23
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 89 - - + 54 <= NULL
----

query I rowsort
SELECT - - 7 + - + col2 AS col1 FROM tab0 AS cor0
----
-3
-40
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 / - + col1 * 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT - 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-8446
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * + 2 * col1 AS col0 FROM tab1
----
2688
590
6392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col2, 91 AS col0 FROM tab0 AS cor0
----
-10
91
-47
91
-99
91

query I rowsort
SELECT ALL + + 1 * - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT - 96 DIV - col1 + 68 AS col2 FROM tab0 AS cor0
----
164
69
72

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 96 / - col1 + 68 AS col2 FROM tab0 AS cor0
----
164
69
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8452
SELECT + + col2 DIV CAST( + 34 AS SIGNED ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8452
SELECT + + col2 / CAST ( + 34 AS INTEGER ) FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT ALL + - col2 AS col0, + 50 FROM tab1 AS cor0
----
-59
50
-68
50
-96
50

query I rowsort
SELECT - ( + ( + 47 ) ) FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8455
SELECT + 41 AS col0, - MAX( DISTINCT + + 43 ) AS col2 FROM tab1 AS cor0
----
41
-43

skipif mysql # not compatible
query II rowsort label-8455
SELECT + 41 AS col0, - MAX ( DISTINCT + + 43 ) AS col2 FROM tab1 AS cor0
----
41
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT CAST( NULL AS SIGNED ) * - ( + + col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT CAST ( NULL AS INTEGER ) * - ( + + col1 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8457
SELECT ALL - CAST( + col1 AS SIGNED ) DIV + 14 AS col1 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - CAST ( + col1 AS INTEGER ) / + 14 AS col1 FROM tab2
----
-3
-4
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL MAX( DISTINCT - - CAST( col2 AS SIGNED ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL MAX ( DISTINCT - - CAST ( col2 AS INTEGER ) ) FROM tab1
----
96

query II rowsort
SELECT ALL 15, col2 * - - col0 AS col1 FROM tab2
----
15
1058
15
2560
15
4350

query I rowsort
SELECT col2 + - col0 + - - col0 AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + - COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8461
SELECT + - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + MIN( + 49 ) + + - 27 AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8462
SELECT + MIN ( + 49 ) + + - 27 AS col1 FROM tab1 AS cor0
----
22

query I rowsort
SELECT 5 * - 23 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3565cde0e9e7c7a2aebe3ad80a374839

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND ( 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + MIN( 30 ) AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8465
SELECT + MIN ( 30 ) AS col2 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT - COUNT( * ) + SUM( ALL + 82 ) + MAX( - col0 ) FROM tab2 AS cor0
----
197

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT - COUNT ( * ) + SUM ( ALL + 82 ) + MAX ( - col0 ) FROM tab2 AS cor0
----
197

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - - col2 NOT IN ( - + 47 * 47, 44 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - + ( + 8 ) col2, - col0 AS col2, - + 51 * + col2 FROM tab2 AS cor0
----
9 values hashing to 84a2c89cb8a79b2c5bd151efb165a631

query I rowsort
SELECT DISTINCT - - col2 * + + ( + col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
1000
103823
970299

query I rowsort
SELECT DISTINCT + - 58 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT 48 * - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8471
SELECT 48 * - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT ALL CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + 37 FROM tab0
----
136
47
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT ALL 38 + + col0 * - CAST( NULL AS SIGNED ) + - - 61 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL 38 + + col0 * - CAST ( NULL AS INTEGER ) + - - 61 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 60 FROM tab2 WHERE NOT + + col1 / - - 91 IS NULL
----
60

query I rowsort
SELECT DISTINCT + col0 * - - col2 - + 17 * - - ( - col2 ) FROM tab1
----
6018
6528
7344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + 41 AS col0 FROM tab0 WHERE NULL > + - col1 * - col1
----

skipif mysql # not compatible
query I rowsort label-8477
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + 41 AS col0 FROM tab0 WHERE NULL > + - col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT DISTINCT COUNT( * ) + + MAX( ALL - - 86 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT COUNT ( * ) + + MAX ( ALL - - 86 ) FROM tab1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT COUNT( * ) DIV - + 2 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8479
SELECT COUNT ( * ) / - + 2 AS col2 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT col1 * - ( - 16 ) AS col0 FROM tab2
----
1072
1232
816

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT + col0 DIV ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8481
SELECT + col0 / ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT - - MAX( DISTINCT col1 ) col1, ( - MIN( ALL - 18 ) ) FROM tab1 AS cor0
----
47
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8482
SELECT - - MAX ( DISTINCT col1 ) col1, ( - MIN ( ALL - 18 ) ) FROM tab1 AS cor0
----
47
18

query I rowsort
SELECT - - 4 AS col0 FROM tab0 cor0
----
4
4
4

query II rowsort
SELECT DISTINCT - 20 AS col2, col0 AS col0 FROM tab0
----
-20
15
-20
87
-20
97

query I rowsort
SELECT ALL col2 + ( + 52 ) AS col1 FROM tab2
----
110
75
92

query I rowsort
SELECT col0 * 89 * col0 FROM tab0
----
20025
673641
837401

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * - - ( - 91 ) FROM tab0
----
-4277
-9009
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT ALL + 95 DIV - - col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + 95 / - - col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT + 66 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8490
SELECT + 66 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
198

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - col2 IS NOT NULL OR NULL > NULL
----

query II rowsort
SELECT DISTINCT + col2, col1 + col2 AS col1 FROM tab1
----
59
64
68
115
96
110

query I rowsort
SELECT + col0 * - col2 + col0 * + col0 AS col0 FROM tab1
----
-2295
2093
2210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT ALL CAST( 64 AS SIGNED ) + + COUNT( * ) col1 FROM tab1
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8494
SELECT ALL CAST ( 64 AS INTEGER ) + + COUNT ( * ) col1 FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT + 30 + COUNT( * ) * - COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT + 30 + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8497
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( + col1 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8497
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( + col1 AS INTEGER ) IS NULL )
----

query II rowsort
SELECT - + 50 AS col1, col2 * + col2 AS col0 FROM tab1 AS cor0
----
-50
3481
-50
4624
-50
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT DISTINCT MAX( col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT - - 95 AS col1, col1 FROM tab2 AS cor0
----
95
51
95
67
95
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT - - MIN( DISTINCT - - 77 ) AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8501
SELECT - - MIN ( DISTINCT - - 77 ) AS col2 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8502
SELECT ALL + + col0, col0 * - + ( + 70 ) * - col2 + - CAST( + 99 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
73961
64
179101
75
304401

skipif mysql # not compatible
query II rowsort label-8502
SELECT ALL + + col0, col0 * - + ( + 70 ) * - col2 + - CAST ( + 99 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
73961
64
179101
75
304401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT col0 - + CAST( + + col0 AS SIGNED ) + + - col1 / col0 + + CAST( NULL AS SIGNED ) - - 58 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT col0 - + CAST ( + + col0 AS INTEGER ) + + - col1 / col0 + + CAST ( NULL AS INTEGER ) - - 58 * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8504
SELECT 99 DIV + - 73 - + COUNT( * ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8504
SELECT 99 / + - 73 - + COUNT ( * ) FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + 67 - COUNT( * ) AS col0 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-8505
SELECT + 67 - COUNT ( * ) AS col0 FROM tab2
----
64

query I rowsort
SELECT DISTINCT col1 + - col1 - + - col0 + + col0 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8507
SELECT COUNT( * ) / MIN( col1 ) - + ( - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT COUNT ( * ) / MIN ( col1 ) - + ( - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col1 BETWEEN + + col1 AND + 6 * + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT ALL 35 * + - COUNT( * ) col1, 86 AS col2 FROM tab0
----
-105
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8509
SELECT ALL 35 * + - COUNT ( * ) col1, 86 AS col2 FROM tab0
----
-105
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8510
SELECT ALL COUNT( * ) * + MAX( ALL - col0 ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL COUNT ( * ) * + MAX ( ALL - col0 ) * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + + 38 + - + col0 * - - 27 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8512
SELECT + col1 DIV CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8512
SELECT + col1 / CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL - ( + 60 ) AS col2 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT + + 64 * - col1 FROM tab0 AS cor0
----
-1344
-5184
-64

query I rowsort
SELECT ALL 51 FROM tab2, tab1 AS cor0 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT MAX( - 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT MAX ( - 47 ) FROM tab0
----
-47

query I rowsort
SELECT 86 * + 73 + - + 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38c1ee9d9bc3f6994025ced48647c5f1

query I rowsort
SELECT 92 + + 14 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

query I rowsort
SELECT - - 58 * + col2 FROM tab2 cor0
----
1334
2320
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + MAX( - 2 ) col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8520
SELECT + MAX ( - 2 ) col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + col1 * ( - col2 ) + + + col1 + - col1 - col1 + - col2 FROM tab1 AS cor0
----
-1454
-3311
-359

query II rowsort
SELECT - 6, col1 FROM tab2 AS cor0
----
-6
51
-6
67
-6
77

query III rowsort
SELECT * FROM tab1 WHERE NULL >= 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT DISTINCT - COUNT( * ) + + SUM( + 95 ) AS col0 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT - COUNT ( * ) + + SUM ( + 95 ) AS col0 FROM tab2
----
282

query I rowsort
SELECT + 60 + ( - + col2 ) AS col1 FROM tab1
----
-36
-8
1

query I rowsort
SELECT ALL + 1 + + col1 + + col0 AS col1 FROM tab2
----
142
143
98

query II rowsort
SELECT col1 + - col2 AS col0, - col0 + + 68 FROM tab2
----
28
22
37
4
9
-7

query I rowsort
SELECT DISTINCT + ( col0 ) * + 13 + + col2 + 44 * - 38 * + + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-15579
-164168
-78342

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL - 68 + + + COUNT( * ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - 68 + + + COUNT ( * ) FROM tab1 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT - + 44 + + 21 * + 64 FROM tab2 AS cor0
----
1300
1300
1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT - COUNT( DISTINCT - + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8532
SELECT - COUNT ( DISTINCT - + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE + col0 + - ( - 47 ) / col1 IS NULL
----

query I rowsort
SELECT - col2 * - col1 - + + col2 AS col2 FROM tab2
----
1150
3040
3828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8535
SELECT ALL col0 / - CAST( NULL AS DECIMAL ) + + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL col0 / - CAST ( NULL AS REAL ) + + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 38 + + 58 FROM tab1 AS cor0
----
20

query I rowsort
SELECT DISTINCT col1 * + 5 AS col0 FROM tab2 AS cor0
----
255
335
385

query I rowsort
SELECT DISTINCT - col0 - + col1 * - col2 FROM tab2 cor0
----
1127
3016
3811

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 47 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col1 + + col2 + - + col2 - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8541
SELECT + COUNT( * ) DIV MIN( 45 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8541
SELECT + COUNT ( * ) / MIN ( 45 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT - COUNT( col2 ) * 75 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - COUNT ( col2 ) * 75 FROM tab1
----
-225

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL BETWEEN - col2 AND col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT MAX( + ( - 98 ) ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-8544
SELECT MAX ( + ( - 98 ) ) FROM tab1
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT - COUNT( * ), - 73 - - ( + ( + - 23 ) ) * + - 61 col2 FROM tab2
----
-3
1330

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8545
SELECT - COUNT ( * ), - 73 - - ( + ( + - 23 ) ) * + - 61 col2 FROM tab2
----
-3
1330

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NOT - 95 IS NOT NULL )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT - CAST( + + 60 AS SIGNED ) FROM tab1
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8547
SELECT - CAST ( + + 60 AS INTEGER ) FROM tab1
----
-60
-60
-60

query II rowsort
SELECT col0 AS col0, - ( + col0 ) AS col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8549
SELECT DISTINCT col0, col1, - CAST( NULL AS DECIMAL ) * - - col0 / + ( + + col2 ) * + col2 - - 29 AS col1 FROM tab0
----
9 values hashing to 55e01b616e4c9297fef4a15edf8545fa

skipif mysql # not compatible
query III rowsort label-8549
SELECT DISTINCT col0, col1, - CAST ( NULL AS REAL ) * - - col0 / + ( + + col2 ) * + col2 - - 29 AS col1 FROM tab0
----
9 values hashing to 55e01b616e4c9297fef4a15edf8545fa

query I rowsort
SELECT + - col0 * col0 * - 82 FROM tab2 WHERE NOT - col0 * + - 85 IS NOT NULL
----

query I rowsort
SELECT - + ( ( - + col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8552
SELECT DISTINCT 58, col2 DIV - 11 + + + CAST( + + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
58
54
58
62
58
88

skipif mysql # not compatible
query II rowsort label-8552
SELECT DISTINCT 58, col2 / - 11 + + + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
58
54
58
62
58
88

query I rowsort
SELECT ALL - 16 * + col1 AS col1 FROM tab2 AS cor0
----
-1072
-1232
-816

query II rowsort
SELECT DISTINCT - + col1 AS col0, 32 FROM tab0 AS cor0
----
-1
32
-21
32
-81
32

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - ( + - col0 ) + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT MIN( ALL 24 ) * - 78 FROM tab1
----
-1872

skipif mysql # not compatible
query I rowsort label-8556
SELECT MIN ( ALL 24 ) * - 78 FROM tab1
----
-1872

query I rowsort
SELECT ALL + + 79 FROM tab0 AS cor0 WHERE NOT + col1 * col2 BETWEEN col1 AND - 70
----
79
79
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + col0 * 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( + 15 ) AS col0 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT MIN( 80 ) AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT MIN ( 80 ) AS col1 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + + COUNT( * ) + 62 col1 FROM tab2 cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8562
SELECT + + COUNT ( * ) + 62 col1 FROM tab2 cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8563
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 71 BETWEEN - CAST( NULL AS SIGNED ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8563
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 71 BETWEEN - CAST ( NULL AS INTEGER ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * 54 col1 FROM tab0 AS cor0
----
-1728

query I rowsort
SELECT DISTINCT - + col1 + ( + col0 ) FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL - 24 * + col2 + - - ( + 27 ) * + col1 FROM tab2
----
1119
417
825

query II rowsort
SELECT 48 AS col0, - 2 FROM tab1
----
48
-2
48
-2
48
-2

query I rowsort
SELECT DISTINCT - col2 * - ( col1 ) * + + 9 * - col0 FROM tab2
----
-1774080
-2623050
-485622

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8569
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col1 + - CAST( + 43 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8569
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col1 + - CAST ( + 43 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 + - 31 AS col2 FROM tab1
----
28
37
65

query II rowsort
SELECT DISTINCT + col2, 13 AS col1 FROM tab2
----
23
13
40
13
58
13

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE NULL = + 67 + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT - 17 * + + ( + MAX( DISTINCT col2 ) ) AS col2 FROM tab1 AS cor0
----
-1632

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT - 17 * + + ( + MAX ( DISTINCT col2 ) ) AS col2 FROM tab1 AS cor0
----
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8574
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8574
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 78 + + col2 AS col1 FROM tab0 AS cor0
----
-31
-68
21

query III rowsort
SELECT * FROM tab2 WHERE + 88 - + col0 * col0 IN ( + col1 )
----

query I rowsort
SELECT col2 + + col0 + - col2 * ( + col2 ) FROM tab0
----
-2147
-3
-9605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT ALL CAST( + ( 36 ) AS SIGNED ) * + + col0 + + col2 AS col1 FROM tab0 AS cor0
----
3142
3591
587

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL CAST ( + ( 36 ) AS INTEGER ) * + + col0 + + col2 AS col1 FROM tab0 AS cor0
----
3142
3591
587

query I rowsort
SELECT ALL + ( + - col0 ) * - 56 AS col0 FROM tab1 cor0
----
2856
4760
5096

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col1 + 24 / - col0 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 - - col2 FROM tab1 cor0
----
118
136
192

query II rowsort
SELECT + col1 * + 95, col2 * - - 8 * - + col2 * - + col1 * - + col2 AS col0 FROM tab1 AS cor0
----
1330
-99090432
4465
-118226432
475
-8215160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8583
SELECT - + COUNT( + + col1 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT - + COUNT ( + + col1 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT CAST( 66 AS SIGNED ) - + col2 FROM tab1 AS cor0
----
-2
-30
7

skipif mysql # not compatible
query I rowsort label-8584
SELECT CAST ( 66 AS INTEGER ) - + col2 FROM tab1 AS cor0
----
-2
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT COUNT( ALL + - 87 ) col1 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-8585
SELECT COUNT ( ALL + - 87 ) col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8586
SELECT DISTINCT - MAX( ALL CAST( NULL AS SIGNED ) ) col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8586
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 62 IN ( 93 * + col0 + col2 + + col1 + 86, + col1 * + col1, - 24 + 25, + col1, + - col0 * - col2 * + col2, 86 + + + col0, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8588
SELECT ALL + COUNT( * ) AS col0, + 94 FROM tab0
----
3
94

skipif mysql # not compatible
query II rowsort label-8588
SELECT ALL + COUNT ( * ) AS col0, + 94 FROM tab0
----
3
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab0 WHERE NOT NULL >= - - col0 * + 75 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT DISTINCT col0 DIV ( - 42 ) FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT col0 / ( - 42 ) FROM tab1
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT ALL col1 DIV - + col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL col1 / - + col2 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT DISTINCT + SUM( DISTINCT col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + SUM ( DISTINCT col0 ) FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col1 FROM tab1
----
-90

query I rowsort
SELECT 80 * - - 55 FROM tab0
----
4400
4400
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + 91 - - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + 91 - - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 96 <= + 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT + + MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8597
SELECT + + MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + 22 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8598
SELECT + 22 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col1 FROM tab1 AS cor0
----
33

query I rowsort
SELECT ALL 23 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - MIN( - 0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - MIN ( - 0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT SUM( + 64 ) FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT SUM ( + 64 ) FROM tab1 AS cor0
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col2 FROM tab1 AS cor0 WHERE NOT col0 * + col1 / ( - - col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8604
SELECT - CAST( + 6 AS SIGNED ) DIV + + col0 + - col1 * 10 AS col2 FROM tab2 AS cor0
----
-510
-670
-770

skipif mysql # not compatible
query I rowsort label-8604
SELECT - CAST ( + 6 AS INTEGER ) / + + col0 + - col1 * 10 AS col2 FROM tab2 AS cor0
----
-510
-670
-770

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 + + + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col2 AS col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT ALL col0 * + - col1 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - + 70 + col0 FROM tab1 AS cor0
----
-19
15
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT DISTINCT - CAST( + 64 AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-64

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT - CAST ( + 64 AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT 84 * + SUM( ALL + col2 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
18732

skipif mysql # not compatible
query I rowsort label-8611
SELECT 84 * + SUM ( ALL + col2 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
18732

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8612
SELECT - col0 + col1 AS col1, + 8 + - CAST( NULL AS SIGNED ) FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-8612
SELECT - col0 + col1 AS col1, + 8 + - CAST ( NULL AS INTEGER ) FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8613
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - + MIN( 42 ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + MIN ( 42 ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT ALL + col1 * CAST( + + col0 AS SIGNED ) + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-600
230
832

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + col1 * CAST ( + + col0 AS INTEGER ) + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-600
230
832

query I rowsort
SELECT ALL + col0 * + 15 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8616
SELECT DISTINCT + col0 DIV 45 AS col2 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT + col0 / 45 AS col2 FROM tab1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT - - COUNT( * ) * 36 * + 11 FROM tab0 AS cor0
----
1188

skipif mysql # not compatible
query I rowsort label-8617
SELECT - - COUNT ( * ) * 36 * + 11 FROM tab0 AS cor0
----
1188

query I rowsort
SELECT ALL - + 10 * + 19 FROM tab0 AS cor0
----
-190
-190
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT col0 DIV - ( + - col0 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT col0 / - ( + - col0 ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT ALL + col0 DIV - 5 FROM tab1 cor0
----
-10
-17
-18

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL + col0 / - 5 FROM tab1 cor0
----
-10
-17
-18

query II rowsort
SELECT DISTINCT col0 AS col0, 27 AS col1 FROM tab0 AS cor0
----
15
27
87
27
97
27

query I rowsort
SELECT ALL + 67 * - col0 + ( 76 ) + + col0 AS col0 FROM tab0 AS cor0
----
-5666
-6326
-914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 70 col2, - col0 FROM tab2 AS cor0
----
70
-46
70
-64
70
-75

query I rowsort
SELECT - col2 * + - 44 FROM tab1
----
2596
2992
4224

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 30 BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE - col1 <> + col0
----
23
40
58

query I rowsort
SELECT + col0 * 22 FROM tab0
----
1914
2134
330

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT - - col2 DIV - ( - 53 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - - col2 / - ( - 53 ) FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8630
SELECT DISTINCT COUNT( * ) DIV + + CAST( MAX( DISTINCT 75 ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT COUNT ( * ) / + + CAST ( MAX ( DISTINCT 75 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8631
SELECT - - col1 + + + col1 - - ( - CAST( col0 AS SIGNED ) ), - 81 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
-23
0
-75
-1
3
-1

skipif mysql # not compatible
query II rowsort label-8631
SELECT - - col1 + + + col1 - - ( - CAST ( col0 AS INTEGER ) ), - 81 / ( + col2 ) AS col2 FROM tab1 AS cor0
----
-23
0
-75
-1
3
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> + + col2 + - 45
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT + 33, + 67 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
33
70

skipif mysql # not compatible
query II rowsort label-8633
SELECT + 33, + 67 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
33
70

query I rowsort
SELECT 86 * - col0 FROM tab0 AS cor0
----
-1290
-7482
-8342

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 - + col1 - ( + - col0 ) * + col2 AND NULL
----

query I rowsort
SELECT + col0 * + 83 - + col0 - col0 FROM tab2 AS cor0
----
3726
5184
6075

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT ( col2 ) DIV col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8637
SELECT ( col2 ) / col0 col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT 16 + - 29 + - COUNT( * ) * + - COUNT( * ) * COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT 16 + - 29 + - COUNT ( * ) * + - COUNT ( * ) * COUNT ( * ) FROM tab0
----
14

query I rowsort
SELECT ALL + col0 * - ( - ( + - 86 ) ) + 78 FROM tab1
----
-4308
-7232
-7748

query I rowsort
SELECT ALL - 73 FROM tab2 WHERE NULL > + 29
----

query I rowsort
SELECT 2 * - col0 AS col2 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT + col2 + + + 80 * col2 + - col1 FROM tab2
----
1812
3163
4631

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8644
SELECT DISTINCT - col2 AS col2, + CAST( NULL AS SIGNED ) * - ( + ( + - 21 ) ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-8644
SELECT DISTINCT - col2 AS col2, + CAST ( NULL AS INTEGER ) * - ( + ( + - 21 ) ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > - col1 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT ALL + + COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL + + COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + 92 + - MIN( + col1 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8647
SELECT + 92 + - MIN ( + col1 ) FROM tab0 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8648
SELECT col2 + + col0 DIV + - 84 - + - 53 FROM tab2 AS cor0
----
111
76
93

skipif mysql # not compatible
query I rowsort label-8648
SELECT col2 + + col0 / + - 84 - + - 53 FROM tab2 AS cor0
----
111
76
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + MAX( col1 ) * - COUNT( 21 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + MAX ( col1 ) * - COUNT ( 21 ) FROM tab1
----
-141

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - ( - 36 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT - + MAX( ALL + CAST( col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8651
SELECT - + MAX ( ALL + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT DISTINCT - + col1 DIV - col2 + + 41 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT - + col1 / - col2 + + 41 FROM tab1 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * - col1 + - + ( - col2 ) col1 FROM tab0 AS cor0
----
-3355
-872
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 5 * 64 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT COUNT( - col1 ) * - 92 AS col2 FROM tab2 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-8655
SELECT COUNT ( - col1 ) * - 92 AS col2 FROM tab2 cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT + MAX( DISTINCT - + 63 ) AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-8656
SELECT + MAX ( DISTINCT - + 63 ) AS col1 FROM tab1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8657
SELECT DISTINCT + + col2 DIV - 24 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + + col2 / - 24 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT - MIN( 99 ) + + ( + 48 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT - MIN ( 99 ) + + ( + 48 ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + col2 col1 FROM tab1
----
1440
3264
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab0 WHERE + 92 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8662
SELECT ALL + COUNT( * ) DIV 93 FROM tab1 WHERE NOT col2 IN ( + col1 * 35 )
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL + COUNT ( * ) / 93 FROM tab1 WHERE NOT col2 IN ( + col1 * 35 )
----
0

query I rowsort
SELECT ALL - 66 * 32 AS col2 FROM tab0
----
-2112
-2112
-2112

query I rowsort
SELECT DISTINCT - ( 83 ) * col2 AS col2 FROM tab2
----
-1909
-3320
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL + SUM( + col0 ) + COUNT( ALL - 90 ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8665
SELECT ALL + SUM ( + col0 ) + COUNT ( ALL - 90 ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
188

query I rowsort
SELECT ALL ( - 54 ) AS col1 FROM tab0
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT - col0 + 58 DIV 6 FROM tab1 WHERE NOT col2 * + 72 IS NULL
----
-42
-76
-82

skipif mysql # not compatible
query I rowsort label-8667
SELECT - col0 + 58 / 6 FROM tab1 WHERE NOT col2 * + 72 IS NULL
----
-42
-76
-82

query I rowsort
SELECT ALL col0 * + ( + 85 ) AS col1 FROM tab1
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT DISTINCT - ( CAST( + col1 AS SIGNED ) ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - ( CAST ( + col1 AS INTEGER ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col0 + - 93 AS col0 FROM tab0
----
-6
-78
4

query I rowsort
SELECT + 41 * col2 FROM tab1
----
2419
2788
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + ( + 75 ) * COUNT( * ) col1 FROM tab1
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8673
SELECT + ( + 75 ) * COUNT ( * ) col1 FROM tab1
----
225

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( col2 ) NOT IN ( 18 + + 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 44 * - 71 FROM tab1
----
-3124
-3124
-3124

query III rowsort
SELECT * FROM tab2 WHERE - ( + ( - col1 ) ) * col1 - - col0 BETWEEN + 41 AND + col1 * - 18
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col0 ) >= ( NULL )
----

query I rowsort
SELECT 53 + 77 AS col2 FROM tab1
----
130
130
130

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8680
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8680
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 4 ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8682
SELECT CAST( col2 AS SIGNED ) + col1 DIV + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8682
SELECT CAST ( col2 AS INTEGER ) + col1 / + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL + ( + COUNT( * ) ) - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL + ( + COUNT ( * ) ) - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT DISTINCT col2 * + 63 col2 FROM tab2 AS cor0 WHERE NOT col1 * col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8684
SELECT DISTINCT col2 * + 63 col2 FROM tab2 AS cor0 WHERE NOT col1 * col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8685
SELECT - COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT + col2 <= ( + col0 / col2 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT - COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT + col2 <= ( + col0 / col2 + + col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT DISTINCT CAST( NULL AS SIGNED ) * 24 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 24 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL + 31 * - COUNT( * ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + 31 * - COUNT ( * ) AS col1 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT ALL + CAST( 65 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col2 < col0 + 16
----
65
65
65

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + CAST ( 65 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col2 < col0 + 16
----
65
65
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT ALL + MIN( ( 96 ) ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + MIN ( ( 96 ) ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT ALL + 84 AS col1 FROM tab1 cor0
----
84
84
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 55 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT DISTINCT + CAST( - 6 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT + CAST ( - 6 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ( 4 ) * + col0 FROM tab0 AS cor0
----
348
388
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8694
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + col1 NOT BETWEEN - col2 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8694
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + col1 NOT BETWEEN - col2 * CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL 53 - - COUNT( * ) * 87 FROM tab1 WHERE ( + col2 * + 69 ) IN ( 32 * - col1 )
----
53

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL 53 - - COUNT ( * ) * 87 FROM tab1 WHERE ( + col2 * + 69 ) IN ( 32 * - col1 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT + COUNT( * ) * - - MAX( + col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT + COUNT ( * ) * - - MAX ( + col0 ) FROM tab1
----
273

query I rowsort
SELECT - col1 * + 59 AS col0 FROM tab1
----
-2773
-295
-826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT DISTINCT 45 * + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT 45 * + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col2 * 94 col1 FROM tab1
----
-460224
-471410
-581672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8700
SELECT ALL COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + ( 56 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col0 + + 45 / col1 ) IS NULL
----
-31
-41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL - CAST( AVG ( ALL + 20 ) AS SIGNED ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - CAST ( AVG ( ALL + 20 ) AS INTEGER ) FROM tab2 AS cor0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT DISTINCT - ( - 21 ) DIV col2 + col2 AS col1 FROM tab0 AS cor0
----
12
47
99

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - ( - 21 ) / col2 + col2 AS col1 FROM tab0 AS cor0
----
12
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT + SUM( - ( col1 ) ) * + COUNT( * ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + SUM ( - ( col1 ) ) * + COUNT ( * ) FROM tab0
----
-309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT + CAST( 53 AS SIGNED ) + - MAX( ALL + col0 ) + COUNT( * ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-8706
SELECT + CAST ( 53 AS INTEGER ) + - MAX ( ALL + col0 ) + COUNT ( * ) AS col1 FROM tab0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT 38 + COUNT( * ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-8707
SELECT 38 + COUNT ( * ) FROM tab2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL COUNT( * ) + - - ( + + COUNT( * ) ) * 0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL COUNT ( * ) + - - ( + + COUNT ( * ) ) * 0 FROM tab0
----
3

query I rowsort
SELECT col1 * + col1 + 44 FROM tab2
----
2645
4533
5973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT ALL CAST( NULL AS SIGNED ) + MAX( - 68 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL CAST ( NULL AS INTEGER ) + MAX ( - 68 ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 18 * col1 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT - + MAX( ALL - - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT - + MAX ( ALL - - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT - col0 DIV + + col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-8714
SELECT - col0 / + + col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT ( - col2 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8715
SELECT ( - col2 ) / col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT - col0 * - col2 + col1 + - CAST( - ( + col0 ) AS SIGNED ) * col0 * + 84 FROM tab2 AS cor0
----
178853
346701
476917

skipif mysql # not compatible
query I rowsort label-8716
SELECT - col0 * - col2 + col1 + - CAST ( - ( + col0 ) AS INTEGER ) * col0 * + 84 FROM tab2 AS cor0
----
178853
346701
476917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col1, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT ( 67 ) / col0 FROM tab2 AS cor0 WHERE col1 * - - CAST( NULL AS SIGNED ) / + 20 + 3 = 39
----

skipif mysql # not compatible
query I rowsort label-8718
SELECT ( 67 ) / col0 FROM tab2 AS cor0 WHERE col1 * - - CAST ( NULL AS INTEGER ) / + 20 + 3 = 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT COUNT( - 39 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8719
SELECT COUNT ( - 39 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT - CAST( - 35 AS SIGNED ) * - 86 * - col0 + - 69 AS col0 FROM tab0
----
261801
291901
45081

skipif mysql # not compatible
query I rowsort label-8721
SELECT - CAST ( - 35 AS INTEGER ) * - 86 * - col0 + - 69 AS col0 FROM tab0
----
261801
291901
45081

query I rowsort
SELECT DISTINCT 4 + + ( + col2 ) AS col1 FROM tab0
----
103
14
51

query II rowsort
SELECT col1 - + 36, col2 FROM tab0
----
-15
10
-35
99
45
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * 2 ) NOT BETWEEN ( col0 ) - + col1 AND col1 AND NULL IS NULL
----
64
77
40
75
67
58

query III rowsort
SELECT ALL * FROM tab1 WHERE 8 - col0 * - col0 IS NULL AND NOT + col1 > ( + col2 * + col0 )
----

query I rowsort
SELECT + col2 - + - col2 * - 88 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 43 + - 89 - - 16 * + 65 - col1 FROM tab0 AS cor0
----
913
973
993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT + - CAST( + + CAST( 38 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif mysql # not compatible
query I rowsort label-8728
SELECT + - CAST ( + + CAST ( 38 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - MIN( + col1 ) AS col1 FROM tab1 cor0 WHERE NOT col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - MIN ( + col1 ) AS col1 FROM tab1 cor0 WHERE NOT col1 > NULL
----
NULL

query I rowsort
SELECT ( - - 93 ) AS col0 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + - 82 AS col2 FROM tab2 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT DISTINCT col1 * - 80 * - - 87 * - - col1 + - ( 82 ) + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-3069442
-45664639
-7041

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT col1 * - 80 * - - 87 * - - col1 + - ( 82 ) + col2 / col0 AS col1 FROM tab0 AS cor0
----
-3069442
-45664639
-7041

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + SUM( DISTINCT 27 ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-8733
SELECT + SUM ( DISTINCT 27 ) FROM tab2 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 39 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 39 IS NULL
----
0

query I rowsort
SELECT col2 * + ( col2 * + 87 ) AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 10, col0 * + + col2 / + + 52 )
----

query I rowsort
SELECT ALL + ( + col1 ) + col0 AS col2 FROM tab0
----
108
96
98

query II rowsort
SELECT col0, 36 * 92 FROM tab1
----
51
3312
85
3312
91
3312

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 < NULL )
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT + 12 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT + SUM( DISTINCT + ( + col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT + SUM ( DISTINCT + ( + col2 ) ) FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( + + 89 ) * - col1 < + - col2
----

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( + + 89 ) * - col1 < + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT - - ( col1 ) DIV - col0 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8742
SELECT - - ( col1 ) / - col0 + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + 48 + + COUNT( * ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8743
SELECT + 48 + + COUNT ( * ) FROM tab2 cor0
----
51

query II rowsort
SELECT DISTINCT + col1 AS col0, - 19 FROM tab1 AS cor0
----
14
-19
47
-19
5
-19

query I rowsort
SELECT + 78 * + - ( + 45 ) AS col0 FROM tab2 AS cor0 WHERE ( - 32 ) >= NULL
----

query I rowsort
SELECT DISTINCT - 51 * + col2 FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT + 64 + col0 * + + col1 FROM tab2 AS cor0
----
2410
4992
5089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + CAST( - 53 AS SIGNED ) * col0 * + + col2 >= - col0 )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + CAST ( - 53 AS INTEGER ) * col0 * + + col2 >= - col0 )
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 - - ( - col1 ) FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL COUNT( * ) * - - ( + 15 ) AS col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL COUNT ( * ) * - - ( + 15 ) AS col0 FROM tab1 AS cor0
----
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - 3
----

query I rowsort
SELECT ( col1 ) * - col2 + - - col2 - + col1 FROM tab2 AS cor0
----
-1201
-3117
-3895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * - - col1 col1 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL COUNT( * ) * ( + MAX( - col2 ) ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL COUNT ( * ) * ( + MAX ( - col2 ) ) FROM tab2
----
-69

query I rowsort
SELECT + col1 * + col0 * - + col1 FROM tab0
----
-38367
-97
-98415

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT ALL 33 DIV + + col0 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL 33 / + + col0 AS col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT + MIN( ALL + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8758
SELECT + MIN ( ALL + - col0 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL + SUM( - 43 ) col2 FROM tab2
----
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8759
SELECT ALL + SUM ( - 43 ) col2 FROM tab2
----
-129

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8760
SELECT + 12 AS col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
12
NULL
12
NULL
12
NULL

skipif mysql # not compatible
query II rowsort label-8760
SELECT + 12 AS col2, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
12
NULL
12
NULL
12
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2, + 9, 65 + col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT - - MAX( DISTINCT 77 ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT - - MAX ( DISTINCT 77 ) FROM tab0 AS cor0
----
77

query I rowsort
SELECT + col2 * - - 20 FROM tab2
----
1160
460
800

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT 71 * COUNT( * ) * - SUM( - + 25 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
143775

skipif mysql # not compatible
query I rowsort label-8764
SELECT 71 * COUNT ( * ) * - SUM ( - + 25 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
143775

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL - - CAST( + + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col1 FROM tab0 AS cor0
----
16
16
16

query II rowsort
SELECT ALL + - ( 0 ) AS col1, 12 FROM tab0 AS cor0
----
0
12
0
12
0
12

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + col1
----

query I rowsort
SELECT ALL - col2 + - ( 12 ) FROM tab1 AS cor0
----
-108
-71
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col2 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT 39 + 38 + + col0 FROM tab0
----
164
174
92

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( + - 11 ) AND ( col0 * - col2 )
----

query I rowsort
SELECT ALL ( 12 ) AS col0 FROM tab0
----
12
12
12

query I rowsort
SELECT col2 FROM tab2 WHERE - + col0 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8776
SELECT ALL - col2 col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8776
SELECT ALL - col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT DISTINCT - 26 + 85 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + + MIN( ALL + - 21 ) * - 14 FROM tab2 WHERE + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT + + MIN ( ALL + - 21 ) * - 14 FROM tab2 WHERE + + col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 32 + col2 + 38, col2 * + col1 col1 FROM tab1
----
129
295
138
3196
166
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8780
SELECT CAST( + COUNT( * ) AS SIGNED ) + - - 76 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8780
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - - 76 FROM tab1 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 WHERE 23 IS NULL
----

query I rowsort
SELECT - 80 AS col1 FROM tab1 WHERE - - 1 + + - col0 <> col0
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col0 - col2, ( + + col2 ) )
----

query II rowsort
SELECT DISTINCT 57 - + + col2 - + col2 + + col2 AS col0, - 89 FROM tab1 cor0
----
-11
-89
-2
-89
-39
-89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= col2 * - - 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT DISTINCT + ( + + col1 ) DIV - - col2 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + ( + + col1 ) / - - col2 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-21
-39
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - col0 BETWEEN NULL AND - 83
----

query I rowsort
SELECT 38 * - 27 AS col0 FROM tab2 AS cor0
----
-1026
-1026
-1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT ALL - + 87 * + CAST( - ( - + COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL - + 87 * + CAST ( - ( - + COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND - + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + + MIN( ALL + col2 ) - + 55 * MAX( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
-4102

skipif mysql # not compatible
query I rowsort label-8791
SELECT + + MIN ( ALL + col2 ) - + 55 * MAX ( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
-4102

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT - MAX( DISTINCT - ( - col1 ) ) AS col0 FROM tab1 WHERE ( + col1 * - 22 - - - 24 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT - MAX ( DISTINCT - ( - col1 ) ) AS col0 FROM tab1 WHERE ( + col1 * - 22 - - - 24 IS NULL )
----
NULL

query I rowsort
SELECT - 9 * + ( col2 ) AS col2 FROM tab2
----
-207
-360
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL + COUNT( * ) + - 92 AS col1 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
-89

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + COUNT ( * ) + - 92 AS col1 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
-89

query I rowsort
SELECT 2 / 74 FROM tab1 WHERE NOT NULL = ( ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8796
SELECT ALL * FROM tab0 WHERE NOT 77 / 30 <> - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8796
SELECT ALL * FROM tab0 WHERE NOT 77 / 30 <> - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT col0 * 24 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT col0 * 24 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8799
SELECT ALL + - 18 * - - COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 WHERE NOT - 28 - + - col2 IS NULL
----
-54
3

skipif mysql # not compatible
query II rowsort label-8799
SELECT ALL + - 18 * - - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 28 - + - col2 IS NULL
----
-54
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 90 col2 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query II rowsort label-8801
SELECT DISTINCT + 14 * - - 71 * - 42 AS col2, + COUNT( * ) * 44 AS col0 FROM tab1
----
-41748
132

skipif mysql # not compatible
query II rowsort label-8801
SELECT DISTINCT + 14 * - - 71 * - 42 AS col2, + COUNT ( * ) * 44 AS col0 FROM tab1
----
-41748
132

query II rowsort
SELECT ALL col1 AS col0, col0 + 95 - - 97 + - 96 AS col0 FROM tab0
----
1
193
21
183
81
111

query I rowsort
SELECT + ( + - 20 ) FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 68 - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 29 col2, + 90 FROM tab2 AS cor0
----
29
90
29
90
29
90

query II rowsort
SELECT ALL + col1, ( + - 2 ) FROM tab2 AS cor0
----
51
-2
67
-2
77
-2

query I rowsort
SELECT DISTINCT + 56 * + ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 3 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8810
SELECT ( + - 44 ) AS col1, CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8810
SELECT ( + - 44 ) AS col1, CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT - 52 DIV - + col0 + - + col0 AS col2 FROM tab0 cor0
----
-12
-87
-97

skipif mysql # not compatible
query I rowsort label-8812
SELECT - 52 / - + col0 + - + col0 AS col2 FROM tab0 cor0
----
-12
-87
-97

query I rowsort
SELECT ALL col2 + - + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + + - col0 - - + col1 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1155
3053
3820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT DISTINCT + ( col0 ) + CAST( col2 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + ( col0 ) + CAST ( col2 AS INTEGER ) FROM tab2
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col2 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT DISTINCT + col1 DIV - 50 * + ( + + col1 ) * + + col0 + - - col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + col1 / - 50 * + ( + + col1 ) * + + col0 + - - col2 FROM tab1
----
59
68
96

query II rowsort
SELECT col0 + + 24 AS col2, col2 FROM tab0
----
111
10
121
99
39
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT COUNT( * ) + + COUNT( DISTINCT - col1 ) * 83 AS col0 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-8819
SELECT COUNT ( * ) + + COUNT ( DISTINCT - col1 ) * 83 AS col0 FROM tab1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT 13 + - COUNT( 82 ) * 88 FROM tab1
----
-251

skipif mysql # not compatible
query I rowsort label-8820
SELECT 13 + - COUNT ( 82 ) * 88 FROM tab1
----
-251

query I rowsort
SELECT + 31 * col1 + + + col1 AS col2 FROM tab0
----
2592
32
672

query I rowsort
SELECT + - col2 + col2 * + - 46 AS col2 FROM tab1 AS cor0
----
-2773
-3196
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT COUNT( * ) * - - 71 + 35 FROM tab1 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT COUNT ( * ) * - - 71 + 35 FROM tab1 AS cor0
----
248

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 23 * 35 <> + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8825
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT DISTINCT col1 DIV + 9 + - col1 AS col2 FROM tab1
----
-13
-42
-5

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT col1 / + 9 + - col1 AS col2 FROM tab1
----
-13
-42
-5

query I rowsort
SELECT DISTINCT ( 37 ) * - col1 + col1 * + col2 + - - col1 AS col2 FROM tab1
----
115
1504
840

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL - 93 + + COUNT( * ) col0 FROM tab0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8828
SELECT ALL - 93 + + COUNT ( * ) col0 FROM tab0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT - - col1 + + 57 DIV col0 * col0 FROM tab0 cor0 WHERE 67 + col0 IS NOT NULL
----
1
126
21

skipif mysql # not compatible
query I rowsort label-8829
SELECT - - col1 + + 57 / col0 * col0 FROM tab0 cor0 WHERE 67 + col0 IS NOT NULL
----
1
126
21

query I rowsort
SELECT ALL - - 40 FROM tab0 cor0
----
40
40
40

query II rowsort
SELECT DISTINCT + + col2 AS col0, + 71 AS col0 FROM tab1 cor0
----
59
71
68
71
96
71

query I rowsort
SELECT ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - - col0 IS NOT NULL
----

query I rowsort
SELECT + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT CAST( NULL AS SIGNED ) * - 30 * + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT CAST ( NULL AS INTEGER ) * - 30 * + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT MIN( DISTINCT + 17 ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-8835
SELECT MIN ( DISTINCT + 17 ) AS col2 FROM tab2
----
17

query I rowsort
SELECT DISTINCT col1 * - 94 FROM tab0
----
-1974
-7614
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT - 94 DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8837
SELECT - 94 / col1 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT + ( - - CAST( NULL AS SIGNED ) ) / + - 20 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT + ( - - CAST ( NULL AS INTEGER ) ) / + - 20 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 83 * + - col2 FROM tab2
----
-1909
-3320
-4814

query I rowsort
SELECT col2 * + + ( col1 ) FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT ALL COUNT( col2 ) DIV + 26 FROM tab1 WHERE NOT + col2 >= - 96 * col1
----
0

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL COUNT ( col2 ) / + 26 FROM tab1 WHERE NOT + col2 >= - 96 * col1
----
0

query II rowsort
SELECT + col1 AS col0, + ( - 72 ) + - 27 AS col0 FROM tab0 AS cor0
----
1
-99
21
-99
81
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 22 / - 93 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT - 77 FROM tab0 AS cor0 WHERE col2 + + CAST( NULL AS SIGNED ) IS NULL
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-8845
SELECT - 77 FROM tab0 AS cor0 WHERE col2 + + CAST ( NULL AS INTEGER ) IS NULL
----
-77
-77
-77

query II rowsort
SELECT + 11 AS col1, - col1 * 95 AS col1 FROM tab2
----
11
-4845
11
-6365
11
-7315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + + col0 col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT - MIN( ALL + ( - col0 ) ) AS col0 FROM tab0 WHERE + col1 + - 96 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT - MIN ( ALL + ( - col0 ) ) AS col0 FROM tab0 WHERE + col1 + - 96 = NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 + col1 )
----

query I rowsort
SELECT + - AVG ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE col1 * + 25 NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - ( - col2 ) col1 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT + - col2 + - - 2 AS col1 FROM tab0 AS cor0
----
-45
-8
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55, - col0 col2 FROM tab0 WHERE + + 13 IS NOT NULL
----
55
-15
55
-87
55
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT MAX( - col0 ) FROM tab0 AS cor0 WHERE NOT + col0 * - 32 * + CAST( NULL AS SIGNED ) * - 32 IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8855
SELECT MAX ( - col0 ) FROM tab0 AS cor0 WHERE NOT + col0 * - 32 * + CAST ( NULL AS INTEGER ) * - 32 IS NOT NULL
----
-15

query I rowsort
SELECT - col1 * 99 FROM tab2 cor0
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT + SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8857
SELECT + SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT + ( + - col0 ) * + 81 FROM tab1 AS cor0
----
-4131
-6885
-7371

query I rowsort
SELECT ALL 61 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * 95 + - 99 AS col1 FROM tab2 AS cor0
----
-2284
-3899
-5609

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + + 7 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL - AVG ( - CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8863
SELECT ALL - AVG ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL

query II rowsort
SELECT - 29 AS col1, + col2 - - 45 FROM tab1
----
-29
104
-29
113
-29
141

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT NULL <> col2
----

query I rowsort
SELECT 73 * col1 AS col1 FROM tab0
----
1533
5913
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT - 22 * col0 DIV + col1 AS col1 FROM tab0
----
-2134
-4
-91

skipif mysql # not compatible
query I rowsort label-8867
SELECT - 22 * col0 / + col1 AS col1 FROM tab0
----
-2134
-4
-91

query I rowsort
SELECT 23 - + col0 FROM tab1 AS cor0 WHERE NOT - col1 IN ( + + col2 )
----
-28
-62
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT - - 65 DIV 7 FROM tab0 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8870
SELECT - - 65 / 7 FROM tab0 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL MAX( - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL MAX ( - - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT DISTINCT + 74 col1, - MIN( ALL - col2 ) + 47 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
74
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8873
SELECT DISTINCT + 74 col1, - MIN ( ALL - col2 ) + 47 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
74
108

query I rowsort
SELECT - ( + col0 ) * + 73 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT - SUM( 74 ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8875
SELECT - SUM ( 74 ) FROM tab2 AS cor0
----
-222

query I rowsort
SELECT ALL - col1 + + - col0 AS col2 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT DISTINCT - 61 DIV - + COUNT( * ) + - - 10 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT - 61 / - + COUNT ( * ) + - - 10 FROM tab2
----
30

query I rowsort
SELECT - col0 + 3 AS col1 FROM tab2
----
-43
-61
-72

query I rowsort
SELECT 64 + - ( - col0 ) + - 35 AS col1 FROM tab1
----
114
120
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8880
SELECT * FROM tab0 WHERE - col2 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8880
SELECT * FROM tab0 WHERE - col2 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT MAX( DISTINCT - col0 ), COUNT( * ) + - 11 AS col2 FROM tab1
----
-51
-8

skipif mysql # not compatible
query II rowsort label-8881
SELECT MAX ( DISTINCT - col0 ), COUNT ( * ) + - 11 AS col2 FROM tab1
----
-51
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT - 67 * + 58 + COUNT( * ) * - SUM( DISTINCT + 21 ) AS col2 FROM tab1 cor0
----
-3949

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT - 67 * + 58 + COUNT ( * ) * - SUM ( DISTINCT + 21 ) AS col2 FROM tab1 cor0
----
-3949

query I rowsort
SELECT DISTINCT + col2 * - + 36 AS col2 FROM tab0 AS cor0
----
-1692
-3564
-360

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8884
SELECT ALL + col2 DIV + col0, + 63 + - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0
NULL
1
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-8884
SELECT ALL + col2 / + col0, + 63 + - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0
NULL
1
NULL
3
NULL

query I rowsort
SELECT + col2 - - ( - - 48 ) AS col0 FROM tab0 AS cor0
----
147
58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL - MIN( DISTINCT + 56 ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - MIN ( DISTINCT + 56 ) FROM tab2
----
-56

query I rowsort
SELECT col1 - + 58 FROM tab1
----
-11
-44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT - 27 + + 12 >= - col2
----
1

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT - 27 + + 12 >= - col2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 69 AS col1, col2 col2 FROM tab0 AS cor0
----
69
10
69
47
69
99

query I rowsort
SELECT ALL - 0 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + - col1 col1, col2 FROM tab0
----
-210
10
-3807
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + + COUNT( * ) col0 FROM tab1 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8893
SELECT + + COUNT ( * ) col0 FROM tab1 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT + 87 * - + MIN( ALL + col0 ) AS col0 FROM tab1
----
-4437

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + 87 * - + MIN ( ALL + col0 ) AS col0 FROM tab1
----
-4437

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL - COUNT( ALL - 45 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8895
SELECT ALL - COUNT ( ALL - 45 ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - SUM( DISTINCT + 53 ) AS col1 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-8896
SELECT - SUM ( DISTINCT + 53 ) AS col1 FROM tab0
----
-53

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - 64 + + + ( + 77 ) IS NULL
----

query I rowsort
SELECT + 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL col1 * - - 7 FROM tab2 AS cor0
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL > + 55
----
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL > + 55
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8902
SELECT ALL + - CAST( NULL AS DECIMAL ) * - 66 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + - CAST ( NULL AS REAL ) * - 66 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 * 30 * col1 = - 27 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT + + 75 / CAST( NULL AS SIGNED ) * + MAX( DISTINCT - col2 ) + + - 65 + 32 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8904
SELECT + + 75 / CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT - col2 ) + + - 65 + 32 col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - 40 AS col0, col1 + + col2 FROM tab2
----
-40
117
-40
125
-40
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL 38 + - SUM( - + col1 ) * 85 AS col1 FROM tab1
----
5648

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL 38 + - SUM ( - + col1 ) * 85 AS col1 FROM tab1
----
5648

query I rowsort
SELECT DISTINCT + 54 + + - ( - - col2 ) FROM tab0
----
-45
44
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 73 - + col1 col1 FROM tab2
----
3307
4595
5408

query I rowsort
SELECT DISTINCT col0 + - col1 + - 99 + 58 FROM tab0
----
-107
25
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + SUM( ALL + + 52 ) + 98 FROM tab2 AS cor0
----
254

skipif mysql # not compatible
query I rowsort label-8911
SELECT + SUM ( ALL + + 52 ) + 98 FROM tab2 AS cor0
----
254

query II rowsort
SELECT DISTINCT col0 * 24 * col0 * col2 AS col1, - col0 AS col2 FROM tab2 cor0
----
1168032
-46
3932160
-64
7830000
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL + + COUNT( * ) * COUNT( * ) - 56 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + + COUNT ( * ) * COUNT ( * ) - 56 FROM tab0 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT ALL MAX( DISTINCT + 56 ) DIV - - 69 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL MAX ( DISTINCT + 56 ) / - - 69 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col0 AS col1, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - - 81 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL + ( COUNT( * ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT COUNT( * ) FROM tab2 WHERE NOT ( NOT ( - - 74 ) > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( NOT ( - - 74 ) > NULL )
----
0

query I rowsort
SELECT - + 54 AS col0 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT COUNT( DISTINCT - - col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8921
SELECT COUNT ( DISTINCT - - col1 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT ALL - 16 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL - 16 / col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 79 AS col1, col1 AS col2 FROM tab1
----
79
14
79
47
79
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL + SUM( + col1 ) FROM tab1 WHERE NOT + 9 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL + SUM ( + col1 ) FROM tab1 WHERE NOT + 9 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT COUNT( CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8926
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT - col1 + 52 AS col0 FROM tab1 AS cor0
----
38
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT col2 + - col1 DIV + - col1 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-8928
SELECT col2 + - col1 / + - col1 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT + 3 DIV col2 * - 11 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8929
SELECT + 3 / col2 * - 11 AS col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + 99 IS NULL
----

query I rowsort
SELECT ALL - col1 * - col1 * - 64 * - - col2 + 22 FROM tab0
----
-19735466
-282218
-6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT + CAST( + col2 AS SIGNED ) * - 35 FROM tab1
----
-2065
-2380
-3360

skipif mysql # not compatible
query I rowsort label-8932
SELECT + CAST ( + col2 AS INTEGER ) * - 35 FROM tab1
----
-2065
-2380
-3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT - COUNT( * ) - - CAST( - 84 AS SIGNED ) - ( + 3 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8933
SELECT - COUNT ( * ) - - CAST ( - 84 AS INTEGER ) - ( + 3 ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT + + 16 + - col1 FROM tab0 AS cor0
----
-5
-65
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT MIN( - - 68 ) - 99 AS col1 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT MIN ( - - 68 ) - 99 AS col1 FROM tab1 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 34 * + col0 col1 FROM tab2 cor0
----
1615
2253
2617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - + col1 col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + + 74 AND NULL
----

query I rowsort
SELECT - 92 * - 62 + - col1 FROM tab1 AS cor0
----
5657
5690
5699

query I rowsort
SELECT DISTINCT - 53 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-104
-138
-144

query I rowsort
SELECT ALL - 3 * col1 FROM tab1 cor0
----
-141
-15
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT - COUNT( DISTINCT - 66 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT - COUNT ( DISTINCT - 66 ) AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8943
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( - - ( - + col0 ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8943
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( - - ( - + col0 ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 + 64 col1 FROM tab0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT + COUNT( * ) * + 9 AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + COUNT ( * ) * + 9 AS col2 FROM tab0
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + 52 NOT BETWEEN NULL AND - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ( + MIN( DISTINCT - ( col0 ) ) ) * COUNT( * ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-8947
SELECT ( + MIN ( DISTINCT - ( col0 ) ) ) * COUNT ( * ) FROM tab0
----
-291

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + COUNT( * ) * + 5 + - SUM( + + col2 ) AS col2 FROM tab2 WHERE ( NOT ( - + 15 / + 66 * - 1 IS NULL ) )
----
-106

skipif mysql # not compatible
query I rowsort label-8949
SELECT + COUNT ( * ) * + 5 + - SUM ( + + col2 ) AS col2 FROM tab2 WHERE ( NOT ( - + 15 / + 66 * - 1 IS NULL ) )
----
-106

query I rowsort
SELECT DISTINCT 14 + - - 79 AS col1 FROM tab1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8951
SELECT 28 DIV - - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8951
SELECT 28 / - - COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ( - 77 ) AS col0 FROM tab1
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT + MIN( ALL - 57 ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8953
SELECT + MIN ( ALL - 57 ) AS col0 FROM tab0 AS cor0
----
-57

query II rowsort
SELECT DISTINCT col0 AS col1, 1 * + 7 AS col1 FROM tab1
----
51
7
85
7
91
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8955
SELECT ALL 28, + ( - - col2 ) + + + col1 FROM tab2 AS cor0 WHERE ( NOT NULL IN ( - col1 * + 61, 88, - - col2, + col0 + - 98 + - + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query II rowsort label-8955
SELECT ALL 28, + ( - - col2 ) + + + col1 FROM tab2 AS cor0 WHERE ( NOT NULL IN ( - col1 * + 61, 88, - - col2, + col0 + - 98 + - + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT ALL 12 DIV + COUNT( * ) col2 FROM tab2 cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8956
SELECT ALL 12 / + COUNT ( * ) col2 FROM tab2 cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT ALL - - col1 DIV - + 47 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - - col1 / - + 47 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + - 22 AS col2 FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL - COUNT( * ) + - - 13 AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - COUNT ( * ) + - - 13 AS col1 FROM tab2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL + CAST( + - 8 AS SIGNED ) AS col2 FROM tab2
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + CAST ( + - 8 AS INTEGER ) AS col2 FROM tab2
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col1 + + - col2 * - col0 / - + col2 AS col2, 6 col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL col1 + - 13 + + col2 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
104
112
61

query I rowsort
SELECT - 67 + + - col2 + - 51 FROM tab1 AS cor0
----
-177
-186
-214

query I rowsort
SELECT ALL + + 4 + + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL 39 * + col1 AS col1 FROM tab0
----
3159
39
819

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - - COUNT( * ) + + - 55 * 73 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-4006

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8967
SELECT - - COUNT ( * ) + + - 55 * 73 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-4006

query I rowsort
SELECT DISTINCT - 94 - + + 35 AS col1 FROM tab2 AS cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8969
SELECT * FROM tab0 AS cor0 WHERE col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8969
SELECT * FROM tab0 AS cor0 WHERE col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT - ( COUNT( * ) ) * + COUNT( * ) + MAX( ALL 47 ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8970
SELECT - ( COUNT ( * ) ) * + COUNT ( * ) + MAX ( ALL 47 ) AS col2 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - - 50 * - MIN( ALL + - col0 ) FROM tab0 AS cor0
----
4850

skipif mysql # not compatible
query I rowsort label-8971
SELECT - - 50 * - MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
4850

query I rowsort
SELECT col1 - - ( + 34 ) FROM tab2
----
101
111
85

query I rowsort
SELECT - 68 * - col0 - + + col1 FROM tab1
----
3454
5775
6141

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT + col0 DIV + col1 - + col0 AS col1 FROM tab0
----
-15
-83
0

skipif mysql # not compatible
query I rowsort label-8974
SELECT + col0 / + col1 - + col0 AS col1 FROM tab0
----
-15
-83
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8975
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL col0 * - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 + col2 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
158
167
195

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL + - 65 * + + 8 - - COUNT( * ) FROM tab2 AS cor0
----
-517

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + - 65 * + + 8 - - COUNT ( * ) FROM tab2 AS cor0
----
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT + + COUNT( ALL + + col0 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT + + COUNT ( ALL + + col0 ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT - + SUM( col2 ) col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8981
SELECT - + SUM ( col2 ) col0 FROM tab2 cor0
----
-121

query I rowsort
SELECT DISTINCT - col1 * + + 87 FROM tab1 AS cor0
----
-1218
-4089
-435

query I rowsort
SELECT + 3 * + - col0 * + col0 + 82 AS col2 FROM tab0 cor0
----
-22625
-28145
-593

query I rowsort
SELECT ALL - - ( - 88 ) FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT 70 + + col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT + + SUM( 88 ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-8986
SELECT + + SUM ( 88 ) FROM tab1 AS cor0
----
264

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 99 / + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT DISTINCT - 50 + - col0 DIV + col0 + + 52 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT - 50 + - col0 / + col0 + + 52 AS col1 FROM tab0
----
1

query I rowsort
SELECT col2 + - col0 + + 40 FROM tab2
----
16
17
23

query I rowsort
SELECT - + 75 + col1 AS col2 FROM tab1 cor0
----
-28
-61
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT + CAST( - col1 AS SIGNED ) * col1 col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8991
SELECT + CAST ( - col1 AS INTEGER ) * col1 col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + + COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8992
SELECT + + COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query III rowsort label-8993
SELECT ALL COUNT( * ) AS col2, COUNT( * ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3
-3

skipif mysql # not compatible
query III rowsort label-8993
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 57 col2 FROM tab2
----
-6
10
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT CAST( NULL AS SIGNED ) * MAX( 64 ) + + COUNT( * ) + CAST( NULL AS SIGNED ) * + 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT CAST ( NULL AS INTEGER ) * MAX ( 64 ) + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL + col1 + + - ( - col1 ) + col1 AS col2 FROM tab2
----
153
201
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT 76 / CAST( NULL AS SIGNED ) / + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT 76 / CAST ( NULL AS INTEGER ) / + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - - 88 col0 FROM tab0 AS cor0
----
-9
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL 94 - COUNT( * ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL 94 - COUNT ( * ) FROM tab0 AS cor0
----
91

query I rowsort
SELECT ALL - 37 - col2 + col2 + - 24 FROM tab0 cor0
----
-61
-61
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 52 < + col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT DISTINCT - 89 col0 FROM tab0 AS cor0 WHERE NOT + ( - + col0 ) + CAST( + + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9002
SELECT DISTINCT - 89 col0 FROM tab0 AS cor0 WHERE NOT + ( - + col0 ) + CAST ( + + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL - + MAX( ALL - - col2 ) AS col2 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - + MAX ( ALL - - col2 ) AS col2 FROM tab2 cor0
----
-58

query II rowsort
SELECT col2 AS col1, - 82 AS col0 FROM tab2
----
23
-82
40
-82
58
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT SUM( 91 ) AS col0 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-9005
SELECT SUM ( 91 ) AS col0 FROM tab2
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9006
SELECT DISTINCT + COUNT( * ) AS col0, MIN( + col1 ) DIV + + COUNT( * ) FROM tab1
----
3
1

skipif mysql # not compatible
query II rowsort label-9006
SELECT DISTINCT + COUNT ( * ) AS col0, MIN ( + col1 ) / + + COUNT ( * ) FROM tab1
----
3
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9007
SELECT DISTINCT 89 AS col1, COUNT( * ) FROM tab0
----
89
3

skipif mysql # not compatible
query II rowsort label-9007
SELECT DISTINCT 89 AS col1, COUNT ( * ) FROM tab0
----
89
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9008
SELECT COUNT( * ) DIV 77 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT COUNT ( * ) / 77 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 86 / - col1 IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * + - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - COUNT( * ) * + 17 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT - COUNT ( * ) * + 17 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 94 * col0 AS col1 FROM tab0
----
-1410
-8178
-9118

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9015
SELECT ( - COUNT( * ) ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9015
SELECT ( - COUNT ( * ) ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - col1 * 38 FROM tab0 AS cor0
----
-3078
-38
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT + ( MAX( ALL + - 47 ) ) AS col0 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9017
SELECT + ( MAX ( ALL + - 47 ) ) AS col0 FROM tab0 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT col0 * col2 DIV - 15 AS col1 FROM tab2
----
-170
-290
-70

skipif mysql # not compatible
query I rowsort label-9018
SELECT col0 * col2 / - 15 AS col1 FROM tab2
----
-170
-290
-70

query II rowsort
SELECT 1 AS col1, + 84 FROM tab0
----
1
84
1
84
1
84

query I rowsort
SELECT DISTINCT col1 * + + 92 FROM tab1
----
1288
4324
460

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL - COUNT( * ) + - + 29 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL - COUNT ( * ) + - + 29 FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT COUNT( DISTINCT col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9022
SELECT COUNT ( DISTINCT col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT + MAX( ALL + - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9023
SELECT + MAX ( ALL + - col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT + - col2 + - 35 FROM tab0 cor0
----
-134
-45
-82

query I rowsort
SELECT col1 + - col0 * + + col2 AS col1 FROM tab2
----
-1007
-2483
-4283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 3 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col1 * + 53 + - - col2 col1 FROM tab2 WHERE - + 21 IS NOT NULL
----
-124315
-261144
-266267

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
24

query I rowsort
SELECT - 57 * + 64 - 12 FROM tab0 AS cor0
----
-3660
-3660
-3660

query I rowsort
SELECT - col0 * - - 75 * + + col1 FROM tab0 AS cor0
----
-137025
-7275
-91125

query II rowsort
SELECT DISTINCT - 17, + col2 * - ( 79 ) AS col2 FROM tab1 AS cor0
----
-17
-4661
-17
-5372
-17
-7584

onlyif mysql # aggregate syntax: 
query II rowsort label-9033
SELECT ALL - COUNT( * ) AS col0, + 33 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
99

skipif mysql # not compatible
query II rowsort label-9033
SELECT ALL - COUNT ( * ) AS col0, + 33 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
99

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE col0 <> NULL
----

query I rowsort
SELECT col2 * + 73 FROM tab1 AS cor0
----
4307
4964
7008

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT 62, COUNT( * ) AS col0 FROM tab0 AS cor0
----
62
3

skipif mysql # not compatible
query II rowsort label-9036
SELECT 62, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
62
3

query II rowsort
SELECT + col2, + 55 + - 21 FROM tab2 AS cor0
----
23
34
40
34
58
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 col0, col1 + - 51 FROM tab0 AS cor0
----
70
-30
70
-50
70
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT col0 * - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9039
SELECT col0 * - col1 / + col1 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT ALL - + 29 DIV - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - + 29 / - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL COUNT( * ) * - 61 AS col2 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL COUNT ( * ) * - 61 AS col2 FROM tab1
----
-183

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( 94 ) - - col0 IN ( - col2, col2 * + col0 * + + 17 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 31 / 60 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9044
SELECT + MIN( DISTINCT 34 ) / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT + MIN ( DISTINCT 34 ) / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( - col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col0 FROM tab2 AS cor0 WHERE NULL < + col1 / + - 87 OR NOT ( NOT + col0 IS NOT NULL )
----
82

query I rowsort
SELECT ALL 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT 60 DIV + + col1 FROM tab0 AS cor0
----
0
2
60

skipif mysql # not compatible
query I rowsort label-9048
SELECT 60 / + + col1 FROM tab0 AS cor0
----
0
2
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL + MIN( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + MIN ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL - MAX( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL - MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ( - 73 ) + - 64 AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + col0 ) * col1 * col2 AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 42 + - 46 + - col0 * + 77 < + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - 49 + COUNT( * ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9054
SELECT - 49 + COUNT ( * ) FROM tab0 AS cor0
----
-46

query III rowsort
SELECT * FROM tab0 WHERE + + 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + + ( + col1 ) FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT COUNT( * ) * + 57 * - 59 * COUNT( * ) + - + 84 AS col0 FROM tab2
----
-30351

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT COUNT ( * ) * + 57 * - 59 * COUNT ( * ) + - + 84 AS col0 FROM tab2
----
-30351

query I rowsort
SELECT ALL + 55 * - ( - - col1 ) FROM tab2
----
-2805
-3685
-4235

query I rowsort
SELECT + 2 FROM tab2 WHERE NULL IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT - + MAX( col2 ) AS col1 FROM tab0 WHERE - + col1 IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-9060
SELECT - + MAX ( col2 ) AS col1 FROM tab0 WHERE - + col1 IS NOT NULL
----
-99

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE - 56 < + - 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9062
SELECT + col1 + - col2 / + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT + col1 + - col2 / + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9063
SELECT DISTINCT + col1 + col1 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT + col1 + col1 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + 21 + - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9065
SELECT + 92 FROM tab2 WHERE NULL > ( + CAST( - col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-9065
SELECT + 92 FROM tab2 WHERE NULL > ( + CAST ( - col1 AS REAL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9066
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + col2 AS col0, 60 FROM tab2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-9066
SELECT DISTINCT + CAST ( NULL AS REAL ) - + col2 AS col0, 60 FROM tab2
----
NULL
60

query I rowsort
SELECT ALL col1 * + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - 68
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9069
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL + 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT ALL - ( CAST( col0 AS SIGNED ) ) * - col1 col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT ALL - ( CAST ( col0 AS INTEGER ) ) * - col1 col1 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT DISTINCT - col0 * - - col1 * + col2 AS col0, - col2 + - col1 FROM tab0 AS cor0
----
-18270
-31
-57105
-128
-9603
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT - SUM( ALL 88 ) col2 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9073
SELECT - SUM ( ALL 88 ) col2 FROM tab0 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT MAX( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9074
SELECT MAX ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + COUNT( DISTINCT + 32 ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9075
SELECT + COUNT ( DISTINCT + 32 ) col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * - col0 * 1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT DISTINCT col2 DIV - 47 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT col2 / - 47 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9079
SELECT DISTINCT col0 AS col2, CAST( - 57 AS SIGNED ) * - - 57 FROM tab2
----
46
-3249
64
-3249
75
-3249

skipif mysql # not compatible
query II rowsort label-9079
SELECT DISTINCT col0 AS col2, CAST ( - 57 AS INTEGER ) * - - 57 FROM tab2
----
46
-3249
64
-3249
75
-3249

query II rowsort
SELECT ALL col0 AS col1, col2 + + + col0 AS col1 FROM tab1
----
51
147
85
144
91
159

query I rowsort
SELECT DISTINCT + col1 * - 50 AS col1 FROM tab0 WHERE NOT NULL IN ( - + col1, + 32, + col2 + + col2, - 78 * - - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT + COUNT( * ), - 52 col0 FROM tab2
----
3
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9082
SELECT + COUNT ( * ), - 52 col0 FROM tab2
----
3
-52

query I rowsort
SELECT ALL 9 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
9
9
9

query I rowsort
SELECT - 29 * - col1 AS col0 FROM tab0
----
2349
29
609

query I rowsort
SELECT DISTINCT + col2 * col0 * 22 + - 33 AS col2 FROM tab1 AS cor0
----
107679
110297
136103

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL COUNT( DISTINCT - + 60 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL COUNT ( DISTINCT - + 60 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT + col2 AS col2, 91 AS col1 FROM tab2 AS cor0
----
23
91
40
91
58
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9088
SELECT DISTINCT ( 91 ) + + CAST( - MIN( - + col0 ) AS SIGNED ) FROM tab1
----
182

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT ( 91 ) + + CAST ( - MIN ( - + col0 ) AS INTEGER ) FROM tab1
----
182

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + 74
----

query I rowsort
SELECT DISTINCT + + 42 AS col1 FROM tab0 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-9091
SELECT - - 0 DIV - 24 AS col2, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-9091
SELECT - - 0 / - 24 AS col2, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT + col0 DIV - 63 col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9092
SELECT + col0 / - 63 col0 FROM tab0 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 20 col2 FROM tab0
----
107
117
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT - MIN( ALL col2 ) col2 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT - MIN ( ALL col2 ) col2 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - col1 * + 98 + + - ( + + 95 ) FROM tab0
----
-193
-2153
-8033

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NULL NOT BETWEEN - col2 * + col0 - - col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT DISTINCT COUNT( * ) * 1 - - + 53 AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT COUNT ( * ) * 1 - - + 53 AS col1 FROM tab1
----
56

query I rowsort
SELECT DISTINCT + 38 - col2 + - 39 + + 60 AS col1 FROM tab0
----
-40
12
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9099
SELECT DISTINCT - - 37 + - - MIN( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE CAST( - - col0 AS SIGNED ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT - - 37 + - - MIN ( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE CAST ( - - col0 AS INTEGER ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL COUNT( * ) * + 92 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL COUNT ( * ) * + 92 FROM tab1 AS cor0
----
276

query I rowsort
SELECT - + col1 * col2 + + + col1 + + col0 FROM tab0 AS cor0
----
-1
-102
-3711

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT MAX( col0 ) * - 37 AS col2 FROM tab1
----
-3367

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT MAX ( col0 ) * - 37 AS col2 FROM tab1
----
-3367

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 * + col1 + ( 72 + 12 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 35 AS col0 FROM tab1 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT ALL col2 - + ( col1 - - col0 ) FROM tab0 WHERE NOT + col2 IS NULL
----
-49
-98
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT MIN( ALL - 33 ) - SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT MIN ( ALL - 33 ) - SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 + - 50 FROM tab1
----
-3
-36
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT ALL - 17 DIV 54 - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL - 17 / 54 - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT 74 - COUNT( * ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-9109
SELECT 74 - COUNT ( * ) AS col1 FROM tab0
----
71

query I rowsort
SELECT + col0 FROM tab2 WHERE col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col0 / - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col0 ) AND - col1 * col2
----

query I rowsort
SELECT DISTINCT 96 * - 28 + + col0 AS col2 FROM tab0 WHERE ( + col0 ) > - col2
----
-2591
-2601
-2673

query I rowsort
SELECT ALL + ( - col1 ) + col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * col1 BETWEEN ( 58 * col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9116
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN col0 * + col0 - col0 * + ( col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9116
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN col0 * + col0 - col0 * + ( col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 8 BETWEEN + col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT + COUNT( * ) + COUNT( + col0 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9118
SELECT + COUNT ( * ) + COUNT ( + col0 ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT + col1 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT + col1 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 + 65 FROM tab0
----
13
13
13

query I rowsort
SELECT 71 + 17 FROM tab1
----
88
88
88

query I rowsort
SELECT DISTINCT 21 + col0 AS col2 FROM tab0
----
108
118
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT ALL - COUNT( * ) DIV 78 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL - COUNT ( * ) / 78 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT CAST( NULL AS SIGNED ) + 14 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT CAST ( NULL AS INTEGER ) + 14 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT + col0 >= - 80 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + SUM( ALL ( - 75 ) ) AS col2 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-9126
SELECT + SUM ( ALL ( - 75 ) ) AS col2 FROM tab1 AS cor0
----
-225

query I rowsort
SELECT ALL col1 + 58 FROM tab1 AS cor0
----
105
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT COUNT( * ) * MIN( ( - ( 77 ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IN ( 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT COUNT ( * ) * MIN ( ( - ( 77 ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IN ( 97 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9129
SELECT DISTINCT - 87 DIV COUNT( * ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT - 87 / COUNT ( * ) FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT - MIN( col0 ) * - 85 + 21 FROM tab0 AS cor0
----
1296

skipif mysql # not compatible
query I rowsort label-9130
SELECT - MIN ( col0 ) * - 85 + 21 FROM tab0 AS cor0
----
1296

query I rowsort
SELECT - col2 * + col2 + ( col2 ) FROM tab2 AS cor0
----
-1560
-3306
-506

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> 61 * col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT + - MAX( 86 ) AS col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT + - MAX ( 86 ) AS col2 FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col1 * - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9134
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col1 * - col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT - + COUNT( * ) + 87 * - COUNT( * ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-9136
SELECT - + COUNT ( * ) + 87 * - COUNT ( * ) FROM tab2 AS cor0
----
-264

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( - 18 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 < + 17 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * 57 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 / col0 col1 FROM tab2 WHERE 7 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col2 + col2 * 18 FROM tab2
----
-115
-2320
-880

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 17 IN ( 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 71 - col0 + col1 * col1 AS col2 FROM tab2
----
2484
4343
5794

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) IN ( - col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT MIN( DISTINCT - - ( 70 ) ) AS col2 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-9147
SELECT MIN ( DISTINCT - - ( 70 ) ) AS col2 FROM tab1
----
70

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE - col2 * col0 NOT IN ( - 58 + + col2 )
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab2 cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT + col1 DIV + 82 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT + col1 / + 82 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 95 FROM tab2 WHERE NOT - col1 <> 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT NULL = - CAST( 18 AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT NULL = - CAST ( 18 AS INTEGER ) * col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 21 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-9155
SELECT COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab2
----
3
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * + col0 + 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL - ( MAX( + 17 ) ) * - 56 AS col0 FROM tab2 AS cor0
----
952

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL - ( MAX ( + 17 ) ) * - 56 AS col0 FROM tab2 AS cor0
----
952

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9158
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - + 97 * col2 + - 78 ) OR NOT 11 + CAST( + 11 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9158
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - + 97 * col2 + - 78 ) OR NOT 11 + CAST ( + 11 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT + - MIN( - 12 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9159
SELECT + - MIN ( - 12 ) FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT + SUM( + 37 ) FROM tab2 AS cor0 WHERE + ( - - col0 ) <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT + SUM ( + 37 ) FROM tab2 AS cor0 WHERE + ( - - col0 ) <= + col2
----
NULL

query I rowsort
SELECT DISTINCT - - ( col0 ) AS col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL COUNT( * ) + 70 FROM tab0 WHERE NOT + col0 BETWEEN + 2 AND NULL
----
70

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL COUNT ( * ) + 70 FROM tab0 WHERE NOT + col0 BETWEEN + 2 AND NULL
----
70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9163
SELECT DISTINCT * FROM tab1 WHERE ( - - col0 * + 78 ) BETWEEN + CAST( NULL AS DECIMAL ) AND - CAST( + col0 AS SIGNED ) - + ( 58 + - 22 )
----

skipif mysql # not compatible
query III rowsort label-9163
SELECT DISTINCT * FROM tab1 WHERE ( - - col0 * + 78 ) BETWEEN + CAST ( NULL AS REAL ) AND - CAST ( + col0 AS INTEGER ) - + ( 58 + - 22 )
----

query II rowsort
SELECT ( - col0 ) AS col1, + 49 AS col2 FROM tab2
----
-46
49
-64
49
-75
49

query I rowsort
SELECT + - AVG ( + - 92 ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT ALL - col0 * - col2 * + 23 FROM tab2
----
100050
24334
58880

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 24 ) BETWEEN col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 21 * + col1 * - col1 AS col1 FROM tab2
----
-124509
-54621
-94269

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9170
SELECT col2 * + col0 / - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT col2 * + col0 / - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL <= col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9172
SELECT DISTINCT + 64 DIV + - SUM( col2 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + 64 / + - SUM ( col2 ) FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 * 51 ) IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( NOT col0 <= - 38 / col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + - col1 + - col2 <= ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 88 + 21 * + col0 + 43 FROM tab2
----
1097
1475
1706

query I rowsort
SELECT ( col2 ) * + + col2 * - col2 FROM tab2 cor0
----
-12167
-195112
-64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col1 FROM tab1 cor0 WHERE NULL IS NULL
----
76
76
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= ( - - ( 17 ) )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 38 - + 34 ) <> ( ( - + 88 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - MIN( ALL - - 23 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9181
SELECT - MIN ( ALL - - 23 ) col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9182
SELECT CAST( NULL AS SIGNED ) - + 51 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT CAST ( NULL AS INTEGER ) - + 51 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 78 ) * - 11 col1 FROM tab2
----
858
858
858

query I rowsort
SELECT ALL - col2 + - 70 * - 14 AS col0 FROM tab1
----
884
912
921

query I rowsort
SELECT 98 - 88 AS col2 FROM tab0
----
10
10
10

query I rowsort
SELECT ALL 87 + + col2 FROM tab0 WHERE - - col0 IN ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT - + ( MAX( col2 ) ) AS col1 FROM tab2 WHERE col2 * - + col1 + + - col2 IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT - + ( MAX ( col2 ) ) AS col1 FROM tab2 WHERE col2 * - + col1 + + - col2 IS NOT NULL
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9188
SELECT DISTINCT CAST( NULL AS SIGNED ), + COUNT( * ) col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9188
SELECT DISTINCT CAST ( NULL AS INTEGER ), + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= - + 34 * + col2 OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 8 * 69 FROM tab1 AS cor0
----
552
552
552

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + + 6, 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN ( NULL ) AND - 5 / - + col0
----
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN ( NULL ) AND - 5 / - + col0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 89 / col1 - - + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - + ( + 93 ) ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9195
SELECT - + col0 * 90 AS col2, 39 DIV - col2 AS col2 FROM tab2 AS cor0
----
-4140
-1
-5760
0
-6750
0

skipif mysql # not compatible
query II rowsort label-9195
SELECT - + col0 * 90 AS col2, 39 / - col2 AS col2 FROM tab2 AS cor0
----
-4140
-1
-5760
0
-6750
0

query I rowsort
SELECT + ( + 89 ) FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT + 42 FROM tab1 AS cor0 WHERE NOT ( + col1 ) NOT IN ( col0 * 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT SUM( ( - col1 ) ) FROM tab0 AS cor0 WHERE - 14 + + + 6 * + col1 + 93 * + col1 + + 28 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT SUM ( ( - col1 ) ) FROM tab0 AS cor0 WHERE - 14 + + + 6 * + col1 + 93 * + col1 + + 28 < NULL
----
NULL

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - - col1 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col1 IN ( + - 99 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col1 IN ( + - 99 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT ALL + 50 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + 50 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col0 AND - col1 / - 87 * + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT - COUNT( * ) + + - 68 AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-9203
SELECT - COUNT ( * ) + + - 68 AS col2 FROM tab1
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 20 col2 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT + - ( - + col0 ) FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( + 21 )
----

query I rowsort
SELECT ALL + col0 + - - col2 - - 50 * - col0 * + - ( - 86 ) FROM tab1 AS cor0
----
-219153
-365356
-391141

query I rowsort
SELECT DISTINCT - + col2 + col1 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT 5 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL - 40 + + COUNT( * ) col1 FROM tab2
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9210
SELECT ALL - 40 + + COUNT ( * ) col1 FROM tab2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9211
SELECT - 25 * - + COUNT( * ) - + - AVG ( + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 25 * - + COUNT ( * ) - + - AVG ( + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT - COUNT( * ) + + - COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9212
SELECT - COUNT ( * ) + + - COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + 84 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 * 91 - 35 + + - 66 * - col1 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 * - + col1 col2 FROM tab1 AS cor0
----
-1504
-160
-448

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 70 IS NULL
----

query I rowsort
SELECT ALL + col2 + + 20 AS col1 FROM tab2 AS cor0
----
43
60
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT ALL col1 DIV 61 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL col1 / 61 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + SUM( + 17 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9218
SELECT + SUM ( + 17 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE ( - - ( - col0 ) * - col1 + - 60 ) IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( - - ( - col0 ) * - col1 + - 60 ) IN ( + col1 )
----
0

query I rowsort
SELECT ( - - ( col1 ) ) AS col2 FROM tab0 WHERE NOT - + 52 + col2 + ( - 89 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col2 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col1, col2 * 95 col2, - col0 FROM tab2
----
9 values hashing to 6b3c5963f12cc3158c8aba2a3f475222

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-80

query III rowsort
SELECT * FROM tab0 WHERE 51 IS NOT NULL OR NOT + col2 <= NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9225
SELECT - col0 + 34 DIV - + col0 FROM tab0 AS cor0
----
-17
-87
-97

skipif mysql # not compatible
query I rowsort label-9225
SELECT - col0 + 34 / - + col0 FROM tab0 AS cor0
----
-17
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT ALL - COUNT( * ) AS col2, + COUNT( * ) FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0, col1 + 97 AS col1 FROM tab2 AS cor0
----
46
148
64
174
75
164

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 58 * - 14 - + - 96 NOT IN ( + - col2, - ( + ( - col0 ) ) ) AND NOT col2 + - col0 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9230
SELECT COUNT( * ) col0, MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9230
SELECT COUNT ( * ) col0, MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
3
59

query I rowsort
SELECT ALL + col2 + - + col0 FROM tab0
----
-77
2
32

query II rowsort
SELECT + - ( - col1 ) + + col0, ( + + col2 ) * col2 * - 39 + + + col1 / - 48 FROM tab0 WHERE + + 42 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9233
SELECT * FROM tab0 WHERE ( col2 ) IN ( col2 * - col0 * + 24, + col1 * + - CAST( NULL AS SIGNED ) * - 73 )
----

skipif mysql # not compatible
query III rowsort label-9233
SELECT * FROM tab0 WHERE ( col2 ) IN ( col2 * - col0 * + 24, + col1 * + - CAST ( NULL AS INTEGER ) * - 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT + 84 + - MIN( DISTINCT + - col2 ) * - 60 AS col2 FROM tab2
----
-3396

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT + 84 + - MIN ( DISTINCT + - col2 ) * - 60 AS col2 FROM tab2
----
-3396

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - COUNT( + 7 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9235
SELECT - COUNT ( + 7 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 18 * 36 * 54 * col2 IN ( + - 61, 27 / 82 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - MAX( + + 68 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-9237
SELECT - MAX ( + + 68 ) FROM tab0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + - col0 col1, col2 FROM tab0 AS cor0
----
-77
10
2
99
32
47

query II rowsort
SELECT ALL - 57, col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL COUNT( * ) + + - MAX( + col1 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL COUNT ( * ) + + - MAX ( + col1 ) FROM tab1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT ALL col0 + + - 24 DIV + col1 AS col0 FROM tab1
----
50
81
91

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL col0 + + - 24 / + col1 AS col0 FROM tab1
----
50
81
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 - col2 + 35 col0, + 73 AS col1 FROM tab0 AS cor0
----
35
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 56 < + col2 + col1
----
15
81
47
97
1
99

query I rowsort
SELECT ALL col1 + - + 57 * + 93 * + - col2 FROM tab0 cor0
----
249228
524800
53031

query I rowsort
SELECT DISTINCT + + 94 - + + col0 FROM tab0 AS cor0
----
-3
7
79

query I rowsort
SELECT DISTINCT + ( - - col0 ) - + col2 FROM tab2 AS cor0
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 37 col2 FROM tab1 AS cor0
----
105
133
96

query I rowsort
SELECT ALL - 91 - - col0 AS col1 FROM tab2 AS cor0
----
-16
-27
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( 8 + - 27 ) AND 3
----

query I rowsort
SELECT 24 * - + col1 AS col0 FROM tab2 cor0 WHERE col0 * col2 IS NOT NULL
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT + - MIN( ALL - - col0 ) * + 68 AS col2, ( - + MIN( ALL + ( - - col1 ) ) ) * ( + COUNT( * ) ) - - COUNT( DISTINCT + ( + col2 ) ) FROM tab1 AS cor0
----
-3468
-12

skipif mysql # not compatible
query II rowsort label-9251
SELECT + - MIN ( ALL - - col0 ) * + 68 AS col2, ( - + MIN ( ALL + ( - - col1 ) ) ) * ( + COUNT ( * ) ) - - COUNT ( DISTINCT + ( + col2 ) ) FROM tab1 AS cor0
----
-3468
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL + - MAX( ALL - + 85 ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL + - MAX ( ALL - + 85 ) FROM tab2 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9253
SELECT + ( + - 62 ) * - col2, CAST( + - 82 AS SIGNED ) col0 FROM tab0 AS cor0
----
2914
-82
6138
-82
620
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9253
SELECT + ( + - 62 ) * - col2, CAST ( + - 82 AS INTEGER ) col0 FROM tab0 AS cor0
----
2914
-82
6138
-82
620
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9254
SELECT ALL + 83 DIV - CAST( col0 AS SIGNED ) + - + col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + 83 / - CAST ( col0 AS INTEGER ) + - + col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT col0 DIV - 2 AS col2 FROM tab0
----
-43
-48
-7

skipif mysql # not compatible
query I rowsort label-9255
SELECT col0 / - 2 AS col2 FROM tab0
----
-43
-48
-7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + - + col1 + - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 + col0 AS col2 FROM tab0 WHERE NOT - col1 < 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9258
SELECT MIN( DISTINCT - 46 ) AS col2, CAST( - 6 AS SIGNED ) FROM tab0 cor0
----
-46
-6

skipif mysql # not compatible
query II rowsort label-9258
SELECT MIN ( DISTINCT - 46 ) AS col2, CAST ( - 6 AS INTEGER ) FROM tab0 cor0
----
-46
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 <= NULL
----

query I rowsort
SELECT + ( + 99 ) AS col0 FROM tab2 cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT - - ( + 17 ) * - MIN( + col0 ) * - + ( 95 ) FROM tab1 AS cor0 WHERE + 99 * 66 * + col1 <= + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT - - ( + 17 ) * - MIN ( + col0 ) * - + ( 95 ) FROM tab1 AS cor0 WHERE + 99 * 66 * + col1 <= + - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - col2 + col2 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ( SUM( ALL + col2 ) ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9264
SELECT ( SUM ( ALL + col2 ) ) FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT + COUNT( * ) DIV - - 40 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT + COUNT ( * ) / - - 40 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + 6 * + + MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
462

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 6 * + + MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
462

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 63 * - 87 - - 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 14 AS col0 FROM tab1 cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT + + COUNT( * ) + 19 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT + + COUNT ( * ) + 19 FROM tab2 AS cor0
----
22

query I rowsort
SELECT - - col2 + - - 48 AS col2 FROM tab1 AS cor0
----
107
116
144

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE ( - col0 ) - - col2 - + col1 * - col0 NOT BETWEEN + col1 * - col0 AND ( NULL )
----

query II rowsort
SELECT DISTINCT + col2, + 85 FROM tab2
----
23
85
40
85
58
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + MIN( - ( 24 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT + MIN ( - ( 24 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT - col0 + + 99 DIV col0 FROM tab0
----
-86
-9
-96

skipif mysql # not compatible
query I rowsort label-9274
SELECT - col0 + + 99 / col0 FROM tab0
----
-86
-9
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT + CAST( 11 AS SIGNED ) + - + COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + CAST ( 11 AS INTEGER ) + - + COUNT ( * ) FROM tab1
----
8

query I rowsort
SELECT DISTINCT - ( ( ( - + 67 ) ) ) FROM tab0
----
67

query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab2 AS cor0 WHERE NOT ( col0 * + 63 IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 98 + - 79 AS col1, ( - col0 ) col1 FROM tab0
----
19
-15
19
-87
19
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9279
SELECT - CAST( + + ( 14 ) AS SIGNED ) + - - 85 * - + COUNT( * ) * + + ( - 79 ) FROM tab0
----
20131

skipif mysql # not compatible
query I rowsort label-9279
SELECT - CAST ( + + ( 14 ) AS INTEGER ) + - - 85 * - + COUNT ( * ) * + + ( - 79 ) FROM tab0
----
20131

query I rowsort
SELECT col1 + - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + col2 * - + col2 AS col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 5 col2 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL + col1 * + col0 * + + col1 FROM tab0 cor0
----
38367
97
98415

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0, col2, 81, col0 )
----

query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT + + COUNT( + col0 ) * + + 30 AS col0 FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-9286
SELECT + + COUNT ( + col0 ) * + + 30 AS col0 FROM tab1 cor0
----
90

query II rowsort
SELECT col2, 65 * + + col1 FROM tab1
----
59
325
68
3055
96
910

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT SUM( + col2 ) * - - COUNT( * ) col0 FROM tab1
----
669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9288
SELECT DISTINCT SUM ( + col2 ) * - - COUNT ( * ) col0 FROM tab1
----
669

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9289
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9290
SELECT CAST( NULL AS SIGNED ), + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9290
SELECT CAST ( NULL AS INTEGER ), + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * - col2 * + 51 AS col2 FROM tab2 AS cor0
----
171564
26979
81600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9292
SELECT DISTINCT COUNT( * ) DIV - MIN( ( - - col1 ) ) * + + 39 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT COUNT ( * ) / - MIN ( ( - - col1 ) ) * + + 39 AS col1 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9293
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( col0 ) - - CAST( NULL AS SIGNED ) - + 36 / 77 / + col0 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9293
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( col0 ) - - CAST ( NULL AS INTEGER ) - + 36 / 77 / + col0 ) < NULL
----

query II rowsort
SELECT DISTINCT col0 + col2, - col0 AS col1 FROM tab0
----
196
-97
62
-15
97
-87

query III rowsort
SELECT * FROM tab0 WHERE NOT + 46 IN ( col0, - col0 * 0, - 64 + 31, col0, - col2 ) AND NULL <= - 80 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ALL + COUNT( + 38 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL + COUNT ( + 38 ) FROM tab2
----
3

query I rowsort
SELECT 5 + col0 + + col2 FROM tab2
----
109
138
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL SUM( DISTINCT ( + + col1 ) ) * + - 72 * - COUNT( * ) FROM tab1
----
14256

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL SUM ( DISTINCT ( + + col1 ) ) * + - 72 * - COUNT ( * ) FROM tab1
----
14256

query I rowsort
SELECT DISTINCT ( + + 0 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 64 IS NOT NULL )
----

query II rowsort
SELECT - ( + + col0 ) AS col0, col0 * - col2 + col2 * - col0 * + 5 FROM tab0 AS cor0
----
-15
-4230
-87
-5220
-97
-57618

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9303
SELECT + COUNT( * ) col0, SUM( - col1 ) + + + COUNT( * ) DIV - 69 col0 FROM tab1
----
3
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9303
SELECT + COUNT ( * ) col0, SUM ( - col1 ) + + + COUNT ( * ) / - 69 col0 FROM tab1
----
3
-66

query II rowsort
SELECT 96 AS col1, col0 * col2 * - col0 AS col2 FROM tab1
----
96
-249696
96
-426275
96
-563108

query I rowsort
SELECT DISTINCT - 7 FROM tab2 WHERE - col2 IS NOT NULL
----
-7

query II rowsort
SELECT col0 AS col1, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9307
SELECT DISTINCT - - 32 - - + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
31
32

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT - - 32 - - + col1 / - col0 AS col2 FROM tab2 AS cor0
----
31
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT COUNT( + 81 ) * 95 + - 42 AS col2 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9308
SELECT COUNT ( + 81 ) * 95 + - 42 AS col2 FROM tab2 AS cor0
----
243

query II rowsort
SELECT DISTINCT col0, col1 * - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT - + col1 DIV 14 + + + 37 AS col1 FROM tab2 AS cor0
----
32
33
34

skipif mysql # not compatible
query I rowsort label-9310
SELECT - + col1 / 14 + + + 37 AS col1 FROM tab2 AS cor0
----
32
33
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = + col1 * - col2 + + ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT - + col1 DIV col0 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9312
SELECT - + col1 / col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( - + 42 ) / - + col1 * 3 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + ( - - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col2 * + col0 col0 FROM tab0 AS cor0
----
1
9603
21
870
81
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col1 FROM tab1 cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL + col0 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + col0 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + - MIN( ALL - 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9318
SELECT + - MIN ( ALL - 68 ) FROM tab0 AS cor0
----
68

query II rowsort
SELECT - + col0, - 95 AS col2 FROM tab1 AS cor0
----
-51
-95
-85
-95
-91
-95

query III rowsort
SELECT - + col0, - col0, + + col2 FROM tab0 AS cor0
----
9 values hashing to 116584ef45c0f807f4c6805ad977e6a1

query I rowsort
SELECT + - ( 55 ) AS col0 FROM tab0 cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - MIN( ALL ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9322
SELECT - MIN ( ALL ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) * - 4 + + + col2 <= NULL
----

query II rowsort
SELECT - col0 AS col1, - col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT col2 * + - 74 FROM tab0 AS cor0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL COUNT( + 85 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL COUNT ( + 85 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT SUM( + 89 ) * COUNT( * ) + ( + COUNT( * ) ) * + 76 FROM tab1
----
1029

skipif mysql # not compatible
query I rowsort label-9327
SELECT SUM ( + 89 ) * COUNT ( * ) + ( + COUNT ( * ) ) * + 76 FROM tab1
----
1029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL COUNT( * ) * MIN( DISTINCT + ( - col0 ) ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL COUNT ( * ) * MIN ( DISTINCT + ( - col0 ) ) FROM tab2
----
-225

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + + col0 + - ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT - MIN( DISTINCT - 33 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9332
SELECT - MIN ( DISTINCT - 33 ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT - col0 + - + col0 * - 39 * + - ( + 4 ) * + 12 * - col1 - - - ( col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
181583
2274399
3420123

query I rowsort
SELECT DISTINCT 0 + - - 49 AS col0 FROM tab0
----
49

query I rowsort
SELECT + col1 * + 93 AS col2 FROM tab1
----
1302
4371
465

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT col0 DIV - 94 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT col0 / - 94 AS col0 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 87 BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 95 * + col1 AS col1 FROM tab1 AS cor0
----
-1330
-4465
-475

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * ( - 8 ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 98
----

query I rowsort
SELECT - col1 * + 13 + + + col0 * + + 97 * + - 37 FROM tab1 AS cor0
----
-183221
-305130
-327210

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT col0 DIV 19 + - col1 AS col2 FROM tab1 AS cor0
----
-1
-12
-43

skipif mysql # not compatible
query I rowsort label-9342
SELECT col0 / 19 + - col1 AS col2 FROM tab1 AS cor0
----
-1
-12
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 80, - ( 89 ) col1 FROM tab2 cor0
----
80
-89

query I rowsort
SELECT + col2 * - + 46 + + col1 + - col0 FROM tab1 AS cor0
----
-2794
-3172
-4453

query I rowsort
SELECT - 64 AS col0 FROM tab1 AS cor0 WHERE + col1 < + col2
----
-64
-64
-64

query I rowsort
SELECT ALL 99 + - col1 + - col2 AS col1 FROM tab0
----
-1
-29
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT DISTINCT - col1 + ( - + 79 ) - CAST( NULL AS SIGNED ) / - 39 + + 18 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT - col1 + ( - + 79 ) - CAST ( NULL AS INTEGER ) / - 39 + + 18 FROM tab2
----
NULL

query II rowsort
SELECT ALL ( + 30 ) + col2 + - 43, col0 AS col2 FROM tab1
----
46
85
55
91
83
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT MAX( + 63 ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9350
SELECT MAX ( + 63 ) AS col1 FROM tab1
----
63

query I rowsort
SELECT + col0 + - + 52 FROM tab2 WHERE NULL IS NULL
----
-6
12
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9352
SELECT * FROM tab2 AS cor0 WHERE - 92 + + col1 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9352
SELECT * FROM tab2 AS cor0 WHERE - 92 + + col1 >= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 25 NOT BETWEEN - col1 AND - + col1 * + 11 + 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT DISTINCT - col2 + - + 39 + 31 / CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - col2 + - + 39 + 31 / CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 * + col1 AND + col1 + col1
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 * + col1 AND + col1 + col1
----
0

query I rowsort
SELECT 8 + + col0 / + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND ( + + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 4 NOT IN ( - + 68, + 61 / 92 + + ( - col2 ), - col2 + - - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + 61
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + + col0 / + + col2 + - - 29 * - col2 * + ( 42 ) > + col2 * + + col2 * + 98 * 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 > 52
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT + MAX( ALL + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT + MAX ( ALL + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT DISTINCT + COUNT( ALL + CAST( - + 25 AS SIGNED ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9362
SELECT DISTINCT + COUNT ( ALL + CAST ( - + 25 AS INTEGER ) ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9363
SELECT + CAST( - - ( - col0 ) AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT + CAST ( - - ( - col0 ) AS INTEGER ) / col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT + SUM( - col2 ) col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9364
SELECT + SUM ( - col2 ) col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( + col1 <> NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9366
SELECT + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT - col2 + CAST( NULL AS SIGNED ) NOT BETWEEN 48 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT - col2 + CAST ( NULL AS INTEGER ) NOT BETWEEN 48 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL + COUNT( DISTINCT - + 65 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + COUNT ( DISTINCT - + 65 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT CAST( + - col2 AS SIGNED ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9368
SELECT CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT MIN( - + 34 ) AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-9369
SELECT MIN ( - + 34 ) AS col2 FROM tab0
----
-34

query I rowsort
SELECT - 92 * + col0 AS col1 FROM tab1
----
-4692
-7820
-8372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * col0 * col1 col1 FROM tab2
----
167552
170850
79764

onlyif mysql # aggregate syntax: 
query II rowsort label-9372
SELECT ALL 89 AS col1, MIN( - col0 ) AS col0 FROM tab2
----
89
-75

skipif mysql # not compatible
query II rowsort label-9372
SELECT ALL 89 AS col1, MIN ( - col0 ) AS col0 FROM tab2
----
89
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9373
SELECT DISTINCT COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9373
SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + MIN( 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-9374
SELECT + MIN ( 64 ) FROM tab1
----
64

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT col2 - col0 IS NOT NULL
----

query I rowsort
SELECT + + ( - 50 ) FROM tab2 AS cor0
----
-50
-50
-50

query II rowsort
SELECT ALL + col1, 59 + 4 FROM tab0 cor0
----
1
63
21
63
81
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + 89 + 7 + COUNT( * ) AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-9379
SELECT + 89 + 7 + COUNT ( * ) AS col1 FROM tab2
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9380
SELECT ALL - col2 + - CAST( col1 AS DECIMAL ) + + 45 FROM tab2 WHERE NULL BETWEEN col2 + - + 83 + - col1 AND + col2
----

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL - col2 + - CAST ( col1 AS REAL ) + + 45 FROM tab2 WHERE NULL BETWEEN col2 + - + 83 + - col1 AND + col2
----

query I rowsort
SELECT DISTINCT + - col2 - - - 20 FROM tab2 AS cor0
----
-43
-60
-78

query I rowsort
SELECT DISTINCT col0 * + - col2 * - - col1 AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL - MIN( ALL - 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL - MIN ( ALL - 5 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - - ( 90 ) AS col0 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9385
SELECT ALL + 52 * COUNT( * ) - 47 DIV + 67 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + 52 * COUNT ( * ) - 47 / + 67 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9386
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9386
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT ALL col1 DIV - col0 + col0 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL col1 / - col0 + col0 FROM tab2 AS cor0
----
45
63
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT col0 DIV 64 col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9388
SELECT col0 / 64 col2 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT 81 + - col1 FROM tab1
----
34
67
76

query II rowsort
SELECT + col2 - - col2 + + 69, + col2 * - 18 AS col2 FROM tab1
----
187
-1062
205
-1224
261
-1728

query I rowsort
SELECT ALL col2 * + col2 + + ( + + col0 ) AS col1 FROM tab1
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT 81 - - COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9392
SELECT 81 - - COUNT ( * ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT COUNT( * ) + + - 60 AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT COUNT ( * ) + + - 60 AS col1 FROM tab0
----
-57

query I rowsort
SELECT ALL col0 * - 33 + - col0 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT col0 * + ( + + col2 ) + - col1 AS col0 FROM tab2
----
1007
2483
4283

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT col2 DIV + col0 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT col2 / + col0 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL 82 - 87 FROM tab1
----
-5
-5
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 59 < NULL
----

query I rowsort
SELECT - - col0 * 67 AS col1 FROM tab0 AS cor0
----
1005
5829
6499

query II rowsort
SELECT ALL + ( col0 ), - col1 + + col0 AS col2 FROM tab1 AS cor0
----
51
37
85
80
91
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 32
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 72 NOT BETWEEN - 3 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <> - 41 + - col1 * - + col0
----

query I rowsort
SELECT + 43 * + 32 + + 1 AS col1 FROM tab2 AS cor0
----
1377
1377
1377

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT DISTINCT col0 DIV 37 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT col0 / 37 FROM tab0 AS cor0
----
0
2

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT DISTINCT - MIN( ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - MIN ( ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 21 + + col2 FROM tab0
----
120
31
68

query II rowsort
SELECT DISTINCT - col1, col1 * - 72 + + 59 * - col1 AS col0 FROM tab0
----
-1
-131
-21
-2751
-81
-10611

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT - + 8 NOT IN ( + col1 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + 8 NOT IN ( + col1 * col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 1 * - 83 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-80
-80
-80

query I rowsort
SELECT ALL col0 + 8 AS col2 FROM tab1
----
59
93
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col0
----

query I rowsort
SELECT ALL - + col0 * - 26 FROM tab0 AS cor0
----
2262
2522
390

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 6 + + col0 + - col1 * + + col2 FROM tab2
----
-1121
-3010
-3805

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL + COUNT( * ) - + - 94 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL + COUNT ( * ) - + - 94 FROM tab1 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <= + - col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND - + 73 * col1
----

skipif mysql # not compatible
query I rowsort label-9421
SELECT - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND - + 73 * col1
----

query I rowsort
SELECT 84 + - - col1 FROM tab2 AS cor0
----
135
151
161

query I rowsort
SELECT DISTINCT - - 69 * 74 + 50 FROM tab1 cor0
----
5156

query II rowsort
SELECT ALL col2, col2 - 51 + + 50 + - col1 * - + col2 + + - 79 FROM tab1 AS cor0 WHERE NOT col0 + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + 36 * 30 AS col2 FROM tab0 AS cor0
----
1059
1079
999

query I rowsort
SELECT DISTINCT + 26 * - col2 AS col0 FROM tab1 AS cor0
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT ALL + COUNT( * ) AS col2, 24 col0 FROM tab2 WHERE NULL IS NULL
----
3
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9427
SELECT ALL + COUNT ( * ) AS col2, 24 col0 FROM tab2 WHERE NULL IS NULL
----
3
24

query I rowsort
SELECT ALL - col1 + - + 94 * - 13 AS col2 FROM tab1
----
1175
1208
1217

query II rowsort
SELECT DISTINCT col2 + col1 AS col2, col0 AS col1 FROM tab0
----
100
97
128
15
31
87

query I rowsort
SELECT ALL - 95 * 87 AS col1 FROM tab2
----
-8265
-8265
-8265

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT ( col0 ) DIV + + col0 + - col1 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-9431
SELECT ( col0 ) / + + col0 + - col1 FROM tab2
----
-50
-66
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 72 * + - col2 + - col0, col2, - 28 * - col1 - - + 55 * - col2 - - col2 + + - 64 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 64
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT - 97 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9434
SELECT - 97 / + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND + - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT ALL - COUNT( * ) AS col1, + 79 FROM tab0 WHERE - 21 IS NOT NULL
----
-3
79

skipif mysql # not compatible
query II rowsort label-9439
SELECT ALL - COUNT ( * ) AS col1, + 79 FROM tab0 WHERE - 21 IS NOT NULL
----
-3
79

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT + 55 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9442
SELECT * FROM tab2 AS cor0 WHERE + col2 / - - col2 / - + col1 + + - 13 BETWEEN CAST( NULL AS SIGNED ) + + 23 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9442
SELECT * FROM tab2 AS cor0 WHERE + col2 / - - col2 / - + col1 + + - 13 BETWEEN CAST ( NULL AS INTEGER ) + + 23 AND NULL
----

query I rowsort
SELECT + 4 * - col0 FROM tab2 AS cor0
----
-184
-256
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT DISTINCT + COUNT( * ) AS col0, - 18 FROM tab1
----
3
-18

skipif mysql # not compatible
query II rowsort label-9445
SELECT DISTINCT + COUNT ( * ) AS col0, - 18 FROM tab1
----
3
-18

query I rowsort
SELECT col2 * + - 58 - - 0 - + 64 FROM tab1
----
-3486
-4008
-5632

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NULL > + 52 + ( - - 51 ) * + col0 ) )
----

query I rowsort
SELECT DISTINCT + ( + 48 ) FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL CAST( NULL AS SIGNED ) * - 9 * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL CAST ( NULL AS INTEGER ) * - 9 * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT ALL col1 * - - ( - 66 ) AS col2 FROM tab1
----
-3102
-330
-924

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - 95 NOT IN ( - col2 + + + col1, 35, + - 54, + + ( 95 ) * + col0 )
----

query I rowsort
SELECT + 49 * + ( + - col0 ) + - 92 AS col1 FROM tab2 AS cor0
----
-2346
-3228
-3767

query I rowsort
SELECT DISTINCT + + col1 - + col2 FROM tab2 AS cor0 WHERE + 21 BETWEEN NULL AND - col2
----

query II rowsort
SELECT - col2 AS col1, + 50 AS col1 FROM tab1 AS cor0
----
-59
50
-68
50
-96
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT - MAX( + - ( - 36 ) ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9456
SELECT - MAX ( + - ( - 36 ) ) FROM tab1 AS cor0
----
-36

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT ALL + 45 AS col0, ( 2 ) AS col1 FROM tab0 WHERE NOT - + 87 * - col2 - + ( - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9459
SELECT ALL 91 * + 35, + COUNT( * ) + + - 26 AS col1 FROM tab1 AS cor0
----
3185
-23

skipif mysql # not compatible
query II rowsort label-9459
SELECT ALL 91 * + 35, + COUNT ( * ) + + - 26 AS col1 FROM tab1 AS cor0
----
3185
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + MAX( DISTINCT col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9460
SELECT + MAX ( DISTINCT col2 ) FROM tab1 cor0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9461
SELECT + + 43 DIV col1 AS col1, 16 AS col1 FROM tab0 AS cor0
----
0
16
2
16
43
16

skipif mysql # not compatible
query II rowsort label-9461
SELECT + + 43 / col1 AS col1, 16 AS col1 FROM tab0 AS cor0
----
0
16
2
16
43
16

query I rowsort
SELECT - + col1 * + + 94 AS col0 FROM tab0 AS cor0
----
-1974
-7614
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 30 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9464
SELECT + - MAX( - col1 ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
5
-3

skipif mysql # not compatible
query II rowsort label-9464
SELECT + - MAX ( - col1 ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
5
-3

query I rowsort
SELECT ( 22 ) * + + 39 + + col2 FROM tab0
----
868
905
957

query I rowsort
SELECT DISTINCT - col1 * + + col2 * - 97 + - 38 FROM tab1
----
130330
28577
309974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9467
SELECT DISTINCT - 1 DIV COUNT( + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT - 1 / COUNT ( + col2 ) FROM tab0
----
0

query I rowsort
SELECT ALL ( + ( - - 55 ) ) AS col0 FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT ALL COUNT( * ) DIV - 46 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL COUNT ( * ) / - 46 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 13 - col1 AS col2 FROM tab2
----
-64
-80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - - COUNT( + col0 ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-9471
SELECT - - COUNT ( + col0 ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1 + + col0
----
0

query II rowsort
SELECT DISTINCT col2, + ( col1 ) + 16 * + col0 + - + col2 FROM tab1 AS cor0 WHERE + 21 >= + - col2
----
59
1306
68
1435
96
734

query II rowsort
SELECT col0 + - col1, col2 FROM tab0 AS cor0
----
-66
47
66
10
96
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL + + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL + + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL + col0 - - - col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) >= - - col0 * - 45 + - col0 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT 37 DIV col1 FROM tab0
----
0
1
37

skipif mysql # not compatible
query I rowsort label-9477
SELECT 37 / col1 FROM tab0
----
0
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL + MIN( + 94 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + MIN ( + 94 ) FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT SUM( ALL + col0 ) FROM tab2 WHERE NOT NULL BETWEEN - col1 AND - + col0 + + col2 - - - col1 - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT SUM ( ALL + col0 ) FROM tab2 WHERE NOT NULL BETWEEN - col1 AND - + col0 + + col2 - - - col1 - - col0
----
NULL

query I rowsort
SELECT ALL 34 FROM tab1 AS cor0 WHERE NOT ( + + 56 IS NULL )
----
34
34
34

onlyif mysql # DIV for integer division: 
query II rowsort label-9481
SELECT DISTINCT 98, 5 + + col0 DIV 66 col0 FROM tab1
----
98
5
98
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9481
SELECT DISTINCT 98, 5 + + col0 / 66 col0 FROM tab1
----
98
5
98
6

query I rowsort
SELECT 39 * + 4 AS col2 FROM tab1
----
156
156
156

query I rowsort
SELECT ALL - + col0 - - - col0 FROM tab0 WHERE NULL NOT IN ( col0 * - - 90, col2, - + 15 + - - 62, + col1, - 21 )
----

query I rowsort
SELECT col1 * + 67 * + 53 AS col2 FROM tab0
----
287631
3551
74571

query I rowsort
SELECT 88 + - 66 AS col0 FROM tab0
----
22
22
22

query I rowsort
SELECT ALL - ( + + ( 66 ) ) * - - 52 FROM tab0 cor0
----
-3432
-3432
-3432

query II rowsort
SELECT DISTINCT - 36, col2 FROM tab1 cor0
----
-36
59
-36
68
-36
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT - col2 DIV + 51 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9488
SELECT - col2 / + 51 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT DISTINCT COUNT( * ) col1, 43 FROM tab2 AS cor0
----
3
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9489
SELECT DISTINCT COUNT ( * ) col1, 43 FROM tab2 AS cor0
----
3
43

query I rowsort
SELECT - + col2 * + 45 AS col1 FROM tab0 AS cor0 WHERE col2 / - + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT DISTINCT - col1 DIV - 2 + 87 FROM tab1
----
110
89
94

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT - col1 / - 2 + 87 FROM tab1
----
110
89
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL SUM( DISTINCT + - 88 ) * + - 36 + 54 FROM tab0
----
3222

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL SUM ( DISTINCT + - 88 ) * + - 36 + 54 FROM tab0
----
3222

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + 98 IN ( + - col1, + col2 * col2 * 85 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE col2 < + col2
----

query I rowsort
SELECT ( 46 ) + + 79 * + 39 FROM tab1 AS cor0
----
3127
3127
3127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col0 ) + - col2 col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT + MIN( - 19 ) FROM tab1 AS cor0 WHERE NOT 59 IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT + MIN ( - 19 ) FROM tab1 AS cor0 WHERE NOT 59 IS NULL
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT - COUNT( * ) * - - COUNT( * ) col0 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9498
SELECT - COUNT ( * ) * - - COUNT ( * ) col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9499
SELECT ALL - 44 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - 44 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 23 - + 57 + + col0 FROM tab2
----
12
30
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT - COUNT( * ) + MIN( DISTINCT + + col0 ) AS col1 FROM tab1 WHERE - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT - COUNT ( * ) + MIN ( DISTINCT + + col0 ) AS col1 FROM tab1 WHERE - - col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 * - + col0 * - 64 IS NULL
----

query I rowsort
SELECT ALL + 2 + + + col2 FROM tab2 AS cor0
----
25
42
60

query I rowsort
SELECT ALL col0 - 3 AS col1 FROM tab1 cor0
----
48
82
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9505
SELECT - + COUNT( - col2 ) - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 = + - 69 / + 32 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT - + COUNT ( - col2 ) - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 = + - 69 / + 32 * + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT MIN( ALL - + 11 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9506
SELECT MIN ( ALL - + 11 ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT ALL + ( col1 ) * - 75 AS col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT - - COUNT( * ) * + - 39 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-9508
SELECT - - COUNT ( * ) * + - 39 FROM tab2 AS cor0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT DISTINCT + 89 DIV + + 57 col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9509
SELECT DISTINCT + 89 / + + 57 col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL - ( MIN( - col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - ( MIN ( - col0 ) ) FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT DISTINCT + 29 + + - 8 * - col0 * 48 DIV - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-355

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + 29 + + - 8 * - col0 * 48 / - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 WHERE NOT - 84 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 84 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT - COUNT( ALL - col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT - COUNT ( ALL - col0 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT COUNT( + ( col1 ) ) * SUM( DISTINCT 30 ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9514
SELECT COUNT ( + ( col1 ) ) * SUM ( DISTINCT 30 ) AS col2 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9515
SELECT DISTINCT - MIN( - col2 ), - 15 AS col2 FROM tab2 AS cor0
----
58
-15

skipif mysql # not compatible
query II rowsort label-9515
SELECT DISTINCT - MIN ( - col2 ), - 15 AS col2 FROM tab2 AS cor0
----
58
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT - CAST( NULL AS SIGNED ) / + + SUM( + col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT - CAST ( NULL AS INTEGER ) / + + SUM ( + col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9517
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( 98 - + col1 + + + col1 * - col2 ) AND + 13 * - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9517
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( 98 - + col1 + + + col1 * - col2 ) AND + 13 * - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT 29 + + col2 AS col2 FROM tab2
----
52
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * - - col0 + + col2 * + 69 col1 FROM tab1 cor0
----
4496
5147
6879

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT COUNT( * ) * + - 87 AS col0 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9520
SELECT COUNT ( * ) * + - 87 AS col0 FROM tab0 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT 91 + - COUNT( * ) AS col1 FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-9521
SELECT 91 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL - COUNT( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - COUNT ( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL - + 97 * 81 + col2, col0 * - col1 * 96 AS col2 FROM tab0 AS cor0
----
-7758
-9312
-7810
-116640
-7847
-175392

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT DISTINCT col0 + col2 + + 10 DIV - - 58 + col2 + - col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT col0 + col2 + + 10 / - - 58 + col2 + - col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL COUNT( * ) + 13 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL COUNT ( * ) + 13 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT - 26 AS col1, COUNT( + + 80 ) AS col2 FROM tab1
----
-26
3

skipif mysql # not compatible
query II rowsort label-9526
SELECT - 26 AS col1, COUNT ( + + 80 ) AS col2 FROM tab1
----
-26
3

query I rowsort
SELECT ALL - 6 - 22 FROM tab0
----
-28
-28
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT DISTINCT COUNT( * ) + COUNT( * ) - + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + - col2 ) + - col2 AS col0 FROM tab0 cor0
----
0

query II rowsort
SELECT DISTINCT + 84 * col2 AS col0, + col1 FROM tab1
----
4956
5
5712
47
8064
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9532
SELECT - CAST( NULL AS DECIMAL ) * + col1 + - - 71 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT - CAST ( NULL AS REAL ) * + col1 + - - 71 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 9 * 84 + + 54 AS col0 FROM tab1
----
38610
64314
68850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL col2 * - 89 AS col0 FROM tab0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT - MAX( - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - MAX ( - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL col1 * col2 * - - col0 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT + - COUNT( * ) * - SUM( ALL col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT + - COUNT ( * ) * - SUM ( ALL col0 ) FROM tab1 AS cor0
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT DISTINCT - col0 DIV col1 col0 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9539
SELECT DISTINCT - col0 / col1 col0 FROM tab0 cor0
----
-4
-97
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - 56
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9541
SELECT ALL col1 / + CAST( NULL AS DECIMAL ) AS col1, 23 FROM tab2 AS cor0
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
query II rowsort label-9541
SELECT ALL col1 / + CAST ( NULL AS REAL ) AS col1, 23 FROM tab2 AS cor0
----
NULL
23
NULL
23
NULL
23

query II rowsort
SELECT ALL ( + - col0 ), col1 AS col0 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT + col0 * + + 31 AS col2 FROM tab1 WHERE NOT - + 97 IS NULL
----
1581
2635
2821

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT ALL col0 * - + col1 + - col0, col1 - col2 AS col1 FROM tab0 WHERE NOT NULL = col0
----

query I rowsort
SELECT - col0 * + - col1 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT - col0 * + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
57
57
57

query I rowsort
SELECT - 76 * - col1 AS col2 FROM tab1
----
1064
3572
380

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 83 >= 87 + col1
----

query I rowsort
SELECT + 10 * 53 AS col2 FROM tab2
----
530
530
530

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT + 66 * COUNT( * ) col0 FROM tab0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9553
SELECT + 66 * COUNT ( * ) col0 FROM tab0
----
198

query I rowsort
SELECT DISTINCT col0 * 78 AS col1 FROM tab2
----
3588
4992
5850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col1 col0 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL + 24 AS col0 FROM tab2 WHERE NULL BETWEEN + 58 * - col0 AND ( col2 + + col0 )
----

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 AS col1 FROM tab1
----
182
20
2162

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT DISTINCT + 37 + col2 DIV - 90 FROM tab1
----
36
37

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT + 37 + col2 / - 90 FROM tab1
----
36
37

query I rowsort
SELECT ALL 62 + + col1 FROM tab0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT 18 * - COUNT( * ) col1 FROM tab1
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9560
SELECT 18 * - COUNT ( * ) col1 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT MAX( DISTINCT col1 ) * - 72 AS col0 FROM tab1
----
-3384

skipif mysql # not compatible
query I rowsort label-9561
SELECT MAX ( DISTINCT col1 ) * - 72 AS col0 FROM tab1
----
-3384

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - col0 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab0 WHERE NOT ( - col2 ) BETWEEN ( + col1 ) AND col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT 11 DIV - col1 + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9564
SELECT 11 / - col1 + col1 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE + 42 * 12 + + 34 * - col2 >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT ( ( + 18 ) ) * SUM( - 58 + - col1 ) FROM tab1
----
-4320

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT ( ( + 18 ) ) * SUM ( - 58 + - col1 ) FROM tab1
----
-4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) * 50 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) * 50 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT 77 + - SUM( DISTINCT - ( + col2 ) ) AS col1 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT 77 + - SUM ( DISTINCT - ( + col2 ) ) AS col1 FROM tab2
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT + 39 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT + 39 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT - 72 DIV col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9570
SELECT - 72 / col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL col2 - - col1 * - 98 FROM tab2
----
-4975
-6508
-7506

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT + col0 DIV - 13 FROM tab1
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-9572
SELECT + col0 / - 13 FROM tab1
----
-3
-6
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT DISTINCT - col2 + col0 DIV + ( 66 * 75 ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - col2 + col0 / + ( 66 * 75 ) AS col1 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 + col1 * col0 ) IS NULL
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col0 > + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 54 * - col2 col1 FROM tab2 AS cor0
----
-1196
-2096
-3057

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN ( - col2 + - 79 / - col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 6 - + col1 >= ( + col1 )
----

query I rowsort
SELECT + 64 + col0 FROM tab0 AS cor0
----
151
161
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > 24
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT ALL - 3 * CAST( + ( SUM( col1 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - 3 * CAST ( + ( SUM ( col1 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-198

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 43 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - 29 - - col0 AS col1 FROM tab1 cor0
----
-1626
-1881
-2733

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL COUNT( * ) - 34 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL COUNT ( * ) - 34 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT 53 * 75 AS col2 FROM tab0 AS cor0
----
3975
3975
3975

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * col2 ) >= 35 / 28
----

query I rowsort
SELECT - 37 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT ALL col0 DIV + 14 FROM tab1
----
3
6
6

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL col0 / + 14 FROM tab1
----
3
6
6

query I rowsort
SELECT ALL ( - 72 ) * - col1 AS col1 FROM tab1 AS cor0
----
1008
3384
360

query I rowsort
SELECT DISTINCT col0 / col0 AS col2 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + + col0 * - ( col1 + - col0 ) FROM tab2 AS cor0
----
-230
-832
600

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 37 BETWEEN - col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9594
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 37 BETWEEN - col1 AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT - col1 * 75 FROM tab0 AS cor0
----
-1575
-6075
-75

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab1 cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * 72 col2 FROM tab2 AS cor0
----
720
720
720

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 * + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - + MIN( ALL - ( + col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9599
SELECT - + MIN ( ALL - ( + col1 ) ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT DISTINCT SUM( col1 ) col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9600
SELECT DISTINCT SUM ( col1 ) col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT DISTINCT 18 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT 18 / col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - MAX( ALL 83 ) FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9602
SELECT - MAX ( ALL 83 ) FROM tab2 cor0
----
-83

query I rowsort
SELECT + 18 FROM tab0 cor0 WHERE NOT col1 * col1 IS NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL - MIN( col2 ) * 57 AS col0 FROM tab1
----
-3363

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - MIN ( col2 ) * 57 AS col0 FROM tab1
----
-3363

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT - MAX( col0 ) + 45 * 81 FROM tab2
----
3570

skipif mysql # not compatible
query I rowsort label-9605
SELECT - MAX ( col0 ) + 45 * 81 FROM tab2
----
3570

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 BETWEEN + col1 AND 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + col2 + 87 FROM tab0
----
10
119
89

query I rowsort
SELECT + + ( - col2 ) + 39 FROM tab2 cor0
----
-1
-19
16

query I rowsort
SELECT - + col0 * + + 24 * 60 FROM tab0 cor0
----
-125280
-139680
-21600

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * 91 IS NOT NULL
----

query I rowsort
SELECT + + ( - 9 ) FROM tab1 AS cor0
----
-9
-9
-9

query II rowsort
SELECT col2, - 61 + - col2 - - col2 * col0 FROM tab1
----
59
4895
68
6059
96
4739

query I rowsort
SELECT col2 + + 47 AS col0 FROM tab2
----
105
70
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + - + 17 <= NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE - 54 BETWEEN - - col2 AND + 85
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT ALL 70 AS col2, MIN( + 6 ) AS col0 FROM tab2 AS cor0
----
70
6

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL 70 AS col2, MIN ( + 6 ) AS col0 FROM tab2 AS cor0
----
70
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT - col2 + 46 + 41 + + col1 DIV col0 col2 FROM tab2 AS cor0
----
29
48
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9617
SELECT - col2 + 46 + 41 + + col1 / col0 col2 FROM tab2 AS cor0
----
29
48
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT ALL + - col0 * + - 41 + col1 - col1 DIV col0 AS col0 FROM tab0 AS cor0
----
3588
3978
691

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + - col0 * + - 41 + col1 - col1 / col0 AS col0 FROM tab0 AS cor0
----
3588
3978
691

query II rowsort
SELECT DISTINCT + 34, + col0 FROM tab1 AS cor0
----
34
51
34
85
34
91

query I rowsort
SELECT - + col1 + - col2 * - col1 FROM tab1 cor0
----
1330
290
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT ( + MAX( + 99 ) ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT ( + MAX ( + 99 ) ) AS col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL - - 5 + + + col2 FROM tab2 AS cor0
----
28
45
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + col0 + - col0 / - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + AVG ( col1 ) FROM tab1 WHERE NOT ( NULL ) <> ( col1 + - col0 + col0 * + 66 )
----
NULL

query II rowsort
SELECT ALL col1 + + 4 AS col1, - 27 FROM tab1
----
18
-27
51
-27
9
-27

query I rowsort
SELECT DISTINCT 16 * + 23 * + - 23 - - - col0 - col2 AS col0 FROM tab2
----
-8533
-8568
-8597

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT MAX( DISTINCT col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9627
SELECT MAX ( DISTINCT col0 ) col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT ( + - COUNT( * ) ) col0, 45 AS col0 FROM tab2
----
-3
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9628
SELECT ( + - COUNT ( * ) ) col0, 45 AS col0 FROM tab2
----
-3
45

query I rowsort
SELECT + - ( + + col0 ) AS col0 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT ( - 24 ) FROM tab2 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - + ( - ( + 96 ) ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9631
SELECT - + ( - ( + 96 ) ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT + + col0 FROM tab0 cor0 WHERE NOT ( - 30 ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT DISTINCT - col2 * 32 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) > + 84 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT - col2 * 32 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) > + 84 + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 >= + + 35
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT MIN( col0 ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9635
SELECT MIN ( col0 ) col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT + COUNT( DISTINCT 16 ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9636
SELECT DISTINCT + COUNT ( DISTINCT 16 ) col2 FROM tab2
----
1

query I rowsort
SELECT ALL + 46 * - 71 AS col2 FROM tab2
----
-3266
-3266
-3266

query I rowsort
SELECT DISTINCT + ( + col2 ) * - + col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( col0 + + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( col0 + + col1 ) IS NOT NULL
----
3

query I rowsort
SELECT 86 * - + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab0 AS cor0 WHERE + ( - 91 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * - + col0 + - - 49 + col2 ) <= col0 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE - col2 >= NULL
----
0

query II rowsort
SELECT + 15, 31 AS col0 FROM tab2
----
15
31
15
31
15
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT - SUM( ALL - + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT - SUM ( ALL - + col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT ALL 46 * - col1 AS col2 FROM tab0
----
-3726
-46
-966

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + + 95 + - col2 NOT BETWEEN ( NULL ) AND 74
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 / col2 * + 77 <> NULL
----

query I rowsort
SELECT ( + 86 ) AS col1 FROM tab0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT COUNT( * ) * + 28 AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9650
SELECT COUNT ( * ) * + 28 AS col1 FROM tab0
----
84

query II rowsort
SELECT - col2, + 15 AS col0 FROM tab1
----
-59
15
-68
15
-96
15

query I rowsort
SELECT col0 * + - 82 * - + col2 FROM tab1
----
401472
411230
507416

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) / + CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) / + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 45 * - 66 FROM tab1
----
2970
2970
2970

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - col0 * - - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 64 + col2 AS col1 FROM tab1
----
123
132
160

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE + col0 * - 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT 31 - + 31 * - COUNT( * ) * - - COUNT( + col1 ) FROM tab1
----
310

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT 31 - + 31 * - COUNT ( * ) * - - COUNT ( + col1 ) FROM tab1
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT COUNT( + col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + 63 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9662
SELECT COUNT ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + 63 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col0 FROM tab2 AS cor0 WHERE NOT + col1 - + col1 - - col2 * + - col2 * + - col1 * - ( 90 ) NOT BETWEEN ( + col1 ) AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT - col2 DIV + 79 - - col1 col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9664
SELECT - col2 / + 79 - - col1 col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col0 * col0 - + + ( + + 73 ) * - + ( + 62 ) + col2 * - col1 FROM tab0 cor0
----
-3253
-4982
494

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT + 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-9666
SELECT + COUNT ( * ) - COUNT ( * ) + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9667
SELECT ALL * FROM tab2 WHERE NOT col1 * CAST( 76 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9667
SELECT ALL * FROM tab2 WHERE NOT col1 * CAST ( 76 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - ( col1 ) - - col0 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL 4 + - + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 4 + - + COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT COUNT( * ) + 20 col1 FROM tab1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9670
SELECT DISTINCT COUNT ( * ) + 20 col1 FROM tab1
----
23

query I rowsort
SELECT DISTINCT + - 88 AS col2 FROM tab2 WHERE NOT NULL > + ( + col0 ) * + - col2 + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL + 79 * COUNT( * ) + + 57 FROM tab0 WHERE col0 <> NULL
----
57

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + 79 * COUNT ( * ) + + 57 FROM tab0 WHERE col0 <> NULL
----
57

query I rowsort
SELECT + col0 + - 16 AS col0 FROM tab1
----
35
69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT COUNT( * ) - - COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9674
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) col2 FROM tab0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 73 NOT BETWEEN NULL AND col1
----
46
51
23
75
67
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + MAX( ALL + col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9677
SELECT + MAX ( ALL + col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9678
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9678
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT + ( - MAX( DISTINCT + col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9679
SELECT + ( - MAX ( DISTINCT + col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9680
SELECT DISTINCT COUNT( ALL - ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT COUNT ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + 36 * col2 * - - 51 FROM tab1
----
108324
124848
176256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col0 ) * - - 83 col2 FROM tab0 AS cor0
----
1245
7221
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT - COUNT( ALL + 72 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9683
SELECT - COUNT ( ALL + 72 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9684
SELECT + CAST( - 31 AS SIGNED ), + 29 * + col1 AS col2 FROM tab0 AS cor0
----
-31
2349
-31
29
-31
609

skipif mysql # not compatible
query II rowsort label-9684
SELECT + CAST ( - 31 AS INTEGER ), + 29 * + col1 AS col2 FROM tab0 AS cor0
----
-31
2349
-31
29
-31
609

query I rowsort
SELECT ALL + 27 * 13 * + 23 + - 88 FROM tab2 AS cor0
----
7985
7985
7985

query II rowsort
SELECT ALL - 55, - 50 FROM tab1 WHERE + + col2 + + col0 - + ( 31 ) IN ( + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT ALL CAST( NULL AS SIGNED ) * + + col0 * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL CAST ( NULL AS INTEGER ) * + + col0 * - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT DISTINCT MAX( - col0 ) + 54 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT MAX ( - col0 ) + 54 AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 8 + 99 FROM tab1
----
91

query II rowsort
SELECT ALL - col2 + col2 * - col2 AS col1, 70 FROM tab0
----
-110
70
-2256
70
-9900
70

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE + 13 BETWEEN ( NULL ) AND - ( 27 )
----

query III rowsort
SELECT * FROM tab2 WHERE + + 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 59 col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT 14 * - - col2 * ( col1 ) + ( + 88 ) FROM tab2
----
16510
43208
54492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT ALL col0 * + - CAST( + - col1 AS SIGNED ) FROM tab2 WHERE NOT NULL IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL col0 * + - CAST ( + - col1 AS INTEGER ) FROM tab2 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - col0 + + + 26 AS col0 FROM tab2
----
-20
-38
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT + CAST( + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9697
SELECT + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT 69 * - col2 * - col1 AS col1 FROM tab0 AS cor0
----
14490
262683
6831

query II rowsort
SELECT col1 + 9, + col2 * + 79 AS col0 FROM tab0 AS cor0
----
10
7821
30
790
90
3713

query I rowsort
SELECT - - 25 + - 15 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9701
SELECT DISTINCT - col1 - + col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9701
SELECT DISTINCT - col1 - + col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( - col0 ) * + col2 + - 88 - - - 77 FROM tab0 AS cor0
----
540
705
9438

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL 23 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL 23 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
69

query I rowsort
SELECT + col2 + - col2 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - 65 * + col0 * 59 - - 19 * col2 AND NULL
----

query I rowsort
SELECT ALL - ( - + 60 ) + + 84 + col2 AS col0 FROM tab0
----
154
191
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + SUM( 38 ) FROM tab0 WHERE NOT - - 23 + + + 10 IS NULL
----
114

skipif mysql # not compatible
query I rowsort label-9706
SELECT + SUM ( 38 ) FROM tab0 WHERE NOT - - 23 + + + 10 IS NULL
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col1 FROM tab0
----
32
32
32

query I rowsort
SELECT ALL 87 AS col0 FROM tab0 cor0
----
87
87
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + col1 AND - 71 * - col2 - + 31 + - - col1
----
15
81
47

query I rowsort
SELECT ( - + ( - col1 ) ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9711
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
-3

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE - 64 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + col2 * 20 AS col1 FROM tab0
----
1980
200
940

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + 44 ) + + col1 + col0 - - + col0 + - 57 BETWEEN + col2 AND ( - - col1 )
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT + SUM( col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT + SUM ( col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9716
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 ) / - col1 + - 77 + CAST( NULL AS SIGNED ) / + 42 + 36 + + ( + + col1 ) * + col1 BETWEEN NULL AND ( - + col0 )
----

skipif mysql # not compatible
query III rowsort label-9716
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 ) / - col1 + - 77 + CAST ( NULL AS INTEGER ) / + 42 + 36 + + ( + + col1 ) * + col1 BETWEEN NULL AND ( - + col0 )
----

query II rowsort
SELECT - 90 AS col0, ( + + col2 ) FROM tab0 cor0
----
-90
10
-90
47
-90
99

query I rowsort
SELECT DISTINCT col2 * + col2 + - 50 AS col1 FROM tab2
----
1550
3314
479

query I rowsort
SELECT + col2 * 86 * + ( + col2 ) AS col0 FROM tab0
----
189974
842886
8600

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - COUNT( * ) col1 FROM tab0 WHERE - - col1 IN ( - 10 + + col0 * + + col0 + - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9720
SELECT - COUNT ( * ) col1 FROM tab0 WHERE - - col1 IN ( - 10 + + col0 * + + col0 + - col1 )
----
0

query I rowsort
SELECT ALL 52 + - col2 + + col1 + ( + col2 ) * 33 FROM tab1
----
1945
2275
3138

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT - MIN( - - 23 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - MIN ( - - 23 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT COUNT( + + col0 ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9725
SELECT COUNT ( + + col0 ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT + SUM( + - 38 ) * ( - MIN( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-11058

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + SUM ( + - 38 ) * ( - MIN ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-11058

query I rowsort
SELECT ALL - col0 * + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2116
-4096
-5625

query I rowsort
SELECT + - ( + col1 ) + - col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT - 53 + COUNT( * ) + - COUNT( * ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-9729
SELECT - 53 + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 + - ( col2 ) * + + 2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 + - ( col2 ) * + + 2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT - CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT - CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT - + col0 DIV ( - - col0 ) col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9733
SELECT - + col0 / ( - - col0 ) col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT COUNT( DISTINCT + 36 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9734
SELECT COUNT ( DISTINCT + 36 ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9735
SELECT ALL + 64 AS col1, - COUNT( * ) - + - SUM( DISTINCT col2 ) * + COUNT( * ) * + 67 * + 70 AS col1 FROM tab1
----
64
3137607

skipif mysql # not compatible
query II rowsort label-9735
SELECT ALL + 64 AS col1, - COUNT ( * ) - + - SUM ( DISTINCT col2 ) * + COUNT ( * ) * + 67 * + 70 AS col1 FROM tab1
----
64
3137607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col2 FROM tab2 cor0 WHERE NOT NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT ALL + CAST( - + 97 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL + CAST ( - + 97 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col2 * - col2 + col0 + - 82 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( 14 ) AS col1 FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT MIN( ALL + + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9740
SELECT MIN ( ALL + + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT ALL + 33 AS col2, - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
33
9

skipif mysql # not compatible
query II rowsort label-9741
SELECT ALL + 33 AS col2, - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
33
9

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 < - 54 + col1
----

query I rowsort
SELECT - 84 * + - ( - col0 ) AS col2 FROM tab2
----
-3864
-5376
-6300

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT col2 DIV col2 * - - col0 + - - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-9744
SELECT col2 / col2 * - - col0 + - - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL - ( + MIN( 13 ) ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL - ( + MIN ( 13 ) ) FROM tab2 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT ALL + CAST( - ( + - MAX( - + ( + - col2 ) ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL + CAST ( - ( + - MAX ( - + ( + - col2 ) ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( ( + + col0 ) ) = + col0 + - + 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9749
SELECT + 35 * + - col1 DIV - col1 - + - col0 + - 85 + + - 62 FROM tab0 AS cor0
----
-15
-25
-97

skipif mysql # not compatible
query I rowsort label-9749
SELECT + 35 * + - col1 / - col1 - + - col0 + - 85 + + - 62 FROM tab0 AS cor0
----
-15
-25
-97

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL + 13 + - - col1 + - + 66 AS col2 FROM tab0
----
-32
-52
28

query I rowsort
SELECT DISTINCT + + col2 - 65 AS col0 FROM tab0 AS cor0
----
-18
-55
34

query I rowsort
SELECT ALL - - ( - 64 ) AS col1 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT SUM( + col1 ) * - COUNT( * ) * - CAST( NULL AS SIGNED ) + + + 35 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT SUM ( + col1 ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + + 35 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9755
SELECT - SUM( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9756
SELECT ALL - + COUNT( * ) * - 99 AS col0, - COUNT( * ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
297
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9756
SELECT ALL - + COUNT ( * ) * - 99 AS col0, - COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
297
9

query I rowsort
SELECT col1 * - - col0 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT COUNT( * ) * + MIN( - col0 ) AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT COUNT ( * ) * + MIN ( - col0 ) AS col0 FROM tab1
----
-273

query I rowsort
SELECT col2 * + - 15 AS col0 FROM tab0
----
-1485
-150
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT + col0 DIV 81 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9760
SELECT + col0 / 81 AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - 97 * + - ( - + 37 ) FROM tab1
----
-3589

query I rowsort
SELECT ALL ( col1 ) + - col0 FROM tab0 WHERE NOT col0 + - col0 BETWEEN + col0 + 12 AND + 32 * - col0 / 73
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT SUM( + - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9763
SELECT SUM ( + - col0 ) AS col1 FROM tab2
----
-185

query II rowsort
SELECT 12 AS col0, col1 FROM tab1
----
12
14
12
47
12
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 0 col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT + 87 DIV col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9766
SELECT + 87 / col2 AS col1 FROM tab1
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 68 * col0 + - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9768
SELECT DISTINCT + - col0 DIV 25 * - col0 AS col1, col0 AS col1 FROM tab0 cor0
----
0
15
261
87
291
97

skipif mysql # not compatible
query II rowsort label-9768
SELECT DISTINCT + - col0 / 25 * - col0 AS col1, col0 AS col1 FROM tab0 cor0
----
0
15
261
87
291
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - COUNT( * ) + - + 72 + + + MIN( DISTINCT + col0 ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-9769
SELECT - COUNT ( * ) + - + 72 + + + MIN ( DISTINCT + col0 ) FROM tab0
----
-60

query I rowsort
SELECT + col2 + - col0 - + 76 * 71 * + - 67 - + - 66 + col2 * - - col0 FROM tab1
----
366539
366587
367763

query I rowsort
SELECT - 20 + + 30 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # DIV for integer division: 
query I rowsort label-9772
SELECT DISTINCT - col0 DIV + - 37 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT - col0 / + - 37 FROM tab0 AS cor0
----
0
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * col0 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9774
SELECT * FROM tab2 AS cor0 WHERE CAST( + ( - 76 ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9774
SELECT * FROM tab2 AS cor0 WHERE CAST ( + ( - 76 ) AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 <> 13
----
0

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 <> 13
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - - 14 - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - ( + 57 ) AS col1 FROM tab1 cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 86 + + 9 col0 FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
-1195
-4033
-421

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + COUNT( DISTINCT + - col2 ) * + 12 + - - COUNT( * ) + - 89 col1 FROM tab0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9780
SELECT + COUNT ( DISTINCT + - col2 ) * + 12 + - - COUNT ( * ) + - 89 col1 FROM tab0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9781
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT - col0 - + col2 + col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL - 64 + + - ( + COUNT( * ) ) AS col0 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - 64 + + - ( + COUNT ( * ) ) AS col0 FROM tab0
----
-67

query I rowsort
SELECT - col1 - - + col0 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT - 60 + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9785
SELECT - 60 + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9786
SELECT DISTINCT - SUM( - ( - CAST( NULL AS SIGNED ) ) ) + 55 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - SUM ( - ( - CAST ( NULL AS INTEGER ) ) ) + 55 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 88 > - 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + 78 + 15 * 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 93 FROM tab2 AS cor0
----
-16
-26
-42

query I rowsort
SELECT - col2 * - col1 * - 60 FROM tab1 AS cor0
----
-17700
-191760
-80640

onlyif mysql # DIV for integer division: 
query I rowsort label-9791
SELECT 95 DIV - col1 FROM tab1
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-9791
SELECT 95 / - col1 FROM tab1
----
-19
-2
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 95 col2, - col1 AS col0 FROM tab2
----
-95
-51
-95
-67
-95
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT + COUNT( col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9793
SELECT DISTINCT + COUNT ( col2 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + 13 - + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-9794
SELECT + 13 - + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + - 12 + - + col1 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 12 ) AS col1 FROM tab1 AS cor0
----
-12
-12
-12

query II rowsort
SELECT + 33, col2 FROM tab2 AS cor0
----
33
23
33
40
33
58

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT DISTINCT 70 * + - col0 AS col1 FROM tab1 AS cor0
----
-3570
-5950
-6370

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND 84
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 74 col2, 68 * + + 8 * col1 + - ( + + 46 ) + - col2 + col0 * + 35 FROM tab1 AS cor0
----
74
28639
74
5590
74
9259

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9802
SELECT - CAST( - 51 AS DECIMAL ) * + col2 FROM tab0 AS cor0 WHERE NOT 92 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9802
SELECT - CAST ( - 51 AS REAL ) * + col2 FROM tab0 AS cor0 WHERE NOT 92 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT + 60 * + col0 AS col1 FROM tab2 AS cor0
----
2760
3840
4500

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT ALL + - 31 AS col0, COUNT( 39 ) FROM tab2 AS cor0
----
-31
3

skipif mysql # not compatible
query II rowsort label-9805
SELECT ALL + - 31 AS col0, COUNT ( 39 ) FROM tab2 AS cor0
----
-31
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col0 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT COUNT( * ) * 24 AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT COUNT ( * ) * 24 AS col0 FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-9808
SELECT DISTINCT + col2 DIV + - col2 AS col0, + col0 * + 88 + - + 54 FROM tab1
----
-1
4434
-1
7426
-1
7954

skipif mysql # not compatible
query II rowsort label-9808
SELECT DISTINCT + col2 / + - col2 AS col0, + col0 * + 88 + - + 54 FROM tab1
----
-1
4434
-1
7426
-1
7954

query I rowsort
SELECT DISTINCT + col0 + - 36 AS col0 FROM tab1 WHERE NOT + - 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT DISTINCT + + col1 + - col1 + + col0 - - + CAST( - col1 AS SIGNED ) * - + ( + - 89 ) FROM tab2 AS cor0
----
-4493
-5888
-6789

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + + col1 + - col1 + + col0 - - + CAST ( - col1 AS INTEGER ) * - + ( + - 89 ) FROM tab2 AS cor0
----
-4493
-5888
-6789

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 82 * - col1 NOT BETWEEN + 4 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + col1 ) + - - 79 AS col2 FROM tab2 WHERE 19 = NULL
----

query I rowsort
SELECT 62 + col1 + - col2 - - 43 FROM tab1 AS cor0
----
23
51
84

query I rowsort
SELECT + + ( - col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT 63 + + + col0 FROM tab0 cor0
----
150
160
78

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 * col0 AND col1
----

query I rowsort
SELECT + col0 * col1 + + 5 AS col2 FROM tab1 AS cor0
----
4282
430
719

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9818
SELECT - col2 / - - col0 * + CAST( NULL AS SIGNED ) + col0 - CAST( NULL AS DECIMAL ) * + - col0 * + - 72 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT - col2 / - - col0 * + CAST ( NULL AS INTEGER ) + col0 - CAST ( NULL AS REAL ) * + - col0 * + - 72 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9819
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) > + - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9819
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) > + - ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + col1 / - CAST( - col0 AS SIGNED ) IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + col1 / - CAST ( - col0 AS INTEGER ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT - col0 * - col0 * - col1 + col0 FROM tab2 AS cor0
----
-107870
-315328
-376800

query I rowsort
SELECT ALL + - ( + ( + - 37 ) ) AS col0 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT MIN( + - col0 ) AS col1 FROM tab1 cor0 WHERE NULL <> + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT MIN ( + - col0 ) AS col1 FROM tab1 cor0 WHERE NULL <> + col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9824
SELECT + 0, col0 FROM tab0 WHERE CAST( 63 AS DECIMAL ) + - 73 >= - col1
----
0
15
0
87

skipif mysql # not compatible
query II rowsort label-9824
SELECT + 0, col0 FROM tab0 WHERE CAST ( 63 AS REAL ) + - 73 >= - col1
----
0
15
0
87

query I rowsort
SELECT DISTINCT col1 * - - 45 AS col2 FROM tab0
----
3645
45
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT ALL - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT DISTINCT col0 / + CAST( + + ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT col0 / + CAST ( + + ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL SUM( DISTINCT + ( + - col2 ) ) + + COUNT( * ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL SUM ( DISTINCT + ( + - col2 ) ) + + COUNT ( * ) FROM tab1
----
-220

query II rowsort
SELECT col1 AS col0, + 30 AS col0 FROM tab2
----
51
30
67
30
77
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + col1 + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + col1 + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL MAX( ALL col0 ) FROM tab2 WHERE NOT ( 44 * + 37 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL MAX ( ALL col0 ) FROM tab2 WHERE NOT ( 44 * + 37 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 70 IS NOT NULL AND + 20 * 12 - - 52 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL MAX( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL MAX ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT + - MAX( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9834
SELECT + - MAX ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 - + col2 + col0 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT DISTINCT - COUNT( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT + COUNT( ALL col1 ) * + MAX( ALL - col2 ) * + COUNT( * ) AS col2 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-9837
SELECT + COUNT ( ALL col1 ) * + MAX ( ALL - col2 ) * + COUNT ( * ) AS col2 FROM tab2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT + 70 * - ( - - MAX( ALL + - col1 ) ) FROM tab1
----
350

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT + 70 * - ( - - MAX ( ALL + - col1 ) ) FROM tab1
----
350

query I rowsort
SELECT - 15 * 97 AS col1 FROM tab0
----
-1455
-1455
-1455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT + CAST( + - col2 AS SIGNED ) * + col2 * col2 AS col2 FROM tab1
----
-205379
-314432
-884736

skipif mysql # not compatible
query I rowsort label-9840
SELECT + CAST ( + - col2 AS INTEGER ) * + col2 * col2 AS col2 FROM tab1
----
-205379
-314432
-884736

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col1, col1 AS col2 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT + + col0 * + col2 - - - 49 FROM tab1 WHERE NOT + - 56 IS NOT NULL
----

query I rowsort
SELECT + col1 * + 71 FROM tab1
----
3337
355
994

query I rowsort
SELECT ALL - - 78 AS col1 FROM tab1 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT MAX( DISTINCT - 74 ) AS col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT MAX ( DISTINCT - 74 ) AS col1 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT 1 + - col2 FROM tab2 cor0
----
-22
-39
-57

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( ( NOT + col0 = col0 ) )
----

query I rowsort
SELECT col1 + - + 35 + - ( + col2 ) + - + 51 + - - col2 - - col0 * + col0 AS col0 FROM tab2
----
2081
4087
5606

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9850
SELECT - CAST( NULL AS DECIMAL ) + + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT - CAST ( NULL AS REAL ) + + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 33 + col1 + 75 FROM tab0
----
109
129
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL SUM( - col1 ) + MIN( ALL - 17 ) AS col0 FROM tab1 AS cor0 WHERE NOT 70 * col0 * 58 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL SUM ( - col1 ) + MIN ( ALL - 17 ) AS col0 FROM tab1 AS cor0 WHERE NOT 70 * col0 * 58 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL + - col0 * + 87 FROM tab0 AS cor0
----
-1305
-7569
-8439

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL - COUNT( * ) + + MIN( DISTINCT 99 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - COUNT ( * ) + + MIN ( DISTINCT 99 ) FROM tab0
----
96

query I rowsort
SELECT + 68 + col1 FROM tab2
----
119
135
145

query I rowsort
SELECT col1 + - 9 AS col1 FROM tab0
----
-8
12
72

query I rowsort
SELECT DISTINCT - 69 + + 94 AS col0 FROM tab2
----
25

query I rowsort
SELECT ALL - 19 - col0 FROM tab1
----
-104
-110
-70

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 79 - + col2 AS col2 FROM tab0 AS cor0
----
-20
32
69

query I rowsort
SELECT ALL + - 71 * - + 9 AS col0 FROM tab0 AS cor0
----
639
639
639

query I rowsort
SELECT ( - - 55 ) FROM tab2 AS cor0
----
55
55
55

query II rowsort
SELECT - 41 AS col0, + col2 AS col0 FROM tab0
----
-41
10
-41
47
-41
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT - - 9 / - 83 * - col2 * + col1 * + col2 * - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT - - 9 / - 83 * - col2 * + col1 * + col2 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 60 * - - col2 FROM tab1 AS cor0
----
3540
4080
5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT - CAST( + CAST( + - col1 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - CAST ( + CAST ( + - col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ( - - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 11 col1 FROM tab0 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + col2, 35 FROM tab1 AS cor0
----
59
35
68
35
96
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT MIN( DISTINCT - - 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9872
SELECT MIN ( DISTINCT - - 65 ) FROM tab2 AS cor0
----
65

query I rowsort
SELECT 64 * col2 FROM tab2
----
1472
2560
3712

query I rowsort
SELECT DISTINCT 11 + 56 + + col1 AS col2 FROM tab2
----
118
134
144

query I rowsort
SELECT DISTINCT + 60 + 27 AS col2 FROM tab1 WHERE NOT + ( + - col0 ) NOT BETWEEN + col1 AND - 51
----

query I rowsort
SELECT + col2 * + + col1 * - 93 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-124992
-27435
-297228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col2 FROM tab0 WHERE NOT NULL >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + - ( col1 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 * col0 * - 74 col2 FROM tab1 AS cor0
----
-196248
-327080
-350168

onlyif mysql # DIV for integer division: 
query II rowsort label-9880
SELECT + - col1 * + - 69, ( + + 88 ) DIV - ( + col2 ) AS col0 FROM tab2 AS cor0
----
3519
-3
4623
-1
5313
-2

skipif mysql # not compatible
query II rowsort label-9880
SELECT + - col1 * + - 69, ( + + 88 ) / - ( + col2 ) AS col0 FROM tab2 AS cor0
----
3519
-3
4623
-1
5313
-2

query I rowsort
SELECT ALL + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + 7 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9883
SELECT + 7 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - + 28 * + ( col2 ) FROM tab2 cor0
----
-1120
-1624
-644

query I rowsort
SELECT DISTINCT 17 - col0 FROM tab2 AS cor0
----
-29
-47
-58

query I rowsort
SELECT DISTINCT 92 + + col2 AS col1 FROM tab0 cor0
----
102
139
191

onlyif mysql # DIV for integer division: 
query I rowsort label-9887
SELECT DISTINCT col1 DIV + col1 + + + 54 col1 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9887
SELECT DISTINCT col1 / + col1 + + + 54 col1 FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL - COUNT( * ) * + - 62 AS col1 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - COUNT ( * ) * + - 62 AS col1 FROM tab2
----
186

query I rowsort
SELECT ALL + 11 * 20 FROM tab1 WHERE - + ( - col1 ) * - + 75 IS NOT NULL
----
220
220
220

query I rowsort
SELECT col1 * + col0 * + 38 AS col0 FROM tab1
----
16150
162526
27132

query I rowsort
SELECT DISTINCT 31 * + 34 FROM tab2
----
1054

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9892
SELECT ALL + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 35 AS col1 FROM tab0 AS cor0
----
1645
3465
350

query I rowsort
SELECT ALL - 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query III rowsort
SELECT * FROM tab1 WHERE NOT - 0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT - 3 / + 14 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - 3 / + 14 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9897
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9897
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + col1 AS REAL ) IS NULL
----

query I rowsort
SELECT 92 * - col2 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9899
SELECT 33 * - - 85 * + + 72 * - - SUM( DISTINCT + CAST( ( col1 ) AS SIGNED ) ) FROM tab0
----
20801880

skipif mysql # not compatible
query I rowsort label-9899
SELECT 33 * - - 85 * + + 72 * - - SUM ( DISTINCT + CAST ( ( col1 ) AS INTEGER ) ) FROM tab0
----
20801880

onlyif mysql # DIV for integer division: 
query I rowsort label-9900
SELECT DISTINCT - col2 DIV - - 99 * 74 + - 81 DIV + 16 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - col2 / - - 99 * 74 + - 81 / + 16 FROM tab1
----
-5

query II rowsort
SELECT - col2 AS col0, - col0 AS col2 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT + MAX( ALL col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9902
SELECT + MAX ( ALL col1 ) col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT + COUNT( * ) + - MIN( ALL col0 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT + COUNT ( * ) + - MIN ( ALL col0 ) FROM tab2
----
-43

query II rowsort
SELECT ALL 15 * + - col2 + - col2 + - col0 * - col2 + - 41, 56 AS col2 FROM tab0 AS cor0
----
-88
56
669
56
7978
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL 91 - + COUNT( * ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL 91 - + COUNT ( * ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT ALL - col2 - + col0 + + - col0 AS col2 FROM tab0 cor0
----
-184
-293
-77

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 57 * - 49 * + col1 * 72 - - ( 45 ) FROM tab0 AS cor0
----
16288821
201141
4223061

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT ALL + col1 DIV - - col0 - - col1 FROM tab2 AS cor0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL + col1 / - - col0 - - col1 FROM tab2 AS cor0
----
52
67
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 34 * + - col1 - + + col2 + + + col0 col1 FROM tab2 AS cor0
----
167576
170867
79787

query II rowsort
SELECT ALL 47 + - - col0, 86 FROM tab1 WHERE NOT ( + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT DISTINCT + MAX( ALL - 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT + MAX ( ALL - 2 ) FROM tab1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT + 6 * - CAST( + 70 AS SIGNED ) * - - col0 FROM tab2
----
-19320
-26880
-31500

skipif mysql # not compatible
query I rowsort label-9913
SELECT + 6 * - CAST ( + 70 AS INTEGER ) * - - col0 FROM tab2
----
-19320
-26880
-31500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9914
SELECT SUM( + col0 ) DIV - 72, 14 col1 FROM tab0
----
-2
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9914
SELECT SUM ( + col0 ) / - 72, 14 col1 FROM tab0
----
-2
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9915
SELECT DISTINCT 28 AS col0, COUNT( * ) AS col2 FROM tab2
----
28
3

skipif mysql # not compatible
query II rowsort label-9915
SELECT DISTINCT 28 AS col0, COUNT ( * ) AS col2 FROM tab2
----
28
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9917
SELECT ALL - COUNT( * ), + SUM( - col1 ) AS col1 FROM tab0
----
-3
-103

skipif mysql # not compatible
query II rowsort label-9917
SELECT ALL - COUNT ( * ), + SUM ( - col1 ) AS col1 FROM tab0
----
-3
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT ALL + COUNT( - col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL + COUNT ( - col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 68 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
-68
-68
-68

query II rowsort
SELECT DISTINCT + 18 AS col2, 10 FROM tab0 AS cor0
----
18
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT ALL CAST( NULL AS SIGNED ) * - 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL CAST ( NULL AS INTEGER ) * - 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 * - col0 AS col1 FROM tab1 AS cor0
----
1001
561
935

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9923
SELECT DISTINCT - + 58 + CAST( NULL AS SIGNED ) - - + ( ( - 11 ) ) AS col1, ( + 12 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
12

skipif mysql # not compatible
query II rowsort label-9923
SELECT DISTINCT - + 58 + CAST ( NULL AS INTEGER ) - - + ( ( - 11 ) ) AS col1, ( + 12 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9924
SELECT ALL - + CAST( NULL AS DECIMAL ) * + + col2 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-9924
SELECT ALL - + CAST ( NULL AS REAL ) * + + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT CAST( - col1 AS SIGNED ) DIV + + 11 FROM tab0 cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / + + 11 FROM tab0 cor0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT - 70 * + SUM( + col2 ) + + - 33 AS col0 FROM tab1 cor0
----
-15643

skipif mysql # not compatible
query I rowsort label-9926
SELECT - 70 * + SUM ( + col2 ) + + - 33 AS col0 FROM tab1 cor0
----
-15643

query I rowsort
SELECT - 80 * col0 * - col2 FROM tab0 AS cor0
----
56400
69600
768240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT ALL - 82 + + CAST( - 55 AS SIGNED ) FROM tab1 AS cor0
----
-137
-137
-137

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - 82 + + CAST ( - 55 AS INTEGER ) FROM tab1 AS cor0
----
-137
-137
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + COUNT( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9929
SELECT + COUNT ( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9930
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - + CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9930
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - + CAST ( + col1 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT MAX( + 47 ) + - ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-9931
SELECT MAX ( + 47 ) + - ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
44

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE col0 > NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE - - col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + 65 + 76 FROM tab2
----
141
141
141

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9936
SELECT DISTINCT - 61 DIV - CAST( - col0 AS SIGNED ) + + - col0 AS col1 FROM tab1
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT - 61 / - CAST ( - col0 AS INTEGER ) + + - col0 AS col1 FROM tab1
----
-52
-85
-91

query I rowsort
SELECT 20 + - 24 AS col2 FROM tab1
----
-4
-4
-4

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE + col1 BETWEEN - 42 AND ( + ( col1 ) )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 43 + + col1 + col1 AS col0 FROM tab0 WHERE + + 83 + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 43 + + col1 + col1 AS col0 FROM tab0 WHERE + + 83 + - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT ALL + - 70 + - col1 * + 60 + - col2 FROM tab0 WHERE - col2 * - + col0 + + CAST( 2 AS SIGNED ) + + + 78 IS NOT NULL
----
-1340
-229
-4977

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + - 70 + - col1 * + 60 + - col2 FROM tab0 WHERE - col2 * - + col0 + + CAST ( 2 AS INTEGER ) + + + 78 IS NOT NULL
----
-1340
-229
-4977

query I rowsort
SELECT + 72 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT COUNT( DISTINCT 28 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9942
SELECT COUNT ( DISTINCT 28 ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 96 col1 FROM tab2 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT 58 + + COUNT( * ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-9944
SELECT 58 + + COUNT ( * ) FROM tab1
----
61

query I rowsort
SELECT + 57 + - + 29 FROM tab0
----
28
28
28

query I rowsort
SELECT - + 61 + col0 AS col0 FROM tab1 AS cor0
----
-10
24
30

query I rowsort
SELECT DISTINCT - - ( - + col2 ) - col0 FROM tab2 AS cor0
----
-104
-133
-69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + + col2 * - col0 / - + 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 * - + col0, col1 AS col2 FROM tab0
----
-225
81
-7569
21
-9409
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 + - - col1 NOT BETWEEN NULL AND + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + 5 * COUNT( * ) * - 17 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-9951
SELECT + 5 * COUNT ( * ) * - 17 FROM tab1
----
-255

query II rowsort
SELECT - 23 * col2 AS col0, ( + 4 ) FROM tab0
----
-1081
4
-2277
4
-230
4

query II rowsort
SELECT DISTINCT col2 * + 14, - col2 + + ( + + col2 ) AS col1 FROM tab2
----
322
0
560
0
812
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT - + col0 * 71 DIV + col2 AS col0 FROM tab2 cor0
----
-113
-142
-91

skipif mysql # not compatible
query I rowsort label-9955
SELECT - + col0 * 71 / + col2 AS col0 FROM tab2 cor0
----
-113
-142
-91

query II rowsort
SELECT 81 AS col2, + 78 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to e0ae6e3b7b686b20a3ae698dbf63bf92

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL + ( + + COUNT( - + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL + ( + + COUNT ( - + col0 ) ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT ALL - - 29 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL - - 29 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT col2 DIV + 81 col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9959
SELECT col2 / + 81 col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL COUNT( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9960
SELECT ALL COUNT ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL col2, - 23 FROM tab1 AS cor0
----
59
-23
68
-23
96
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL + + ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + + ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 49 * + col2 AS col0 FROM tab1 AS cor0
----
-2891
-3332
-4704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 10 col1, + col1 * col2 * + - col2 FROM tab2 AS cor0
----
10
-123200
10
-225388
10
-26979

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 = col0 * - col2 * + col0 * col0 + - col1 * + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 87 * + - 31 + + col2 <> NULL
----

query I rowsort
SELECT ( - - 32 ) FROM tab1
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL 29 * + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL 29 * + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 36 col1 FROM tab2
----
15
31
41

query I rowsort
SELECT ALL - 30 + + col1 + + + 26 * - - 4 * + - 0 * - - 18 * - 4 FROM tab2
----
21
37
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - col2 * + 81 + + + col2 * 3 + + - col0 FROM tab1
----
-4682
-5348
-7525

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - col2 * + 81 + + + col2 * 3 + + - col0 FROM tab1
----
-4682
-5348
-7525

query I rowsort
SELECT + 76 + + ( + ( - col2 ) ) AS col0 FROM tab2
----
18
36
53

query I rowsort
SELECT + 94 + + col0 - - + ( 30 ) AS col1 FROM tab1
----
175
209
215

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT DISTINCT col1 + - + col0 + + col2 DIV col2 * - + col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT col1 + - + col0 + + col2 / col2 * - + col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9975
SELECT COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * 62 < - 2 * 66 + - - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL + SUM( DISTINCT + 94 ) AS col2 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL + SUM ( DISTINCT + 94 ) AS col2 FROM tab0 AS cor0
----
94

query II rowsort
SELECT ALL + col0 AS col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT MAX( ALL + 74 ) FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-9979
SELECT MAX ( ALL + 74 ) FROM tab0 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT DISTINCT SUM( ALL - - col0 ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT DISTINCT SUM ( ALL - - col0 ) col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - 80
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9982
SELECT ALL - CAST( NULL AS DECIMAL ) * 55 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - CAST ( NULL AS REAL ) * 55 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2, + col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL + 5 * - 90 FROM tab2
----
-450
-450
-450

query I rowsort
SELECT ALL + + 43 + + - 12 FROM tab1 WHERE NOT + + 23 < - + col0 * - 36
----

query I rowsort
SELECT + col2 + + col0 * + 38 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9987
SELECT DISTINCT col0, - col1 + + + ( + 41 ) DIV col2 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
query II rowsort label-9987
SELECT DISTINCT col0, - col1 + + + ( + 41 ) / col2 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL CAST( AVG ( DISTINCT + - 40 ) AS SIGNED ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL CAST ( AVG ( DISTINCT + - 40 ) AS INTEGER ) FROM tab0
----
-40

query I rowsort
SELECT ALL ( + + col1 ) AS col2 FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT - + 61 AS col0, 7 + + col1 AS col2 FROM tab2 cor0
----
-61
58
-61
74
-61
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9991
SELECT ALL * FROM tab0 WHERE NOT + - col2 * + - col0 * + col0 + - ( CAST( + col1 AS SIGNED ) ) / + 16 * - 77 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9991
SELECT ALL * FROM tab0 WHERE NOT + - col2 * + - col0 * + col0 + - ( CAST ( + col1 AS INTEGER ) ) / + 16 * - 77 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ALL 94 + + 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afb14c7b1dc8c7b4f69c45a9b5a921ae

query I rowsort
SELECT - 5 * - - 48 FROM tab1
----
-240
-240
-240

query I rowsort
SELECT + col1 + - - col2 + col2 AS col2 FROM tab2 AS cor0
----
157
183
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9996
SELECT 53 + - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-9996
SELECT 53 + - col1 / - col0 AS col2 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT DISTINCT - + 88 DIV + col0 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT - + 88 / + col0 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT + + 27 * - SUM( col2 ) FROM tab0 cor0
----
-4212

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + + 27 * - SUM ( col2 ) FROM tab0 cor0
----
-4212

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + col0 <= NULL
----

