sqllogictest
Artifact Content
Not logged in

Artifact afd47e6f2533fb567c422ddbd792fcc78d0fd122:


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)

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

skipif mysql # not compatible
query II rowsort label-0
SELECT ALL + MAX ( 88 ) AS col0, - COUNT ( * ) FROM tab1
----
88
-3

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 67 < 16 * + col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + - 80 + + col2 FROM tab1 AS cor0
----
-103
-106
-35

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

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

query I rowsort
SELECT - 68 + + 42 AS col2 FROM tab1
----
-26
-26
-26

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL = - 27
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT - COUNT( * ) + + 28 AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-10
SELECT - COUNT ( * ) + + 28 AS col1 FROM tab1
----
25

query I rowsort
SELECT ALL - 83 * + - col0 * + col2 FROM tab1
----
406368
416245
513604

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT DISTINCT 28 + COUNT( * ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT 28 + COUNT ( * ) AS col2 FROM tab2
----
31

query I rowsort
SELECT DISTINCT 21 * + col2 AS col2 FROM tab2 WHERE - col2 > 97 + - - ( + 6 )
----

query I rowsort
SELECT DISTINCT 59 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + 28 + - col0 + - col2 * - - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-150331
-1588
-18895

query I rowsort
SELECT DISTINCT + col1 - + - col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - ( - col2 ) * - - 59 AS col2 FROM tab1 AS cor0
----
3481
4012
5664

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

query I rowsort
SELECT 19 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-21
SELECT - 58 * - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

query I rowsort
SELECT + 59 + + 23 FROM tab0 AS cor0 WHERE NOT col2 IN ( + 84 + + col2 + + col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT DISTINCT + - 97 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT + - 97 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-291

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

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT MAX( DISTINCT - 65 ) col1 FROM tab1
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-26
SELECT MAX ( DISTINCT - 65 ) col1 FROM tab1
----
-65

query I rowsort
SELECT ALL 5 AS col2 FROM tab1 WHERE + col1 IN ( - + 74 * - col0, 50, + 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-28
SELECT ALL * FROM tab0 WHERE + + CAST( col1 AS SIGNED ) * - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-28
SELECT ALL * FROM tab0 WHERE + + CAST ( col1 AS INTEGER ) * - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 44 * + col2, - col1 AS col1 FROM tab2 AS cor0
----
-1012
-51
-1760
-77
-2552
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL + 71 + + - COUNT( * ) + - COUNT( - col0 ) col0 FROM tab0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-31
SELECT ALL + 71 + + - COUNT ( * ) + - COUNT ( - col0 ) col0 FROM tab0
----
65

query I rowsort
SELECT ALL col0 + + 9 AS col1 FROM tab0
----
106
24
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col1 FROM tab0 AS cor0 WHERE - col0 - + + col2 IS NOT NULL
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < + 11 + + 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 91 + - 6, 35 col2 FROM tab2 AS cor0
----
85
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT SUM( - col0 ) + + - SUM( DISTINCT - + col1 ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-37
SELECT SUM ( - col0 ) + + - SUM ( DISTINCT - + col1 ) FROM tab0 cor0
----
-96

query I rowsort
SELECT + + 82 + - - col1 + - col2 * - col1 * + col0 * + col0 FROM tab2 AS cor0
----
12615839
21858899
2482201

query I rowsort
SELECT DISTINCT + - ( - + col1 ) + + col0 - + col0 + - + 62 * - + col1 AS col0 FROM tab0 AS cor0
----
1323
5103
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 40 NOT BETWEEN + 52 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL - 10 * - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL - 10 * - COUNT ( * ) FROM tab0
----
30

query I rowsort
SELECT ALL col0 * - 44 * - col0 FROM tab0
----
333036
413996
9900

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

query I rowsort
SELECT ALL - ( col2 ) AS col1 FROM tab2 WHERE NOT NULL < - - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT ALL + col1 * + 95 AS col0 FROM tab1 WHERE NOT ( NOT - ( - + col2 ) / - - col1 - - CAST( + 59 AS SIGNED ) IS NOT NULL )
----
1330
4465
475

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + col1 * + 95 AS col0 FROM tab1 WHERE NOT ( NOT - ( - + col2 ) / - - col1 - - CAST ( + 59 AS INTEGER ) IS NOT NULL )
----
1330
4465
475

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

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

query I rowsort
SELECT DISTINCT - 27 + col1 * - col1 * - - 31 FROM tab2 AS cor0
----
-139186
-183826
-80658

query I rowsort
SELECT ( + col1 ) - col2 FROM tab0
----
-98
11
34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-52
SELECT DISTINCT CAST( MIN( DISTINCT + col0 ) AS SIGNED ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT CAST ( MIN ( DISTINCT + col0 ) AS INTEGER ) FROM tab1
----
51

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NOT ( - 83 ) BETWEEN ( NULL ) AND NULL
----

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

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

query I rowsort
SELECT - col1 * - col0 FROM tab2 WHERE NOT col1 + col2 * + 67 IS NULL
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 WHERE + 82 * - col2 - col2 IS NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 >= ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT col1 + ( - 19 ) / col1 AS col2 FROM tab2 WHERE 77 + col0 * + col2 <= ( 2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 < ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT MIN( ALL + 39 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT MIN ( ALL + 39 ) AS col1 FROM tab2
----
39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col2 FROM tab0 WHERE ( + 62 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT DISTINCT 89 * COUNT( * ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT 89 * COUNT ( * ) FROM tab0
----
267

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

query I rowsort
SELECT 85 * - 18 + - col0 FROM tab2 AS cor0
----
-1576
-1594
-1605

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab2 cor0
----
95

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + - 32 FROM tab0 AS cor0
----
-11
-31
49

query I rowsort
SELECT ALL + + col1 * - col1 - col0 AS col1 FROM tab2 AS cor0
----
-2647
-4564
-5993

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + 65
----

query I rowsort
SELECT DISTINCT + 60 - - 64 FROM tab1 AS cor0
----
124

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL - - SUM( ALL + col0 ) - 11 AS col2 FROM tab0 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - - SUM ( ALL + col0 ) - 11 AS col2 FROM tab0 AS cor0
----
188

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

query I rowsort
SELECT - 8 + col1 AS col1 FROM tab1
----
-3
39
6

query I rowsort
SELECT col2 + col1 + - 24 * col1 AS col1 FROM tab0
----
-1816
-473
76

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

query I rowsort
SELECT + 74 + col2 + col2 * col0 FROM tab2
----
1155
2674
4482

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

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

query I rowsort
SELECT ( + col0 ) + - 31 AS col1 FROM tab1
----
20
54
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * - col2 + 95 col0 FROM tab1
----
-128929
-17310
-217233

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL - - 69 - + COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - - 69 - + COUNT ( * ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL + col0 * + - 85 + col1 * col2 FROM tab2 AS cor0
----
-2360
-2489
-2737

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 43 IS NULL
----

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

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

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

query I rowsort
SELECT - 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL 33 - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL 33 - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-104
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - col2 + - CAST( NULL AS SIGNED ) ) IN ( 13 ) OR 66 IS NULL
----

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - col2 + - CAST ( NULL AS INTEGER ) ) IN ( 13 ) OR 66 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT - MIN( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT - MIN ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT col1 DIV - - 65 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-107
SELECT col1 / - - 65 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - 47 * col0 - - col1 FROM tab0 AS cor0
----
-4068
-4558
-624

query I rowsort
SELECT - col2 * - + 35 FROM tab0 AS cor0
----
1645
3465
350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 * + - 36 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 86 + col1 < + col1 + + ( + 83 + + col1 / + 66 )
----

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

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

query I rowsort
SELECT col0 * col1 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT ALL - col2 + + + col0 AS col0 FROM tab2
----
17
23
24

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

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

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

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

query II rowsort
SELECT ALL - col1 + + col1 AS col2, + col1 * - 68 AS col0 FROM tab1 cor0
----
0
-3196
0
-340
0
-952

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-122
SELECT ALL + CAST( - + col0 AS SIGNED ) + - col0 + - 49 FROM tab2 AS cor0
----
-141
-177
-199

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL + CAST ( - + col0 AS INTEGER ) + - col0 + - 49 FROM tab2 AS cor0
----
-141
-177
-199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 > + 22 + + - 53 + + col2 * 96
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT DISTINCT - + 4 DIV + + 94 * - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT - + 4 / + + 94 * - col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT + MIN( - 92 ) * + AVG ( + col0 / + 30 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT + MIN ( - 92 ) * + AVG ( + col0 / + 30 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT 23 DIV - col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-126
SELECT 23 / - col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT - - 4 / 1 AS col0 FROM tab0 WHERE ( - + col1 ) IS NULL
----

query I rowsort
SELECT ALL - - col2 - - 5 AS col0 FROM tab0 cor0
----
104
15
52

query I rowsort
SELECT - col0 + - 60 + + col0 FROM tab2 cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-130
SELECT + col1 / - 77 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col0 * + ( - - CAST( + + col1 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-130
SELECT + col1 / - 77 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col0 * + ( - - CAST ( + + col1 AS INTEGER ) ) AND NULL
----

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

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

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

query I rowsort
SELECT col1 - + - col1 AS col1 FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT 27 DIV + 30 - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-134
SELECT 27 / + 30 - col2 AS col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT ALL + MIN( ALL col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-136
SELECT ALL + MIN ( ALL col2 ) col1 FROM tab0
----
10

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 10 AS col2, 63 col2 FROM tab1
----
10
63
10
63
10
63

query II rowsort
SELECT ALL - 56 AS col0, - col2 * - 77 FROM tab2 AS cor0
----
-56
1771
-56
3080
-56
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT - col2 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT - col2 <= + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - + 75 AS col2, 6 * + ( - + 39 ) AS col1 FROM tab2 AS cor0
----
-75
-234

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

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ALL + COUNT( * ) + - 89 - + 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-175

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL + COUNT ( * ) + - 89 - + 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-175

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 >= + 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 75 NOT BETWEEN + 54 AND col2
----
97
1
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT - CAST( NULL AS SIGNED ) * - col1 + ( + col0 ) + + col0 + + 84 * col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-148
SELECT - CAST ( NULL AS INTEGER ) * - col1 + ( + col0 ) + + col0 + + 84 * col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 80 ) + - 10 + + 86 + col1 FROM tab1
----
1
10
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT ALL COUNT( * ) + SUM( ALL - col1 ) * + 75 FROM tab2
----
-14622

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL COUNT ( * ) + SUM ( ALL - col1 ) * + 75 FROM tab2
----
-14622

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-153
SELECT DISTINCT - col1 * - CAST( - col0 AS SIGNED ), 35 * + col1 + + - ( + - ( - 78 ) ) col2 FROM tab0 cor0
----
-1215
2757
-1827
657
-97
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-153
SELECT DISTINCT - col1 * - CAST ( - col0 AS INTEGER ), 35 * + col1 + + - ( + - ( - 78 ) ) col2 FROM tab0 cor0
----
-1215
2757
-1827
657
-97
-43

query I rowsort
SELECT DISTINCT - ( col1 ) + - 86 AS col1 FROM tab2 AS cor0
----
-137
-153
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col0 col1 FROM tab0
----
-705
-870
-9603

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

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

query I rowsort
SELECT DISTINCT + ( col0 ) + + 94 * + col1 + 26 FROM tab0 AS cor0
----
2087
217
7655

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

skipif mysql # not compatible
query I rowsort label-158
SELECT col1 - - + 5 / - 59 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT ALL col1 - - + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT DISTINCT - COUNT( * ) AS col0, - 3 + 54 FROM tab2
----
-3
51

skipif mysql # not compatible
query II rowsort label-164
SELECT DISTINCT - COUNT ( * ) AS col0, - 3 + 54 FROM tab2
----
-3
51

query I rowsort
SELECT DISTINCT + 70 - + - col0 AS col1 FROM tab2 WHERE NOT + + col0 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT + - ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-168
SELECT + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab2 WHERE NOT + 8 + + - col0 IN ( - - 33, + col1 )
----
23
40
58

query I rowsort
SELECT + col1 * + col2 * - 47 AS col2 FROM tab2 cor0
----
-144760
-182642
-55131

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

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) + + 25 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 88 FROM tab2 AS cor0 WHERE NOT + 41 IS NULL
----
-88
-88
-88

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

query I rowsort
SELECT DISTINCT + - 70 + + + col0 AS col2 FROM tab1 WHERE NOT + + 80 NOT IN ( + col2, - ( - 14 ), col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-175
SELECT - COUNT( * ) DIV - 54 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-175
SELECT - COUNT ( * ) / - 54 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col1 + - 65 - + col2 * - 52 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 97 - col0 AS col2 FROM tab1 AS cor0
----
-148
-182
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + 19 + COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-178
SELECT + 19 + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
25

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 23 - 52 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-180
SELECT + CAST( NULL AS DECIMAL ) + + 61 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT + CAST ( NULL AS REAL ) + + 61 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 58 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 95 col0 FROM tab0 AS cor0
----
110
182
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT ALL + col0 * - col1 * 78 * + CAST( + + col2 AS SIGNED ) * - col2 + - + col0 FROM tab1 AS cor0
----
115395065
1542594053
513257421

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL + col0 * - col1 * 78 * + CAST ( + + col2 AS INTEGER ) * - col2 + - + col0 FROM tab1 AS cor0
----
115395065
1542594053
513257421

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-185
SELECT DISTINCT - ( - col1 ) - CAST( + 10 AS SIGNED ) * 8 AS col1 FROM tab2 AS cor0
----
-13
-29
-3

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - ( - col1 ) - CAST ( + 10 AS INTEGER ) * 8 AS col1 FROM tab2 AS cor0
----
-13
-29
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-186
SELECT - col0, + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-186
SELECT - col0, + col2 / col0 AS col2 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

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

query I rowsort
SELECT - 51 * - - 23 + + - 58 AS col1 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT DISTINCT - SUM( + col2 ) * - 71 AS col0 FROM tab2
----
8591

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT - SUM ( + col2 ) * - 71 AS col0 FROM tab2
----
8591

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= 70 OR NOT + + col2 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 19 = 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 82 * - + col2 FROM tab1 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT 25 * + 54 AS col2 FROM tab0
----
1350
1350
1350

onlyif mysql # DIV for integer division: 
query II rowsort label-194
SELECT ALL 51 DIV + - 67, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-194
SELECT ALL 51 / + - 67, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

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

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

query I rowsort
SELECT + 30 * + col1 * + - 30 AS col1 FROM tab1 AS cor0
----
-12600
-42300
-4500

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

query II rowsort
SELECT + 78 - + - 54, col0 FROM tab0 WHERE NOT + - ( 48 ) + + col0 - - 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( + col1 ) OR + 51 / 42 <= + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-200
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 51 ) / + - col1 + - CAST( + ( - + col2 ) AS DECIMAL ) - col2 BETWEEN ( NULL ) AND ( col0 * ( + ( col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-200
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 51 ) / + - col1 + - CAST ( + ( - + col2 ) AS REAL ) - col2 BETWEEN ( NULL ) AND ( col0 * ( + ( col2 ) ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT - 30 DIV + + 33 + + col0 + + + col1 col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-203
SELECT - 30 / + + 33 + + col0 + + + col1 col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT + 49 + - SUM( ( + col0 ) ) + - 59 AS col2 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-204
SELECT + 49 + - SUM ( ( + col0 ) ) + - 59 AS col2 FROM tab1
----
-237

query I rowsort
SELECT + col1 + col0 - - col2 * + col1 AS col1 FROM tab1
----
1409
3334
385

query I rowsort
SELECT 49 * + col2 + + col2 FROM tab2
----
1150
2000
2900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-207
SELECT ALL - 10 + + - CAST( - col1 AS SIGNED ) DIV + 76 FROM tab1
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL - 10 + + - CAST ( - col1 AS INTEGER ) / + 76 FROM tab1
----
-10
-10
-10

query II rowsort
SELECT - - col2, + col2 + + col1 * + col0 * + - col0 AS col1 FROM tab1 AS cor0
----
59
-36066
68
-389139
96
-36318

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

query II rowsort
SELECT ALL col1 * - col2, - col1 AS col1 FROM tab1
----
-1344
-14
-295
-5
-3196
-47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT ALL - col2 DIV + - 47 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - col2 / + - 47 FROM tab2 cor0
----
0
0
1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 31 * - - 19 + col2 col2 FROM tab2 AS cor0
----
-531
-549
-566

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT MIN( - + 18 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-216
SELECT MIN ( - + 18 ) FROM tab0
----
-18

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - + 57 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 1 AS col1, col2 + + col1 col1 FROM tab1 AS cor0
----
1
110
1
115
1
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT - SUM( ALL + 32 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-221
SELECT - SUM ( ALL + 32 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-222
SELECT DISTINCT - col0 DIV - + col2 + - col1 + + ( + col0 ) AS col0, + 53 DIV + + col1 FROM tab0 AS cor0
----
-66
0
74
2
96
53

skipif mysql # not compatible
query II rowsort label-222
SELECT DISTINCT - col0 / - + col2 + - col1 + + ( + col0 ) AS col0, + 53 / + + col1 FROM tab0 AS cor0
----
-66
0
74
2
96
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT ALL - - MAX( ALL - col0 ) DIV + MAX( + col0 ) + - + 9 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - - MAX ( ALL - col0 ) / + MAX ( + col0 ) + - + 9 FROM tab2 AS cor0
----
-9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 96 ) + col0 col1 FROM tab0 AS cor0
----
111
183
193

query I rowsort
SELECT DISTINCT - + 62 AS col1 FROM tab1 AS cor0
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT + 33 * - + SUM( ALL + col0 ) * + + 92 FROM tab0 AS cor0
----
-604164

skipif mysql # not compatible
query I rowsort label-228
SELECT + 33 * - + SUM ( ALL + col0 ) * + + 92 FROM tab0 AS cor0
----
-604164

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

query I rowsort
SELECT ALL - 27 + col0 AS col0 FROM tab1
----
24
58
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-231
SELECT ALL * FROM tab0 AS cor0 WHERE + + CAST( - - col0 AS SIGNED ) IS NOT NULL AND NOT NULL = NULL
----

skipif mysql # not compatible
query III rowsort label-231
SELECT ALL * FROM tab0 AS cor0 WHERE + + CAST ( - - col0 AS INTEGER ) IS NOT NULL AND NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-232
SELECT + CAST( NULL AS DECIMAL ) + - + 96 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT + CAST ( NULL AS REAL ) + - + 96 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= - + 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-234
SELECT ALL - + ( - COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

skipif mysql # not compatible
query I rowsort label-235
SELECT - COUNT ( * ) * - AVG ( - col0 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT - 37 DIV + COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-236
SELECT - 37 / + COUNT ( * ) FROM tab2 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 29 / col2 * + 40 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - 93 * col0 AS col1 FROM tab2 AS cor0
----
218178
458304
467325

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT DISTINCT MAX( + col1 ) col2 FROM tab0 AS cor0 WHERE 55 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-241
SELECT DISTINCT MAX ( + col1 ) col2 FROM tab0 AS cor0 WHERE 55 IS NULL
----
NULL

query II rowsort
SELECT - 30, + col2 AS col0 FROM tab2 AS cor0
----
-30
23
-30
40
-30
58

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL COUNT( * ) * - 36 col0 FROM tab1
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-243
SELECT ALL COUNT ( * ) * - 36 col0 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT 99 * - - COUNT( * ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-244
SELECT 99 * - - COUNT ( * ) AS col2 FROM tab0
----
297

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT DISTINCT + MIN( DISTINCT - - col1 ) * - 6 AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT + MIN ( DISTINCT - - col1 ) * - 6 AS col2 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 NOT BETWEEN - 91 - + col0 AND + - col2 + + 86 )
----
46
51
23

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

skipif mysql # not compatible
query I rowsort label-248
SELECT + CAST ( - + 49 AS INTEGER ) AS col0 FROM tab2
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT - 21 + + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT - 21 + + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + 66 AS col1, + col0 + col2 col2 FROM tab1 WHERE - col0 + col0 - + ( - - col2 ) * col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL + CAST( - 96 AS SIGNED ) + 97 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + CAST ( - 96 AS INTEGER ) + 97 FROM tab1 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT DISTINCT - - col0 - + - 95 AS col1 FROM tab2 AS cor0
----
141
159
170

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT col0 + - 9 DIV + 98 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-255
SELECT col0 + - 9 / + 98 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT col2 - + - ( ( - 46 ) ) FROM tab1
----
13
22
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-257
SELECT ALL + MIN( ALL CAST( col0 AS SIGNED ) ) FROM tab0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT DISTINCT - MIN( DISTINCT - col1 ) + + 54 AS col0 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT - MIN ( DISTINCT - col1 ) + + 54 AS col0 FROM tab2
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT ( col0 ) DIV + - 46 + - + 70 AS col1 FROM tab0
----
-70
-71
-72

skipif mysql # not compatible
query I rowsort label-259
SELECT ( col0 ) / + - 46 + - + 70 AS col1 FROM tab0
----
-70
-71
-72

query I rowsort
SELECT + col2 + + - col1 AS col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-261
SELECT ALL 53, - COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
53
-9

skipif mysql # not compatible
query II rowsort label-261
SELECT ALL 53, - COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
53
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT ALL col0 DIV col2 + - + col1 + - col2 FROM tab0
----
-100
-128
-23

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL col0 / col2 + - + col1 + - col2 FROM tab0
----
-100
-128
-23

query I rowsort
SELECT ALL + - col2 * 45 + - + 25 FROM tab0 cor0
----
-2140
-4480
-475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 77 col2 FROM tab2 AS cor0
----
-19
-37
-54

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

query II rowsort
SELECT DISTINCT 58 AS col1, 73 * + 65 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
58
4745

query I rowsort
SELECT DISTINCT + 28 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-270
SELECT CAST( NULL AS SIGNED ), col1 * + + 13 * + + col2 AS col1 FROM tab1 AS cor0
----
NULL
17472
NULL
3835
NULL
41548

skipif mysql # not compatible
query II rowsort label-270
SELECT CAST ( NULL AS INTEGER ), col1 * + + 13 * + + col2 AS col1 FROM tab1 AS cor0
----
NULL
17472
NULL
3835
NULL
41548

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 71 <> NULL
----

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

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

query I rowsort
SELECT ALL - - col2 * + + col1 + - - col1 AS col2 FROM tab1 AS cor0
----
1358
300
3243

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

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

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

query III rowsort
SELECT DISTINCT 96 AS col0, - 33 AS col1, + col0 + - 27 + - - col2 + - - 72 * - 82 FROM tab1
----
9 values hashing to 8b745a509f1c058b45a7c44c43a60f70

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-279
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-279
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT ALL + 67 * col1 FROM tab1 AS cor0
----
3149
335
938

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

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

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

query I rowsort
SELECT DISTINCT + + col1 * 82 AS col1 FROM tab0 AS cor0
----
1722
6642
82

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
80

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

query I rowsort
SELECT ALL col0 + ( + 75 ) AS col2 FROM tab1
----
126
160
166

query I rowsort
SELECT 55 + + col0 * col0 FROM tab0
----
280
7624
9464

query I rowsort
SELECT ALL - col1 - + - 72 FROM tab2 AS cor0
----
-5
21
5

query I rowsort
SELECT + 5 + - - col2 + + 89 AS col0 FROM tab2 AS cor0
----
117
134
152

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - COUNT( + 19 ) * - 83 * 88 + - - 32 FROM tab2 AS cor0
----
21944

skipif mysql # not compatible
query I rowsort label-293
SELECT - COUNT ( + 19 ) * - 83 * 88 + - - 32 FROM tab2 AS cor0
----
21944

query I rowsort
SELECT DISTINCT - col2 - 55 FROM tab1 AS cor0
----
-114
-123
-151

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE col0 + + + col0 <= - col2 * + 24 / - col2 * ( - col2 ) - - ( - - col0 )
----

query I rowsort
SELECT DISTINCT 90 + - + col2 * col1 AS col1 FROM tab1 AS cor0
----
-1254
-205
-3106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-297
SELECT ALL - 11 AS col1, CAST( + - 81 AS SIGNED ) * - + col2 AS col1 FROM tab1
----
-11
4779
-11
5508
-11
7776

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL - 11 AS col1, CAST ( + - 81 AS INTEGER ) * - + col2 AS col1 FROM tab1
----
-11
4779
-11
5508
-11
7776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-298
SELECT ALL - 96 * - CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - 96 * - CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0
----
285

query II rowsort
SELECT ALL 59, - col0 AS col1 FROM tab0
----
59
-15
59
-87
59
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-300
SELECT DISTINCT 49 col1, + MIN( ALL col0 ) AS col1 FROM tab2
----
49
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-300
SELECT DISTINCT 49 col1, + MIN ( ALL col0 ) AS col1 FROM tab2
----
49
46

query I rowsort
SELECT - col1 + - + col0 + - col0 * - - col0 * - 49 FROM tab2 AS cor0
----
103587
200563
275483

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-302
SELECT - 78 AS col1, CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * + col0 FROM tab1 AS cor0
----
-78
NULL
-78
NULL
-78
NULL

skipif mysql # not compatible
query II rowsort label-302
SELECT - 78 AS col1, CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * + col0 FROM tab1 AS cor0
----
-78
NULL
-78
NULL
-78
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL - + 93 - COUNT( * ) + - 83 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-185

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL - + 93 - COUNT ( * ) + - 83 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-185

query I rowsort
SELECT ALL + 50 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL COUNT( * ) * - - 46 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL COUNT ( * ) * - - 46 FROM tab1
----
138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT DISTINCT - COUNT( * ) + SUM( - col2 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-124

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT - COUNT ( * ) + SUM ( - col2 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-124

query I rowsort
SELECT 10 * + col1 AS col2 FROM tab0 AS cor0
----
10
210
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-310
SELECT COUNT( * ) * 21 DIV COUNT( * ) * 64 AS col2, COUNT( * ) AS col1 FROM tab1 cor0
----
1344
3

skipif mysql # not compatible
query II rowsort label-310
SELECT COUNT ( * ) * 21 / COUNT ( * ) * 64 AS col2, COUNT ( * ) AS col1 FROM tab1 cor0
----
1344
3

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT - 94 * + ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT - 94 * + ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-312
SELECT ALL col2 * + col0 - + CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 15
----

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL col2 * + col0 - + CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 15
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 92 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL + SUM( ALL - + 50 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + SUM ( ALL - + 50 ) FROM tab0
----
-150

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

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

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

query I rowsort
SELECT ALL 5 + + col0 FROM tab1
----
56
90
96

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + - 86 * + ( + col0 ) * col2 * 72
----

query I rowsort
SELECT ALL + 72 + + col0 FROM tab1
----
123
157
163

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT + COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NOT - 65 < - 24
----
0

skipif mysql # not compatible
query I rowsort label-321
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT - 65 < - 24
----
0

query I rowsort
SELECT 87 * 72 FROM tab0 cor0
----
6264
6264
6264

query I rowsort
SELECT col1 * + 80 FROM tab2
----
4080
5360
6160

query I rowsort
SELECT ALL - col1 + + - col2 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-39
2094
86

query II rowsort
SELECT ALL - + col2 AS col2, col2 + - col2 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

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

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - col1 / 66 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT COUNT( * ) + - + MAX( DISTINCT + 21 ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-327
SELECT COUNT ( * ) + - + MAX ( DISTINCT + 21 ) AS col1 FROM tab1
----
-18

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

query I rowsort
SELECT - col2 + + + ( + col1 ) FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT COUNT( * ) + - MAX( - 15 ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-330
SELECT COUNT ( * ) + - MAX ( - 15 ) AS col0 FROM tab2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-331
SELECT DISTINCT - 24 DIV + col0 * 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT - 24 / + col0 * 80 FROM tab2
----
0

query I rowsort
SELECT col0 * + col1 * + - 92 AS col0 FROM tab0
----
-111780
-168084
-8924

query I rowsort
SELECT + col2 * - - 64 AS col0 FROM tab1
----
3776
4352
6144

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

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

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1 cor0
----
97

query I rowsort
SELECT DISTINCT - + 14 FROM tab1 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-338
SELECT DISTINCT CAST( + - 58 AS SIGNED ) col2 FROM tab1, tab1 cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-338
SELECT DISTINCT CAST ( + - 58 AS INTEGER ) col2 FROM tab1, tab1 cor0
----
-58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-339
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT DISTINCT - COUNT( ALL CAST( NULL AS SIGNED ) ) * + + 22 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-340
SELECT DISTINCT - COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + + 22 col0 FROM tab0
----
0

query IIIIII rowsort
SELECT * FROM tab2 cor0 INNER JOIN tab0 AS cor1 ON ( + 49 ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT + + COUNT( * ) col0, + 83 * - - 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
7636

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-342
SELECT + + COUNT ( * ) col0, + 83 * - - 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
7636

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

query I rowsort
SELECT - + col1 * + 76 FROM tab2 AS cor0
----
-3876
-5092
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col2 col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-46
23
-64
40
-75
58

query I rowsort
SELECT + 50 + 14 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT - MIN( - 87 ) * ( + 9 ) + COUNT( ALL - col2 ) + 65 FROM tab0 AS cor0
----
851

skipif mysql # not compatible
query I rowsort label-347
SELECT - MIN ( - 87 ) * ( + 9 ) + COUNT ( ALL - col2 ) + 65 FROM tab0 AS cor0
----
851

query II rowsort
SELECT - + col1 * col0 + - 44 * - 28, - ( + - ( + + col1 ) ) AS col1 FROM tab1 cor0
----
-3045
47
518
14
807
5

query I rowsort
SELECT - 63 + col0 + + + col0 - - + col0 + col1 AS col2 FROM tab0 AS cor0
----
219
229
63

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * - col1 > + 46
----

query II rowsort
SELECT DISTINCT col0 * 77 AS col2, ( + 59 ) AS col0 FROM tab0
----
1155
59
6699
59
7469
59

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT - COUNT( * ) FROM tab0 WHERE + - col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-355
SELECT - COUNT ( * ) FROM tab0 WHERE + - col0 > NULL
----
0

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

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

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

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

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

query I rowsort
SELECT ALL + col0 + 27 FROM tab0 AS cor0 WHERE NOT - 59 * + col1 IS NULL
----
114
124
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * - - col2 col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

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

query I rowsort
SELECT - 79 + + - col2 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
-784
-949
-9682

onlyif mysql # DIV for integer division: 
query I rowsort label-363
SELECT col0 + - col0 - col1 * 96 DIV col0 AS col0 FROM tab2 AS cor0
----
-106
-115
-85

skipif mysql # not compatible
query I rowsort label-363
SELECT col0 + - col0 - col1 * 96 / col0 AS col0 FROM tab2 AS cor0
----
-106
-115
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-364
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) >= - - 99
----

skipif mysql # not compatible
query III rowsort label-364
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) >= - - 99
----

query I rowsort
SELECT DISTINCT 39 * - col0 + + + 44 + + 73 FROM tab0
----
-3276
-3666
-468

onlyif mysql # DIV for integer division: 
query I rowsort label-366
SELECT ALL - col2 + col2 - + - 62 DIV 7 AS col0 FROM tab2 cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL - col2 + col2 - + - 62 / 7 AS col0 FROM tab2 cor0
----
8
8
8

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-369
SELECT DISTINCT + 9 - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + 9 - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( + 58 ) AS col2 FROM tab2 AS cor0
----
-58
-58
-58

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

query I rowsort
SELECT DISTINCT - col2 + + + col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 24 + 53 FROM tab1 WHERE NOT + 69 * col1 + + - 46 > - - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT 80 * + MAX( + 18 ) AS col1 FROM tab2
----
1440

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT 80 * + MAX ( + 18 ) AS col1 FROM tab2
----
1440

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * 69 FROM tab2 AS cor0
----
-3519
-4623
-5313

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 > col2 + 2 + col2 / + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
query I rowsort label-383
SELECT MIN ( DISTINCT + 19 ) AS col2 FROM tab0
----
19

query I rowsort
SELECT - + col1 * - + col0 + + 75 * - + col0 AS col2 FROM tab0 AS cor0
----
-4698
-7178
90

query I rowsort
SELECT - 70 * col1 AS col0 FROM tab0 AS cor0
----
-1470
-5670
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT DISTINCT - COUNT( * ) * - 39 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - COUNT ( * ) * - 39 FROM tab0 AS cor0
----
117

query I rowsort
SELECT DISTINCT - - ( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT DISTINCT - col0 DIV - 41 AS col2 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT - col0 / - 41 AS col2 FROM tab0
----
0
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-389
SELECT ALL CAST( NULL AS DECIMAL ) + 79 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL CAST ( NULL AS REAL ) + 79 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT ALL - ( + - col1 ) + col2 + + 73 DIV + + col2 AS col1 FROM tab1
----
110
116
65

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL - ( + - col1 ) + col2 + + 73 / + + col2 AS col1 FROM tab1
----
110
116
65

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT - col2 DIV col0 + 58 FROM tab0
----
55
57
58

skipif mysql # not compatible
query I rowsort label-391
SELECT - col2 / col0 + 58 FROM tab0
----
55
57
58

query I rowsort
SELECT 30 + col1 AS col1 FROM tab1
----
35
44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL - + COUNT( DISTINCT col2 ) FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL - + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + 17 * - - col1 AS col0 FROM tab2 AS cor0
----
46
867
64
1309
75
1139

query I rowsort
SELECT ALL - ( col1 ) + + + col0 AS col2 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL + 7 * + col0 FROM tab0
----
105
609
679

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-397
SELECT CAST( - - 44 AS SIGNED ) DIV + 14 AS col1 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-397
SELECT CAST ( - - 44 AS INTEGER ) / + 14 AS col1 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-398
SELECT ALL CAST( + - 34 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL CAST ( + - 34 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT COUNT( * ) + + 15 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT COUNT ( * ) + + 15 FROM tab0 cor0
----
18

query I rowsort
SELECT DISTINCT col1 * + col2 + 8 FROM tab0 AS cor0
----
107
218
3815

query I rowsort
SELECT ALL + col0 * + + col0 FROM tab0 AS cor0
----
225
7569
9409

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-402
SELECT ALL + ( + COUNT ( * ) ) col2 FROM tab2
----
3

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

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

query I rowsort
SELECT ( - - 7 ) AS col1 FROM tab2
----
7
7
7

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

skipif mysql # not compatible
query II rowsort label-405
SELECT + COUNT ( * ) AS col0, - 5 FROM tab1
----
3
-5

query I rowsort
SELECT ALL + ( - 52 ) AS col2 FROM tab0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT col1 * - + 60 FROM tab2 AS cor0
----
-3060
-4020
-4620

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

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

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

query II rowsort
SELECT DISTINCT + 0, + col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-411
SELECT COUNT( * ) AS col1, - 49 DIV - + 78 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-411
SELECT COUNT ( * ) AS col1, - 49 / - + 78 FROM tab1
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT - MAX( - col2 ) + + - 63 + - COUNT( * ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-412
SELECT - MAX ( - col2 ) + + - 63 + - COUNT ( * ) FROM tab0 AS cor0
----
-56

query I rowsort
SELECT ALL - col1 * 41 + ( - col2 ) FROM tab0 AS cor0
----
-140
-3368
-871

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-417
SELECT CAST( NULL AS DECIMAL ) + + - 68 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT CAST ( NULL AS REAL ) + + - 68 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 99 + + col2 AS col0 FROM tab1 AS cor0
----
-3
-31
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - + col2 - col0 col2 FROM tab2 AS cor0
----
-18
-27
-66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT ALL CAST( NULL AS SIGNED ) / col0 - + col0 * - + col2 * - ( col2 ) + + 3 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL CAST ( NULL AS INTEGER ) / col0 - + col0 * - + col2 * - ( col2 ) + + 3 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 - - 69 FROM tab0 AS cor0
----
150
70
90

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

onlyif mysql # DIV for integer division: 
query II rowsort label-424
SELECT 2 DIV - 92 * + 37 AS col2, 82 FROM tab0 AS cor0
----
0
82
0
82
0
82

skipif mysql # not compatible
query II rowsort label-424
SELECT 2 / - 92 * + 37 AS col2, 82 FROM tab0 AS cor0
----
0
82
0
82
0
82

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

skipif mysql # not compatible
query I rowsort label-425
SELECT MAX ( ALL - 62 ) FROM tab1 AS cor0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT 17 DIV - ( - 65 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-426
SELECT 17 / - ( - 65 ) FROM tab2 cor0
----
0
0
0

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

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL - COUNT ( * ), + 17 AS col0 FROM tab0 AS cor0
----
-3
17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - col0 col0 FROM tab0 AS cor0
----
-1215
-1827
-97

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

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

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

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

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + MAX ( + 11 ) FROM tab2 AS cor0
----
11

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

query II rowsort
SELECT ALL ( - - 45 ), 43 * col1 AS col2 FROM tab0
----
45
3483
45
43
45
903

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

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

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

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

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT + 35 * - COUNT ( * ) FROM tab0
----
-105

query I rowsort
SELECT col2 * - 8 FROM tab0
----
-376
-792
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL COUNT( * ) * + + 39 AS col2 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL COUNT ( * ) * + + 39 AS col2 FROM tab0
----
117

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

query II rowsort
SELECT + 10 AS col2, + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-443
SELECT DISTINCT 31 DIV MAX( col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT 31 / MAX ( col1 ) FROM tab2
----
0

query I rowsort
SELECT ALL + 28 * - 69 + + - col0 AS col0 FROM tab0
----
-1947
-2019
-2029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-445
SELECT ALL + CAST( - MAX( ALL - 16 ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + CAST ( - MAX ( ALL - 16 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
16

query III rowsort
SELECT * FROM tab1 WHERE - col1 <> - col0 * + col2 * - 15 + + col1 + + - col1 * + 16 * + col1 * - col2 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-447
SELECT - - CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0 WHERE NULL IN ( col1 + + 68, 73, - + col1, + 36 + + col0, + 23 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-447
SELECT - - CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0 WHERE NULL IN ( col1 + + 68, 73, - + col1, + 36 + + col0, + 23 + - col1 )
----

query I rowsort
SELECT DISTINCT + ( - 45 ) + - col2 AS col1 FROM tab0 AS cor0
----
-144
-55
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-449
SELECT COUNT( * ) * - 27 DIV MAX( ALL col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-449
SELECT COUNT ( * ) * - 27 / MAX ( ALL col2 ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 + + col0 col0 FROM tab2 AS cor0
----
1104
2624
4425

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT - COUNT( * ) + - 45 - + 49 col0 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-452
SELECT - COUNT ( * ) + - 45 - + 49 col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL - SUM( 18 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL - SUM ( 18 ) FROM tab2
----
-54

query II rowsort
SELECT 88 + - + col2, + col1 FROM tab2
----
30
67
48
77
65
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-455
SELECT col1 + 88 + 26 + - CAST( NULL AS DECIMAL ) * - - 2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT col1 + 88 + 26 + - CAST ( NULL AS REAL ) * - - 2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT ALL + 31 DIV col2 + col0 + + + col1 AS col2 FROM tab0
----
111
96
98

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL + 31 / col2 + col0 + + + col1 AS col2 FROM tab0
----
111
96
98

query I rowsort
SELECT ALL + 58 + - - col2 FROM tab0
----
105
157
68

query I rowsort
SELECT ( + col2 ) + 51 FROM tab0
----
150
61
98

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> - col0
----

query II rowsort
SELECT + + 26 + col1, - 55 AS col2 FROM tab1 AS cor0
----
31
-55
40
-55
73
-55

query I rowsort
SELECT DISTINCT + col2 + 13 * + - col0 AS col1 FROM tab0 AS cor0
----
-1121
-1162
-148

query I rowsort
SELECT + + col1 - + ( + + col2 ) FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-463
SELECT ALL col1 DIV - - col2 * 91 * + 56 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL col1 / - - col2 * 91 * + 56 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT - col0 DIV + 4 AS col1 FROM tab0 cor0
----
-21
-24
-3

skipif mysql # not compatible
query I rowsort label-464
SELECT - col0 / + 4 AS col1 FROM tab0 cor0
----
-21
-24
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT DISTINCT - - col1 DIV + col2 * - col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT - - col1 / + col2 * - col1 FROM tab1 cor0
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-468
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 14, - CAST( NULL AS SIGNED ), - + ( col2 ), + col1, col1 * - 9 + + + ( + - col1 ) + - 2 * - - ( col2 ) )
----

skipif mysql # not compatible
query III rowsort label-468
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 14, - CAST ( NULL AS INTEGER ), - + ( col2 ), + col1, col1 * - 9 + + + ( + - col1 ) + - 2 * - - ( col2 ) )
----

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

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

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

query I rowsort
SELECT - col2 * + - col0 * - 80 * + col1 FROM tab1
----
-2006000
-23266880
-5483520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT - MIN( 69 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-473
SELECT - MIN ( 69 ) FROM tab0 AS cor0
----
-69

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

query I rowsort
SELECT - - 65 * + + col0 FROM tab2 AS cor0
----
2990
4160
4875

query I rowsort
SELECT DISTINCT + 20 * - 16 + col1 FROM tab2
----
-243
-253
-269

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

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

query I rowsort
SELECT 7 * - col1 AS col0 FROM tab2
----
-357
-469
-539

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-479
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) <> - col1 * col1
----

skipif mysql # not compatible
query III rowsort label-479
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) <> - col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT MIN( + col0 ) * 68 AS col1 FROM tab1 WHERE + col0 >= - col1 * + col0 + col0
----
3468

skipif mysql # not compatible
query I rowsort label-480
SELECT MIN ( + col0 ) * 68 AS col1 FROM tab1 WHERE + col0 >= - col1 * + col0 + col0
----
3468

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 98 ) < NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 47 AS col2 FROM tab2
----
-24
-7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT MIN( DISTINCT - col1 ) * 65 AS col0 FROM tab0
----
-5265

skipif mysql # not compatible
query I rowsort label-483
SELECT MIN ( DISTINCT - col1 ) * 65 AS col0 FROM tab0
----
-5265

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

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL - COUNT ( * ) - - CAST ( + SUM ( col1 ) AS INTEGER ) FROM tab0
----
100

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

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

query I rowsort
SELECT DISTINCT - 63 * - col2 AS col2 FROM tab2
----
1449
2520
3654

query I rowsort
SELECT - col1 - + col0 * + 42 FROM tab1
----
-2156
-3575
-3869

query I rowsort
SELECT ALL + col1 * - 48 FROM tab1
----
-2256
-240
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT 37 * COUNT( * ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-489
SELECT 37 * COUNT ( * ) FROM tab2
----
111

query I rowsort
SELECT 75 - + col0 AS col2 FROM tab0
----
-12
-22
60

query I rowsort
SELECT DISTINCT - 89 * + col2 FROM tab1 WHERE NULL NOT BETWEEN col2 AND + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT - CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-492
SELECT - CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT ALL + 19 + + 95 DIV 75 col2 FROM tab2
----
20
20
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-493
SELECT ALL + 19 + + 95 / 75 col2 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT SUM( 50 ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-494
SELECT SUM ( 50 ) FROM tab2
----
150

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

query I rowsort
SELECT 3 + col1 AS col2 FROM tab0
----
24
4
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-497
SELECT COUNT( * ) DIV COUNT( * ) + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-497
SELECT COUNT ( * ) / COUNT ( * ) + COUNT ( * ) FROM tab0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT 15 DIV 45 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-498
SELECT 15 / 45 AS col2 FROM tab0
----
0
0
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - MIN ( - 30 ) FROM tab0 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + 19 ) >= - col2 * - 21 + + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 76 * col0 ) BETWEEN ( NULL ) AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-506
SELECT + COUNT ( * ) * + COUNT ( col1 ) col1 FROM tab2 AS cor0
----
9

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

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

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

query I rowsort
SELECT ALL 9 * 40 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT + - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-510
SELECT + - col0 / - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 36 AS col0 FROM tab1 AS cor0 WHERE 99 + col0 IS NOT NULL
----
36
36
36

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 65 + col0 * col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-514
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 65 + col0 * col2 < NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) > ( + col1 * 13 + - col0 )
----
15
81
47
87
21
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT DISTINCT 94 DIV + 97 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT 94 / + 97 FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) FROM tab0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT + 74 * + col0 * + col1 FROM tab2
----
173604
364672
371850

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT COUNT( * ) FROM tab2 WHERE ( + col2 + + 4 ) NOT BETWEEN ( col2 ) AND ( NULL ) OR NOT NULL NOT IN ( 65 * + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-521
SELECT COUNT ( * ) FROM tab2 WHERE ( + col2 + + 4 ) NOT BETWEEN ( col2 ) AND ( NULL ) OR NOT NULL NOT IN ( 65 * + 50 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( col1 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-523
SELECT DISTINCT - ( + + ( COUNT ( * ) ) ) col1 FROM tab0
----
-3

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

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) FROM tab2
----
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 35 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT SUM( + 40 ) + 76 AS col0 FROM tab2 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-526
SELECT SUM ( + 40 ) + 76 AS col0 FROM tab2 AS cor0
----
196

query I rowsort
SELECT ALL - 37 + + 18 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-19
1421
341

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

query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab1 cor0
----
53

query III rowsort
SELECT * FROM tab2 WHERE 83 - - 22 NOT BETWEEN col0 AND col2 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT COUNT( * ) col0 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-531
SELECT DISTINCT COUNT ( * ) col0 FROM tab2, tab0 AS cor0
----
9

query II rowsort
SELECT + 16 AS col0, 69 AS col0 FROM tab2
----
16
69
16
69
16
69

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 64 > NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 + + col1 - 21 ) < 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT + + 31 - + CAST( + 29 AS SIGNED ) FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-535
SELECT + + 31 - + CAST ( + 29 AS INTEGER ) FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT - col1 + + 93 FROM tab0 AS cor0
----
12
72
92

query I rowsort
SELECT DISTINCT - 53 * - + 27 FROM tab2 AS cor0
----
1431

query I rowsort
SELECT - + col2 + + col0 + + col2 * + 47 AS col1 FROM tab1 AS cor0
----
2799
3219
4467

query I rowsort
SELECT + ( - col1 ) + col2 AS col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 26 - + - col0 + 62 + - 0 * - 83 AS col2 FROM tab2
----
134
152
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + - + col0 col0 FROM tab0
----
-21
-31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL 44 * - - 57 * COUNT( * ) AS col1 FROM tab2
----
7524

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL 44 * - - 57 * COUNT ( * ) AS col1 FROM tab2
----
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT + 64 + MIN( + ( + + col0 ) ) AS col2 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-543
SELECT + 64 + MIN ( + ( + + col0 ) ) AS col2 FROM tab2
----
110

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT SUM( DISTINCT - + col0 ) DIV + 95 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-545
SELECT SUM ( DISTINCT - + col0 ) / + 95 FROM tab0
----
-2

query I rowsort
SELECT ALL col0 + - 2 * - col0 AS col0 FROM tab1
----
153
255
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 + col2 col0 FROM tab0 WHERE + 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-548
SELECT DISTINCT col1 FROM tab1 WHERE NOT + 13 * col1 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT col1 FROM tab1 WHERE NOT + 13 * col1 IN ( - CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT ALL 47 * - col2 FROM tab0 AS cor0 WHERE ( NOT + ( col0 ) * + col2 <> NULL )
----

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

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

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT 52 + col2 + + col1 * col2 <= ( col0 - col0 )
----
-23
-40
-58

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-558
SELECT - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) / + MAX ( ALL + - col0 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 55 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col1 - + 10 + + col2 / 19
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-561
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) AS col2 FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-561
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col2 FROM tab2
----
NULL
-3

query I rowsort
SELECT 67 AS col0 FROM tab1 WHERE NOT + 9 IN ( + 85 / - + col1 )
----
67
67
67

query I rowsort
SELECT ALL + + col1 * + col1 * + col1 + + col1 AS col1 FROM tab2 WHERE - col1 + - - 17 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT + col2 * - ( 88 ) + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-4133
-8711
-880

skipif mysql # not compatible
query I rowsort label-564
SELECT + col2 * - ( 88 ) + col2 / + col0 AS col1 FROM tab0 AS cor0
----
-4133
-8711
-880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT - - 38 DIV + - 8 + + 13 + + COUNT( * ) + - + 43 DIV + 77 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-565
SELECT - - 38 / + - 8 + + 13 + + COUNT ( * ) + - + 43 / + 77 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT + COUNT( ALL - 44 ) + + - 50 col0 FROM tab2
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-566
SELECT + COUNT ( ALL - 44 ) + + - 50 col0 FROM tab2
----
-47

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-567
SELECT ALL - 74 + - + col1 * - CAST ( NULL AS INTEGER ) - - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT + + 58 + col1 AS col0, ( - col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
105
-3196
63
-295
72
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE + 78 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE + 78 * + col1 IS NULL
----
0

query II rowsort
SELECT ALL - 44 + + 49, col2 FROM tab0 cor0
----
5
10
5
47
5
99

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL - - COUNT( ALL - 90 ) * + + 15 + + 87 AS col2 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL - - COUNT ( ALL - 90 ) * + + 15 + + 87 AS col2 FROM tab1 AS cor0
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-576
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col1 - 52 col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + col1 * - - col2 * + + col2 + ( - 61 ) * - col1 + + + 18 + - 37 FROM tab1
----
129955
17750
220244

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

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

query I rowsort
SELECT + ( 78 ) * - col0 FROM tab0
----
-1170
-6786
-7566

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

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

query I rowsort
SELECT ALL - + col1 * - - ( col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + + 27 * + 60 FROM tab2 AS cor0
----
1620

query I rowsort
SELECT + 92 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-588
SELECT DISTINCT + - col0 * + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT + - col0 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + col0 = NULL
----

query I rowsort
SELECT ALL + ( - col0 ) FROM tab1 AS cor0 WHERE NOT 51 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-591
SELECT ALL 12 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL 12 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - + 75 * - 44 FROM tab1 AS cor0 WHERE NOT - 74 <> - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-593
SELECT * FROM tab1 WHERE NOT - + CAST( 21 AS SIGNED ) IN ( - CAST( NULL AS SIGNED ), - 51 - + col2 * - - 41 * + + 65 )
----

skipif mysql # not compatible
query III rowsort label-593
SELECT * FROM tab1 WHERE NOT - + CAST ( 21 AS INTEGER ) IN ( - CAST ( NULL AS INTEGER ), - 51 - + col2 * - - 41 * + + 65 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-594
SELECT ALL + 96 DIV + col0 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + 96 / + col0 AS col0 FROM tab2
----
1
1
2

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - - 9 NOT IN ( + - col1, - 95 / col1 + - ( - + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT + - COUNT( + - 10 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT + - COUNT ( + - 10 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ( MAX( ( col0 ) ) ) + 49 AS col1 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-597
SELECT ( MAX ( ( col0 ) ) ) + 49 AS col1 FROM tab2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT 20 + - col0 DIV - 33 FROM tab0
----
20
22
22

skipif mysql # not compatible
query I rowsort label-598
SELECT 20 + - col0 / - 33 FROM tab0
----
20
22
22

query I rowsort
SELECT + - col0 * col0 + - - 28 - 72 * 61 + 29 * - col0 AS col2 FROM tab2 AS cor0
----
-10316
-12164
-7814

query I rowsort
SELECT DISTINCT + ( + ( + 73 ) ) * col1 FROM tab0 AS cor0
----
1533
5913
73

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

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

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

query I rowsort
SELECT DISTINCT 34 + + col2 + col1 AS col1 FROM tab2
----
108
151
159

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT MAX( DISTINCT - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-604
SELECT MAX ( DISTINCT - col2 ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-605
SELECT DISTINCT + COUNT( * ), + 5 col1 FROM tab2
----
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-605
SELECT DISTINCT + COUNT ( * ), + 5 col1 FROM tab2
----
3
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT col2 AS col1 FROM tab2 WHERE NULL >= - CAST( + CAST( - ( + 69 ) AS SIGNED ) AS SIGNED ) + - col1
----

skipif mysql # not compatible
query I rowsort label-606
SELECT col2 AS col1 FROM tab2 WHERE NULL >= - CAST ( + CAST ( - ( + 69 ) AS INTEGER ) AS INTEGER ) + - col1
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 84 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-609
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + - 49 AND ( - + 86 / ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-609
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + - 49 AND ( - + 86 / ( + CAST ( NULL AS INTEGER ) ) )
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) <= col0 + - + col1
----
91
47
68

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

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

query I rowsort
SELECT DISTINCT + col2 + + - col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT col2 + + CAST( - - 72 AS SIGNED ) + - 57 * + col0 FROM tab1 AS cor0
----
-2739
-4714
-5047

skipif mysql # not compatible
query I rowsort label-619
SELECT col2 + + CAST ( - - 72 AS INTEGER ) + - 57 * + col0 FROM tab1 AS cor0
----
-2739
-4714
-5047

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 21 BETWEEN NULL AND + 76
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 / - 30 + + 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 49 * + + ( - col0 ) <= 37 * col1 * - col1
----
97
1
99

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-626
SELECT DISTINCT + 29 + - - ( col0 ) - - - col1 - + col2 / + ( - col0 ) * col0 + + 30 + + CAST( NULL AS SIGNED ) / - + 11 * - 44 * - ( + col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + 29 + - - ( col0 ) - - - col1 - + col2 / + ( - col0 ) * col0 + + 30 + + CAST ( NULL AS INTEGER ) / - + 11 * - 44 * - ( + col0 ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-628
SELECT ALL - 0 - - + CAST( + + col0 AS SIGNED ) + - 45 * - col1 AS col0 FROM tab1 cor0
----
2206
310
681

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL - 0 - - + CAST ( + + col0 AS INTEGER ) + - 45 * - col1 AS col0 FROM tab1 cor0
----
2206
310
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + + col0 col1 FROM tab2 AS cor0
----
-14
15
4

query I rowsort
SELECT DISTINCT ( - 45 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( + 64 ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL - col1 * + - 10 * col2 FROM tab2
----
11730
30800
38860

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT 56 * col2 DIV - col0 AS col0 FROM tab2 cor0
----
-28
-35
-43

skipif mysql # not compatible
query I rowsort label-633
SELECT 56 * col2 / - col0 AS col0 FROM tab2 cor0
----
-28
-35
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 - - 91 col1 FROM tab2 AS cor0
----
11

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE + 5 * + 65 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT DISTINCT - 27 DIV - col0 - + - col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT - 27 / - col0 - + - col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + col1, - 94 * 39 FROM tab1 cor0
----
14
-3666
47
-3666
5
-3666

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-641
SELECT ALL + 57 AS col0, + COUNT( * ) + - ( + COUNT( * ) ) * + 97 AS col1 FROM tab0
----
57
-288

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL + 57 AS col0, + COUNT ( * ) + - ( + COUNT ( * ) ) * + 97 AS col1 FROM tab0
----
57
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-642
SELECT MIN( col0 ), - COUNT( * ) col1 FROM tab0
----
15
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT DISTINCT + 1 DIV + COUNT( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT + 1 / + COUNT ( + col0 ) FROM tab2
----
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 99 col2 FROM tab2 AS cor0
----
2277
3960
5742

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 60 * + + 38 + - 11 / - - col1 IS NOT NULL
----

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

query I rowsort
SELECT + ( col0 ) * + col2 * col0 + 74 FROM tab1 AS cor0
----
249770
426349
563182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-650
SELECT ALL + col1 * - + 69 + - col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL + col1 * - + 69 + - col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < 96
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - - col2 col1 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT - MIN( ALL + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT - MIN ( ALL + col1 ) AS col2 FROM tab2
----
-51

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

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT + ( COUNT ( * ) ) * - ( 29 ) FROM tab1
----
-87

query I rowsort
SELECT DISTINCT + col0 + - col1 + ( - col0 ) + - 51 * - col1 AS col2 FROM tab2
----
2550
3350
3850

query I rowsort
SELECT + ( + col1 ) + - 19 * + 48 - - col1 + + - ( - + col2 ) FROM tab0
----
-703
-811
-860

onlyif mysql # DIV for integer division: 
query I rowsort label-661
SELECT ALL - col0 + + col1 DIV - - col1 + - ( - - 12 ) DIV col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL - col0 + + col1 / - - col1 + - ( - - 12 ) / col0 FROM tab2
----
-45
-63
-74

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

query I rowsort
SELECT ALL col1 + + 37 + - col2 + - - col1 FROM tab1
----
-12
-31
63

query II rowsort
SELECT ALL col0 AS col0, - 63 FROM tab2
----
46
-63
64
-63
75
-63

query I rowsort
SELECT + 55 + + col1 FROM tab2
----
106
122
132

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-667
SELECT ALL * FROM tab0 AS cor0 WHERE 39 BETWEEN NULL AND - - ( - - 95 ) + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-667
SELECT ALL * FROM tab0 AS cor0 WHERE 39 BETWEEN NULL AND - - ( - - 95 ) + - - CAST ( NULL AS INTEGER )
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-670
SELECT + 97 AS col1, COUNT ( * ) col1 FROM tab2 AS cor0
----
97
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT - ( - + 18 ) - - COUNT( * ) * - + ( ( 39 ) ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-672
SELECT - ( - + 18 ) - - COUNT ( * ) * - + ( ( 39 ) ) FROM tab2
----
-99

query I rowsort
SELECT - 92 * + + col2 * - col2 AS col1 FROM tab1 WHERE - - col0 * - + col1 NOT IN ( - 24 )
----
320252
425408
847872

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 56 < + 83 - + + 57
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT DISTINCT + MIN( DISTINCT - col0 ) + + + 55 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT + MIN ( DISTINCT - col0 ) + + + 55 FROM tab2
----
-20

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

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

query I rowsort
SELECT ALL 88 + - col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
11
21
37

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < - - col1 - + 98 * + col0 / - - col2 / - col1
----

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

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

query I rowsort
SELECT DISTINCT ( ( - + col0 ) ) * 8 * + + col1 * 70 FROM tab2
----
-1313760
-2759680
-2814000

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

onlyif mysql # DIV for integer division: 
query II rowsort label-683
SELECT col2, + col1 DIV - col0 AS col1 FROM tab2
----
23
-1
40
-1
58
0

skipif mysql # not compatible
query II rowsort label-683
SELECT col2, + col1 / - col0 AS col1 FROM tab2
----
23
-1
40
-1
58
0

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

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - - col1 * + 73 + col1 * + - col0 > col0 - - + col2 * + - col0
----
14
47
5

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-689
SELECT + 51 * - CAST( NULL AS DECIMAL ) AS col1, - CAST( + - col2 AS SIGNED ) * - + col1 / 73 / - col2 + - col1 FROM tab2 WHERE ( + + col2 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-689
SELECT + 51 * - CAST ( NULL AS REAL ) AS col1, - CAST ( + - col2 AS INTEGER ) * - + col1 / 73 / - col2 + - col1 FROM tab2 WHERE ( + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-690
SELECT * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-690
SELECT * FROM tab1 WHERE - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 46 <> col0 * + - ( col2 ) * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT 50 + - COUNT( * ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-692
SELECT 50 + - COUNT ( * ) FROM tab1 cor0
----
47

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

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT ALL + + 25 AS col1, SUM( DISTINCT + col0 ) * + COUNT( * ) FROM tab0 AS cor0
----
25
597

skipif mysql # not compatible
query II rowsort label-694
SELECT ALL + + 25 AS col1, SUM ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
25
597

query I rowsort
SELECT DISTINCT ( col2 ) + + - col1 + + col0 * + 30 + - col0 FROM tab1 AS cor0
----
1561
2519
2660

query III rowsort
SELECT DISTINCT + 46 * + 45 AS col2, - 1 - - - col1 AS col0, + col2 AS col2 FROM tab0 AS cor0
----
9 values hashing to 07c36ae31eb7a9687c89ee1c93390ecf

query I rowsort
SELECT DISTINCT + 93 * + 45 * - col2 FROM tab2
----
-167400
-242730
-96255

query I rowsort
SELECT DISTINCT col0 + + + col1 AS col0 FROM tab2
----
141
142
97

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

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE 35 + - - col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + col1 - + 17 FROM tab1 AS cor0
----
-12
-3
30

query I rowsort
SELECT DISTINCT 23 * + col0 FROM tab0
----
2001
2231
345

query II rowsort
SELECT ALL col0, + col1 FROM tab1
----
51
14
85
5
91
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT + SUM( DISTINCT - + ( - 76 ) ) AS col0 FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-705
SELECT + SUM ( DISTINCT - + ( - 76 ) ) AS col0 FROM tab1 cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) <> + - 42 / - 30 * 68
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-709
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 86 AND 85
----

skipif mysql # not compatible
query I rowsort label-709
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 86 AND 85
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 IN ( + + col2 * - + 32, - 98 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 7 + ( - col0 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT - SUM( ALL - col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-713
SELECT - SUM ( ALL - col2 ) AS col1 FROM tab1
----
223

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

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

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

query I rowsort
SELECT - + col1 + + - 97 FROM tab2 WHERE NOT - 78 IS NULL
----
-148
-164
-174

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

query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 AS col1 FROM tab1
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-719
SELECT 18 + + - col1 + + ( - CAST( col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-116
-136
-84

skipif mysql # not compatible
query I rowsort label-719
SELECT 18 + + - col1 + + ( - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-116
-136
-84

query I rowsort
SELECT DISTINCT + 47 * - col2 + - col1 FROM tab2 AS cor0
----
-1132
-1957
-2793

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 98 BETWEEN + 3 - 22 AND col1 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - 78 FROM tab1 cor0
----
-1092
-3666
-390

query II rowsort
SELECT DISTINCT + 59, col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
59
1
59
21
59
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL - - 66 + + 89 + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
251

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL - - 66 + + 89 + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
251

query I rowsort
SELECT ALL - col1 * + col2 * + col1 FROM tab1 AS cor0 WHERE 93 - + 47 > + - col1
----
-1475
-150212
-18816

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-728
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) + + col2 + - col0 NOT BETWEEN - col1 + col0 AND - + CAST( + - col2 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-728
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) + + col2 + - col0 NOT BETWEEN - col1 + col0 AND - + CAST ( + - col2 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT - + 40 - col0 AS col0 FROM tab1 AS cor0
----
-125
-131
-91

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

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

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

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

query II rowsort
SELECT ALL col1 AS col1, + col0 * - 99 FROM tab0
----
1
-9603
21
-8613
81
-1485

onlyif mysql # DIV for integer division: 
query II rowsort label-734
SELECT - 82 + + 96 * + col0 DIV - + col0, - col0 col2 FROM tab2
----
-178
-46
-178
-64
-178
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-734
SELECT - 82 + + 96 * + col0 / - + col0, - col0 col2 FROM tab2
----
-178
-46
-178
-64
-178
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL - SUM( - + 32 ) AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - SUM ( - + 32 ) AS col1 FROM tab0
----
96

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab1 WHERE NOT + col1 < 80 + - - col2 + - - col1 + + - col1 * + - col2 * + 15
----

query II rowsort
SELECT + 44 AS col1, col0 FROM tab2
----
44
46
44
64
44
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-738
SELECT + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-738
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-741
SELECT ALL col1 * 5 + col1 + - col0 * - CAST( NULL AS DECIMAL ) * - + col2 * 4 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL col1 * 5 + col1 + - col0 * - CAST ( NULL AS REAL ) * - + col2 * 4 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 59 ) + - + 33 / - 21 + - - col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 43 * + 1 FROM tab2
----
43
43
43

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

query I rowsort
SELECT ALL - 60 * - 64 AS col2 FROM tab1
----
3840
3840
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT + SUM( 85 ) AS col2 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT + SUM ( 85 ) AS col2 FROM tab2
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT ( + col1 ) DIV + col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-747
SELECT ( + col1 ) / + col2 AS col1 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-748
SELECT ALL + 24 * col1 AS col2, + col0 + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
1224
NULL
1608
NULL
1848
NULL

skipif mysql # not compatible
query II rowsort label-748
SELECT ALL + 24 * col1 AS col2, + col0 + CAST ( NULL AS REAL ) FROM tab2 cor0
----
1224
NULL
1608
NULL
1848
NULL

query II rowsort
SELECT + - col1 * col0 AS col2, 43 + + 30 FROM tab0 AS cor0
----
-1215
73
-1827
73
-97
73

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

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT + - col0 * col1 * - col2 + + col0 DIV + - col0 FROM tab2 AS cor0
----
197119
291449
53957

skipif mysql # not compatible
query I rowsort label-751
SELECT + - col0 * col1 * - col2 + + col0 / + - col0 FROM tab2 AS cor0
----
197119
291449
53957

query I rowsort
SELECT + 71 * + col2 FROM tab1 cor0
----
4189
4828
6816

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 > 78
----

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

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL + SUM ( DISTINCT 12 ) FROM tab2
----
12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-758
SELECT * FROM tab2 cor0 WHERE NOT + 41 <= + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-758
SELECT * FROM tab2 cor0 WHERE NOT + 41 <= + CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT - 60 * + col1 FROM tab0 cor0
----
-1260
-4860
-60

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-761
SELECT col0 DIV - ( col2 ) AS col1, col1 FROM tab2 AS cor0
----
-1
67
-1
77
-2
51

skipif mysql # not compatible
query II rowsort label-761
SELECT col0 / - ( col2 ) AS col1, col1 FROM tab2 AS cor0
----
-1
67
-1
77
-2
51

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-767
SELECT - CAST( - MIN( - - col0 ) AS SIGNED ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-767
SELECT - CAST ( - MIN ( - - col0 ) AS INTEGER ) FROM tab0
----
15

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

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

query I rowsort
SELECT ALL - 77 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT 7 - - - 24 FROM tab0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT 82 * - COUNT( * ) + + + 76 AS col2 FROM tab0
----
-170

skipif mysql # not compatible
query I rowsort label-771
SELECT 82 * - COUNT ( * ) + + + 76 AS col2 FROM tab0
----
-170

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT + + SUM( + + 37 ) AS col0 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-774
SELECT + + SUM ( + + 37 ) AS col0 FROM tab0 AS cor0
----
111

query I rowsort
SELECT ALL + - 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT DISTINCT + MAX( DISTINCT - 20 ) AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT + MAX ( DISTINCT - 20 ) AS col2 FROM tab2
----
-20

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

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

query I rowsort
SELECT ALL col0 * + + 73 AS col2 FROM tab1 AS cor0
----
3723
6205
6643

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT col2 * - col0 + + col1 DIV - col2 FROM tab0 AS cor0
----
-706
-872
-9603

skipif mysql # not compatible
query I rowsort label-781
SELECT col2 * - col0 + + col1 / - col2 FROM tab0 AS cor0
----
-706
-872
-9603

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

query I rowsort
SELECT + 81 * + ( col0 ) * - 7 + + col2 + - - col1 + - 55 FROM tab0 AS cor0
----
-49353
-54954
-8432

query I rowsort
SELECT - col1 * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-425
-4277
-714

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

query I rowsort
SELECT DISTINCT + ( + 63 ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col2 * col1 / 7 IS NOT NULL
----

query I rowsort
SELECT ALL 62 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-3116
-4079
-4710

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

query I rowsort
SELECT DISTINCT ( col2 ) * 71 AS col2 FROM tab2
----
1633
2840
4118

onlyif mysql # DIV for integer division: 
query II rowsort label-791
SELECT 24 DIV 29 * col2, col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-791
SELECT 24 / 29 * col2, col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT + + 70 * col2 FROM tab2 WHERE NOT - + ( + + 65 ) - - ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT + COUNT( * ) + MIN( - col0 ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT + COUNT ( * ) + MIN ( - col0 ) AS col1 FROM tab1
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 21 ) + + 79 - - + col1 col1 FROM tab0
----
139
59
79

query II rowsort
SELECT ALL col0 * + col1 * col2 AS col1, 55 AS col0 FROM tab2
----
197120
55
291450
55
53958
55

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

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT SUM ( - col1 ) + - COUNT ( * ) - - MAX ( + col2 ) * - + 55 FROM tab2 AS cor0
----
-3388

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - - SUM( DISTINCT col0 ) + - COUNT( + + 8 ) AS col2 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-797
SELECT - - SUM ( DISTINCT col0 ) + - COUNT ( + + 8 ) AS col2 FROM tab2 AS cor0
----
182

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

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

query I rowsort
SELECT - 28 + - 77 FROM tab2 AS cor0 WHERE 59 * - col2 IS NOT NULL
----
-105
-105
-105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-800
SELECT col2, - col2 AS col2 FROM tab0 AS cor0 WHERE - col0 * CAST( NULL AS SIGNED ) IS NULL
----
10
-10
47
-47
99
-99

skipif mysql # not compatible
query II rowsort label-800
SELECT col2, - col2 AS col2 FROM tab0 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) IS NULL
----
10
-10
47
-47
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT ALL col2 - 15 DIV + - col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL col2 - 15 / + - col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT 30 * + - col1 * col0 * - - col1 * col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-239148450
-24171210
-2910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 17 col2, + col2 - + 23 FROM tab1 AS cor0
----
17
36
17
45
17
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT + 66 / + - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT + 66 / + - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - - 80 AS col2 FROM tab1
----
4080
6800
7280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-810
SELECT 28 DIV - MAX( ALL - col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-810
SELECT 28 / - MAX ( ALL - col2 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + col2 + - 94
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 * - 76 AND 41
----

query I rowsort
SELECT ALL + col1 * - 40 FROM tab0
----
-3240
-40
-840

query I rowsort
SELECT 53 * + col2 * + 38 FROM tab1
----
118826
136952
193344

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

query II rowsort
SELECT col1 * + col2 AS col0, - col2 FROM tab1 AS cor0
----
1344
-96
295
-59
3196
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL + 52 * - COUNT( * ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL + 52 * - COUNT ( * ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT col0 + - 89 AS col1 FROM tab1 WHERE NOT + + col0 > NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE 17 IS NOT NULL OR ( NOT + col1 IS NOT NULL )
----
-14
-47
-5

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

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

query I rowsort
SELECT - col2 * + - col1 FROM tab1 AS cor0
----
1344
295
3196

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

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

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT + COUNT( * ) + 25 * - 28 AS col2 FROM tab1
----
-697

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + COUNT ( * ) + 25 * - 28 AS col2 FROM tab1
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT + SUM( ALL 91 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-827
SELECT + SUM ( ALL 91 ) FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT - MAX( ALL - - 73 ) FROM tab0, tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-828
SELECT - MAX ( ALL - - 73 ) FROM tab0, tab0 AS cor0
----
-73

query II rowsort
SELECT ALL + 42 AS col1, ( col1 ) FROM tab0
----
42
1
42
21
42
81

query II rowsort
SELECT DISTINCT - col2, col2 AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-23
23
-40
40
-58
58

query II rowsort
SELECT col1 AS col0, 57 * + + 89 FROM tab1
----
14
5073
47
5073
5
5073

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT - + 32 + - COUNT( col0 ) AS col2 FROM tab2 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT - + 32 + - COUNT ( col0 ) AS col2 FROM tab2 cor0
----
-35

query I rowsort
SELECT ALL - 25 + - col1 AS col1 FROM tab1 AS cor0
----
-30
-39
-72

query I rowsort
SELECT ALL 18 AS col1 FROM tab1 AS cor0 WHERE NOT + 6 * - col0 - + + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT - - 3 * 98 + + ( + MIN( DISTINCT - - 55 ) ) col1 FROM tab0 AS cor0
----
349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-836
SELECT - - 3 * 98 + + ( + MIN ( DISTINCT - - 55 ) ) col1 FROM tab0 AS cor0
----
349

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 49 = NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + + col0 <= ( - ( - col2 ) )
----
15
81
47

query I rowsort
SELECT DISTINCT col2 * 37 FROM tab0
----
1739
3663
370

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-841
SELECT DISTINCT * FROM tab0 WHERE NOT col2 > + CAST( col1 AS DECIMAL ) + + 64
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-841
SELECT DISTINCT * FROM tab0 WHERE NOT col2 > + CAST ( col1 AS REAL ) + + 64
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - col2 >= + - 62
----

query I rowsort
SELECT - ( + col2 ) * - col0 * - col0 FROM tab0
----
-10575
-75690
-931491

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

skipif mysql # not compatible
query II rowsort label-844
SELECT + - COUNT ( * ) AS col0, 6 AS col1 FROM tab1 AS cor0
----
-3
6

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL - 64 * 40 + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 - + col1 IS NULL
----
-2563

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - 64 * 40 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 - + col1 IS NULL
----
-2563

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT DISTINCT - 75 DIV ( - col0 ) * + ( + 71 ) - - 64 col2 FROM tab0 cor0
----
419
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-850
SELECT DISTINCT - 75 / ( - col0 ) * + ( + 71 ) - - 64 col2 FROM tab0 cor0
----
419
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 * + 62 col0 FROM tab1 AS cor0
----
-161262
-447950
-513422

query I rowsort
SELECT + 70 AS col1 FROM tab0 WHERE NULL > NULL
----

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

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

query I rowsort
SELECT + 55 + - col0 + col2 + col0 * - - col1 FROM tab2
----
2378
4959
5063

query I rowsort
SELECT col1 * - 48 * - + col2 + + + col2 FROM tab0
----
10090
182783
4851

query I rowsort
SELECT ( + - col0 ) * - col0 + + col0 AS col1 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT + 87 + - COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT + 87 + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
78

query I rowsort
SELECT col1 * + col2 + + 60 FROM tab0
----
159
270
3867

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT - 22 + COUNT( * ) AS col1 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-859
SELECT - 22 + COUNT ( * ) AS col1 FROM tab0
----
-19

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col0 * + col2 + - 5
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-865
SELECT CAST( + 49 AS SIGNED ) AS col1 FROM tab2 cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-865
SELECT CAST ( + 49 AS INTEGER ) AS col1 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT ALL - - col1 * + 83 FROM tab1 cor0
----
1162
3901
415

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

skipif mysql # not compatible
query I rowsort label-867
SELECT + SUM ( - 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 26 * + 61 FROM tab2
----
1586
1586
1586

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT 51 / + + COUNT ( * ) FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-875
SELECT + CAST( + col2 AS SIGNED ) * col0 + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
1007
2483
4283

skipif mysql # not compatible
query I rowsort label-875
SELECT + CAST ( + col2 AS INTEGER ) * col0 + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + COUNT( * ) + + 50 * 91 AS col1 FROM tab1 AS cor0
----
4553

skipif mysql # not compatible
query I rowsort label-876
SELECT + COUNT ( * ) + + 50 * 91 AS col1 FROM tab1 AS cor0
----
4553

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT DISTINCT + 7 DIV 50 * - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT + 7 / 50 * - col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT + col2 DIV - col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-881
SELECT + col2 / - col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-1
0
0

query I rowsort
SELECT ALL + 57 * + col0 AS col1 FROM tab2 AS cor0
----
2622
3648
4275

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-883
SELECT + COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT DISTINCT + 59 DIV col0 * col1 FROM tab1
----
0
14

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT + 59 / col0 * col1 FROM tab1
----
0
14

query I rowsort
SELECT ALL + 25 FROM tab0 WHERE 70 BETWEEN 78 AND + 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-887
SELECT ALL + 63 AS col0 FROM tab1 WHERE - - 41 / - + CAST( NULL AS SIGNED ) IS NULL
----
63
63
63

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL + 63 AS col0 FROM tab1 WHERE - - 41 / - + CAST ( NULL AS INTEGER ) IS NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL 62 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL 62 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT 40 FROM tab1 AS cor0 WHERE NULL >= 90
----

query I rowsort
SELECT 94 + - 0 - 51 AS col1 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT - + 23 * col0 + 88 AS col1 FROM tab2 AS cor0
----
-1384
-1637
-970

onlyif mysql # aggregate syntax: 
query II rowsort label-892
SELECT 28 + + COUNT( * ), MAX( - - 75 ) AS col2 FROM tab2 AS cor0
----
31
75

skipif mysql # not compatible
query II rowsort label-892
SELECT 28 + + COUNT ( * ), MAX ( - - 75 ) AS col2 FROM tab2 AS cor0
----
31
75

query II rowsort
SELECT DISTINCT - col0 - - - col2 * - 23 + 96 AS col0, + col0 + - col1 FROM tab0 AS cor0
----
1162
-66
2276
96
239
66

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - + 52 + + col1 * ( + col2 ) + 40 + col0 IS NULL
----
51
67
77

query I rowsort
SELECT 14 * + col1 FROM tab1 cor0
----
196
658
70

query I rowsort
SELECT DISTINCT - col2 / - + 38 FROM tab1 cor0 WHERE NOT NULL >= - 17 / + 44 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 90 * - 70 <= ( - + col0 * 88 * - + col1 + - - 69 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT col2 * - - 64 AS col0 FROM tab0 AS cor0
----
3008
6336
640

query II rowsort
SELECT 5 AS col1, 16 AS col0 FROM tab2 AS cor0
----
5
16
5
16
5
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, - 81 * 71 * - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL + 26 * SUM( 23 ) AS col2 FROM tab0
----
1794

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL + 26 * SUM ( 23 ) AS col2 FROM tab0
----
1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT 58 * 63 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT 58 * 63 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT + 44 * COUNT( * ) AS col2 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-906
SELECT + 44 * COUNT ( * ) AS col2 FROM tab0
----
132

query II rowsort
SELECT col2 AS col0, + col1 * - col0 FROM tab2
----
23
-2346
40
-4928
58
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-908
SELECT + SUM( + col1 ) DIV + + COUNT( * ) AS col1 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-908
SELECT + SUM ( + col1 ) / + + COUNT ( * ) AS col1 FROM tab2
----
65

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= + col1 + + + 17 * + 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54 + + + 25 col0, + col1 FROM tab1 AS cor0
----
79
14
79
47
79
5

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

query I rowsort
SELECT DISTINCT 11 + col1 + ( + 77 ) FROM tab1
----
102
135
93

query I rowsort
SELECT - 68 * ( col2 ) AS col1 FROM tab1 AS cor0
----
-4012
-4624
-6528

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-914
SELECT * FROM tab2 AS cor0 WHERE col0 * + col0 * - - col2 * - 14 * - CAST( NULL AS SIGNED ) NOT BETWEEN - col2 AND - 29 / - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-914
SELECT * FROM tab2 AS cor0 WHERE col0 * + col0 * - - col2 * - 14 * - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 AND - 29 / - ( col0 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-917
SELECT - + CAST( + 79 AS DECIMAL ) / col2 AS col0 FROM tab1 AS cor0 WHERE col0 BETWEEN + 53 + - 87 * + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-917
SELECT - + CAST ( + 79 AS REAL ) / col2 AS col0 FROM tab1 AS cor0 WHERE col0 BETWEEN + 53 + - 87 * + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - + 55 AS col2 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT ALL 92 + - col0 AS col1 FROM tab1 AS cor0
----
1
41
7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-921
SELECT COUNT( * ), COUNT( - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-921
SELECT COUNT ( * ), COUNT ( - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT DISTINCT + MAX( DISTINCT - + 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT + MAX ( DISTINCT - + 72 ) FROM tab2
----
-72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 / - col1 IS NOT NULL
----

query I rowsort
SELECT col0 + - 20 AS col0 FROM tab2
----
26
44
55

query I rowsort
SELECT DISTINCT 82 + - - col0 + - col0 * + 46 FROM tab0
----
-3833
-4283
-593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT col2 + CAST( + col2 AS SIGNED ) col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-926
SELECT col2 + CAST ( + col2 AS INTEGER ) col2 FROM tab1
----
118
136
192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT DISTINCT SUM( DISTINCT + col0 ) - COUNT( * ) FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT SUM ( DISTINCT + col0 ) - COUNT ( * ) FROM tab0 AS cor0
----
196

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT DISTINCT + 90 * 22 + - col0 + 71 DIV + 6 col1 FROM tab1 cor0
----
1900
1906
1940

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-929
SELECT DISTINCT + 90 * 22 + - col0 + 71 / + 6 col1 FROM tab1 cor0
----
1900
1906
1940

query I rowsort
SELECT ALL - col0 + 96 FROM tab2
----
21
32
50

query I rowsort
SELECT ( + col2 ) * col2 - - col2 FROM tab1
----
3540
4692
9312

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - col0 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT col1 * - 66 FROM tab1 WHERE NOT col2 < - 36
----
-3102
-330
-924

query I rowsort
SELECT + 70 + - col2 FROM tab0
----
-29
23
60

query I rowsort
SELECT DISTINCT - col0 + 88 * col1 FROM tab1
----
1181
355
4045

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 13 / col1 ) IN ( 2 )
----

query I rowsort
SELECT 90 + - col1 AS col1 FROM tab1
----
43
76
85

query I rowsort
SELECT DISTINCT col1 + - col1 * 31 FROM tab0
----
-2430
-30
-630

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

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

query I rowsort
SELECT ALL col1 / + col1 + + col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN col1 * - 45 + + col2 AND col0 / - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT DISTINCT + col0 DIV col1 + + col0 AS col0 FROM tab0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT + col0 / col1 + + col0 AS col0 FROM tab0
----
15
194
91

query I rowsort
SELECT ALL - col2 * - 75 FROM tab0 AS cor0
----
3525
7425
750

query I rowsort
SELECT col1 * 30 FROM tab2 AS cor0
----
1530
2010
2310

query I rowsort
SELECT ALL 94 + col2 * - col1 FROM tab2
----
-1079
-2986
-3792

query III rowsort
SELECT * FROM tab1 WHERE col2 * + ( 97 ) <> + col1 + - col1 * - ( + 49 * 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE + col2 <> col2 * - col0
----
-3

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE + col2 <> col2 * - col0
----
-3

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

query I rowsort
SELECT DISTINCT col2 + 83 AS col0 FROM tab2 cor0
----
106
123
141

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT ALL + col2 + + col1 DIV col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL + col2 + + col1 / col2 FROM tab1 AS cor0
----
59
68
96

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

query I rowsort
SELECT - 51 * 78 FROM tab0 AS cor0
----
-3978
-3978
-3978

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-961
SELECT ALL - + CAST( NULL AS SIGNED ) * 67 + SUM( + 61 ) * - 55 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL - + CAST ( NULL AS INTEGER ) * 67 + SUM ( + 61 ) * - 55 FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-962
SELECT DISTINCT - MAX ( + col1 ) col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT COUNT( - col1 ) * - 88 AS col1 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-963
SELECT COUNT ( - col1 ) * - 88 AS col1 FROM tab0 AS cor0
----
-264

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

skipif mysql # not compatible
query I rowsort label-964
SELECT - MIN ( ALL - 13 ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL - col1 * 4 FROM tab0
----
-324
-4
-84

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

query I rowsort
SELECT DISTINCT - col1 * + + 12 FROM tab0
----
-12
-252
-972

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

query I rowsort
SELECT + - col1 * - 16 + 33 + col0 FROM tab1 AS cor0
----
198
308
876

query I rowsort
SELECT 12 * - col2 * + 61 + 29 FROM tab0 AS cor0
----
-34375
-72439
-7291

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT 72 * - - MIN( DISTINCT col0 ) + ( COUNT( * ) ) col2 FROM tab0 AS cor0
----
1083

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-971
SELECT 72 * - - MIN ( DISTINCT col0 ) + ( COUNT ( * ) ) col2 FROM tab0 AS cor0
----
1083

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

skipif mysql # not compatible
query I rowsort label-972
SELECT + ( + - col1 ) / - 46 FROM tab0 cor0
----
0
0
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT col0 DIV col1 * + 81 + col0 col2 FROM tab0 AS cor0
----
15
411
7954

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-974
SELECT col0 / col1 * + 81 + col0 col2 FROM tab0 AS cor0
----
15
411
7954

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 23 + col1 * + 87 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - - col1 / 91 * + 60 ) <> NULL
----

query I rowsort
SELECT ALL + ( - - col2 ) * 79 AS col1 FROM tab2
----
1817
3160
4582

query I rowsort
SELECT col2 * - - col2 * + col0 AS col1 FROM tab2
----
102400
24334
252300

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 97 NOT IN ( + 16 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT MAX( DISTINCT - - col2 ) col1 FROM tab0
----
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT DISTINCT col0 + - 55 DIV 38 + - - 34 AS col1 FROM tab0
----
120
130
48

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT col0 + - 55 / 38 + - - 34 AS col1 FROM tab0
----
120
130
48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT ALL SUM( + col2 ), - 68 col1 FROM tab2
----
121
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-985
SELECT ALL SUM ( + col2 ), - 68 col1 FROM tab2
----
121
-68

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col2 FROM tab2
----
-1196
-3120
-3944

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-988
SELECT DISTINCT * FROM tab2 WHERE - + 42 + + + col1 IN ( - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-988
SELECT DISTINCT * FROM tab2 WHERE - + 42 + + + col1 IN ( - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT COUNT( * ) * - 26 * + 82 FROM tab2
----
-6396

skipif mysql # not compatible
query I rowsort label-989
SELECT COUNT ( * ) * - 26 * + 82 FROM tab2
----
-6396

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

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

query I rowsort
SELECT DISTINCT ( + + col2 ) + ( - col1 ) * - 49 FROM tab2 cor0
----
2522
3341
3813

query I rowsort
SELECT ALL + col0 + - 1 AS col2 FROM tab1 AS cor0
----
50
84
90

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

query I rowsort
SELECT ALL - col2 - + + col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ALL 59 * col2 FROM tab0 AS cor0 WHERE NOT - col1 + + 17 IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT + MIN( DISTINCT + - col0 ) + - SUM( col1 ) AS col0 FROM tab0 AS cor0
----
-200

skipif mysql # not compatible
query I rowsort label-996
SELECT + MIN ( DISTINCT + - col0 ) + - SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
-200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT 32 AS col1 FROM tab0 WHERE NULL IN ( CAST( - ( - col2 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-997
SELECT 32 AS col1 FROM tab0 WHERE NULL IN ( CAST ( - ( - col2 ) AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + 4 + + 78 * + + 55 col2 FROM tab0
----
4391
5509
6121

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT DISTINCT MIN( DISTINCT + col2 ) * + + 28 - - COUNT( * ) AS col2, - COUNT( * ) AS col0 FROM tab1
----
1655
-3

skipif mysql # not compatible
query II rowsort label-1000
SELECT DISTINCT MIN ( DISTINCT + col2 ) * + + 28 - - COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab1
----
1655
-3

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT 11 * + ( + - col2 ) FROM tab2
----
-253
-440
-638

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

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

query I rowsort
SELECT 61 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1006
SELECT * FROM tab1 WHERE NULL NOT IN ( + col2 * - 5, + ( - CAST( + col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-1006
SELECT * FROM tab1 WHERE NULL NOT IN ( + col2 * - 5, + ( - CAST ( + col0 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1007
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( col0 AS SIGNED ) / - 88 < - - 30
----

skipif mysql # not compatible
query III rowsort label-1007
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( col0 AS INTEGER ) / - 88 < - - 30
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT DISTINCT - MAX( col2 ) AS col2 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - MAX ( col2 ) AS col2 FROM tab2 cor0
----
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * col0 + + 56 ) < + 24 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT - 55 * SUM( 50 ) AS col0 FROM tab2 AS cor0
----
-8250

skipif mysql # not compatible
query I rowsort label-1011
SELECT - 55 * SUM ( 50 ) AS col0 FROM tab2 AS cor0
----
-8250

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL - MAX( ALL - 47 ) * - + 59 AS col0 FROM tab0
----
-2773

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - MAX ( ALL - 47 ) * - + 59 AS col0 FROM tab0
----
-2773

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1013
SELECT * FROM tab0 WHERE NOT ( + 2 + + + 37 + - ( - 76 ) * - - col0 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1013
SELECT * FROM tab0 WHERE NOT ( + 2 + + + 37 + - ( - 76 ) * - - col0 ) IN ( CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1015
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + - 82 + 86 + - CAST( - CAST( - ( - col0 ) AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1015
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + - 82 + 86 + - CAST ( - CAST ( - ( - col0 ) AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 * - col2 + + 25 + - 90 AS col1 FROM tab2 AS cor0 WHERE NOT col2 > col0
----
-1123
-2625
-4415

onlyif mysql # aggregate syntax: 
query II rowsort label-1017
SELECT ( - COUNT( * ) ) AS col0, - ( 10 ) col1 FROM tab2 AS cor0
----
-3
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1017
SELECT ( - COUNT ( * ) ) AS col0, - ( 10 ) col1 FROM tab2 AS cor0
----
-3
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT + COUNT( DISTINCT + 68 ) col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1018
SELECT DISTINCT + COUNT ( DISTINCT + 68 ) col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( ( + col2 ) + - col2 ) NOT IN ( + col2 * 94 )
----
3

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( ( + col2 ) + - col2 ) NOT IN ( + col2 * 94 )
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 BETWEEN CAST( ( col0 ) AS SIGNED ) - - col2 AND col2 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1022
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 BETWEEN CAST ( ( col0 ) AS INTEGER ) - - col2 AND col2 )
----
51
85
91

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

query I rowsort
SELECT + - 67 * col2 + - col2 FROM tab0 AS cor0
----
-3196
-6732
-680

query I rowsort
SELECT - ( - col2 ) * 12 FROM tab1
----
1152
708
816

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT ALL - 81 DIV 96 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL - 81 / 96 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1027
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col2
----

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT - COUNT( * ), - 17 + 26 + 91 col2 FROM tab2
----
-3
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1028
SELECT - COUNT ( * ), - 17 + 26 + 91 col2 FROM tab2
----
-3
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT - SUM( DISTINCT col0 ) + MAX( - col1 ) + - COUNT( * ) FROM tab1
----
-235

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT - SUM ( DISTINCT col0 ) + MAX ( - col1 ) + - COUNT ( * ) FROM tab1
----
-235

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1030
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL OR NOT - + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1030
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL OR NOT - + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - - col2 + + col0 FROM tab2 AS cor0
----
1664
3439
575

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

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

query II rowsort
SELECT + col0 + + 40 + 92 AS col2, + col0 * - 10 FROM tab2 AS cor0
----
178
-460
196
-640
207
-750

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

query I rowsort
SELECT + + col2 + + - 21 * 40 AS col0 FROM tab0 AS cor0
----
-741
-793
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 34 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 34 IS NOT NULL
----
9

query I rowsort
SELECT DISTINCT - 59 + - + col1 * + 59 AS col1 FROM tab0
----
-118
-1298
-4838

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

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

query I rowsort
SELECT - 14 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query II rowsort
SELECT DISTINCT col0 - col0, col1 + col1 AS col2 FROM tab2 AS cor0
----
0
102
0
134
0
154

query I rowsort
SELECT ALL col1 + + col1 + + col2 FROM tab0 AS cor0
----
101
209
52

query I rowsort
SELECT DISTINCT + col2 - + + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + - col0 - + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - + 91 / - col1 - 27 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 41 ) FROM tab2
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL 98 - + ( COUNT( * ) ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL 98 - + ( COUNT ( * ) ) FROM tab2
----
95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT - 85 DIV 59 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1049
SELECT - 85 / 59 FROM tab0
----
-1
-1
-1

query II rowsort
SELECT col1, + 20 AS col0 FROM tab2
----
51
20
67
20
77
20

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

skipif mysql # not compatible
query I rowsort label-1051
SELECT + + col1 / 66 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col2 * + - col2 * + + 21 FROM tab2 cor0
----
-11109
-33600
-70644

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1055
SELECT ALL + 69, + 43 * - ( + + COUNT( * ) ) AS col0 FROM tab1
----
69
-129

skipif mysql # not compatible
query II rowsort label-1055
SELECT ALL + 69, + 43 * - ( + + COUNT ( * ) ) AS col0 FROM tab1
----
69
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70, 76 * 60 col1 FROM tab2
----
70
4560
70
4560
70
4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT DISTINCT + + ( CAST( col2 AS SIGNED ) ) * - 85 FROM tab2 AS cor0
----
-1955
-3400
-4930

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT + + ( CAST ( col2 AS INTEGER ) ) * - 85 FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT ALL - SUM( - - col1 ) * + 20 + 89 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1968

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - SUM ( - - col1 ) * + 20 + 89 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1968

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT + ( 72 ) DIV + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1059
SELECT + ( 72 ) / + col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT DISTINCT 7 * COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT 7 * COUNT ( * ) FROM tab2 AS cor0
----
21

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1064
SELECT + 59 DIV + col2 AS col0, + 82 col1 FROM tab1
----
0
82
0
82
1
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1064
SELECT + 59 / + col2 AS col0, + 82 col1 FROM tab1
----
0
82
0
82
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + 87
----
0

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT ALL - COUNT( * ) / + - 45 * + - SUM( ALL - 72 ) * + COUNT( ALL + 72 ) * + COUNT( * ) * CAST( NULL AS SIGNED ) + + 40 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - COUNT ( * ) / + - 45 * + - SUM ( ALL - 72 ) * + COUNT ( ALL + 72 ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 40 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1067
SELECT ALL - COUNT( * ) + - COUNT( * ) DIV - + 70 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL - COUNT ( * ) + - COUNT ( * ) / - + 70 AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-1068
SELECT + col2 DIV + col0 + 72 AS col2, col2 FROM tab1
----
72
59
72
68
73
96

skipif mysql # not compatible
query II rowsort label-1068
SELECT + col2 / + col0 + 72 AS col2, col2 FROM tab1
----
72
59
72
68
73
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1069
SELECT ALL COUNT( * ) + COUNT( * ) * + CAST( - 78 AS SIGNED ) col0 FROM tab2
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1069
SELECT ALL COUNT ( * ) + COUNT ( * ) * + CAST ( - 78 AS INTEGER ) col0 FROM tab2
----
-231

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

query I rowsort
SELECT + col1 + - col2 + + + col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT DISTINCT - COUNT( * ) * - - SUM( + ( + - 82 ) ) + + ( + COUNT( * ) ) FROM tab1
----
741

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT - COUNT ( * ) * - - SUM ( + ( + - 82 ) ) + + ( + COUNT ( * ) ) FROM tab1
----
741

query I rowsort
SELECT DISTINCT + ( + col2 ) + + 74 FROM tab1 AS cor0
----
133
142
170

query I rowsort
SELECT 92 + - + 11 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT + - col0 + - - col1 * - - 67 + + col1 + - 81 FROM tab1 AS cor0
----
174
3024
820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT DISTINCT + - col2 - - col2 - - CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0 WHERE NOT 80 / - - col0 IN ( CAST( NULL AS SIGNED ) + + - ( - - col1 ), ( + + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT + - col2 - - col2 - - CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0 WHERE NOT 80 / - - col0 IN ( CAST ( NULL AS INTEGER ) + + - ( - - col1 ), ( + + col2 ) )
----

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col0 FROM tab0 AS cor0
----
174
194
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL + 76 + COUNT( * ) AS col1 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL + 76 + COUNT ( * ) AS col1 FROM tab0 cor0
----
79

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - + 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT 62 * CAST( - col2 AS SIGNED ) FROM tab1
----
-3658
-4216
-5952

skipif mysql # not compatible
query I rowsort label-1085
SELECT 62 * CAST ( - col2 AS INTEGER ) FROM tab1
----
-3658
-4216
-5952

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

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

query I rowsort
SELECT + ( 17 ) FROM tab1
----
17
17
17

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

query I rowsort
SELECT col1 * + - 9 FROM tab1
----
-126
-423
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab0, tab0 AS cor0
----
98

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

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

query II rowsort
SELECT ALL - ( + + col2 ) + col0, + col1 FROM tab1 AS cor0
----
-45
14
23
47
26
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1094
SELECT - ( - col1 ) + - 4 AS col2, - col1 * + col0 * col0 + - col1 * - 83 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-3
NULL
17
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1094
SELECT - ( - col1 ) + - 4 AS col2, - col1 * + col0 * col0 + - col1 * - 83 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-3
NULL
17
NULL
77
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL - SUM( + col0 ) * + - 45 * 98 FROM tab2 AS cor0
----
815850

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - SUM ( + col0 ) * + - 45 * 98 FROM tab2 AS cor0
----
815850

query I rowsort
SELECT + col0 + 53 AS col0 FROM tab1 AS cor0
----
104
138
144

query I rowsort
SELECT ALL - + col0 / col2 * - col2 - - col0 - col1 FROM tab2 AS cor0 WHERE NOT col2 + - col1 NOT IN ( col2 + + col1, + col0, 67 )
----

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

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

query I rowsort
SELECT DISTINCT - 63 * + + ( - col0 ) FROM tab2 AS cor0
----
2898
4032
4725

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - 48
----

query I rowsort
SELECT - 14 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-14
-14
-14

query II rowsort
SELECT DISTINCT - 73, + col2 AS col0 FROM tab2 AS cor0
----
-73
23
-73
40
-73
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1105
SELECT - CAST ( + col1 AS INTEGER ) col0 FROM tab1
----
-14
-47
-5

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

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col0 <= ( NULL )
----

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

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

query I rowsort
SELECT ALL - col0 * + col2 + + col2 FROM tab0
----
-658
-860
-9504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE 85 IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT + MIN( ALL - col1 ) - + COUNT( - col0 ) AS col2, + 24 col2 FROM tab2 AS cor0
----
-80
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1112
SELECT + MIN ( ALL - col1 ) - + COUNT ( - col0 ) AS col2, + 24 col2 FROM tab2 AS cor0
----
-80
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col0 - col1 + - 53 col1 FROM tab1 cor0
----
-123
-22
-84

query I rowsort
SELECT col2 + + + 31 AS col0 FROM tab0 AS cor0
----
130
41
78

query I rowsort
SELECT DISTINCT 77 * - col0 - + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1123
-6776
-7467

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1116
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1116
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1117
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col2 * - 50 + col2 * ( - 59 ) + + + col1 <= NULL
----

skipif mysql # not compatible
query II rowsort label-1117
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col2 * - 50 + col2 * ( - 59 ) + + + col1 <= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col1 ) col0, 56 FROM tab1
----
-14
56
-47
56
-5
56

query I rowsort
SELECT ALL col0 * - col1 - 95 FROM tab2 AS cor0
----
-2441
-5023
-5120

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 76 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 + + 88 AS col2 FROM tab2 AS cor0
----
13
24
42

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

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

query II rowsort
SELECT ALL ( + + 3 ) AS col1, 75 FROM tab2 AS cor0
----
3
75
3
75
3
75

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

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

query I rowsort
SELECT ALL + 39 / - 84 FROM tab1 WHERE - col2 < NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 * 68 AS col0 FROM tab0
----
3196
6732
680

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL + MIN( DISTINCT + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL + MIN ( DISTINCT + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT - - CAST( - - col2 AS SIGNED ) FROM tab1 WHERE NOT - col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-1131
SELECT - - CAST ( - - col2 AS INTEGER ) FROM tab1 WHERE NOT - col1 <> NULL
----

query II rowsort
SELECT DISTINCT 9, + col2 + 89 + + col2 AS col1 FROM tab1
----
9
207
9
225
9
281

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + col1 + - - 73 + col2 - + + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-1135
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + col1 + - - 73 + col2 - + + 18 )
----
0

query I rowsort
SELECT - + 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 9 IS NOT NULL
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT MAX( ALL 36 ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1137
SELECT MAX ( ALL 36 ) AS col0 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL 44 + - ( - COUNT( * ) ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL 44 + - ( - COUNT ( * ) ) FROM tab1 cor0
----
47

query II rowsort
SELECT + + ( col2 ), + 8 + + 75 AS col0 FROM tab1 AS cor0
----
59
83
68
83
96
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1140
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + - 84 < 24 * - - col2 * col1 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1140
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + - 84 < 24 * - - col2 * col1 - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 FROM tab1 WHERE - 23 > NULL
----

query I rowsort
SELECT + col2 + + - col1 + col2 FROM tab1
----
113
178
89

query I rowsort
SELECT ALL col1 + - - ( - col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 63 + + - col1 FROM tab2
----
-14
-4
12

query I rowsort
SELECT col0 + + 93 FROM tab1
----
144
178
184

query I rowsort
SELECT + col1 + + + ( - 39 ) FROM tab1
----
-25
-34
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 59
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1149
SELECT ALL - 5 + + + 36 DIV - col0 col2 FROM tab0 AS cor0
----
-5
-5
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1149
SELECT ALL - 5 + + + 36 / - col0 col2 FROM tab0 AS cor0
----
-5
-5
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT DISTINCT ( - MAX( DISTINCT - 24 ) ) + ( - 68 ) col1, 25 * - 52 FROM tab2 cor0
----
-44
-1300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1150
SELECT DISTINCT ( - MAX ( DISTINCT - 24 ) ) + ( - 68 ) col1, 25 * - 52 FROM tab2 cor0
----
-44
-1300

query I rowsort
SELECT col0 - col2 + - - col1 AS col1 FROM tab2
----
101
74
84

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

query I rowsort
SELECT - col1 * - 96 * + - col1 * + ( + ( - col0 ) ) FROM tab2
----
11486016
32320800
36427776

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT - COUNT( * ) * - 85 AS col1 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-1154
SELECT - COUNT ( * ) * - 85 AS col1 FROM tab2
----
255

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

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - col2 / - - 98 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - ( + 36 ) AS col0 FROM tab0 AS cor0
----
-36
-36
-36

query II rowsort
SELECT DISTINCT + 89, col0 AS col2 FROM tab0 AS cor0
----
89
15
89
87
89
97

query I rowsort
SELECT + col0 * - 30 + - - col2 + - + col2 + - 55 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1585
-2605
-2785

onlyif mysql # aggregate syntax: 
query II rowsort label-1159
SELECT - ( - COUNT( * ) ), - 78 * ( - 2 ) AS col2 FROM tab2 AS cor0
----
3
156

skipif mysql # not compatible
query II rowsort label-1159
SELECT - ( - COUNT ( * ) ), - 78 * ( - 2 ) AS col2 FROM tab2 AS cor0
----
3
156

onlyif mysql # DIV for integer division: 
query II rowsort label-1160
SELECT DISTINCT col2 AS col2, + col1 DIV + 95 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-1160
SELECT DISTINCT col2 AS col2, + col1 / + 95 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT ( + + 38 ) AS col2 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT DISTINCT CAST( NULL AS SIGNED ) / 60 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1162
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 60 col1 FROM tab1
----
NULL

query I rowsort
SELECT - col2 * - 40 AS col2 FROM tab1
----
2360
2720
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT COUNT( col1 ) AS col2 FROM tab2 WHERE NOT + col1 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT COUNT ( col1 ) AS col2 FROM tab2 WHERE NOT + col1 <= ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 85
----

query II rowsort
SELECT + ( col0 ) AS col2, - col1 * - + ( col0 ) * - col1 * + col0 AS col2 FROM tab0 AS cor0
----
15
-1476225
87
-3337929
97
-9409

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

query I rowsort
SELECT - col0 * + + 95 + + 86 FROM tab0 AS cor0
----
-1339
-8179
-9129

query I rowsort
SELECT DISTINCT ( - col2 ) + - col2 AS col1 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT col2 + + 15 AS col2 FROM tab0 AS cor0
----
114
25
62

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

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

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

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

query II rowsort
SELECT + - 88 * 45 + + col1, - col2 AS col2 FROM tab2 AS cor0
----
-3883
-40
-3893
-58
-3909
-23

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

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

query II rowsort
SELECT ALL 34 AS col0, 31 AS col2 FROM tab2, tab0 AS cor0
----
18 values hashing to 7091d74e726e2ae3c8b2110ab3c92dbf

query I rowsort
SELECT 53 * + - col0 AS col0 FROM tab0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query II rowsort label-1177
SELECT 32 * - COUNT( * ), COUNT( * ) AS col1 FROM tab0
----
-96
3

skipif mysql # not compatible
query II rowsort label-1177
SELECT 32 * - COUNT ( * ), COUNT ( * ) AS col1 FROM tab0
----
-96
3

query II rowsort
SELECT 89, - col1 AS col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1179
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab1, tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 + + col1 col1 FROM tab1
----
-113
-178
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1181
SELECT - CAST( NULL AS DECIMAL ) * AVG ( + + col1 ) * - MAX( + col2 ) + + ( 14 ) + + COUNT( * ) + + 42 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT - CAST ( NULL AS REAL ) * AVG ( + + col1 ) * - MAX ( + col2 ) + + ( 14 ) + + COUNT ( * ) + + 42 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 53 + col1 AS col1 FROM tab0 AS cor0
----
134
54
74

query I rowsort
SELECT - + ( + ( col2 ) ) + + col1 AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT - 99 DIV - col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 99 / - col2 AS col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 59 * + - col0 * - col1 + - 31 col2 FROM tab0 AS cor0
----
-1075306
-555162
-9378022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1186
SELECT - 4 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1186
SELECT - 4 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT - + MAX( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT - + MAX ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-1189
SELECT col1, - col0 + - + col2 DIV - 46 FROM tab0 AS cor0
----
1
-95
21
-87
81
-14

skipif mysql # not compatible
query II rowsort label-1189
SELECT col1, - col0 + - + col2 / - 46 FROM tab0 AS cor0
----
1
-95
21
-87
81
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1190
SELECT ALL 65 + + - col2 + - - CAST( - 58 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-16
-33
-51

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL 65 + + - col2 + - - CAST ( - 58 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-16
-33
-51

query I rowsort
SELECT DISTINCT col0 * - + 57 AS col1 FROM tab1
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL COUNT( * ) * 64 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL COUNT ( * ) * 64 FROM tab1
----
192

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1194
SELECT DISTINCT ( + COUNT( * ) ) DIV - - CAST( + 65 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT ( + COUNT ( * ) ) / - - CAST ( + 65 AS INTEGER ) FROM tab0
----
0

query II rowsort
SELECT - 42, + 0 AS col0 FROM tab0
----
-42
0
-42
0
-42
0

query I rowsort
SELECT col2 * - - 42 FROM tab0
----
1974
4158
420

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT 48 + - MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT 48 + - MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1201
SELECT + + COUNT( * ) FROM tab0 WHERE - + 1 + - CAST( NULL AS SIGNED ) + - CAST( + - 38 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1201
SELECT + + COUNT ( * ) FROM tab0 WHERE - + 1 + - CAST ( NULL AS INTEGER ) + - CAST ( + - 38 AS INTEGER ) IS NULL
----
3

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 74 = + 6 * - - col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1205
SELECT DISTINCT - ( 96 ) - + 10 + 35 * - CAST( NULL AS SIGNED ) * + 18 * 48 * - col1 AS col1, 87 FROM tab0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-1205
SELECT DISTINCT - ( 96 ) - + 10 + 35 * - CAST ( NULL AS INTEGER ) * + 18 * 48 * - col1 AS col1, 87 FROM tab0
----
NULL
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT - COUNT( * ) + + SUM( + col0 ) - - + ( + 4 ) AS col2 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-1207
SELECT - COUNT ( * ) + + SUM ( + col0 ) - - + ( + 4 ) AS col2 FROM tab2
----
186

query I rowsort
SELECT + col2 + 90 AS col1 FROM tab0
----
100
137
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - 9 * + col0 col1 FROM tab2
----
-21114
-44352
-45225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT - COUNT( * ) * - SUM( + col0 ) AS col0 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-1211
SELECT - COUNT ( * ) * - SUM ( + col0 ) AS col0 FROM tab0
----
597

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 <> - col1
----

query I rowsort
SELECT + + col2 * 49 + + col0 + + col0 FROM tab0 AS cor0
----
2333
5045
664

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + col2 > + 29 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL - COUNT( * ) * + - 13 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL - COUNT ( * ) * + - 13 FROM tab0
----
39

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

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

query I rowsort
SELECT DISTINCT - col0 * - 69 FROM tab2 cor0
----
3174
4416
5175

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 <> - col0 + - 60 - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL + COUNT( * ) * - + 97 AS col2 FROM tab1 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL + COUNT ( * ) * - + 97 AS col2 FROM tab1 cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT - COUNT( * ) * COUNT( + + 13 ) + 92 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-1226
SELECT - COUNT ( * ) * COUNT ( + + 13 ) + 92 FROM tab0 AS cor0
----
83

query II rowsort
SELECT - + col1 - col0, 97 * - + ( col0 ) + 24 * + + col2 FROM tab2 AS cor0 WHERE NOT + col1 * - 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 59 + - col1 FROM tab0 AS cor0
----
-2854
-5842
-611

query I rowsort
SELECT 98 * + col0 * + col2 AS col1 FROM tab2 AS cor0
----
103684
250880
426300

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 IS NOT NULL AND NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 NOT IN ( - 74, 27 + + col1, col1 * - 80 * + 1 + - 97, - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1232
SELECT ALL - col1 DIV - CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL - col1 / - CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + ( - col1 ) + + 11 AS col0 FROM tab0
----
-430
-6550
10

query I rowsort
SELECT ALL + col0 * 36 FROM tab0 WHERE NULL IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * + col2 * col2 + - + col2 col1 FROM tab1
----
327155
434588
866208

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

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

query I rowsort
SELECT + - col2 + - + 89 * col1 FROM tab1 AS cor0
----
-1342
-4251
-504

query I rowsort
SELECT + 16 + + 50 FROM tab0 cor0
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT ALL + col0 DIV + 54 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + col0 / + 54 AS col1 FROM tab0
----
0
1
1

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

query I rowsort
SELECT DISTINCT + + col1 * + + col2 - col1 AS col0 FROM tab1 AS cor0
----
1330
290
3149

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

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

query I rowsort
SELECT + 52 * col0 AS col1 FROM tab2 AS cor0
----
2392
3328
3900

query II rowsort
SELECT - 30, + 40 AS col0 FROM tab0 cor0
----
-30
40
-30
40
-30
40

query I rowsort
SELECT DISTINCT + 19 + + 22 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL 62 - - 41 + + col1 AS col1 FROM tab0 AS cor0
----
104
124
184

query I rowsort
SELECT col1 - + 80 FROM tab1 AS cor0
----
-33
-66
-75

query III rowsort
SELECT * FROM tab1 WHERE - 89 IN ( + col2 * - 98, - col2, - 26 )
----

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

query I rowsort
SELECT col1 + + + 91 + - 1 + col2 * col1 - - col1 FROM tab1
----
1462
3380
395

query II rowsort
SELECT - 88 + 96 * - ( + col2 ) + 44 AS col1, 77 * + 43 AS col1 FROM tab0
----
-1004
3311
-4556
3311
-9548
3311

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT MIN( ALL + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT MIN ( ALL + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1257
SELECT - ( - 15 ) * - ( - - COUNT( * ) ) AS col1, - MIN( + 92 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-45
-92

skipif mysql # not compatible
query II rowsort label-1257
SELECT - ( - 15 ) * - ( - - COUNT ( * ) ) AS col1, - MIN ( + 92 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-45
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - COUNT( * ) * 98 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-1259
SELECT - COUNT ( * ) * 98 FROM tab1 AS cor0
----
-294

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - 8 * + - col0
----

query I rowsort
SELECT DISTINCT + col2 * + - 32 FROM tab0 AS cor0
----
-1504
-3168
-320

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

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

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

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT COUNT ( * ) + - + COUNT ( DISTINCT - 61 ) FROM tab0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - 92 + + + 98 * + COUNT( * ) AS col1 FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-1267
SELECT - 92 + + + 98 * + COUNT ( * ) AS col1 FROM tab0
----
202

query I rowsort
SELECT + 41 + - + col1 AS col2 FROM tab1
----
-6
27
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT - 19 col2 FROM tab2 AS cor0 WHERE - CAST( + col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1269
SELECT - 19 col2 FROM tab2 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT ALL - - CAST( - 13 AS SIGNED ) + + 80 FROM tab2 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - - CAST ( - 13 AS INTEGER ) + + 80 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT col0 * - 38 FROM tab1
----
-1938
-3230
-3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT col2 * 35 * - - col2 FROM tab1
----
121835
161840
322560

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT COUNT( ALL 6 ) AS col1 FROM tab2 WHERE NOT + col1 * - 34 < ( - + col2 ) + 94
----
0

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT COUNT ( ALL 6 ) AS col1 FROM tab2 WHERE NOT + col1 * - 34 < ( - + col2 ) + 94
----
0

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

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

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

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

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

query I rowsort
SELECT DISTINCT 69 + + - 3 AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + col0 + + + 43 FROM tab1 AS cor0
----
128
134
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 19 - - 96 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT - SUM( - col2 ) FROM tab0 cor0 WHERE NULL IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-1283
SELECT - SUM ( - col2 ) FROM tab0 cor0 WHERE NULL IS NULL
----
156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT - + 63 / + - 2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT - + 63 / + - 2 < NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * + col0 col0 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT COUNT( * ) * 27 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-1288
SELECT COUNT ( * ) * 27 FROM tab1
----
81

query I rowsort
SELECT ALL + 38 * col1 AS col1 FROM tab0
----
3078
38
798

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

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

query I rowsort
SELECT ALL col2 * + 30 * col1 FROM tab1
----
40320
8850
95880

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL + MIN( DISTINCT + col0 ) FROM tab0 WHERE NOT ( ( col2 ) BETWEEN col2 + + col2 + - - col1 * - - col1 + col2 * - 23 + - 62 AND + + 21 )
----
15

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + MIN ( DISTINCT + col0 ) FROM tab0 WHERE NOT ( ( col2 ) BETWEEN col2 + + col2 + - - col1 * - - col1 + col2 * - 23 + - 62 AND + + 21 )
----
15

query I rowsort
SELECT + 79 * - + col0 FROM tab1
----
-4029
-6715
-7189

query I rowsort
SELECT col1 * - 64 * - col1 * - - col2 FROM tab2
----
15178240
16663168
3828672

query I rowsort
SELECT + - 7 FROM tab1 WHERE NOT - + col0 * 95 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT - SUM( - 0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT - SUM ( - 0 ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - 22 + + col0 * col0 / - - ( + col2 ) + + 82 + 20 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1298
SELECT COUNT( ALL - CAST( + + 72 AS DECIMAL ) ), 93 AS col2 FROM tab0
----
3
93

skipif mysql # not compatible
query II rowsort label-1298
SELECT COUNT ( ALL - CAST ( + + 72 AS REAL ) ), 93 AS col2 FROM tab0
----
3
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT DISTINCT - 47 + COUNT( ALL col2 ) * - 45 FROM tab0 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT - 47 + COUNT ( ALL col2 ) * - 45 FROM tab0 AS cor0
----
-182

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT - + col2 DIV + 94 * + 83 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1301
SELECT - + col2 / + 94 * + 83 + col1 FROM tab2 AS cor0
----
51
67
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - - col2 + + col1 col1 FROM tab0 AS cor0
----
175
199
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1304
SELECT ALL SUM( col1 ), COUNT( * ) + - - COUNT( * ) + + 63 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT + 86 * 88 + col1 NOT IN ( - - col0 )
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1304
SELECT ALL SUM ( col1 ), COUNT ( * ) + - - COUNT ( * ) + + 63 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT + 86 * 88 + col1 NOT IN ( - - col0 )
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 5 * - col1 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT - 26 DIV + - 46 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1307
SELECT - 26 / + - 46 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + 50 AS col0 FROM tab1 AS cor0
----
2350
250
700

query I rowsort
SELECT + + ( col2 ) * - - col0 * col1 FROM tab2 AS cor0
----
197120
291450
53958

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 > col1
----

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

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

query I rowsort
SELECT DISTINCT ( 16 ) + + - 68 FROM tab0
----
-52

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab2
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT - 8 DIV + - 11 + - - col1 - col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-1315
SELECT - 8 / + - 11 + - - col1 - col2 FROM tab1 AS cor0
----
-21
-54
-82

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

query I rowsort
SELECT ALL + col1 + + - 79 + 63 * + col2 FROM tab2
----
1421
2518
3642

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

query I rowsort
SELECT + - 65 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 93 / + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + 73 + - - ( ( + col0 ) ) * - col2 * col1 col1, 12 AS col1 FROM tab1 AS cor0
----
-24710
12
-287405
12
-67522
12

query I rowsort
SELECT DISTINCT - + col2 - + col2 AS col1 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT - MIN( DISTINCT - 49 ) AS col1, 18 FROM tab2 AS cor0
----
49
18

skipif mysql # not compatible
query II rowsort label-1324
SELECT - MIN ( DISTINCT - 49 ) AS col1, 18 FROM tab2 AS cor0
----
49
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * + col2 col0 FROM tab0 AS cor0
----
786
891
9604

query II rowsort
SELECT - 27 * - 85 - + col2 + - 65, - 9 * - - col1 AS col1 FROM tab1 AS cor0
----
2134
-126
2162
-423
2171
-45

query I rowsort
SELECT DISTINCT - col0 * 31 FROM tab0 AS cor0
----
-2697
-3007
-465

query I rowsort
SELECT DISTINCT col0 * - 26 FROM tab0
----
-2262
-2522
-390

query I rowsort
SELECT 83 * col2 FROM tab0
----
3901
8217
830

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - 54 - - 18
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL - ( SUM( DISTINCT + 13 ) ) FROM tab2 AS cor0 WHERE - col1 + + col0 BETWEEN 27 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL - ( SUM ( DISTINCT + 13 ) ) FROM tab2 AS cor0 WHERE - col1 + + col0 BETWEEN 27 AND NULL
----
NULL

query I rowsort
SELECT - 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

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

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

query I rowsort
SELECT DISTINCT + - col0 + - 23 FROM tab0 AS cor0
----
-110
-120
-38

query I rowsort
SELECT - col2 / + col0 FROM tab0 AS cor0 WHERE NOT - col1 <= - - 4
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col2 + 13 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + + 30 ) >= - - col2 * - col1 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT + 5 + - col0 + + 38 DIV col1 FROM tab1 AS cor0
----
-44
-73
-86

skipif mysql # not compatible
query I rowsort label-1339
SELECT + 5 + - col0 + + 38 / col1 FROM tab1 AS cor0
----
-44
-73
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT DISTINCT SUM( DISTINCT col1 ) + + + 79 FROM tab0
----
182

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT SUM ( DISTINCT col1 ) + + + 79 FROM tab0
----
182

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

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

query I rowsort
SELECT - col1 + ( - ( + 0 ) ) * - - col2 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-1344
SELECT ALL + 12 DIV + 45 + - col1 * 3 * - col1, col1 FROM tab2
----
13467
67
17787
77
7803
51

skipif mysql # not compatible
query II rowsort label-1344
SELECT ALL + 12 / + 45 + - col1 * 3 * - col1, col1 FROM tab2
----
13467
67
17787
77
7803
51

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

query I rowsort
SELECT ALL + - col2 * + - 67 + + col2 * + 2 + - - 63 AS col0 FROM tab1 AS cor0
----
4134
4755
6687

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( 55 ) + - 14 NOT BETWEEN - 69 AND + 40 + 67
----

query I rowsort
SELECT + - col1 * 89 * col0 AS col1 FROM tab0 AS cor0
----
-108135
-162603
-8633

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT ALL + col1 + + CAST( ( + 57 ) AS SIGNED ) AS col0 FROM tab0
----
138
58
78

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + col1 + + CAST ( ( + 57 ) AS INTEGER ) AS col0 FROM tab0
----
138
58
78

query I rowsort
SELECT ALL - - col0 FROM tab0 AS cor0 WHERE NOT - 0 > + col1
----
15
87
97

query I rowsort
SELECT DISTINCT + 97 * - col1 FROM tab1 AS cor0
----
-1358
-4559
-485

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1354
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( - - CAST( - + 54 AS SIGNED ) AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1354
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( - - CAST ( - + 54 AS INTEGER ) AS REAL ) >= NULL
----

query II rowsort
SELECT - 42 AS col1, - ( - + col2 ) FROM tab1 AS cor0
----
-42
59
-42
68
-42
96

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

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

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

query I rowsort
SELECT ALL - 11 * + 33 FROM tab1
----
-363
-363
-363

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT DISTINCT 5 DIV - - COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT 5 / - - COUNT ( * ) AS col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( - col0 ) col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1364
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) BETWEEN NULL AND - - col2 / col2 * + - CAST( 60 AS SIGNED ) + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1364
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) BETWEEN NULL AND - - col2 / col2 * + - CAST ( 60 AS INTEGER ) + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT COUNT( * ) DIV 63 * COUNT( ( 37 ) ) FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1365
SELECT COUNT ( * ) / 63 * COUNT ( ( 37 ) ) FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1367
SELECT + COUNT( ALL + + 39 ) DIV 25 DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1367
SELECT + COUNT ( ALL + + 39 ) / 25 / + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL 36 + + MIN( DISTINCT - - col0 ) AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL 36 + + MIN ( DISTINCT - - col0 ) AS col0 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL + COUNT( * ) + + ( 79 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL + COUNT ( * ) + + ( 79 ) FROM tab0
----
82

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT + col1 DIV - + 49 + - 81 + + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-307
-7650
-9490

skipif mysql # not compatible
query I rowsort label-1372
SELECT + col1 / - + 49 + - 81 + + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-307
-7650
-9490

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT ALL - - col1 DIV - - 52 + + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - - col1 / - - 52 + + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + 38 * - col1 * + - 12 + + col2 AS col1 FROM tab0 cor0
----
36983
555
9586

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT MAX( col2 ) - - 2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
101

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT MAX ( col2 ) - - 2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1376
SELECT ALL + - ( - CAST( - - 54 AS SIGNED ) ) * + 8 AS col2 FROM tab0 AS cor0
----
432
432
432

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + - ( - CAST ( - - 54 AS INTEGER ) ) * + 8 AS col2 FROM tab0 AS cor0
----
432
432
432

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

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) * - - 79 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + 59 AS col1 FROM tab2 AS cor0
----
105
123
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT + 67 * + COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1379
SELECT + 67 * + COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1380
SELECT MAX( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT COUNT( 40 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1381
SELECT COUNT ( 40 ) AS col0 FROM tab1
----
3

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

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col2, col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 + - 70 col1 FROM tab0
----
-153

query I rowsort
SELECT - 3 + - col2 FROM tab1 AS cor0
----
-62
-71
-99

query II rowsort
SELECT DISTINCT + col1 AS col2, - col0 + - + 91 FROM tab2 AS cor0
----
51
-137
67
-166
77
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT + col2 * + 1 + - 80 DIV + 39 AS col1 FROM tab2
----
21
38
56

skipif mysql # not compatible
query I rowsort label-1387
SELECT + col2 * + 1 + - 80 / + 39 AS col1 FROM tab2
----
21
38
56

query II rowsort
SELECT ALL ( + - col2 ) AS col1, + 80 FROM tab0
----
-10
80
-47
80
-99
80

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT + 85 <> ( + 22 )
----

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

query I rowsort
SELECT - col0 * - col0 * col2 AS col0 FROM tab0 cor0
----
10575
75690
931491

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT MAX( ALL - 37 ) AS col0 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-1394
SELECT MAX ( ALL - 37 ) AS col0 FROM tab0
----
-37

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

query II rowsort
SELECT 96 AS col2, ( + + col1 ) AS col1 FROM tab1
----
96
14
96
47
96
5

query I rowsort
SELECT - 34 * + - 64 AS col0 FROM tab0
----
2176
2176
2176

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

query II rowsort
SELECT ALL - 32, + col2 AS col0 FROM tab2 AS cor0
----
-32
23
-32
40
-32
58

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

query I rowsort
SELECT ALL col1 + - 95 FROM tab0
----
-14
-74
-94

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

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

query I rowsort
SELECT ALL - 8 * col2 FROM tab1
----
-472
-544
-768

query I rowsort
SELECT + col1 - col1 * col1 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT DISTINCT ( col0 ) * - 40 AS col2 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + COUNT( * ) * - 48 AS col0 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + COUNT ( * ) * - 48 AS col0 FROM tab0
----
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * + col1 - col0 col1 FROM tab0 WHERE col0 IN ( + col1 )
----

query I rowsort
SELECT 47 * col1 FROM tab1
----
2209
235
658

query I rowsort
SELECT 53 * + 36 FROM tab0
----
1908
1908
1908

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT ( - 47 ) * - COUNT( * ) AS col1 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-1410
SELECT ( - 47 ) * - COUNT ( * ) AS col1 FROM tab2
----
141

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( col1 )
----

query I rowsort
SELECT + col1 * + 8 FROM tab1
----
112
376
40

query I rowsort
SELECT ALL col0 * ( - 98 * 24 ) AS col1 FROM tab0
----
-204624
-228144
-35280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1414
SELECT ALL CAST( col0 AS SIGNED ) FROM tab2 WHERE 68 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab2 WHERE 68 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + col2 * + 43 AS col2 FROM tab2
----
1720
2494
989

query I rowsort
SELECT DISTINCT - col1 + + 36 * col2 FROM tab1
----
2119
2401
3442

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT + 47 * COUNT( * ) FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-1417
SELECT + 47 * COUNT ( * ) FROM tab0
----
141

query I rowsort
SELECT ALL col2 * col1 - - 38 AS col0 FROM tab1 WHERE NULL <= ( 37 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * - col0 col0 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT - 36 * - col2 AS col1 FROM tab0
----
1692
3564
360

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN - col0 / 33 + - col0 / + 85 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT ALL CAST( col1 AS SIGNED ) + - col2 AS col1 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL CAST ( col1 AS INTEGER ) + - col2 AS col1 FROM tab0
----
-98
11
34

query III rowsort
SELECT * FROM tab1 WHERE NOT 56 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT - MIN( ALL 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1425
SELECT - MIN ( ALL 46 ) FROM tab2
----
-46

query III rowsort
SELECT * FROM tab2 WHERE 11 NOT BETWEEN 69 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT DISTINCT SUM( DISTINCT - 37 ) * - ( + COUNT( * ) ) AS col2 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT SUM ( DISTINCT - 37 ) * - ( + COUNT ( * ) ) AS col2 FROM tab1
----
111

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL + COUNT( * ) - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL + COUNT ( * ) - COUNT ( * ) FROM tab2 cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1431
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( 97 AS SIGNED ) ) <> ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1431
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( 97 AS INTEGER ) ) <> ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 88 * col1 + 97 * 95 FROM tab0 WHERE NULL IN ( + 58 * 18 )
----

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

query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
-60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT col1 DIV - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT col1 / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
0

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

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

query I rowsort
SELECT DISTINCT 61 * - col2 AS col1 FROM tab0 AS cor0
----
-2867
-6039
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT + 36 * - SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
3708

skipif mysql # not compatible
query I rowsort label-1440
SELECT + 36 * - SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
3708

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

query I rowsort
SELECT DISTINCT 6 FROM tab1 AS cor0 WHERE col0 * col1 + 15 > 13
----
6

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

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

query I rowsort
SELECT + 86 FROM tab1 WHERE NOT + col0 + - col1 * col2 NOT BETWEEN - 6 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 14 < col0
----

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

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

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

query I rowsort
SELECT ALL col1 + + + col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL COUNT( * ) * 28 - - 81 * COUNT( * ) AS col1 FROM tab2 cor0
----
327

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL COUNT ( * ) * 28 - - 81 * COUNT ( * ) AS col1 FROM tab2 cor0
----
327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT ALL + - CAST( - - 25 AS SIGNED ) * ( 0 - + 58 ) col0 FROM tab2 cor0
----
1450
1450
1450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1451
SELECT ALL + - CAST ( - - 25 AS INTEGER ) * ( 0 - + 58 ) col0 FROM tab2 cor0
----
1450
1450
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT + COUNT( * ) FROM tab1 cor0 WHERE + col2 * - ( col1 * + 63 ) IN ( - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE + col2 * - ( col1 * + 63 ) IN ( - 27 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT ( + col0 ) DIV col2 + col2 FROM tab0 AS cor0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-1453
SELECT ( + col0 ) / col2 + col2 FROM tab0 AS cor0
----
18
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT CAST( + col2 AS SIGNED ) + + - 80 * + col1 FROM tab2
----
-4057
-5302
-6120

skipif mysql # not compatible
query I rowsort label-1454
SELECT CAST ( + col2 AS INTEGER ) + + - 80 * + col1 FROM tab2
----
-4057
-5302
-6120

query I rowsort
SELECT ( 98 ) FROM tab2 WHERE NULL > + + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL - + COUNT( * ) + + + 18 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - + COUNT ( * ) + + + 18 FROM tab0 AS cor0
----
15

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

skipif mysql # not compatible
query II rowsort label-1457
SELECT col1, col1 * - CAST ( + 48 AS INTEGER ) * col2 AS col1 FROM tab0 cor0
----
1
-4752
21
-10080
81
-182736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT - col0 FROM tab1 AS cor0 WHERE - 19 + - CAST( NULL AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-1458
SELECT - col0 FROM tab1 AS cor0 WHERE - 19 + - CAST ( NULL AS INTEGER ) NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 7 * + col1 <= 13
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT ALL + SUM( + 58 ) DIV + + 20 - 37 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL + SUM ( + 58 ) / + + 20 - 37 FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1462
SELECT CAST( + 84 AS SIGNED ) * - MAX( col2 ) FROM tab0 AS cor0
----
-8316

skipif mysql # not compatible
query I rowsort label-1462
SELECT CAST ( + 84 AS INTEGER ) * - MAX ( col2 ) FROM tab0 AS cor0
----
-8316

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

query I rowsort
SELECT - ( + - 53 ) * + 26 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
103417
63439
88269

query I rowsort
SELECT ALL + 72 FROM tab0 cor0 WHERE NOT ( - col2 + col1 * - col1 ) IN ( - 67 )
----
72
72
72

query I rowsort
SELECT ALL + 71 - + col1 AS col2 FROM tab1 AS cor0
----
24
57
66

query I rowsort
SELECT DISTINCT - col2 - + - col1 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
0

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL >= 29
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) > col2 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT + col1 + CAST( - - ( 18 ) AS SIGNED ) + col1 AS col1 FROM tab1
----
112
28
46

skipif mysql # not compatible
query I rowsort label-1471
SELECT + col1 + CAST ( - - ( 18 ) AS INTEGER ) + col1 AS col1 FROM tab1
----
112
28
46

query I rowsort
SELECT ALL col2 + - col1 * 71 * - 41 AS col1 FROM tab2
----
148484
195095
224187

query II rowsort
SELECT - 4 + + col0 AS col2, - col2 AS col0 FROM tab1
----
47
-96
81
-59
87
-68

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

query II rowsort
SELECT DISTINCT + + col0 - - + 86 AS col0, col2 AS col0 FROM tab1 AS cor0
----
137
96
171
59
177
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT - MAX( DISTINCT - - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1477
SELECT - MAX ( DISTINCT - - col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab2 cor0
----
-81

query I rowsort
SELECT ( 61 ) * 18 * + col2 AS col0 FROM tab0 AS cor0
----
108702
10980
51606

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

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

query II rowsort
SELECT + 90 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
90
51
90
85
90
91

query I rowsort
SELECT - ( + col0 ) FROM tab1 WHERE NOT ( - 17 ) < + 28
----

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

query I rowsort
SELECT - col0 + + + 26 FROM tab1 WHERE NOT NULL NOT BETWEEN - + 45 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL COUNT( * ) + MIN( col1 ) col1 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1485
SELECT ALL COUNT ( * ) + MIN ( col1 ) col1 FROM tab2
----
54

query I rowsort
SELECT - col2 + + - 14 * + 13 * + + 91 * + ( - 45 ) + - 52 AS col1 FROM tab1
----
745142
745170
745179

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1487
SELECT * FROM tab0 AS cor0 WHERE ( ( - - CAST( col2 AS SIGNED ) ) + 8 ) <> ( 90 + col2 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1487
SELECT * FROM tab0 AS cor0 WHERE ( ( - - CAST ( col2 AS INTEGER ) ) + 8 ) <> ( 90 + col2 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1489
SELECT + - COUNT( * ) FROM tab0 WHERE CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) <> + - col0
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT + - COUNT ( * ) FROM tab0 WHERE CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) <> + - col0
----
0

query II rowsort
SELECT DISTINCT - 56 * + 56, 24 AS col2 FROM tab0
----
-3136
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT COUNT( * ) * - 33 + COUNT( 75 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1491
SELECT COUNT ( * ) * - 33 + COUNT ( 75 ) AS col0 FROM tab0 AS cor0
----
-96

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

query I rowsort
SELECT ALL - col2 * col2 + + - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-1677
-3431
-580

query I rowsort
SELECT ALL + ( + col1 ) FROM tab1 AS cor0 WHERE - col1 >= ( - col2 - + col2 )
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 66 * col0 NOT IN ( + col2 + 80 )
----

query I rowsort
SELECT DISTINCT col1 * + - col1 - + col2 * - col2 * + - 82 + + 74 - col1 FROM tab0 cor0
----
-187706
-803610
-8588

query I rowsort
SELECT ALL col2 - + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-28
-37
-9

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

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

query I rowsort
SELECT + 47 + + ( + 54 ) + - - 17 FROM tab1
----
118
118
118

query III rowsort
SELECT * FROM tab2 WHERE - 62 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * - col2 * col1 + - - col0 FROM tab2
----
197184
291525
54004

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1502
SELECT ALL - AVG ( + CAST( NULL AS DECIMAL ) ) * ( - - ( - COUNT( DISTINCT + ( + + col1 ) ) ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1502
SELECT ALL - AVG ( + CAST ( NULL AS REAL ) ) * ( - - ( - COUNT ( DISTINCT + ( + + col1 ) ) ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT + col0 * - - 83 FROM tab1
----
4233
7055
7553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1504
SELECT 87 DIV + COUNT( * ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-1504
SELECT 87 / + COUNT ( * ) FROM tab0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT DISTINCT + 46 DIV + 28 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT + 46 / + 28 FROM tab2
----
1

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

query III rowsort
SELECT * FROM tab0 WHERE 85 / - 38 + + col0 IN ( ( 32 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1508
SELECT ( - 15 ) DIV + col1 col0, + col0 + - + col2 AS col2 FROM tab1
----
-1
-45
-3
26
0
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1508
SELECT ( - 15 ) / + col1 col0, + col0 + - + col2 AS col2 FROM tab1
----
-1
-45
-3
26
0
23

query I rowsort
SELECT ALL col1 / - col1 FROM tab0 WHERE + - col1 > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT 28 DIV + 33 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT 28 / + 33 AS col1 FROM tab0
----
0
0
0

query II rowsort
SELECT col1, col2 + 83 + - col0 AS col0 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
1
85
21
6
81
115

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

skipif mysql # not compatible
query II rowsort label-1512
SELECT ALL + COUNT ( * ) AS col1, 16 FROM tab2 cor0
----
3
16

query I rowsort
SELECT ALL + col0 * col0 + + col1 - + col1 FROM tab0 AS cor0
----
225
7569
9409

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT ALL ( - - COUNT( * ) ) DIV 69 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1516
SELECT ALL ( - - COUNT ( * ) ) / 69 col2 FROM tab2
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1520
SELECT + 87 DIV col1 - + - CAST( - + 83 AS SIGNED ) - + + 18 FROM tab0 AS cor0
----
-100
-14
-97

skipif mysql # not compatible
query I rowsort label-1520
SELECT + 87 / col1 - + - CAST ( - + 83 AS INTEGER ) - + + 18 FROM tab0 AS cor0
----
-100
-14
-97

query I rowsort
SELECT col2 * - col0 - + col0 + + 49 * - col1 * col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-11225
-139403
-5093606

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT - - col1 DIV col2 + col2 + + col1 * + - col0 col0 FROM tab1 AS cor0
----
-366
-4209
-618

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1522
SELECT - - col1 / col2 + col2 + + col1 * + - col0 col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT 23 * COUNT( + - 25 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1523
SELECT 23 * COUNT ( + - 25 ) FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1524
SELECT - col0 FROM tab2 WHERE NOT NULL IN ( CAST( 7 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1524
SELECT - col0 FROM tab2 WHERE NOT NULL IN ( CAST ( 7 AS REAL ) )
----

query I rowsort
SELECT DISTINCT - col2 + + col1 + ( + col1 ) AS col2 FROM tab2 WHERE - 55 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT MAX( - col2 ) * + + COUNT( * ) + - 53 FROM tab2 WHERE + col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT MAX ( - col2 ) * + + COUNT ( * ) + - 53 FROM tab2 WHERE + col1 >= NULL
----
NULL

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

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

query I rowsort
SELECT + col1 * ( 25 ) * + + 57 * + col0 + - - col2 FROM tab1 cor0
----
1017546
605684
6094793

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

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

query I rowsort
SELECT + col1 * - col1 * + col0 + col0 + + + 90 FROM tab1 AS cor0
----
-1950
-200838
-9855

query III rowsort
SELECT * FROM tab2 WHERE ( - 34 * + 38 + col0 ) IS NULL
----

query I rowsort
SELECT ALL + - 42 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> ( NULL )
----

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

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

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

query I rowsort
SELECT - + 68 AS col2 FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL - col2 - - col2 + - + col1 * - + 24 * col0 AS col0 FROM tab0 AS cor0
----
2328
29160
43848

query I rowsort
SELECT AVG ( ALL + + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1539
SELECT + + COUNT ( * ) * + - COUNT ( * ) col1 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT ( NULL NOT IN ( ( + 28 ) * col2 + col0 + - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT DISTINCT + COUNT( * ) * + 25 AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT + COUNT ( * ) * + 25 AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT COUNT( * ) + - ( 13 ) AS col2 FROM tab0, tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT COUNT ( * ) + - ( 13 ) AS col2 FROM tab0, tab2 cor0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT DISTINCT 11 DIV - - COUNT( 85 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT 11 / - - COUNT ( 85 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL + MIN( + 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + MIN ( + 87 ) FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT - CAST( + - col2 AS SIGNED ) * col2 col1 FROM tab0 cor0
----
100
2209
9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1545
SELECT - CAST ( + - col2 AS INTEGER ) * col2 col1 FROM tab0 cor0
----
100
2209
9801

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

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

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

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

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE - - ( - - col2 ) NOT BETWEEN NULL AND + col1 + + 58
----
97

query II rowsort
SELECT + - 10, - col2 * 16 AS col0 FROM tab2 AS cor0
----
-10
-368
-10
-640
-10
-928

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT - COUNT( * ) * - 37 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-1551
SELECT - COUNT ( * ) * - 37 FROM tab0 AS cor0
----
111

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - 62
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT + - 27 / col1 FROM tab2 cor0
----
0

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

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT col1 + - col0 + - + 22 * - - col0 + + 79 + + 27 * + + col0 + - 31 + + col2 * 93 DIV col0 + col0 + - - 76 AS col2 FROM tab1
----
568
618
695

skipif mysql # not compatible
query I rowsort label-1557
SELECT col1 + - col0 + - + 22 * - - col0 + + 79 + + 27 * + + col0 + - 31 + + col2 * 93 / col0 + col0 + - - 76 AS col2 FROM tab1
----
568
618
695

query I rowsort
SELECT ALL 15 + + col2 AS col2 FROM tab2
----
38
55
73

query I rowsort
SELECT 80 + 57 + 34 + - 73 - + col2 * - col0 AS col2 FROM tab2
----
1156
2658
4448

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT - COUNT( * ) + + ( - 20 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1560
SELECT DISTINCT - COUNT ( * ) + + ( - 20 ) col0 FROM tab2
----
-23

query I rowsort
SELECT - 30 + 86 + + - col1 - col0 FROM tab2
----
-41
-85
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + MAX( ALL - - col2 ) + + - 87 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1562
SELECT + MAX ( ALL - - col2 ) + + - 87 FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT DISTINCT + col0 DIV - + 75 + - - col1 FROM tab0 AS cor0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT + col0 / - + 75 + - - col1 FROM tab0 AS cor0
----
0
20
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL - + COUNT( * ) * + + COUNT( * ) - + + 97 AS col0 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) - + + 97 AS col0 FROM tab0 AS cor0
----
-106

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + - 97 NOT BETWEEN col0 AND col0 * + + col1
----

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

query I rowsort
SELECT 15 - col1 AS col2 FROM tab0
----
-6
-66
14

query II rowsort
SELECT ALL col0, + col2 + + col1 * + col2 FROM tab1
----
51
1440
85
354
91
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT + 69 - COUNT( * ) col2 FROM tab2
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1570
SELECT + 69 - COUNT ( * ) col2 FROM tab2
----
66

query III rowsort
SELECT * FROM tab1 WHERE 33 * + 63 + - col1 + + - col2 + + - col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 41 / + 44
----

query I rowsort
SELECT ALL - 19 FROM tab0 AS cor0 WHERE - col2 * + col0 > NULL
----

query I rowsort
SELECT 75 + - col2 * - - ( - - col0 ) FROM tab2 AS cor0
----
-2485
-4275
-983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 - - col0 * - - ( col2 ) col0 FROM tab2 AS cor0
----
1009
2511
4301

query II rowsort
SELECT ALL - col0, ( - col2 ) AS col1 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

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

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

query II rowsort
SELECT ALL + 43, ( - 4 ) * - + 16 + - col2 + + 86 AS col2 FROM tab0
----
43
103
43
140
43
51

query I rowsort
SELECT ( + col0 ) FROM tab1 WHERE NOT - col0 < NULL
----

query II rowsort
SELECT DISTINCT 50 AS col0, 53 FROM tab0
----
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - SUM( DISTINCT - ( col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1581
SELECT - SUM ( DISTINCT - ( col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT DISTINCT + MIN( ALL - 65 ) col1 FROM tab0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1582
SELECT DISTINCT + MIN ( ALL - 65 ) col1 FROM tab0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT CAST( col0 AS SIGNED ) * - ( - col2 ) + 64 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1583
SELECT CAST ( col0 AS INTEGER ) * - ( - col2 ) + 64 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * col1 - - ( + + col2 ) + + 81 AS col1 FROM tab1 WHERE ( - col1 * - col0 ) IS NOT NULL OR col0 IS NOT NULL
----
-1167
-155
-3047

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1588
SELECT DISTINCT - COUNT( * ) DIV - 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT - COUNT ( * ) / - 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL + MIN( ALL - ( - 40 ) ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + MIN ( ALL - ( - 40 ) ) FROM tab0
----
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 87 NOT BETWEEN - col1 AND - + 5 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL 89 + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
104
176
186

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

query I rowsort
SELECT + col1 * + col2 * - col1 FROM tab2 cor0
----
-237160
-260362
-59823

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT - 33 DIV + + 13 AS col1 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1597
SELECT - 33 / + + 13 AS col1 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT - COUNT( * ) * + 77 AS col1 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-1598
SELECT - COUNT ( * ) * + 77 AS col1 FROM tab0
----
-231

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT DISTINCT col2 * col0 + + + col2, + col2 FROM tab0
----
752
47
880
10
9702
99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT - col2 - ( - 35 ) DIV - col1 AS col2 FROM tab0
----
-11
-134
-47

skipif mysql # not compatible
query I rowsort label-1604
SELECT - col2 - ( - 35 ) / - col1 AS col2 FROM tab0
----
-11
-134
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT ALL - 58, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-58
3

skipif mysql # not compatible
query II rowsort label-1605
SELECT ALL - 58, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-58
3

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

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

query I rowsort
SELECT ALL - - 44 AS col0 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1608
SELECT MAX( col0 ) DIV - + 28 AS col0 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1608
SELECT MAX ( col0 ) / - + 28 AS col0 FROM tab2 cor0
----
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 50 > col1 - + - col0
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - - col2 * + col2 - - col2 + - col1 * col1 * - 22
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT + col2 DIV - 9 FROM tab1
----
-10
-6
-7

skipif mysql # not compatible
query I rowsort label-1613
SELECT + col2 / - 9 FROM tab1
----
-10
-6
-7

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

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

query I rowsort
SELECT DISTINCT col2 * - col1 * col0 + + - 84 AS col1 FROM tab0 AS cor0
----
-18354
-57189
-9687

query I rowsort
SELECT - + 72 * 98 FROM tab2 AS cor0
----
-7056
-7056
-7056

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - - 41 * COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
369

skipif mysql # not compatible
query I rowsort label-1617
SELECT - - 41 * COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
369

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1620
SELECT DISTINCT - - 94 * + + ( + + col0 ) + CAST( NULL AS SIGNED ) AS col0, + 67 FROM tab0 cor0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1620
SELECT DISTINCT - - 94 * + + ( + + col0 ) + CAST ( NULL AS INTEGER ) AS col0, + 67 FROM tab0 cor0
----
NULL
67

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1621
SELECT + CAST ( - col1 AS INTEGER ) - 41 + - CAST ( NULL AS INTEGER ) / col2 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL + SUM( + 55 ) AS col1 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + SUM ( + 55 ) AS col1 FROM tab0 AS cor0
----
165

query I rowsort
SELECT col2 + - col0 * col0 AS col1 FROM tab2
----
-2093
-4056
-5567

query I rowsort
SELECT DISTINCT 37 + - col2 - - col0 AS col1 FROM tab2
----
54
60
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT - COUNT( * ) + + + COUNT( col1 ) AS col2 FROM tab0
----
0

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

query I rowsort
SELECT 47 + - col1 AS col1 FROM tab2
----
-20
-30
-4

query I rowsort
SELECT - ( + col0 ) + - + 34 AS col0 FROM tab1
----
-119
-125
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + col2 AS col1, - col0 col2 FROM tab2
----
104
-64
133
-75
69
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT + 56 + + + MIN( ALL - + col1 ) + + - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1629
SELECT + 56 + + + MIN ( ALL - + col1 ) + + - COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT col0 + - - 51 AS col1 FROM tab0
----
138
148
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 + + col1 col2 FROM tab0 AS cor0
----
105
165
85

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

query I rowsort
SELECT DISTINCT ( col1 ) - + + col2 FROM tab0 cor0
----
-98
11
34

query II rowsort
SELECT + col0 - - 41 AS col0, col0 AS col2 FROM tab0 cor0
----
128
87
138
97
56
15

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

query I rowsort
SELECT ALL - + 20 AS col0 FROM tab2 cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1637
SELECT DISTINCT + + 88 AS col1, - COUNT( DISTINCT 27 ) FROM tab1 AS cor0
----
88
-1

skipif mysql # not compatible
query II rowsort label-1637
SELECT DISTINCT + + 88 AS col1, - COUNT ( DISTINCT 27 ) FROM tab1 AS cor0
----
88
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1638
SELECT - 8 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col1 * - 45 * + 99 + CAST( NULL AS DECIMAL ) + - col2 * col2 * - col2
----

skipif mysql # not compatible
query I rowsort label-1638
SELECT - 8 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col1 * - 45 * + 99 + CAST ( NULL AS REAL ) + - col2 * col2 * - col2
----

query I rowsort
SELECT ALL - - col2 * + + 3 AS col1 FROM tab0 cor0
----
141
297
30

query I rowsort
SELECT 84 * + 5 AS col1 FROM tab2 AS cor0
----
420
420
420

query II rowsort
SELECT ALL 40 * + + 84, + col2 FROM tab0
----
3360
10
3360
47
3360
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1642
SELECT ALL ( - 87 ) DIV - + MAX( ALL + - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL ( - 87 ) / - + MAX ( ALL + - col2 ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT ( - - 53 ) AS col2, - col1 + + + col0 * + col0 * + - col2 FROM tab1
----
53
-249710
53
-426280
53
-563155

query II rowsort
SELECT ALL + ( + - col2 ) AS col1, - col2 FROM tab1
----
-59
-59
-68
-68
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - - col0 ) col0, + col0 FROM tab0
----
15
15
87
87
97
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE ( - 8 ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

query I rowsort
SELECT ( 71 ) * + 43 * + col1 + + ( col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
143559
15324
42838

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1649
SELECT + - 95 DIV - CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-4
-95

skipif mysql # not compatible
query I rowsort label-1649
SELECT + - 95 / - CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-4
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL SUM( - + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL SUM ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL 12 + 94 * + - col0 * + col0 AS col2 FROM tab2
----
-198892
-385012
-528738

query III rowsort
SELECT * FROM tab0 WHERE col2 IS NULL AND NOT + ( 71 ) IS NOT NULL
----

query I rowsort
SELECT ( col1 ) + - - col1 * 99 * + col1 - + 76 AS col2 FROM tab0
----
24
43604
649544

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

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

query II rowsort
SELECT + col1 AS col1, - col2 + - + col0 AS col2 FROM tab0 AS cor0
----
1
-196
21
-97
81
-62

query I rowsort
SELECT DISTINCT - ( + 95 ) FROM tab2 AS cor0
----
-95

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

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

query I rowsort
SELECT - col0 * + 5 AS col2 FROM tab2 AS cor0
----
-230
-320
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT + 64 - + SUM( - col0 ) AS col2 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-1659
SELECT + 64 - + SUM ( - col0 ) AS col2 FROM tab2
----
249

query I rowsort
SELECT DISTINCT col1 * - col1 * col2 * + + col2 FROM tab0
----
-14493249
-44100
-9801

query I rowsort
SELECT DISTINCT col0 + - + 74 FROM tab2
----
-10
-28
1

query I rowsort
SELECT - + col1 FROM tab1 WHERE + col1 NOT IN ( - col1, col1 )
----

query I rowsort
SELECT DISTINCT - col0 * 73 FROM tab1
----
-3723
-6205
-6643

query I rowsort
SELECT ALL 39 * - - col0 - - ( + ( - col0 ) ) * + col2 * - col0 AS col1 FROM tab2 AS cor0
----
166336
329175
50462

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + 49 = + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1666
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) * - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL COUNT( * ) * + - 87 * - MAX( - col2 ) FROM tab2
----
-6003

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL COUNT ( * ) * + - 87 * - MAX ( - col2 ) FROM tab2
----
-6003

query I rowsort
SELECT DISTINCT + + 22 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
22

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

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

query I rowsort
SELECT + col0 * col1 + 81 AS col0 FROM tab1 AS cor0
----
4358
506
795

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT col1 * col2 DIV - + col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1674
SELECT col1 * col2 / - + col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + col2 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 < - + ( + 56 )
----
14
4896
47
6188
5
5015

query II rowsort
SELECT DISTINCT - - col0 * + col1 AS col2, - col1 FROM tab1 cor0
----
425
-5
4277
-47
714
-14

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT ALL - 74 DIV col1 AS col1 FROM tab0
----
-3
-74
0

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - 74 / col1 AS col1 FROM tab0
----
-3
-74
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT DISTINCT + col1 DIV + - 37 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT + col1 / + - 37 FROM tab0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 52 col2 FROM tab2
----
2392
3328
3900

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

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

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

query I rowsort
SELECT ALL + - 73 * - 95 FROM tab0 cor0
----
6935
6935
6935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 53 + - col0 col2 FROM tab0 AS cor0
----
-34
-44
38

query I rowsort
SELECT DISTINCT + + col2 - - col0 + col2 AS col1 FROM tab1 cor0
----
203
227
243

query I rowsort
SELECT - col1 * + col0 + - 67 AS col1 FROM tab1
----
-4344
-492
-781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT DISTINCT col2 * + + ( - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT col2 * + + ( - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT CAST( + + 47 AS SIGNED ) + - ( + + col1 ) FROM tab0
----
-34
26
46

skipif mysql # not compatible
query I rowsort label-1688
SELECT CAST ( + + 47 AS INTEGER ) + - ( + + col1 ) FROM tab0
----
-34
26
46

query I rowsort
SELECT + col1 * + 59 FROM tab2
----
3009
3953
4543

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1691
SELECT DISTINCT + col2, - CAST( col1 AS SIGNED ) - + col0 FROM tab0
----
10
-108
47
-96
99
-98

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT + col2, - CAST ( col1 AS INTEGER ) - + col0 FROM tab0
----
10
-108
47
-96
99
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT DISTINCT + col0 + + ( + - col1 ) DIV - + col0 AS col0 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT + col0 + + ( + - col1 ) / - + col0 AS col0 FROM tab2
----
47
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 + + 57 + + 85 BETWEEN col1 AND + col2
----
1

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 + + 57 + + 85 BETWEEN col1 AND + col2
----
1

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 39 / ( - col1 ) * + 65 + - + col2 IS NULL
----

query I rowsort
SELECT - col0 * + - ( + 93 ) FROM tab2
----
4278
5952
6975

query I rowsort
SELECT DISTINCT + 74 * ( - col1 ) AS col0 FROM tab0
----
-1554
-5994
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT - COUNT( * ) * + MAX( + col2 ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-1698
SELECT - COUNT ( * ) * + MAX ( + col2 ) AS col0 FROM tab1
----
-288

query I rowsort
SELECT + 15 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT SUM( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT SUM ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
156

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

query I rowsort
SELECT ALL 62 * - 44 AS col1 FROM tab0 AS cor0
----
-2728
-2728
-2728

query II rowsort
SELECT col2, ( - + col2 ) AS col1 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT ALL + 20 DIV COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + 20 / COUNT ( * ) FROM tab2
----
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT + SUM( ALL - 17 ) + + - 41 col2 FROM tab0 cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1706
SELECT + SUM ( ALL - 17 ) + + - 41 col2 FROM tab0 cor0
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT MIN( ALL + - col2 ) + + 0 AS col0 FROM tab1 WHERE NOT + 86 - + 64 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT MIN ( ALL + - col2 ) + + 0 AS col0 FROM tab1 WHERE NOT + 86 - + 64 IS NULL
----
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE 42 / col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE 42 / col0 < NULL
----
0

query I rowsort
SELECT ( 60 ) FROM tab2 AS cor0
----
60
60
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - COUNT( * ) - MAX( + ( col1 ) ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1713
SELECT - COUNT ( * ) - MAX ( + ( col1 ) ) FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT MAX( - col0 ) FROM tab1 WHERE + col1 * col1 IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-1714
SELECT MAX ( - col0 ) FROM tab1 WHERE + col1 * col1 IS NOT NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT + CAST( + 52 AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL >= - 59 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1715
SELECT + CAST ( + 52 AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL >= - 59 - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * 12 AS col0 FROM tab1
----
1152
708
816

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1717
SELECT ALL + COUNT ( + col2 ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1718
SELECT DISTINCT - + ( + - AVG ( ALL - + col0 ) ) AS col1, COUNT( * ) FROM tab0 WHERE NOT - col2 / - + col0 - col2 + + col1 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1718
SELECT DISTINCT - + ( + - AVG ( ALL - + col0 ) ) AS col1, COUNT ( * ) FROM tab0 WHERE NOT - col2 / - + col0 - col2 + + col1 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----
NULL
0

query II rowsort
SELECT 23 AS col1, col0 * 81 FROM tab0
----
23
1215
23
7047
23
7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1720
SELECT + CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1720
SELECT + CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL - MIN( DISTINCT - 41 ) * - 72 FROM tab2 AS cor0
----
-2952

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL - MIN ( DISTINCT - 41 ) * - 72 FROM tab2 AS cor0
----
-2952

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

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

query I rowsort
SELECT ALL + - 59 * + 28 AS col1 FROM tab2 cor0
----
-1652
-1652
-1652

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

query I rowsort
SELECT - col2 + + 65 AS col1 FROM tab0
----
-34
18
55

query I rowsort
SELECT col2 * - 19 / + + 98 * + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1 * + + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL + MAX( DISTINCT - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + MAX ( DISTINCT - col2 ) FROM tab0
----
-10

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

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

query II rowsort
SELECT ALL col0 - + - col2, col2 FROM tab2 AS cor0
----
104
40
133
58
69
23

query I rowsort
SELECT DISTINCT 42 + + col0 AS col0 FROM tab2 cor0
----
106
117
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - 78 + col2 + - - 22 * + 41 = col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT DISTINCT + 46 * - MIN( ALL - 88 ) * 23 - - CAST( 1 AS SIGNED ) FROM tab0 AS cor0
----
93105

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT + 46 * - MIN ( ALL - 88 ) * 23 - - CAST ( 1 AS INTEGER ) FROM tab0 AS cor0
----
93105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT + col1 * + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1733
SELECT + col1 * + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - 3 * 73 FROM tab2
----
-219
-219
-219

query I rowsort
SELECT ( + + 43 ) FROM tab1
----
43
43
43

query II rowsort
SELECT ALL col0 AS col1, col1 + - - 81 + - - col2 AS col2 FROM tab0
----
15
209
87
112
97
181

query I rowsort
SELECT col1 * + col2 * - col2 * col0 AS col1 FROM tab0
----
-182700
-2683935
-950697

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1738
SELECT CAST( NULL AS DECIMAL ) AS col1, col0 DIV + 76 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-1738
SELECT CAST ( NULL AS REAL ) AS col1, col0 / + 76 FROM tab2
----
NULL
0
NULL
0
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1739
SELECT - 47 DIV COUNT( * ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1739
SELECT - 47 / COUNT ( * ) FROM tab0 AS cor0
----
-15

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1741
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - CAST( NULL AS SIGNED ) * + CAST( 88 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1741
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - CAST ( NULL AS INTEGER ) * + CAST ( 88 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT MAX( DISTINCT - 37 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-37

skipif mysql # not compatible
query I rowsort label-1742
SELECT MAX ( DISTINCT - 37 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-37

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

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

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

query I rowsort
SELECT col0 * - + col1 + - - col2 AS col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT - CAST( col0 AS SIGNED ) + col0 + - + col2 FROM tab2 AS cor0 WHERE NOT + ( col1 ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1746
SELECT - CAST ( col0 AS INTEGER ) + col0 + - + col2 FROM tab2 AS cor0 WHERE NOT + ( col1 ) IS NULL
----
-23
-40
-58

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1750
SELECT - - CAST( - 62 AS SIGNED ) col1, col0 DIV + 84 * - - col0 * + col1 + + - col1 * - col1 DIV + col1 FROM tab2 AS cor0
----
-62
51
-62
67
-62
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1750
SELECT - - CAST ( - 62 AS INTEGER ) col1, col0 / + 84 * - - col0 * + col1 + + - col1 * - col1 / + col1 FROM tab2 AS cor0
----
-62
51
-62
67
-62
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT + ( - 10 ) DIV 45 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1751
SELECT + ( - 10 ) / 45 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT col0 + 70 * + col0 AS col2 FROM tab2
----
3266
4544
5325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL + MAX( ALL - 40 ) + - 5 * + - COUNT( * ) FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL + MAX ( ALL - 40 ) + - 5 * + - COUNT ( * ) FROM tab2 cor0
----
-25

query II rowsort
SELECT + col2 * + + 10 + + 20, col0 AS col2 FROM tab0 AS cor0
----
1010
97
120
87
490
15

query I rowsort
SELECT ALL ( 99 ) - + - col1 FROM tab0 AS cor0
----
100
120
180

onlyif mysql # aggregate syntax: 
query II rowsort label-1759
SELECT DISTINCT + 3 AS col0, COUNT( * ) * - 71 AS col2 FROM tab1
----
3
-213

skipif mysql # not compatible
query II rowsort label-1759
SELECT DISTINCT + 3 AS col0, COUNT ( * ) * - 71 AS col2 FROM tab1
----
3
-213

query III rowsort
SELECT * FROM tab1 WHERE 41 BETWEEN + col0 AND NULL
----

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

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

query I rowsort
SELECT ALL - col2 + + ( + col1 ) + - col1 + + + 52 AS col1 FROM tab0 AS cor0
----
-47
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT + MAX( 49 ) - - + COUNT( * ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1763
SELECT + MAX ( 49 ) - - + COUNT ( * ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT col0 + - col2 + + - col0 + col2 * col2 * - - 18 * + 67 * + 45 FROM tab0 AS cor0
----
119882383
531900171
5426990

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT ALL + - 22, SUM( + 25 ) AS col2 FROM tab2 AS cor0
----
-22
75

skipif mysql # not compatible
query II rowsort label-1766
SELECT ALL + - 22, SUM ( + 25 ) AS col2 FROM tab2 AS cor0
----
-22
75

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

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

query I rowsort
SELECT + - 62 AS col1 FROM tab0 cor0
----
-62
-62
-62

query II rowsort
SELECT - ( col1 ) AS col0, + col2 * - - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
-1
950697
-21
8700
-81
33135

query I rowsort
SELECT - 19 * + col0 AS col2 FROM tab1
----
-1615
-1729
-969

query II rowsort
SELECT - 86 * - - col0 AS col2, + col1 AS col2 FROM tab1
----
-4386
14
-7310
5
-7826
47

query I rowsort
SELECT DISTINCT + col1 * - - 90 AS col2 FROM tab0
----
1890
7290
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1774
SELECT DISTINCT + - COUNT( * ) + - + 45 AS col1, COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----
-45
0

skipif mysql # not compatible
query II rowsort label-1774
SELECT DISTINCT + - COUNT ( * ) + - + 45 AS col1, COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----
-45
0

query I rowsort
SELECT col1 - + - 49 + - col0 FROM tab1 WHERE NOT - + 86 IS NULL
----
-31
12
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL + ( col1 ) DIV 18 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + ( col1 ) / 18 FROM tab2
----
2
3
4

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 85 BETWEEN NULL AND - + 86 * 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1779
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - 25 AS DECIMAL ) / col0 < + 42 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1779
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - 25 AS REAL ) / col0 < + 42 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 * 50 FROM tab2 AS cor0
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT COUNT( * ) * - 36 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1781
SELECT COUNT ( * ) * - 36 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT - - col1 * col1 - - ( + col2 ) FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT 41 * - - COUNT( - - col0 ) AS col0 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1783
SELECT 41 * - - COUNT ( - - col0 ) AS col0 FROM tab2 AS cor0
----
123

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + MIN( + + 82 ) + - 77 AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1785
SELECT + MIN ( + + 82 ) + - 77 AS col0 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT ( CAST( NULL AS SIGNED ) ) + - + 8 + CAST( + col2 AS SIGNED ) * col1 / + 71 * - 29 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT ( CAST ( NULL AS INTEGER ) ) + - + 8 + CAST ( + col2 AS INTEGER ) * col1 / + 71 * - 29 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT + col0 * - 40 - + col2 AS col1 FROM tab0 AS cor0
----
-3490
-3979
-647

query I rowsort
SELECT - col1 * + 95 FROM tab1 AS cor0
----
-1330
-4465
-475

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE + col1 = ( + col1 + - 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL + COUNT( * ) - ( - 21 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + COUNT ( * ) - ( - 21 ) FROM tab2 AS cor0
----
24

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

query I rowsort
SELECT 47 + - 13 - + col0 AS col1 FROM tab0
----
-53
-63
19

query I rowsort
SELECT 45 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT DISTINCT col2 DIV + - 63 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT col2 / + - 63 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT + - col0 DIV - 26 AS col2 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-1796
SELECT + - col0 / - 26 AS col2 FROM tab0 AS cor0
----
0
3
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT - - 60 DIV - 64 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1798
SELECT - - 60 / - 64 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + 72 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + 96 * MAX( - col1 ) FROM tab2 AS cor0
----
-4896

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + 96 * MAX ( - col1 ) FROM tab2 AS cor0
----
-4896

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT MAX( - - ( - - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1803
SELECT MAX ( - - ( - - col0 ) ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT ALL + col2 DIV + ( - 59 ) AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL + col2 / + ( - 59 ) AS col2 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 10 * + col2 col1, + col0 + + ( - - col2 ) FROM tab0
----
100
97
470
62
990
196

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

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

query I rowsort
SELECT + ( - + col1 ) * + - col0 * + - 92 AS col2 FROM tab0 AS cor0
----
-111780
-168084
-8924

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT + - ( + 83 ) * + + COUNT( * ) col2 FROM tab1 cor0
----
-249

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT - SUM( ALL - 99 ) FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1810
SELECT - SUM ( ALL - 99 ) FROM tab2 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 + col2 + 74 col1 FROM tab0
----
109
20
57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT + ( col1 ) * - 20 * col1 DIV 12 - + 77 AS col1 FROM tab0 AS cor0
----
-11012
-78
-812

skipif mysql # not compatible
query I rowsort label-1813
SELECT + ( col1 ) * - 20 * col1 / 12 - + 77 AS col1 FROM tab0 AS cor0
----
-11012
-78
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT - COUNT( * ) * - - SUM( DISTINCT + col1 ) * 92 FROM tab0 AS cor0
----
-28428

skipif mysql # not compatible
query I rowsort label-1814
SELECT - COUNT ( * ) * - - SUM ( DISTINCT + col1 ) * 92 FROM tab0 AS cor0
----
-28428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 * 84 * + + ( + 74 ) col2 FROM tab0 cor0
----
229992
229992
229992

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT MIN( + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1816
SELECT MIN ( + - col0 ) FROM tab2
----
-75

query I rowsort
SELECT ( + - 16 ) FROM tab2
----
-16
-16
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT COUNT( * ) DIV - 87 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT COUNT ( * ) / - 87 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1819
SELECT CAST( NULL AS DECIMAL ) - - 58 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT CAST ( NULL AS REAL ) - - 58 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 41 + + col2 + + col1 + + ( col2 ) * + col1 * col2 * + col1, 38 AS col0 FROM tab0
----
14493418
38
44172
38
9942
38

query I rowsort
SELECT col0 * col0 + + - col0 + + col2 + - ( + - col1 ) FROM tab0 AS cor0
----
338
7513
9412

query II rowsort
SELECT DISTINCT col0 + - col0 * - col0 AS col0, 91 AS col2 FROM tab1 cor0
----
2652
91
7310
91
8372
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + + 67 - - 99 + + col1 * + col2 col0 FROM tab0 cor0
----
261
372
3969

query I rowsort
SELECT - - col2 + + - ( col1 ) AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT - col1 + - col0 DIV col2 * col0 FROM tab1 AS cor0
----
-138
-14
-90

skipif mysql # not compatible
query I rowsort label-1825
SELECT - col1 + - col0 / col2 * col0 FROM tab1 AS cor0
----
-138
-14
-90

query I rowsort
SELECT - col2 * + + col0 + + col1 + - col2 FROM tab1 AS cor0
----
-4978
-5069
-6209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 92 ) col1 FROM tab1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT ALL 22 DIV 91 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 22 / 91 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 67 + col1 FROM tab0
----
148
68
88

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - MIN( DISTINCT col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - MIN ( DISTINCT col2 ) AS col2 FROM tab0
----
-10

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

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

query I rowsort
SELECT + 1 - + col0 AS col2 FROM tab0
----
-14
-86
-96

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 19 ) = + col1
----

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

query I rowsort
SELECT + 5 * col0 + + col0 * - 85 AS col2 FROM tab1 WHERE NOT col0 * 1 < 0 * col2
----
-4080
-6800
-7280

query I rowsort
SELECT ALL col0 * col1 + - col2 * + col1 FROM tab2
----
1139
1173
1848

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

skipif mysql # not compatible
query I rowsort label-1840
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ALL col2 * - col1 + - col0 AS col0 FROM tab0
----
-196
-297
-3822

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col2 - 41 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT MIN( 0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT MIN ( 0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT 17 * - col1 AS col0 FROM tab2 WHERE NULL <> - 14 * col0
----

query I rowsort
SELECT col0 + 89 AS col1 FROM tab1
----
140
174
180

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

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

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - 62 * + 19 >= ( - 69 )
----
10
47
99

query I rowsort
SELECT + 88 + col2 / + col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1851
SELECT 81 * AVG ( DISTINCT + col2 ) AS col2 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) BETWEEN 99 AND - col0 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT 81 * AVG ( DISTINCT + col2 ) AS col2 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) BETWEEN 99 AND - col0 + 98
----
NULL

query I rowsort
SELECT + 47 * 0 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - 37 * - 78 FROM tab1 AS cor0
----
2886

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1857
SELECT MIN ( DISTINCT + CAST ( + col2 AS INTEGER ) ) FROM tab0 cor0
----
10

query I rowsort
SELECT ALL + 13 * ( col1 ) AS col1 FROM tab0 AS cor0
----
1053
13
273

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1859
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 39 ) <> 89 - + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-1859
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 39 ) <> 89 - + CAST ( NULL AS INTEGER ) * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1860
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1861
SELECT ALL 25 DIV - col1 FROM tab0
----
-1
-25
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL 25 / - col1 FROM tab0
----
-1
-25
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT DISTINCT COUNT( * ) + 38 * - 29 FROM tab2 AS cor0
----
-1099

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT COUNT ( * ) + 38 * - 29 FROM tab2 AS cor0
----
-1099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - 23 col2 FROM tab1 cor0
----
-119
-82
-91

query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT ALL + col1 DIV - col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL + col1 / - col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-1
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT DISTINCT ( + col0 ) - + 29 FROM tab2 AS cor0 WHERE NOT + 89 >= CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT ( + col0 ) - + 29 FROM tab2 AS cor0 WHERE NOT + 89 >= CAST ( - col2 AS INTEGER )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT DISTINCT col0 DIV ( col2 ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT col0 / ( col2 ) FROM tab1
----
0
1

query I rowsort
SELECT ( - 50 ) + + 57 * - ( col0 ) FROM tab1
----
-2957
-4895
-5237

query I rowsort
SELECT - col0 * col0 FROM tab1 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT + col1 * + 31 FROM tab0
----
2511
31
651

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1879
SELECT ( - CAST( - ( + col1 ) AS SIGNED ) ) DIV col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1879
SELECT ( - CAST ( - ( + col1 ) AS INTEGER ) ) / col1 FROM tab0
----
1
1
1

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

query I rowsort
SELECT ALL 31 - + 41 AS col1 FROM tab0
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 67 BETWEEN ( + col0 ) AND NULL AND ( col1 + col1 * 86 ) BETWEEN NULL AND - 78 * + col2
----

query I rowsort
SELECT DISTINCT - - col1 - - - 10 FROM tab1 AS cor0
----
-5
37
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= ( - col0 * + col0 ) AND NOT col1 - - col2 * col0 IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 27 NOT BETWEEN col0 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( - 77 ) AND - 18
----
51
14
96

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 - - col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT DISTINCT - 11 * - + col2 AS col2 FROM tab0 AS cor0
----
1089
110
517

query I rowsort
SELECT - col2 * + ( - - 45 ) FROM tab0 AS cor0
----
-2115
-4455
-450

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL + SUM( ALL + col2 ) + - 24 AS col2 FROM tab1
----
199

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL + SUM ( ALL + col2 ) + - 24 AS col2 FROM tab1
----
199

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

query I rowsort
SELECT ALL 35 + 79 AS col2 FROM tab1
----
114
114
114

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

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

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) <> ( col1 * + - 42 )
----

query I rowsort
SELECT DISTINCT + - col0 * - - 63 FROM tab1 AS cor0
----
-3213
-5355
-5733

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

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) + + 41 * + 78 FROM tab1
----
3198

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * 62 * - col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + 89 AS col0 FROM tab1 AS cor0
----
148
157
185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1908
SELECT ALL + + CAST( NULL AS SIGNED ), + col0 * - 30 AS col2 FROM tab2 cor0
----
NULL
-1380
NULL
-1920
NULL
-2250

skipif mysql # not compatible
query II rowsort label-1908
SELECT ALL + + CAST ( NULL AS INTEGER ), + col0 * - 30 AS col2 FROM tab2 cor0
----
NULL
-1380
NULL
-1920
NULL
-2250

query I rowsort
SELECT - 9 * - + col2 - - 48 - + ( 41 ) AS col0 FROM tab0 AS cor0
----
430
898
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT 53 * COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
477

skipif mysql # not compatible
query I rowsort label-1910
SELECT 53 * COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
477

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / + + 21 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1913
SELECT + + col2 AS col2, ( + + col1 ) - + 34 DIV - 88 * 91 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-1913
SELECT + + col2 AS col2, ( + + col1 ) - + 34 / - 88 * 91 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT + col1 * 31 + - col0 + + - col0 + 8 * - col1 AS col0 FROM tab1 AS cor0
----
-55
220
899

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL + - 86 - COUNT( + + ( col2 ) ) col2 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1915
SELECT ALL + - 86 - COUNT ( + + ( col2 ) ) col2 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT + col2 * 69 - + + col1 FROM tab1 AS cor0
----
4066
4645
6610

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT ( + ( + 88 ) ) DIV - col2 - + col0 AS col1 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-1917
SELECT ( + ( + 88 ) ) / - col2 - + col0 AS col1 FROM tab2
----
-49
-66
-76

query II rowsort
SELECT ALL - 70 * - - col1 AS col1, - 24 * + - 21 * - + col0 FROM tab1
----
-3290
-45864
-350
-42840
-980
-25704

query I rowsort
SELECT + col2 + + col2 * + 36 AS col0 FROM tab0 AS cor0
----
1739
3663
370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1920
SELECT DISTINCT + SUM( col0 ) + 81 * + COUNT( * ), - CAST( + 83 AS SIGNED ) AS col2 FROM tab1 cor0
----
470
-83

skipif mysql # not compatible
query II rowsort label-1920
SELECT DISTINCT + SUM ( col0 ) + 81 * + COUNT ( * ), - CAST ( + 83 AS INTEGER ) AS col2 FROM tab1 cor0
----
470
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT - COUNT( * ) DIV + + MIN( + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1921
SELECT - COUNT ( * ) / + + MIN ( + col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT - ( + CAST( NULL AS SIGNED ) ) * + 81 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1922
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + 81 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT DISTINCT - SUM( + 49 ) AS col1, + ( - ( 60 ) ) FROM tab2 AS cor0
----
-147
-60

skipif mysql # not compatible
query II rowsort label-1923
SELECT DISTINCT - SUM ( + 49 ) AS col1, + ( - ( 60 ) ) FROM tab2 AS cor0
----
-147
-60

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 74 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 + + col2 + - col2 + + col1 * - + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col2 BETWEEN - col0 + + 84 AND - ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL + MIN( ALL + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + MIN ( ALL + col0 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 49 IS NOT NULL
----

query I rowsort
SELECT col2 * - 37 AS col0 FROM tab2 AS cor0
----
-1480
-2146
-851

query I rowsort
SELECT DISTINCT - ( + 1 ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 WHERE + col2 * + - col0 NOT BETWEEN NULL AND - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1932
SELECT ALL + 38 AS col0, + col2 + - col0 DIV - col1 FROM tab0
----
38
14
38
196
38
47

skipif mysql # not compatible
query II rowsort label-1932
SELECT ALL + 38 AS col0, + col2 + - col0 / - col1 FROM tab0
----
38
14
38
196
38
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT ALL - CAST( NULL AS SIGNED ) + - + SUM( col1 ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1933
SELECT ALL - CAST ( NULL AS INTEGER ) + - + SUM ( col1 ) col0 FROM tab1
----
NULL

query I rowsort
SELECT + 99 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + 67 - - COUNT( ALL + 3 ) AS col2 FROM tab1 AS cor0 WHERE 93 IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-1935
SELECT + 67 - - COUNT ( ALL + 3 ) AS col2 FROM tab1 AS cor0 WHERE 93 IS NOT NULL
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT - + COUNT( + col1 ) * + 32 + + + COUNT( * ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT - + COUNT ( + col1 ) * + 32 + + + COUNT ( * ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT MIN( - - ( 35 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT MIN ( - - ( 35 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
35

query I rowsort
SELECT DISTINCT + col1 + + + 28 AS col0 FROM tab1
----
33
42
75

query I rowsort
SELECT ALL 33 + - col2 FROM tab2
----
-25
-7
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT - COUNT( * ) - - SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT - COUNT ( * ) - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1941
SELECT ALL CAST( - COUNT( DISTINCT + - 95 ) AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL CAST ( - COUNT ( DISTINCT + - 95 ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT - MIN( DISTINCT col0 ) + + - 71 FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-1942
SELECT - MIN ( DISTINCT col0 ) + + - 71 FROM tab1 AS cor0
----
-122

query I rowsort
SELECT 76 + + - col0 FROM tab0 cor0
----
-11
-21
61

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 17 BETWEEN + col1 + col1 / - - col0 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT ALL col0 - + col1 DIV - + 29 AS col1 FROM tab0 AS cor0
----
17
87
97

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL col0 - + col1 / - + 29 AS col1 FROM tab0 AS cor0
----
17
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - COUNT( - 88 ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1946
SELECT - COUNT ( - 88 ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-3

query I rowsort
SELECT 56 FROM tab1 AS cor0 WHERE NULL IS NULL
----
56
56
56

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT + 12 * - 3 * + col2 + col0 + 53 FROM tab2 AS cor0
----
-1323
-1960
-729

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1950
SELECT ALL 72 * col1 / + CAST( NULL AS SIGNED ) * + col2 AS col2, - 65 * 63 AS col1 FROM tab0 AS cor0
----
NULL
-4095
NULL
-4095
NULL
-4095

skipif mysql # not compatible
query II rowsort label-1950
SELECT ALL 72 * col1 / + CAST ( NULL AS INTEGER ) * + col2 AS col2, - 65 * 63 AS col1 FROM tab0 AS cor0
----
NULL
-4095
NULL
-4095
NULL
-4095

query I rowsort
SELECT DISTINCT col1 - 34 FROM tab1
----
-20
-29
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1952
SELECT CAST( NULL AS SIGNED ) * - col0 / col0 AS col0, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1952
SELECT CAST ( NULL AS INTEGER ) * - col0 / col0 AS col0, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT - col0 DIV 89 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT - col0 / 89 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + 42 * - 86 FROM tab2 WHERE - + col2 * + ( - 54 ) * + + col1 - + col1 + col2 <= NULL
----

query I rowsort
SELECT ALL ( + ( + + col2 ) ) - - + col0 + + 87 AS col0 FROM tab0
----
149
184
283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1956
SELECT + MIN( + col0 ) DIV CAST( + 41 AS SIGNED ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1956
SELECT + MIN ( + col0 ) / CAST ( + 41 AS INTEGER ) AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL + 35 * + + col2 AS col1 FROM tab1
----
2065
2380
3360

query I rowsort
SELECT DISTINCT - 45 * - 22 * - 14 AS col0 FROM tab1 AS cor0
----
-13860

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE - ( - col0 ) + - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT DISTINCT + COUNT( ALL col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL - 75 * + MAX( ALL col0 ) FROM tab1
----
-6825

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL - 75 * + MAX ( ALL col0 ) FROM tab1
----
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT ALL - 25 DIV - 27 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL - 25 / - 27 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + 86 AS col1 FROM tab0
----
-1290
-7482
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT SUM( - 2 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1965
SELECT SUM ( - 2 ) FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL - AVG ( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL - AVG ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT DISTINCT 58 + + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 + + + col0 + 82 - + - col0 IS NULL
----
61

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT 58 + + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 + + + col0 + 82 - + - col0 IS NULL
----
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 27 IS NULL AND NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT COUNT( * ) DIV 78 * - + 99 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT COUNT ( * ) / 78 * - + 99 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 * 90 - + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT - MIN( ALL ( col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1971
SELECT - MIN ( ALL ( col1 ) ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, + col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT - col0 AS col0, + 98 - + - 59 AS col1 FROM tab2 AS cor0
----
-46
157
-64
157
-75
157

query II rowsort
SELECT - - col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT 33 DIV 30 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1975
SELECT 33 / 30 col0 FROM tab0
----
1
1
1

query II rowsort
SELECT + + col2, - col2 FROM tab0 WHERE + 85 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL - 53 DIV - 83 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - 53 / - 83 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + 29 + col1 FROM tab0 AS cor0
----
110
30
50

query I rowsort
SELECT DISTINCT - - 73 + - 26 FROM tab0 cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT - ( 47 ) * + col1 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1980
SELECT - ( 47 ) * + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT DISTINCT COUNT( * ) * + 23 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT COUNT ( * ) * + 23 FROM tab2
----
69

query I rowsort
SELECT ALL col0 * + + 16 AS col2 FROM tab1
----
1360
1456
816

query I rowsort
SELECT DISTINCT 90 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
90

query I rowsort
SELECT ALL - col1 + 68 AS col1 FROM tab2 AS cor0
----
-9
1
17

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - - 18 + col1 AS col1 FROM tab2 cor0
----
69
85
95

query II rowsort
SELECT + - 31, + 90 AS col1 FROM tab1 AS cor0
----
-31
90
-31
90
-31
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT - + MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1989
SELECT - + MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col1 - - - col1 AS col2 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT - + 79 - COUNT( * ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1991
SELECT - + 79 - COUNT ( * ) FROM tab1 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT + ( + 97 ) - 19 DIV - - col0 AS col2 FROM tab2 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-1992
SELECT + ( + 97 ) - 19 / - - col0 AS col2 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL COUNT( * ) * - + 57 AS col1 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL COUNT ( * ) * - + 57 AS col1 FROM tab2 AS cor0
----
-171

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 58 + - col2 * - - 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * 86 AS col0 FROM tab2
----
1978
3440
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT SUM( DISTINCT + 25 ) * - - ( 49 ) FROM tab1
----
1225

skipif mysql # not compatible
query I rowsort label-1996
SELECT SUM ( DISTINCT + 25 ) * - - ( 49 ) FROM tab1
----
1225

query I rowsort
SELECT + 94 AS col0 FROM tab2 WHERE NOT + ( col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1998
SELECT + - col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1998
SELECT + - col1 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT 4 * - col1 + - + col1 - col0 FROM tab2 AS cor0
----
-301
-410
-449

onlyif mysql # DIV for integer division: 
query I rowsort label-2000
SELECT - + col0 + - col0 DIV + 33 AS col0 FROM tab0 AS cor0 WHERE NOT 40 * + + col0 = col2
----
-15
-89
-99

skipif mysql # not compatible
query I rowsort label-2000
SELECT - + col0 + - col0 / + 33 AS col0 FROM tab0 AS cor0 WHERE NOT 40 * + + col0 = col2
----
-15
-89
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 * - 99 col1 FROM tab0 AS cor0
----
-6435
-6435
-6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT - + 35 * col0 + - + CAST( 2 AS SIGNED ) FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-2002
SELECT - + 35 * col0 + - + CAST ( 2 AS INTEGER ) FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT - ( - 18 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT DISTINCT - - 72 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT + MIN( DISTINCT + col2 ) col2 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2005
SELECT DISTINCT + MIN ( DISTINCT + col2 ) col2 FROM tab2
----
23

query I rowsort
SELECT ALL 79 * - col2 * - ( - ( - col2 ) ) FROM tab1 AS cor0
----
274999
365296
728064

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2007
SELECT + + col2 / - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT + + col2 / - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col0 / + col0
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col0 * col1 IS NULL
----

query II rowsort
SELECT DISTINCT - - col1, + col2 FROM tab0 WHERE 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT DISTINCT + 47 AS col0, - MIN( - col0 ) col1 FROM tab0 WHERE NOT 8 * - - 99 - + - 92 IS NOT NULL
----
47
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2013
SELECT DISTINCT + 47 AS col0, - MIN ( - col0 ) col1 FROM tab0 WHERE NOT 8 * - - 99 - + - 92 IS NOT NULL
----
47
NULL

query I rowsort
SELECT + col1 + ( - - col2 ) AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL 18 + - col2 * - col1 FROM tab1
----
1362
313
3214

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT COUNT( * ) + - ( - - 44 ) FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT COUNT ( * ) + - ( - - 44 ) FROM tab0
----
-41

query II rowsort
SELECT DISTINCT + 12, col2 FROM tab2 AS cor0
----
12
23
12
40
12
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 cor0 WHERE + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 cor0 WHERE + col2 < NULL
----
0

query II rowsort
SELECT - 95 + + col0, col0 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - 91 - col0 * col0 AS col0 FROM tab0 AS cor0
----
-316
-7660
-9500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - col1 + - col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-1080
-4512
-9702

query I rowsort
SELECT DISTINCT + + 52 * - 57 FROM tab1 AS cor0
----
-2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE - CAST( + 26 AS SIGNED ) + - - 56 * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE - CAST ( + 26 AS INTEGER ) + - - 56 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2026
SELECT ALL + COUNT( * ), - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-2026
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1
----
3
-3

query I rowsort
SELECT ( + ( + + 2 ) ) AS col1 FROM tab2
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2028
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT 36 NOT BETWEEN NULL AND + col2 * - - ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT 36 NOT BETWEEN NULL AND + col2 * - - ( + + col1 )
----
0

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 I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab2 AS cor0 WHERE col1 + col0 NOT BETWEEN NULL AND + col2
----
-23
-40
-58

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT + - 16 NOT IN ( + col0, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT - SUM( + ( + 10 ) ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - SUM ( + ( + 10 ) ) AS col2 FROM tab2
----
-30

query I rowsort
SELECT ALL - col0 * - 9 AS col2 FROM tab1 WHERE + + col2 IS NOT NULL
----
459
765
819

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT - COUNT( * ) + - - 9 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT - COUNT ( * ) + - - 9 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT - 67 * + MAX( - 43 ) AS col0 FROM tab2 AS cor0
----
2881

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT - 67 * + MAX ( - 43 ) AS col0 FROM tab2 AS cor0
----
2881

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / + + ( - - 58 ) + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT + - 98 DIV col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2038
SELECT + - 98 / col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2039
SELECT * FROM tab2 AS cor0 WHERE ( + col1 / + 92 + - col0 + + + col2 - - 0 / + - col0 * + col1 * + CAST( + col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2039
SELECT * FROM tab2 AS cor0 WHERE ( + col1 / + 92 + - col0 + + + col2 - - 0 / + - col0 * + col1 * + CAST ( + col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 82 AS col0 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT + col1 * - col1 + 61 AS col2 FROM tab0 AS cor0
----
-380
-6500
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + SUM( ALL + 73 ) FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-2042
SELECT + SUM ( ALL + 73 ) FROM tab2
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + ( col1 ) AND NULL OR NOT - - col0 = - 40 * + + col0 * col2 * + + col0 * + - col0 / + + col2 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2043
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + ( col1 ) AND NULL OR NOT - - col0 = - 40 * + + col0 * col2 * + + col0 * + - col0 / + + col2 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 16 * - + 19 AS col0 FROM tab0
----
304
304
304

query I rowsort
SELECT col2 * + 65 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT DISTINCT 8 * 31 + + + 0 AS col1 FROM tab2
----
248

query III rowsort
SELECT * FROM tab2 WHERE - + col0 BETWEEN + col2 AND - - ( - 33 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col0 FROM tab1 WHERE ( - - 12 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 64 IS NOT NULL AND NOT - 77 / - 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT ALL + 93 DIV + - col2 AS col2 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL + 93 / + - col2 AS col2 FROM tab2 cor0
----
-1
-2
-4

query I rowsort
SELECT - + col0 + 40 FROM tab1 AS cor0
----
-11
-45
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2052
SELECT col2 * ( 57 ) - - - col0 + - - ( - 0 ) * - + col2 + + col1 * - - col0, + ( - col2 ) + + col1 * col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 * + - CAST( - col0 AS SIGNED ) + - + col1 - + col1 / - - col2, col0 )
----

skipif mysql # not compatible
query II rowsort label-2052
SELECT col2 * ( 57 ) - - - col0 + - - ( - 0 ) * - + col2 + + col1 * - - col0, + ( - col2 ) + + col1 * col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 * + - CAST ( - col0 AS INTEGER ) + - + col1 - + col1 / - - col2, col0 )
----

query II rowsort
SELECT ALL col1, + 35 AS col1 FROM tab2
----
51
35
67
35
77
35

query II rowsort
SELECT - col2, 19 AS col0 FROM tab0 AS cor0
----
-10
19
-47
19
-99
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 19 col0 FROM tab0 AS cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, - 42 * - - col1 col2 FROM tab1 cor0
----
-14
-588
-47
-1974
-5
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT DISTINCT - 39 DIV + col1 FROM tab0 AS cor0
----
-1
-39
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT - 39 / + col1 FROM tab0 AS cor0
----
-1
-39
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT + COUNT( * ) col0, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2058
SELECT + COUNT ( * ) col0, COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - MAX( - + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2059
SELECT - MAX ( - + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab2 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT + 54 * CAST( - col0 AS SIGNED ) col2 FROM tab0
----
-4698
-5238
-810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2061
SELECT + 54 * CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
-4698
-5238
-810

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 99 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2064
SELECT ALL + ( + col1 ) * CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL + ( + col1 ) * CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT - + 34 * - + COUNT( * ) * + + 95 FROM tab1 AS cor0
----
9690

skipif mysql # not compatible
query I rowsort label-2065
SELECT - + 34 * - + COUNT ( * ) * + + 95 FROM tab1 AS cor0
----
9690

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * col2 / - col2 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 85 + col1 FROM tab0 AS cor0
----
-4
-64
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT - MAX( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - MAX ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
23

query II rowsort
SELECT DISTINCT - col1, + col0 * - col2 * + - 75 + - 21 AS col0 FROM tab1 AS cor0
----
-14
367179
-47
464079
-5
376104

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL + MAX( + - col1 ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT ALL + MAX ( + - col1 ) col2 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL col0 * 84 DIV col1 FROM tab1
----
1428
162
306

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL col0 * 84 / col1 FROM tab1
----
1428
162
306

query I rowsort
SELECT ALL - col1 + 68 FROM tab0
----
-13
47
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT - COUNT( * ) + 55 AS col1 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-2074
SELECT - COUNT ( * ) + 55 AS col1 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL - 20 + + + 14 + + MIN( DISTINCT ( ( - 75 ) ) ) / 45 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - 20 + + + 14 + + MIN ( DISTINCT ( ( - 75 ) ) ) / 45 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT 30 AS col0, MIN( + + 69 ) FROM tab2
----
30
69

skipif mysql # not compatible
query II rowsort label-2076
SELECT 30 AS col0, MIN ( + + 69 ) FROM tab2
----
30
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 WHERE + - 74 * 54 IN ( - ( + col2 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2077
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 WHERE + - 74 * 54 IN ( - ( + col2 ) )
----
0

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 AS col2 FROM tab1
----
-14
14
-47
47
-5
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 > - - col0
----

query II rowsort
SELECT DISTINCT 43, col2 AS col2 FROM tab1
----
43
59
43
68
43
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL - - COUNT( * ) + 65 * 20 FROM tab1 cor0
----
1303

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - - COUNT ( * ) + 65 * 20 FROM tab1 cor0
----
1303

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 29 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 3 * - - col2 AS col1 FROM tab0 AS cor0
----
-141
-297
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT - - COUNT( * ) + + CAST( 21 AS SIGNED ) FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-2084
SELECT - - COUNT ( * ) + + CAST ( 21 AS INTEGER ) FROM tab0 cor0
----
24

query I rowsort
SELECT DISTINCT - + 51 + + + col1 - col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE col1 IN ( - col2, col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2086
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 IN ( - col2, col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT + MIN( DISTINCT - col2 ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2087
SELECT + MIN ( DISTINCT - col2 ) AS col0 FROM tab0 cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 - - col1 IS NULL
----

query I rowsort
SELECT ALL col1 + col1 - + col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2091
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + ( + MAX( DISTINCT - ( + col0 ) ) ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2092
SELECT + ( + MAX ( DISTINCT - ( + col0 ) ) ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL 53 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 29 - 29 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL + COUNT( * ) * - 8 AS col2 FROM tab2 AS cor0 WHERE NOT ( - + 39 ) NOT BETWEEN ( - + col1 * - 61 ) AND col1 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL + COUNT ( * ) * - 8 AS col2 FROM tab2 AS cor0 WHERE NOT ( - + 39 ) NOT BETWEEN ( - + col1 * - 61 ) AND col1 * + col1
----
0

query I rowsort
SELECT DISTINCT - + ( + 62 ) AS col1 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT COUNT( * ) * - MAX( - + ( ( + 30 ) ) ) FROM tab0 cor0
----
90

skipif mysql # not compatible
query I rowsort label-2098
SELECT COUNT ( * ) * - MAX ( - + ( ( + 30 ) ) ) FROM tab0 cor0
----
90

query I rowsort
SELECT DISTINCT ( - 99 ) * 56 * - 50 + - col2 FROM tab0
----
277101
277153
277190

query I rowsort
SELECT DISTINCT - col1 + - + 82 FROM tab2
----
-133
-149
-159

query I rowsort
SELECT ALL - 38 * + 29 AS col2 FROM tab0
----
-1102
-1102
-1102

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT 25 - - + COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2102
SELECT 25 - - + COUNT ( * ) FROM tab1
----
28

query III rowsort
SELECT * FROM tab0 WHERE - ( - - col1 ) + - col0 * - col1 * + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL + ( + col1 ) + + CAST( NULL AS SIGNED ) / - col2 FROM tab2 WHERE ( NULL ) NOT IN ( - - 91, 59, col2 + - 47 ) AND NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + ( + col1 ) + + CAST ( NULL AS INTEGER ) / - col2 FROM tab2 WHERE ( NULL ) NOT IN ( - - 91, 59, col2 + - 47 ) AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - 20 AS col1 FROM tab1
----
-25
-34
-67

query I rowsort
SELECT ALL + col0 - + col2 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT - col0 + col1 + + + col0 AS col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2108
SELECT DISTINCT + - col2 * - - CAST( col2 AS SIGNED ) * + CAST( NULL AS DECIMAL ) - - col1 + - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + - col2 * - - CAST ( col2 AS INTEGER ) * + CAST ( NULL AS REAL ) - - col1 + - col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 49 - - - col1 FROM tab0 AS cor0
----
-130
-50
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE CAST( - col0 AS SIGNED ) * - + col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2110
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE CAST ( - col0 AS INTEGER ) * - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 15 + ( - + ( - 81 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
66

query II rowsort
SELECT + col1, - 81 FROM tab1 AS cor0
----
14
-81
47
-81
5
-81

query II rowsort
SELECT DISTINCT col2, + 59 FROM tab2 AS cor0 WHERE NOT NULL > ( + col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 66 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 32 * 29 / + - ( - col2 ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 82 * - col2 AS col2 FROM tab1 AS cor0
----
-4838
-5576
-7872

query I rowsort
SELECT ALL - + 64 * - 71 + + - col2 AS col1 FROM tab1 AS cor0
----
4448
4476
4485

query I rowsort
SELECT - col2 * col2 + col1 AS col0 FROM tab0 cor0
----
-2128
-79
-9800

query I rowsort
SELECT ALL + col1 * + + col0 - - col1 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2120
SELECT - - SUM( ALL + col0 ) DIV 80 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2120
SELECT - - SUM ( ALL + col0 ) / 80 FROM tab0 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + col1 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT 97 * - ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT 97 * - ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT 61 * + 38 * + + col2 FROM tab1 AS cor0
----
136762
157624
222528

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2125
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 83 NOT BETWEEN + 3 / col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT DISTINCT + SUM( - 82 ) + - + CAST( - 26 AS SIGNED ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT + SUM ( - 82 ) + - + CAST ( - 26 AS INTEGER ) FROM tab1
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2128
SELECT DISTINCT COUNT( * ) DIV 53 * + 8, 79 AS col0 FROM tab1
----
0
79

skipif mysql # not compatible
query II rowsort label-2128
SELECT DISTINCT COUNT ( * ) / 53 * + 8, 79 AS col0 FROM tab1
----
0
79

query I rowsort
SELECT + 81 + col2 AS col2 FROM tab0
----
128
180
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + - col1 col1 FROM tab1
----
41
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL - 14 * - MAX( ALL + - 37 ) + + MIN( - col1 ) AS col2 FROM tab0
----
-599

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - 14 * - MAX ( ALL + - 37 ) + + MIN ( - col1 ) AS col2 FROM tab0
----
-599

query I rowsort
SELECT DISTINCT - - col2 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT - + MIN( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2133
SELECT - + MIN ( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT - MAX( ALL + col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2134
SELECT - MAX ( ALL + col1 ) AS col0 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 7 * - col2 + + - col0 AS col2 FROM tab1
----
-498
-567
-723

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT MIN( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT MIN ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL + - col1 * - 15 * - 44 FROM tab0 cor0
----
-13860
-53460
-660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT + + col2 + + - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-2140
SELECT + + col2 + + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT - col1 - - - 61 * - - col2 FROM tab0
----
-2948
-6040
-631

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2142
SELECT * FROM tab0 WHERE - col1 * + col1 NOT IN ( + ( col2 ) + + CAST( + col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2142
SELECT * FROM tab0 WHERE - col1 * + col1 NOT IN ( + ( col2 ) + + CAST ( + col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT + COUNT( ALL + 0 ) * 79 + 90 DIV 17 FROM tab2
----
242

skipif mysql # not compatible
query I rowsort label-2143
SELECT + COUNT ( ALL + 0 ) * 79 + 90 / 17 FROM tab2
----
242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT - ( - CAST( NULL AS SIGNED ) ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 * - col0 AS col1, col0 FROM tab2
----
2116
46
4096
64
5625
75

query I rowsort
SELECT ALL 59 * col1 + - + col2 FROM tab1
----
236
2705
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 * - ( - 30 ) * - 78 - col2 col1, col2 + - col1 AS col1 FROM tab1
----
147324
82
147352
21
147361
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT - ( COUNT( ALL CAST( - col2 AS SIGNED ) ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2148
SELECT - ( COUNT ( ALL CAST ( - col2 AS INTEGER ) ) ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col2 AND NULL NOT IN ( - col0 )
----

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL - 8 * col0 - col0 AS col0 FROM tab1 AS cor0
----
-459
-765
-819

query I rowsort
SELECT ALL 39 FROM tab1 WHERE ( - + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT ALL + ( - + col2 ) DIV + - col1 + + 46 * - 42 + col1 FROM tab2
----
-1855
-1865
-1881

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + ( - + col2 ) / + - col1 + + 46 * - 42 + col1 FROM tab2
----
-1855
-1865
-1881

query I rowsort
SELECT ALL - col1 * - + 56 + 36 AS col0 FROM tab1 AS cor0
----
2668
316
820

query I rowsort
SELECT + 96 + + col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT 38 * + + ( 48 ) AS col1 FROM tab1 AS cor0
----
1824

query I rowsort
SELECT ALL + + 64 * col0 AS col2 FROM tab2 AS cor0
----
2944
4096
4800

query II rowsort
SELECT - col1 AS col1, col0 AS col0 FROM tab2 WHERE NOT NULL IN ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + SUM( - col2 ) * + - COUNT( * ) col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2159
SELECT + SUM ( - col2 ) * + - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL

query I rowsort
SELECT col2 * - 45 AS col0 FROM tab0
----
-2115
-4455
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT ALL + 76 DIV - ( 58 ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + 76 / - ( 58 ) AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) = + col1 - + + 98 * - 97
----

query I rowsort
SELECT DISTINCT + - col0 + + + col0 * + col0 + + 73 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 45 / col2 * - 39 * col2 + + - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL COUNT( - ( - + ( + - col0 ) ) ) * ( - + 95 ) * MIN( + - 15 ) FROM tab2 AS cor0
----
4275

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL COUNT ( - ( - + ( + - col0 ) ) ) * ( - + 95 ) * MIN ( + - 15 ) FROM tab2 AS cor0
----
4275

query I rowsort
SELECT ALL 94 + + col2 FROM tab0 AS cor0
----
104
141
193

query II rowsort
SELECT ( - 59 ) AS col0, col0 FROM tab1 AS cor0 WHERE - col1 = ( + - 67 * - ( - + col1 ) )
----

query I rowsort
SELECT col0 + - + 5 AS col1 FROM tab1 AS cor0
----
46
80
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 43 * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT 36 + + CAST( NULL AS SIGNED ) * - col2 * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT 36 + + CAST ( NULL AS INTEGER ) * - col2 * + + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - - 21 * col0 / 40 IS NULL
----

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

query I rowsort
SELECT ALL + 73 - + - col2 AS col2 FROM tab0 AS cor0
----
120
172
83

query I rowsort
SELECT DISTINCT + col1 * + + 90 + + - col1 + - - 44 FROM tab1 AS cor0
----
1290
4227
489

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - ( - COUNT( 92 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2175
SELECT - ( - COUNT ( 92 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col0 - + + col1 AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - col1 - - col1 * + 89 * col1 * + col0 FROM tab1 AS cor0
----
17890644
189120
889630

query I rowsort
SELECT DISTINCT - col1 * 67 * 49 - - col0 * - col0 FROM tab1 AS cor0
----
-162582
-23640
-48563

query I rowsort
SELECT - + col0 - col0 FROM tab0 cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT COUNT( * ) * - MAX( ALL - col2 ) - - ( 44 ) FROM tab1
----
221

skipif mysql # not compatible
query I rowsort label-2180
SELECT COUNT ( * ) * - MAX ( ALL - col2 ) - - ( 44 ) FROM tab1
----
221

query III rowsort
SELECT * FROM tab0 WHERE + - 37 * + col1 NOT IN ( + col1 * - ( 82 ) + + ( - 95 ) * - - col2, col0 + + - 44, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT CAST( 84 AS SIGNED ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT CAST ( 84 AS INTEGER ) FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT + SUM( DISTINCT - col2 ) * - + COUNT( * ) / + SUM( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT + SUM ( DISTINCT - col2 ) * - + COUNT ( * ) / + SUM ( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) + - 66 + + 39 + + col0 * 39 * - 17 * - 56 AS col0 FROM tab1
----
1898397
3160868
3384809

query I rowsort
SELECT DISTINCT 18 * + + ( 65 ) AS col0 FROM tab2
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT - COUNT( DISTINCT - col0 ) * + 41 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-2186
SELECT - COUNT ( DISTINCT - col0 ) * + 41 FROM tab0
----
-123

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 89 * 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL SUM( - 68 ) FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL SUM ( - 68 ) FROM tab1 AS cor0
----
-204

query II rowsort
SELECT col1, 21 FROM tab0 cor0
----
1
21
21
21
81
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL - SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3 * - col0 col1, col2 * - - col1 FROM tab1
----
-153
1344
-255
295
-273
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT MAX( ALL 34 ) AS col0 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT MAX ( ALL 34 ) AS col0 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL COUNT( * ) * 59 FROM tab0 cor0
----
177

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL COUNT ( * ) * 59 FROM tab0 cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT - + ( - SUM( DISTINCT + 68 ) ) * 68 FROM tab1 AS cor0
----
4624

skipif mysql # not compatible
query I rowsort label-2194
SELECT - + ( - SUM ( DISTINCT + 68 ) ) * 68 FROM tab1 AS cor0
----
4624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 1 + col0 - + 94 * ( - 75 ) col0 FROM tab2 AS cor0
----
7147
7191
7192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2197
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) * - + 88 <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) * - + 88 <= NULL )
----
0

query I rowsort
SELECT ALL + ( - - col1 ) * 68 FROM tab1 AS cor0
----
3196
340
952

query I rowsort
SELECT + col2 * + 18 * + col1 FROM tab2 AS cor0
----
21114
55440
69948

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2200
SELECT col0 * CAST( col1 AS SIGNED ) DIV + 80 + 30 AS col1 FROM tab0
----
31
45
52

skipif mysql # not compatible
query I rowsort label-2200
SELECT col0 * CAST ( col1 AS INTEGER ) / + 80 + 30 AS col1 FROM tab0
----
31
45
52

query II rowsort
SELECT ALL + 12, col1 * ( col1 ) FROM tab1 WHERE NULL <> NULL
----

query II rowsort
SELECT - + col0 AS col2, - col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL - MIN( ALL + + ( col2 ) ) + COUNT( ALL + col1 ) * + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - MIN ( ALL + + ( col2 ) ) + COUNT ( ALL + col1 ) * + COUNT ( * ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT 22 * + + CAST( NULL AS SIGNED ) + 6 + - CAST( - col1 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT 22 * + + CAST ( NULL AS INTEGER ) + 6 + - CAST ( - col1 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL COUNT( * ) + + 53 * + + 78 + - - 98 AS col1 FROM tab2
----
4235

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL COUNT ( * ) + + 53 * + + 78 + - - 98 AS col1 FROM tab2
----
4235

query I rowsort
SELECT DISTINCT col1 * + - col1 * - 38 + - col1 AS col2 FROM tab2
----
170515
225225
98787

query I rowsort
SELECT ALL + + 67 + - col0 + col1 * + + col0 * - col0 FROM tab1 AS cor0
----
-36143
-36398
-389231

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT - COUNT( + + col0 ) + - 48 col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2208
SELECT DISTINCT - COUNT ( + + col0 ) + - 48 col2 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT - col1 * col2 - + ( 28 ) * 81 AS col0, 20 FROM tab2
----
-3441
20
-5348
20
-6154
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col1 FROM tab0
----
196
62
97

query I rowsort
SELECT + 81 * 82 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01549614939a7d2aa5ed3efd400de73c

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - + MAX( DISTINCT ( + col1 ) ) + - COUNT( + 24 ) * - - COUNT( * ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2212
SELECT - + MAX ( DISTINCT ( + col1 ) ) + - COUNT ( + 24 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL - 76 + - - COUNT( * ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL - 76 + - - COUNT ( * ) FROM tab2 AS cor0
----
-73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT DISTINCT + - 54 * + + COUNT( * ) - - - COUNT( * ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT + - 54 * + + COUNT ( * ) - - - COUNT ( * ) FROM tab0 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2216
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2 * - + col1 - + CAST( NULL AS SIGNED ), + col0, 2 + ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-2216
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2 * - + col1 - + CAST ( NULL AS INTEGER ), + col0, 2 + ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 78 * + col1 * + - 90 - - + col1 FROM tab2 AS cor0
----
-357969
-470273
-540463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT - CAST( COUNT( - col1 ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2219
SELECT - CAST ( COUNT ( - col1 ) AS INTEGER ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT ALL - col0, - 67 * + + col0 AS col1 FROM tab0
----
-15
-1005
-87
-5829
-97
-6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col2 FROM tab0
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 38 + ( - 21 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT + 47 DIV - 71 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT + 47 / - 71 FROM tab0
----
0
0
0

query II rowsort
SELECT col1 AS col0, col1 + + col1 AS col2 FROM tab0
----
1
2
21
42
81
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT COUNT( * ) * - SUM( ALL - col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-2225
SELECT COUNT ( * ) * - SUM ( ALL - col2 ) FROM tab2
----
363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT - 86 * col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2227
SELECT - 86 * col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 52 AS col0 FROM tab2 cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE + - ( + - col0 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE + - ( + - col0 ) > NULL
----
0

query II rowsort
SELECT col0, 2 FROM tab0
----
15
2
87
2
97
2

query I rowsort
SELECT - - col2 * 79 AS col2 FROM tab1 AS cor0
----
4661
5372
7584

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ALL + MIN( ( col2 ) ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2233
SELECT ALL + MIN ( ( col2 ) ) col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - - 74 AS col1 FROM tab1 AS cor0
----
74
74
74

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2236
SELECT ALL col0 * 12 + + + CAST( NULL AS SIGNED ), col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2236
SELECT ALL col0 * 12 + + + CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL - MAX( - - 64 ) + - ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - MAX ( - - 64 ) + - ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT ALL + + col2 AS col0, col0 AS col2 FROM tab2 WHERE NOT + 30 < col2
----
23
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2239
SELECT CAST( + + col0 AS SIGNED ) + col0 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-2239
SELECT CAST ( + + col0 AS INTEGER ) + col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2241
SELECT ALL - + CAST( NULL AS DECIMAL ) - + 2 AS col1, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2241
SELECT ALL - + CAST ( NULL AS REAL ) - + 2 AS col1, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - 9 + - col2 FROM tab1 AS cor0
----
-105
-68
-77

query II rowsort
SELECT ALL + col0 * col0, - 45 AS col1 FROM tab2 AS cor0
----
2116
-45
4096
-45
5625
-45

query I rowsort
SELECT + ( - 5 ) * - 69 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51061f1dea4f7daceab4b6040cbc2b68

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) - + 50 FROM tab2 AS cor0 WHERE + 5 < NULL
----
-50

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - + 50 FROM tab2 AS cor0 WHERE + 5 < NULL
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2246
SELECT ALL CAST( NULL AS SIGNED ) * - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2246
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT + - MIN( + col2 ) col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2247
SELECT + - MIN ( + col2 ) col1 FROM tab2 cor0
----
-23

query I rowsort
SELECT ALL + + 68 * col1 AS col1 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT DISTINCT - COUNT( * ) * + + 79 AS col0 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT - COUNT ( * ) * + + 79 AS col0 FROM tab0 AS cor0
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT + col1 * - col1 + - + ( - - CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT NULL >= - col2 * - ( col1 ) + 97
----

skipif mysql # not compatible
query I rowsort label-2250
SELECT + col1 * - col1 + - + ( - - CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT NULL >= - col2 * - ( col1 ) + 97
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT DISTINCT + 98 * COUNT( * ) AS col0 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 98 * COUNT ( * ) AS col0 FROM tab0
----
294

onlyif mysql # DIV for integer division: 
query II rowsort label-2253
SELECT ALL - col1 DIV + col1, - 27 - + col1 AS col0 FROM tab0
----
-1
-108
-1
-28
-1
-48

skipif mysql # not compatible
query II rowsort label-2253
SELECT ALL - col1 / + col1, - 27 - + col1 AS col0 FROM tab0
----
-1
-108
-1
-28
-1
-48

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + + 20 * - - 3 <> NULL
----

query I rowsort
SELECT col0 * - 94 AS col1 FROM tab2
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT MIN( - col1 ) * - MIN( 48 ) AS col2 FROM tab2
----
3696

skipif mysql # not compatible
query I rowsort label-2256
SELECT MIN ( - col1 ) * - MIN ( 48 ) AS col2 FROM tab2
----
3696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col0 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT MAX( - + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT MAX ( - + col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 * + col2 + - - col1 col2, 91 col0 FROM tab2 AS cor0
----
1109
91
2637
91
4417
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL + - ( - COUNT( * ) ) + - 7 AS col0 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + - ( - COUNT ( * ) ) + - 7 AS col0 FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT SUM( + col1 ) + + COUNT( * ) AS col2 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-2262
SELECT SUM ( + col1 ) + + COUNT ( * ) AS col2 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL - COUNT( * ) * + SUM( ALL + 78 ) * - + 1 * + 25 AS col1 FROM tab1
----
17550

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - COUNT ( * ) * + SUM ( ALL + 78 ) * - + 1 * + 25 AS col1 FROM tab1
----
17550

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL - COUNT( ALL col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - COUNT ( ALL col1 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT CAST( MIN( - CAST( + - CAST( + col1 AS SIGNED ) AS SIGNED ) ) AS SIGNED ) + + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2265
SELECT CAST ( MIN ( - CAST ( + - CAST ( + col1 AS INTEGER ) AS INTEGER ) ) AS INTEGER ) + + COUNT ( * ) FROM tab2
----
54

query I rowsort
SELECT ( col1 ) + + col0 FROM tab0
----
108
96
98

query I rowsort
SELECT - ( + 71 ) * + col0 AS col2 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT MAX( DISTINCT - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2268
SELECT MAX ( DISTINCT - + col2 ) FROM tab2
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2269
SELECT ALL + col1 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN - col1 * - + 71 AND - CAST( 93 AS DECIMAL ) + col2
----

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL + col1 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN - col1 * - + 71 AND - CAST ( 93 AS REAL ) + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT ALL 25 * col1 - col0 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL 25 * col1 - col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL 47 * + + COUNT( * ) FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL 47 * + + COUNT ( * ) FROM tab2
----
141

query II rowsort
SELECT DISTINCT + col2 * + - col0 * 77, 54 AS col2 FROM tab1 AS cor0
----
-376992
54
-386155
54
-476476
54

query I rowsort
SELECT col0 * - 87 + + col0 FROM tab0 AS cor0
----
-1290
-7482
-8342

query II rowsort
SELECT DISTINCT col0 * - col0 * - col0, col0 FROM tab2
----
262144
64
421875
75
97336
46

query III rowsort
SELECT * FROM tab0 WHERE NOT + 32 * + + ( + 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT MAX( DISTINCT + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2278
SELECT MAX ( DISTINCT + + col0 ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT ALL + 32 DIV - 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + 32 / - 81 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT 79 AS col2, 83 / + 16 * - col2 AS col1 FROM tab0 cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT ALL + 80 AS col2 FROM tab1 WHERE ( + 59 ) < 52
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN col1 + + col1 AND 40
----

query I rowsort
SELECT - 89 * 85 AS col0 FROM tab0
----
-7565
-7565
-7565

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + COUNT( * ) * - SUM( 36 ) col2 FROM tab1
----
-324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT + COUNT ( * ) * - SUM ( 36 ) col2 FROM tab1
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT DISTINCT + 11 + - COUNT( * ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT + 11 + - COUNT ( * ) AS col0 FROM tab2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2287
SELECT 45 * + CAST( - SUM( col2 ) AS SIGNED ) FROM tab2
----
-5445

skipif mysql # not compatible
query I rowsort label-2287
SELECT 45 * + CAST ( - SUM ( col2 ) AS INTEGER ) FROM tab2
----
-5445

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT - 72 * SUM( ALL col0 * - 21 ) AS col0 FROM tab0
----
300888

skipif mysql # not compatible
query I rowsort label-2288
SELECT - 72 * SUM ( ALL col0 * - 21 ) AS col0 FROM tab0
----
300888

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT ( COUNT( * ) ) * ( 38 ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT ( COUNT ( * ) ) * ( 38 ) FROM tab1
----
114

query III rowsort
SELECT * FROM tab2 WHERE ( + 78 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE ( NULL ) >= CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE ( NULL ) >= CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 + col2 * col0 AS col0 FROM tab0
----
720
957
9700

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT DISTINCT + 27 + - col2 AS col0 FROM tab0
----
-20
-72
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) IN ( + 32 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) IN ( + 32 * - col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2298
SELECT COUNT( * ) FROM tab2 WHERE NOT ( CAST( + col2 AS DECIMAL ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2298
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( CAST ( + col2 AS REAL ) ) IS NULL
----
3

query I rowsort
SELECT ALL + 92 * + 11 FROM tab1 WHERE NOT ( 65 ) NOT BETWEEN col1 AND + 88
----
1012
1012
1012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 75 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2300
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT MIN( col0 ) / 32 col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2302
SELECT MIN ( col0 ) / 32 col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col0 FROM tab0
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT DISTINCT - CAST( col1 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - CAST ( col1 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 59 - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2306
SELECT DISTINCT * FROM tab1 WHERE - col0 < - 68 + + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2306
SELECT DISTINCT * FROM tab1 WHERE - col0 < - 68 + + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2307
SELECT col2 DIV CAST( + 8 * 27 AS SIGNED ) col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2307
SELECT col2 / CAST ( + 8 * 27 AS INTEGER ) col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE - 91 + + col1 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT COUNT( * ) - 6 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT COUNT ( * ) - 6 AS col1 FROM tab0
----
-3

query I rowsort
SELECT + ( col1 ) * col2 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT col1 * ( 19 ) FROM tab1
----
266
893
95

query I rowsort
SELECT DISTINCT col2 * 24 AS col2 FROM tab2
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT - COUNT( col1 ) + + MAX( ( + 4 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2313
SELECT - COUNT ( col1 ) + + MAX ( ( + 4 ) ) FROM tab1
----
1

query I rowsort
SELECT + col2 + + 1 FROM tab0 cor0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT DISTINCT MIN( ALL - 56 ) - + 75 col0 FROM tab0 cor0
----
-131

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2315
SELECT DISTINCT MIN ( ALL - 56 ) - + 75 col0 FROM tab0 cor0
----
-131

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 99 * - col0 IS NULL
----

query I rowsort
SELECT 2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - - 98 * + 22 AS col2 FROM tab2 AS cor0
----
2156
2156
2156

query I rowsort
SELECT - 40 * - 59 FROM tab0 AS cor0
----
2360
2360
2360

query I rowsort
SELECT - - 10 * 96 AS col2 FROM tab0 AS cor0
----
960
960
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT + 18 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 + col0 NOT BETWEEN ( col1 ) * - 84 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2321
SELECT + 18 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 + col0 NOT BETWEEN ( col1 ) * - 84 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col1 = ( + col1 * col0 )
----

query I rowsort
SELECT DISTINCT ( - col1 ) * 31 FROM tab1 cor0
----
-1457
-155
-434

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col1 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 60 * - col1 AND ( - col0 * - col2 + col0 )
----

query I rowsort
SELECT ALL col2 / - col2 AS col1 FROM tab2 WHERE ( 83 ) BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 67 * + 60 + 82 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT - COUNT( - 68 ) * 58 AS col1 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - COUNT ( - 68 ) * 58 AS col1 FROM tab1
----
-174

query I rowsort
SELECT - 17 * - col2 * + col1 AS col2 FROM tab2
----
19941
52360
66062

query I rowsort
SELECT ALL - 85 + 14 * + 13 AS col0 FROM tab1 WHERE NOT 79 * col1 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) + + col0 NOT IN ( + 67 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 + col2 * 0 ) < NULL OR + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2334
SELECT - col0 * - col1 + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-2334
SELECT - col0 * - col1 + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT ( ( COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT ( ( COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col0 * - - col2 * col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT - 62 * + - col2 AS col0 FROM tab1 cor0
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL - MAX( + col0 ) FROM tab2 cor0 WHERE NOT ( col0 ) BETWEEN ( - 98 + - col0 * + col2 ) AND - col1 + + 99
----
-75

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - MAX ( + col0 ) FROM tab2 cor0 WHERE NOT ( col0 ) BETWEEN ( - 98 + - col0 * + col2 ) AND - col1 + + 99
----
-75

query I rowsort
SELECT DISTINCT - - 57 AS col1 FROM tab0 cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT 76 * - COUNT( * ) AS col2 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-2340
SELECT 76 * - COUNT ( * ) AS col2 FROM tab1
----
-228

query I rowsort
SELECT DISTINCT + 98 - + 66 * 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2410

query I rowsort
SELECT col2 + - - col1 AS col0 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 - 91 + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT - 63 DIV + COUNT( ALL + col0 ) + + 83 DIV 54 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2344
SELECT - 63 / + COUNT ( ALL + col0 ) + + 83 / 54 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ( 46 ) + + 2 * MAX( col0 + 70 ) AS col2 FROM tab1 AS cor0
----
368

skipif mysql # not compatible
query I rowsort label-2345
SELECT ( 46 ) + + 2 * MAX ( col0 + 70 ) AS col2 FROM tab1 AS cor0
----
368

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT ALL col0 * col1 DIV col0 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL col0 * col1 / col0 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( col0 - - 12 + col0 / col0 ) NOT BETWEEN ( - 95 / - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT col1 + col2 FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN + col2 + CAST( col0 AS SIGNED ) AND - col2
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2348
SELECT col1 + col2 FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN + col2 + CAST ( col0 AS INTEGER ) AND - col2
----
110
115
64

query I rowsort
SELECT col2 * - col1 FROM tab2 AS cor0 WHERE ( 79 ) NOT BETWEEN ( - col1 ) AND ( - 70 )
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - - - col1 IS NOT NULL
----

query II rowsort
SELECT ALL + ( + 51 ) AS col1, 80 * + + 73 FROM tab1
----
51
5840
51
5840
51
5840

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col2 + - 29
----

query III rowsort
SELECT * FROM tab2 WHERE ( 72 ) IN ( 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT ALL + col0 FROM tab2 WHERE NOT col1 NOT BETWEEN + CAST( NULL AS SIGNED ) / + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + col0 FROM tab2 WHERE NOT col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) / + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col0 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL 65 * - - COUNT( * ) + - - MIN( ALL 52 ) FROM tab0
----
247

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 65 * - - COUNT ( * ) + - - MIN ( ALL 52 ) FROM tab0
----
247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT - CAST( NULL AS SIGNED ) / - ( - + col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT - CAST ( NULL AS INTEGER ) / - ( - + col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - - 89 FROM tab0
----
-10
42
79

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - - col0 <> col2 * 68
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 27 - + - col0 + - col1 col1 FROM tab2 AS cor0
----
14
22
35

query I rowsort
SELECT ALL - + col2 * col2 - col0 * + - col0 AS col2 FROM tab1 AS cor0
----
-6615
3657
3744

query I rowsort
SELECT ALL + ( + col0 ) * col1 FROM tab2 AS cor0 WHERE NULL <= ( ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - - SUM( 92 ) - - - 53 FROM tab2 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2363
SELECT - - SUM ( 92 ) - - - 53 FROM tab2 AS cor0
----
223

query I rowsort
SELECT + ( + ( - - col0 ) ) * + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( + 45 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 82 * col2 FROM tab0 AS cor0
----
-3854
-8118
-820

query I rowsort
SELECT + 44 * - col2 FROM tab2 AS cor0 WHERE NOT 11 + col0 * 68 <> NULL
----

query I rowsort
SELECT ALL col1 + - 27 * - col0 FROM tab2 AS cor0 WHERE 79 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT + COUNT( DISTINCT + 32 ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + COUNT ( DISTINCT + 32 ) AS col1 FROM tab2 cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 29 * ( - ( + 20 ) ) - col2 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT - col1 DIV - - 99 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2371
SELECT - col1 / - - 99 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * - - 93 FROM tab0 AS cor0
----
1395
8091
9021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT + CAST( + - 33 AS SIGNED ) col2 FROM tab0
----
-33
-33
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2373
SELECT + CAST ( + - 33 AS INTEGER ) col2 FROM tab0
----
-33
-33
-33

query II rowsort
SELECT ALL col1, - col0 + - col1 FROM tab2
----
51
-97
67
-142
77
-141

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * + - col2 = col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2376
SELECT + CAST( 1 AS SIGNED ), ( - col2 ) + - col2 AS col0 FROM tab0
----
1
-198
1
-20
1
-94

skipif mysql # not compatible
query II rowsort label-2376
SELECT + CAST ( 1 AS INTEGER ), ( - col2 ) + - col2 AS col0 FROM tab0
----
1
-198
1
-20
1
-94

query I rowsort
SELECT + ( - + 99 ) FROM tab1
----
-99
-99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2378
SELECT + col2 col2 FROM tab0 WHERE NOT - CAST( + col2 AS DECIMAL ) + - col1 <> ( + col1 + 50 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2378
SELECT + col2 col2 FROM tab0 WHERE NOT - CAST ( + col2 AS REAL ) + - col1 <> ( + col1 + 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col0 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT 71 + 52 FROM tab2, tab2 AS cor0
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 + 29 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 + 29 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 41 * 23 AS col2, col1 * col1 + + 91 AS col0 FROM tab2
----
-943
2692
-943
4580
-943
6020

query I rowsort
SELECT ALL col2 * + 89 FROM tab2
----
2047
3560
5162

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 79 FROM tab0 AS cor0
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2386
SELECT + ( + MAX( ALL + col2 ) ) DIV + SUM( 90 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT + ( + MAX ( ALL + col2 ) ) / + SUM ( 90 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col2 + - col1 - + col0 FROM tab1
----
128959
17315
217190

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ( - - MIN( ALL - col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2388
SELECT ( - - MIN ( ALL - col2 ) ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN + - col1 AND - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 91 IS NULL
----

query I rowsort
SELECT ALL col2 + - + col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( - ( - col0 ) + 86 + 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT ALL + CAST( + col2 AS SIGNED ) - - 43 FROM tab1 AS cor0
----
102
111
139

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + CAST ( + col2 AS INTEGER ) - - 43 FROM tab1 AS cor0
----
102
111
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT - COUNT( * ) - - 60 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2394
SELECT - COUNT ( * ) - - 60 FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT - 83 + - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0, + 29 FROM tab0
----
15
29
87
29
97
29

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT ( + col0 + + ( + col2 ) / - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE + + 15 * + col2 - + col0 >= NULL
----

query I rowsort
SELECT + col2 * + - col0 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1, - col1 * - 44 + col2 )
----

query I rowsort
SELECT - ( - - ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ALL - MAX( + 91 ) AS col2 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL - MAX ( + 91 ) AS col2 FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col1 FROM tab2
----
92
92
92

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 22 + - 67 ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + + - col1 NOT IN ( + - col0, - col1 + + + col2 )
----

query I rowsort
SELECT 74 * + 9 FROM tab2
----
666
666
666

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 - - 29 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2409
SELECT - - col1 DIV - + 87, 92 * col2 col2 FROM tab2 AS cor0
----
0
2116
0
3680
0
5336

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2409
SELECT - - col1 / - + 87, 92 * col2 col2 FROM tab2 AS cor0
----
0
2116
0
3680
0
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - ( 94 ) + - 3 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - ( 94 ) + - 3 ) IS NOT NULL
----
-3

query I rowsort
SELECT - 81 * col0 + - - 54 AS col1 FROM tab1 AS cor0
----
-4077
-6831
-7317

query I rowsort
SELECT - - 76 AS col2 FROM tab1 cor0
----
76
76
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) = + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) = + 21
----
NULL

query I rowsort
SELECT - 10 + + 62 AS col0 FROM tab1
----
52
52
52

query I rowsort
SELECT ALL - col2 + + col2 * - 40 * col2 AS col1 FROM tab2
----
-134618
-21183
-64040

query I rowsort
SELECT - col2 + - col0 + col2 AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT MIN( - col0 ) + + COUNT( * ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-2417
SELECT MIN ( - col0 ) + + COUNT ( * ) FROM tab1
----
-88

query I rowsort
SELECT ALL 25 + + + 87 AS col1 FROM tab0
----
112
112
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT + COUNT( * ) * + - ( - 11 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + COUNT ( * ) * + - ( - 11 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * + + col2 * + + ( + 17 ) AS col1 FROM tab1
----
22848
5015
54332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL + ( + col0 ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + ( + col0 ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT 57 + MIN( DISTINCT - 44 ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2422
SELECT 57 + MIN ( DISTINCT - 44 ) AS col2 FROM tab0
----
13

query I rowsort
SELECT - - col0 + 95 FROM tab1 AS cor0
----
146
180
186

query I rowsort
SELECT DISTINCT + col1 + - + 9 + - - col1 * + col0 AS col1 FROM tab1 AS cor0
----
421
4315
719

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + - col2 ) NOT IN ( + + col0, col1 ) AND col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + col1 + + - 74 FROM tab0 AS cor0
----
-32
-72
88

query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL + col0, - col0 AS col1 FROM tab1 cor0
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2429
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) * - + col0 AND + - col1
----

skipif mysql # not compatible
query III rowsort label-2429
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) * - + col0 AND + - col1
----

query I rowsort
SELECT DISTINCT 62 - col1 AS col1 FROM tab2 cor0
----
-15
-5
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT + - MIN( ALL - + 50 ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col1, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + - MIN ( ALL - + 50 ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col1, - col0 )
----
NULL

query I rowsort
SELECT DISTINCT 95 * - ( + col2 ) FROM tab2
----
-2185
-3800
-5510

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2434
SELECT + col1 * col0 * - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT + col1 * col0 * - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 * - col1, + 44 + 74 AS col1 FROM tab2
----
-2601
118
-4489
118
-5929
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT - MAX( - + 5 ) * + 64 AS col0 FROM tab1
----
320

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT - MAX ( - + 5 ) * + 64 AS col0 FROM tab1
----
320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2437
SELECT ALL ( + 87 ) DIV - - COUNT( * ) + - 22 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL ( + 87 ) / - - COUNT ( * ) + - 22 FROM tab0
----
7

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT COUNT( * ) DIV + MIN( + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2439
SELECT COUNT ( * ) / + MIN ( + col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT + COUNT( * ) * - 58 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT + COUNT ( * ) * - 58 FROM tab1 AS cor0
----
-174

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 51 IN ( col0 - + col1 * - 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + - 6 + - - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + ( 59 ) AS col1 FROM tab2 cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2445
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2445
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( - col2 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT + 59 DIV 37 + - 44 col1 FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2446
SELECT + 59 / 37 + - 44 col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT 66 * + 0 + - + 49 FROM tab2 AS cor0
----
-49
-49
-49

query II rowsort
SELECT 10, ( + col2 ) FROM tab0 AS cor0
----
10
10
10
47
10
99

query I rowsort
SELECT DISTINCT - 54 + - + col0 - - ( col2 ) FROM tab1
----
-77
-80
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 38 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2450
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 38 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT COUNT( * ) * + 0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT COUNT ( * ) * + 0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL - MAX( + 43 ) + + 54 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - MAX ( + 43 ) + + 54 FROM tab0
----
11

query I rowsort
SELECT col2 FROM tab2 WHERE - col0 * + col2 NOT IN ( + col1 * - 43 * - col0 * - col1, 75 )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col2 NOT BETWEEN 18 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + COUNT( * ) + COUNT( * ) + + 76 AS col2 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + 76 AS col2 FROM tab2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2456
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 36 * ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2456
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 36 * ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col1 + + - 29 FROM tab1
----
-15
-24
18

query III rowsort
SELECT * FROM tab2 WHERE col2 * + 48 + + - 46 - + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT + ( - - COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT + ( - - COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT AVG ( - CAST( NULL AS SIGNED ) ) - + + ( - 93 ) / - COUNT( * ) + 56 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2461
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) - + + ( - 93 ) / - COUNT ( * ) + 56 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 71 - col1 AS col1 FROM tab2 AS cor0
----
-6
20
4

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT - - col2 * + col2 + - + 82 - - 81 DIV CAST( 4 AS SIGNED ) - col1 FROM tab2 AS cor0
----
1461
3235
416

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT - - col2 * + col2 + - + 82 - - 81 / CAST ( 4 AS INTEGER ) - col1 FROM tab2 AS cor0
----
1461
3235
416

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL >= + ( + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2467
SELECT ALL col0 DIV col2 * col0 * - + 60 AS col1 FROM tab2 AS cor0 WHERE ( col2 + 15 * col0 ) IS NOT NULL
----
-3840
-4500
-5520

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL col0 / col2 * col0 * - + 60 AS col1 FROM tab2 AS cor0 WHERE ( col2 + 15 * col0 ) IS NOT NULL
----
-3840
-4500
-5520

query I rowsort
SELECT ALL ( ( + - col1 ) ) * col2 * - - 32 AS col0 FROM tab1
----
-102272
-43008
-9440

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT MIN( 43 ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2469
SELECT MIN ( 43 ) AS col2 FROM tab1
----
43

query I rowsort
SELECT DISTINCT 26 * + col0 * + col1 * + col2 AS col0 FROM tab0
----
1484730
249678
475020

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL - COUNT( * ) * - - 31 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - COUNT ( * ) * - - 31 FROM tab1
----
-93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT DISTINCT col2 DIV - - 21 AS col1 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT col2 / - - 21 AS col1 FROM tab1
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + 6 * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 6 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT ALL + + 65 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + + 65 / - col1 FROM tab2 AS cor0
----
-1
0
0

query II rowsort
SELECT + 11 * 45 + + col1 / - col2 * - col2, + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL - SUM( ( + - col1 ) ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - SUM ( ( + - col1 ) ) AS col1 FROM tab1
----
66

query I rowsort
SELECT - + col2 * - 48 + - 55 FROM tab2 AS cor0
----
1049
1865
2729

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT - MAX( col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2479
SELECT - MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + ( + 41 ) + - 74 col1 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab2 cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2482
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 70 * - ( - CAST( NULL AS SIGNED ) ) < + col1
----

skipif mysql # not compatible
query III rowsort label-2482
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 70 * - ( - CAST ( NULL AS INTEGER ) ) < + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 31 * + 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 * col2 col2 FROM tab1 AS cor0
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL + COUNT( * ) * 17 AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + COUNT ( * ) * 17 AS col0 FROM tab0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2486
SELECT DISTINCT - COUNT( * ) DIV - 30 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT - COUNT ( * ) / - 30 FROM tab0
----
0

query III rowsort
SELECT ALL col2, col0 + 81 + + col1 AS col0, + col1 AS col1 FROM tab2
----
9 values hashing to a699ea3a16ed0069609291e60d52a929

query I rowsort
SELECT col2 + - 52 + + 46 + - - ( + col1 ) + col1 * - 29 * - - col0 FROM tab0
----
-2719
-35113
-52958

query III rowsort
SELECT * FROM tab1 WHERE + - 2 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 32 * - col2 * + col1 + col2 FROM tab0
----
-121777
-3069
-6710

query III rowsort
SELECT ALL * FROM tab0 WHERE + 3 / col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2492
SELECT ALL col0 + 53 * + + 99 AS col0, + CAST( NULL AS SIGNED ) FROM tab0
----
5262
NULL
5334
NULL
5344
NULL

skipif mysql # not compatible
query II rowsort label-2492
SELECT ALL col0 + 53 * + + 99 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
5262
NULL
5334
NULL
5344
NULL

query I rowsort
SELECT DISTINCT 17 + + col2 AS col1 FROM tab2
----
40
57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL + MAX( ALL 81 ) col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2494
SELECT ALL + MAX ( ALL 81 ) col2 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT - COUNT( - 51 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2495
SELECT - COUNT ( - 51 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2496
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - col2 - - + ( col2 ) AS col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 - - + 3 * - - col1 IS NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 29 * col1 FROM tab1
----
1363
145
406

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT DISTINCT col1 DIV + + col0 + 70 + + - 0 + - + col2 AS col1 FROM tab1
----
-26
11
2

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT col1 / + + col0 + 70 + + - 0 + - + col2 AS col1 FROM tab1
----
-26
11
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT COUNT( + col2 ) + 72 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-2501
SELECT COUNT ( + col2 ) + 72 FROM tab0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 < col2 * - col1
----

query I rowsort
SELECT ALL - col1 * + - col1 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
6786
8010
9410

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 65 ) <= + col0
----
51
14
96

query I rowsort
SELECT DISTINCT - 74 * - 28 AS col0 FROM tab1 AS cor0
----
2072

query II rowsort
SELECT col1 + - + col2 AS col2, col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT + + MIN( ALL + 29 ) AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT + + MIN ( ALL + 29 ) AS col0 FROM tab0 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + + col1 <= + - col2 + + - 41 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * - col2 + - col1
----

query II rowsort
SELECT + 2, - col1 AS col2 FROM tab1
----
2
-14
2
-47
2
-5

query II rowsort
SELECT - col2 AS col0, col2 AS col0 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT - CAST( AVG ( + 0 ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT - CAST ( AVG ( + 0 ) AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT ALL ( + - 15 ) AS col2 FROM tab0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT + COUNT( * ) AS col1, - MIN( ALL 79 ) FROM tab1
----
3
-79

skipif mysql # not compatible
query II rowsort label-2514
SELECT + COUNT ( * ) AS col1, - MIN ( ALL 79 ) FROM tab1
----
3
-79

query II rowsort
SELECT - col1 AS col1, 47 AS col2 FROM tab0
----
-1
47
-21
47
-81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2516
SELECT - 34 DIV + COUNT( * ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2516
SELECT - 34 / + COUNT ( * ) AS col1 FROM tab0
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2517
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 * + CAST( - 36 AS DECIMAL ) * + 96 + - col2 NOT BETWEEN + col0 AND + col1 * + col2 / + + ( + col2 ) - - 62 * + col2
----

skipif mysql # not compatible
query III rowsort label-2517
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 * + CAST ( - 36 AS REAL ) * + 96 + - col2 NOT BETWEEN + col0 AND + col1 * + col2 / + + ( + col2 ) - - 62 * + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 77 + + + ( + col2 ) + col1 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT 29 AS col0, COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
29
9

skipif mysql # not compatible
query II rowsort label-2519
SELECT 29 AS col0, COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
29
9

query I rowsort
SELECT ALL col0 + + col2 * + + col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # DIV for integer division: 
query II rowsort label-2521
SELECT ALL + 25 * + col2 DIV - + ( + - col2 ) AS col0, col1 * + col1 col0 FROM tab0 AS cor0
----
25
1
25
441
25
6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2521
SELECT ALL + 25 * + col2 / - + ( + - col2 ) AS col0, col1 * + col1 col0 FROM tab0 AS cor0
----
25
1
25
441
25
6561

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 = + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL MIN( + + col1 ) * - 56 * + + 85 FROM tab0 AS cor0
----
-4760

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL MIN ( + + col1 ) * - 56 * + + 85 FROM tab0 AS cor0
----
-4760

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----
0

query I rowsort
SELECT + + col0 * - col0 * - col2 AS col1 FROM tab1 AS cor0
----
249696
426275
563108

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT - 5 DIV - + MAX( DISTINCT + + 37 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2527
SELECT - 5 / - + MAX ( DISTINCT + + 37 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col2 * + + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - ( - ( + ( - ( - - col0 ) ) ) ), col0, + col2 * + 52 + + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2529
SELECT DISTINCT col2 DIV col0, - ( + - col0 ) AS col2 FROM tab1
----
0
85
0
91
1
51

skipif mysql # not compatible
query II rowsort label-2529
SELECT DISTINCT col2 / col0, - ( + - col0 ) AS col2 FROM tab1
----
0
85
0
91
1
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT + + CAST( - 22 AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2530
SELECT + + CAST ( - 22 AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2531
SELECT - SUM( ALL + CAST( + ( + col1 ) AS SIGNED ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2531
SELECT - SUM ( ALL + CAST ( + ( + col1 ) AS INTEGER ) ) FROM tab2
----
-195

query II rowsort
SELECT - col1 + + + col0 AS col0, - col1 * + - col0 FROM tab1
----
37
714
44
4277
80
425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + - 69 col2 FROM tab0
----
-150
-70
-90

query I rowsort
SELECT DISTINCT + - 38 + ( - - 30 ) FROM tab2 AS cor0
----
-8

query II rowsort
SELECT col1 * + + col2, col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

query I rowsort
SELECT DISTINCT + 60 - 99 FROM tab2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL + + MAX( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL + + MAX ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - + col2 * + - col1 + + 0 - + - col0 FROM tab1 AS cor0 WHERE col0 + + 87 + + 40 >= + 3
----
1395
3287
380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2539
SELECT * FROM tab1 cor0 WHERE NOT 37 + + + ( + col0 ) = - CAST( + col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2539
SELECT * FROM tab1 cor0 WHERE NOT 37 + + + ( + col0 ) = - CAST ( + col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * - + 10 AS col1 FROM tab1 AS cor0
----
590
680
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT COUNT( + 31 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2542
SELECT COUNT ( + 31 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 92 * + 77 FROM tab2 AS cor0
----
7084
7084
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT SUM( 13 ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT SUM ( 13 ) FROM tab1 AS cor0
----
39

query I rowsort
SELECT - ( - 9 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE - ( + 25 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE - ( + 25 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - 62 ) col2, + col1 AS col1 FROM tab0
----
62
1
62
21
62
81

query I rowsort
SELECT 95 * - col2 * col0 FROM tab1
----
-465120
-476425
-587860

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL - COUNT( DISTINCT 19 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - COUNT ( DISTINCT 19 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-65

query I rowsort
SELECT + + col2 + - 32 AS col0 FROM tab1 AS cor0
----
27
36
64

query III rowsort
SELECT * FROM tab2 WHERE + 11 * col1 + + + 42 * + col1 - + + col1 / + col0 < - + col1 + + 84
----

query II rowsort
SELECT DISTINCT 5 * + - 37 AS col0, 23 AS col1 FROM tab2
----
-185
23

query I rowsort
SELECT + ( + col2 ) * + 96 + - col0 AS col1 FROM tab2
----
2162
3776
5493

query II rowsort
SELECT ALL - col1 AS col2, + col2 * + col0 FROM tab2
----
-51
1058
-67
4350
-77
2560

query III rowsort
SELECT ALL * FROM tab1 WHERE 66 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2559
SELECT - ( - MAX( + 17 ) ) * 30 DIV 70 col1 FROM tab0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2559
SELECT - ( - MAX ( + 17 ) ) * 30 / 70 col1 FROM tab0
----
7

query I rowsort
SELECT ALL 3 + ( + + col1 ) AS col2 FROM tab0
----
24
4
84

query II rowsort
SELECT - col1, - col2 * - ( + - col1 ) AS col0 FROM tab2
----
-51
-1173
-67
-3886
-77
-3080

query I rowsort
SELECT ALL - 56 + + col0 AS col2 FROM tab2
----
-10
19
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2563
SELECT CAST( NULL AS SIGNED ), + SUM( - - col0 ) AS col2 FROM tab1
----
NULL
227

skipif mysql # not compatible
query II rowsort label-2563
SELECT CAST ( NULL AS INTEGER ), + SUM ( - - col0 ) AS col2 FROM tab1
----
NULL
227

query I rowsort
SELECT + - 33 * - col1 + - + 3 FROM tab2 AS cor0
----
1680
2208
2538

query I rowsort
SELECT DISTINCT + col0 - - col0 - + col1 * - 29 * - col1 FROM tab2 AS cor0
----
-130031
-171813
-75337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2566
SELECT 14 * 82 * + - CAST( + col1 AS SIGNED ) + - col1 - + - 9 + + - 81 AS col0 FROM tab1
----
-16158
-54075
-5817

skipif mysql # not compatible
query I rowsort label-2566
SELECT 14 * 82 * + - CAST ( + col1 AS INTEGER ) + - col1 - + - 9 + + - 81 AS col0 FROM tab1
----
-16158
-54075
-5817

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT + + COUNT( ALL 37 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2567
SELECT + + COUNT ( ALL 37 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT SUM( + - 64 ) AS col0 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT SUM ( + - 64 ) AS col0 FROM tab0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT DISTINCT + 74 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT + 74 / - col1 AS col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col2 FROM tab0 AS cor0 WHERE - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col0 ) col1, col2 + + + 2 AS col1 FROM tab2 AS cor0
----
46
25
64
42
75
60

query I rowsort
SELECT ALL + col1 * + 13 AS col1 FROM tab1
----
182
611
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT AVG ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT AVG ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * 62 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT DISTINCT MAX( DISTINCT - - col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT MAX ( DISTINCT - - col2 ) AS col1 FROM tab2
----
58

query II rowsort
SELECT ALL 94, 16 + 86 AS col1 FROM tab0
----
94
102
94
102
94
102

query I rowsort
SELECT + - col2 * col1 * + col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL COUNT( * ) * - - 82 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL COUNT ( * ) * - - 82 FROM tab0 AS cor0
----
246

query I rowsort
SELECT + col2 + + + col2 + + + 62 FROM tab1
----
180
198
254

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 49 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2582
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 49 IS NULL
----
0

query I rowsort
SELECT ALL - + 76 + col1 AS col0 FROM tab1 cor0
----
-29
-62
-71

query II rowsort
SELECT DISTINCT - col0, 11 - col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - col0 + + - 69 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156
-166
-84

query II rowsort
SELECT DISTINCT col1, col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + - COUNT( ALL - - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2587
SELECT + - COUNT ( ALL - - col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2588
SELECT ALL * FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2588
SELECT ALL * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT col0 - - col0, + col2 FROM tab2 AS cor0
----
128
40
150
58
92
23

query I rowsort
SELECT DISTINCT + 62 * - - col0 + - 83 FROM tab1 AS cor0
----
3079
5187
5559

query I rowsort
SELECT + 66 - - 18 AS col1 FROM tab1
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2592
SELECT ALL - AVG ( ALL - col0 ) * ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - AVG ( ALL - col0 ) * ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT col1 + - - 36 FROM tab0
----
117
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT MIN( ALL + + col1 ) + COUNT( * ) col2 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2594
SELECT DISTINCT MIN ( ALL + + col1 ) + COUNT ( * ) col2 FROM tab2
----
54

query I rowsort
SELECT ALL col0 + - ( col2 ) AS col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT 88 + SUM( - col2 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT 88 + SUM ( - col2 ) FROM tab0
----
-68

query III rowsort
SELECT * FROM tab2 WHERE ( NULL > ( NULL ) )
----

query I rowsort
SELECT ALL - 1 * - ( - 34 ) AS col2 FROM tab0
----
-34
-34
-34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT + SUM( 96 ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + SUM ( 96 ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT DISTINCT 26 FROM tab1 WHERE NULL >= col2
----

query I rowsort
SELECT col1 + 10 * 41 AS col0 FROM tab0 WHERE NOT + 19 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + + MAX( + - 43 ) col2 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2604
SELECT + + MAX ( + - 43 ) col2 FROM tab0 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT - 42 * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2605
SELECT - 42 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2606
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2606
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - col1, - 70 AS col0 FROM tab2 AS cor0
----
-51
-70
-67
-70
-77
-70

query II rowsort
SELECT DISTINCT - + col0, - 25 AS col2 FROM tab0 AS cor0
----
-15
-25
-87
-25
-97
-25

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < + 87
----

query I rowsort
SELECT col1 + - - 16 * - 0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col2 col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL - MAX( - 38 ) * - MIN( DISTINCT - 13 ) FROM tab2
----
494

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - MAX ( - 38 ) * - MIN ( DISTINCT - 13 ) FROM tab2
----
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL + COUNT( ALL + + ( + CAST( + col0 AS SIGNED ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + COUNT ( ALL + + ( + CAST ( + col0 AS INTEGER ) ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2614
SELECT DISTINCT - 37 DIV + + CAST( + col1 AS SIGNED ) + - + 45 * + + 18 col0 FROM tab0
----
-810
-811
-847

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2614
SELECT DISTINCT - 37 / + + CAST ( + col1 AS INTEGER ) + - + 45 * + + 18 col0 FROM tab0
----
-810
-811
-847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2615
SELECT DISTINCT 8 / + - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT 8 / + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col0 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT - + 38 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1786
-3762
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT DISTINCT col2 DIV - - 85 + + col0 + + col2 + - + 60 col0 FROM tab1 cor0
----
84
88
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2619
SELECT DISTINCT col2 / - - 85 + + col0 + + col2 + - + 60 col0 FROM tab1 cor0
----
84
88
99

query I rowsort
SELECT ALL col1 + 52 AS col2 FROM tab1
----
57
66
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT - 10 + + - COUNT( * ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-2621
SELECT - 10 + + - COUNT ( * ) AS col2 FROM tab2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL col2 * + - col2 * + 31 * - col0 + - col0 DIV - - 4 + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
1027197
269766
29471680

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL col2 * + - col2 * + 31 * - col0 + - col0 / - - 4 + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
1027197
269766
29471680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + + col1 col2 FROM tab2 AS cor0
----
-2295
-4851
-4958

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 74 - col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 55 < col0
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 44 - 43 FROM tab0 cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2628
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - - 78 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - - 78 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT + CAST( col1 AS SIGNED ) + + + col1 - - + 64 AS col1 FROM tab1 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2629
SELECT + CAST ( col1 AS INTEGER ) + + + col1 - - + 64 AS col1 FROM tab1 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL 97 * + - MAX( ALL + 40 ) FROM tab1
----
-3880

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL 97 * + - MAX ( ALL + 40 ) FROM tab1
----
-3880

query II rowsort
SELECT - 1, + 26 FROM tab2 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT col0 * - 46 * + col0 FROM tab1
----
-119646
-332350
-380926

query I rowsort
SELECT ALL - 79 + - ( 99 ) + + - col0 FROM tab2
----
-224
-242
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT - ( - - MAX( + col1 ) ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2634
SELECT - ( - - MAX ( + col1 ) ) AS col2 FROM tab0
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <= + col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * + - col2 col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL - COUNT( * ) * - + 18 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - COUNT ( * ) * - + 18 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col1 ) col1 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT - + 55 FROM tab0 AS cor0 WHERE NOT col0 * + col2 IS NULL AND NOT ( - - col2 ) IS NULL
----
-55
-55
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 12 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2643
SELECT ALL - CAST( - col0 AS SIGNED ) * - - col2, - col0 col0 FROM tab2 AS cor0
----
1058
-46
2560
-64
4350
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2643
SELECT ALL - CAST ( - col0 AS INTEGER ) * - - col2, - col0 col0 FROM tab2 AS cor0
----
1058
-46
2560
-64
4350
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL - 17 * COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL - 17 * COUNT ( * ) FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, 80 col1 FROM tab0 cor0
----
15
80
87
80
97
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT DISTINCT - 34 DIV col1 AS col0 FROM tab0
----
-1
-34
0

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT - 34 / col1 AS col0 FROM tab0
----
-1
-34
0

query I rowsort
SELECT ALL 16 + - 11 FROM tab2
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT ALL + col0 DIV + + 81 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + col0 / + + 81 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE - 56 + col2 IN ( + + col0, ( - - 67 ), + 83 + + col2 * + col1, - + 35 )
----

query II rowsort
SELECT - 16 AS col2, - ( - + col1 ) FROM tab2
----
-16
51
-16
67
-16
77

query I rowsort
SELECT ALL ( 47 ) + - col0 AS col1 FROM tab0
----
-40
-50
32

query I rowsort
SELECT ALL 89 + + - col1 * + col1 FROM tab0
----
-352
-6472
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2654
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2654
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT + col0, - 80 + - 13 + - col2 FROM tab2 AS cor0
----
46
-116
64
-133
75
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT + MAX( ALL - + 1 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + MAX ( ALL - + 1 ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT DISTINCT 35 DIV - + COUNT( * ) AS col2 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT 35 / - + COUNT ( * ) AS col2 FROM tab1
----
-11

query I rowsort
SELECT DISTINCT + 23 + 88 * - col0 AS col1 FROM tab1
----
-4465
-7457
-7985

query I rowsort
SELECT ALL col0 * col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2660
SELECT ALL + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2661
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * - + col1 + - + col0 + - 50 + - CAST( NULL AS SIGNED ) * 32, col0 * + 85 + - - col2, + - col0 + + + CAST( NULL AS SIGNED ) * 64 * - 63 * + - 22, - - 65 + col1 )
----

skipif mysql # not compatible
query III rowsort label-2661
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * - + col1 + - + col0 + - 50 + - CAST ( NULL AS INTEGER ) * 32, col0 * + 85 + - - col2, + - col0 + + + CAST ( NULL AS INTEGER ) * 64 * - 63 * + - 22, - - 65 + col1 )
----

query I rowsort
SELECT DISTINCT - col0 - - 10 AS col0 FROM tab2 AS cor0
----
-36
-54
-65

query I rowsort
SELECT col0 - - - 87 AS col1 FROM tab1 AS cor0
----
-2
-36
4

query I rowsort
SELECT col2 - - 70 AS col2 FROM tab2 AS cor0
----
110
128
93

query I rowsort
SELECT DISTINCT - col2 - + 94 * - col2 AS col1 FROM tab0 AS cor0
----
4371
9207
930

onlyif mysql # DIV for integer division: 
query I rowsort label-2666
SELECT + 78 * - col2 + - + col1 + - col0 DIV - col0 AS col0 FROM tab1
----
-4606
-5350
-7501

skipif mysql # not compatible
query I rowsort label-2666
SELECT + 78 * - col2 + - + col1 + - col0 / - col0 AS col0 FROM tab1
----
-4606
-5350
-7501

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT ALL - 65 AS col1, COUNT( * ) FROM tab2
----
-65
3

skipif mysql # not compatible
query II rowsort label-2667
SELECT ALL - 65 AS col1, COUNT ( * ) FROM tab2
----
-65
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 72 * + 82 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 92 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 43 * - col0 > + 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2672
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / 36 IN ( 16 )
----

skipif mysql # not compatible
query III rowsort label-2672
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / 36 IN ( 16 )
----

query II rowsort
SELECT ALL - - col2, 54 AS col1 FROM tab1 cor0
----
59
54
68
54
96
54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2674
SELECT DISTINCT - 94 * + col2 - - - 51 AS col1, 14 * - CAST( NULL AS DECIMAL ) + + col1 FROM tab2 AS cor0
----
-2213
NULL
-3811
NULL
-5503
NULL

skipif mysql # not compatible
query II rowsort label-2674
SELECT DISTINCT - 94 * + col2 - - - 51 AS col1, 14 * - CAST ( NULL AS REAL ) + + col1 FROM tab2 AS cor0
----
-2213
NULL
-3811
NULL
-5503
NULL

query I rowsort
SELECT 49 * - ( - + ( + 43 ) ) AS col1 FROM tab2
----
2107
2107
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT - 22 + - + MIN( col0 ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - 22 + - + MIN ( col0 ) FROM tab0 AS cor0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2677
SELECT - - CAST( COUNT( * ) AS SIGNED ) DIV - - 31 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2677
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) / - - 31 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + MIN( ALL ( - 83 ) ) AS col2 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + MIN ( ALL ( - 83 ) ) AS col2 FROM tab2 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ( - COUNT( * ) ) * 99 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2679
SELECT ( - COUNT ( * ) ) * 99 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT col1 * - 80 + + col1 FROM tab2 AS cor0
----
-4029
-5293
-6083

onlyif mysql # DIV for integer division: 
query I rowsort label-2681
SELECT ALL - 47 DIV - 7 + - 43 + col0 FROM tab1
----
14
48
54

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - 47 / - 7 + - 43 + col0 FROM tab1
----
14
48
54

query I rowsort
SELECT col0 * + + 37 + + col0 FROM tab2
----
1748
2432
2850

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( col0 ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ( + - 92 ) FROM tab0 cor0
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL - + ( - COUNT( * ) ) - + - COUNT( * ) AS col0 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - + ( - COUNT ( * ) ) - + - COUNT ( * ) AS col0 FROM tab2 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2687
SELECT 66 * - CAST( NULL AS SIGNED ) / + - 70 + + col0, - 29 + - + 60 col1 FROM tab1
----
NULL
-89
NULL
-89
NULL
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2687
SELECT 66 * - CAST ( NULL AS INTEGER ) / + - 70 + + col0, - 29 + - + 60 col1 FROM tab1
----
NULL
-89
NULL
-89
NULL
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT DISTINCT - ( + 24 ) * + - col1 + CAST( - 44 AS SIGNED ) * - - col0 FROM tab1 AS cor0
----
-1908
-2876
-3620

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT - ( + 24 ) * + - col1 + CAST ( - 44 AS INTEGER ) * - - col0 FROM tab1 AS cor0
----
-1908
-2876
-3620

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + ( - col2 ) - + - col1 + 60
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2690
SELECT CAST( NULL AS DECIMAL ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT CAST ( NULL AS REAL ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT DISTINCT + col1 + CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + col1 + CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN + col2 AND 87 + - col2
----

query I rowsort
SELECT DISTINCT - col1 - + - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - col0 - + + 8 * + col1 * 84 * - - col2 FROM tab0 AS cor0
----
-141033
-2558289
-66431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT CAST( + + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2695
SELECT CAST ( + + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2696
SELECT ALL + CAST( + CAST( + - col0 AS SIGNED ) AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-2696
SELECT ALL + CAST ( + CAST ( + - col0 AS INTEGER ) AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT - ( + - 95 ) * ( - MAX( col2 ) ) AS col0 FROM tab2
----
-5510

skipif mysql # not compatible
query I rowsort label-2697
SELECT - ( + - 95 ) * ( - MAX ( col2 ) ) AS col0 FROM tab2
----
-5510

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 23 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * - + 89 col0 FROM tab2
----
-1513
-1513
-1513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2700
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2701
SELECT DISTINCT + MIN( + col0 ), 71 * - + 81 AS col0 FROM tab0 cor0
----
15
-5751

skipif mysql # not compatible
query II rowsort label-2701
SELECT DISTINCT + MIN ( + col0 ), 71 * - + 81 AS col0 FROM tab0 cor0
----
15
-5751

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 48
----

query I rowsort
SELECT DISTINCT col0 + - 23 AS col2 FROM tab0
----
-8
64
74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + 6 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 52 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
52
52
52

query I rowsort
SELECT ALL + 21 * + - 46 FROM tab2 AS cor0
----
-966
-966
-966

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT 24 * - 92 + + col1 AS col2 FROM tab1 AS cor0
----
-2161
-2194
-2203

query II rowsort
SELECT DISTINCT + col2, - col1 - - + col0 FROM tab0 AS cor0
----
10
66
47
-66
99
96

query I rowsort
SELECT DISTINCT + AVG ( col0 ) FROM tab1 cor0 WHERE NOT ( NULL ) <> col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT + 89 DIV - + ( + - 81 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2712
SELECT + 89 / - + ( + - 81 ) FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2713
SELECT DISTINCT + CAST( + SUM( DISTINCT + CAST( + - col2 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + CAST ( + SUM ( DISTINCT + CAST ( + - col2 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT 15 * - SUM( col0 ) * - COUNT( * ) AS col2 FROM tab2
----
8325

skipif mysql # not compatible
query I rowsort label-2714
SELECT 15 * - SUM ( col0 ) * - COUNT ( * ) AS col2 FROM tab2
----
8325

query III rowsort
SELECT * FROM tab1 WHERE 94 - + - col0 * - + col1 >= + ( + - 67 )
----

query III rowsort
SELECT * FROM tab0 WHERE 64 < + ( col2 ) * + 1
----
97
1
99

query I rowsort
SELECT - 23 + - 68 + - - ( 96 ) AS col1 FROM tab2
----
5
5
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - 89 ) IS NULL
----

query I rowsort
SELECT 72 * + col1 + + col2 AS col2 FROM tab0 AS cor0
----
1522
171
5879

query I rowsort
SELECT 17 * - + 92 AS col0 FROM tab1 cor0
----
-1564
-1564
-1564

query I rowsort
SELECT ( + 65 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - 62 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2724
SELECT COUNT( * ) DIV 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT COUNT ( * ) / 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT + 59 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE + ( - - col2 ) + 44 / col2 * - + col2 IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT ALL - - col0 DIV + col1 col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2728
SELECT ALL - - col0 / + col1 col1 FROM tab0 AS cor0
----
0
4
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 21 AS col1, col1 col2 FROM tab1 AS cor0 WHERE NOT - 33 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT DISTINCT 80 DIV - 54 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT 80 / - 54 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT + COUNT( * ) DIV - 46 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT + COUNT ( * ) / - 46 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 51 * + col0 AS col2 FROM tab0 AS cor0
----
4437
4947
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL - MAX( + 11 ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - MAX ( + 11 ) FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL MAX( + - 51 ) AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL MAX ( + - 51 ) AS col0 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT col0 * - 42 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-3654
-4074
-630

query II rowsort
SELECT 30, col2 FROM tab0 AS cor0
----
30
10
30
47
30
99

query I rowsort
SELECT DISTINCT - 50 * - 41 AS col1 FROM tab2
----
2050

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( 50 ) >= - + col1 * 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 23 * col2 FROM tab0
----
1081
2277
230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab2
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2741
SELECT DISTINCT 29 AS col1, + CAST( - - col1 AS SIGNED ) AS col0 FROM tab2
----
29
51
29
67
29
77

skipif mysql # not compatible
query II rowsort label-2741
SELECT DISTINCT 29 AS col1, + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2
----
29
51
29
67
29
77

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col0 AND - col0 / - - 90
----

query II rowsort
SELECT ALL - ( col2 ) AS col0, col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2744
SELECT DISTINCT + COUNT( * ) AS col0, - COUNT( col0 ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-2744
SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( col0 ) FROM tab2
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT - col2 DIV + col2 + + - col1 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-2745
SELECT - col2 / + col2 + + - col1 FROM tab1 AS cor0
----
-15
-48
-6

query II rowsort
SELECT col0 AS col2, 70 AS col1 FROM tab0 AS cor0
----
15
70
87
70
97
70

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - SUM( + 46 ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-2748
SELECT - SUM ( + 46 ) FROM tab0 AS cor0
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2749
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - col1 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2749
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - col1 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col1 * 34 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2751
SELECT ALL CAST( NULL AS DECIMAL ) + + col1 * - - CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL CAST ( NULL AS REAL ) + + col1 * - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 72 * + col0 * - col0 FROM tab1 AS cor0
----
187272
520200
596232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL + - CAST( MIN( DISTINCT col0 ) AS SIGNED ) * - + 65 - - - SUM( - - col1 ) + - 15 FROM tab2 AS cor0
----
2780

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + - CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) * - + 65 - - - SUM ( - - col1 ) + - 15 FROM tab2 AS cor0
----
2780

onlyif mysql # DIV for integer division: 
query II rowsort label-2754
SELECT - col2 DIV - + col0 + - - 31 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
31
59
31
68
32
96

skipif mysql # not compatible
query II rowsort label-2754
SELECT - col2 / - + col0 + - - 31 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
31
59
31
68
32
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT - + col0 DIV col0 + ( col2 ) FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-2756
SELECT - + col0 / col0 + ( col2 ) FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab1 AS cor0 WHERE NOT col0 = - col1
----
75

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE ( NOT + 31 IS NOT NULL ) OR NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT + 40 DIV - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT + 40 / - col2 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - ( - col0 ) col2 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + col0 + + + col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - - COUNT( DISTINCT + 49 ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2762
SELECT - - COUNT ( DISTINCT + 49 ) AS col0 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT - - COUNT( ALL 97 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2763
SELECT - - COUNT ( ALL 97 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 * + col2 - - + 84 AS col1 FROM tab2 cor0
----
1142
2644
4434

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT 64 - MIN( DISTINCT col1 - + 68 ) FROM tab0
----
131

skipif mysql # not compatible
query I rowsort label-2766
SELECT 64 - MIN ( DISTINCT col1 - + 68 ) FROM tab0
----
131

query I rowsort
SELECT 33 * 91 FROM tab0
----
3003
3003
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT 71 * COUNT( DISTINCT col0 ) FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-2768
SELECT 71 * COUNT ( DISTINCT col0 ) FROM tab1
----
213

query I rowsort
SELECT ALL - col2 * + 2 + + col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL - MIN( DISTINCT col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - MIN ( DISTINCT col0 ) FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN ( col0 / + col2 ) AND col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 38 FROM tab2 WHERE + col1 * - col0 IS NOT NULL
----
38

query I rowsort
SELECT ALL - col1 * col1 FROM tab1 WHERE 86 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 39 NOT BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= col1 + + 14
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * 96 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT 43 + - MIN( - col1 ) col2 FROM tab1
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2778
SELECT DISTINCT 43 + - MIN ( - col1 ) col2 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT + 32 + ( COUNT( * ) ) AS col0 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 32 + ( COUNT ( * ) ) AS col0 FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT ALL col0 + 10 * 80 AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) > - col1
----

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL col0 + 10 * 80 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2781
SELECT + MIN( DISTINCT CAST( + col0 AS SIGNED ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2781
SELECT + MIN ( DISTINCT CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab0
----
15

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE 46 * col2 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT + 63 DIV - col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2783
SELECT + 63 / - col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - ( 14 ) FROM tab1 AS cor0
----
-14
-14
-14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 34 / + 78 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 7 + col0 * col1 > NULL
----

query I rowsort
SELECT + col2 + + col0 * - col0 FROM tab2
----
-2093
-4056
-5567

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 93 * col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL + 17 * COUNT( * ) AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL + 17 * COUNT ( * ) AS col2 FROM tab0
----
51

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT 60 * col1 FROM tab0 WHERE NOT + col0 / - col1 IS NULL
----
1260
4860
60

query I rowsort
SELECT - 6 AS col0 FROM tab1 AS cor0 WHERE NULL <> ( 90 )
----

query I rowsort
SELECT DISTINCT - - 1 * col2 + - 71 AS col0 FROM tab2 AS cor0
----
-13
-31
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT - + 58 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2794
SELECT - + 58 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-174

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 1 AND + 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col2 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT - 10 - - 21 AS col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT col0 * + col2 - + col2 AS col0 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT ( col2 ) - col0 AS col0 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab0 WHERE 31 * - col2 BETWEEN NULL AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2801
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 + CAST( NULL AS SIGNED ) ) AND + col1 / col2
----

skipif mysql # not compatible
query III rowsort label-2801
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 + CAST ( NULL AS INTEGER ) ) AND + col1 / col2
----

query I rowsort
SELECT ALL 30 + - + col1 - 78 * + col0 * - col2 AS col1 FROM tab1
----
381904
391195
482647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT 89 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT 89 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 7 + 34 FROM tab1
----
41
41
41

query III rowsort
SELECT * FROM tab1 WHERE 66 + col0 IS NULL
----

query I rowsort
SELECT 71 FROM tab1 WHERE ( col1 * + 57 ) IS NULL
----

query I rowsort
SELECT AVG ( + ( - col2 ) ) + + AVG ( DISTINCT col1 ) AS col1 FROM tab0 WHERE ( col1 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 < col0
----

query I rowsort
SELECT ALL 3 + - - col0 * col0 FROM tab2
----
2119
4099
5628

query I rowsort
SELECT col1 + - col2 + 72 AS col0 FROM tab1 AS cor0
----
-10
18
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 12 + + col2 * - ( + col2 ) < ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + - ( + col1 ) - - 84 * 49 FROM tab2 AS cor0
----
4079
4088
4107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2813
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST( col2 AS SIGNED ) + - col2 >= col2 + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2813
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST ( col2 AS INTEGER ) + - col2 >= col2 + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2814
SELECT ALL - COUNT( * ) - + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 80 * + col0 - col2 FROM tab1 AS cor0
----
-4176
-6859
-7348

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL - COUNT( ALL + - 84 ) * MAX( 95 * + 4 ) FROM tab1 AS cor0
----
-1140

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - COUNT ( ALL + - 84 ) * MAX ( 95 * + 4 ) FROM tab1 AS cor0
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( col1 ) + - col2 IN ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2817
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( col1 ) + - col2 IN ( + col2 )
----
3

query I rowsort
SELECT - 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 * + col0 AND NULL
----

query I rowsort
SELECT ALL + 18 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL - COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col0 col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2823
SELECT col1 DIV col2 + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2823
SELECT col1 / col2 + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT + CAST( - - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2824
SELECT + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT - + COUNT( DISTINCT col1 ) DIV + COUNT( * ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2825
SELECT - + COUNT ( DISTINCT col1 ) / + COUNT ( * ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL SUM( DISTINCT 68 ) AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL SUM ( DISTINCT 68 ) AS col2 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2827
SELECT ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 22 + - 66 - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 60 ) IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2830
SELECT ALL col1 DIV 6, - 39 AS col1 FROM tab0
----
0
-39
13
-39
3
-39

skipif mysql # not compatible
query II rowsort label-2830
SELECT ALL col1 / 6, - 39 AS col1 FROM tab0
----
0
-39
13
-39
3
-39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + + + ( 90 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + 22 - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + MAX( ALL - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2833
SELECT + MAX ( ALL - col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2834
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2835
SELECT ( + + 80 ) * - + CAST( NULL AS DECIMAL ) + 29 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT ( + + 80 ) * - + CAST ( NULL AS REAL ) + 29 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2836
SELECT - + col0 DIV + 63 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT - + col0 / + 63 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + col2 + + col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT DISTINCT 24 + - + 31 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1216
-1774
-689

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT 24 + - + 31 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1216
-1774
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT - 9 + + COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2840
SELECT - 9 + + COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT DISTINCT - ( - 59 ) - - col0 FROM tab0 AS cor0
----
146
156
74

query I rowsort
SELECT ALL ( + col0 ) - - - col0 * + col0 FROM tab2 cor0
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - MIN( + col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - MIN ( + col0 ) FROM tab1 cor0
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 55 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col0, 88 FROM tab0
----
10
88
47
88
99
88

query I rowsort
SELECT ALL col2 + - + col2 * 80 FROM tab1
----
-4661
-5372
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 + - 27 - - + col2 FROM tab1
----
-14
83
-47
88
-5
37

query I rowsort
SELECT - 57 AS col0 FROM tab2 WHERE NULL >= + col0 * - - col0
----

query I rowsort
SELECT ALL - - 25 AS col2 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT - MAX( DISTINCT col2 ) AS col2, + ( 94 ) FROM tab0
----
-99
94

skipif mysql # not compatible
query II rowsort label-2851
SELECT - MAX ( DISTINCT col2 ) AS col2, + ( 94 ) FROM tab0
----
-99
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - + col0 * + - col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT - col2 = ( col0 + - + ( col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-2853
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col2 = ( col0 + - + ( col1 ) )
----
3

query I rowsort
SELECT ALL - + col2 * - 89 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT + COUNT( * ) * - COUNT( * ) FROM tab2 cor0 WHERE NOT ( NOT NULL NOT IN ( 52 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NOT NULL NOT IN ( 52 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT + COUNT( * ) * - 38 * - + 86 FROM tab0
----
9804

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT + COUNT ( * ) * - 38 * - + 86 FROM tab0
----
9804

onlyif mysql # aggregate syntax: 
query II rowsort label-2857
SELECT DISTINCT + 24, - COUNT( * ) AS col2 FROM tab1
----
24
-3

skipif mysql # not compatible
query II rowsort label-2857
SELECT DISTINCT + 24, - COUNT ( * ) AS col2 FROM tab1
----
24
-3

query II rowsort
SELECT + col2 AS col2, + ( + 98 ) AS col1 FROM tab2
----
23
98
40
98
58
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT ALL 54 AS col0, - COUNT( * ) FROM tab1
----
54
-3

skipif mysql # not compatible
query II rowsort label-2859
SELECT ALL 54 AS col0, - COUNT ( * ) FROM tab1
----
54
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT + COUNT( + col1 ) AS col2 FROM tab0 WHERE + 87 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT + COUNT ( + col1 ) AS col2 FROM tab0 WHERE + 87 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - 9 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2862
SELECT DISTINCT 32 DIV + - COUNT( * ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT 32 / + - COUNT ( * ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT + - 20 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT + - 20 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
60

query I rowsort
SELECT ALL + 25 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT - col2 * 42 + - col0 AS col1 FROM tab0
----
-1989
-4255
-507

query I rowsort
SELECT ALL + + 64 * + 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fd42f60b5d4bc99fa8238dfb7380922f

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT DISTINCT SUM( col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT MIN( DISTINCT + 49 ) AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2868
SELECT MIN ( DISTINCT + 49 ) AS col2 FROM tab0 AS cor0
----
49

query I rowsort
SELECT DISTINCT + + col2 * - + col2 - - - 68 AS col0 FROM tab0 AS cor0
----
-168
-2277
-9869

query II rowsort
SELECT col1 - 0 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - + 18 - + col1 FROM tab2 AS cor0
----
-69
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT - 24 * - - MAX( + col1 ) - + ( 77 ) AS col2 FROM tab2 AS cor0
----
-1925

skipif mysql # not compatible
query I rowsort label-2872
SELECT - 24 * - - MAX ( + col1 ) - + ( 77 ) AS col2 FROM tab2 AS cor0
----
-1925

query I rowsort
SELECT DISTINCT + - col0 + col2 FROM tab1 AS cor0 WHERE NOT NULL < - col1
----

query I rowsort
SELECT + - col0 - - col2 + col0 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - + + ( - - 93 ) * col1 col1 FROM tab2 AS cor0
----
-4789
-6306
-7225

query I rowsort
SELECT col1 + - col0 + 52 FROM tab2
----
44
57
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT COUNT( * ) + + 35 AS col1 FROM tab1 WHERE NOT + 75 IN ( - col1 * - col0 * 80 ) AND NULL BETWEEN - - col0 * col0 AND ( NULL )
----
35

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT COUNT ( * ) + + 35 AS col1 FROM tab1 WHERE NOT + 75 IN ( - col1 * - col0 * 80 ) AND NULL BETWEEN - - col0 * col0 AND ( NULL )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL CAST( + 26 AS SIGNED ) FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL CAST ( + 26 AS INTEGER ) FROM tab1
----
26
26
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT - + COUNT( * ) + ( - - 25 ) * CAST( - ( 14 ) AS SIGNED ) FROM tab0 WHERE NOT col2 > NULL
----
-350

skipif mysql # not compatible
query I rowsort label-2879
SELECT - + COUNT ( * ) + ( - - 25 ) * CAST ( - ( 14 ) AS INTEGER ) FROM tab0 WHERE NOT col2 > NULL
----
-350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab1 AS cor0 WHERE NOT ( 84 + - - 70 ) IN ( col0 / - + col1, col2 )
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2881
SELECT + 4 DIV + - col0 + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2881
SELECT + 4 / + - col0 + col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 17 NOT IN ( - - 56 )
----

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col2 * 46 * + + col1 AS col1 FROM tab2 AS cor0
----
-141680
-178756
-53958

query II rowsort
SELECT 80, 11 AS col2 FROM tab2 AS cor0
----
80
11
80
11
80
11

query I rowsort
SELECT - 63 * 47 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2961
-2961
-2961

query I rowsort
SELECT + ( - col2 ) + col1 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT 37 + - - COUNT( * ), MIN( DISTINCT col2 ) AS col2 FROM tab2
----
40
23

skipif mysql # not compatible
query II rowsort label-2888
SELECT 37 + - - COUNT ( * ), MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
40
23

query I rowsort
SELECT ALL - 57 * col2 * col2 * + col2 + - col0 * - col2 + + - col0 - - - 44 FROM tab1
----
-11701717
-17916571
-50425151

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT COUNT( + - 81 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2890
SELECT COUNT ( + - 81 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2892
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2, 96 * - ( - col0 ) AS col1 FROM tab2 cor0
----
23
4416
40
6144
58
7200

skipif mysql # not compatible
query II rowsort label-2892
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2, 96 * - ( - col0 ) AS col1 FROM tab2 cor0
----
23
4416
40
6144
58
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL 1 + COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL 1 + COUNT ( * ) AS col1 FROM tab2
----
4

query I rowsort
SELECT - 20 + - + col0 * col1 + + - 34 FROM tab2
----
-2400
-4982
-5079

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT - - ( - 32 ) * - 7 + + ( + col2 ) FROM tab0 AS cor0
----
234
271
323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col0 * ( - 9 ) col1 FROM tab0 AS cor0
----
-54
-762
-872

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT ALL + + col2 DIV - col1 - - 17 FROM tab2 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + + col2 / - col1 - - 17 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT - + 90 + + + col2 AS col0 FROM tab2 AS cor0
----
-32
-50
-67

query I rowsort
SELECT DISTINCT - col0 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
-18
-27
-66

query I rowsort
SELECT DISTINCT 54 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( col1 ) - + col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT ALL col1 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL col1 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT - SUM( ALL + - col2 ) * 56 AS col2 FROM tab2
----
6776

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - SUM ( ALL + - col2 ) * 56 AS col2 FROM tab2
----
6776

query I rowsort
SELECT ( - - ( + col0 ) ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT 20 * + col2 AS col2 FROM tab1
----
1180
1360
1920

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT DISTINCT col2 DIV + 14 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT col2 / + 14 FROM tab0
----
0
3
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2908
SELECT + 86 DIV 68 AS col0, - col0 * + 72 FROM tab2
----
1
-3312
1
-4608
1
-5400

skipif mysql # not compatible
query II rowsort label-2908
SELECT + 86 / 68 AS col0, - col0 * + 72 FROM tab2
----
1
-3312
1
-4608
1
-5400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2909
SELECT DISTINCT + COUNT( * ) DIV + 29 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2909
SELECT DISTINCT + COUNT ( * ) / + 29 col2 FROM tab0
----
0

query I rowsort
SELECT ( - - 21 ) FROM tab2
----
21
21
21

query I rowsort
SELECT + 23 * - col1 - - col1 FROM tab0 AS cor0
----
-1782
-22
-462

query II rowsort
SELECT col2 AS col0, 63 AS col1 FROM tab2
----
23
63
40
63
58
63

query I rowsort
SELECT 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT - MIN( DISTINCT - 87 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-2914
SELECT - MIN ( DISTINCT - 87 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT SUM( DISTINCT col1 ) DIV + + SUM( - col1 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2915
SELECT SUM ( DISTINCT col1 ) / + + SUM ( - col1 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT - + col1 * - 38 * + col0 FROM tab0 AS cor0
----
3686
46170
69426

query I rowsort
SELECT ( + + ( + - col1 ) ) FROM tab1
----
-14
-47
-5

query II rowsort
SELECT DISTINCT col0 AS col2, ( - col1 ) - - 79 AS col1 FROM tab1
----
51
65
85
74
91
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT COUNT( DISTINCT + - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2919
SELECT COUNT ( DISTINCT + - col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col0 + + + col2 * col0 AS col0 FROM tab0
----
720
957
9700

query II rowsort
SELECT DISTINCT + 63 AS col1, col2 AS col0 FROM tab2 AS cor0
----
63
23
63
40
63
58

query I rowsort
SELECT DISTINCT + col2 + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 + + col2 col1 FROM tab0 AS cor0
----
100
152
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 80 IS NOT NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > NULL AND col0 IS NOT NULL
----

query I rowsort
SELECT ALL 46 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT + - MAX( ( col2 ) ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2927
SELECT DISTINCT + - MAX ( ( col2 ) ) col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT + - SUM( + + 91 ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2928
SELECT + - SUM ( + + 91 ) FROM tab0 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL - ( - - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL - ( - - COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL + col2 * - 63 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT DISTINCT 84 * - col2 FROM tab0
----
-3948
-8316
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT ALL 29 DIV - 32 * + + col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL 29 / - 32 * + + col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT ( 37 ) DIV 38 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT ( 37 ) / 38 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT - ( - - MIN( DISTINCT - col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2934
SELECT - ( - - MIN ( DISTINCT - col2 ) ) FROM tab2
----
58

query I rowsort
SELECT ( - + 42 ) * + 33 + + 21 + + col1 * col0 FROM tab1
----
-651
-940
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT - MIN( + - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2936
SELECT - MIN ( + - col2 ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 16 AND - - ( + + ( + 16 ) ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL + COUNT( ALL + - 36 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + COUNT ( ALL + - 36 ) FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2939
SELECT DISTINCT * FROM tab2 WHERE col1 + - + col1 BETWEEN + CAST( + 77 AS DECIMAL ) * col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2939
SELECT DISTINCT * FROM tab2 WHERE col1 + - + col1 BETWEEN + CAST ( + 77 AS REAL ) * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT + COUNT( * ) * + ( + 45 ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT + COUNT ( * ) * + ( + 45 ) FROM tab1
----
135

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 * + - 49 * - col2 = NULL
----

query I rowsort
SELECT DISTINCT 38 + + + ( - - col2 ) FROM tab1 AS cor0
----
106
134
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= col2 + - - col1
----

query I rowsort
SELECT ALL + - 56 FROM tab2 AS cor0 WHERE NOT 69 + col2 IS NULL
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL - 5 * - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - 5 * - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
18

query I rowsort
SELECT + col2 * + 82 + + - col0 * - + col2 AS col1 FROM tab2 AS cor0
----
2944
5840
9106

query I rowsort
SELECT - 31 + + 83 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT ALL 99 * 93 FROM tab2 AS cor0
----
9207
9207
9207

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT ALL - col1 DIV + col2 + - col0 + - 24 FROM tab0 AS cor0
----
-113
-121
-40

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - col1 / + col2 + - col0 + - 24 FROM tab0 AS cor0
----
-113
-121
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT MIN( ALL - - 70 ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT MIN ( ALL - - 70 ) AS col1 FROM tab0
----
70

query I rowsort
SELECT ALL ( - - col1 ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2952
SELECT DISTINCT * FROM tab1 WHERE CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2952
SELECT DISTINCT * FROM tab1 WHERE CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * + ( 52 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT COUNT( * ) * + - MIN( ALL - col1 ) AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2954
SELECT COUNT ( * ) * + - MIN ( ALL - col1 ) AS col2 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-2955
SELECT + ( - + SUM( + col1 ) ) AS col0, - COUNT( * ) - 67 FROM tab1
----
-66
-70

skipif mysql # not compatible
query II rowsort label-2955
SELECT + ( - + SUM ( + col1 ) ) AS col0, - COUNT ( * ) - 67 FROM tab1
----
-66
-70

query III rowsort
SELECT * FROM tab0 WHERE + + ( - col1 ) - - - 54 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + - ( + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL 52 * - COUNT( * ) * - COUNT( * ) + - 28 AS col0 FROM tab2
----
440

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL 52 * - COUNT ( * ) * - COUNT ( * ) + - 28 AS col0 FROM tab2
----
440

query II rowsort
SELECT ALL - col1 + - col0 * + col0 AS col0, 34 AS col0 FROM tab2 AS cor0
----
-2167
34
-4173
34
-5692
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT + 33 DIV + - COUNT( * ) + 18 AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2960
SELECT + 33 / + - COUNT ( * ) + 18 AS col2 FROM tab0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 8, 54 col1 FROM tab2 AS cor0
----
8
54

query II rowsort
SELECT - 38 AS col1, ( + + 51 ) AS col2 FROM tab1 AS cor0
----
-38
51
-38
51
-38
51

query II rowsort
SELECT ALL - 8 AS col0, + col2 FROM tab1 cor0
----
-8
59
-8
68
-8
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL + MAX( + 83 ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + MAX ( + 83 ) FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT - - COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - - COUNT ( + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2967
SELECT ALL COUNT( DISTINCT + - 29 ), - COUNT( * ) AS col1 FROM tab1
----
1
-3

skipif mysql # not compatible
query II rowsort label-2967
SELECT ALL COUNT ( DISTINCT + - 29 ), - COUNT ( * ) AS col1 FROM tab1
----
1
-3

query I rowsort
SELECT + ( - + 89 ) AS col0 FROM tab2
----
-89
-89
-89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 81 AND NULL
----

query II rowsort
SELECT col1 * + col1, + col2 FROM tab2
----
2601
23
4489
58
5929
40

query I rowsort
SELECT + 47 * col2 * + + 68 FROM tab2
----
127840
185368
73508

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab2 WHERE NOT 72 IS NULL
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2973
SELECT * FROM tab2 WHERE NOT - + CAST( + 41 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2973
SELECT * FROM tab2 WHERE NOT - + CAST ( + 41 AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT DISTINCT - - 54 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - - 54 / + + col0 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL - + CAST( NULL AS SIGNED ) * + COUNT( ALL col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - + CAST ( NULL AS INTEGER ) * + COUNT ( ALL col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + + col0 * + + 29 - + col2 FROM tab0
----
2534
2715
469

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT 96 + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2977
SELECT 96 + COUNT ( * ) FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2978
SELECT - 53 DIV - 61 + - - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2978
SELECT - 53 / - 61 + - - COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT - + 32 + CAST( + + COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 WHERE NOT - 28 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT - + 32 + CAST ( + + COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 WHERE NOT - 28 IS NULL
----
NULL

query I rowsort
SELECT col1 * - col1 + - - col0 * col0 FROM tab2
----
-1833
-485
1136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2981
SELECT - - col1 * + col2 / + 33 + + + CAST( ( - - col1 ) AS SIGNED ), - col1 FROM tab0 cor0 WHERE col2 BETWEEN - 31 AND NULL
----

skipif mysql # not compatible
query II rowsort label-2981
SELECT - - col1 * + col2 / + 33 + + + CAST ( ( - - col1 ) AS INTEGER ), - col1 FROM tab0 cor0 WHERE col2 BETWEEN - 31 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2982
SELECT ALL - col0 + 35 DIV - col0 - + col1 * + CAST( ( + + col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1219
-3144
-3961

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - col0 + 35 / - col0 - + col1 * + CAST ( ( + + col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL + COUNT( * ) * - + 64 col1 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT ALL + COUNT ( * ) * - + 64 col1 FROM tab1 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2984
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 39 / + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2984
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 39 / + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2985
SELECT DISTINCT - + col2 + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + col1 AS col0 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2985
SELECT DISTINCT - + col2 + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + col1 AS col0 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT DISTINCT col0 * 21 FROM tab0 AS cor0
----
1827
2037
315

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT + - col2 DIV + col2 + + col1 AS col1 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-2987
SELECT + - col2 / + col2 + + col1 AS col1 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2988
SELECT ALL * FROM tab0 AS cor0 WHERE + 72 * + + 66 * - col1 / CAST( NULL AS SIGNED ) / 33 - - 21 + - col1 * + - 10 * + col2 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2988
SELECT ALL * FROM tab0 AS cor0 WHERE + 72 * + + 66 * - col1 / CAST ( NULL AS INTEGER ) / 33 - - 21 + - col1 * + - 10 * + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 84 AS col1 FROM tab0 WHERE NOT NULL <> - 7
----

query I rowsort
SELECT ALL + 48 + col1 - + 43 AS col1 FROM tab0
----
26
6
86

query I rowsort
SELECT ALL - ( + - 74 ) + + col1 AS col2 FROM tab2
----
125
141
151

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT ALL + 1 * + col2 - + ( - col2 ) DIV + col1 AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + 1 * + col2 - + ( - col2 ) / + col1 AS col0 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT 24 + + - 61 - + col1 - 22 FROM tab2 AS cor0
----
-110
-126
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ( - + COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2995
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT MIN( + - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT MIN ( + - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL + - 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query II rowsort
SELECT 82, + 91 AS col0 FROM tab1
----
82
91
82
91
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT - 1 BETWEEN + + col0 - + 91 + - ( - col0 ) * col1 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT - 1 BETWEEN + + col0 - + 91 + - ( - col0 ) * col1 AND NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + SUM( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + SUM ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ( + + 27 ) FROM tab1 AS cor0
----
27
27
27

query II rowsort
SELECT DISTINCT + col2, - col0 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + 51 - + col1 NOT IN ( col1, col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + 51 - + col1 NOT IN ( col1, col1 )
----
-3

query II rowsort
SELECT DISTINCT col1, - 62 FROM tab2
----
51
-62
67
-62
77
-62

query II rowsort
SELECT DISTINCT + col1, - col1 * + 40 * + - ( - col2 ) AS col0 FROM tab0
----
1
-3960
21
-8400
81
-152280

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + - 61 * + MAX( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-3538

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + - 61 * + MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-3538

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT ALL - + ( col2 ) DIV + 65 - - col2 AS col1 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - + ( col2 ) / + 65 - - col2 AS col1 FROM tab0 AS cor0
----
10
47
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT DISTINCT + col0 * + ( col0 ) + - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT + col0 * + ( col0 ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 23 AS col2 FROM tab1 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

query II rowsort
SELECT + col1 * - + col0, col2 * + col1 AS col1 FROM tab0
----
-1215
3807
-1827
210
-97
99

query I rowsort
SELECT - 96 + col1 AS col0 FROM tab0
----
-15
-75
-95

query I rowsort
SELECT col2 + + + col2 * - 52 AS col2 FROM tab0 AS cor0
----
-2397
-5049
-510

query I rowsort
SELECT + col0 + + 7 FROM tab1 AS cor0
----
58
92
98

query I rowsort
SELECT - ( + col2 ) + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE ( col0 ) IN ( + col1 * + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3018
SELECT 7 + + col2 + - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3018
SELECT 7 + + col2 + - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 23 - col1 AS col2 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL + + ( - COUNT( ALL - 33 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL + + ( - COUNT ( ALL - 33 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT DISTINCT col1 - + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT col1 - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT MAX( ALL + - 49 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-3022
SELECT MAX ( ALL + - 49 ) FROM tab2
----
-49

query I rowsort
SELECT DISTINCT + ( + 36 ) * + + 2 * col0 AS col1 FROM tab0
----
1080
6264
6984

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col0 * - col2 / 11 * + - col0 * 36 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT SUM( ALL - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3025
SELECT SUM ( ALL - + col0 ) FROM tab1
----
-227

query I rowsort
SELECT + 94 - + - col2 AS col0 FROM tab2
----
117
134
152

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( - + 35 ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 14 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 14 IS NULL
----
-3

query I rowsort
SELECT + col1 - - 19 FROM tab0 AS cor0
----
100
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL 13 * + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
117

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL 13 * + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
117

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - + col1 + - col1 / + + col1 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT 46 DIV + 63 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT 46 / + 63 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 86 * col2 AS col2 FROM tab0
----
4042
8514
860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3035
SELECT + 34 DIV + - CAST( MIN( ALL - - col0 ) AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT + 34 / + - CAST ( MIN ( ALL - - col0 ) AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT - + 92 - + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IN ( + 29, - col1, - + 98 + + 85 )
----
-24
-33
4

query I rowsort
SELECT ALL + ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT - - COUNT( col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3038
SELECT - - COUNT ( col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT COUNT( ALL - - 92 ) AS col1 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3039
SELECT COUNT ( ALL - - 92 ) AS col1 FROM tab1, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, - 45 col2 FROM tab0
----
15
-45
87
-45
97
-45

query I rowsort
SELECT DISTINCT col0 + + 23 AS col0 FROM tab2
----
69
87
98

query I rowsort
SELECT ALL - ( - 61 ) FROM tab0
----
61
61
61

query I rowsort
SELECT + col0 + col2 AS col1 FROM tab2 WHERE NOT 90 + + - 12 >= - 91 / col0 - + 50 / 52
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 >= + - 17 / + col2
----

query I rowsort
SELECT ALL - 59 + - col2 FROM tab1
----
-118
-127
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 + + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3046
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 + + - col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL 12 AS col1 FROM tab0 cor0
----
12
12
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3048
SELECT + ( - - CAST( NULL AS DECIMAL ) ) + - - 64 * - + col2 + - - 20 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT + ( - - CAST ( NULL AS REAL ) ) + - - 64 * - + col2 + - - 20 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 77 AS col0 FROM tab0
----
124
176
87

query I rowsort
SELECT DISTINCT + col0 + + ( - + 90 ) FROM tab0
----
-3
-75
7

query I rowsort
SELECT 67 + - col2 FROM tab0 WHERE NULL NOT BETWEEN + 39 AND col1
----

query II rowsort
SELECT ALL 58 AS col1, - 70 * col0 FROM tab2 AS cor0
----
58
-3220
58
-4480
58
-5250

query I rowsort
SELECT DISTINCT + col1 - + 2 * - col0 AS col0 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT + 64 * - ( SUM( col2 ) ) AS col1 FROM tab1 AS cor0
----
-14272

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT + 64 * - ( SUM ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-14272

query I rowsort
SELECT + col0 * - 46 - + - col1 FROM tab0 cor0
----
-3981
-4461
-609

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL + - ( - 45 ) * COUNT( * ) * + MAX( DISTINCT - col0 ) + 6 - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + - ( - 45 ) * COUNT ( * ) * + MAX ( DISTINCT - col0 ) + 6 - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 < col1
----
NULL

query I rowsort
SELECT - col1 * ( + col2 ) - + col0 AS col1 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT col1 * + col0 + - 30 FROM tab1 WHERE 89 BETWEEN + - col2 AND + + col1 + + col0
----
395
4247

query I rowsort
SELECT DISTINCT + 53 * 20 AS col0 FROM tab2
----
1060

query I rowsort
SELECT ALL - col0 * - 58 AS col1 FROM tab1
----
2958
4930
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT ALL 24 - col2 AS col2, 66 + col1 * CAST( NULL AS SIGNED ) + - 29 FROM tab2
----
-16
NULL
-34
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL 24 - col2 AS col2, 66 + col1 * CAST ( NULL AS INTEGER ) + - 29 FROM tab2
----
-16
NULL
-34
NULL
1
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 AS col1, - 84 AS col2 FROM tab0
----
1
-84
21
-84
81
-84

query I rowsort
SELECT DISTINCT + col0 - + col2 - - col0 AS col2 FROM tab0 cor0 WHERE NOT + 22 * col0 * - + col2 * col1 = col2
----
-17
164
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3067
SELECT col1 * col2 DIV + - col1 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3067
SELECT col1 * col2 / + - col1 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 * + col1 * - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR - + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT - 53 DIV + col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3069
SELECT - 53 / + col2 FROM tab0 AS cor0
----
-1
-5
0

query II rowsort
SELECT DISTINCT - col0, + 85 * + - col0 * + + 32 AS col1 FROM tab1 AS cor0
----
-51
-138720
-85
-231200
-91
-247520

query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 + col2 AS col0 FROM tab1 AS cor0
----
51
45
85
-26
91
-23

query I rowsort
SELECT ALL + 96 * + + col2 + 60 * - 59 FROM tab0 AS cor0
----
-2580
5964
972

query I rowsort
SELECT - 17 + col1 FROM tab0
----
-16
4
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT COUNT( + col1 ) * 5 AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3074
SELECT COUNT ( + col1 ) * 5 AS col2 FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT - col2 DIV - col0 * + - 7 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT - col2 / - col0 * + - 7 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT COUNT( DISTINCT + - 58 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT COUNT ( DISTINCT + - 58 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT ( - MAX( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT ( - MAX ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * + - col0 * col1 NOT BETWEEN col1 AND - col2 + + col0 + - col2 * - - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL - 14 + COUNT( * ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - 14 + COUNT ( * ) FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT + ( + + 84 ) + - + COUNT( - + col1 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT + ( + + 84 ) + - + COUNT ( - + col1 ) FROM tab2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT + + CAST( + ( COUNT( * ) ) AS SIGNED ) + - 24 + - 55 AS col1 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + + CAST ( + ( COUNT ( * ) ) AS INTEGER ) + - 24 + - 55 AS col1 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT DISTINCT 24 + - col0 FROM tab1 AS cor0
----
-27
-61
-67

query I rowsort
SELECT ALL - 92 + + + col1 AS col2 FROM tab0 cor0
----
-11
-71
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL + COUNT( - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + COUNT ( - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ), col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) <= 31
----

query I rowsort
SELECT ALL + 53 - + - col0 FROM tab2 cor0
----
117
128
99

query II rowsort
SELECT ALL ( - col1 ) * + + col0 AS col1, col0 FROM tab1 AS cor0
----
-425
85
-4277
91
-714
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL + 92 - + COUNT( * ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL + 92 - + COUNT ( * ) FROM tab1
----
89

query I rowsort
SELECT DISTINCT 74 * + col2 * + + col1 AS col1 FROM tab0
----
15540
281718
7326

query I rowsort
SELECT + col2 - - 62 + - col1 FROM tab2
----
25
34
53

query I rowsort
SELECT - col2 - - + col1 * - col1 AS col2 FROM tab1
----
-2277
-292
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT SUM( DISTINCT col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT SUM ( DISTINCT col0 ) FROM tab2
----
185

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + - - 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL + - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3096
SELECT ALL + - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 53 ) col1 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL + - 94 * + col0 FROM tab2 AS cor0
----
-4324
-6016
-7050

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT DISTINCT + col2 DIV col2 + + ( - col0 ) col2 FROM tab0 cor0
----
-14
-86
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3100
SELECT DISTINCT + col2 / col2 + + ( - col0 ) col2 FROM tab0 cor0
----
-14
-86
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT + 40 * - COUNT( * ) FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT + 40 * - COUNT ( * ) FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3102
SELECT 52, ( + ( + 98 ) ) DIV SUM( - 42 ) AS col1 FROM tab1
----
52
0

skipif mysql # not compatible
query II rowsort label-3102
SELECT 52, ( + ( + 98 ) ) / SUM ( - 42 ) AS col1 FROM tab1
----
52
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, + col0 col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT col1 * 95 FROM tab1
----
1330
4465
475

query I rowsort
SELECT DISTINCT + col2 * + 79 FROM tab2
----
1817
3160
4582

query II rowsort
SELECT - col2 AS col2, 49 FROM tab1
----
-59
49
-68
49
-96
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL + CAST( NULL AS SIGNED ) + + - 79 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 79 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 75 + col0 + 99 AS col1 FROM tab0 WHERE + + col1 + - + col2 * + ( - ( - col1 ) ) <= col1
----
111
121
39

query I rowsort
SELECT col1 + 28 AS col0 FROM tab0 AS cor0
----
109
29
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT COUNT( * ) * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE 94 * - 1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3110
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE 94 * - 1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( ( 19 NOT BETWEEN 29 AND 82 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 95 * - - 32 * 81 + + col1 - - 17 FROM tab1
----
246262
246271
246304

onlyif mysql # aggregate syntax: 
query II rowsort label-3113
SELECT DISTINCT + COUNT( * ), COUNT( * ) * + + 56 - + ( + - 85 ) AS col0 FROM tab2 AS cor0 WHERE NULL < 22 - + col0
----
0
85

skipif mysql # not compatible
query II rowsort label-3113
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) * + + 56 - + ( + - 85 ) AS col0 FROM tab2 AS cor0 WHERE NULL < 22 - + col0
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + MAX( DISTINCT col0 ) FROM tab2 AS cor0 WHERE + col0 <= + + col2 * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT + MAX ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE + col0 <= + + col2 * - 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) - - 51 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) - - 51 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + + + col1 + + col1 + + + col1 * + col0 * + col0 * + - 31 AS col2 FROM tab1 cor0
----
-1119806
-1128710
-12065255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 * 5 * - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 * 5 * - - col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 92 BETWEEN col1 AND - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 87 AS col2 FROM tab2 WHERE NOT - - 63 > col0
----
87
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 82 + - 17 * - 77 * col1 < + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3121
SELECT ALL - - 60 * - - COUNT( * ) DIV - COUNT( DISTINCT 24 ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - - 60 * - - COUNT ( * ) / - COUNT ( DISTINCT 24 ) FROM tab2 AS cor0
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT DISTINCT + CAST( 58 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT + CAST ( 58 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 * - - col2 FROM tab1 AS cor0
----
129024
17405
217328

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 25 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE 38 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 64 ) + + + 98 * - - 93 FROM tab1
----
9050

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + ( - COUNT( + + col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3128
SELECT + ( - COUNT ( + + col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT 73 * + + 43 + - ( + col2 ) * + ( + col1 ) FROM tab1
----
-57
1795
2844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3130
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT ALL + COUNT( * ) - ( COUNT( * ) ) * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL + COUNT ( * ) - ( COUNT ( * ) ) * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + - - col0 + + 16 AS col2 FROM tab1 cor0
----
-29
39
42

query I rowsort
SELECT + 63 AS col0 FROM tab2 cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 69 col0 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT col0 * 52 * - + 9 AS col2 FROM tab0
----
-40716
-45396
-7020

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT COUNT( * ) * ( - MIN( DISTINCT + ( - 22 ) ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3137
SELECT COUNT ( * ) * ( - MIN ( DISTINCT + ( - 22 ) ) ) FROM tab1
----
66

query II rowsort
SELECT col1 * + col2 AS col2, - col2 FROM tab1
----
1344
-96
295
-59
3196
-68

query I rowsort
SELECT ( - col1 ) * 76 FROM tab2
----
-3876
-5092
-5852

query II rowsort
SELECT 23 * - 30 AS col2, col1 * ( - col1 ) AS col2 FROM tab2
----
-690
-2601
-690
-4489
-690
-5929

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + ( + ( + col2 ) ) < - + col1
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT DISTINCT 55 DIV + + COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT DISTINCT 55 / + + COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL - + SUM( DISTINCT 30 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-30

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - + SUM ( DISTINCT 30 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-30

query I rowsort
SELECT - - col2 * 99 AS col0 FROM tab1 AS cor0
----
5841
6732
9504

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - 87
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 34 ) - 93 + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT + - COUNT( * ) * 10 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3148
SELECT + - COUNT ( * ) * 10 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT - - col0 DIV - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3150
SELECT - - col0 / - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query II rowsort
SELECT + col2 AS col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

query II rowsort
SELECT - col0, col1 * col2 AS col2 FROM tab1
----
-51
1344
-85
295
-91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT + MAX( ALL - - 56 ) + + - ( - 82 ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3153
SELECT + MAX ( ALL - - 56 ) + + - ( - 82 ) FROM tab0
----
138

query I rowsort
SELECT - col0 + - - ( - col2 ) AS col2 FROM tab1
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + - col1 + + 14 col0 FROM tab2
----
-12
-28
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT COUNT( * ) + 96 + + 54 + - + 33 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-3156
SELECT COUNT ( * ) + 96 + + 54 + - + 33 FROM tab0
----
120

query I rowsort
SELECT ALL + col0 + - - 93 FROM tab2
----
139
157
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT - - SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - - SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + 4 * col1 AS col2 FROM tab0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + + MIN( - - col0 ) FROM tab0 WHERE NOT - + col0 = ( ( - + 98 ) )
----
15

skipif mysql # not compatible
query I rowsort label-3160
SELECT + + MIN ( - - col0 ) FROM tab0 WHERE NOT - + col0 = ( ( - + 98 ) )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3161
SELECT + + SUM( ALL - + col1 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
-103
3

skipif mysql # not compatible
query II rowsort label-3161
SELECT + + SUM ( ALL - + col1 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-103
3

query II rowsort
SELECT DISTINCT + ( + + col0 ) AS col2, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT - SUM( 7 ) FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3163
SELECT - SUM ( 7 ) FROM tab2 cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT MIN( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT MIN ( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT 91 * 97 FROM tab1
----
8827

query I rowsort
SELECT DISTINCT - ( + col0 ) * + 54 AS col0 FROM tab0 WHERE NOT ( NOT + 18 IS NOT NULL )
----
-4698
-5238
-810

query I rowsort
SELECT ALL 57 - - 96 FROM tab1, tab0 AS cor0
----
9 values hashing to a445e00df74bda4e6af4f1e4258ba685

query I rowsort
SELECT DISTINCT ( + - 48 ) FROM tab1
----
-48

query I rowsort
SELECT 62 * - 43 AS col2 FROM tab2
----
-2666
-2666
-2666

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2, - 19 AS col0 FROM tab2
----
23
-19
40
-19
58
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT + MAX( + 97 ) AS col2 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3172
SELECT + MAX ( + 97 ) AS col2 FROM tab1 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT + CAST( 62 AS SIGNED ) FROM tab0 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-3173
SELECT + CAST ( 62 AS INTEGER ) FROM tab0 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3174
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3174
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * col1 FROM tab2
----
NULL

query I rowsort
SELECT 19 - 66 * col0 FROM tab1
----
-3347
-5591
-5987

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT 57 - + COUNT( * ) AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3177
SELECT 57 - + COUNT ( * ) AS col2 FROM tab2
----
54

query I rowsort
SELECT DISTINCT 7 + col1 FROM tab2 WHERE NOT + col2 IS NULL
----
58
74
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < 7
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col0 NOT BETWEEN NULL AND 5
----

query I rowsort
SELECT col0 + - col1 FROM tab2 WHERE - 99 NOT BETWEEN - col0 + 62 AND ( - col1 )
----
-13
-5
8

query III rowsort
SELECT * FROM tab2 WHERE + 75 IN ( 5 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( - col0 + + col2 * col2 ) AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 35 < col0 * col2
----

query I rowsort
SELECT DISTINCT - 97 * + 19 AS col0 FROM tab0
----
-1843

query I rowsort
SELECT + 46 * col2 AS col1 FROM tab1
----
2714
3128
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT 24 * - COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3187
SELECT 24 * - COUNT ( * ) FROM tab2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT 30 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT 30 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 5 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 5 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3190
SELECT - COUNT( * ) - - CAST( COUNT( * ) AS SIGNED ) * 38 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
111

skipif mysql # not compatible
query I rowsort label-3190
SELECT - COUNT ( * ) - - CAST ( COUNT ( * ) AS INTEGER ) * 38 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
111

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + col1 <> 23 - 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col1 * ( + 98 ) - 67 NOT IN ( 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT + COUNT( * ) * - 30 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3193
SELECT + COUNT ( * ) * - 30 FROM tab1
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3194
SELECT CAST( + 16 AS DECIMAL ) AS col0 FROM tab1 WHERE NOT - col0 * 6 NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-3194
SELECT CAST ( + 16 AS REAL ) AS col0 FROM tab1 WHERE NOT - col0 * 6 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT 27 * + MAX( DISTINCT + col2 ) + + MAX( DISTINCT col1 ) AS col0 FROM tab1
----
2639

skipif mysql # not compatible
query I rowsort label-3195
SELECT 27 * + MAX ( DISTINCT + col2 ) + + MAX ( DISTINCT col1 ) AS col0 FROM tab1
----
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE 22 / 11 BETWEEN ( NULL ) AND ( - col1 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE 22 / 11 BETWEEN ( NULL ) AND ( - col1 * + col1 )
----
0

query I rowsort
SELECT ALL - col2 * - col1 + - col2 * 21 AS col0 FROM tab1
----
-672
-944
1768

query I rowsort
SELECT - col1 * + 93 FROM tab2
----
-4743
-6231
-7161

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3199
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <= ( - 36 / - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3199
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <= ( - 36 / - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL - 86 * + col1 FROM tab1
----
-1204
-4042
-430

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 3 AS col2 FROM tab0 WHERE - col2 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT SUM( + col1 ) FROM tab2 AS cor0 WHERE 58 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT SUM ( + col1 ) FROM tab2 AS cor0 WHERE 58 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT 17 * + 97 - - COUNT( * ) AS col2 FROM tab0 cor0
----
1652

skipif mysql # not compatible
query I rowsort label-3204
SELECT 17 * + 97 - - COUNT ( * ) AS col2 FROM tab0 cor0
----
1652

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( col0 ) NOT BETWEEN ( col0 ) AND 73
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3207
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3207
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL COUNT( ALL + 49 ) - + 95 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL COUNT ( ALL + 49 ) - + 95 FROM tab1
----
-92

query I rowsort
SELECT 55 * col1 AS col1 FROM tab2 WHERE NOT ( ( + col1 ) * - col0 ) IS NULL
----
2805
3685
4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT + + ( ( + CAST( + col0 AS SIGNED ) ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3210
SELECT + + ( ( + CAST ( + col0 AS INTEGER ) ) ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL 49 / + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE 93 < - 40 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 8 / 3 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col2 - + col1 * - ( 19 ) <> 86 * + col0 + col2
----

query I rowsort
SELECT ALL - 21 * - col1 AS col0 FROM tab0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT SUM( + - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3217
SELECT SUM ( + - col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT + 68 * + - col0 FROM tab1
----
-3468
-5780
-6188

query I rowsort
SELECT DISTINCT col0 * + 24 * 57 AS col1 FROM tab0
----
119016
132696
20520

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 1 * + col2 * 83 FROM tab2
----
-1909
-3320
-4814

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 + + 59 * - col2 col0 FROM tab1
----
-3488
-4019
-5671

query I rowsort
SELECT - 34 + - col0 AS col0 FROM tab1
----
-119
-125
-85

query II rowsort
SELECT ALL col0 AS col2, - col0 AS col1 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL col0 / - + col2 + col0 + - col0 * col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL col0 / - + col2 + col0 + - col0 * col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3227
SELECT ALL + col0 AS col0, + col0 DIV + col1 FROM tab1 AS cor0
----
51
3
85
17
91
1

skipif mysql # not compatible
query II rowsort label-3227
SELECT ALL + col0 AS col0, + col0 / + col1 FROM tab1 AS cor0
----
51
3
85
17
91
1

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> ( - col2 )
----

query I rowsort
SELECT DISTINCT - col0 + + 1 AS col2 FROM tab1 AS cor0
----
-50
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE ( NULL ) = - col1
----

skipif mysql # not compatible
query I rowsort label-3230
SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE ( NULL ) = - col1
----

query II rowsort
SELECT ALL - 81, 71 AS col1 FROM tab1 AS cor0
----
-81
71
-81
71
-81
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3232
SELECT * FROM tab2 AS cor0 WHERE col1 >= + CAST( NULL AS SIGNED ) * ( 28 / col1 )
----

skipif mysql # not compatible
query III rowsort label-3232
SELECT * FROM tab2 AS cor0 WHERE col1 >= + CAST ( NULL AS INTEGER ) * ( 28 / col1 )
----

query I rowsort
SELECT - 8 - - 59 * - 38 FROM tab1 AS cor0
----
-2250
-2250
-2250

query I rowsort
SELECT - 11 - col2 + + 36 AS col1 FROM tab0 AS cor0
----
-22
-74
15

query I rowsort
SELECT 66 + + - col0 FROM tab2
----
-9
2
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - COUNT( * ) * COUNT( * ) * + COUNT( col0 ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - COUNT ( * ) * COUNT ( * ) * + COUNT ( col0 ) AS col1 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT MIN( - + col0 ) + + - 39 FROM tab0
----
-136

skipif mysql # not compatible
query I rowsort label-3237
SELECT MIN ( - + col0 ) + + - 39 FROM tab0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + MIN( ALL + + col1 ) + + COUNT( + col1 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3238
SELECT + MIN ( ALL + + col1 ) + + COUNT ( + col1 ) FROM tab2
----
54

query I rowsort
SELECT - + 55 AS col2 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT ALL col1 DIV + 38 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL col1 / + 38 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3241
SELECT DISTINCT - ( - + 32 ) / - col0 + ( CAST( - col1 AS SIGNED ) ) * - ( CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - ( - + 32 ) / - col0 + ( CAST ( - col1 AS INTEGER ) ) * - ( CAST ( NULL AS REAL ) ) FROM tab1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - - 36 - 2 AS col2 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT ALL + col1 - + - ( - - col0 ) * + + col1 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * - + 3 + 58 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT ( - 19 ), - COUNT( DISTINCT - 76 ) AS col1 FROM tab1 cor0
----
-19
-1

skipif mysql # not compatible
query II rowsort label-3245
SELECT ( - 19 ), - COUNT ( DISTINCT - 76 ) AS col1 FROM tab1 cor0
----
-19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + COUNT( * ) + - 69 * + COUNT( * ) FROM tab2 WHERE NOT - + 73 IS NULL
----
-204

skipif mysql # not compatible
query I rowsort label-3246
SELECT + COUNT ( * ) + - 69 * + COUNT ( * ) FROM tab2 WHERE NOT - + 73 IS NULL
----
-204

query I rowsort
SELECT - 93 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3248
SELECT DISTINCT - + ( + + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT - + ( + + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND 82
----
51
14
96

query I rowsort
SELECT - col1 * + + 55 FROM tab1 AS cor0
----
-2585
-275
-770

query I rowsort
SELECT - 89 AS col1 FROM tab2 cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE - 7 IS NULL
----

query I rowsort
SELECT DISTINCT ( + ( - 15 ) ) * col2 FROM tab2 AS cor0
----
-345
-600
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT DISTINCT - - col0 DIV - + 79 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT - - col0 / - + 79 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3256
SELECT ALL - COUNT( * ) DIV + MIN( ALL + - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - COUNT ( * ) / + MIN ( ALL + - col0 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( NOT NULL IN ( col0 ) )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3259
SELECT DISTINCT - COUNT( * ) AS col1, - COUNT( * ) * 44 FROM tab2
----
-3
-132

skipif mysql # not compatible
query II rowsort label-3259
SELECT DISTINCT - COUNT ( * ) AS col1, - COUNT ( * ) * 44 FROM tab2
----
-3
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - 17 * + COUNT( * ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3260
SELECT - 17 * + COUNT ( * ) FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE 34 NOT IN ( + col0 / - col0 - - 49 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( + 20 ) AS col2 FROM tab2 AS cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, + col1 col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT + + 45 AS col1 FROM tab1 AS cor0 WHERE - col1 + col2 * - col0 IS NOT NULL
----
45
45
45

query III rowsort
SELECT * FROM tab2 WHERE + - col0 NOT IN ( + 80 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + - 29 FROM tab1
----
30
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL 4 + COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL 4 + COUNT ( * ) FROM tab0
----
7

query I rowsort
SELECT DISTINCT col1 + + 59 AS col0 FROM tab1 WHERE NOT col0 * + - col2 IS NULL AND col0 <= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - 17 + - - 75 * + COUNT( - - 73 ) AS col2 FROM tab0
----
208

skipif mysql # not compatible
query I rowsort label-3269
SELECT - 17 + - - 75 * + COUNT ( - - 73 ) AS col2 FROM tab0
----
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2 + - + col1 AS col2, col2 - col2 * - - col2 * + + col0 col2 FROM tab1 cor0
----
-3486
-295826
-4671
-420716
-9230
-469920

query I rowsort
SELECT 50 + + - 2 AS col0 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + 56 + - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT MAX( + + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3273
SELECT MAX ( + + col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT DISTINCT 50 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT ALL CAST( NULL AS SIGNED ) * 90 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL CAST ( NULL AS INTEGER ) * 90 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT + 17 + col0 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3277
SELECT CAST( NULL AS DECIMAL ) - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT CAST ( NULL AS REAL ) - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 22 - + col2 - + + ( - col2 ) - - 51 - - col0 AS col1 FROM tab0
----
116
126
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT 76 - - COUNT( * ) AS col1 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-3279
SELECT 76 - - COUNT ( * ) AS col1 FROM tab2
----
79

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3281
SELECT ALL col2, CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3281
SELECT ALL col2, CAST ( NULL AS REAL ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT - - SUM( - - 85 ) AS col2 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT - - SUM ( - - 85 ) AS col2 FROM tab1 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT MIN( DISTINCT + - 52 ) * - COUNT( * ) * + MAX( DISTINCT col2 ) FROM tab1
----
14976

skipif mysql # not compatible
query I rowsort label-3283
SELECT MIN ( DISTINCT + - 52 ) * - COUNT ( * ) * + MAX ( DISTINCT col2 ) FROM tab1
----
14976

query I rowsort
SELECT - col0 - - + col2 FROM tab0 AS cor0 WHERE NOT 62 >= NULL
----

query I rowsort
SELECT + 70 FROM tab0 AS cor0 WHERE NOT col1 + col1 <= 8
----
70
70

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 4 = - + ( + - 9 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3287
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST( - 50 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3287
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST ( - 50 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT + 25 * - COUNT( * ) AS col1 FROM tab1 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT + 25 * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-75

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT ( 56 ) AS col2 FROM tab2 cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT COUNT( * ) * + ( 61 ) * - COUNT( 95 ) + COUNT( * ) FROM tab0
----
-546

skipif mysql # not compatible
query I rowsort label-3291
SELECT COUNT ( * ) * + ( 61 ) * - COUNT ( 95 ) + COUNT ( * ) FROM tab0
----
-546

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab0 WHERE - - col0 = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + - col1 * + ( col0 ) * + col0 * - 57 + - col1 - - col2, col2 col2 FROM tab2
----
17977347
40
21481924
58
6151207
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL - COUNT( * ) + + 66 AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - COUNT ( * ) + + 66 AS col2 FROM tab1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) - 71 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) - 71 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( + 62 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT - + 50 * - CAST( + col2 AS SIGNED ) * - 41 + + - 88 FROM tab0 cor0
----
-203038
-20588
-96438

skipif mysql # not compatible
query I rowsort label-3296
SELECT - + 50 * - CAST ( + col2 AS INTEGER ) * - 41 + + - 88 FROM tab0 cor0
----
-203038
-20588
-96438

query I rowsort
SELECT + col2 - col0 + - col0 FROM tab1 AS cor0
----
-111
-114
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT + 58 * - + 87 + - COUNT( + col2 ) FROM tab1 cor0
----
-5049

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT + 58 * - + 87 + - COUNT ( + col2 ) FROM tab1 cor0
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + - COUNT( ALL + 67 ) - + 70 AS col1 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-3299
SELECT + - COUNT ( ALL + 67 ) - + 70 AS col1 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT ALL col1 + 39 AS col2 FROM tab1 AS cor0
----
44
53
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT DISTINCT - 84, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-84
-3

skipif mysql # not compatible
query II rowsort label-3301
SELECT DISTINCT - 84, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-84
-3

query I rowsort
SELECT + 42 + - col0 * + + 18 AS col1 FROM tab1 AS cor0
----
-1488
-1596
-876

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE - 41 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3304
SELECT ALL 32 * + 99 / - + CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL 32 * + 99 / - + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT NULL >= col0 * + - 38
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 + 69 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT ALL + ( + + col0 ) DIV - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL + ( + + col0 ) / - col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT 60 DIV + + COUNT( * ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3308
SELECT 60 / + + COUNT ( * ) FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT COUNT( - 77 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT COUNT ( - 77 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - 21 IS NULL
----

query I rowsort
SELECT col2 * 91 * col0 FROM tab2
----
232960
395850
96278

query II rowsort
SELECT DISTINCT + col1 AS col1, ( - col0 ) AS col1 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3313
SELECT MIN( DISTINCT + col0 ) DIV - MAX( ALL - ( + col2 ) ) AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-3313
SELECT MIN ( DISTINCT + col0 ) / - MAX ( ALL - ( + col2 ) ) AS col1 FROM tab2
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3314
SELECT + col0 / ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT + col0 / ( CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, 96 col2 FROM tab1 cor0
----
-14
96
-47
96
-5
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 * 40 col1 FROM tab0 AS cor0
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT + 53 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-3317
SELECT + 53 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
159

query I rowsort
SELECT DISTINCT col0 * - + 5 AS col2 FROM tab0 AS cor0
----
-435
-485
-75

query I rowsort
SELECT ( - 17 ) AS col2 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - 58 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 58 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT COUNT( * ) * + 16 AS col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3321
SELECT COUNT ( * ) * + 16 AS col2 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT + - SUM( DISTINCT + 35 ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3322
SELECT + - SUM ( DISTINCT + 35 ) FROM tab0 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 > - col2
----
3

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 > - col2
----
3

query I rowsort
SELECT DISTINCT - 63 + col2 AS col2 FROM tab0 AS cor0
----
-16
-53
36

query I rowsort
SELECT ALL + ( + 48 ) AS col2 FROM tab0
----
48
48
48

query I rowsort
SELECT ALL col2 + - ( col0 ) FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3327
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3327
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3328
SELECT ALL col0 + col1 AS col0, + 77 DIV - 17 AS col1 FROM tab2
----
141
-4
142
-4
97
-4

skipif mysql # not compatible
query II rowsort label-3328
SELECT ALL col0 + col1 AS col0, + 77 / - 17 AS col1 FROM tab2
----
141
-4
142
-4
97
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT + COUNT( DISTINCT col0 ) + ( + + 39 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT + COUNT ( DISTINCT col0 ) + ( + + 39 ) FROM tab2 AS cor0
----
42

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col2 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + ( MIN( 19 ) ) AS col2 FROM tab0 WHERE ( NULL <= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT + ( MIN ( 19 ) ) AS col2 FROM tab0 WHERE ( NULL <= NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 30 IN ( - + col0, - 35 + + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 75 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT DISTINCT 39 * + CAST( NULL AS SIGNED ) * + + ( - + 36 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT 39 * + CAST ( NULL AS INTEGER ) * + + ( - + 36 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + ( ( col2 ) ) * + - col2 + col0 FROM tab0 AS cor0
----
-13
-2194
-9704

query I rowsort
SELECT ALL - 94 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-94
-94
-94

query I rowsort
SELECT + + 67 + - - col1 * 81 AS col1 FROM tab2 AS cor0
----
4198
5494
6304

query I rowsort
SELECT DISTINCT - 13 - + col2 AS col1 FROM tab2 AS cor0
----
-36
-53
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3339
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - + - SUM( col1 ) AS col1, - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3339
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - + - SUM ( col1 ) AS col1, - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col2 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT - SUM( DISTINCT + col2 ) - - COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - SUM ( DISTINCT + col2 ) - - COUNT ( * ) FROM tab0 AS cor0
----
-153

query II rowsort
SELECT ALL col2 AS col0, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL + COUNT( * ) * + 57 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + COUNT ( * ) * + 57 FROM tab2
----
171

query I rowsort
SELECT + + col0 - - col0 * - 13 * ( - + col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT COUNT( * ) DIV 91 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( * ) / 91 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 9 * + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT SUM( DISTINCT - 87 ) * - 73 col2 FROM tab1 AS cor0
----
6351

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3348
SELECT SUM ( DISTINCT - 87 ) * - 73 col2 FROM tab1 AS cor0
----
6351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT ALL - CAST( - 18 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - CAST ( - 18 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT DISTINCT 56 DIV - - col1 + + + col2 AS col0 FROM tab0
----
12
155
47

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT 56 / - - col1 + + + col2 AS col0 FROM tab0
----
12
155
47

query I rowsort
SELECT DISTINCT - 46 FROM tab0 WHERE - col0 / + col0 * + - 60 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col2 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3353
SELECT col1, - col2 DIV - col1 FROM tab1
----
14
6
47
1
5
11

skipif mysql # not compatible
query II rowsort label-3353
SELECT col1, - col2 / - col1 FROM tab1
----
14
6
47
1
5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL MIN( ALL - 8 ) col2 FROM tab0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3354
SELECT ALL MIN ( ALL - 8 ) col2 FROM tab0
----
-8

query I rowsort
SELECT DISTINCT - col0 + + + 58 + - ( - 35 ) FROM tab2
----
18
29
47

query II rowsort
SELECT DISTINCT 40 AS col0, + col2 AS col0 FROM tab1 cor0
----
40
59
40
68
40
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT col1 * + 5 / - col2 + - - col1 + + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT col1 * + 5 / - col2 + - - col1 + + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT ALL COUNT( * ) AS col0, + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE + 42 IS NOT NULL
----
3
-9

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE + 42 IS NOT NULL
----
3
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3359
SELECT - 1 DIV + - COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) FROM tab2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3359
SELECT - 1 / + - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT + COUNT( * ) + + + 89 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + COUNT ( * ) + + + 89 FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT ALL - 95 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - 95 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 56 IS NULL
----
0

query I rowsort
SELECT - + ( - col0 ) + - + col1 FROM tab1 cor0 WHERE - 44 * - col1 IS NOT NULL
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT - SUM( col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - 82 + - 38 FROM tab0 AS cor0 WHERE NOT + 66 / col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col1 * 94 FROM tab0
----
-1974
-7614
-94

query II rowsort
SELECT col2, 12 AS col2 FROM tab2
----
23
12
40
12
58
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT DISTINCT col0 DIV - 4 AS col0 FROM tab2
----
-11
-16
-18

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT col0 / - 4 AS col0 FROM tab2
----
-11
-16
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT - COUNT( * ) * - 54 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - COUNT ( * ) * - 54 FROM tab0
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3370
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - 83 FROM tab2 WHERE NULL <= - + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( + + 81 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + col1 * col1 + - + col1 + col1 * + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT DISTINCT col2 DIV - + col2 col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3374
SELECT DISTINCT col2 / - + col2 col2 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col0 col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + + col0 IS NULL AND NULL >= col0
----

query I rowsort
SELECT + + 65 AS col1 FROM tab0 cor0
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT + col0 DIV + 89 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3378
SELECT + col0 / + 89 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + SUM( - - 40 ) col0 FROM tab1 cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3379
SELECT + SUM ( - - 40 ) col0 FROM tab1 cor0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT ALL - CAST( MAX( DISTINCT - col1 ) AS SIGNED ) + - + MIN( ALL - + CAST( + ( col1 ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - CAST ( MAX ( DISTINCT - col1 ) AS INTEGER ) + - + MIN ( ALL - + CAST ( + ( col1 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + 65 * + + col0 * - 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT + ( - SUM( + col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3382
SELECT + ( - SUM ( + col1 ) ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IN ( col2 )
----
10
47
99

query I rowsort
SELECT ALL 27 + ( - col2 ) FROM tab0
----
-20
-72
17

query I rowsort
SELECT ALL - + 47 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT - ( + 3 ) + - col1 FROM tab2
----
-54
-70
-80

query I rowsort
SELECT col1 + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT 23 + 42 * - CAST( - - 66 AS SIGNED ) FROM tab2 AS cor0
----
-2749
-2749
-2749

skipif mysql # not compatible
query I rowsort label-3388
SELECT 23 + 42 * - CAST ( - - 66 AS INTEGER ) FROM tab2 AS cor0
----
-2749
-2749
-2749

query I rowsort
SELECT ALL + - col1 * 23 + + col1 * + + 71 FROM tab2 AS cor0
----
2448
3216
3696

query I rowsort
SELECT ALL - 45 AS col1 FROM tab2 cor0 WHERE NOT col0 < + col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT SUM( - 72 ) + - + COUNT( * ) FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT SUM ( - 72 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - + MIN( - - ( + col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - + MIN ( - - ( + col0 ) ) FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 29 col0, + col0 AS col1 FROM tab0 AS cor0
----
29
15
29
87
29
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3394
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT + col1 * 69 * + + 51 FROM tab1
----
165393
17595
49266

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 51 / - 72 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NULL > + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3398
SELECT * FROM tab1 AS cor0 WHERE 93 < 63 * + + CAST( + - col0 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-3398
SELECT * FROM tab1 AS cor0 WHERE 93 < 63 * + + CAST ( + - col0 AS INTEGER ) + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3399
SELECT * FROM tab0 AS cor0 WHERE - col1 + CAST( NULL AS SIGNED ) <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3399
SELECT * FROM tab0 AS cor0 WHERE - col1 + CAST ( NULL AS INTEGER ) <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 26 + + + col2 + + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
118
121
133

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + + 37, col2 + + - 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + COUNT( * ) * - MIN( DISTINCT col0 ) AS col0 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + COUNT ( * ) * - MIN ( DISTINCT col0 ) AS col0 FROM tab2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT + - CAST( + - 24 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + - CAST ( + - 24 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 - + 38 > - - col1 * - col1
----
15
81
47
87
21
10

query II rowsort
SELECT ALL col1 AS col1, 1 - col2 FROM tab0
----
1
-98
21
-9
81
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - 95 * - col1 FROM tab2 AS cor0
----
23
4845
40
7315
58
6365

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT 10 DIV - 27 * - col2 FROM tab2 AS cor0 WHERE NOT + col0 + col1 = col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3407
SELECT 10 / - 27 * - col2 FROM tab2 AS cor0 WHERE NOT + col0 + col1 = col1
----
0
0
0

query I rowsort
SELECT - ( - - 21 ) AS col2 FROM tab0 cor0
----
-21
-21
-21

query I rowsort
SELECT ALL + col0 * - 65 * + col0 AS col2 FROM tab0
----
-14625
-491985
-611585

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - ( MIN( DISTINCT - col0 ) ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3410
SELECT - ( MIN ( DISTINCT - col0 ) ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ALL - 42 FROM tab2, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT - COUNT( - + 78 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - COUNT ( - + 78 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3413
SELECT DISTINCT + col1 * + - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + col1 * + - col2 / - col2 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - SUM( ALL - + 71 ) * - ( - COUNT( * ) ) * - 69 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
132273

skipif mysql # not compatible
query I rowsort label-3414
SELECT - SUM ( ALL - + 71 ) * - ( - COUNT ( * ) ) * - 69 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
132273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - 31 col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - 11 AND ( + 14 )
----

query I rowsort
SELECT ALL ( - col0 ) * - 40 FROM tab0 AS cor0
----
3480
3880
600

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT + 66 DIV - + 69 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT + 66 / - + 69 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT ALL col0 DIV + - col1 col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3418
SELECT ALL col0 / + - col1 col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL + + 35 * - COUNT( DISTINCT col0 ) + 38 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + + 35 * - COUNT ( DISTINCT col0 ) + 38 FROM tab1 AS cor0
----
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + 87 BETWEEN - col0 AND + col0 )
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT 16 AS col2, col1 AS col1 FROM tab1 cor0
----
16
14
16
47
16
5

query I rowsort
SELECT ALL + ( 14 ) FROM tab1 AS cor0
----
14
14
14

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT + 76 + - - ( + 11 ) NOT BETWEEN - 9 / + + col0 + - + 19 + + 93 AND NULL )
----

query II rowsort
SELECT - 7 + + + 70 AS col2, ( + - col1 ) FROM tab2
----
63
-51
63
-67
63
-77

query I rowsort
SELECT DISTINCT col2 * - col1 * + 50 FROM tab1
----
-14750
-159800
-67200

query II rowsort
SELECT DISTINCT 3 AS col2, - col0 * - 99 AS col1 FROM tab2
----
3
4554
3
6336
3
7425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 + - col0 * - 53 * - + 92 col2 FROM tab2
----
-224370
-312181
-365825

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 80 * + - col0 IS NULL
----

query I rowsort
SELECT - col0 + - ( - + col1 ) FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - ( + col2 ) + - 53 + + - col1 FROM tab0
----
-153
-181
-84

query I rowsort
SELECT - 55 + + col0 + - + col2 + + col1 * + - col1 FROM tab1
----
-2241
-296
-54

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) + - - 65 AS col2 FROM tab1
----
124
133
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL 94 + - - COUNT( * ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL 94 + - - COUNT ( * ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3434
SELECT * FROM tab1 AS cor0 WHERE col0 * - - 31 IN ( col1 + - CAST( - col2 AS SIGNED ), col0 + + + col1 )
----

skipif mysql # not compatible
query III rowsort label-3434
SELECT * FROM tab1 AS cor0 WHERE col0 * - - 31 IN ( col1 + - CAST ( - col2 AS INTEGER ), col0 + + + col1 )
----

query I rowsort
SELECT DISTINCT 3 + col1 FROM tab2 cor0
----
54
70
80

query II rowsort
SELECT + col2, + col0 * col2 FROM tab0 AS cor0
----
10
870
47
705
99
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7, 29 + 3 col0 FROM tab2 AS cor0 WHERE + col2 * - col2 IS NOT NULL
----
-7
32
-7
32
-7
32

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 12 / - 1 * + ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3439
SELECT MIN( 6 ) DIV + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3439
SELECT MIN ( 6 ) / + COUNT ( * ) FROM tab1
----
2

query I rowsort
SELECT col0 * ( + + col2 ) AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col0 * + col0 + - col2 AS col2 FROM tab2 AS cor0
----
2093
4056
5567

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT - COUNT( * ) * - 3 * 25 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3442
SELECT - COUNT ( * ) * - 3 * 25 FROM tab0 AS cor0
----
225

query I rowsort
SELECT ( + - 79 ) FROM tab2 AS cor0
----
-79
-79
-79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 89 * col1 NOT IN ( - col2, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT ALL - col2 * 40 DIV col0 AS col0 FROM tab0 AS cor0
----
-125
-4
-40

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL - col2 * 40 / col0 AS col0 FROM tab0 AS cor0
----
-125
-4
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 3 ) = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND - ( + 77 )
----

query II rowsort
SELECT + 71 AS col0, - col0 FROM tab2
----
71
-46
71
-64
71
-75

query II rowsort
SELECT col2, - 3 AS col2 FROM tab0
----
10
-3
47
-3
99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col1 FROM tab1
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 25 NOT BETWEEN ( NULL ) AND - 65
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT DISTINCT 89, - COUNT( + col2 ) AS col0 FROM tab0
----
89
-3

skipif mysql # not compatible
query II rowsort label-3453
SELECT DISTINCT 89, - COUNT ( + col2 ) AS col0 FROM tab0
----
89
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT - 78 * COUNT( * ) col0 FROM tab2
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3454
SELECT DISTINCT - 78 * COUNT ( * ) col0 FROM tab2
----
-234

query I rowsort
SELECT ALL + 45 * + + col2 FROM tab1
----
2655
3060
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ( + ( + COUNT( * ) ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3456
SELECT ( + ( + COUNT ( * ) ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL + col1 + + CAST( + col2 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + col1 + + CAST ( + col2 AS INTEGER ) FROM tab1
----
110
115
64

query I rowsort
SELECT 17 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - + 17 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3459
SELECT - + 17 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT - - 21 * COUNT( * ) + 44 FROM tab2 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - - 21 * COUNT ( * ) + 44 FROM tab2 AS cor0
----
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + - col2 * - col0 * - + 44 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 91 * + - col2 AND col1
----

query I rowsort
SELECT DISTINCT 52 * - col2 + - 92 AS col1 FROM tab0 AS cor0
----
-2536
-5240
-612

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3463
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3463
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + CAST ( NULL AS INTEGER ) <> NULL
----

query II rowsort
SELECT + 35 + + 83, col1 AS col0 FROM tab2 AS cor0
----
118
51
118
67
118
77

query II rowsort
SELECT 98, 71 + + - 41 AS col1 FROM tab0 AS cor0 WHERE + 72 * + 79 IS NOT NULL
----
98
30
98
30
98
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT DISTINCT ( + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 + - col1 + col1 * - col1 * + - 67 IN ( + + CAST( - 51 AS SIGNED ) )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT ( + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 + - col1 + col1 * - col1 * + - 67 IN ( + + CAST ( - 51 AS INTEGER ) )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT DISTINCT 72 + + col2 * + + col0 FROM tab0 WHERE NOT + 95 + - col1 / - col0 >= - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT 72 + + col2 * + + col0 FROM tab0 WHERE NOT + 95 + - col1 / - col0 >= - CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT MAX( DISTINCT - + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT MAX ( DISTINCT - + col1 ) FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / 75 col2 FROM tab2 WHERE NULL = - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + COUNT( * ) + + - 89 FROM tab0, tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + COUNT ( * ) + + - 89 FROM tab0, tab2 AS cor0
----
-80

query I rowsort
SELECT + 72 * - ( - + 49 ) FROM tab1
----
3528
3528
3528

query I rowsort
SELECT ALL - 32 * 95 * col1 + col0 FROM tab1
----
-142789
-15115
-42509

query II rowsort
SELECT 59 - - ( - - col0 ) AS col0, - 60 FROM tab2
----
105
-60
123
-60
134
-60

query I rowsort
SELECT - col0 - + 18 AS col0 FROM tab1
----
-103
-109
-69

query I rowsort
SELECT - col1 - ( - 11 ) + - 61 AS col2 FROM tab0 AS cor0
----
-131
-51
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT - 40 * - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
120

skipif mysql # not compatible
query I rowsort label-3476
SELECT - 40 * - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3477
SELECT + COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + 89 AS col1, - ( col0 ) AS col0 FROM tab2
----
89
-46
89
-64
89
-75

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= - 0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT + CAST( - COUNT( * ) AS SIGNED ) * 94 + - COUNT( * ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-3480
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * 94 + - COUNT ( * ) FROM tab1 AS cor0
----
-285

query I rowsort
SELECT col2 + 5 * col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col0 FROM tab0
----
34

query I rowsort
SELECT - 97 * + + col0 * + col1 AS col1 FROM tab2
----
-227562
-478016
-487425

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL + COUNT( * ) * COUNT( ALL 23 ) + 40 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL + COUNT ( * ) * COUNT ( ALL 23 ) + 40 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ( 62 ) * MIN( + - col1 ) col1 FROM tab1 AS cor0
----
-2914

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3485
SELECT ( 62 ) * MIN ( + - col1 ) col1 FROM tab1 AS cor0
----
-2914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 * - col2 col0 FROM tab1 AS cor0
----
-3894
-4488
-6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col0 + + 30 col1 FROM tab0 AS cor0
----
-195
-7539
-9379

query I rowsort
SELECT - ( 49 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT ALL - CAST( NULL AS SIGNED ) + - - 67 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 67 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - COUNT( * ) FROM tab0, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3490
SELECT - COUNT ( * ) FROM tab0, tab0 cor0
----
-9

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-3492
SELECT ALL + col2 DIV - col0 - - 20 AS col1, - 93 AS col2 FROM tab0 AS cor0
----
17
-93
19
-93
20
-93

skipif mysql # not compatible
query II rowsort label-3492
SELECT ALL + col2 / - col0 - - 20 AS col1, - 93 AS col2 FROM tab0 AS cor0
----
17
-93
19
-93
20
-93

query I rowsort
SELECT ALL - 73 * + + ( - - col0 ) - - col2 + + - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, - col0 )
----

query II rowsort
SELECT ALL col1 AS col1, + 46 + col1 + - - 42 AS col1 FROM tab2 AS cor0 WHERE NOT 98 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT - 12 + + 76 DIV - col2 AS col1 FROM tab2 AS cor0
----
-13
-13
-15

skipif mysql # not compatible
query I rowsort label-3495
SELECT - 12 + + 76 / - col2 AS col1 FROM tab2 AS cor0
----
-13
-13
-15

query I rowsort
SELECT col2 + - + 1 FROM tab0
----
46
9
98

query I rowsort
SELECT + col1 + - - col2 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT col1 + + 11 + - 36 + + + 65 * - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT col1 + + 11 + - 36 + + + 65 * - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - ( col1 ) * + 58 + - - col0 NOT BETWEEN + + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT DISTINCT - 16 * ( + - col2 ) DIV 1 FROM tab2
----
368
640
928

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT - 16 * ( + - col2 ) / 1 FROM tab2
----
368
640
928

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 3 * + + col0 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT DISTINCT - 32 * - + CAST( - + col1 AS SIGNED ) FROM tab2
----
-1632
-2144
-2464

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT - 32 * - + CAST ( - + col1 AS INTEGER ) FROM tab2
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + COUNT( ALL 31 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3503
SELECT + COUNT ( ALL 31 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 94 / - 7 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + - col1 / + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL + - MAX( DISTINCT - + 89 ) AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL + - MAX ( DISTINCT - + 89 ) AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL + COUNT( ALL 60 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + COUNT ( ALL 60 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + + COUNT( * ) * + - 62 * 72 FROM tab0 AS cor0
----
-13392

skipif mysql # not compatible
query I rowsort label-3508
SELECT + + COUNT ( * ) * + - 62 * 72 FROM tab0 AS cor0
----
-13392

query I rowsort
SELECT - col1 * + - 22 FROM tab0 cor0
----
1782
22
462

query II rowsort
SELECT col0 * 47 * + col0 + - col1 + col0 + - + ( - ( - col1 ) ), - col2 AS col2 FROM tab2 AS cor0
----
192422
-40
264316
-58
99396
-23

query I rowsort
SELECT ALL + 28 * - 9 + + + col0 * - 62 FROM tab0
----
-1182
-5646
-6266

query II rowsort
SELECT DISTINCT - col1 AS col0, 51 AS col2 FROM tab1
----
-14
51
-47
51
-5
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT ALL ( 4 ) * - CAST( NULL AS SIGNED ) - col0 col1 FROM tab0 WHERE + - 3 <> + col1 + - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3513
SELECT ALL ( 4 ) * - CAST ( NULL AS INTEGER ) - col0 col1 FROM tab0 WHERE + - 3 <> + col1 + - col1
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col1, - 72 AS col0 FROM tab2
----
51
-72
67
-72
77
-72

query I rowsort
SELECT - + col2 + + ( 25 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT ALL 1, MIN( ALL - 85 ) AS col2 FROM tab0
----
1
-85

skipif mysql # not compatible
query II rowsort label-3516
SELECT ALL 1, MIN ( ALL - 85 ) AS col2 FROM tab0
----
1
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE col2 / col1 + col1 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE col2 / col1 + col1 + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - 83 + + - COUNT( * ) AS col1 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - 83 + + - COUNT ( * ) AS col1 FROM tab1
----
-86

query II rowsort
SELECT + - col1 AS col1, 77 FROM tab0 AS cor0
----
-1
77
-21
77
-81
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3520
SELECT DISTINCT - COUNT( DISTINCT - + CAST( + - col2 AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - COUNT ( DISTINCT - + CAST ( + - col2 AS INTEGER ) ) FROM tab2
----
-3

query I rowsort
SELECT col2 + 92 AS col0 FROM tab0
----
102
139
191

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + + 94 * + COUNT( * ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
282

skipif mysql # not compatible
query I rowsort label-3522
SELECT + + 94 * + COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT 90 DIV - - 94 + + col2 - - col1 + - col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT 90 / - - 94 + + col2 - - col1 + - col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT ALL - COUNT( * ), - SUM( DISTINCT - 1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3524
SELECT ALL - COUNT ( * ), - SUM ( DISTINCT - 1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

query I rowsort
SELECT ALL - - col0 * + - col0 - col0 * - col1 FROM tab1 AS cor0
----
-1887
-4004
-6800

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 66 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 - - + col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3528
SELECT DISTINCT + CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT + CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3529
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col0 FROM tab0
----
-9

query II rowsort
SELECT col1, - 45 + col1 AS col0 FROM tab1
----
14
-31
47
2
5
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT col2 DIV + 58 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3531
SELECT col2 / + 58 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + 24 * - col0 * - 56 FROM tab1 AS cor0
----
114240
122304
68544

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT + + CAST( ( + - COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3534
SELECT + + CAST ( ( + - COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 35 * + col2 AS col1 FROM tab1
----
2065
2380
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 60 + - - col2 * + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 60 + - - col2 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * 12 * + - col2 FROM tab2 AS cor0
----
-14076
-36960
-46632

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * 12 * + - col2 FROM tab2 AS cor0
----
-14076
-36960
-46632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT + COUNT( * ) DIV - 10 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT + COUNT ( * ) / - 10 FROM tab1
----
0

query I rowsort
SELECT ALL + 49 * - + col1 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT ALL - col0 DIV 48 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - col0 / 48 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT COUNT( * ) * + - COUNT( DISTINCT 24 ) * + 10 + COUNT( * ) col0 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3541
SELECT DISTINCT COUNT ( * ) * + - COUNT ( DISTINCT 24 ) * + 10 + COUNT ( * ) col0 FROM tab1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3542
SELECT + CAST( + - 63 AS SIGNED ) + COUNT( ALL - col2 ) AS col0 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-3542
SELECT + CAST ( + - 63 AS INTEGER ) + COUNT ( ALL - col2 ) AS col0 FROM tab2
----
-60

query I rowsort
SELECT + - col0 + + + 89 FROM tab0 AS cor0
----
-8
2
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT AVG ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL BETWEEN + col1 * + 19 + + + col2 + - 35 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT AVG ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL BETWEEN + col1 * + 19 + + + col2 + - 35 AND NULL
----
NULL

query I rowsort
SELECT + 56 * + col2 AS col0 FROM tab1
----
3304
3808
5376

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 22 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT - 12 * ( - col1 ) * - + col0 AS col2 FROM tab2
----
-28152
-59136
-60300

query I rowsort
SELECT ALL + + 24 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT DISTINCT ( col1 ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT ( col1 ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + - - 90 FROM tab2 AS cor0
----
32
50
67

query I rowsort
SELECT + 88 - - - 75 + - - col2 AS col0 FROM tab0 AS cor0
----
112
23
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT + COUNT( * ) + 27 AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + COUNT ( * ) + 27 AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL - + col0 - - col2 + + col1 FROM tab1 AS cor0
----
-21
24
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3554
SELECT - COUNT( * ) + + CAST( + 81 AS SIGNED ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3554
SELECT - COUNT ( * ) + + CAST ( + 81 AS INTEGER ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT col1 * + 12 * col1 * 95 + - col1 FROM tab2 AS cor0
----
2965089
5117393
6758983

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT - 35 * - COUNT( - col1 ) AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-3556
SELECT - 35 * - COUNT ( - col1 ) AS col1 FROM tab0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT CAST( - col2 AS SIGNED ) * + col0 + + col1 FROM tab1
----
-4882
-5010
-6141

skipif mysql # not compatible
query I rowsort label-3557
SELECT CAST ( - col2 AS INTEGER ) * + col0 + + col1 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT + col0 * 88 AS col1 FROM tab0
----
1320
7656
8536

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL MIN( - 22 ) col0 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3559
SELECT ALL MIN ( - 22 ) col0 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT + - COUNT( + - 5 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3560
SELECT + - COUNT ( + - 5 ) col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3562
SELECT ALL 68 * CAST( NULL AS DECIMAL ) + + 70 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3562
SELECT ALL 68 * CAST ( NULL AS REAL ) + + 70 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT col1, 69 FROM tab2
----
51
69
67
69
77
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT 7 * + MIN( ALL - + col2 ) AS col2, COUNT( * ) - + 60 AS col2 FROM tab2 AS cor0
----
-406
-57

skipif mysql # not compatible
query II rowsort label-3564
SELECT 7 * + MIN ( ALL - + col2 ) AS col2, COUNT ( * ) - + 60 AS col2 FROM tab2 AS cor0
----
-406
-57

query II rowsort
SELECT ALL 79 * + col2 + 70 AS col1, 56 * + + 33 AS col0 FROM tab1 AS cor0
----
4731
1848
5442
1848
7654
1848

query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT + 55 + - - 58 - SUM( col0 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3567
SELECT + 55 + - - 58 - SUM ( col0 ) FROM tab0 AS cor0
----
-86

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col1 > + col1 / - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT col1 + + col1 DIV col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3569
SELECT col1 + + col1 / col1 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT DISTINCT - ( + - 4 ) AS col1 FROM tab2 AS cor0
----
4

query I rowsort
SELECT + + col1 + - col1 * 11 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT 0 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT 0 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT - col0 + - col1 * 92 FROM tab1 cor0
----
-1339
-4415
-545

query I rowsort
SELECT + + col1 AS col0 FROM tab1 WHERE + 32 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3575
SELECT DISTINCT * FROM tab1 WHERE + col1 * + col1 / - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3575
SELECT DISTINCT * FROM tab1 WHERE + col1 * + col1 / - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3576
SELECT - CAST( col2 AS SIGNED ) AS col0, 77 FROM tab0
----
-10
77
-47
77
-99
77

skipif mysql # not compatible
query II rowsort label-3576
SELECT - CAST ( col2 AS INTEGER ) AS col0, 77 FROM tab0
----
-10
77
-47
77
-99
77

query I rowsort
SELECT DISTINCT 15 + - 11 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + MIN( ALL + + 92 ) AS col0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3578
SELECT + MIN ( ALL + + 92 ) AS col0 FROM tab2 AS cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT DISTINCT 11 DIV col1 * col1 col1 FROM tab0 cor0
----
0
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3579
SELECT DISTINCT 11 / col1 * col1 col1 FROM tab0 cor0
----
0
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 col0 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT 39 + 68 FROM tab2
----
107
107
107

query I rowsort
SELECT ALL + col1 * - col0 + + 9 + - + 16 * + col2 AS col1 FROM tab1
----
-1360
-2241
-5356

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + MIN( + 94 ) AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3583
SELECT + MIN ( + 94 ) AS col1 FROM tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT + 86 * col2 FROM tab0 AS cor0 WHERE NULL = NULL OR NULL NOT BETWEEN - 91 AND - col1 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT + MAX( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3585
SELECT + MAX ( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - SUM( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3586
SELECT - SUM ( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-3587
SELECT + 90 AS col1, - COUNT( * ) AS col2 FROM tab1
----
90
-3

skipif mysql # not compatible
query II rowsort label-3587
SELECT + 90 AS col1, - COUNT ( * ) AS col2 FROM tab1
----
90
-3

query I rowsort
SELECT - col0 * + + col2 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3589
SELECT + + col0 + CAST( NULL AS DECIMAL ) * - + 43 FROM tab2 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT + + col0 + CAST ( NULL AS REAL ) * - + 43 FROM tab2 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( ( + 13 ) ) FROM tab1
----
-13
-13
-13

query I rowsort
SELECT - 86 * - + col2 FROM tab0
----
4042
8514
860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3592
SELECT 99 DIV + COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3592
SELECT 99 / + COUNT ( * ) FROM tab1
----
33

query II rowsort
SELECT ALL - col1, col0 FROM tab1 WHERE NOT col1 IS NULL
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT ALL COUNT( * ) AS col0, SUM( - + col2 ) AS col2 FROM tab0
----
3
-156

skipif mysql # not compatible
query II rowsort label-3594
SELECT ALL COUNT ( * ) AS col0, SUM ( - + col2 ) AS col2 FROM tab0
----
3
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT - COUNT( * ) * 86 AS col2 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT - COUNT ( * ) * 86 AS col2 FROM tab2
----
-258

onlyif mysql # DIV for integer division: 
query II rowsort label-3596
SELECT col0 AS col1, + 40 DIV 70 + 84 + + col1 FROM tab2
----
46
135
64
161
75
151

skipif mysql # not compatible
query II rowsort label-3596
SELECT col0 AS col1, + 40 / 70 + 84 + + col1 FROM tab2
----
46
135
64
161
75
151

query II rowsort
SELECT col0, col0 * col2 * + col0 FROM tab2 AS cor0
----
46
48668
64
163840
75
326250

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 + + + col0, + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3599
SELECT ALL 75, 23 DIV - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
75
7

skipif mysql # not compatible
query II rowsort label-3599
SELECT ALL 75, 23 / - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
75
7

query I rowsort
SELECT DISTINCT - - col0 * 78 * + + col0 AS col0 FROM tab0 AS cor0
----
17550
590382
733902

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - COUNT( * ) * + 1 + - + 30 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3601
SELECT - COUNT ( * ) * + 1 + - + 30 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT COUNT( * ) * - MAX( ALL col0 ) col1 FROM tab0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3602
SELECT COUNT ( * ) * - MAX ( ALL col0 ) col1 FROM tab0
----
-291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3603
SELECT DISTINCT - COUNT( * ) DIV MIN( + col2 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT - COUNT ( * ) / MIN ( + col2 ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 * + col0 + col1 col1 FROM tab0 AS cor0
----
3588
3978
696

query I rowsort
SELECT col1 * + + 83 * + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-122425
-12467596
-1561728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( 17 ) col1, 49 AS col2 FROM tab2 AS cor0
----
17
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL COUNT( * ) + + 35 - - 20 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL COUNT ( * ) + + 35 - - 20 FROM tab2
----
58

query I rowsort
SELECT 62 + + + col0 + + col0 - - col1 FROM tab2
----
205
267
279

query I rowsort
SELECT ALL 10 + col1 FROM tab1
----
15
24
57

query I rowsort
SELECT ALL + + col2 - - + 23 + col1 FROM tab2 cor0
----
140
148
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - MIN( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3611
SELECT - MIN ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col1 * - - 87 + + col0 - col1 * + 56 col0 FROM tab1 AS cor0
----
36780
369558
61385

query I rowsort
SELECT DISTINCT - 13 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( - col2 * - col1 + 16 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT - 98 DIV + COUNT( * ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-3615
SELECT - 98 / + COUNT ( * ) FROM tab2
----
-32

query I rowsort
SELECT ALL col0 - 85 * + 36 AS col1 FROM tab2
----
-2985
-2996
-3014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3617
SELECT - COUNT( * ) DIV MAX( DISTINCT ( - col2 ) * - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT - COUNT ( * ) / MAX ( DISTINCT ( - col2 ) * - col2 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( col1 * + 58 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( col1 * + 58 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT MAX( ALL 37 ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT MAX ( ALL 37 ) FROM tab2
----
37

query I rowsort
SELECT 16 - col0 FROM tab1
----
-35
-69
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + MIN( ALL + col2 ) AS col2 FROM tab0 WHERE NOT ( 18 ) + col2 = ( - 79 * - 51 )
----
10

skipif mysql # not compatible
query I rowsort label-3621
SELECT + MIN ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT ( 18 ) + col2 = ( - 79 * - 51 )
----
10

query I rowsort
SELECT - AVG ( ALL col1 ) AS col2 FROM tab2 WHERE 26 = ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT ALL + 72 DIV col2 + 19 FROM tab1
----
19
20
20

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 72 / col2 + 19 FROM tab1
----
19
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL - SUM( ALL - ( - col2 ) ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - SUM ( ALL - ( - col2 ) ) AS col0 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 79 ) BETWEEN - col0 * 53 AND + col2
----

query I rowsort
SELECT ( 68 ) FROM tab0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT MIN( DISTINCT 79 ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-3627
SELECT MIN ( DISTINCT 79 ) AS col0 FROM tab2
----
79

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( ( + col2 ) ) IS NULL
----
14
47
5

query I rowsort
SELECT col2 + col2 FROM tab2 WHERE NOT NULL IN ( - col0 * + 93 + + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) IN ( col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 5 * - 17 BETWEEN - 27 / - col0 AND ( - col1 - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT DISTINCT - MAX( + 38 ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT - MAX ( + 38 ) FROM tab0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT SUM( ALL + 30 ) + COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3634
SELECT SUM ( ALL + 30 ) + COUNT ( * ) FROM tab2
----
93

query I rowsort
SELECT DISTINCT 88 * 61 - - 30 FROM tab1
----
5398

query I rowsort
SELECT DISTINCT ( + 81 ) AS col1 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3637
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 + + col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3637
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 + + col2 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + MIN( 48 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3638
SELECT + MIN ( 48 ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - col0 + - 20 FROM tab2
----
-66
-84
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 47 ) NOT BETWEEN - 7 AND ( NULL )
----

query I rowsort
SELECT + 23 * 40 + 53 FROM tab2 AS cor0
----
973
973
973

query I rowsort
SELECT 24 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
1238
2045
2231

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 95 NOT BETWEEN col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT COUNT( * ) + - 13 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3644
SELECT COUNT ( * ) + - 13 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 70 col0 FROM tab0 AS cor0
----
-23
-60
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT - - col0 + + CAST( NULL AS SIGNED ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT - - col0 + + CAST ( NULL AS INTEGER ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 * + col1 ) < + ( - ( 69 ) ) / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT 80 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT 80 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT - SUM( DISTINCT col2 ) + COUNT( * ) AS col2 FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT - SUM ( DISTINCT col2 ) + COUNT ( * ) AS col2 FROM tab2
----
-118

query I rowsort
SELECT 25 AS col0 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col0 + col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 + col0 col1 FROM tab1
----
46
80
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT CAST( NULL AS SIGNED ) / + + 73 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT CAST ( NULL AS INTEGER ) / + + 73 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( ( + col0 ) + - col2 * - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - MIN( ALL + - col2 ) + + 34 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - MIN ( ALL + - col2 ) + + 34 FROM tab2
----
92

query I rowsort
SELECT col0 * + + 23 * col1 - - 37 - col1 AS col0 FROM tab2 AS cor0
----
113304
115545
53944

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND ( ( 80 ) ) BETWEEN ( - col1 + col1 ) AND ( col0 * - col1 - col2 * - col0 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ( + 97 ) * MIN( + col2 ) - MIN( 45 ) FROM tab1 AS cor0
----
5678

skipif mysql # not compatible
query I rowsort label-3658
SELECT ( + 97 ) * MIN ( + col2 ) - MIN ( 45 ) FROM tab1 AS cor0
----
5678

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT DISTINCT - - 92 - - col0 - ( col1 + ( - 65 ) DIV col2 ) * col2 AS col2 FROM tab0 cor0
----
-3653
29
90

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT - - 92 - - col0 - ( col1 + ( - 65 ) / col2 ) * col2 AS col2 FROM tab0 cor0
----
-3653
29
90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3660
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3660
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) > NULL
----

query I rowsort
SELECT + col0 + 40 AS col1 FROM tab2
----
104
115
86

query I rowsort
SELECT - 92 * + - col1 FROM tab0
----
1932
7452
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT COUNT( * ) AS col2, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3663
SELECT COUNT ( * ) AS col2, COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT ALL - col2 col1 FROM tab0 AS cor0 WHERE NOT CAST( - - col2 AS SIGNED ) > col0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3664
SELECT ALL - col2 col1 FROM tab0 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) > col0
----
-10

query I rowsort
SELECT DISTINCT - col2 * - col0 + - - col2 + col1 FROM tab0 AS cor0
----
833
901
9703

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT - 91 DIV - - ( 2 ) AS col2 FROM tab1 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 91 / - - ( 2 ) AS col2 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT + col0 * - col2 * 24 FROM tab1 AS cor0
----
-117504
-120360
-148512

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 - - col0 * + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT - + MAX( ALL ( - col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT - + MAX ( ALL ( - col1 ) ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN col0 + + col0 AND + col2 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 AS col2, col2 * + - col2 - col0 AS col1 FROM tab0 AS cor0
----
-15
-2224
-87
-187
-97
-9898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT - col2 - - col0 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN - ( col0 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3672
SELECT - col2 - - col0 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN - ( col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT COUNT( ALL + col1 ) * 87 AS col2 FROM tab0 WHERE NOT + ( + col0 ) * col2 + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT COUNT ( ALL + col1 ) * 87 AS col2 FROM tab0 WHERE NOT + ( + col0 ) * col2 + col1 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3674
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + + 45 * CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-3674
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + + 45 * CAST ( NULL AS INTEGER ) AND + col0
----

query I rowsort
SELECT DISTINCT - col2 * - - 28 FROM tab1
----
-1652
-1904
-2688

query II rowsort
SELECT col0 * + 53 AS col0, col2 FROM tab0
----
4611
10
5141
99
795
47

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( - col1 / + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * 3 AS col2 FROM tab0 WHERE ( - col2 ) >= NULL
----

query I rowsort
SELECT ALL - col1 * - 9 AS col1 FROM tab2 WHERE + + ( - + col0 ) IN ( + 39 / 74 )
----

query I rowsort
SELECT col0 * - 5 * + + col2 AS col2 FROM tab1 AS cor0
----
-24480
-25075
-30940

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col2 <> + col0 )
----

query I rowsort
SELECT + 78 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT col2 + - - ( col1 ) FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 - - col1 FROM tab1 AS cor0 WHERE col2 - col2 - col2 / - + col1 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3687
SELECT ALL - - CAST( NULL AS DECIMAL ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - - CAST ( NULL AS REAL ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 - + 37 FROM tab0 AS cor0
----
-124
-134
-52

query I rowsort
SELECT - 3 - + 40 + 39 * col1 AS col0 FROM tab0 cor0
----
-4
3116
776

query I rowsort
SELECT + ( - col0 ) + + 16 FROM tab2 AS cor0
----
-30
-48
-59

query I rowsort
SELECT ALL 98 * - col1 AS col1 FROM tab1
----
-1372
-4606
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + MIN( - col0 ) + + - MIN( DISTINCT + 86 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-3692
SELECT + MIN ( - col0 ) + + - MIN ( DISTINCT + 86 ) FROM tab1
----
-177

query I rowsort
SELECT DISTINCT 30 + 76 + col0 AS col1 FROM tab0
----
121
193
203

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( - 50 ) + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( - 50 ) + COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3695
SELECT - 68 - + 5 - - + 36 * - col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 68 - + 5 - - + 36 * - col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3696
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> col2 + - - 2 - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3696
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> col2 + - - 2 - - CAST ( NULL AS REAL )
----

query I rowsort
SELECT + col0 * + - col0 AS col2 FROM tab1 WHERE + 85 IS NULL
----

query II rowsort
SELECT - col1 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL 64 * - col0 + + col2 - - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-3021
-5237
-5597

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT - COUNT( * ), - 19 col1 FROM tab2 AS cor0
----
-3
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3700
SELECT - COUNT ( * ), - 19 col1 FROM tab2 AS cor0
----
-3
-19

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - 63 ) >= + - col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3702
SELECT ALL col0 * - col1 + 80 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL col0 * - col1 + 80 / - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 83 * + + col1 AS col1, col0 AS col0 FROM tab2
----
4233
46
5561
75
6391
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL + MIN( DISTINCT + col2 ) * - + 83 FROM tab2
----
-1909

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + MIN ( DISTINCT + col2 ) * - + 83 FROM tab2
----
-1909

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT - ( MIN( ALL + col0 ) ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-3705
SELECT - ( MIN ( ALL + col0 ) ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3706
SELECT - - CAST( - col2 AS SIGNED ) AS col0, - col0 col1 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3706
SELECT - - CAST ( - col2 AS INTEGER ) AS col0, - col0 col1 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT + 17 FROM tab2 AS cor0 WHERE NOT NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3708
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT col1 * + CAST( NULL AS SIGNED ) * + ( + - col1 ) BETWEEN NULL AND ( 76 ) )
----

skipif mysql # not compatible
query III rowsort label-3708
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT col1 * + CAST ( NULL AS INTEGER ) * + ( + - col1 ) BETWEEN NULL AND ( 76 ) )
----

query I rowsort
SELECT ALL + col2 * + - ( - col0 ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT ALL col1 * + col2 * - 96 AS col0 FROM tab0
----
-20160
-365472
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT + COUNT( DISTINCT 82 ) + + 82 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + COUNT ( DISTINCT 82 ) + + 82 FROM tab1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3713
SELECT 61 * col2 DIV 31 FROM tab1
----
116
133
188

skipif mysql # not compatible
query I rowsort label-3713
SELECT 61 * col2 / 31 FROM tab1
----
116
133
188

query I rowsort
SELECT DISTINCT - ( - 53 ) AS col2 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NOT + ( 50 ) >= - 12 / col0 * col1
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NOT + ( 50 ) >= - 12 / col0 * col1
----
0

query II rowsort
SELECT - + col1, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 * col0 col0 FROM tab0 AS cor0
----
1050
6090
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3718
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 98 * - col0 col2 FROM tab1 AS cor0
----
-4902
-8271
-8850

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL - MAX( DISTINCT - col1 ) + + + 63 AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - MAX ( DISTINCT - col1 ) + + + 63 AS col0 FROM tab0 AS cor0
----
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - col2 = NULL
----

query I rowsort
SELECT 51 + - - 24 AS col0 FROM tab0 AS cor0 WHERE - col0 + ( + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 * - col2 * ( 28 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT + SUM( DISTINCT - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + SUM ( DISTINCT - col0 ) FROM tab1
----
-227

query II rowsort
SELECT ALL col2 AS col1, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3726
SELECT - COUNT( * ) DIV + - COUNT( - - col1 ) - 1 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3726
SELECT - COUNT ( * ) / + - COUNT ( - - col1 ) - 1 col2 FROM tab2
----
0

query I rowsort
SELECT + 79 - - col2 FROM tab2
----
102
119
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT + 94 DIV 26 * + col0 - - col0 AS col0 FROM tab2
----
184
256
300

skipif mysql # not compatible
query I rowsort label-3728
SELECT + 94 / 26 * + col0 - - col0 AS col0 FROM tab2
----
184
256
300

query II rowsort
SELECT DISTINCT + col1, - ( + col1 ) AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL col2 + - + col0 * + col0 * - 65 FROM tab1
----
169161
469684
538333

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT MAX( - 87 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT MAX ( - 87 ) FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL - SUM( - 44 ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL - SUM ( - 44 ) FROM tab0 AS cor0
----
132

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) <= 35
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 84 ) col2 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 >= ( - 21 )
----
51
67
77

query I rowsort
SELECT DISTINCT col1 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3740
SELECT DISTINCT COUNT( * ) DIV + - CAST( 83 AS SIGNED ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT COUNT ( * ) / + - CAST ( 83 AS INTEGER ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3741
SELECT - col2 DIV + + CAST( + 13 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-3741
SELECT - col2 / + + CAST ( + 13 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1
-3
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + 68 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + + 23 IS NOT NULL
----

query I rowsort
SELECT ALL + 94 * + col2 + - col0 AS col2 FROM tab0
----
4403
853
9209

query I rowsort
SELECT ( - col0 ) * col0 AS col2 FROM tab1 AS cor0 WHERE col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT 5 > NULL ) OR 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT COUNT( * ) * - - 54 * COUNT( * ) FROM tab1
----
486

skipif mysql # not compatible
query I rowsort label-3748
SELECT COUNT ( * ) * - - 54 * COUNT ( * ) FROM tab1
----
486

query II rowsort
SELECT DISTINCT 40 AS col1, - 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
40
-71

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - col0 + col0 IS NULL
----

query I rowsort
SELECT - col1 - - 2 * + 31 * - col0 AS col0 FROM tab2 AS cor0
----
-2903
-4045
-4717

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL COUNT( + 62 ) * + + COUNT( * ) - + SUM( DISTINCT + ( - col2 ) ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL COUNT ( + 62 ) * + + COUNT ( * ) - + SUM ( DISTINCT + ( - col2 ) ) FROM tab0 AS cor0
----
165

query I rowsort
SELECT 83 - - - col1 AS col0 FROM tab2 cor0
----
16
32
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3754
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + CAST( col0 AS DECIMAL ) + 12 )
----

skipif mysql # not compatible
query III rowsort label-3754
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + CAST ( col0 AS REAL ) + 12 )
----

query I rowsort
SELECT ALL - - 56 - + col2 AS col0 FROM tab0 AS cor0
----
-43
46
9

query II rowsort
SELECT ALL + - 8 - + 4 + - col0, - col2 AS col0 FROM tab2 cor0
----
-58
-23
-76
-40
-87
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT 19 + + 72 DIV + + MAX( col2 ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3757
SELECT 19 + + 72 / + + MAX ( col2 ) FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + COUNT( * ) + 24 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3759
SELECT + COUNT ( * ) + 24 FROM tab0 AS cor0
----
27

query II rowsort
SELECT DISTINCT col1, 87 FROM tab0 AS cor0
----
1
87
21
87
81
87

query I rowsort
SELECT col1 + + + col2 AS col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + 69 + + + MIN( DISTINCT + col1 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-3762
SELECT + 69 + + + MIN ( DISTINCT + col1 ) FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - 39 + + ( + + COUNT( * ) ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-3763
SELECT - 39 + + ( + + COUNT ( * ) ) FROM tab2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT + col2 * col0 + - col1 DIV - col1 FROM tab0
----
706
871
9604

skipif mysql # not compatible
query I rowsort label-3764
SELECT + col2 * col0 + - col1 / - col1 FROM tab0
----
706
871
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - SUM( ALL + 86 ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - SUM ( ALL + 86 ) FROM tab2
----
-258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT - MAX( + col1 ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT - MAX ( + col1 ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT - COUNT( * ) * + 73 * + ( 86 ) col1 FROM tab1
----
-18834

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3767
SELECT DISTINCT - COUNT ( * ) * + 73 * + ( 86 ) col1 FROM tab1
----
-18834

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + - 73 / ( + col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT ( ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - - 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + - col0 * 32 AS col0 FROM tab1 AS cor0
----
-1632
-2720
-2912

query I rowsort
SELECT ALL 65 * - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3835
-4420
-6240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3773
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3773
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + - 57 * + COUNT( * ) * 49 + + 67 AS col1 FROM tab0 AS cor0
----
-8312

skipif mysql # not compatible
query I rowsort label-3774
SELECT + - 57 * + COUNT ( * ) * 49 + + 67 AS col1 FROM tab0 AS cor0
----
-8312

query I rowsort
SELECT + + col1 FROM tab1 WHERE + col2 + - ( - 48 ) <= + 7
----

query I rowsort
SELECT DISTINCT 16 + - - col1 FROM tab2
----
67
83
93

query I rowsort
SELECT ALL - col2 * - - 15 AS col2 FROM tab2
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT 33 AS col1, COUNT( * ) AS col0 FROM tab0
----
33
3

skipif mysql # not compatible
query II rowsort label-3778
SELECT 33 AS col1, COUNT ( * ) AS col0 FROM tab0
----
33
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 64 <> 6 / col1 + - col2 + - 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3780
SELECT - MIN( DISTINCT + 5 ) - + 77 DIV + + 46 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-3780
SELECT - MIN ( DISTINCT + 5 ) - + 77 / + + 46 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + col1, + col1 col0 FROM tab1
----
138
47
65
14
90
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - col0 ) col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT - col0 + + 1 AS col2 FROM tab1
----
-50
-84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT SUM( + - 58 ) AS col2 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-3785
SELECT SUM ( + - 58 ) AS col2 FROM tab0 AS cor0
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2 - + col1 AS col0, - ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-110
96
-115
68
-64
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT - + SUM( - col2 ), COUNT( * ) col1 FROM tab0 cor0
----
156
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3788
SELECT - + SUM ( - col2 ), COUNT ( * ) col1 FROM tab0 cor0
----
156
3

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + col1 + + col2 > - 54
----

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 * - col0 * + col2 + - col1 AS col0 FROM tab2
----
46
53907
64
197043
75
291383

onlyif mysql # DIV for integer division: 
query II rowsort label-3791
SELECT + 89 AS col1, + 60 DIV 84 FROM tab0
----
89
0
89
0
89
0

skipif mysql # not compatible
query II rowsort label-3791
SELECT + 89 AS col1, + 60 / 84 FROM tab0
----
89
0
89
0
89
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3792
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col1 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3792
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col1 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 75 * + col2 AS col1 FROM tab2
----
1725
3000
4350

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 37 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3795
SELECT ALL CAST( NULL AS SIGNED ) / - 68 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL CAST ( NULL AS INTEGER ) / - 68 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3796
SELECT + MIN( - - col2 ) DIV - COUNT( * ) AS col1 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-3796
SELECT + MIN ( - - col2 ) / - COUNT ( * ) AS col1 FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT 45 + + COUNT( ALL + + 8 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
45

skipif mysql # not compatible
query I rowsort label-3797
SELECT 45 + + COUNT ( ALL + + 8 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
45

query II rowsort
SELECT DISTINCT + col0, 16 AS col1 FROM tab1 AS cor0
----
51
16
85
16
91
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT ALL + + 0 * COUNT( * ) DIV + 91 * 15 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL + + 0 * COUNT ( * ) / + 91 * 15 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT DISTINCT col1 + + + CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT col1 + + + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + + ( 2 ) AS col0 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3803
SELECT - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( ( NOT NULL <> NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT 62 AS col0, COUNT( * ) * 89 * + COUNT( * ) FROM tab0
----
62
801

skipif mysql # not compatible
query II rowsort label-3805
SELECT 62 AS col0, COUNT ( * ) * 89 * + COUNT ( * ) FROM tab0
----
62
801

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col1 * - + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + - 29 ) + - + col0 + - col1 + col1 * - col1 FROM tab2
----
-2669
-4602
-6041

query I rowsort
SELECT - 41 + - + 70 AS col0 FROM tab2
----
-111
-111
-111

query I rowsort
SELECT + 59 + - 51 FROM tab1
----
8
8
8

query I rowsort
SELECT ALL - col1 + + + 21 AS col1 FROM tab2
----
-30
-46
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT 14 + + COUNT( * ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-3811
SELECT 14 + + COUNT ( * ) AS col1 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT 13 + + - COUNT( * ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT 13 + + - COUNT ( * ) AS col0 FROM tab1
----
10

query I rowsort
SELECT ALL - col0 * col2 * + 86 * 32 FROM tab0 WHERE 80 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 32 AS col1 FROM tab0 AS cor0
----
2592
32
672

query II rowsort
SELECT - col1, + 33 * - + col0 AS col1 FROM tab2 AS cor0
----
-51
-1518
-67
-2475
-77
-2112

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT - 24 DIV - 32 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3816
SELECT - 24 / - 32 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - + COUNT( * ) - - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT - + COUNT ( * ) - - COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - 3 * - col0 * + + col2 FROM tab0 AS cor0
----
2115
2610
28809

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT - SUM( - 81 ) FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3822
SELECT - SUM ( - 81 ) FROM tab2 AS cor0
----
243

query I rowsort
SELECT ALL - col1 * + - 66 FROM tab1 AS cor0
----
3102
330
924

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3824
SELECT - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3825
SELECT ALL * FROM tab0 AS cor0 WHERE - 86 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3825
SELECT ALL * FROM tab0 AS cor0 WHERE - 86 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + MAX( - 98 ) FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3826
SELECT + MAX ( - 98 ) FROM tab2 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3827
SELECT ALL + col0 * - 23 AS col0, + 60 / - CAST( NULL AS SIGNED ) - + col0 FROM tab1
----
-1173
NULL
-1955
NULL
-2093
NULL

skipif mysql # not compatible
query II rowsort label-3827
SELECT ALL + col0 * - 23 AS col0, + 60 / - CAST ( NULL AS INTEGER ) - + col0 FROM tab1
----
-1173
NULL
-1955
NULL
-2093
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 41 BETWEEN 26 * ( + + col2 ) + - ( col0 ) + + - col2 AND + 44 / - 27 / col1 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT COUNT( * ) DIV + 45 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3829
SELECT COUNT ( * ) / + 45 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT ALL + COUNT( * ) * COUNT( 88 ) DIV - MAX( ALL + col2 ) * 45 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + COUNT ( * ) * COUNT ( 88 ) / - MAX ( ALL + col2 ) * 45 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - CAST( - 65 AS SIGNED ) * col0 - - 46 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - CAST ( - 65 AS INTEGER ) * col0 - - 46 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE - col1 IS NOT NULL
----
-3

query I rowsort
SELECT - 54 * + - 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eb0be5e4f8ba3bf1fc8a30b6c71088c6

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + 75 + - COUNT( ALL - - 44 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-3835
SELECT + 75 + - COUNT ( ALL - - 44 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - COUNT( * ) + - 38 AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3836
SELECT - COUNT ( * ) + - 38 AS col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT col0 + - 21 FROM tab2 AS cor0
----
25
43
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL COUNT( - - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL COUNT ( - - col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 + + 34 AS col2 FROM tab2 AS cor0
----
-12
-30
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT COUNT( * ) AS col2 FROM tab2 WHERE - 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE - 27 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT ALL col2 / CAST( + 84 AS SIGNED ) * col2 * + + col1 + - + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL col2 / CAST ( + 84 AS INTEGER ) * col2 * + + col1 + - + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL 4 + COUNT( * ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL 4 + COUNT ( * ) AS col0 FROM tab2
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + + + col1 col2, + 32 FROM tab1
----
138
32
65
32
90
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT ALL + 97 - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-2
50
87

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL + 97 - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-2
50
87

query I rowsort
SELECT + 56 AS col2 FROM tab0 AS cor0 WHERE + col0 + + col0 IS NULL
----

query I rowsort
SELECT - col2 - - col2 + - + 74 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT - 68 * - 96 FROM tab0 cor0
----
6528

query I rowsort
SELECT ALL col2 * + 77 * - col1 FROM tab2
----
-237160
-299222
-90321

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL 22 + COUNT( * ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL 22 + COUNT ( * ) AS col1 FROM tab0
----
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - 4 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3851
SELECT + ( - ( CAST( NULL AS SIGNED ) ) ), col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3851
SELECT + ( - ( CAST ( NULL AS INTEGER ) ) ), col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL SUM( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL SUM ( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + + col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col2 ) / - col1 + + 33 NOT BETWEEN ( NULL ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT DISTINCT + MAX( - - 69 ) AS col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT + MAX ( - - 69 ) AS col1 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT + + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3855
SELECT + + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 + - - 80 AND - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT DISTINCT COUNT( * ), - 41 AS col0 FROM tab2
----
3
-41

skipif mysql # not compatible
query II rowsort label-3857
SELECT DISTINCT COUNT ( * ), - 41 AS col0 FROM tab2
----
3
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL - SUM( DISTINCT 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - SUM ( DISTINCT 2 ) FROM tab1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT DISTINCT + 64 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + 64 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3860
SELECT col1 DIV + ( + 50 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3860
SELECT col1 / + ( + 50 ) AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT 1 FROM tab2 AS cor0 WHERE NOT - col2 * + 62 = col0
----
1
1
1

query I rowsort
SELECT ALL AVG ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 49 FROM tab0 AS cor0 WHERE NOT - 61 - col2 - - 88 / 27 <= 97
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL 68 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - ( - COUNT( ( - 15 ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3866
SELECT - ( - COUNT ( ( - 15 ) ) ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - col2 * 52 * - ( + 91 ) + - col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - col2 * 52 * - ( + 91 ) + - col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT MAX( DISTINCT col0 ) - 47 + MAX( + - col0 ) + + + COUNT( * ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3870
SELECT MAX ( DISTINCT col0 ) - 47 + MAX ( + - col0 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT ALL - col0 DIV 49 * - + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-15
-77
2

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - col0 / 49 * - + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-15
-77
2

query I rowsort
SELECT ALL col1 * - + 53 AS col2 FROM tab1 AS cor0
----
-2491
-265
-742

query I rowsort
SELECT + col1 + + - 97 FROM tab2
----
-20
-30
-46

query I rowsort
SELECT ( + col0 ) + - 62 AS col1 FROM tab0
----
-47
25
35

query II rowsort
SELECT ALL col1 AS col2, 95 AS col1 FROM tab2
----
51
95
67
95
77
95

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT col1 * 27 + col0, + col2 FROM tab0
----
124
99
2202
47
654
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 col1 FROM tab2 AS cor0
----
-96
-96
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + ( - 11 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + ( - 11 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 - - - col2 + col1 * + col2 FROM tab2 AS cor0
----
1104
2976
3753

query II rowsort
SELECT ALL + 29 AS col2, + col1 FROM tab1 AS cor0
----
29
14
29
47
29
5

query I rowsort
SELECT DISTINCT - + col0 - - 69 + + col2 AS col0 FROM tab1 AS cor0
----
114
43
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + MAX( ALL + - ( - 79 ) ) AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-3884
SELECT + MAX ( ALL + - ( - 79 ) ) AS col0 FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT + COUNT( ALL + col0 ), - COUNT( * ) + - COUNT( * ) + 36 AS col2 FROM tab0 AS cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-3885
SELECT + COUNT ( ALL + col0 ), - COUNT ( * ) + - COUNT ( * ) + 36 AS col2 FROM tab0 AS cor0
----
3
30

query I rowsort
SELECT DISTINCT - - 98 * - col1 - + + col0 FROM tab2 AS cor0
----
-5044
-6641
-7610

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3887
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + COUNT( * ) * - 87 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + COUNT ( * ) * - 87 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT + + 60 * + 99 FROM tab1 AS cor0
----
5940
5940
5940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab1 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + COUNT( ALL + 39 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3892
SELECT + COUNT ( ALL + 39 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - 68 * + col1 AS col0 FROM tab2
----
-3468
-4556
-5236

query I rowsort
SELECT DISTINCT + col1 * + 14 AS col2 FROM tab1
----
196
658
70

query I rowsort
SELECT ALL ( - - 55 ) FROM tab0
----
55
55
55

query II rowsort
SELECT ALL + 69 AS col2, - col0 FROM tab1
----
69
-51
69
-85
69
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col2, + col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT + 36 + + col0 DIV - + col0 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + 36 + + col0 / - + col0 FROM tab2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT DISTINCT + SUM( ALL + ( - - 83 ) ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + SUM ( ALL + ( - - 83 ) ) FROM tab1
----
249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3900
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 ) > NULL
----

query I rowsort
SELECT DISTINCT + 85 * + - col2 AS col0 FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT ALL + SUM( - + col1 ) DIV 82 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + SUM ( - + col1 ) / 82 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 45 AS col2 FROM tab2 WHERE NULL IS NULL
----
45
45
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) * + + ( - 71 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) * + + ( - 71 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3906
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL col1 + + col0 + col2 AS col2 FROM tab1 AS cor0
----
149
161
206

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - + col1 = col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 56 * + - 89 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL + - MIN( - col1 ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + - MIN ( - col1 ) AS col0 FROM tab1 cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col2 FROM tab0
----
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL SUM( ALL 56 ) AS col1 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL SUM ( ALL 56 ) AS col1 FROM tab2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT 32 AS col2 FROM tab1 WHERE - col0 * + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3914
SELECT 32 AS col2 FROM tab1 WHERE - col0 * + CAST ( NULL AS INTEGER ) < NULL
----

query II rowsort
SELECT + col1 - + col1 AS col2, 25 * - - 33 FROM tab1
----
0
825
0
825
0
825

query II rowsort
SELECT ALL 15 + 44 - col0 + - ( - col0 ), + col0 AS col0 FROM tab0
----
59
15
59
87
59
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - - MAX( 43 ) * - 88 + ( - + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3793

skipif mysql # not compatible
query I rowsort label-3918
SELECT - - MAX ( 43 ) * - 88 + ( - + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3793

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL COUNT( * ) * - + 0 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL COUNT ( * ) * - + 0 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT - COUNT( * ) AS col2, MIN( 99 ) FROM tab2 AS cor0
----
-3
99

skipif mysql # not compatible
query II rowsort label-3920
SELECT - COUNT ( * ) AS col2, MIN ( 99 ) FROM tab2 AS cor0
----
-3
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + col0 * - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - + col0, - col2 * + + col1, - col2, - 58 ) OR NOT NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3923
SELECT ALL 27, - 10 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
27
NULL
27
NULL
27
NULL

skipif mysql # not compatible
query II rowsort label-3923
SELECT ALL 27, - 10 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
27
NULL
27
NULL
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - MIN( DISTINCT - - 23 ) AS col1 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - MIN ( DISTINCT - - 23 ) AS col1 FROM tab0 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT CAST( 59 AS SIGNED ) FROM tab1
----
59
59
59

skipif mysql # not compatible
query I rowsort label-3925
SELECT CAST ( 59 AS INTEGER ) FROM tab1
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT ALL + ( - col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + ( - col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN 51 AND NULL
----
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) col2, col0 AS col1 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT 15 * + - col2 FROM tab2
----
-345
-600
-870

query I rowsort
SELECT DISTINCT + col2 + 72 AS col1 FROM tab0
----
119
171
82

query I rowsort
SELECT + - ( - col2 ) * - col0 + + col2 * - ( - + 15 ) FROM tab2 AS cor0
----
-1960
-3480
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT ALL 8 + + ( + - ( + col2 ) ) DIV - col1 AS col0 FROM tab0
----
107
8
8

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL 8 + + ( + - ( + col2 ) ) / - col1 AS col0 FROM tab0
----
107
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT ALL - CAST( col0 AS SIGNED ) + + 72 AS col1 FROM tab0 AS cor0
----
-15
-25
57

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - CAST ( col0 AS INTEGER ) + + 72 AS col1 FROM tab0 AS cor0
----
-15
-25
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT + 41 - - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3934
SELECT + 41 - - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
41

query II rowsort
SELECT DISTINCT - + 95 AS col1, 95 AS col0 FROM tab0 AS cor0
----
-95
95

query I rowsort
SELECT - + 95 + + col1 - + ( + col0 ) FROM tab0 AS cor0
----
-161
-191
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - - 50 * 90 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
4503

skipif mysql # not compatible
query I rowsort label-3937
SELECT - - 50 * 90 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
4503

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3938
SELECT DISTINCT col1 * + 76 AS col0, + CAST( col1 AS SIGNED ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
3876
NULL
5092
NULL
5852
NULL

skipif mysql # not compatible
query II rowsort label-3938
SELECT DISTINCT col1 * + 76 AS col0, + CAST ( col1 AS INTEGER ) + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
3876
NULL
5092
NULL
5852
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3939
SELECT - col0 + - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3939
SELECT - col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 93 - - col0 FROM tab2
----
139
157
168

query I rowsort
SELECT ALL col0 * col1 * - col1 * - col1 AS col0 FROM tab0
----
7971615
805707
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT + - COUNT( - + col1 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3943
SELECT + - COUNT ( - + col1 ) col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) col2 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - SUM( DISTINCT + 52 ) AS col2 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3945
SELECT - SUM ( DISTINCT + 52 ) AS col2 FROM tab2 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col2 FROM tab2
----
-98
-98
-98

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - 76 * - 54 FROM tab2 AS cor0 WHERE NOT NULL IN ( 15 + - col0, col0 + + 83, 72, - - col1 * + + col1 + - col1 * - 27, + - col2 + + - col0 + + col0, 45 )
----

query I rowsort
SELECT + 15 * col1 * col0 FROM tab1 AS cor0
----
10710
6375
64155

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL <> NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT + - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3951
SELECT + - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT DISTINCT - COUNT( - - col1 ) AS col0, - 22 AS col0 FROM tab1 AS cor0
----
-3
-22

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT - COUNT ( - - col1 ) AS col0, - 22 AS col0 FROM tab1 AS cor0
----
-3
-22

query I rowsort
SELECT - 80 + - 62 * - + 58 FROM tab1 AS cor0
----
3516
3516
3516

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT ALL - 87 DIV col0 + + col0 * - - col0 col1 FROM tab0
----
220
7568
9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3954
SELECT ALL - 87 / col0 + + col0 * - - col0 col1 FROM tab0
----
220
7568
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT COUNT( * ) + + 9 + + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT COUNT ( * ) + + 9 + + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2
----
12

query I rowsort
SELECT ALL - + col1 - - - col0 * + 90 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4604
-7655
-8237

query II rowsort
SELECT DISTINCT col1 + ( - 57 ) AS col2, + 17 FROM tab1
----
-10
17
-43
17
-52
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab1
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT + + ( + COUNT( * ) ) + - - 70 col0 FROM tab0 AS cor0 WHERE col2 / - 22 IS NOT NULL
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3959
SELECT + + ( + COUNT ( * ) ) + - - 70 col0 FROM tab0 AS cor0 WHERE col2 / - 22 IS NOT NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - COUNT( * ) + - - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - COUNT ( * ) + - - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col2 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL 92 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - 29 + + 4 * + 46 FROM tab1
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT - col0 + col2 + + + 85 * + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT - col0 + col2 + + + 85 * + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT ALL - ( + CAST( + 91 AS SIGNED ) ) - + 65 FROM tab1
----
-156
-156
-156

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - ( + CAST ( + 91 AS INTEGER ) ) - + 65 FROM tab1
----
-156
-156
-156

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT - CAST( ( - + 29 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-3968
SELECT - CAST ( ( - + 29 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT col2 * 28 FROM tab1 AS cor0 WHERE ( col1 / + + col0 ) IS NOT NULL
----
1652
1904
2688

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT ALL + + 4 DIV - col2 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL + + 4 / - col2 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT ALL + col0 * + + col1 + + - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL + col0 * + + col1 + + - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + 5 BETWEEN NULL AND 67
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 85 * + col1 * 64 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col1 - col2 AS col2 FROM tab0
----
-100
-451
-6608

query I rowsort
SELECT 40 * ( - 67 ) * + 10 FROM tab2
----
-26800
-26800
-26800

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 NOT IN ( 86, + ( - + col0 ), + + col0 )
----

query I rowsort
SELECT DISTINCT + col0 * 69 FROM tab1
----
3519
5865
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT COUNT( * ) * - 58 AS col1 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-3978
SELECT COUNT ( * ) * - 58 AS col1 FROM tab2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT + MIN( DISTINCT + + col1 ) * - 8 + + 65 * COUNT( * ) AS col1 FROM tab1
----
155

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + MIN ( DISTINCT + + col1 ) * - 8 + + 65 * COUNT ( * ) AS col1 FROM tab1
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3980
SELECT ALL + 30 DIV - COUNT( * ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + 30 / - COUNT ( * ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT + col1 * col2 * col2 AS col0 FROM tab0
----
178929
2100
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT DISTINCT ( - col0 ) DIV + + 16 AS col2 FROM tab0
----
-5
-6
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT ( - col0 ) / + + 16 AS col2 FROM tab0
----
-5
-6
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT SUM( ( - + col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3984
SELECT SUM ( ( - + col2 ) ) FROM tab0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col2 ) + + - ( col1 ) * - 14 * col1 - + 81 IS NULL
----

query II rowsort
SELECT ALL - col0, col0 + + - col1 AS col1 FROM tab2
----
-46
-5
-64
-13
-75
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 41 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query II rowsort
SELECT + col2 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT - 34 NOT BETWEEN + col0 + col1 + + ( + col0 ) AND NULL
----

query I rowsort
SELECT ALL - 7 * + ( - col2 ) FROM tab0
----
329
693
70

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT 56 * - MIN( DISTINCT + + ( + col2 ) ) FROM tab1
----
-3304

skipif mysql # not compatible
query I rowsort label-3993
SELECT 56 * - MIN ( DISTINCT + + ( + col2 ) ) FROM tab1
----
-3304

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3994
SELECT + col0 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3994
SELECT + col0 FROM tab0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT ALL + CAST( col1 AS SIGNED ) + col2 AS col2 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL + CAST ( col1 AS INTEGER ) + col2 AS col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT - MAX( ALL + 28 ) FROM tab1 WHERE NOT ( col0 IS NULL )
----
-28

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT - MAX ( ALL + 28 ) FROM tab1 WHERE NOT ( col0 IS NULL )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT CAST( + - ( + - col2 ) AS SIGNED ) * + 62 + 14 FROM tab2
----
1440
2494
3610

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT CAST ( + - ( + - col2 ) AS INTEGER ) * + 62 + 14 FROM tab2
----
1440
2494
3610

query I rowsort
SELECT - + 10 FROM tab1 WHERE - - 85 + + col2 + col2 * col2 IS NOT NULL
----
-10
-10
-10

query I rowsort
SELECT col1 * - col2 + - + 8 + - col1 AS col0 FROM tab1 cor0
----
-1366
-308
-3251

query I rowsort
SELECT - 59 / col2 + - col2 FROM tab1 AS cor0 WHERE - col1 + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + COUNT( + - col2 ) * + - ( 10 ) AS col1 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4001
SELECT + COUNT ( + - col2 ) * + - ( 10 ) AS col1 FROM tab2 AS cor0
----
-30

query II rowsort
SELECT ( + + ( col0 ) ) AS col1, 8 AS col2 FROM tab2
----
46
8
64
8
75
8

query I rowsort
SELECT DISTINCT 80 + col2 FROM tab2
----
103
120
138

query I rowsort
SELECT - + 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 91 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4006
SELECT + col1 + + col0 DIV + 6, - col0 AS col0 FROM tab2 AS cor0
----
58
-46
79
-75
87
-64

skipif mysql # not compatible
query II rowsort label-4006
SELECT + col1 + + col0 / + 6, - col0 AS col0 FROM tab2 AS cor0
----
58
-46
79
-75
87
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT - MAX( DISTINCT - col2 ) * COUNT( * ) DIV + 55 + - - 64 FROM tab1 cor0
----
67

skipif mysql # not compatible
query I rowsort label-4007
SELECT - MAX ( DISTINCT - col2 ) * COUNT ( * ) / + 55 + - - 64 FROM tab1 cor0
----
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 75 * - col1 + col2 + - 55 NOT BETWEEN - + col0 + - + col0 / 59 * + - col1 AND + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, col2 col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4010
SELECT DISTINCT - COUNT( * ) AS col2, + 45 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4010
SELECT DISTINCT - COUNT ( * ) AS col2, + 45 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL SUM( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL SUM ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - 63 * - col2 AS col2 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT 71 * + col0 FROM tab0
----
1065
6177
6887

query I rowsort
SELECT ALL 13 * + + col0 AS col2 FROM tab0
----
1131
1261
195

query I rowsort
SELECT - col1 * - - col2 + + col2 / + - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 59 col1 FROM tab0
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL ( + + COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4017
SELECT ALL ( + + COUNT ( * ) ) col2 FROM tab2
----
3

query I rowsort
SELECT + ( 0 ) AS col2 FROM tab2 WHERE NOT - 47 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + 35 * + 44 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT + - 50 DIV - + col0 col0 FROM tab0 cor0
----
0
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4020
SELECT + - 50 / - + col0 col0 FROM tab0 cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT - MIN( + ( - col0 ) ) * - + COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4021
SELECT - MIN ( + ( - col0 ) ) * - + COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
-270

query I rowsort
SELECT + 70 * col2 FROM tab0
----
3290
6930
700

query I rowsort
SELECT ALL col2 + + + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT COUNT( * ) * - 77 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT COUNT ( * ) * - 77 FROM tab0 AS cor0
----
-231

query I rowsort
SELECT - col0 + - col2 * 17 FROM tab2 cor0
----
-1061
-437
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT COUNT( * ) * 73 * 48 + 98 + + - MAX( 18 ) - 61 AS col2 FROM tab0 AS cor0
----
10531

skipif mysql # not compatible
query I rowsort label-4026
SELECT COUNT ( * ) * 73 * 48 + 98 + + - MAX ( 18 ) - 61 AS col2 FROM tab0 AS cor0
----
10531

query I rowsort
SELECT + + 57 * ( + col2 ) + + 99 FROM tab2 cor0
----
1410
2379
3405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 + - - col2 * + 96 + + 8 col1 FROM tab1 AS cor0
----
5636
6500
9188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4029
SELECT - col1 + + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT - col1 + + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + COUNT( * ) + 2 * - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4030
SELECT + COUNT ( * ) + 2 * - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 18 AS col2 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT ALL - COUNT( * ) * COUNT( * ) + - ( + + 56 ) AS col2, 3 AS col0 FROM tab0
----
-65
3

skipif mysql # not compatible
query II rowsort label-4032
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - ( + + 56 ) AS col2, 3 AS col0 FROM tab0
----
-65
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - - COUNT( * ) + 34 col1 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4033
SELECT - - COUNT ( * ) + 34 col1 FROM tab1 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT col1 DIV + 96 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT col1 / + 96 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT COUNT( + 17 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4035
SELECT COUNT ( + 17 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4036
SELECT 43 DIV col0 col0, + CAST( col1 AS SIGNED ) * 82 AS col1 FROM tab2
----
0
4182
0
5494
0
6314

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4036
SELECT 43 / col0 col0, + CAST ( col1 AS INTEGER ) * 82 AS col1 FROM tab2
----
0
4182
0
5494
0
6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 * - col1 col2 FROM tab2 AS cor0
----
-2142
-2814
-3234

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT MAX( 49 ) col1 FROM tab2
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4039
SELECT MAX ( 49 ) col1 FROM tab2
----
49

query I rowsort
SELECT + col1 * - 3 * col0 AS col2 FROM tab2
----
-14784
-15075
-7038

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT DISTINCT - SUM( - - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT - SUM ( - - col0 ) AS col0 FROM tab2
----
-185

query I rowsort
SELECT - col0 * + 40 AS col1 FROM tab2
----
-1840
-2560
-3000

query II rowsort
SELECT 13, + col1 FROM tab1
----
13
14
13
47
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT + SUM( + - ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT + SUM ( + - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * col1 * - - 32 + - col1 FROM tab0 AS cor0
----
121743
3167
6699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT DISTINCT + - CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + - CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4047
SELECT * FROM tab0 WHERE ( - col0 ) >= ( - 59 + - CAST( 51 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4047
SELECT * FROM tab0 WHERE ( - col0 ) >= ( - 59 + - CAST ( 51 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * col1 FROM tab2 WHERE col1 + col2 > ( NULL )
----

query I rowsort
SELECT ALL col1 + - 90 AS col1 FROM tab2 WHERE - 97 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 0 >= ( col0 )
----

query I rowsort
SELECT DISTINCT col0 * 78 AS col0 FROM tab1 WHERE + col0 + - 61 IS NULL
----

query I rowsort
SELECT ALL + ( + col0 ) * + 43 AS col1 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT + 27 AS col1 FROM tab1 WHERE - col1 NOT IN ( 26 * 88 )
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE col2 * + col0 + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE col2 * + col0 + col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col0 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT ( - col2 ) BETWEEN col0 + - col0 * CAST( NULL AS SIGNED ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( - col2 ) BETWEEN col0 + - col0 * CAST ( NULL AS INTEGER ) AND ( NULL )
----
0

query I rowsort
SELECT + col0 / col0 + - 59 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - MAX( ALL 8 ) * + 8 AS col2 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-4060
SELECT - MAX ( ALL 8 ) * + 8 AS col2 FROM tab2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT DISTINCT - CAST( col0 AS SIGNED ) + + col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + + col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ( MAX( col1 ) ) * 76 AS col2 FROM tab0
----
6156

skipif mysql # not compatible
query I rowsort label-4062
SELECT ( MAX ( col1 ) ) * 76 AS col2 FROM tab0
----
6156

query I rowsort
SELECT ALL + col2 + 18 AS col1 FROM tab1
----
114
77
86

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col1 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - 48 * + COUNT( * ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-4065
SELECT - 48 * + COUNT ( * ) FROM tab2
----
-144

query I rowsort
SELECT col1 * - 84 AS col0 FROM tab1
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT 43 * - ( + COUNT( * ) ) AS col1 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4067
SELECT 43 * - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-129

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 40 * + 8 + ( col2 ) AND ( 74 )
----

query I rowsort
SELECT ALL - col2 * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 + - 96 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - 70 AS col0 FROM tab1 AS cor0
----
4130
4760
6720

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= 68
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4073
SELECT ALL CAST( NULL AS DECIMAL ) - col1 / CAST( col0 - - ( + col2 ) AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL CAST ( NULL AS REAL ) - col1 / CAST ( col0 - - ( + col2 ) AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT DISTINCT + 1 - CAST( + 12 AS SIGNED ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + 1 - CAST ( + 12 AS INTEGER ) FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT - 87 * - COUNT( * ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-4075
SELECT - 87 * - COUNT ( * ) FROM tab2 AS cor0
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT col1 DIV col1 + col2 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4076
SELECT col1 / col1 + col2 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
24
41
59

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT - 36 + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 73 NOT BETWEEN + 34 AND col1
----
64
77
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 69 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT - col2 DIV ( + col1 * - col1 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT - col2 / ( + col1 * - col1 ) FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT ALL - + 85 DIV 72 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - + 85 / 72 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + MIN( DISTINCT + 29 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4084
SELECT + MIN ( DISTINCT + 29 ) FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT + ( + CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4085
SELECT + ( + CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT MIN( 9 ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4086
SELECT MIN ( 9 ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT DISTINCT 49 * col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND ( 84 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT 49 * col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND ( 84 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL COUNT( - 23 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL COUNT ( - 23 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL + col0 + + 87 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN col0 AND - 22 + CAST( NULL AS SIGNED )
----
102
174
184

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + col0 + + 87 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN col0 AND - 22 + CAST ( NULL AS INTEGER )
----
102
174
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT MIN( ALL ( col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT MIN ( ALL ( col1 ) ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT CAST( 19 AS SIGNED ) AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT CAST ( 19 AS INTEGER ) AS col0 FROM tab0
----
19

query III rowsort
SELECT * FROM tab0 WHERE NOT 91 + - ( + 10 ) < ( - ( col0 ) - col0 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 60 + + ( - col1 ) ) <> NULL
----

query I rowsort
SELECT + 46 * + 30 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 31 NOT BETWEEN - col0 AND ( - col1 )
----
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * col1 <= - col1 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + col2 ) AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT - COUNT( DISTINCT + col1 ) * - 33 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) * - 33 FROM tab2 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT - col2 DIV - + col2 - 83 FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-4100
SELECT - col2 / - + col2 - 83 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL - + MAX( ALL + col0 ) * COUNT( + col1 * 3 - - 26 * + CAST( - col1 * - 32 AS SIGNED ) ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - + MAX ( ALL + col0 ) * COUNT ( + col1 * 3 - - 26 * + CAST ( - col1 * - 32 AS INTEGER ) ) FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> ( + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL MAX( ALL + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL >= ( 81 * 89 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT 99 * COUNT( * ) FROM tab2 cor0 WHERE + col0 + + + col2 NOT IN ( - 3 )
----
297

skipif mysql # not compatible
query I rowsort label-4106
SELECT 99 * COUNT ( * ) FROM tab2 cor0 WHERE + col0 + + + col2 NOT IN ( - 3 )
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT DISTINCT - COUNT( * ) AS col0, - MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
-3
-81

skipif mysql # not compatible
query II rowsort label-4107
SELECT DISTINCT - COUNT ( * ) AS col0, - MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
-3
-81

query I rowsort
SELECT col0 + - + col1 AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + col1 + + 29 - col2 FROM tab2 AS cor0
----
38
57
66

query I rowsort
SELECT DISTINCT + - 49 + + - 98 FROM tab2 AS cor0
----
-147

query I rowsort
SELECT - 91 + - col0 - - 40 - col1 * - col2 * col1 FROM tab0 AS cor0
----
-49
308301
4272

query I rowsort
SELECT 95 + - - col2 - - col2 AS col2 FROM tab0 AS cor0
----
115
189
293

query II rowsort
SELECT ALL 5 AS col1, col1 * 38 AS col1 FROM tab1 AS cor0
----
5
1786
5
190
5
532

query I rowsort
SELECT ALL + + col0 * 12 - - 88 * col1 - col1 FROM tab2 AS cor0
----
4989
6729
7467

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - SUM( col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4115
SELECT - SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL col1 + - col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > ( + col1 )
----
75
67
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) >= + col1
----

query I rowsort
SELECT ALL ( + - col1 ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 89 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT + 31 DIV - + 76 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT + 31 / - + 76 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col0 / - + 92 <= 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT SUM( DISTINCT - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4124
SELECT SUM ( DISTINCT - - col1 ) FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT col0 / CAST( NULL AS SIGNED ) FROM tab1 WHERE ( - 89 ) = ( + col2 ) * col1
----

skipif mysql # not compatible
query I rowsort label-4125
SELECT col0 / CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( - 89 ) = ( + col2 ) * col1
----

query I rowsort
SELECT col2 - - col2 + - 86 + + 42 AS col2 FROM tab0
----
-24
154
50

query I rowsort
SELECT DISTINCT col0 + + - 6 AS col2 FROM tab2
----
40
58
69

query III rowsort
SELECT * FROM tab0 WHERE col0 * - 77 <= NULL OR ( 28 ) IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT - + 73 DIV 51 * - col0 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-4129
SELECT - + 73 / 51 * - col0 col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT 95 FROM tab0 AS cor0 WHERE 57 BETWEEN + 3 * ( + col2 ) + - col0 * CAST( + col0 + CAST( NULL AS SIGNED ) * - 86 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT 95 FROM tab0 AS cor0 WHERE 57 BETWEEN + 3 * ( + col2 ) + - col0 * CAST ( + col0 + CAST ( NULL AS INTEGER ) * - 86 AS INTEGER ) AND NULL
----

query II rowsort
SELECT - 74, + col1 AS col0 FROM tab2 AS cor0
----
-74
51
-74
67
-74
77

query I rowsort
SELECT ALL - col1 * + col0 * + col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT + 35 * + col2 FROM tab2
----
1400
2030
805

query I rowsort
SELECT - 18 * + 1 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT + col1 * - - col0 AS col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + col0 + + + col2 <= ( - + 4 * col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 32 * - ( - col0 ) - col2 < NULL
----

query I rowsort
SELECT + col2 * - ( - col1 ) AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - 59 + - - col0 * col1 FROM tab2
----
2287
4869
4966

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4142
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT ALL - col0 * + ( - col1 ) + - 55 AS col0 FROM tab1
----
370
4222
659

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + COUNT( - - 13 ) + + 52 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4144
SELECT + COUNT ( - - 13 ) + + 52 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4145
SELECT COUNT( * ) DIV + 91 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT COUNT ( * ) / + 91 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col2 * + col1 + - col1 + + - col1 FROM tab1 AS cor0
----
-1372
-305
-3290

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL col0 * col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( ( - CAST( + 72 AS SIGNED ) ) / - - 29 + - 62 - + col2 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL col0 * col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( ( - CAST ( + 72 AS INTEGER ) ) / - - 29 + - 62 - + col2 * - col0 )
----

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND + col0
----

query I rowsort
SELECT + col0 + - + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1536
-3289
-483

query I rowsort
SELECT ALL - 25 * + ( - col0 ) + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + - - col0 IS NOT NULL
----

query I rowsort
SELECT - - col1 + + 44 AS col2 FROM tab0 AS cor0
----
125
45
65

query I rowsort
SELECT DISTINCT col1 * col0 + + col0 - - 96 AS col1 FROM tab2 AS cor0
----
2488
5088
5196

query I rowsort
SELECT ALL - 36 FROM tab0 AS cor0 WHERE NOT 17 * - col0 = + col2 / + 69 + + col2
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT col0 col1 FROM tab1 WHERE - col2 * + 35 / - col0 < + - CAST( NULL AS SIGNED ) OR col0 * + col2 - - 26 IN ( + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4155
SELECT col0 col1 FROM tab1 WHERE - col2 * + 35 / - col0 < + - CAST ( NULL AS INTEGER ) OR col0 * + col2 - - 26 IN ( + col0 )
----

query I rowsort
SELECT col1 + 74 + + + col2 + - col1 - - col0 FROM tab0
----
136
171
270

query I rowsort
SELECT ALL 15 * col2 * - col2 + + 55 * - col1 AS col0 FROM tab1
----
-139010
-52490
-71945

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 65 FROM tab0 WHERE ( NULL ) IS NULL
----
65

query III rowsort
SELECT * FROM tab0 WHERE + - 99 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT + COUNT( * ) * - 25 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT + COUNT ( * ) * - 25 FROM tab2 AS cor0
----
-75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND 9
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT ( NOT ( 85 ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT - - ( - - col0 ) DIV - - col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4165
SELECT - - ( - - col0 ) / - - col2 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + MIN( - - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + MIN ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT + col2 DIV - + 7 + - - 12 DIV + + col2 AS col1 FROM tab2 AS cor0
----
-3
-5
-8

skipif mysql # not compatible
query I rowsort label-4167
SELECT + col2 / - + 7 + - - 12 / + + col2 AS col1 FROM tab2 AS cor0
----
-3
-5
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT col2 DIV - col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4168
SELECT col2 / - col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT DISTINCT MAX( col2 ) + + 49 + 46 + + + COUNT( * ) - + AVG ( DISTINCT + 62 ) AS col0 FROM tab1 AS cor0 WHERE - 24 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT MAX ( col2 ) + + 49 + 46 + + + COUNT ( * ) - + AVG ( DISTINCT + 62 ) AS col0 FROM tab1 AS cor0 WHERE - 24 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT DISTINCT + COUNT( ALL - 70 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + COUNT ( ALL - 70 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) * + 9 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) * + 9 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL 52 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * - col2 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL 27 * - col1 AS col2 FROM tab2
----
-1377
-1809
-2079

query I rowsort
SELECT DISTINCT col2 + + 34 FROM tab1
----
102
130
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT DISTINCT 45 DIV + ( + col2 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT 45 / + ( + col2 ) FROM tab2
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 14 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + col0 * + col0 * + col2 AS col2 FROM tab0
----
10590
75777
931588

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - 1 * + COUNT( * ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4180
SELECT - 1 * + COUNT ( * ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT + + 1 * - - col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4182
SELECT + MAX( DISTINCT + ( - + col2 ) ) DIV + 15 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT + MAX ( DISTINCT + ( - + col2 ) ) / + 15 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + + 77 + - col0 AS col0 FROM tab1 cor0 WHERE NOT - 70 * + col0 <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT CAST( 2 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <= + col2
----

skipif mysql # not compatible
query I rowsort label-4184
SELECT CAST ( 2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <= + col2
----

query I rowsort
SELECT DISTINCT + ( - + col0 ) + - 68 FROM tab0
----
-155
-165
-83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - ( - 53 ) AND + 69
----

query I rowsort
SELECT + ( col2 ) + 42 AS col1 FROM tab1
----
101
110
138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4188
SELECT - + ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( - + 6 ) + - - col1
----

skipif mysql # not compatible
query I rowsort label-4188
SELECT - + ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( - + 6 ) + - - col1
----

query II rowsort
SELECT - - 74 AS col1, col0 * 17 + - + 20 AS col0 FROM tab1 AS cor0
----
74
1425
74
1527
74
847

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT + COUNT( DISTINCT + 46 ) + + COUNT( 26 ) col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4190
SELECT DISTINCT + COUNT ( DISTINCT + 46 ) + + COUNT ( 26 ) col2 FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT 62 - col2 AS col2 FROM tab1 AS cor0
----
-34
-6
3

query I rowsort
SELECT ALL 55 * - 6 - + col1 AS col2 FROM tab1 AS cor0
----
-335
-344
-377

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 IN ( - col2 * - col2, + ( col1 ) * + + ( + + col1 ) + - 66 * - ( + - ( col2 ) ) * 80 - col1 * + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 9 * + 98 / + col1 ) BETWEEN col0 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT ALL 34 DIV - 23 AS col1 FROM tab0 WHERE NOT col1 DIV + col1 * col0 * - col0 IN ( col2 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL 34 / - 23 AS col1 FROM tab0 WHERE NOT col1 / + col1 * col0 * - col0 IN ( col2 )
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 70 ) col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT + + col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT + ( - MIN( - 9 ) ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + ( - MIN ( - 9 ) ) FROM tab2 cor0
----
9

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + col0 ) FROM tab1 WHERE NOT - - col2 * + - ( - 39 ) NOT BETWEEN + col1 AND + ( + - col0 ) + - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT MIN( DISTINCT 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT MIN ( DISTINCT 48 ) FROM tab0
----
48

query I rowsort
SELECT 3 AS col1 FROM tab1 WHERE NOT - - 65 + + + col2 IS NULL
----
3
3
3

query I rowsort
SELECT DISTINCT 69 + - + ( 41 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - - MIN( + 25 ) AS col2 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4203
SELECT - - MIN ( + 25 ) AS col2 FROM tab0 AS cor0
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( col2 ) IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4205
SELECT + - 19 DIV - + 54 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT + - 19 / - + 54 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + 79 FROM tab2 cor0
----
4029
5293
6083

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + col0 * - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col1 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT ALL - + 21 * + - col0 FROM tab0 AS cor0
----
1827
2037
315

query I rowsort
SELECT DISTINCT + 5 * col1 AS col2 FROM tab2 cor0
----
255
335
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT DISTINCT AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4213
SELECT col2 * 76 + - + ( + col0 ) AS col1, - col2 / + CAST( NULL AS SIGNED ) + - 69 FROM tab0
----
3557
NULL
673
NULL
7427
NULL

skipif mysql # not compatible
query II rowsort label-4213
SELECT col2 * 76 + - + ( + col0 ) AS col1, - col2 / + CAST ( NULL AS INTEGER ) + - 69 FROM tab0
----
3557
NULL
673
NULL
7427
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 - + + col0 col0 FROM tab2
----
28
50
53

query I rowsort
SELECT ALL col0 + - 29 + + col1 FROM tab1
----
109
36
61

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT ALL col0 + 1 AS col2 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT + COUNT( * ) + - 34 AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + COUNT ( * ) + - 34 AS col2 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT 35 DIV - 57 - + MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4219
SELECT 35 / - 57 - + MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4220
SELECT - + col1 - col2 + 14 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT - + col1 - col2 + 14 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL + + 32 * 28 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
893

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + + 32 * 28 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
893

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + col2 > NULL
----

query I rowsort
SELECT ALL 24 + col1 FROM tab0 cor0
----
105
25
45

query I rowsort
SELECT + - col2 + - col2 * - 82 * - - col0 AS col1 FROM tab1 AS cor0
----
401376
411171
507348

query I rowsort
SELECT - col1 + - col1 * + 43 FROM tab1 AS cor0
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT - - 81 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT - - 81 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
78

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 - - col2 + - col2 col0 FROM tab1 AS cor0
----
62
62
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT ( col2 ) * + col0 + + - 22 DIV + 44 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-4230
SELECT ( col2 ) * + col0 + + - 22 / + 44 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT - - 7 + - SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-4231
SELECT - - 7 + - SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT ALL - 92 - - col1 + col1 DIV 43 FROM tab1 AS cor0
----
-44
-78
-87

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL - 92 - - col1 + col1 / 43 FROM tab1 AS cor0
----
-44
-78
-87

query II rowsort
SELECT ALL + + col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + - col2 - + col1 col2 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0, - 24 col1, - col0 FROM tab1
----
9 values hashing to 91812a7b412ca4161119fc95e06d249e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4236
SELECT ALL + 87 AS col0, + COUNT( * ) * + + ( - CAST( - + 28 AS SIGNED ) ) FROM tab2
----
87
84

skipif mysql # not compatible
query II rowsort label-4236
SELECT ALL + 87 AS col0, + COUNT ( * ) * + + ( - CAST ( - + 28 AS INTEGER ) ) FROM tab2
----
87
84

query II rowsort
SELECT DISTINCT + col1 AS col2, 28 FROM tab2
----
51
28
67
28
77
28

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + ( 88 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 65, - col1 AS col0 FROM tab2
----
-65
-51
-65
-67
-65
-77

query I rowsort
SELECT DISTINCT ( 37 ) FROM tab1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT ALL - CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( - 50 ) col1, col2 FROM tab1 cor0
----
-50
59
-50
68
-50
96

onlyif mysql # DIV for integer division: 
query II rowsort label-4243
SELECT 99, 99 DIV 50 AS col1 FROM tab0 AS cor0
----
99
1
99
1
99
1

skipif mysql # not compatible
query II rowsort label-4243
SELECT 99, 99 / 50 AS col1 FROM tab0 AS cor0
----
99
1
99
1
99
1

query I rowsort
SELECT DISTINCT - col2 * - 75 FROM tab0 AS cor0
----
3525
7425
750

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 36, - 33 * col0 AS col0 FROM tab1 AS cor0
----
36
-1683
36
-2805
36
-3003

query II rowsort
SELECT + - col0 AS col1, - 91 * - - col0 AS col1 FROM tab1 AS cor0
----
-51
-4641
-85
-7735
-91
-8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30

query I rowsort
SELECT + ( ( col0 ) ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL + ( + + col2 ) FROM tab0 AS cor0 WHERE NOT 57 NOT BETWEEN - - col2 * - col0 / col1 AND CAST( col2 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + ( + + col2 ) FROM tab0 AS cor0 WHERE NOT 57 NOT BETWEEN - - col2 * - col0 / col1 AND CAST ( col2 AS INTEGER )
----
99

query I rowsort
SELECT col1 + + - 89 FROM tab0 AS cor0
----
-68
-8
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL - CAST( 61 AS SIGNED ) * - col0 AS col1, 63 AS col0 FROM tab1 AS cor0
----
3111
63
5185
63
5551
63

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL - CAST ( 61 AS INTEGER ) * - col0 AS col1, 63 AS col0 FROM tab1 AS cor0
----
3111
63
5185
63
5551
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT - - COUNT( * ) * 95 * COUNT( * ) FROM tab1 AS cor0
----
855

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - - COUNT ( * ) * 95 * COUNT ( * ) FROM tab1 AS cor0
----
855

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IS NOT NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4256
SELECT ALL 74 + + col0 DIV + col1 + - - col2 + + col0 + + 35 * 39 * col1, col2 AS col2 FROM tab2
----
105283
40
69758
23
91663
58

skipif mysql # not compatible
query II rowsort label-4256
SELECT ALL 74 + + col0 / + col1 + - - col2 + + col0 + + 35 * 39 * col1, col2 AS col2 FROM tab2
----
105283
40
69758
23
91663
58

query I rowsort
SELECT DISTINCT col2 + + + 46 AS col2 FROM tab2
----
104
69
86

query I rowsort
SELECT ALL 59 + + + col1 + col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT - MAX( ALL col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - MAX ( ALL col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT 29 * - COUNT( * ) - 10 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-4260
SELECT 29 * - COUNT ( * ) - 10 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-97

query I rowsort
SELECT ALL + - ( - - 99 ) FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT - col0 * - 53 * - - 37 - - 19 FROM tab1 AS cor0
----
100030
166704
178470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL - 53 + CAST( + ( + COUNT( DISTINCT - 31 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - 53 + CAST ( + ( + COUNT ( DISTINCT - 31 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT DISTINCT col2 * - col1 - + col2 AS col1 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + MAX( - 99 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4265
SELECT + MAX ( - 99 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - col0 - col2 * - - col2 AS col2 FROM tab1 AS cor0
----
-3566
-4715
-9267

query I rowsort
SELECT DISTINCT ( - + 34 ) * + col2 + + 41 FROM tab1 AS cor0
----
-1965
-2271
-3223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 42, col1 FROM tab1
----
42
14
42
47
42
5

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT + + 77 + + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 17 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - 57 * + COUNT( * ) FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-4273
SELECT - 57 * + COUNT ( * ) FROM tab2
----
-171

query I rowsort
SELECT - col2 * - 71 AS col1 FROM tab2 AS cor0
----
1633
2840
4118

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE - col2 = + - 56 + - col0
----

query I rowsort
SELECT + - ( - 24 ) FROM tab0 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT SUM( ALL 55 ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-4277
SELECT SUM ( ALL 55 ) FROM tab1
----
165

query I rowsort
SELECT - + 61 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query II rowsort
SELECT + col2 AS col2, - col1 FROM tab1 cor0
----
59
-5
68
-47
96
-14

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 < + - 59 + - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - + col0
----

query I rowsort
SELECT DISTINCT 79 * col0 - - col2 + - - 28 AS col0 FROM tab0 AS cor0
----
1260
6911
7790

query I rowsort
SELECT - col0 + col0 + - 61 * + 96 FROM tab0
----
-5856
-5856
-5856

query I rowsort
SELECT 65 + + 4 AS col0 FROM tab1
----
69
69
69

query III rowsort
SELECT - ( - - col0 ) + + - col0 AS col2, col1 * - - col0, + col0 FROM tab2
----
9 values hashing to 8407cefd4d6dcb88c26cece5ff02534d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT CAST( NULL AS SIGNED ) + 66 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT CAST ( NULL AS INTEGER ) + 66 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) + + col1 + - col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-4289
SELECT - 30 + col2 AS col2, ( + col2 ) DIV - - 94 FROM tab2
----
-7
0
10
0
28
0

skipif mysql # not compatible
query II rowsort label-4289
SELECT - 30 + col2 AS col2, ( + col2 ) / - - 94 FROM tab2
----
-7
0
10
0
28
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT DISTINCT col2 - + + 94 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT col2 - + + 94 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT COUNT( ALL - 56 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT COUNT ( ALL - 56 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - - col2 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 * 85 col0 FROM tab0
----
-7905
-7905
-7905

query I rowsort
SELECT ALL 49 + 40 AS col0 FROM tab2
----
89
89
89

query I rowsort
SELECT 67 - 51 AS col2 FROM tab0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 80 col0 FROM tab1 cor0
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL COUNT( ALL col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL COUNT ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL - - ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4299
SELECT ALL - - ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + 90 + - + ( + col1 )
----

query I rowsort
SELECT ALL - + 76 AS col1 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL - ( - col2 ) * + + 32 AS col0 FROM tab1
----
1888
2176
3072

query I rowsort
SELECT 99 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
99
99
99

query I rowsort
SELECT - - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - MIN( ALL + - col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - MIN ( ALL + - col0 ) AS col1 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4306
SELECT + - 62 DIV - + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4306
SELECT + - 62 / - + col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col0 * - ( - 58 ) AS col1 FROM tab2 AS cor0
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT + MAX( - col2 ) * + 82 AS col0 FROM tab0 AS cor0
----
-820

skipif mysql # not compatible
query I rowsort label-4308
SELECT + MAX ( - col2 ) * + 82 AS col0 FROM tab0 AS cor0
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL + MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT 22 + + col0 + + 32, - 81 AS col2 FROM tab2
----
100
-81
118
-81
129
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / 9 = NULL
----

query I rowsort
SELECT col2 + col0 - - - col0 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL MAX( ALL + ( 69 ) ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL MAX ( ALL + ( 69 ) ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT + - col1 + + - col2 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT + 35 * + col0 + - col2, - col1 * + + col1 AS col1 FROM tab0 cor0
----
3035
-441
3296
-1
478
-6561

query I rowsort
SELECT + 58 + 30 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT + col2 * + col2 + - 0 + - 93 FROM tab1 AS cor0
----
3388
4531
9123

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col1 * - 55 + - + 2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT + - COUNT( - ( + + 16 ) ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT + - COUNT ( - ( + + 16 ) ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT + + col0 AS col1, + col2 AS col2 FROM tab1 WHERE NULL <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 - + col2 >= + 3 * - 94 * + + 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT 5 col1, COUNT( * ) FROM tab2 WHERE NULL NOT IN ( + - col1 )
----
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4323
SELECT 5 col1, COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( + - col1 )
----
5
0

query II rowsort
SELECT 17 AS col2, col2 FROM tab0
----
17
10
17
47
17
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL - COUNT( * ) * - COUNT( * ) + + + 67 col2 FROM tab1
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4325
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + + 67 col2 FROM tab1
----
76

query I rowsort
SELECT col0 - - col2 - 73 FROM tab0
----
-11
123
24

query I rowsort
SELECT - col0 * - col1 - - + 70 AS col1 FROM tab1
----
4347
495
784

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL AND NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT MAX( ALL + col2 ) - - - 25 FROM tab1 cor0
----
71

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT MAX ( ALL + col2 ) - - - 25 FROM tab1 cor0
----
71

query I rowsort
SELECT 87 + + 95 AS col1 FROM tab0
----
182
182
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT 36 * - 51 AS col0 FROM tab1
----
-1836
-1836
-1836

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 1 IS NOT NULL
----

query I rowsort
SELECT - - 25 FROM tab0 cor0
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + col2 NOT BETWEEN + 69 AND NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) = NULL
----

query I rowsort
SELECT ALL + col2 * + ( + - col1 ) * - 55 FROM tab1 cor0
----
16225
175780
73920

query I rowsort
SELECT DISTINCT col0 * - 45 * - - 9 * ( - col2 ) AS col0 FROM tab0
----
285525
352350
3889215

query II rowsort
SELECT + 45 AS col1, col0 + + + 14 + + + col0 AS col1 FROM tab1
----
45
116
45
184
45
196

query II rowsort
SELECT + 35, 28 AS col2 FROM tab1
----
35
28
35
28
35
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + SUM( - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4341
SELECT + SUM ( - col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT + 17 * + - col0 * - 65 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
100555
56355
93925

query II rowsort
SELECT ALL - col2, + 50 AS col2 FROM tab0
----
-10
50
-47
50
-99
50

query I rowsort
SELECT ALL + 51 * - 31 + - col1 FROM tab2
----
-1632
-1648
-1658

query I rowsort
SELECT DISTINCT col1 + + - 26 FROM tab1
----
-12
-21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + - col0 + + col1 + + 32 col2 FROM tab2 AS cor0
----
-14
-32
-43

query I rowsort
SELECT - + col1 + + 98 FROM tab0 cor0
----
17
77
97

query I rowsort
SELECT + 39 + - - 86 + + 6 FROM tab2 AS cor0
----
131
131
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + + MAX( - 94 ) + - - 47 AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4349
SELECT + + MAX ( - 94 ) + - - 47 AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT ( - MIN( DISTINCT + col1 ) ) col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4350
SELECT DISTINCT ( - MIN ( DISTINCT + col1 ) ) col0 FROM tab2
----
-51

query I rowsort
SELECT + 88 * + 14 + - - col1 FROM tab0
----
1233
1253
1313

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN col1 AND - 93
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) - + + 7 * + + col1 BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND - - 2
----

query I rowsort
SELECT + col0 * ( ( - col1 ) ) FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col2 col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT DISTINCT - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + SUM( ALL + - 9 ) AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4358
SELECT + SUM ( ALL + - 9 ) AS col2 FROM tab0 AS cor0
----
-27

query II rowsort
SELECT ALL 40, + 88 AS col1 FROM tab1 cor0
----
40
88
40
88
40
88

query I rowsort
SELECT ( - ( + 60 ) ) FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4361
SELECT - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 98 * - 22 AS col1 FROM tab2 AS cor0
----
2156

query I rowsort
SELECT DISTINCT + - col1 * - - 8 + + 6 FROM tab2 AS cor0
----
-402
-530
-610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + - 94 col2, 69 * - + col0 * col0 FROM tab2
----
-2162
-146004
-3760
-282624
-5452
-388125

query II rowsort
SELECT DISTINCT - - 18 * ( - + 19 ), + col2 FROM tab0 AS cor0
----
-342
10
-342
47
-342
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT - - col0 * - col2 + + + 85 DIV + 53 FROM tab1 AS cor0
----
-4895
-5014
-6187

skipif mysql # not compatible
query I rowsort label-4366
SELECT - - col0 * - col2 + + + 85 / + 53 FROM tab1 AS cor0
----
-4895
-5014
-6187

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE + col0 - + col0 - + 61 NOT BETWEEN ( NULL ) AND 84
----

query I rowsort
SELECT DISTINCT - 66 + + 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT - + col0 + - + col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL + col1 + 91 * col0 AS col1 FROM tab2 AS cor0
----
4237
5901
6892

query I rowsort
SELECT ALL - + ( - - col2 ) * + + 63 * + + 46 * + + col1 FROM tab0 AS cor0
----
-11032686
-286902
-608580

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4373
SELECT DISTINCT - CAST( - ( - col0 ) AS SIGNED ) DIV - + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT - CAST ( - ( - col0 ) AS INTEGER ) / - + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4374
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + ( MAX( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4375
SELECT + ( MAX ( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 * + + 24 NOT BETWEEN - 7 AND - 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - col1 - 20 - + col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-217
-558
-6643

query I rowsort
SELECT DISTINCT - - ( + - 38 ) FROM tab1 cor0
----
-38

query III rowsort
SELECT * FROM tab1 WHERE + 51 NOT IN ( + col1 * + - col1 * - ( + col1 ) - - - 49, + 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 WHERE - 63 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + 63 AS col1 FROM tab2 WHERE NULL >= - col1
----

query I rowsort
SELECT DISTINCT col1 + - - col0 + - col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT ALL - col1 * + + CAST( + + 28 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2268
-28
-588

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - col1 * + + CAST ( + + 28 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2268
-28
-588

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 cor0 WHERE - 74 + 96 + - col0 * - col0 <> + - col1
----
14
47
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - - 21 ) NOT IN ( + + col0 )
----

query I rowsort
SELECT ALL + + 31 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT - CAST( NULL AS SIGNED ) * + - 59 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT - CAST ( NULL AS INTEGER ) * + - 59 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col1 AS col1, col2 AS col0 FROM tab1 AS cor0 WHERE NULL <= col1
----

query II rowsort
SELECT ALL ( col0 ) * - 74, + 66 AS col1 FROM tab1 AS cor0
----
-3774
66
-6290
66
-6734
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 + - col1 * + - 30, + col0, 85, - col1 * 24, - col1 + + 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 * + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - COUNT( + 21 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4392
SELECT - COUNT ( + 21 ) AS col2 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50, 52 col0 FROM tab2
----
50
52
50
52
50
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT ALL 24 DIV + + col1 + + col2 AS col2 FROM tab1
----
63
68
97

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 24 / + + col1 + + col2 AS col2 FROM tab1
----
63
68
97

query II rowsort
SELECT - col2 AS col2, ( + col1 ) FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT 82 DIV + col2 + + col2 FROM tab0
----
18
48
99

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT 82 / + col2 + + col2 FROM tab0
----
18
48
99

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4399
SELECT - - CAST( - + 58 AS SIGNED ) * + col2 AS col0, ( + 66 ) AS col1 FROM tab1 AS cor0 WHERE col2 / + col2 * + col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4399
SELECT - - CAST ( - + 58 AS INTEGER ) * + col2 AS col0, ( + 66 ) AS col1 FROM tab1 AS cor0 WHERE col2 / + col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL COUNT( * ) * - + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4400
SELECT ALL COUNT ( * ) * - + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 87 + - - 99 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT + ( + MIN( col2 ) ) + + 7 * COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + ( + MIN ( col2 ) ) + + 7 * COUNT ( * ) FROM tab0
----
31

query I rowsort
SELECT ALL col1 - - col0 AS col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - ( - COUNT( * ) ) + - - 68 FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-4404
SELECT - ( - COUNT ( * ) ) + - - 68 FROM tab2 cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT 28 + SUM( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-4405
SELECT 28 + SUM ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT COUNT( * ) * ( 31 ) + - SUM( ALL col1 ) + - - SUM( ALL - - 25 ) * + + COUNT( * ) * - SUM( DISTINCT + ( + + ( + 5 ) ) ) FROM tab1 AS cor0
----
-1098

skipif mysql # not compatible
query I rowsort label-4406
SELECT COUNT ( * ) * ( 31 ) + - SUM ( ALL col1 ) + - - SUM ( ALL - - 25 ) * + + COUNT ( * ) * - SUM ( DISTINCT + ( + + ( + 5 ) ) ) FROM tab1 AS cor0
----
-1098

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT ALL - col2 DIV - 24 - + + col1 FROM tab0 AS cor0
----
-21
-80
3

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - col2 / - 24 - + + col1 FROM tab0 AS cor0
----
-21
-80
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT + + ( + - MIN( ALL - 62 ) ) col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4408
SELECT DISTINCT + + ( + - MIN ( ALL - 62 ) ) col1 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT COUNT( * ) + + MAX( ALL - + col2 ) - - 19 AS col2 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-4409
SELECT COUNT ( * ) + + MAX ( ALL - + col2 ) - - 19 AS col2 FROM tab1
----
-37

query I rowsort
SELECT DISTINCT + ( + + 38 ) FROM tab1
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + ( col2 ), - col2 col0 FROM tab0
----
705
-47
870
-10
9603
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-4412
SELECT col0 * + - col2 * + col2, + 7 DIV col1 AS col2 FROM tab0
----
-33135
0
-8700
0
-950697
7

skipif mysql # not compatible
query II rowsort label-4412
SELECT col0 * + - col2 * + col2, + 7 / col1 AS col2 FROM tab0
----
-33135
0
-8700
0
-950697
7

query III rowsort
SELECT ALL + 16, 74, + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN ( NULL ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 89 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-104
-176
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - ( - SUM( DISTINCT - col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4416
SELECT - ( - SUM ( DISTINCT - col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 / - + col0 + + col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col2, - 49 - + - col1 AS col1 FROM tab1 AS cor0
----
-59
-44
-68
-2
-96
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4419
SELECT ALL CAST( NULL AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4419
SELECT ALL CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col0 * - 83 AS col0 FROM tab2 cor0
----
-3818
-5312
-6225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 47 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4423
SELECT CAST( + 37 AS SIGNED ) + - + COUNT( * ) + - 62 AS col1 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4423
SELECT CAST ( + 37 AS INTEGER ) + - + COUNT ( * ) + - 62 AS col1 FROM tab2 AS cor0
----
-28

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 / - 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 > + - col2 - 10
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 > + - col2 - 10
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 32 ) * 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL MAX( DISTINCT - ( + + col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL MAX ( DISTINCT - ( + + col0 ) ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT + MAX( 10 ) + + 19 AS col2 FROM tab0 WHERE - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT + MAX ( 10 ) + + 19 AS col2 FROM tab0 WHERE - col0 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - col1 + - + 78 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - col1 + - + 78 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( 27 ) col1 FROM tab0 cor0
----
-12
60
70

query I rowsort
SELECT + - col1 + + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL > col1 * + ( 40 )
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL > col1 * + ( 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - 85 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - 85 AND NULL
----
0

query I rowsort
SELECT + - 80 + + col1 + col2 + + col2 FROM tab1 AS cor0
----
103
126
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT 8 + COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT 8 + COUNT ( * ) FROM tab0
----
11

query II rowsort
SELECT + - col0, + 95 AS col0 FROM tab2 cor0
----
-46
95
-64
95
-75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT - COUNT( ALL + 4 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4437
SELECT - COUNT ( ALL + 4 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 - 29 - + col2 AS col1 FROM tab2 AS cor0
----
-1
-20
8

query II rowsort
SELECT + col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 col0 FROM tab2 AS cor0
----
-33
-33
-33

query II rowsort
SELECT DISTINCT + 90 - + - col1 AS col0, col1 AS col1 FROM tab2 AS cor0
----
141
51
157
67
167
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT ALL - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE - - col2 * + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + 88 AND NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE - - col2 * + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + 88 AND NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT - ( - MIN( DISTINCT - col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT - ( - MIN ( DISTINCT - col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT 46 AS col2 FROM tab0 AS cor0 WHERE - 1 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - + 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col2 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 34 * - - col0 FROM tab2 AS cor0
----
1564
2176
2550

query I rowsort
SELECT ALL + - 97 * + col1 FROM tab2 AS cor0
----
-4947
-6499
-7469

query I rowsort
SELECT DISTINCT 82 + - - col0 FROM tab1 AS cor0 WHERE col0 / - 37 IS NOT NULL
----
133
167
173

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT DISTINCT + - COUNT( - 73 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT + - COUNT ( - 73 ) FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4452
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 65 * - CAST( + col1 AS SIGNED ) BETWEEN NULL AND ( + col2 * + 61 / - 56 )
----

skipif mysql # not compatible
query III rowsort label-4452
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 65 * - CAST ( + col1 AS INTEGER ) BETWEEN NULL AND ( + col2 * + 61 / - 56 )
----

query II rowsort
SELECT + col1, col2 * + + 22 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + + col1 * 22 AS col1 FROM tab1 cor0
----
1034
110
308

query II rowsort
SELECT DISTINCT + col0 * - col1 * + col0 - + col2, col1 FROM tab1 AS cor0
----
-36184
5
-36510
14
-389275
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col0 AND ( ( - 10 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> - col2 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL SUM( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT ( - col2 * - col0 * + col2 IS NULL ) )
----
-195

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL SUM ( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT ( - col2 * - col0 * + col2 IS NULL ) )
----
-195

onlyif mysql # DIV for integer division: 
query II rowsort label-4459
SELECT 23 AS col0, - col0 DIV + + col0 - - + col0 AS col1 FROM tab2 AS cor0
----
23
45
23
63
23
74

skipif mysql # not compatible
query II rowsort label-4459
SELECT 23 AS col0, - col0 / + + col0 - - + col0 AS col1 FROM tab2 AS cor0
----
23
45
23
63
23
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 87 BETWEEN - col2 AND + - 13 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4461
SELECT + col0 AS col1, col0 * 33 DIV + col2 FROM tab0 AS cor0
----
15
10
87
287
97
32

skipif mysql # not compatible
query II rowsort label-4461
SELECT + col0 AS col1, col0 * 33 / + col2 FROM tab0 AS cor0
----
15
10
87
287
97
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL + SUM( ALL - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + SUM ( ALL - - col1 ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - - col0 col2 FROM tab2
----
141
142
97

query I rowsort
SELECT 56 + - 77 FROM tab2
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * - col2 col2 FROM tab2
----
-1560
-3306
-506

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4466
SELECT * FROM tab2 WHERE - ( - CAST( NULL AS SIGNED ) ) BETWEEN + col1 * - 95 * 72 * + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4466
SELECT * FROM tab2 WHERE - ( - CAST ( NULL AS INTEGER ) ) BETWEEN + col1 * - 95 * 72 * + + col2 AND NULL
----

query I rowsort
SELECT - 99 AS col0 FROM tab0 WHERE col2 IS NOT NULL OR NOT NULL IS NULL
----
-99
-99
-99

query I rowsort
SELECT - 46 + - + 86 FROM tab0
----
-132
-132
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - COUNT( * ) + + 24 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4469
SELECT - COUNT ( * ) + + 24 FROM tab2
----
21

query I rowsort
SELECT - - col1 + - 35 FROM tab1 AS cor0
----
-21
-30
12

query I rowsort
SELECT DISTINCT - 13 AS col0 FROM tab0 cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT + - 10 * + + 37 * - col1 * - col0 * - CAST( + + col1 AS SIGNED ) / + col0 * + col2 * + col1 AS col1 FROM tab2 AS cor0 WHERE + col2 >= + col0 - - 9
----

skipif mysql # not compatible
query I rowsort label-4472
SELECT + - 10 * + + 37 * - col1 * - col0 * - CAST ( + + col1 AS INTEGER ) / + col0 * + col2 * + col1 AS col1 FROM tab2 AS cor0 WHERE + col2 >= + col0 - - 9
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4474
SELECT DISTINCT MIN( ALL - col1 ), + COUNT( DISTINCT col2 ) * ( + - CAST( + SUM( 70 ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-47
-630

skipif mysql # not compatible
query II rowsort label-4474
SELECT DISTINCT MIN ( ALL - col1 ), + COUNT ( DISTINCT col2 ) * ( + - CAST ( + SUM ( 70 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-47
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT - 69 * + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 WHERE 2 + - 22 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4475
SELECT - 69 * + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 WHERE 2 + - 22 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE + col0 IN ( + 16 )
----

query I rowsort
SELECT ALL + 97 * + 26 + col2 + - 17 AS col0 FROM tab2 AS cor0
----
2528
2545
2563

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + ( - MIN( - 84 ) ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + ( - MIN ( - 84 ) ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT + 45 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + - col1 * + - col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT + + MAX( col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + + MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + 71 * - 96 AS col2 FROM tab2
----
-6816
-6816
-6816

query I rowsort
SELECT + 61 AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT ALL - MIN( ALL + + 87 ) AS col1, 47 FROM tab0
----
-87
47

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL - MIN ( ALL + + 87 ) AS col1, 47 FROM tab0
----
-87
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL - 45 * - + COUNT( * ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - 45 * - + COUNT ( * ) FROM tab2 AS cor0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT - 26 DIV col1 * 14 AS col1 FROM tab1
----
-14
-70
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - 26 / col1 * 14 AS col1 FROM tab1
----
-14
-70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT DISTINCT COUNT( ( 68 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT COUNT ( ( 68 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + - col1 + ( - 54 ) FROM tab0 AS cor0 WHERE NOT NULL <= + col0 / + col0 + 17 * - col1
----

query I rowsort
SELECT DISTINCT + col2 * + - 36 AS col1 FROM tab2 AS cor0
----
-1440
-2088
-828

query II rowsort
SELECT DISTINCT col1 * 40 * - 51, ( + col0 ) FROM tab0 AS cor0 WHERE 74 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4491
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - col2 FROM tab0 WHERE NOT ( NOT 89 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT - CAST ( NULL AS REAL ) - - col2 FROM tab0 WHERE NOT ( NOT 89 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL 81 + - - SUM( - - col1 ) + - COUNT( * ) AS col0 FROM tab0
----
181

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL 81 + - - SUM ( - - col1 ) + - COUNT ( * ) AS col0 FROM tab0
----
181

query I rowsort
SELECT DISTINCT - col1 / 97 - + ( - 67 ) FROM tab1 WHERE NULL BETWEEN + col0 AND + - 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + col2 * - 54 col0, col0 AS col2 FROM tab0
----
-2523
15
-453
87
-5249
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT DISTINCT - 88 + - + MIN( - - 69 ) + + MIN( DISTINCT + + col2 ) FROM tab2
----
-134

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT - 88 + - + MIN ( - - 69 ) + + MIN ( DISTINCT + + col2 ) FROM tab2
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4496
SELECT DISTINCT col2 * + col2 + - - 93, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1693
NULL
3457
NULL
622
NULL

skipif mysql # not compatible
query II rowsort label-4496
SELECT DISTINCT col2 * + col2 + - - 93, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1693
NULL
3457
NULL
622
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4497
SELECT + COUNT( * ) + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT + COUNT ( * ) + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT ALL + ( - + col1 ) DIV - col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL + ( - + col1 ) / - col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT COUNT( * ) + 55 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-4499
SELECT COUNT ( * ) + 55 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----
55

query I rowsort
SELECT ALL col2 - col2 FROM tab0 WHERE NOT - col1 < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4501
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 / CAST( - col0 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 / CAST ( - col0 AS REAL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + SUM( col0 ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4502
SELECT + SUM ( col0 ) col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL MIN( ALL + 88 ) * 7 AS col0 FROM tab1
----
616

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL MIN ( ALL + 88 ) * 7 AS col0 FROM tab1
----
616

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 - + 95 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + SUM( + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4505
SELECT + SUM ( + col1 ) AS col0 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4506
SELECT + 6 DIV - col1 - - 91 AS col0 FROM tab1
----
90
91
91

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 6 / - col1 - - 91 AS col0 FROM tab1
----
90
91
91

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + col2 + col0 >= + col1 / - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4509
SELECT DISTINCT - ( col1 ) + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - ( col1 ) + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE ( + 35 * - 83 ) NOT IN ( + col1 + + 90 )
----
14
47
5

query I rowsort
SELECT ALL 31 - 73 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT col0 / + col1 FROM tab1 WHERE NOT NULL <= ( - 86 + col1 * + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 * - 99 AND NULL
----

query I rowsort
SELECT DISTINCT 57 FROM tab2 WHERE NULL IS NULL
----
57

query I rowsort
SELECT ALL col1 + 45 FROM tab1
----
50
59
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT MAX( ALL 54 ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4516
SELECT MAX ( ALL 54 ) AS col1 FROM tab1
----
54

query III rowsort
SELECT * FROM tab1 WHERE 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4518
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * + 29 + + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4518
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 29 + + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col1 + - col2 * + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4520
SELECT + SUM( col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( - 77 / 43 ) NOT IN ( col0 + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT + SUM ( col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( - 77 / 43 ) NOT IN ( col0 + + CAST ( NULL AS INTEGER ) )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col2 + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT + COUNT( - 49 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + COUNT ( - 49 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > ( col0 / 17 + - ( - 93 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 = col1
----

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 42 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 - - col0 ) NOT IN ( + ( 23 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - MAX( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - MAX ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col0 * + col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL COUNT( - 16 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL COUNT ( - 16 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - + COUNT( * ) * + 2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4532
SELECT - + COUNT ( * ) * + 2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL + 76 + - 7 FROM tab2 AS cor0
----
69
69
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col2 ) * 98 BETWEEN NULL AND - 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 AS cor0 WHERE NOT NULL > col1 + col0 / 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT DISTINCT 10 DIV col2 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT 10 / col2 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( 41 ) + + col0 AS col2 FROM tab0 AS cor0
----
128
138
56

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT 5 + - + 52 * - col1 FROM tab0
----
1097
4217
57

query I rowsort
SELECT DISTINCT + col0 - col1 AS col1 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col0 + - 36 AS col2 FROM tab0
----
-21
51
61

query I rowsort
SELECT DISTINCT + col1 * - + col2 + - col0 AS col2 FROM tab2
----
-1219
-3144
-3961

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4544
SELECT ALL * FROM tab2 WHERE + col1 * - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-4544
SELECT ALL * FROM tab2 WHERE + col1 * - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT col1 * + + col1 * col0 + col2 * 96 AS col1 FROM tab1
----
19212
207547
7789

query I rowsort
SELECT ALL 7 * + + col1 * col1 + col0 * col0 AS col0 FROM tab1
----
23744
3973
7400

query I rowsort
SELECT ALL - 17 AS col0 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - 12 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT - col2 * + + col2 + + CAST( NULL AS SIGNED ) * - 36 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT - col2 * + + col2 + + CAST ( NULL AS INTEGER ) * - 36 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT DISTINCT - - SUM( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT - - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT ALL + 81 * - + col0 FROM tab2
----
-3726
-5184
-6075

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 12 + - 47 IS NULL
----

query II rowsort
SELECT - col1 AS col0, + ( col2 ) * - 51 FROM tab0 AS cor0
----
-1
-5049
-21
-510
-81
-2397

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 / + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT - MAX( + + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - MAX ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT - 8 AS col0, 53 AS col2 FROM tab1 cor0
----
-8
53
-8
53
-8
53

query II rowsort
SELECT - col2 AS col2, - ( col1 ) + 83 AS col1 FROM tab2 AS cor0
----
-23
32
-40
6
-58
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT - ( - CAST( ( 78 ) AS SIGNED ) ) * col2 AS col2 FROM tab1 AS cor0
----
4602
5304
7488

skipif mysql # not compatible
query I rowsort label-4560
SELECT - ( - CAST ( ( 78 ) AS INTEGER ) ) * col2 AS col2 FROM tab1 AS cor0
----
4602
5304
7488

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT col2 DIV col2 FROM tab0 WHERE NOT ( + - 83 ) IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4561
SELECT col2 / col2 FROM tab0 WHERE NOT ( + - 83 ) IS NULL
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col1 FROM tab0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN ( 67 + - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT 77 FROM tab2 WHERE NOT ( + - 79 ) IS NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT COUNT( * ) * + MIN( ALL + + col1 ) AS col1 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL + + col1 ) AS col1 FROM tab2
----
153

query I rowsort
SELECT 26 * - col2 AS col1 FROM tab2
----
-1040
-1508
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + - SUM( ALL - col2 ) * - 98 + 70 AS col0 FROM tab0 cor0
----
-15218

skipif mysql # not compatible
query I rowsort label-4567
SELECT + - SUM ( ALL - col2 ) * - 98 + 70 AS col0 FROM tab0 cor0
----
-15218

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL >= ( - + col2 )
----

query I rowsort
SELECT + 21 + + col1 FROM tab0
----
102
22
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT + + COUNT( * ) + - COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4570
SELECT + + COUNT ( * ) + - COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col2 ) + + col0 / col1 * + col1 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 78 * - - col2 + - col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
1743
3043
4457

query I rowsort
SELECT ALL - + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - 64 * - - 19 * COUNT( 45 ) FROM tab2 AS cor0
----
-3648

skipif mysql # not compatible
query I rowsort label-4574
SELECT - 64 * - - 19 * COUNT ( 45 ) FROM tab2 AS cor0
----
-3648

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > - + 5
----

query I rowsort
SELECT - + ( - 84 ) FROM tab2 AS cor0
----
84
84
84

query II rowsort
SELECT DISTINCT - - 45, + col1 FROM tab2 AS cor0
----
45
51
45
67
45
77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN - 2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4580
SELECT DISTINCT col0 col0, - col2 * - - col0 * + - col2 / + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4580
SELECT DISTINCT col0 col0, - col2 * - - col0 * + - col2 / + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT col1 - - CAST( NULL AS SIGNED ) - col0 / + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT col1 - - CAST ( NULL AS INTEGER ) - col0 / + + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + 80 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 - + + col2 + col0 * col0 * + 0 col2 FROM tab2
----
-23
-41
-6

query I rowsort
SELECT col2 - + 96 AS col2 FROM tab2
----
-38
-56
-73

query III rowsort
SELECT * FROM tab0 WHERE NULL = 86
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT 58 - ( + COUNT( - col0 ) ), + COUNT( * ) AS col2 FROM tab2
----
55
3

skipif mysql # not compatible
query II rowsort label-4586
SELECT 58 - ( + COUNT ( - col0 ) ), + COUNT ( * ) AS col2 FROM tab2
----
55
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 + - 85 AND NULL
----

query II rowsort
SELECT DISTINCT - + 23, ( 56 ) AS col1 FROM tab1 AS cor0
----
-23
56

query I rowsort
SELECT ALL col0 * + + 60 AS col1 FROM tab0 AS cor0
----
5220
5820
900

query II rowsort
SELECT col0 * + ( + - 93 ), + 26 AS col0 FROM tab0
----
-1395
26
-8091
26
-9021
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT ALL col2 DIV - - col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL col2 / - - col0 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL + MIN( ( + - col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + MIN ( ( + - col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT 91 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT 91 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - COUNT( * ) * - 77 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
231

skipif mysql # not compatible
query I rowsort label-4594
SELECT - COUNT ( * ) * - 77 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
231

query I rowsort
SELECT - + 85 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + col2 * col0 * + - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-102464
-24380
-252375

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL + MIN( - 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + MIN ( - 0 ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT col2, + col2 + - 5 FROM tab1
----
59
54
68
63
96
91

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + col2 ) < + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL COUNT( * ) + + 43 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL COUNT ( * ) + + 43 FROM tab0
----
46

query II rowsort
SELECT col1 AS col2, col1 * + col1 + + - col0 AS col0 FROM tab2
----
51
2555
67
4414
77
5865

query I rowsort
SELECT DISTINCT col0 + + 4 + - + col0 * - col2 + - col2 FROM tab2
----
1085
2588
4371

query I rowsort
SELECT - col0 + + col0 + col0 AS col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4604
SELECT DISTINCT + CAST( - + SUM( - 12 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT + CAST ( - + SUM ( - 12 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT - - 88 DIV 44 + col0 AS col0 FROM tab0 AS cor0
----
17
89
99

skipif mysql # not compatible
query I rowsort label-4605
SELECT - - 88 / 44 + col0 AS col0 FROM tab0 AS cor0
----
17
89
99

query I rowsort
SELECT - 95 * 79 FROM tab1 cor0
----
-7505
-7505
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - SUM( DISTINCT ( + 99 ) ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4607
SELECT - SUM ( DISTINCT ( + 99 ) ) FROM tab1 AS cor0
----
-99

query II rowsort
SELECT DISTINCT - col0 - 17 AS col2, 28 FROM tab2 AS cor0
----
-63
28
-81
28
-92
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col1 col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + 41 + + COUNT( * ) FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-4610
SELECT + 41 + + COUNT ( * ) FROM tab1 cor0
----
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 62 * + - col2 + + col2
----

query I rowsort
SELECT DISTINCT - ( - 15 ) AS col1 FROM tab1 cor0
----
15

query I rowsort
SELECT 29 + col0 FROM tab2 AS cor0
----
104
75
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT + col0 AS col1 FROM tab2 WHERE NULL = + CAST( NULL AS SIGNED ) * + CAST( + col1 AS SIGNED ) - + col2
----

skipif mysql # not compatible
query I rowsort label-4614
SELECT + col0 AS col1 FROM tab2 WHERE NULL = + CAST ( NULL AS INTEGER ) * + CAST ( + col1 AS INTEGER ) - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT ALL - ( - + 19 ) * + + COUNT( * ) AS col0, COUNT( * ) col0 FROM tab2
----
57
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4615
SELECT ALL - ( - + 19 ) * + + COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab2
----
57
3

query I rowsort
SELECT col2 + - - 44 FROM tab1
----
103
112
140

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT DISTINCT + col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4618
SELECT DISTINCT + col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT + + COUNT( * ) * - 62 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + + COUNT ( * ) * - 62 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT DISTINCT + 10 * col0 + col0 AS col2 FROM tab2 AS cor0
----
506
704
825

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1 WHERE col0 + + 82 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT CAST( NULL AS SIGNED ) + + AVG ( 90 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT CAST ( NULL AS INTEGER ) + + AVG ( 90 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - - 30 * + col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - 38, 33 * - 27 + - col2, 86 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT + COUNT( - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT + COUNT ( - + col2 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col2, - ( + col0 ) FROM tab0 cor0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + 76 * 85 * - + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT COUNT( DISTINCT + 67 ) * - COUNT( * ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4627
SELECT COUNT ( DISTINCT + 67 ) * - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 4 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL COUNT( DISTINCT + 86 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL COUNT ( DISTINCT + 86 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + SUM( - col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4630
SELECT + SUM ( - col2 ) col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT col2 * + + 39 + col0 + - col2 FROM tab1 AS cor0
----
2327
2675
3699

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT col0 DIV col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-4632
SELECT col0 / col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-49
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT + + 63 * COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT + + 63 * COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT ALL col2 + - 49 AS col1, col0 AS col1 FROM tab2
----
-26
46
-9
64
9
75

query I rowsort
SELECT 77 * + col2 FROM tab0
----
3619
7623
770

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + COUNT( * ) col2 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4636
SELECT + COUNT ( * ) col2 FROM tab1, tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 + - - 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 28 + col1 + - 88 AS col0, col1 + + 72 - col0 * col1 / - + col1 + - - col2 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE ( col1 ) IS NULL
----
NULL

query I rowsort
SELECT col1 * - ( + col2 ) * col1 AS col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - + COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4641
SELECT - + COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT 37 + - COUNT( * ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT 37 + - COUNT ( * ) FROM tab1
----
34

query II rowsort
SELECT + ( col1 ) * - - col0 AS col0, + col1 FROM tab0 WHERE - - col2 IS NULL
----

query I rowsort
SELECT ALL - col1 * + col1 + 93 AS col2 FROM tab2 AS cor0
----
-2508
-4396
-5836

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT DISTINCT + 50 - + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4646
SELECT DISTINCT + 50 - + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT - + 52 AS col2, - ( - ( - + 79 ) ) * + - COUNT( * ) FROM tab2 AS cor0
----
-52
237

skipif mysql # not compatible
query II rowsort label-4647
SELECT - + 52 AS col2, - ( - ( - + 79 ) ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-52
237

query I rowsort
SELECT + + 54 AS col1 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE ( - col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT + - 53 FROM tab0 WHERE - col2 + - CAST( - 6 AS SIGNED ) IS NOT NULL
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-4650
SELECT + - 53 FROM tab0 WHERE - col2 + - CAST ( - 6 AS INTEGER ) IS NOT NULL
----
-53
-53
-53

query II rowsort
SELECT - - ( 86 ), col0 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 IN ( + col1 + - col0, 80, - 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 * + col0, ( + col0 ) + col1 + - + 83 - + col0 AS col1 FROM tab0
----
-225
-2
-7569
-62
-9409
-82

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT COUNT( * ) * + - 16 AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-4655
SELECT COUNT ( * ) * + - 16 AS col0 FROM tab1
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4656
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * CAST( NULL AS DECIMAL ) / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4656
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * CAST ( NULL AS REAL ) / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 59 + - col0 / - col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + + 50 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL + SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE 85 + + col1 IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE 85 + + col1 IS NOT NULL
----
227

query I rowsort
SELECT DISTINCT col2 * + 15 FROM tab2 AS cor0
----
345
600
870

query I rowsort
SELECT - 68 * col1 AS col2 FROM tab2
----
-3468
-4556
-5236

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 * + + col2 ) BETWEEN col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 BETWEEN NULL AND - 29 + col2 * + col0 * - 84 / - + col1 - + - col0
----

query I rowsort
SELECT DISTINCT - + col2 * 14 FROM tab2 AS cor0
----
-322
-560
-812

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT DISTINCT - ( - col2 ) DIV 75 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - ( - col2 ) / 75 AS col1 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT CAST( NULL AS SIGNED ) + + col1 * col0 * - - col2 + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT CAST ( NULL AS INTEGER ) + + col1 * col0 * - - col2 + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - 71 AS col0 FROM tab1
----
-24
-57
-66

query I rowsort
SELECT col2 * + 79 + + - col2 - + col1 * - - ( - col0 ) FROM tab2
----
4140
8048
9549

query I rowsort
SELECT DISTINCT - ( + 83 ) * + col0 AS col2 FROM tab0
----
-1245
-7221
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4671
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - col0 = ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT - 56 DIV 11 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4673
SELECT - 56 / 11 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT - col2 DIV + + col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4674
SELECT - col2 / + + col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 66 * - col0 * + 84 * col0 FROM tab2
----
-11731104
-22708224
-31185000

onlyif mysql # aggregate syntax: 
query II rowsort label-4676
SELECT DISTINCT COUNT( * ) + + 92 AS col1, + COUNT( col2 ) FROM tab1
----
95
3

skipif mysql # not compatible
query II rowsort label-4676
SELECT DISTINCT COUNT ( * ) + + 92 AS col1, + COUNT ( col2 ) FROM tab1
----
95
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT + 82 - - col1 + 27 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1106
-167
-2590

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT + 82 - - col1 + 27 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1106
-167
-2590

query II rowsort
SELECT ALL - col0 + 17 AS col2, col2 + - col1 AS col1 FROM tab0 AS cor0
----
-70
-11
-80
98
2
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT ALL + 81 DIV + col2 - + + col0 + - col1 FROM tab2 cor0
----
-139
-141
-94

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 81 / + col2 - + + col0 + - col1 FROM tab2 cor0
----
-139
-141
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT MIN( col2 ) + + ( + COUNT( * ) ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4680
SELECT MIN ( col2 ) + + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 79 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
-79
47
-79
5
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT - - 24 + + CAST( NULL AS SIGNED ) - + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT - - 24 + + CAST ( NULL AS INTEGER ) - + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 - - - col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT + SUM( ( col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + SUM ( ( col0 ) ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4686
SELECT - col1 DIV - CAST( 89 AS SIGNED ) * + 64 + - + col1 * + col0 col2 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4686
SELECT - col1 / - CAST ( 89 AS INTEGER ) * + 64 + - + col1 * + col0 col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4687
SELECT col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT ALL 77 FROM tab2, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query II rowsort
SELECT ALL + 60 AS col1, col2 FROM tab2
----
60
23
60
40
60
58

query I rowsort
SELECT DISTINCT + - col1 * - col2 AS col2 FROM tab0 cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col1 FROM tab2
----
47

query I rowsort
SELECT DISTINCT - ( + 66 ) * - + col1 + col2 + - col0 + 9 + + col0 AS col2 FROM tab1 WHERE NOT + - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT - MIN( + - col1 ) + COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4693
SELECT - MIN ( + - col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT + - CAST( NULL AS SIGNED ) + + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT + - CAST ( NULL AS INTEGER ) + + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) * ( - 81 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT ALL - - col0 * 56 * - - col0 + + + col2 + - 54 DIV col2 AS col0 FROM tab2 AS cor0
----
118517
229415
315058

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - - col0 * 56 * - - col0 + + + col2 + - 54 / col2 AS col0 FROM tab2 AS cor0
----
118517
229415
315058

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - + 50 + + ( + COUNT( * ) ) AS col1 FROM tab2 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4697
SELECT - + 50 + + ( + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col0 IN ( 9, - col2 * + + col0 * + col0 + ( + 91 ), + + col1 ) )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE NOT ( + + col2 NOT IN ( + col2 + col1 ) )
----

query I rowsort
SELECT ALL + - 28 / - 14 * 1 * ( - + col0 ) * + col0 + + col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - col2 * - - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT - COUNT( * ) * + - 64 AS col1 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-4702
SELECT - COUNT ( * ) * + - 64 AS col1 FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT DISTINCT - COUNT( * ), - 6 AS col1 FROM tab1
----
-3
-6

skipif mysql # not compatible
query II rowsort label-4703
SELECT DISTINCT - COUNT ( * ), - 6 AS col1 FROM tab1
----
-3
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT SUM( ALL + 44 ), 11 AS col2 FROM tab0 WHERE - col0 * + + col2 IS NULL
----
NULL
11

skipif mysql # not compatible
query II rowsort label-4704
SELECT SUM ( ALL + 44 ), 11 AS col2 FROM tab0 WHERE - col0 * + + col2 IS NULL
----
NULL
11

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 61 * 99 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 + + ( 41 ) AS col2 FROM tab2 AS cor0
----
108
118
92

query II rowsort
SELECT 37, + col1 AS col0 FROM tab0 AS cor0
----
37
1
37
21
37
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE col1 BETWEEN - col0 - + + col0 AND + + col0
----
3

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE col1 BETWEEN - col0 - + + col0 AND + + col0
----
3

query I rowsort
SELECT DISTINCT + - col1 - + 33 AS col1 FROM tab0 AS cor0
----
-114
-34
-54

query I rowsort
SELECT ( + - 70 ) AS col1 FROM tab2 AS cor0
----
-70
-70
-70

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 71 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4713
SELECT DISTINCT + - 68, col0 DIV - - col1 + col1 + + 16 AS col1 FROM tab2 AS cor0
----
-68
67
-68
84
-68
93

skipif mysql # not compatible
query II rowsort label-4713
SELECT DISTINCT + - 68, col0 / - - col1 + col1 + + 16 AS col1 FROM tab2 AS cor0
----
-68
67
-68
84
-68
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < + col1 + + col2 * + col1 * + + 70
----

query II rowsort
SELECT ALL + col2 AS col1, - col2 * - col1 AS col2 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT 29 DIV + col2 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4716
SELECT 29 / + col2 AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 9, ( col2 ) + col0 )
----

query II rowsort
SELECT 47 * + col0 AS col2, + 2 FROM tab0
----
4089
2
4559
2
705
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4719
SELECT + + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4719
SELECT + + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - 61 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - 61 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
183

query II rowsort
SELECT col1 * - 10 + - + col0, + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-135
-295
-191
-1344
-561
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4722
SELECT DISTINCT + MIN( ALL + + 12 ) AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-4722
SELECT DISTINCT + MIN ( ALL + + 12 ) AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
12
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4723
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col2 + + - col1 - CAST( - col0 AS SIGNED ) + + - 96 * - - CAST( + col2 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col2 + + - col1 - CAST ( - col0 AS INTEGER ) + + - 96 * - - CAST ( + col2 AS REAL ) <> NULL
----

query II rowsort
SELECT DISTINCT 73 AS col2, col1 AS col2 FROM tab2
----
73
51
73
67
73
77

query I rowsort
SELECT DISTINCT - col2 + 75 AS col1 FROM tab0 WHERE col0 * - + col2 + + col1 - col1 <> 90
----
-24
28
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, 63 col0 FROM tab0 AS cor0
----
1
63
21
63
81
63

query I rowsort
SELECT DISTINCT - + col0 * - 68 * + ( - 68 ) + + + 45 + - col0 FROM tab0 cor0
----
-402330
-448580
-69330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, - col2 col0 FROM tab1 cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL SUM( - 53 ) AS col0 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL SUM ( - 53 ) AS col0 FROM tab0 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL COUNT( * ) + + 31 AS col2 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL COUNT ( * ) + + 31 AS col2 FROM tab1
----
34

query I rowsort
SELECT - col0 + + col1 + + col0 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT - 55 FROM tab0 WHERE 27 / 59 > NULL
----

query I rowsort
SELECT ALL 39 * 70 + - + col0 AS col2 FROM tab2
----
2655
2666
2684

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT COUNT( * ) - + COUNT( * ) - + 18 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4734
SELECT COUNT ( * ) - + COUNT ( * ) - + 18 FROM tab2 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 - + col2 col1 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT DISTINCT - ( 49 ) * + col1 FROM tab2
----
-2499
-3283
-3773

query I rowsort
SELECT DISTINCT col2 * + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 0 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL 51 * + SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
-3366

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL 51 * + SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
-3366

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4741
SELECT ALL + COUNT( * ) AS col2, 58 + + MAX( DISTINCT - - col0 ) FROM tab2
----
3
133

skipif mysql # not compatible
query II rowsort label-4741
SELECT ALL + COUNT ( * ) AS col2, 58 + + MAX ( DISTINCT - - col0 ) FROM tab2
----
3
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT MAX( + + 59 ) FROM tab2 AS cor0 WHERE NOT 55 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT MAX ( + + 59 ) FROM tab2 AS cor0 WHERE NOT 55 IS NULL
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT 91, COUNT( * ) AS col1 FROM tab0 cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-4743
SELECT 91, COUNT ( * ) AS col1 FROM tab0 cor0
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT + - 10 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-4744
SELECT + - 10 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 12 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

query III rowsort
SELECT * FROM tab2 WHERE + - ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL col2 / + col0 * + col0 + - col0 * + ( - col0 ) + - ( - + col2 ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL - MIN( + 59 ) + - MAX( DISTINCT + + 23 ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - MIN ( + 59 ) + - MAX ( DISTINCT + + 23 ) FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT - COUNT( * ) + - 64 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4749
SELECT - COUNT ( * ) + - 64 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT + ( - ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT + COUNT( ALL + col1 ) AS col1 FROM tab0 cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4751
SELECT + COUNT ( ALL + col1 ) AS col1 FROM tab0 cor0 WHERE + col2 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT + 83 * - 90 + + - col1 * - 83 + + - ( col0 ) AS col2 FROM tab2 WHERE - col1 * 13 BETWEEN 81 * - + 74 AND ( - col2 ) * - col1 - col0
----
-1143
-1984
-3283

query II rowsort
SELECT ALL col1 * - 93 + 83 AS col1, 79 FROM tab2
----
-4660
79
-6148
79
-7078
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT DISTINCT - COUNT( * ) col0, - AVG ( DISTINCT + col2 ) * COUNT( * ) / + SUM( 49 ) col1 FROM tab1 WHERE NULL = NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4755
SELECT DISTINCT - COUNT ( * ) col0, - AVG ( DISTINCT + col2 ) * COUNT ( * ) / + SUM ( 49 ) col1 FROM tab1 WHERE NULL = NULL
----
0
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 88, - col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT + COUNT( * ) * SUM( + 42 ) FROM tab2
----
378

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + COUNT ( * ) * SUM ( + 42 ) FROM tab2
----
378

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 7 - - + 84 - 55 FROM tab1
----
36
36
36

query I rowsort
SELECT + - 51 + + 71 AS col1 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT + 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query II rowsort
SELECT - 91 * + - col2, col1 AS col1 FROM tab2
----
2093
51
3640
77
5278
67

query I rowsort
SELECT + 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT 69 * + col1 + - col1 FROM tab1 cor0
----
3196
340
952

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + 56 / - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT + MIN( + 61 ) AS col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4766
SELECT + MIN ( + 61 ) AS col2 FROM tab2 AS cor0
----
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 * + col1 NOT BETWEEN + - 54 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 97 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 * - + col1 * ( col2 ) FROM tab0 AS cor0
----
-178929
-2100
-9801

query II rowsort
SELECT col1, col1 * - + col2 AS col1 FROM tab0
----
1
-99
21
-210
81
-3807

query I rowsort
SELECT ALL - col0 * 38 AS col2 FROM tab1
----
-1938
-3230
-3458

query I rowsort
SELECT - col0 * + - 43 FROM tab0
----
3741
4171
645

query I rowsort
SELECT DISTINCT - 71 * + col0 * col0 + + 23 AS col2 FROM tab0
----
-15952
-537376
-668016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 2, 65 col2 FROM tab2
----
2
65
2
65
2
65

query I rowsort
SELECT - 67 * + + col2 + - 62 FROM tab0 AS cor0
----
-3211
-6695
-732

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 61 * + - col1 <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4777
SELECT CAST( NULL AS SIGNED ), 25 * - 31 AS col0 FROM tab2
----
NULL
-775
NULL
-775
NULL
-775

skipif mysql # not compatible
query II rowsort label-4777
SELECT CAST ( NULL AS INTEGER ), 25 * - 31 AS col0 FROM tab2
----
NULL
-775
NULL
-775
NULL
-775

query II rowsort
SELECT + 23 AS col2, col1 AS col2 FROM tab1
----
23
14
23
47
23
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4779
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1, MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
6
NULL

skipif mysql # not compatible
query II rowsort label-4779
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1, MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
6
NULL

query I rowsort
SELECT 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4781
SELECT - CAST( - - 11 AS SIGNED ) FROM tab0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4781
SELECT - CAST ( - - 11 AS INTEGER ) FROM tab0
----
-11
-11
-11

query I rowsort
SELECT ALL - - col0 * + col0 + - + col1 FROM tab2 AS cor0
----
2065
4019
5558

query II rowsort
SELECT ALL + - col0 + - col1, - col1 AS col1 FROM tab0 cor0
----
-108
-21
-96
-81
-98
-1

query I rowsort
SELECT DISTINCT - - 10 FROM tab2 AS cor0 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL + - COUNT( * ) + - 35 AS col1 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + - COUNT ( * ) + - 35 AS col1 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT col2 + - - 45 * - col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT + 2 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-45
-8
-97

query II rowsort
SELECT DISTINCT col0, - 61 FROM tab0 AS cor0
----
15
-61
87
-61
97
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT COUNT( * ) + - 16 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4789
SELECT COUNT ( * ) + - 16 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - ( + + 29 ) + - + col1 AS col0 FROM tab1 AS cor0
----
-34
-43
-76

query I rowsort
SELECT ALL 60 + + - col0 - - col0 FROM tab1
----
60
60
60

query II rowsort
SELECT - col0 + - 28 AS col1, 52 AS col1 FROM tab1
----
-113
52
-119
52
-79
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 75 ) * + 45 + col2 col0 FROM tab2
----
-3317
-3335
-3352

query II rowsort
SELECT - col0 + - col1, col2 - - - col0 AS col2 FROM tab0
----
-108
-77
-96
32
-98
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= ( - col1 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT ALL + 51 + + - 44 AS col0, + COUNT( * ) AS col2 FROM tab1
----
7
3

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL + 51 + + - 44 AS col0, + COUNT ( * ) AS col2 FROM tab1
----
7
3

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE - + col2 < + col1 * - col2
----

query I rowsort
SELECT + + col2 - + 25 + col1 AS col0 FROM tab1 AS cor0
----
39
85
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 94 ) col0 FROM tab1 cor0
----
-94
-94
-94

query I rowsort
SELECT ALL 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query II rowsort
SELECT ALL + 43 AS col2, - col1 * - + col0 * - col2 AS col1 FROM tab1 AS cor0
----
43
-25075
43
-290836
43
-68544

query I rowsort
SELECT - col2 * + 86 AS col0 FROM tab2 AS cor0
----
-1978
-3440
-4988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT + 61 * - - CAST( - ( + + 93 ) AS SIGNED ) * - + col0 FROM tab0 AS cor0
----
493551
550281
85095

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + 61 * - - CAST ( - ( + + 93 ) AS INTEGER ) * - + col0 FROM tab0 AS cor0
----
493551
550281
85095

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL - COUNT( * ) * COUNT( * ) col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4804
SELECT ALL - COUNT ( * ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + col0 * 60 AS col1 FROM tab2 AS cor0
----
2760
3840
4500

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE + col0 * + 64 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - ( - - COUNT( - col0 ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4807
SELECT - ( - - COUNT ( - col0 ) ) col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col1 * + 99 * col2 + + - col0 AS col2 FROM tab0
----
20703
376878
9704

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT 81 IS NULL )
----

query I rowsort
SELECT ALL - col2 * - + col2 * - col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT - + 42 <= - 0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT DISTINCT + 97 DIV + + COUNT( 27 ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT + 97 / + + COUNT ( 27 ) FROM tab0 AS cor0
----
32

query I rowsort
SELECT 13 + + + 76 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - - MIN( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4815
SELECT - - MIN ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT + 17 * - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) - - - col2 + + + 51 + - 75 / - col1 * - 88 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT + 17 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) - - - col2 + + + 51 + - 75 / - col1 * - 88 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 - - + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT ALL CAST( - 99 AS SIGNED ) FROM tab0 cor0 WHERE 43 IS NOT NULL
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL CAST ( - 99 AS INTEGER ) FROM tab0 cor0 WHERE 43 IS NOT NULL
----
-99
-99
-99

query II rowsort
SELECT DISTINCT + 87, col2 AS col0 FROM tab1 AS cor0
----
87
59
87
68
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT - + col2 * - col1 * + col2, col1 FROM tab2 cor0
----
123200
77
225388
67
26979
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT DISTINCT - ( - + col0 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT - ( - + col0 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 18 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT ALL + 50 DIV col1 DIV - 45 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + 50 / col1 / - 45 AS col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 91 col1, col0 AS col2 FROM tab2 WHERE NOT + 87 IS NULL
----
91
46
91
64
91
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 + - col1 col0 FROM tab2
----
-24
-34
-8

query I rowsort
SELECT - col0 + 31 FROM tab0
----
-56
-66
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT DISTINCT col2 DIV - + col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT col2 / - + col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4830
SELECT ALL - + COUNT( * ) DIV + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - + COUNT ( * ) / + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4831
SELECT AVG ( ALL - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT AVG ( ALL - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * - 51 * - + col0 + + col1 * + col2 * + col1 > + - col2 * + + col0 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col1 - + ( col1 ) col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL ( COUNT( ALL - col0 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL ( COUNT ( ALL - col0 ) ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 = + - 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 * - ( - + col1 ) + col0 + + + 11 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
-329
-85
-4175
-91
-652
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col1 FROM tab1 AS cor0 WHERE - ( + 3 ) >= ( NULL )
----

query I rowsort
SELECT - 68 FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4839
SELECT * FROM tab2 AS cor0 WHERE NOT + 58 / col0 NOT IN ( - CAST( + col2 AS SIGNED ) * - col2 * col2 + col1 * - 42, col1, + + 32 )
----

skipif mysql # not compatible
query III rowsort label-4839
SELECT * FROM tab2 AS cor0 WHERE NOT + 58 / col0 NOT IN ( - CAST ( + col2 AS INTEGER ) * - col2 * col2 + col1 * - 42, col1, + + 32 )
----

query II rowsort
SELECT 56 - - col2, - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
103
-81
155
-1
66
-21

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 53 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 34 + + - 66 + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 34 + + - 66 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT - + col2 DIV 62 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT - + col2 / 62 AS col1 FROM tab0 AS cor0
----
-1
0
0

query II rowsort
SELECT + 55, - 82 * + col1 + - col2 AS col1 FROM tab1
----
55
-1244
55
-3922
55
-469

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4845
SELECT * FROM tab2 WHERE NOT NULL <> col1 * 87 - - CAST( NULL AS SIGNED ) + + col0 + 88 * - - 38
----

skipif mysql # not compatible
query III rowsort label-4845
SELECT * FROM tab2 WHERE NOT NULL <> col1 * 87 - - CAST ( NULL AS INTEGER ) + + col0 + 88 * - - 38
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NULL IN ( 43 / + + 15 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - MAX( DISTINCT + ( col1 ) ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4847
SELECT - MAX ( DISTINCT + ( col1 ) ) AS col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT COUNT( - 8 ) + + 8 AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-4848
SELECT COUNT ( - 8 ) + + 8 AS col2 FROM tab2
----
11

query I rowsort
SELECT - col2 + - - col2 + + + col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + 70
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL COUNT( * ) * + 12 col1 FROM tab1
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4852
SELECT ALL COUNT ( * ) * + 12 col1 FROM tab1
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col1 col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4854
SELECT ALL - COUNT( * ) col2, - 1 AS col1 FROM tab1 AS cor0
----
-3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4854
SELECT ALL - COUNT ( * ) col2, - 1 AS col1 FROM tab1 AS cor0
----
-3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT - - 77 + COUNT( DISTINCT - + ( - 25 ) ) col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4855
SELECT DISTINCT - - 77 + COUNT ( DISTINCT - + ( - 25 ) ) col1 FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL + 79 * + 11 AS col1 FROM tab2 AS cor0
----
869
869
869

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL - COUNT( + 81 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - COUNT ( + 81 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL col2 + ( + + col1 ) FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL - + SUM( DISTINCT - col2 ) + 33 AS col2 FROM tab2 cor0
----
154

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - + SUM ( DISTINCT - col2 ) + 33 AS col2 FROM tab2 cor0
----
154

query I rowsort
SELECT ALL + 80 + - col2 * - col2 FROM tab1 AS cor0
----
3561
4704
9296

query I rowsort
SELECT + - 72 * + col1 + + 58 + 61 AS col0 FROM tab2 AS cor0
----
-3553
-4705
-5425

query I rowsort
SELECT DISTINCT ( + - col0 ) - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4863
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + 81 < + + CAST( NULL AS SIGNED ) + - - 45
----

skipif mysql # not compatible
query III rowsort label-4863
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + 81 < + + CAST ( NULL AS INTEGER ) + - - 45
----

query II rowsort
SELECT + 47 + - col1 * + 4 + - col1, col0 FROM tab2 cor0
----
-208
46
-288
75
-338
64

query I rowsort
SELECT - col0 * 81 AS col2 FROM tab0
----
-1215
-7047
-7857

query I rowsort
SELECT ALL - 1 + - + 79 FROM tab0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL COUNT( * ) * + + 25 AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL COUNT ( * ) * + + 25 AS col0 FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT + CAST( - 0 AS SIGNED ) * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT + CAST ( - 0 AS INTEGER ) * col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL COUNT( col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL COUNT ( col1 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL MAX( DISTINCT + + col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4870
SELECT ALL MAX ( DISTINCT + + col2 ) col2 FROM tab1
----
96

query I rowsort
SELECT col1 * 8 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4872
SELECT - COUNT( * ) DIV - 32 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4872
SELECT - COUNT ( * ) / - 32 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 * + 7 AS col0 FROM tab2 AS cor0
----
-357
-469
-539

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4874
SELECT + CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT + CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + - ( + 51 ) + + - COUNT( * ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4875
SELECT + - ( + 51 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-54

query II rowsort
SELECT DISTINCT - - col0 AS col2, - col0 AS col0 FROM tab0 cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL 57 * COUNT( DISTINCT 56 ) FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL 57 * COUNT ( DISTINCT 56 ) FROM tab0 cor0
----
57

query II rowsort
SELECT - 21 AS col2, 48 FROM tab1 AS cor0
----
-21
48
-21
48
-21
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL + 73 col2 FROM tab1 AS cor0 WHERE NOT + CAST( + 11 AS SIGNED ) IS NULL
----
73
73
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT ALL + 73 col2 FROM tab1 AS cor0 WHERE NOT + CAST ( + 11 AS INTEGER ) IS NULL
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT DISTINCT - + CAST( + 86 AS SIGNED ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - + CAST ( + 86 AS INTEGER ) FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL col2 + - col2 + + + col2 * col1 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 WHERE + + col1 > + - 12 / 81 + + 68
----

query I rowsort
SELECT col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 14
----

query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4885
SELECT - + CAST( NULL AS DECIMAL ) / ( + 74 ) - + 1 + + col1, col1 AS col0 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4885
SELECT - + CAST ( NULL AS REAL ) / ( + 74 ) - + 1 + + col1, col1 AS col0 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL SUM( + 84 ) AS col1 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL SUM ( + 84 ) AS col1 FROM tab1 AS cor0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL CAST( + col0 AS SIGNED ) + + + 89 FROM tab1
----
140
174
180

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL CAST ( + col0 AS INTEGER ) + + + 89 FROM tab1
----
140
174
180

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 * + col1 + + - col0 IS NULL
----

query I rowsort
SELECT ALL + col2 - + 49 FROM tab2 AS cor0
----
-26
-9
9

query I rowsort
SELECT DISTINCT - + 54 - - col1 AS col0 FROM tab1 AS cor0
----
-40
-49
-7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - - col2 ) col2 FROM tab2 AS cor0 WHERE NOT col0 + + col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - 71 AS col2 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT ALL - col1 * - ( + col1 ) FROM tab0
----
1
441
6561

query III rowsort
SELECT * FROM tab2 WHERE NOT 23 IS NOT NULL
----

query I rowsort
SELECT - 6 * - col0 AS col2 FROM tab2
----
276
384
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT - COUNT( * ) + + ( + COUNT( * ) ) AS col2 FROM tab2 WHERE NOT - 22 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4897
SELECT - COUNT ( * ) + + ( + COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT - 22 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4898
SELECT + - col0 DIV + - col1, col1 AS col1 FROM tab0 cor0
----
0
81
4
21
97
1

skipif mysql # not compatible
query II rowsort label-4898
SELECT + - col0 / + - col1, col1 AS col1 FROM tab0 cor0
----
0
81
4
21
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT DISTINCT + - 23 * + COUNT( * ), MIN( DISTINCT - 12 ) AS col2 FROM tab1 cor0
----
-69
-12

skipif mysql # not compatible
query II rowsort label-4899
SELECT DISTINCT + - 23 * + COUNT ( * ), MIN ( DISTINCT - 12 ) AS col2 FROM tab1 cor0
----
-69
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 17 * + - col2 FROM tab2
----
-391
-680
-986

query I rowsort
SELECT - col0 * - - ( col1 ) * + 79 FROM tab1
----
-33575
-337883
-56406

query I rowsort
SELECT 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + - 93 * + col0 AS col0 FROM tab0 AS cor0
----
-1395
-8091
-9021

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - + 50 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4907
SELECT - CAST( + 60 AS SIGNED ) * col0 DIV 69 + - 24 AS col2 FROM tab1 AS cor0
----
-103
-68
-97

skipif mysql # not compatible
query I rowsort label-4907
SELECT - CAST ( + 60 AS INTEGER ) * col0 / 69 + - 24 AS col2 FROM tab1 AS cor0
----
-103
-68
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND col2
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - 99 + - col0 + + ( + col0 ), col2 + + + 98 col1 FROM tab0 AS cor0
----
-12
108
-2
197
-84
145

query II rowsort
SELECT ALL col1 AS col2, 5 AS col1 FROM tab1
----
14
5
47
5
5
5

query I rowsort
SELECT col0 + + - 49 + + col1 AS col1 FROM tab0
----
47
49
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT ALL - 39 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - 39 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT MIN( - + col2 ) + + - 0 AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4915
SELECT MIN ( - + col2 ) + + - 0 AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL 9 + - + col2 AS col2 FROM tab1
----
-50
-59
-87

query I rowsort
SELECT + col2 + + col0 * + col2 AS col1 FROM tab2
----
1081
2600
4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) + col2 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4918
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + col2 col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 + - ( + col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + + + ( 2 ) FROM tab1
----
16
49
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT ALL col1 - + 78 * 36 * - + col2 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL col1 - + 78 * 36 * - + col2 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT 42 * - SUM( ALL - - 61 ) col0 FROM tab0
----
-7686

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4922
SELECT DISTINCT 42 * - SUM ( ALL - - 61 ) col0 FROM tab0
----
-7686

query I rowsort
SELECT + + 20 AS col2 FROM tab1 AS cor0
----
20
20
20

query II rowsort
SELECT - col2, col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 82 * + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 62 * + col1
----

query I rowsort
SELECT DISTINCT - 21 * + col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

query I rowsort
SELECT 2 * col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4928
SELECT COUNT( * ) * + COUNT( * ) * - 33 * + - COUNT( * ) AS col1, COUNT( * ) DIV 99 FROM tab2
----
891
0

skipif mysql # not compatible
query II rowsort label-4928
SELECT COUNT ( * ) * + COUNT ( * ) * - 33 * + - COUNT ( * ) AS col1, COUNT ( * ) / 99 FROM tab2
----
891
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 - - - col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4930
SELECT DISTINCT COUNT( * ) * + - MAX( 69 ) AS col0, MIN( ALL col1 ) FROM tab2
----
-207
51

skipif mysql # not compatible
query II rowsort label-4930
SELECT DISTINCT COUNT ( * ) * + - MAX ( 69 ) AS col0, MIN ( ALL col1 ) FROM tab2
----
-207
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT + COUNT( DISTINCT - 7 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4931
SELECT DISTINCT + COUNT ( DISTINCT - 7 ) col2 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 + - col0 IS NOT NULL
----

query II rowsort
SELECT - 63 AS col2, + col1 FROM tab2 cor0
----
-63
51
-63
67
-63
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT MAX( ALL 71 ) col1 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4935
SELECT MAX ( ALL 71 ) col1 FROM tab0 AS cor0
----
71

query I rowsort
SELECT + ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL - 47 * + COUNT( * ) col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4937
SELECT ALL - 47 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
-141

query I rowsort
SELECT + col0 - + ( 52 - 19 ) * ( col2 * - 9 ) AS col1 FROM tab0 WHERE NULL IN ( col1 * col1 )
----

query I rowsort
SELECT DISTINCT + col1 * - 41 FROM tab0
----
-3321
-41
-861

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col2 BETWEEN col2 + + col2 AND - 16 + + 80
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 29 <= col1 - 31 * col1
----

query I rowsort
SELECT - col1 * 1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 22 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - COUNT( * ) * + COUNT( col0 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4944
SELECT - COUNT ( * ) * + COUNT ( col0 ) FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / + 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + col1 col2 FROM tab0
----
306
7590
9410

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT + col1 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL 87 * COUNT( * ) AS col0 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL 87 * COUNT ( * ) AS col0 FROM tab1
----
261

query I rowsort
SELECT DISTINCT + col2 * + 33 FROM tab1
----
1947
2244
3168

query I rowsort
SELECT DISTINCT col2 * - 70 FROM tab1
----
-4130
-4760
-6720

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col2 BETWEEN col0 * - col1 AND + col2 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE ( col1 ) < col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL MIN( DISTINCT - col0 ) FROM tab1 WHERE NOT + col0 * - 72 - col0 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL MIN ( DISTINCT - col0 ) FROM tab1 WHERE NOT + col0 * - 72 - col0 IS NULL
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT + col0 DIV 86 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4955
SELECT + col0 / 86 AS col2 FROM tab0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT - col1 DIV col1 col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4957
SELECT - col1 / col1 col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + 39 + col0 FROM tab0 cor0
----
126
136
54

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab0 cor0 WHERE NOT ( - col2 ) >= NULL
----

query I rowsort
SELECT - 52 + col2 AS col1 FROM tab1 cor0
----
16
44
7

query I rowsort
SELECT ALL col0 + - 95 FROM tab1 AS cor0
----
-10
-4
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT - ( - col2 ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT - ( - col2 ) + col2 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + 97
----

query I rowsort
SELECT + ( 81 ) AS col0 FROM tab0
----
81
81
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 - 1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT COUNT( * ) DIV + 76 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4966
SELECT COUNT ( * ) / + 76 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + ( 29 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT + - COUNT( * ) * + 97 col0 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT DISTINCT + - COUNT ( * ) * + 97 col0 FROM tab0 AS cor0
----
-291

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 / 57 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL - COUNT( * ) * 39 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - COUNT ( * ) * 39 FROM tab0 AS cor0
----
-117

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 11
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 47 ) AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT + 68 DIV + 28 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4975
SELECT + 68 / + 28 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4976
SELECT * FROM tab1 WHERE NOT + col2 / + CAST( + 68 AS SIGNED ) + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4976
SELECT * FROM tab1 WHERE NOT + col2 / + CAST ( + 68 AS INTEGER ) + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 71 * - 52 FROM tab1
----
-3692
-3692
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL SUM( DISTINCT + - 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL SUM ( DISTINCT + - 59 ) FROM tab0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( 9 ) IN ( - col0 )
----

query I rowsort
SELECT col1 * + col0 * col1 FROM tab2
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 28 ) col2 FROM tab1
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT ( + 26 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT ( + 26 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - SUM( - 8 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-4983
SELECT - SUM ( - 8 ) FROM tab1
----
24

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 26 * col1 + 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab0 AS cor0 WHERE NOT 26 + - col1 NOT BETWEEN + col1 AND - col0 * col0
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 95 * - col0 AND - col1 - + col2
----

query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col0 + col1 ) AND + col0 + + 20
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 40 / + col0 + - col0 * - col1 ) BETWEEN NULL AND + col0 + + col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 54 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
54
54
54

query I rowsort
SELECT DISTINCT col2 + ( + 91 ) AS col1 FROM tab1
----
150
159
187

query I rowsort
SELECT ALL + 35 * 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 63 + 48 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT 36 * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
324

skipif mysql # not compatible
query I rowsort label-4992
SELECT 36 * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
324

query I rowsort
SELECT ALL ( - 3 ) * + 72 * 86 AS col0 FROM tab1 AS cor0
----
-18576
-18576
-18576

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT DISTINCT - col0 DIV + - col1 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT - col0 / + - col1 FROM tab0 cor0
----
0
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT - ( + col1 ) + - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT - ( + col1 ) + - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT 76 * - 69 AS col0 FROM tab2 AS cor0
----
-5244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( 39 ) col0 FROM tab0 AS cor0
----
-120
-40
-60

query I rowsort
SELECT col1 + 35 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND + 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT - CAST( - + 21 AS SIGNED ) + - + col1 FROM tab2
----
-30
-46
-56

skipif mysql # not compatible
query I rowsort label-4999
SELECT - CAST ( - + 21 AS INTEGER ) + - + col1 FROM tab2
----
-30
-46
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5000
SELECT col1 * + col0 * + 97 + 93 DIV + col2 AS col1 FROM tab0
----
117856
177228
9409

skipif mysql # not compatible
query I rowsort label-5000
SELECT col1 * + col0 * + 97 + 93 / + col2 AS col1 FROM tab0
----
117856
177228
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5001
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT ( + MAX( - ( + 62 ) ) ) + - 47 col0 FROM tab0
----
-109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5002
SELECT DISTINCT ( + MAX ( - ( + 62 ) ) ) + - 47 col0 FROM tab0
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT - 31 + 32 DIV col1 AS col1 FROM tab0
----
-30
-31
1

skipif mysql # not compatible
query I rowsort label-5003
SELECT - 31 + 32 / col1 AS col1 FROM tab0
----
-30
-31
1

query I rowsort
SELECT ALL ( col2 ) FROM tab2 WHERE NOT ( - 22 + + col1 * col0 ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL + 88 * col1 + + - col0 FROM tab1
----
1181
355
4045

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE col0 + + 76 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL COUNT( * ) - - COUNT( * ) * 2 AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL COUNT ( * ) - - COUNT ( * ) * 2 AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE col0 IN ( col1 * 1 + - col2 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col0 IN ( col1 * 1 + - col2 + - col0 )
----
0

query I rowsort
SELECT - 22 - + 80 + col2 AS col0 FROM tab2 cor0
----
-44
-62
-79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT col2 + 60 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col0 ) * col1 FROM tab1 WHERE NOT + 21 * col2 + 79 > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 55 + + col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col0, col2 * - 79 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5015
SELECT col1, col2 DIV col1 AS col0 FROM tab1 AS cor0
----
14
6
47
1
5
11

skipif mysql # not compatible
query II rowsort label-5015
SELECT col1, col2 / col1 AS col0 FROM tab1 AS cor0
----
14
6
47
1
5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + MAX( - 45 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + MAX ( - 45 ) FROM tab0 AS cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab2 AS cor0 WHERE NOT + 73 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, - col2 AS col1 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT - ( + CAST( col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5019
SELECT - ( + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT - col2 AS col1, col0 * + 40 AS col1 FROM tab1
----
-59
3400
-68
3640
-96
2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT MIN( ALL - col0 ) DIV COUNT( * ) + SUM( col2 + + 20 * + col0 ) FROM tab2 WHERE + col1 NOT IN ( - - col2 - + col0 )
----
3796

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT MIN ( ALL - col0 ) / COUNT ( * ) + SUM ( col2 + + 20 * + col0 ) FROM tab2 WHERE + col1 NOT IN ( - - col2 - + col0 )
----
3796

onlyif mysql # aggregate syntax: 
query II rowsort label-5023
SELECT DISTINCT 52 AS col1, - COUNT( * ) * - MIN( - col0 ) AS col0 FROM tab2
----
52
-225

skipif mysql # not compatible
query II rowsort label-5023
SELECT DISTINCT 52 AS col1, - COUNT ( * ) * - MIN ( - col0 ) AS col0 FROM tab2
----
52
-225

query I rowsort
SELECT - col1 * + + 84 * + 24 AS col0 FROM tab1
----
-10080
-28224
-94752

query I rowsort
SELECT - 76 * - col1 FROM tab0
----
1596
6156
76

query I rowsort
SELECT + 42 * 39 FROM tab1
----
1638
1638
1638

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5028
SELECT - CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT - CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT - ( + CAST( NULL AS SIGNED ) ) / col2 * + ( + + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT - ( + CAST ( NULL AS INTEGER ) ) / col2 * + ( + + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 77 AS col2, 13 + - 27 FROM tab1 AS cor0
----
-77
-14
-77
-14
-77
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 18 col2 FROM tab2 AS cor0
----
-18
-18
-18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 13 IN ( + 7 )
----

query I rowsort
SELECT 62 * + col1 + + 51 AS col0 FROM tab2 AS cor0
----
3213
4205
4825

query I rowsort
SELECT ALL - + col2 * - 64 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT DISTINCT - col0 + col1 * - - col1 AS col1 FROM tab1
----
-60
145
2118

query I rowsort
SELECT + - col0 + - + 9 * + ( - col1 ) * + - 15 * + col0 FROM tab1 cor0
----
-57460
-577486
-96441

query I rowsort
SELECT ALL - - 81 + - + col1 FROM tab0 AS cor0
----
0
60
80

query II rowsort
SELECT + col0 * + - col0 * 16 AS col1, - col2 * + ( + 67 ) FROM tab0 AS cor0
----
-121104
-670
-150544
-6633
-3600
-3149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5039
SELECT + col2 - + col1 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND - col0 * 99 + + col0 + - - 77 * + + 95 + + col1 * CAST( - col0 * + col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5039
SELECT + col2 - + col1 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND - col0 * 99 + + col0 + - - 77 * + + 95 + + col1 * CAST ( - col0 * + col2 AS REAL )
----

query I rowsort
SELECT col1 * - 69 + + col1 + - - col2 AS col2 FROM tab0 AS cor0
----
-1418
-5461
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT 36 * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( + + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT 36 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( + + col2 ) )
----
0

query II rowsort
SELECT - col2 * - + col1 AS col2, - col0 FROM tab2 cor0
----
1173
-46
3080
-64
3886
-75

query I rowsort
SELECT DISTINCT - col2 - + 74 * + col1 FROM tab0 AS cor0
----
-1564
-173
-6041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5044
SELECT ( + SUM( ALL + 60 ) ) col2 FROM tab0 WHERE NULL > ( - col1 - + col2 * - col2 / 7 + + - col0 + - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5044
SELECT ( + SUM ( ALL + 60 ) ) col2 FROM tab0 WHERE NULL > ( - col1 - + col2 * - col2 / 7 + + - col0 + - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT DISTINCT - COUNT( - + CAST( col1 AS SIGNED ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - COUNT ( - + CAST ( col1 AS INTEGER ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5046
SELECT DISTINCT + ( + - ( + + COUNT( * ) ) ) + - + 16 DIV - ( - 51 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + ( + - ( + + COUNT ( * ) ) ) + - + 16 / - ( - 51 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL col0 * - + 47 AS col1 FROM tab0
----
-4089
-4559
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL SUM( DISTINCT col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL SUM ( DISTINCT col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 - - 48 FROM tab1
----
53
62
95

query III rowsort
SELECT * FROM tab1 WHERE + - 92 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 33 + - 83 NOT IN ( - col0 - + + col0 * - + 85 / + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - col0 + col1, col0, - col2 + - ( col0 ) ) AND NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + 95 + - - COUNT( * ) - + 56 FROM tab0 AS cor0 WHERE - 64 IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-5053
SELECT + 95 + - - COUNT ( * ) - + 56 FROM tab0 AS cor0 WHERE - 64 IS NULL
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col0 FROM tab0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT + COUNT( * ) * + MAX( col1 ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5055
SELECT + COUNT ( * ) * + MAX ( col1 ) FROM tab0 AS cor0
----
243

query I rowsort
SELECT - + 83 AS col0 FROM tab1 AS cor0
----
-83
-83
-83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 14 + + 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT - - col2 DIV - col2 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5058
SELECT - - col2 / - col2 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT 63 DIV - 69 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT 63 / - 69 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + MAX( ALL 85 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5060
SELECT + MAX ( ALL 85 ) FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL - COUNT( DISTINCT - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL - COUNT ( DISTINCT - col1 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - - 23 AS col0 FROM tab2 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT - COUNT( * ) + - + 65 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - COUNT ( * ) + - + 65 FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT 46 * - ( + - 43 ) + - + COUNT( ( col1 ) ) + 7 AS col2 FROM tab1
----
1982

skipif mysql # not compatible
query I rowsort label-5064
SELECT 46 * - ( + - 43 ) + - + COUNT ( ( col1 ) ) + 7 AS col2 FROM tab1
----
1982

query I rowsort
SELECT DISTINCT - + col2 * col2 - + col0 AS col1 FROM tab0 WHERE NOT ( - 88 ) BETWEEN - col1 AND NULL
----
-187
-2224
-9898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5066
SELECT ALL - CAST( + MIN( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - CAST ( + MIN ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - col2 * - + 4 FROM tab2 AS cor0
----
160
232
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 25 ) col2 FROM tab2
----
25
25
25

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 20 * + + 58 ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 22 col1 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT col1 + 55 FROM tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - col1 ) NOT BETWEEN NULL AND col1 * - + 62 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT 12 - SUM( + col1 ) AS col2 FROM tab1 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT 12 - SUM ( + col1 ) AS col2 FROM tab1 cor0
----
-54

query I rowsort
SELECT + - ( + col2 ) * + - col0 * + + col2 - + ( + 64 ) + - + col0 AS col0 FROM tab2 AS cor0
----
102272
24224
252161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - col2 + + + 80 FROM tab1
----
-16
12
21

query I rowsort
SELECT 37 + + - 94 + + + 46 AS col1 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT ALL + ( + col0 ) * - ( + col2 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT ( - + col2 ) DIV - 48 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5080
SELECT ( - + col2 ) / - 48 AS col2 FROM tab0
----
0
0
2

query I rowsort
SELECT ( col2 ) * - 10 FROM tab1
----
-590
-680
-960

query I rowsort
SELECT DISTINCT + col1 * - + col1 + ( + + col0 ) FROM tab0 AS cor0
----
-354
-6546
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 WHERE NOT NULL NOT IN ( col0 * 51 + col2 - + + 77, + col1 * + col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT + COUNT( DISTINCT - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5084
SELECT + COUNT ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 67 * - 23 + + col2 FROM tab1 AS cor0
----
1600
1609
1637

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT - + ( 16 ) DIV col1 * + col1 - 83 AS col1 FROM tab0 AS cor0
----
-83
-83
-99

skipif mysql # not compatible
query I rowsort label-5086
SELECT - + ( 16 ) / col1 * + col1 - 83 AS col1 FROM tab0 AS cor0
----
-83
-83
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT MIN( col1 ) col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5087
SELECT MIN ( col1 ) col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT 13 FROM tab1 WHERE NOT - 35 * + 45 NOT IN ( - col2, - ( - 37 ), - 3 - - col1 + - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5089
SELECT * FROM tab2 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ), + col2 - + ( + col0 ), - 75 )
----

skipif mysql # not compatible
query III rowsort label-5089
SELECT * FROM tab2 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ), + col2 - + ( + col0 ), - 75 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT DISTINCT + col1 + CAST( - col1 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + col1 + CAST ( - col1 AS INTEGER ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL + COUNT( * ) + + ( - 83 ) FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL + COUNT ( * ) + + ( - 83 ) FROM tab1
----
-80

query I rowsort
SELECT - + 82 * + 52 AS col0 FROM tab0 AS cor0
----
-4264
-4264
-4264

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT ALL + col0 DIV - 90 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + col0 / - 90 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab0 cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL COUNT( * ) - + 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-77

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL COUNT ( * ) - + 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-77

query I rowsort
SELECT DISTINCT - 62 + col1 AS col1 FROM tab1 AS cor0
----
-15
-48
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5098
SELECT + - COUNT( * ), - 7 AS col1 FROM tab0 AS cor0
----
-3
-7

skipif mysql # not compatible
query II rowsort label-5098
SELECT + - COUNT ( * ), - 7 AS col1 FROM tab0 AS cor0
----
-3
-7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > + col0
----

query I rowsort
SELECT ALL 90 * ( + 36 ) - col1 AS col2 FROM tab1 AS cor0
----
3193
3226
3235

query II rowsort
SELECT - 74, + col1 FROM tab2 AS cor0
----
-74
51
-74
67
-74
77

query I rowsort
SELECT DISTINCT - 14 * + col2 AS col2 FROM tab2 AS cor0
----
-322
-560
-812

query I rowsort
SELECT DISTINCT + 45 - col0 AS col0 FROM tab1 AS cor0
----
-40
-46
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5104
SELECT 6 DIV + - MAX( ALL + + 3 ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5104
SELECT 6 / + - MAX ( ALL + + 3 ) AS col0 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5105
SELECT + col2 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5105
SELECT + col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + col0 * - + col1
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + 9 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + + MAX( 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5109
SELECT + + MAX ( 35 ) FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5110
SELECT DISTINCT + - COUNT( * ), - 21 DIV + 9 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3
-2

skipif mysql # not compatible
query II rowsort label-5110
SELECT DISTINCT + - COUNT ( * ), - 21 / + 9 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0, - col2 col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT DISTINCT - COUNT( * ), + COUNT( * ) + 51 AS col0 FROM tab1 AS cor0
----
-3
54

skipif mysql # not compatible
query II rowsort label-5113
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) + 51 AS col0 FROM tab1 AS cor0
----
-3
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT - col1 / - ( - + col2 ) * CAST( NULL AS SIGNED ) * col0 + - 35 + + - col1 AS col0 FROM tab2 WHERE NOT 31 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT - col1 / - ( - + col2 ) * CAST ( NULL AS INTEGER ) * col0 + - 35 + + - col1 AS col0 FROM tab2 WHERE NOT 31 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 95 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * col1 AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT + - 99 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5117
SELECT + - 99 / + col0 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL - + 50 * - COUNT( - - col0 ) * - - MAX( ALL 26 ) * + 77 FROM tab0 AS cor0
----
300300

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - + 50 * - COUNT ( - - col0 ) * - - MAX ( ALL 26 ) * + 77 FROM tab0 AS cor0
----
300300

query I rowsort
SELECT DISTINCT - + 60 * - + col0 FROM tab2 AS cor0
----
2760
3840
4500

onlyif mysql # DIV for integer division: 
query II rowsort label-5120
SELECT ALL - col0 * 71 AS col0, 29 * + col1 * col2 DIV + col1 FROM tab1 cor0
----
-3621
2784
-6035
1711
-6461
1972

skipif mysql # not compatible
query II rowsort label-5120
SELECT ALL - col0 * 71 AS col0, 29 * + col1 * col2 / + col1 FROM tab1 cor0
----
-3621
2784
-6035
1711
-6461
1972

query I rowsort
SELECT DISTINCT 91 * - - 31 * - 21 FROM tab0
----
-59241

query I rowsort
SELECT - col2 * + 83 + + col1 AS col2 FROM tab2
----
-1858
-3243
-4747

query II rowsort
SELECT + col2 + col2 + - col2 AS col2, - 20 AS col0 FROM tab0
----
10
-20
47
-20
99
-20

query I rowsort
SELECT col0 + + - col1 AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5125
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5125
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 3 AS col2, col1 col2 FROM tab2 AS cor0 WHERE - col0 >= NULL
----

query I rowsort
SELECT DISTINCT + - col0 - - col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5128
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col2 + - - col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5128
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col2 + - - col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 JOIN tab2 cor1 ON NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5131
SELECT - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5134
SELECT DISTINCT + SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT SUM( DISTINCT - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT SUM ( DISTINCT - + col1 ) FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 96 < NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( 75 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT + ( + 10 ) DIV + + 3 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5139
SELECT + ( + 10 ) / + + 3 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT 32 * + 3 * - COUNT( * ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT 32 * + 3 * - COUNT ( * ) FROM tab1 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL - 38 * + ( + ( COUNT( * ) ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-342

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - 38 * + ( + ( COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-342

query I rowsort
SELECT ALL col0 * + - 85 FROM tab2 AS cor0
----
-3910
-5440
-6375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT ALL col0 / col2 + - CAST( NULL AS SIGNED ) + - 16 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL col0 / col2 + - CAST ( NULL AS INTEGER ) + - 16 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 55 * + col2 FROM tab1 AS cor0
----
3245
3740
5280

query I rowsort
SELECT + col2 + 86 FROM tab0 cor0
----
133
185
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT DISTINCT - SUM( DISTINCT 67 ) * - 69 FROM tab1 AS cor0
----
4623

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT - SUM ( DISTINCT 67 ) * - 69 FROM tab1 AS cor0
----
4623

query I rowsort
SELECT - col0 * + - col1 AS col0 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT - + 58 * col1 * + col0 FROM tab2 AS cor0
----
-136068
-285824
-291450

query II rowsort
SELECT + - col1, col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT ALL + col2 AS col1, - col2 * + col0 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT - MIN( - col0 ) + + + 95 AS col2 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - MIN ( - col0 ) + + + 95 AS col2 FROM tab1 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL - 97 + - MAX( ALL 6 ) * + + COUNT( * ) FROM tab0
----
-115

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL - 97 + - MAX ( ALL 6 ) * + + COUNT ( * ) FROM tab0
----
-115

query I rowsort
SELECT DISTINCT ( - 7 ) + - + 95 FROM tab2
----
-102

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0 cor0 WHERE 75 <= + + 52 * col2 - + 76
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL + 68 + MAX( DISTINCT - + 10 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + 68 + MAX ( DISTINCT - + 10 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL 81 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query II rowsort
SELECT DISTINCT 99 AS col2, - 8 * col2 FROM tab1
----
99
-472
99
-544
99
-768

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= 21
----

query I rowsort
SELECT DISTINCT + 8 - + + 3 FROM tab0 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT + + CAST( - 11 AS SIGNED ) * + + MAX( + col1 ) * 36 FROM tab1 AS cor0
----
-18612

skipif mysql # not compatible
query I rowsort label-5160
SELECT + + CAST ( - 11 AS INTEGER ) * + + MAX ( + col1 ) * 36 FROM tab1 AS cor0
----
-18612

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT ALL + 14 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + 14 / - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT + COUNT( * ), COUNT( * ) * - 29 + + + 69 + + COUNT( * ) col1 FROM tab1 AS cor0
----
3
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5162
SELECT + COUNT ( * ), COUNT ( * ) * - 29 + + + 69 + + COUNT ( * ) col1 FROM tab1 AS cor0
----
3
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT DISTINCT + - CAST( + 43 AS SIGNED ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT + - CAST ( + 43 AS INTEGER ) FROM tab1 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT - - col0 AS col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) <> - - col0
----

skipif mysql # not compatible
query I rowsort label-5165
SELECT - - col0 AS col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) <> - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT 38 + 40 FROM tab0 WHERE NULL = - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + COUNT( * ) FROM tab1 WHERE NOT + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5170
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + col0 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5171
SELECT 62, - COUNT( * ) AS col1 FROM tab2
----
62
-3

skipif mysql # not compatible
query II rowsort label-5171
SELECT 62, - COUNT ( * ) AS col1 FROM tab2
----
62
-3

query I rowsort
SELECT DISTINCT - col0 * + col1 + - col1 * - 44 * + - 67 * + + 33 * - col2 FROM tab1
----
130748982
28698355
310915387

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - 67 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + - 14 ) FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT + COUNT( * ) + + CAST( 39 AS SIGNED ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5175
SELECT + COUNT ( * ) + + CAST ( 39 AS INTEGER ) FROM tab1 AS cor0
----
42

query II rowsort
SELECT - 48 AS col0, + col0 FROM tab0 AS cor0 WHERE 63 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5177
SELECT DISTINCT + COUNT( - CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + COUNT ( - CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT - col2 * + col2 + + CAST( - - 81 AS SIGNED ) * 56 + col2 FROM tab2 AS cor0
----
1230
2976
4030

skipif mysql # not compatible
query I rowsort label-5178
SELECT - col2 * + col2 + + CAST ( - - 81 AS INTEGER ) * 56 + col2 FROM tab2 AS cor0
----
1230
2976
4030

query I rowsort
SELECT + col1 * - - col2 + - - 81 AS col2 FROM tab1
----
1425
3277
376

query I rowsort
SELECT col2 + - + 41 FROM tab1
----
18
27
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL SUM( ALL - 25 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL SUM ( ALL - 25 ) FROM tab2
----
-75

query I rowsort
SELECT ALL + col0 * - 98 FROM tab1 WHERE NOT - 53 > NULL
----

query II rowsort
SELECT ALL - 27 AS col2, col1 + col0 FROM tab1
----
-27
138
-27
65
-27
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + - col0
----

query I rowsort
SELECT - ( - 68 ) + + col2 AS col1 FROM tab1
----
127
136
164

query I rowsort
SELECT ALL + 35 + - col1 * - col2 AS col0 FROM tab1
----
1379
3231
330

query I rowsort
SELECT DISTINCT 7 + + col0 + col1 FROM tab0 AS cor0
----
103
105
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5188
SELECT ALL - + col1 - ( CAST( - col1 AS SIGNED ) ) + - + col0 - + - 42 col1, + 81 FROM tab0 cor0
----
-45
81
-55
81
27
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5188
SELECT ALL - + col1 - ( CAST ( - col1 AS INTEGER ) ) + - + col0 - + - 42 col1, + 81 FROM tab0 cor0
----
-45
81
-55
81
27
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL + + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL + + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT + 64 - - col2, - col2 AS col0 FROM tab1
----
123
-59
132
-68
160
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT DISTINCT - col0 * + - ( + col0 ) + + col0 * + col2 * + 42 + + col1 + + + col2 DIV col0 FROM tab2
----
111693
188392
46603

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT - col0 * + - ( + col0 ) + + col0 * + col2 * + 42 + + col1 + + + col2 / col0 FROM tab2
----
111693
188392
46603

query I rowsort
SELECT ( + 18 ) FROM tab1 WHERE ( - 85 >= + col1 )
----

query I rowsort
SELECT col1 - ( - + 34 ) AS col0 FROM tab0
----
115
35
55

query I rowsort
SELECT - 14 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query II rowsort
SELECT ALL col0 * 14 AS col1, 70 FROM tab1
----
1190
70
1274
70
714
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT DISTINCT + ( - MIN( + col1 ) ) * - COUNT( * ) FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT + ( - MIN ( + col1 ) ) * - COUNT ( * ) FROM tab2 cor0
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-5197
SELECT + + MAX( + + 44 ) AS col2, 70 AS col2 FROM tab2 AS cor0
----
44
70

skipif mysql # not compatible
query II rowsort label-5197
SELECT + + MAX ( + + 44 ) AS col2, 70 AS col2 FROM tab2 AS cor0
----
44
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT ALL - + SUM( + col1 ) AS col0, 24 col1 FROM tab1 AS cor0
----
-66
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5198
SELECT ALL - + SUM ( + col1 ) AS col0, 24 col1 FROM tab1 AS cor0
----
-66
24

query I rowsort
SELECT DISTINCT ( + 13 ) FROM tab0 AS cor0
----
13

query I rowsort
SELECT - + 15 AS col0 FROM tab0 AS cor0
----
-15
-15
-15

query II rowsort
SELECT DISTINCT + ( + col2 ), col0 * - - 93 AS col0 FROM tab1 AS cor0
----
59
7905
68
8463
96
4743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5202
SELECT + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * + 91 - + - 30 + - col0 * + col0 / - 75 IS NULL
----

query I rowsort
SELECT ALL + ( - 12 ) AS col1 FROM tab1
----
-12
-12
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5205
SELECT ALL 38 DIV + 4 col2 FROM tab2
----
9
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5205
SELECT ALL 38 / + 4 col2 FROM tab2
----
9
9
9

query I rowsort
SELECT DISTINCT + ( col0 ) * 93 AS col1 FROM tab2
----
4278
5952
6975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT - CAST( 86 AS SIGNED ) AS col0 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - CAST ( 86 AS INTEGER ) AS col0 FROM tab0
----
-86

query I rowsort
SELECT ALL - ( - - 27 ) AS col2 FROM tab0 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 22 + + + col0 * - col0 * 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT - COUNT( * ) + - 61 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-5212
SELECT - COUNT ( * ) + - 61 FROM tab2
----
-64

query II rowsort
SELECT DISTINCT - col0 + col1 + 94 AS col0, col0 - - - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - - ( MAX( + col1 ) ) * + - 89 FROM tab2 AS cor0
----
-6853

skipif mysql # not compatible
query I rowsort label-5214
SELECT - - ( MAX ( + col1 ) ) * + - 89 FROM tab2 AS cor0
----
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL + MIN( 68 ) FROM tab1, tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + MIN ( 68 ) FROM tab1, tab2 AS cor0
----
68

query I rowsort
SELECT + ( + 99 ) * - ( - - col1 ) FROM tab1
----
-1386
-4653
-495

query I rowsort
SELECT DISTINCT 95 + + col1 FROM tab1
----
100
109
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab1 WHERE NULL NOT IN ( + col0 + col0 )
----

query I rowsort
SELECT 99 - col0 FROM tab2
----
24
35
53

query I rowsort
SELECT col1 + + ( 87 ) FROM tab1
----
101
134
92

query I rowsort
SELECT ALL - ( + - 15 ) + col2 AS col1 FROM tab0
----
114
25
62

query I rowsort
SELECT - 20 FROM tab0 AS cor0 WHERE + col1 + + 88 IS NOT NULL
----
-20
-20
-20

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT DISTINCT 46 DIV + col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT 46 / + col1 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + 47 * + 84 * + 3 * + + COUNT( * ) FROM tab2
----
35532

skipif mysql # not compatible
query I rowsort label-5225
SELECT + 47 * + 84 * + 3 * + + COUNT ( * ) FROM tab2
----
35532

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT DISTINCT COUNT( * ) col1, - MAX( col0 ) FROM tab0
----
3
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5226
SELECT DISTINCT COUNT ( * ) col1, - MAX ( col0 ) FROM tab0
----
3
-97

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( NULL <> - ( + - col2 ) - - - 97 * - - 67 )
----

query I rowsort
SELECT ALL - 60 * 36 AS col0 FROM tab1 cor0
----
-2160
-2160
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT - COUNT( 32 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - COUNT ( 32 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT CAST( + - COUNT( * ) AS SIGNED ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
-3

query II rowsort
SELECT col1 + col2 AS col1, col2 AS col0 FROM tab0
----
100
99
128
47
31
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 90 + col0 - col0 )
----

query I rowsort
SELECT DISTINCT ( ( col0 ) ) + - ( + col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT + ( - COUNT( * ) ) * + + COUNT( * ) + - COUNT( * ) + + SUM( ( + col0 ) ) FROM tab1
----
215

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT + ( - COUNT ( * ) ) * + + COUNT ( * ) + - COUNT ( * ) + + SUM ( ( + col0 ) ) FROM tab1
----
215

query II rowsort
SELECT DISTINCT + col2 * - col0 + + 7 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-1051
-51
-2553
-77
-4343
-67

query II rowsort
SELECT ALL - 43, - col1 * + 19 AS col2 FROM tab1 AS cor0
----
-43
-266
-43
-893
-43
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + - col0 ) col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL + 97 - - col1 FROM tab1 cor0
----
102
111
144

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT DISTINCT + 58 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
58
-3

skipif mysql # not compatible
query II rowsort label-5239
SELECT DISTINCT + 58 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
58
-3

query II rowsort
SELECT ALL + + 79 AS col0, col2 * - 68 AS col1 FROM tab2 AS cor0
----
79
-1564
79
-2720
79
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - COUNT( - col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - COUNT ( - col1 ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 + - + 12 col0 FROM tab2
----
30

query I rowsort
SELECT DISTINCT 92 * + + col1 * col1 FROM tab2
----
239292
412988
545468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE - col1 * - col2 >= CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE - col1 * - col2 >= CAST ( NULL AS INTEGER ) * col0
----

query I rowsort
SELECT 42 AS col1 FROM tab0 cor0
----
42
42
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - - ( - col2 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT + col1 DIV + 17 FROM tab2
----
3
3
4

skipif mysql # not compatible
query I rowsort label-5247
SELECT + col1 / + 17 FROM tab2
----
3
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT - - COUNT( * ) * + - SUM( ALL + ( - + 94 ) ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
7614

skipif mysql # not compatible
query I rowsort label-5248
SELECT - - COUNT ( * ) * + - SUM ( ALL + ( - + 94 ) ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
7614

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 < + col1 - - + col0
----

query I rowsort
SELECT ALL + col1 * + ( + col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
-96
354
6546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 75 col1 FROM tab2 AS cor0 WHERE NOT NULL <= - col2 / - 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5252
SELECT - col0 DIV + + 15 AS col1 FROM tab0 AS cor0
----
-1
-5
-6

skipif mysql # not compatible
query I rowsort label-5252
SELECT - col0 / + + 15 AS col1 FROM tab0 AS cor0
----
-1
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT COUNT( ALL col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5253
SELECT COUNT ( ALL col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + 8 * col1 FROM tab1
----
112
376
40

query II rowsort
SELECT DISTINCT - col2, 94 AS col2 FROM tab2
----
-23
94
-40
94
-58
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5256
SELECT ALL - 81 DIV COUNT( - - col2 ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - 81 / COUNT ( - - col2 ) AS col0 FROM tab2
----
-27

query I rowsort
SELECT ALL - 31 + + ( col0 ) + col1 FROM tab1
----
107
34
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5258
SELECT 67 * + + CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) FROM tab1
----
603

skipif mysql # not compatible
query I rowsort label-5258
SELECT 67 * + + CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab1
----
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL + + 10 * - CAST( + MAX( DISTINCT - + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + + 10 * - CAST ( + MAX ( DISTINCT - + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
460

query I rowsort
SELECT DISTINCT - 83 + + col2 - - col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 70 AS col0 FROM tab0 AS cor0
----
-3290
-6930
-700

query II rowsort
SELECT - col0, + col2 * 74 AS col0 FROM tab2 AS cor0
----
-46
1702
-64
2960
-75
4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT - 49 / - ( - ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT - 49 / - ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5264
SELECT DISTINCT COUNT( * ) DIV 64 + + COUNT( - - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT COUNT ( * ) / 64 + + COUNT ( - - col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <= ( 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 5 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - + MIN( DISTINCT - 2 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5267
SELECT - + MIN ( DISTINCT - 2 ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT + COUNT( * ) - 73 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT + COUNT ( * ) - 73 FROM tab2 AS cor0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT DISTINCT + + col2 DIV - + col1 + - ( col0 ) - - col2 col0 FROM tab1 AS cor0
----
-24
-37
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5269
SELECT DISTINCT + + col2 / - + col1 + - ( col0 ) - - col2 col0 FROM tab1 AS cor0
----
-24
-37
39

query I rowsort
SELECT ( + - col0 ) * col1 + col1 - + col0 AS col0 FROM tab0 cor0
----
-1149
-1893
-193

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT col1 * + - col0 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT DISTINCT - CAST( 73 AS SIGNED ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT - CAST ( 73 AS INTEGER ) FROM tab1
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 + col1 * - col2 + - 72 - col1 col2 FROM tab0
----
-270
-401
-4058

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT MIN( ALL + col0 ) + 19 + 45 + 36 col1 FROM tab2
----
146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5274
SELECT MIN ( ALL + col0 ) + 19 + 45 + 36 col1 FROM tab2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT ( + COUNT( * ) ) + + COUNT( * ), COUNT( * ) AS col1 FROM tab1
----
6
3

skipif mysql # not compatible
query II rowsort label-5275
SELECT ( + COUNT ( * ) ) + + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
6
3

query I rowsort
SELECT 60 * + col0 + ( - + 51 ) FROM tab2
----
2709
3789
4449

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT + ( - + col2 ) DIV col2 * + col2 * + col0 AS col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-5277
SELECT + ( - + col2 ) / col2 * + col2 * + col0 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT - + MAX( DISTINCT - ( - - ( + col2 ) ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5278
SELECT - + MAX ( DISTINCT - ( - - ( + col2 ) ) ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5279
SELECT * FROM tab0 AS cor0 WHERE NOT ( 64 / 73 ) NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5279
SELECT * FROM tab0 AS cor0 WHERE NOT ( 64 / 73 ) NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT - + MIN( ALL + 45 ) AS col2 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT - + MIN ( ALL + 45 ) AS col2 FROM tab1 AS cor0
----
-45

query II rowsort
SELECT - 89 * col2, col1 FROM tab1
----
-5251
5
-6052
47
-8544
14

query I rowsort
SELECT + 54 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # DIV for integer division: 
query II rowsort label-5283
SELECT - col2 DIV 43 * ( col1 ) AS col0, col1 AS col2 FROM tab0
----
-2
1
-81
81
0
21

skipif mysql # not compatible
query II rowsort label-5283
SELECT - col2 / 43 * ( col1 ) AS col0, col1 AS col2 FROM tab0
----
-2
1
-81
81
0
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT 48 * SUM( ALL - col1 ) * - 46 + + MIN( col0 ) AS col1 FROM tab2 AS cor0
----
430606

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT 48 * SUM ( ALL - col1 ) * - 46 + + MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
430606

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT + - ( COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + - ( COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0 WHERE col0 * col1 >= + 69 * + + col1 - 10 + 80 / 30
----
1

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE col0 * col1 >= + 69 * + + col1 - 10 + 80 / 30
----
1

query I rowsort
SELECT - col1 * + + col0 FROM tab2 AS cor0 WHERE NOT + col1 / col2 / + col2 IS NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL - MIN( + + col0 ) * - + 40 col1 FROM tab2 AS cor0
----
1840

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5288
SELECT ALL - MIN ( + + col0 ) * - + 40 col1 FROM tab2 AS cor0
----
1840

query III rowsort
SELECT * FROM tab1 WHERE NOT + 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + COUNT( col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5290
SELECT + COUNT ( col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT col0 * + 61 + col2 * - col2 * - - col0 FROM tab0
----
-32220
-3393
-944780

query I rowsort
SELECT + 59 * - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-5133
-5723
-885

query I rowsort
SELECT ALL ( 45 ) + + col1 AS col1 FROM tab0
----
126
46
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5294
SELECT ALL - ( - + col2 ) + + + col0 DIV col2 + ( col2 ) FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) * + - ( - - col0 ) * - 15 IS NOT NULL
----
119
137
192

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - ( - + col2 ) + + + col0 / col2 + ( col2 ) FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) * + - ( - - col0 ) * - 15 IS NOT NULL
----
119
137
192

query I rowsort
SELECT ALL + 46 + - + col2 AS col1 FROM tab2
----
-12
23
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT + - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <> col2 * + 18 AND ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5296
SELECT + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <> col2 * + 18 AND ( NULL ) >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL col1 * - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL col1 * - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0, 52 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
46
52
64
52
75
52

query I rowsort
SELECT ALL + col2 + + 49 - 95 FROM tab2 AS cor0
----
-23
-6
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT + MAX( - col2 ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5300
SELECT + MAX ( - col2 ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
69

query I rowsort
SELECT + 60 - - col2 * - col0 FROM tab2
----
-2500
-4290
-998

query I rowsort
SELECT ALL col0 + - + col0 * - col0 - 1 FROM tab0
----
239
7655
9505

query I rowsort
SELECT DISTINCT + col1 - + + 33 AS col2 FROM tab2
----
18
34
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col2 + + + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col2 + + + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 57 - + col2 FROM tab0 AS cor0
----
-42
10
47

query I rowsort
SELECT 52 + col1 FROM tab2 AS cor0
----
103
119
129

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5307
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5307
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL ( 72 ) * + - COUNT( * ) FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL ( 72 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-216

query II rowsort
SELECT + col1 * - col0 AS col1, + 95 FROM tab1 AS cor0
----
-425
95
-4277
95
-714
95

query I rowsort
SELECT DISTINCT col0 * + + 12 - - 92 + col2 * + col1 FROM tab1 cor0
----
1407
2048
4380

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5312
SELECT * FROM tab0 WHERE + - ( - + CAST( - col2 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5312
SELECT * FROM tab0 WHERE + - ( - + CAST ( - col2 AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT COUNT( * ) * + ( - MAX( - col0 ) ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-5313
SELECT COUNT ( * ) * + ( - MAX ( - col0 ) ) FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT + SUM( DISTINCT + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-5314
SELECT + SUM ( DISTINCT + 76 ) FROM tab0
----
76

query I rowsort
SELECT - col0 * - - col0 FROM tab0 WHERE NOT NULL = + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5316
SELECT - + COUNT( * ) FROM tab2 WHERE NOT ( + col0 - - CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT ( + col0 - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) IS NULL )
----
0

query I rowsort
SELECT DISTINCT col1 * + - col1 * + ( + col1 ) AS col0 FROM tab1
----
-103823
-125
-2744

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5318
SELECT * FROM tab1 AS cor0 WHERE NOT 13 * - col2 / col2 + - col1 - - - col1 * CAST( + col2 AS SIGNED ) * 91 + - - col0 - col1 - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5318
SELECT * FROM tab1 AS cor0 WHERE NOT 13 * - col2 / col2 + - col1 - - - col1 * CAST ( + col2 AS INTEGER ) * 91 + - - col0 - col1 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT + MAX( DISTINCT - 6 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5319
SELECT + MAX ( DISTINCT - 6 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5320
SELECT ALL MIN( DISTINCT - col0 ) AS col2, + COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-5320
SELECT ALL MIN ( DISTINCT - col0 ) AS col2, + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
-75
3

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - col1 - - 39 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5322
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - 19, col1, col2, - 52 - - + CAST( NULL AS SIGNED ), + + ( 67 ) * - col1 + 49 + col0 )
----

skipif mysql # not compatible
query III rowsort label-5322
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - 19, col1, col2, - 52 - - + CAST ( NULL AS INTEGER ), + + ( 67 ) * - col1 + 49 + col0 )
----

query II rowsort
SELECT ALL 88 AS col1, 27 - col0 * ( + - col2 ) FROM tab0 AS cor0
----
88
732
88
897
88
9630

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - + col1 * - 88 + + - 96 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5326
SELECT + col1 DIV - 44 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT + col1 / - 44 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT 79 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT DISTINCT - SUM( - + col2 ) AS col1, 72 col1 FROM tab2
----
121
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5328
SELECT DISTINCT - SUM ( - + col2 ) AS col1, 72 col1 FROM tab2
----
121
72

query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT COUNT( + 84 ), 44 AS col0 FROM tab0
----
3
44

skipif mysql # not compatible
query II rowsort label-5330
SELECT COUNT ( + 84 ), 44 AS col0 FROM tab0
----
3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT COUNT( * ) + - MAX( col1 ) * + COUNT( * ) * MAX( + col2 ) FROM tab2
----
-13395

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT COUNT ( * ) + - MAX ( col1 ) * + COUNT ( * ) * MAX ( + col2 ) FROM tab2
----
-13395

query I rowsort
SELECT col2 * 24 - - 99 + - 95 AS col1 FROM tab0 AS cor0
----
1132
2380
244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT - + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT - + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT + + 39 * + - 3 - COUNT( * ) col0 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5334
SELECT DISTINCT + + 39 * + - 3 - COUNT ( * ) col0 FROM tab2 AS cor0
----
-120

query I rowsort
SELECT col1 - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
1109
2637
4417

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 1
----

query I rowsort
SELECT ALL 42 * col0 * - col1 AS col0 FROM tab2
----
-206976
-211050
-98532

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 3 * - + col1 FROM tab2
----
-153
-201
-231

onlyif mysql # DIV for integer division: 
query II rowsort label-5340
SELECT col1 DIV + col0, - col2 AS col1 FROM tab0
----
0
-10
0
-99
5
-47

skipif mysql # not compatible
query II rowsort label-5340
SELECT col1 / + col0, - col2 AS col1 FROM tab0
----
0
-10
0
-99
5
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5341
SELECT ALL 94 DIV - col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL 94 / - col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT 37 * + 55 FROM tab0
----
2035
2035
2035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT - + col2 FROM tab2 WHERE NOT - CAST( - col2 AS SIGNED ) * + col0 / + 50 * - col1 IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5343
SELECT - + col2 FROM tab2 WHERE NOT - CAST ( - col2 AS INTEGER ) * + col0 / + 50 * - col1 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT 29 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT 29 / - col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - + 68 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-68
10
-68
47
-68
99

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 6 / 49 + + + col1 + - - col0 + col1
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 65 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT + col0 + - 39 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 36 * - + ( - col2 ) * + col2 FROM tab0 AS cor0
----
352836
3600
79524

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * 37 IS NOT NULL
----

query II rowsort
SELECT ALL + ( + 59 ) AS col1, 26 + - col0 AS col2 FROM tab0 cor0
----
59
-61
59
-71
59
11

query I rowsort
SELECT + col2 + - 40 FROM tab0 cor0
----
-30
59
7

query I rowsort
SELECT 69 + + col0 + - + 85 * 25 FROM tab2
----
-1981
-1992
-2010

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + 48 + + - COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 48 + + - COUNT ( * ) FROM tab2
----
45

query I rowsort
SELECT + 66 + - col2 AS col1 FROM tab1
----
-2
-30
7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col1 * - col1 + + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 80 / - 83 AS col0 FROM tab0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT 20 + - COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-5358
SELECT 20 + - COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT + col1 + - col2 * 48 FROM tab1
----
-2827
-3217
-4594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + - col0 col0 FROM tab1
----
-18
-52
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT - MAX( col0 ) + + 4 AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - MAX ( col0 ) + + 4 AS col2 FROM tab1
----
-87

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * col1 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 + - col2 - - col2 * + - 33 * - 59 col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1, + 90 + - - 19 FROM tab2 AS cor0
----
51
109
67
109
77
109

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( + col2 * - 78 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT ALL CAST( - col1 AS SIGNED ) - ( + 8 ) AS col1 FROM tab0
----
-29
-89
-9

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL CAST ( - col1 AS INTEGER ) - ( + 8 ) AS col1 FROM tab0
----
-29
-89
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 74 col0 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + SUM( col2 ) * - MAX( DISTINCT 59 ) AS col0 FROM tab0
----
-9204

skipif mysql # not compatible
query I rowsort label-5368
SELECT + SUM ( col2 ) * - MAX ( DISTINCT 59 ) AS col0 FROM tab0
----
-9204

query I rowsort
SELECT DISTINCT col0 + 76 AS col2 FROM tab2
----
122
140
151

query I rowsort
SELECT ALL 25 + col0 FROM tab1
----
110
116
76

query I rowsort
SELECT DISTINCT 81 * col2 FROM tab1
----
4779
5508
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT - COUNT( col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5372
SELECT - COUNT ( col1 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT CAST( NULL AS SIGNED ) + col1 / + 72 AS col2 FROM tab1 WHERE NOT ( + col1 ) < + col1 - 98 * + 20
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT CAST ( NULL AS INTEGER ) + col1 / + 72 AS col2 FROM tab1 WHERE NOT ( + col1 ) < + col1 - 98 * + 20
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) <> col1
----

query I rowsort
SELECT ( - 99 ) AS col0 FROM tab2
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - 43 IN ( - 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * col1 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - 18 col1 FROM tab1 WHERE NULL IN ( + ( col1 ) )
----

query I rowsort
SELECT DISTINCT - 64 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + 77 FROM tab0
----
-22
30
67

query I rowsort
SELECT ( col1 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 16 FROM tab0 WHERE - 84 BETWEEN col2 AND 11
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( ( col1 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL 10 * + 41 AS col2 FROM tab0 AS cor0
----
410
410
410

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT - MIN( col1 ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5385
SELECT DISTINCT - MIN ( col1 ) col2 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT 47 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT 47 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5387
SELECT DISTINCT COUNT( * ) DIV 3 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT COUNT ( * ) / 3 AS col1 FROM tab1 AS cor0
----
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT DISTINCT 24 + 40 DIV - col0 FROM tab0
----
22
24

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT 24 + 40 / - col0 FROM tab0
----
22
24

query I rowsort
SELECT + ( - 70 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT COUNT( * ) * ( 50 * 23 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
10350

skipif mysql # not compatible
query I rowsort label-5391
SELECT COUNT ( * ) * ( 50 * 23 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
10350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ( COUNT( * ) ) * 26 AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
234

skipif mysql # not compatible
query I rowsort label-5393
SELECT ( COUNT ( * ) ) * 26 AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
234

query III rowsort
SELECT * FROM tab1 WHERE NOT - 16 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL <= col1 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) <= - col1 * - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT + - MAX( col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + - MAX ( col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL col1 - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - ( 69 ) * col0 > 93 / + col0 + ( 24 )
----
-8
13
5

query I rowsort
SELECT - 95 * + 84 FROM tab2 cor0
----
-7980
-7980
-7980

query I rowsort
SELECT + + 25 * - col1 AS col1 FROM tab0 AS cor0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL - + SUM( + 14 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL - + SUM ( + 14 ) FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT - COUNT( * ) FROM tab0 cor0 WHERE ( 39 + col2 ) < ( + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-5402
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE ( 39 + col2 ) < ( + 72 )
----
-1

query I rowsort
SELECT DISTINCT - - col2 * + 32 FROM tab0 AS cor0
----
1504
3168
320

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT + + 56 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT + + 56 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE + col2 IN ( + col0 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-5405
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + col2 IN ( + col0 + - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 43 FROM tab1 WHERE col2 IS NOT NULL
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - ( col0 ) - - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - ( col0 ) - - col0 FROM tab2
----
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * col0 + + col1 * + col1 FROM tab1
----
10490
2797
7250

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT - COUNT( DISTINCT - + 66 ) + + 47 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-5411
SELECT - COUNT ( DISTINCT - + 66 ) + + 47 FROM tab0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT 55 DIV + + col2 + + col0 * - col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5412
SELECT 55 / + + col2 + + col0 * - col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT - 34 + - col2 + col2 DIV - col2 FROM tab1 AS cor0
----
-103
-131
-94

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - 34 + - col2 + col2 / - col2 FROM tab1 AS cor0
----
-103
-131
-94

query I rowsort
SELECT col0 + - + 20 * - 12 FROM tab2 cor0
----
286
304
315

query I rowsort
SELECT - col2 * + + 70 + ( + ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-1559
-2723
-3993

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - ( - COUNT( col2 ) ) + + MAX( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5416
SELECT - ( - COUNT ( col2 ) ) + + MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
99

query I rowsort
SELECT 92 + - 96 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL - MIN( + 78 ) AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - MIN ( + 78 ) AS col0 FROM tab1 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL - + CAST( - col2 AS SIGNED ) - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - + CAST ( - col2 AS INTEGER ) - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT + 94 * - COUNT( * ) + ( + SUM( DISTINCT - 57 ) ) * 44 col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-3354

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5421
SELECT DISTINCT + 94 * - COUNT ( * ) + ( + SUM ( DISTINCT - 57 ) ) * 44 col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-3354

query I rowsort
SELECT DISTINCT 29 + - 90 AS col2 FROM tab1
----
-61

query III rowsort
SELECT * FROM tab2 WHERE ( - - ( col1 ) * 63 - - ( col1 ) * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

query I rowsort
SELECT - ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE - - col1 IN ( col0 ) OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT COUNT( 4 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5426
SELECT COUNT ( 4 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT + + COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5427
SELECT + + COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT - + 5 * - col0 AS col0 FROM tab2 AS cor0
----
230
320
375

query I rowsort
SELECT DISTINCT + - 71 * + col0 AS col0 FROM tab1 AS cor0
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5430
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( CAST( + + col0 AS DECIMAL ) ) AND col1
----

skipif mysql # not compatible
query III rowsort label-5430
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( CAST ( + + col0 AS REAL ) ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT + CAST( - - 42 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-5431
SELECT + CAST ( - - 42 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT SUM( 52 ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT SUM ( 52 ) FROM tab2 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) * + - col2 )
----

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) * + - col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5435
SELECT DISTINCT - 54 AS col1, + 91 DIV - col0 FROM tab2 AS cor0
----
-54
-1

skipif mysql # not compatible
query II rowsort label-5435
SELECT DISTINCT - 54 AS col1, + 91 / - col0 FROM tab2 AS cor0
----
-54
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col2 FROM tab2
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - + col2 + - + col2 - - 84 )
----

query I rowsort
SELECT ALL + 86 / col0 FROM tab2 WHERE 85 IS NULL
----

query I rowsort
SELECT + col1 * col1 * + col2 AS col0 FROM tab0
----
308367
4410
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5441
SELECT * FROM tab2 WHERE NOT - CAST( - + 55 AS SIGNED ) * - ( - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5441
SELECT * FROM tab2 WHERE NOT - CAST ( - + 55 AS INTEGER ) * - ( - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 45 col1 FROM tab1
----
2115
225
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT + 55 * + - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT + 55 * + - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL ( + ( COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL ( + ( COUNT ( * ) ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - + col1 col0, 7 FROM tab0
----
1215
7
1827
7
97
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 42 / 85 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5447
SELECT ALL - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 59 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + ( - + 10 ) NOT BETWEEN ( NULL ) AND - 88 * col2
----

query I rowsort
SELECT + ( - ( + 43 ) ) * col1 * + col0 FROM tab2 AS cor0
----
-100878
-211904
-216075

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 89 NOT BETWEEN NULL AND ( + col2 / - col1 )
----

query I rowsort
SELECT ( col1 ) * col0 FROM tab1 AS cor0 WHERE NOT ( + col0 - + ( - + ( col1 ) ) ) IS NULL
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + 33 NOT BETWEEN ( NULL ) AND col0 + + 8 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 5 IN ( ( + + 66 ) )
----

query I rowsort
SELECT ALL - 97 + - 26 FROM tab0
----
-123
-123
-123

query I rowsort
SELECT ALL - col1 + - ( - col2 ) AS col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE + + 53 IS NULL AND ( + 25 * + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 78 - - 24 IS NOT NULL AND + col0 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 78 - - 24 IS NOT NULL AND + col0 = ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT - - ( + + col2 ) + + 82 + - col0 DIV + + 93 FROM tab1 cor0
----
141
150
178

skipif mysql # not compatible
query I rowsort label-5459
SELECT - - ( + + col2 ) + + 82 + - col0 / + + 93 FROM tab1 cor0
----
141
150
178

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + MIN( DISTINCT + + 2 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + MIN ( DISTINCT + + 2 ) FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT 96 * - COUNT( * ) + - + 28 FROM tab2
----
-316

skipif mysql # not compatible
query I rowsort label-5462
SELECT 96 * - COUNT ( * ) + - + 28 FROM tab2
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT - COUNT( * ) * - COUNT( * ) + + 73 AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5463
SELECT - COUNT ( * ) * - COUNT ( * ) + + 73 AS col1 FROM tab0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT + col0 DIV - col0 + + 88 AS col2 FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-5464
SELECT + col0 / - col0 + + 88 AS col2 FROM tab1
----
87
87
87

query I rowsort
SELECT + 19 FROM tab2 WHERE ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + ( - MIN( 10 ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5466
SELECT + ( - MIN ( 10 ) ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT ALL 13 FROM tab1 WHERE NOT NULL IS NOT NULL
----
13
13
13

query I rowsort
SELECT DISTINCT col2 + col0 + - + col1 AS col1 FROM tab0
----
-19
195
76

query II rowsort
SELECT col0 AS col2, + 1 AS col1 FROM tab2
----
46
1
64
1
75
1

query I rowsort
SELECT col2 FROM tab0 WHERE ( ( + col1 ) ) NOT BETWEEN + 60 AND NULL
----
10
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT ALL - col1 + + col2 DIV + col0 FROM tab1 AS cor0
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - col1 + + col2 / + col0 FROM tab1 AS cor0
----
-13
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5472
SELECT * FROM tab0 AS cor0 WHERE + CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5472
SELECT * FROM tab0 AS cor0 WHERE + CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT CAST( NULL AS SIGNED ) - + col0 / + 26 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT CAST ( NULL AS INTEGER ) - + col0 / + 26 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab2 WHERE NOT - 24 < - col0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 / + col2 * 35 ) = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL - COUNT( col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - COUNT ( col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * + col2 + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----

query I rowsort
SELECT + 84 + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT 74 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT 74 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 1 * - ( + - 71 ) AS col1 FROM tab2
----
71
71
71

query I rowsort
SELECT ALL ( 26 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT MAX( DISTINCT - 15 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5484
SELECT MAX ( DISTINCT - 15 ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT 24 * 32 AS col0 FROM tab2 AS cor0
----
768
768
768

query I rowsort
SELECT - - ( 69 ) + + + col2 * + 26 * + col2 FROM tab2 AS cor0
----
13823
41669
87533

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 77 + + - ( col0 ) IS NOT NULL AND col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col2 * + + col2 * col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + col0 * - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE + 53 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT COUNT( ALL + 51 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT COUNT ( ALL + 51 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 82 * ( + col2 ) FROM tab0 AS cor0
----
3854
8118
820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - + col1 * col1 col1 FROM tab1 AS cor0
----
-145
-2118
60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 2 * - 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT COUNT( DISTINCT - + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5497
SELECT COUNT ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL AND NOT NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 - - + col2 col0 FROM tab2
----
54
71
89

query I rowsort
SELECT DISTINCT - 64 * - 74 FROM tab2
----
4736

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN + 53 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT ALL - 72 * 17 DIV - 70 + - - col1 FROM tab1
----
22
31
64

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - 72 * 17 / - 70 + - - col1 FROM tab1
----
22
31
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * 77 - 5 col1 FROM tab0
----
5077
5077
5077

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT COUNT( * ) + COUNT( * ) col2 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5505
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) col2 FROM tab1
----
6

query I rowsort
SELECT ALL - + 6 + + - 33 AS col1 FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + 97 + - COUNT( * ) FROM tab2 cor0
----
94

skipif mysql # not compatible
query I rowsort label-5507
SELECT + 97 + - COUNT ( * ) FROM tab2 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT DISTINCT - col1 - + 2 + - CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-143
-144
-99

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - col1 - + 2 + - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-143
-144
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 5, 11 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 51 < NULL
----

query I rowsort
SELECT DISTINCT col0 * + 28 + + col1 + + - col0 FROM tab2 AS cor0
----
1293
1805
2092

query II rowsort
SELECT DISTINCT col0, + col0 + + col0 + + 21 + - col0 FROM tab2
----
46
67
64
85
75
96

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + + 73 IS NOT NULL
----

query I rowsort
SELECT col0 * + + 56 * - + col2 FROM tab2 cor0
----
-143360
-243600
-59248

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + + COUNT( - 7 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5515
SELECT + + COUNT ( - 7 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5516
SELECT ALL 94 / + - col1 + - - 71 * + col0 + ( - col0 ) col2 FROM tab1 AS cor0 WHERE + col2 + + - CAST( NULL AS DECIMAL ) > - + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5516
SELECT ALL 94 / + - col1 + - - 71 * + col0 + ( - col0 ) col2 FROM tab1 AS cor0 WHERE + col2 + + - CAST ( NULL AS REAL ) > - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5517
SELECT ALL + COUNT( + - 39 ) AS col2, + 14 FROM tab0
----
3
14

skipif mysql # not compatible
query II rowsort label-5517
SELECT ALL + COUNT ( + - 39 ) AS col2, + 14 FROM tab0
----
3
14

query II rowsort
SELECT col1 + + col0, col0 FROM tab2
----
141
64
142
75
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT - COUNT( * ) + + 3 + + + 58 AS col1 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - COUNT ( * ) + + 3 + + + 58 AS col1 FROM tab1
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5520
SELECT * FROM tab1 WHERE NOT CAST( - col0 AS DECIMAL ) / 85 * + col2 <> - col2
----
85
5
59

skipif mysql # not compatible
query III rowsort label-5520
SELECT * FROM tab1 WHERE NOT CAST ( - col0 AS REAL ) / 85 * + col2 <> - col2
----
85
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT - COUNT( * ) + - 71, + COUNT( * ) col2 FROM tab2
----
-74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5521
SELECT - COUNT ( * ) + - 71, + COUNT ( * ) col2 FROM tab2
----
-74
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT + 13 AS col0, COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
13
0

skipif mysql # not compatible
query II rowsort label-5522
SELECT + 13 AS col0, COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
13
0

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col0 + + + col0 * - + 88 FROM tab0 AS cor0
----
-1305
-7569
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL + 67 * + MIN( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
3417

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5525
SELECT ALL + 67 * + MIN ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL - + COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + MIN( - - 3 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-5527
SELECT + MIN ( - - 3 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3

query I rowsort
SELECT ALL + 42 + + col1 FROM tab0 AS cor0
----
123
43
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 + + 28 + - col2 * - col0 * - + col0 col0 FROM tab1 AS cor0
----
-248954
-425822
-558803

query I rowsort
SELECT DISTINCT - col1 * - ( 11 ) AS col0 FROM tab0 AS cor0
----
11
231
891

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND col1
----

query I rowsort
SELECT - ( 86 ) + - col2 - + col2 FROM tab1 AS cor0
----
-204
-222
-278

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT ALL MAX( - - 14 ) AS col2, COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 + col1 * - col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5533
SELECT ALL MAX ( - - 14 ) AS col2, COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 + col1 * - col1 IS NOT NULL
----
NULL
0

query I rowsort
SELECT col0 * - col2 + ( - col1 ) - - + col2 + - 28 FROM tab0 AS cor0
----
-767
-909
-9533

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT + COUNT( - + 93 ), - 49 + + + 34 AS col1 FROM tab2
----
3
-15

skipif mysql # not compatible
query II rowsort label-5535
SELECT + COUNT ( - + 93 ), - 49 + + + 34 AS col1 FROM tab2
----
3
-15

query III rowsort
SELECT * FROM tab0 WHERE 39 <> + 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 94 * col2 * - - ( + + col0 ) * + - col1 FROM tab2
----
-18529280
-27396300
-5072052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT + ( - COUNT( + CAST( NULL AS SIGNED ) ) ) * - + 54 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT + ( - COUNT ( + CAST ( NULL AS INTEGER ) ) ) * - + 54 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col2 + + 55, - col1 * + 13 * 8 * - + 37 * + col2 + + 53 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5540
SELECT ALL + 38 * MAX( ALL - 43 ) DIV + 4 FROM tab0
----
-408

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + 38 * MAX ( ALL - 43 ) / + 4 FROM tab0
----
-408

query I rowsort
SELECT DISTINCT - ( - 77 ) * + col2 * + - 46 FROM tab2
----
-141680
-205436
-81466

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT ( - ( COUNT( * ) ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT ( - ( COUNT ( * ) ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL + 10 * - 29 AS col2 FROM tab1 WHERE ( + + ( ( + 24 ) ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col1 + - - col2 AS col0 FROM tab1 cor0 WHERE ( NULL ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL MIN( - - 19 ) AS col0 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL MIN ( - - 19 ) AS col0 FROM tab1 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT DISTINCT - ( - ( col1 ) ) DIV + col1 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT - ( - ( col1 ) ) / + col1 AS col2 FROM tab0
----
1

query I rowsort
SELECT DISTINCT 91 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 31, col0 * col1, 83 )
----

query II rowsort
SELECT ALL col2, col1 * - + col2 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
59
-5310
68
-9384
96
-6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT DISTINCT - CAST( - 42 AS SIGNED ) FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT - CAST ( - 42 AS INTEGER ) FROM tab2 cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col2 FROM tab1 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT + 99 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT + 99 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * - col1 * + 2 FROM tab0 cor0
----
194
2430
3654

query I rowsort
SELECT + ( + 94 ) AS col0 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT - CAST( NULL AS SIGNED ) / + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT - CAST ( NULL AS INTEGER ) / + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT + COUNT( + 89 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5556
SELECT + COUNT ( + 89 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + col1 + 11 FROM tab1 AS cor0
----
16
25
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5558
SELECT DISTINCT - COUNT( - 13 ) DIV - + 99 AS col1 FROM tab1 WHERE - CAST( 43 AS SIGNED ) * - col1 * 54 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - COUNT ( - 13 ) / - + 99 AS col1 FROM tab1 WHERE - CAST ( 43 AS INTEGER ) * - col1 * 54 <= NULL
----
0

query I rowsort
SELECT DISTINCT 18 * + - col0 * 85 AS col1 FROM tab1
----
-130050
-139230
-78030

query I rowsort
SELECT DISTINCT col2 + + col0 * - - 15 AS col2 FROM tab0
----
1315
1554
272

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - col0 NOT BETWEEN + col1 AND ( + col2 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT MIN( DISTINCT + + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5562
SELECT MIN ( DISTINCT + + col1 ) AS col2 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5563
SELECT col0, - ( CAST( - 75 AS SIGNED ) ) col0 FROM tab2
----
46
75
64
75
75
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5563
SELECT col0, - ( CAST ( - 75 AS INTEGER ) ) col0 FROM tab2
----
46
75
64
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5564
SELECT * FROM tab0 WHERE NOT - CAST( - - 73 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5564
SELECT * FROM tab0 WHERE NOT - CAST ( - - 73 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT DISTINCT - + col2 AS col0 FROM tab2 WHERE NOT 65 * 92 + col0 / + col1 * - col0 >= - CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT - + col2 AS col0 FROM tab2 WHERE NOT 65 * 92 + col0 / + col1 * - col0 >= - CAST ( NULL AS INTEGER ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL + 4 + - MIN( - - col2 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL + 4 + - MIN ( - - col2 ) FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL ( + - COUNT( * ) ) + + 63 AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL ( + - COUNT ( * ) ) + + 63 AS col2 FROM tab1
----
60

query I rowsort
SELECT col2 * + col0 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT - COUNT( * ) AS col1, MAX( DISTINCT + ( 28 ) ) + + COUNT( * ) AS col1 FROM tab1
----
-3
31

skipif mysql # not compatible
query II rowsort label-5569
SELECT - COUNT ( * ) AS col1, MAX ( DISTINCT + ( 28 ) ) + + COUNT ( * ) AS col1 FROM tab1
----
-3
31

query I rowsort
SELECT ALL + col0 + 31 + + col0 FROM tab0 AS cor0
----
205
225
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5571
SELECT + 53 * + 84 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT + 53 * + 84 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + - col1 col0 FROM tab0 AS cor0
----
-32
28
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5573
SELECT - CAST( NULL AS DECIMAL ) * - col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT - CAST ( NULL AS REAL ) * - col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 77 IS NOT NULL
----

query I rowsort
SELECT col0 * - 13 AS col0 FROM tab0
----
-1131
-1261
-195

query III rowsort
SELECT * FROM tab1 WHERE + 81 NOT IN ( col2 - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - col1 + + 89 FROM tab2
----
-1084
-2991
-3797

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + + 66 - ( - COUNT( * ) ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5579
SELECT + + 66 - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5580
SELECT 21 - + 92 AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-71
3

skipif mysql # not compatible
query II rowsort label-5580
SELECT 21 - + 92 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-71
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5581
SELECT DISTINCT + + 19 - - col2 AS col2, CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
42
-46
59
-64
77
-75

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT + + 19 - - col2 AS col2, CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
42
-46
59
-64
77
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5582
SELECT - + col0 - + ( - ( - + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT - + col0 - + ( - ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT MAX( col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5584
SELECT MAX ( col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT DISTINCT - 71 * - col0 * + col0 * - 99 FROM tab1
----
-18282429
-50784525
-58207149

query I rowsort
SELECT - + 65 FROM tab1 WHERE NOT ( ( NULL ) >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT - + MAX( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT - + MAX ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > - col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5588
SELECT + 82 DIV - COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5588
SELECT + 82 / - COUNT ( * ) FROM tab0 AS cor0
----
-27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + 15 * - - col2 IN ( 30 + + 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT - + 62 * CAST( NULL AS SIGNED ) + + SUM( - col0 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT - + 62 * CAST ( NULL AS INTEGER ) + + SUM ( - col0 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 * - ( + - col1 ) - - col2 * + - 23 * col0 AS col2 FROM tab2 AS cor0
----
-105075
-26680
-63808

query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL - col2 * col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT + + CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT + + CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT - + col2 FROM tab1 cor0 WHERE ( NULL <> + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5595
SELECT - + col2 FROM tab1 cor0 WHERE ( NULL <> + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 * + - 51 * + + col2 * + - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT - + CAST( NULL AS SIGNED ) * col1 + + 32 col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5597
SELECT - + CAST ( NULL AS INTEGER ) * col1 + + 32 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * + + col0 + + + col2 * + + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + + - col0 + - + col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL col0 + + + 39 FROM tab0
----
126
136
54

query I rowsort
SELECT - col1 * col1 + - col2 + - col0 - 8 * + + col0 + - + 74 + - col1 AS col0 FROM tab0
----
-1048
-1329
-6898

onlyif mysql # DIV for integer division: 
query II rowsort label-5602
SELECT - col0 + 38 DIV + col0 AS col0, + col1 FROM tab2
----
-46
51
-64
77
-75
67

skipif mysql # not compatible
query II rowsort label-5602
SELECT - col0 + 38 / + col0 AS col0, + col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE - 31 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - COUN