sqllogictest
Artifact Content
Not logged in

Artifact df09652156d4cf271b83395dec237b811ac46184:


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
----