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 - COUNT ( * ) FROM tab2 WHERE - 31 IS NOT NULL
----
-3

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

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

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

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

query I rowsort
SELECT col1 * + 51 - + 23 AS col2 FROM tab2
----
2578
3394
3904

query II rowsort
SELECT ALL col2 * - 17 * - col1 - + col0 AS col1, - 56 AS col1 FROM tab1 AS cor0
----
22797
-56
4930
-56
54241
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL - 61 * + 58 + + - MAX( - + col0 ) - - 70 FROM tab0 AS cor0 WHERE ( NULL ) < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - 61 * + 58 + + - MAX ( - + col0 ) - - 70 FROM tab0 AS cor0 WHERE ( NULL ) < col0
----
NULL

query II rowsort
SELECT DISTINCT + + col2 AS col2, + ( - + 44 ) FROM tab2 AS cor0
----
23
-44
40
-44
58
-44

query I rowsort
SELECT - 50 * + col1 AS col0 FROM tab0 AS cor0
----
-1050
-4050
-50

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

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

query I rowsort
SELECT ALL - 11 * - 58 * col2 AS col2 FROM tab1
----
37642
43384
61248

query I rowsort
SELECT ALL + col0 + - - col0 AS col0 FROM tab1 WHERE NOT - col0 + - col1 NOT BETWEEN 87 * + 7 AND NULL
----

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

query I rowsort
SELECT ALL + col1 * 62 + 75 FROM tab2 AS cor0
----
3237
4229
4849

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5618
SELECT DISTINCT - 45 * + CAST( NULL AS DECIMAL ) AS col0, MIN( ALL + - col1 ) col0 FROM tab1 AS cor0
----
NULL
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5618
SELECT DISTINCT - 45 * + CAST ( NULL AS REAL ) AS col0, MIN ( ALL + - col1 ) col0 FROM tab1 AS cor0
----
NULL
-47

query I rowsort
SELECT DISTINCT 95 * + ( + col1 ) FROM tab1 AS cor0
----
1330
4465
475

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 - + 12 BETWEEN ( NULL ) AND ( 10 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + + ( + - 6 ) + + + MAX( - col0 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5624
SELECT + + ( + - 6 ) + + + MAX ( - col0 ) FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5625
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 89 * - CAST( + - col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5625
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 89 * - CAST ( + - col2 AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) * - MAX( + + 40 ) AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) * - MAX ( + + 40 ) AS col2 FROM tab2 AS cor0
----
-120

query I rowsort
SELECT ALL + col0 + - 9 AS col0 FROM tab0 AS cor0
----
6
78
88

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

query I rowsort
SELECT DISTINCT - col0 + - - 22 * + 47 FROM tab0
----
1019
937
947

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col0 AND col1
----

query I rowsort
SELECT DISTINCT + 9 + + 18 * - + col2 AS col1 FROM tab1
----
-1053
-1215
-1719

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + col2 * col2 >= - 37 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT DISTINCT - col2 + + CAST( - 51 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-109
-74
-91

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - col2 + + CAST ( - 51 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-109
-74
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT col0 * 57 DIV - 92 - 6 + col2 DIV + + 9 + ( 24 ) DIV 77 + + 73 + - col2 * + col0 - col0 AS col1 FROM tab1 AS cor0
----
-4901
-5079
-6261

skipif mysql # not compatible
query I rowsort label-5637
SELECT col0 * 57 / - 92 - 6 + col2 / + + 9 + ( 24 ) / 77 + + 73 + - col2 * + col0 - col0 AS col1 FROM tab1 AS cor0
----
-4901
-5079
-6261

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

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

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

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

query II rowsort
SELECT col1 AS col0, + 25 FROM tab0 AS cor0
----
1
25
21
25
81
25

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT MAX( - 8 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT MAX ( - 8 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

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

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

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

query II rowsort
SELECT + col2, - col2 AS col0 FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
59
-59
68
-68
96
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + MAX( ALL + col2 ) FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT + MAX ( ALL + col2 ) FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 23 col0, + ( + 99 ) FROM tab2
----
-23
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, ( + ( + 55 ) ) col1 FROM tab1
----
14
55
47
55
5
55

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

query I rowsort
SELECT 21 * + col0 AS col1 FROM tab0 AS cor0
----
1827
2037
315

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

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

skipif mysql # not compatible
query I rowsort label-5657
SELECT - 96 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT - MAX( + 10 ) AS col2 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-5658
SELECT - MAX ( + 10 ) AS col2 FROM tab2
----
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5659
SELECT DISTINCT col1 + CAST( + - 54 AS SIGNED ) * - - col0 DIV + - col0 FROM tab1
----
101
59
68

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT col1 + CAST ( + - 54 AS INTEGER ) * - - col0 / + - col0 FROM tab1
----
101
59
68

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT - 77 IN ( ( + - ( - - 61 ) ) ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5661
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT IN ( + + 73, col2 * + col1, 81, - col0, - col2 * - CAST( NULL AS DECIMAL ) * + - col1 / col0 )
----

skipif mysql # not compatible
query III rowsort label-5661
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT IN ( + + 73, col2 * + col1, 81, - col0, - col2 * - CAST ( NULL AS REAL ) * + - col1 / col0 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / - 13 NOT IN ( - col0 + + - 99, + col1 )
----

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

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

query I rowsort
SELECT 44 + + 88 * + 87 - + col0 * + col2 * + 65 * - 36 FROM tab2
----
10186700
2483420
5998100

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

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT ( + MIN ( + col2 ) ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT DISTINCT col1 + + + CAST( col1 AS SIGNED ) col0 FROM tab0
----
162
2
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5668
SELECT DISTINCT col1 + + + CAST ( col1 AS INTEGER ) col0 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT col0 * - - 49 * + 15 + col1 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT col0 * - - 49 * + 15 + col1 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-5670
SELECT + COUNT ( * ) + + ( 61 ) * + 56 * - ( COUNT ( * ) ) FROM tab1
----
-10245

query II rowsort
SELECT DISTINCT col0 * - + col0 + + + 48 AS col2, - 20 * - - 62 AS col1 FROM tab0
----
-177
-1240
-7521
-1240
-9361
-1240

query I rowsort
SELECT AVG ( ALL col0 ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL + 93 + COUNT( + + col0 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL + 93 + COUNT ( + + col0 ) FROM tab2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL - CAST( + 99 AS SIGNED ) + + + SUM( + + 37 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - CAST ( + 99 AS INTEGER ) + + + SUM ( + + 37 ) FROM tab2
----
12

query I rowsort
SELECT DISTINCT - 60 + + 25 AS col2 FROM tab1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) / + 18 <> + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) / + 18 <> + col2 )
----
0

query I rowsort
SELECT ALL col0 + - + 12 FROM tab2 cor0
----
34
52
63

query II rowsort
SELECT ALL + col1 AS col1, col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 33 / + 57 ) IS NULL
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - 71 - + + col2 * - col2 FROM tab0
----
2138
29
9730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT DISTINCT + col2 * + - CAST( - 93 AS SIGNED ) FROM tab1
----
5487
6324
8928

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT + col2 * + - CAST ( - 93 AS INTEGER ) FROM tab1
----
5487
6324
8928

query I rowsort
SELECT - 8 * 89 FROM tab2
----
-712
-712
-712

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= - 2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * col0 col1 FROM tab1
----
-4131
-6885
-7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL CAST( NULL AS SIGNED ) * + 7 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 55 * - col1 - - col1 < NULL
----

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

query I rowsort
SELECT + + ( + 24 ) FROM tab1 WHERE NULL IS NULL
----
24
24
24

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

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

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

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

query II rowsort
SELECT ALL - 67, + col2 * + col1 AS col1 FROM tab2 AS cor0
----
-67
1173
-67
3080
-67
3886

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

query I rowsort
SELECT - + 16 * + 33 FROM tab0 AS cor0
----
-528
-528
-528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5697
SELECT COUNT( col2 ) DIV + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT - 0 * - 16 FROM tab2 AS cor0
----
0
0
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 * col0 + + + col0 col2 FROM tab1
----
1632
2720
2912

onlyif mysql # aggregate syntax: 
query II rowsort label-5703
SELECT DISTINCT - 27 + SUM( DISTINCT - col2 ) AS col2, + COUNT( + 37 ) AS col1 FROM tab0
----
-183
3

skipif mysql # not compatible
query II rowsort label-5703
SELECT DISTINCT - 27 + SUM ( DISTINCT - col2 ) AS col2, + COUNT ( + 37 ) AS col1 FROM tab0
----
-183
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT - 20 + COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-5704
SELECT - 20 + COUNT ( * ) FROM tab2
----
-17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + + ( col0 ) col2 FROM tab1 AS cor0
----
-23
-26
45

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - - ( - - 67 ) >= ( col1 / col2 / col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT ALL + 23 DIV - col2 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + 23 / - col2 AS col0 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5710
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-5710
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <= - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 <> 52 + col1 / - col2
----

query II rowsort
SELECT + 7, col1 FROM tab0 AS cor0
----
7
1
7
21
7
81

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

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

query II rowsort
SELECT DISTINCT + 61 AS col1, col1 + 71 AS col1 FROM tab1 AS cor0 WHERE NOT 62 * 52 < col2 / + + col0
----
61
118
61
76
61
85

query I rowsort
SELECT + 97 * + col2 AS col2 FROM tab2 cor0 WHERE NOT - col1 <> + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT DISTINCT COUNT( * ) * - - 24 AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT COUNT ( * ) * - - 24 AS col0 FROM tab1
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT ALL col0 DIV + 40 AS col1 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL col0 / + 40 AS col1 FROM tab1
----
1
2
2

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

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

query I rowsort
SELECT + col1 + 36 AS col2 FROM tab2
----
103
113
87

query I rowsort
SELECT - 51 AS col2 FROM tab1 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL - ( + MAX( col0 ) ) FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - ( + MAX ( col0 ) ) FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL + + 81 + + + COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + + 81 + + + COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
84

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

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

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab1 cor0
----
6

query I rowsort
SELECT ALL - 12 * + ( + + col1 ) * - col1 - - + col2 + - + col2 FROM tab2 cor0
----
31212
53868
71148

query I rowsort
SELECT ALL - col2 - - - col1 FROM tab0 cor0
----
-100
-128
-31

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

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

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

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

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

query I rowsort
SELECT 44 * + col2 * + 22 FROM tab0
----
45496
95832
9680

query I rowsort
SELECT 48 / col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * - 61 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT COUNT( * ) * MIN( + + 89 ) AS col1 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT COUNT ( * ) * MIN ( + + 89 ) AS col1 FROM tab2
----
267

query I rowsort
SELECT DISTINCT 79 * col0 + + 49 FROM tab1
----
4078
6764
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT - 54 - - SUM( - + col2 ) AS col1 FROM tab2 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT - 54 - - SUM ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-175

query I rowsort
SELECT ALL col0 * + col0 * col1 * - - col2 FROM tab0 AS cor0
----
1589490
856575
931491

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5742
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5742
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL ( col2 ) * + ( - ( 67 ) ) + col1 - + col0 AS col2 FROM tab1 AS cor0
----
-4033
-4600
-6469

query II rowsort
SELECT DISTINCT - col2 * - col2, - col2 AS col0 FROM tab1 AS cor0
----
3481
-59
4624
-68
9216
-96

query I rowsort
SELECT ALL + + 94 * 96 * - 57 FROM tab1 AS cor0
----
-514368
-514368
-514368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT MAX( col0 ) col2 FROM tab2
----
75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT ALL - 39 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - 39 / - col1 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT + - col2 / 57 * + 84 + - col2 * - col1 + + + 43 FROM tab2 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL COUNT( DISTINCT 89 ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL COUNT ( DISTINCT 89 ) AS col0 FROM tab2 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT - - col0 DIV - col2 AS col1 FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5752
SELECT - - col0 / - col2 AS col1 FROM tab0 cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT - + 87 * - col0 AS col0 FROM tab0 AS cor0
----
1305
7569
8439

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 * - 64 - + col2 / col1 * col2 NOT BETWEEN + col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT + - 76 * col1 FROM tab1 AS cor0
----
-1064
-3572
-380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ( COUNT( * ) ) - + + 95 AS col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5759
SELECT ( COUNT ( * ) ) - + + 95 AS col1 FROM tab0 AS cor0
----
-92

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND + - 37 - 84
----

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

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

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

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

query I rowsort
SELECT DISTINCT + - ( 17 ) * - col2 FROM tab1 AS cor0
----
1003
1156
1632

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5767
SELECT + col2, col1 + col2 DIV 41 FROM tab1
----
59
6
68
48
96
16

skipif mysql # not compatible
query II rowsort label-5767
SELECT + col2, col1 + col2 / 41 FROM tab1
----
59
6
68
48
96
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT ALL + col1 DIV + + col2 AS col1 FROM tab1 AS cor0 WHERE + col0 * - - col1 > - - col1 + + - col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL + col1 / + + col2 AS col1 FROM tab1 AS cor0 WHERE + col0 * - - col1 > - - col1 + + - col2
----
0
0
0

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

query I rowsort
SELECT ALL + col1 * + col2 * - 68 * + col2 FROM tab0 AS cor0
----
-12167172
-142800
-666468

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT 10 * - col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT 10 * - col2 / + col2 AS col1 FROM tab0 AS cor0
----
-10

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 48 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT col0 DIV - + col2 + 95 AS col2 FROM tab0
----
87
95
95

skipif mysql # not compatible
query I rowsort label-5774
SELECT col0 / - + col2 + 95 AS col2 FROM tab0
----
87
95
95

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

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

query I rowsort
SELECT 38 + + col1 FROM tab1
----
43
52
85

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

query I rowsort
SELECT ALL - 22 + + col2 - col2 AS col0 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT ALL + col1 + + col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL 99 * - ( + 39 ) + + COUNT( * ) col2 FROM tab2 AS cor0
----
-3858

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5781
SELECT ALL - col1 DIV - 53, - col2 AS col2 FROM tab2 cor0
----
0
-23
1
-40
1
-58

skipif mysql # not compatible
query II rowsort label-5781
SELECT ALL - col1 / - 53, - col2 AS col2 FROM tab2 cor0
----
0
-23
1
-40
1
-58

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

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

query I rowsort
SELECT + col2 * + col0 * + col1 * + + col0 FROM tab0 AS cor0
----
1589490
856575
931491

onlyif mysql # DIV for integer division: 
query I rowsort label-5785
SELECT + 18 DIV + 19 - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 18 / + 19 - col2 FROM tab0
----
-10
-47
-99

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

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

query I rowsort
SELECT ALL + ( + - col1 ) - + ( + 51 ) AS col0 FROM tab0 AS cor0
----
-132
-52
-72

query I rowsort
SELECT DISTINCT + + 60 + - col0 AS col2 FROM tab1 cor0
----
-25
-31
9

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

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

query I rowsort
SELECT 6 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6
6
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + 15 * + COUNT( ALL + - col1 ) * + COUNT( * ) * + - COUNT( * ) FROM tab1
----
-405

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + 15 * + COUNT ( ALL + - col1 ) * + COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
-405

query I rowsort
SELECT ALL col0 * + 67 AS col0 FROM tab2
----
3082
4288
5025

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

query I rowsort
SELECT 84 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT + - 84 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5800
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5800
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT 29 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT 29 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
87

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

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

query I rowsort
SELECT - col1 * 87 AS col0 FROM tab1 AS cor0
----
-1218
-4089
-435

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT + - SUM( ALL + 61 ) AS col0 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5805
SELECT + - SUM ( ALL + 61 ) AS col0 FROM tab1 AS cor0
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5806
SELECT ALL CAST( - col2 AS SIGNED ) - + - 78 + - ( + + 98 ) AS col0, 2 FROM tab1 AS cor0 WHERE NOT col2 >= + col2
----

skipif mysql # not compatible
query II rowsort label-5806
SELECT ALL CAST ( - col2 AS INTEGER ) - + - 78 + - ( + + 98 ) AS col0, 2 FROM tab1 AS cor0 WHERE NOT col2 >= + col2
----

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

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

query II rowsort
SELECT ALL + + col1 AS col0, - col2 * + col1 AS col0 FROM tab0 AS cor0
----
1
-99
21
-210
81
-3807

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 12 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5811
SELECT col0 DIV - col0, col1 * + col0 + - + 45 AS col0 FROM tab2
----
-1
2301
-1
4883
-1
4980

skipif mysql # not compatible
query II rowsort label-5811
SELECT col0 / - col0, col1 * + col0 + - + 45 AS col0 FROM tab2
----
-1
2301
-1
4883
-1
4980

query II rowsort
SELECT - 75, col0 FROM tab1 WHERE NULL >= + col0
----

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

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

query I rowsort
SELECT DISTINCT ( + col1 ) * + + col1 + + 24 * col2 + - col2 FROM tab0
----
2278
671
7642

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT DISTINCT - MAX( ALL + - col1 ) * COUNT( col1 ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - MAX ( ALL + - col1 ) * COUNT ( col1 ) FROM tab2
----
153

query III rowsort
SELECT * FROM tab0 WHERE NULL = col2 * + + ( - - col2 ) AND NOT - 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL + COUNT( ALL + col2 ) - - COUNT( col0 ) * - 41 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL + COUNT ( ALL + col2 ) - - COUNT ( col0 ) * - 41 FROM tab1
----
-120

query I rowsort
SELECT DISTINCT + 46 + - + 93 AS col1 FROM tab1 AS cor0 WHERE - col2 - - 52 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL 83 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT DISTINCT - + CAST( + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT - + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5823
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT + CAST ( NULL AS REAL ) + - col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - - col0 * - - col0 - 35 FROM tab1 AS cor0
----
2566
7190
8246

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL + 22 + - 98 * - COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
316

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL + 22 + - 98 * - COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
316

query II rowsort
SELECT + - col1 - + 4 AS col0, + col1 AS col2 FROM tab2 AS cor0
----
-55
51
-71
67
-81
77

query I rowsort
SELECT + 41 * + - col0 - - 74 FROM tab1 AS cor0
----
-2017
-3411
-3657

onlyif mysql # DIV for integer division: 
query II rowsort label-5828
SELECT DISTINCT - 33 DIV + col1 AS col0, col0 + - - col2 FROM tab1 AS cor0
----
-2
147
-6
144
0
159

skipif mysql # not compatible
query II rowsort label-5828
SELECT DISTINCT - 33 / + col1 AS col0, col0 + - - col2 FROM tab1 AS cor0
----
-2
147
-6
144
0
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 2 + + - 13 * - - col2 > - - 49 AND col1 * col2 IS NULL
----

query I rowsort
SELECT ALL - 97 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT ALL 19 DIV - + 54 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL 19 / - + 54 FROM tab2
----
0
0
0

query I rowsort
SELECT 98 * + 79 AS col0 FROM tab2
----
7742
7742
7742

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT ALL 86 DIV 2 col0 FROM tab2
----
43
43
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5833
SELECT ALL 86 / 2 col0 FROM tab2
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 1 + col0 + col2 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT DISTINCT - SUM( + - 85 ) AS col1 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - SUM ( + - 85 ) AS col1 FROM tab1
----
255

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

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

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

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

query I rowsort
SELECT col0 - 8 * col2 AS col2 FROM tab0
----
-361
-695
7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT - ( - 59 ) * COUNT( ALL - col2 ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT - ( - 59 ) * COUNT ( ALL - col2 ) FROM tab0
----
177

query I rowsort
SELECT ALL 6 / + col1 FROM tab0 WHERE NOT - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT DISTINCT 84 * + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
4284
5628
6468

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT 84 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT + col0 * 90 AS col1 FROM tab2
----
4140
5760
6750

query I rowsort
SELECT + 47 * 65 AS col1 FROM tab0
----
3055
3055
3055

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * + 29 col0 FROM tab2
----
-1073
-1073
-1073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 10 col1 FROM tab1
----
140
470
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT + MAX( + 25 ) * COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-5852
SELECT + MAX ( + 25 ) * COUNT ( * ) FROM tab1
----
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5853
SELECT ALL MIN ( - col2 ) col2 FROM tab1
----
-96

query I rowsort
SELECT + 37 * - 14 AS col0 FROM tab0
----
-518
-518
-518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT DISTINCT CAST( col2 AS SIGNED ) + 68 AS col2 FROM tab0 WHERE ( NULL ) > ( 82 )
----

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT CAST ( col2 AS INTEGER ) + 68 AS col2 FROM tab0 WHERE ( NULL ) > ( 82 )
----

query I rowsort
SELECT 19 * - col2 AS col0 FROM tab2
----
-1102
-437
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT MIN( col1 ) * 59 FROM tab2
----
3009

skipif mysql # not compatible
query I rowsort label-5857
SELECT MIN ( col1 ) * 59 FROM tab2
----
3009

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

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

query I rowsort
SELECT DISTINCT 52 * 97 + ( 74 ) FROM tab1
----
5118

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT DISTINCT 51 DIV - col2 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT 51 / - col2 AS col1 FROM tab0
----
-1
-5
0

query I rowsort
SELECT + 72 AS col0 FROM tab0 WHERE NOT col2 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL - COUNT( * ) + - 64 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 * col2
----
-64

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - COUNT ( * ) + - 64 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 * col2
----
-64

query I rowsort
SELECT 65 - col0 FROM tab2
----
-10
1
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5865
SELECT * FROM tab0 AS cor0 WHERE NOT - 60 * - CAST( NULL AS SIGNED ) + - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5865
SELECT * FROM tab0 AS cor0 WHERE NOT - 60 * - CAST ( NULL AS INTEGER ) + - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 45 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + 31 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + 21 = NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE - col1 >= NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 51 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - SUM( ALL + col1 ) * MAX( - col0 ) AS col2 FROM tab1 AS cor0
----
3366

skipif mysql # not compatible
query I rowsort label-5874
SELECT - SUM ( ALL + col1 ) * MAX ( - col0 ) AS col2 FROM tab1 AS cor0
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT DISTINCT COUNT( * ) * - - 52 col2 FROM tab2
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5875
SELECT DISTINCT COUNT ( * ) * - - 52 col2 FROM tab2
----
156

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * - + col1 col0 FROM tab0
----
-1617
-6237
-77

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

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

query I rowsort
SELECT col1 * + 16 * col1 FROM tab1
----
3136
35344
400

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT ALL 16 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL 16 / + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( NULL ) <> + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( NULL ) <> + CAST ( col0 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 - ( - 93 ) * + col2 NOT BETWEEN NULL AND ( + 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT + 71 * 5 AS col1 FROM tab0
----
355

query I rowsort
SELECT ALL + 22 * + - 33 * + 80 AS col2 FROM tab2
----
-58080
-58080
-58080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + ( 52 ) - - 39 / - col2 NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + ( 52 ) - - 39 / - col2 NOT BETWEEN ( NULL ) AND ( NULL )
----
0

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 86 NOT BETWEEN 96 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5892
SELECT ALL - - col0, CAST( + 66 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
66
64
66
75
66

skipif mysql # not compatible
query II rowsort label-5892
SELECT ALL - - col0, CAST ( + 66 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
66
64
66
75
66

query I rowsort
SELECT DISTINCT + + 30 * - col1 AS col2 FROM tab1 AS cor0
----
-1410
-150
-420

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 + + + col0 BETWEEN ( 30 * + col0 ) AND ( - 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5897
SELECT DISTINCT + 48 DIV 68 + - ( CAST( col2 AS SIGNED ) ) + - 59 * 5 * col0 AS col2 FROM tab2 AS cor0
----
-13593
-18920
-22183

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT + 48 / 68 + - ( CAST ( col2 AS INTEGER ) ) + - 59 * 5 * col0 AS col2 FROM tab2 AS cor0
----
-13593
-18920
-22183

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5898
SELECT col1 col0 FROM tab2 AS cor0 WHERE col1 = - col1 * CAST ( NULL AS INTEGER )
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + 37 AS col2 FROM tab0
----
118
38
58

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

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

query I rowsort
SELECT + - col2 FROM tab1 WHERE - 1 IS NULL
----

query I rowsort
SELECT ALL col2 + + + col2 * - + col0 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - + COUNT( * ) + - 54 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5909
SELECT - + COUNT ( * ) + - 54 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT 54 + col2 AS col2 FROM tab2 AS cor0
----
112
77
94

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 = + 99
----

query I rowsort
SELECT DISTINCT col1 - col1 * + - col2 + - + 57 * 57 AS col2 FROM tab0
----
-3018
-3149
639

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT SUM( col2 ) col1 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5915
SELECT SUM ( col2 ) col1 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - + ( + + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 >= + - col0
----

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

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

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

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

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

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

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

query I rowsort
SELECT col1 * 20 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND ( col2 * - 33 * - 24 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 * + - 57 ) AND ( 65 )
----

query I rowsort
SELECT DISTINCT - 65 * + col2 + - ( col0 ) FROM tab1 cor0
----
-3920
-4511
-6291

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT ALL + col2 DIV col1 FROM tab0 AS cor0 WHERE NOT col2 * 0 + col2 IS NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + col2 / col1 FROM tab0 AS cor0 WHERE NOT col2 * 0 + col2 IS NULL
----
0
0
99

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

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

skipif mysql # not compatible
query I rowsort label-5927
SELECT - COUNT ( * ) * - 36 FROM tab1
----
108

query I rowsort
SELECT col1 * 17 AS col1 FROM tab1
----
238
799
85

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

query II rowsort
SELECT DISTINCT + 54 AS col0, 42 AS col0 FROM tab2
----
54
42

query II rowsort
SELECT ALL 0, 19 AS col2 FROM tab1
----
0
19
0
19
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - 27 * 64 * + - SUM( col2 ) AS col0 FROM tab2
----
209088

skipif mysql # not compatible
query I rowsort label-5932
SELECT - 27 * 64 * + - SUM ( col2 ) AS col0 FROM tab2
----
209088

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT 95 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT 95 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 34 FROM tab0 AS cor0 WHERE NOT col0 IN ( col0, col2 - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT DISTINCT - 34 * + CAST( - - 79 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2686

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT - 34 * + CAST ( - - 79 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2686

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5938
SELECT DISTINCT col0 * + + CAST( NULL AS DECIMAL ), - 47 AS col2 FROM tab1 AS cor0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-5938
SELECT DISTINCT col0 * + + CAST ( NULL AS REAL ), - 47 AS col2 FROM tab1 AS cor0
----
NULL
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 46 )
----

query II rowsort
SELECT 2 AS col0, 57 + - + 47 AS col2 FROM tab2 AS cor0
----
2
10
2
10
2
10

query I rowsort
SELECT ALL col2 + + col0 + + ( - 19 ) FROM tab0
----
177
43
78

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5945
SELECT ALL + + 73 * - CAST( NULL AS DECIMAL ) * 31 + - col0 + + 86 + col2 + + + 1 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + + 73 * - CAST ( NULL AS REAL ) * 31 + - col0 + + 86 + col2 + + + 1 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN ( - 70 ) AND - ( 30 ) * + col1 * 79 - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT + SUM( ALL - col1 ) DIV - + 90 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5950
SELECT + SUM ( ALL - col1 ) / - + 90 FROM tab0
----
1

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

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

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

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

query I rowsort
SELECT ALL - col2 + ( + + col1 ) + + - 21 - + col1 AS col2 FROM tab2
----
-44
-61
-79

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

query I rowsort
SELECT - col1 - - + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-110
-115
-64

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5958
SELECT DISTINCT - - col1 AS col2, 48 DIV + - col0 AS col0 FROM tab0 AS cor0
----
1
0
21
0
81
-3

skipif mysql # not compatible
query II rowsort label-5958
SELECT DISTINCT - - col1 AS col2, 48 / + - col0 AS col0 FROM tab0 AS cor0
----
1
0
21
0
81
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT + MAX( 84 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT + MAX ( 84 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

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

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

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

query I rowsort
SELECT + - 52 * + col0 + - - col1 FROM tab2 AS cor0
----
-2341
-3251
-3833

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

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

query I rowsort
SELECT ALL - 6 FROM tab1 WHERE NOT ( + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL + COUNT( * ) * + + 85 AS col2 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL + COUNT ( * ) * + + 85 AS col2 FROM tab1
----
255

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

skipif mysql # not compatible
query I rowsort label-5968
SELECT COUNT ( - 26 ) AS col2 FROM tab1
----
3

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

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

query I rowsort
SELECT + + 38 + - col2 FROM tab2 AS cor0
----
-2
-20
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT COUNT( ALL + 53 ) * + - ( - 63 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5971
SELECT COUNT ( ALL + 53 ) * + - ( - 63 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
186

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

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

query I rowsort
SELECT DISTINCT + - 72 + + col0 + + - 62 AS col0 FROM tab2 AS cor0
----
-59
-70
-88

query II rowsort
SELECT ALL + 57, + 86 + - 57 AS col1 FROM tab0 AS cor0
----
57
29
57
29
57
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - ( SUM( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5975
SELECT - ( SUM ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-185

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

query II rowsort
SELECT 37 AS col0, 78 FROM tab1 cor0
----
37
78
37
78
37
78

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

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

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

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

query II rowsort
SELECT ALL + col2, col0 + col1 FROM tab1 AS cor0
----
59
90
68
138
96
65

query I rowsort
SELECT ALL - ( 76 ) + - - col0 FROM tab0 AS cor0
----
-61
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT + SUM( ALL 77 ) FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT + SUM ( ALL 77 ) FROM tab0
----
231

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5984
SELECT DISTINCT col0 * - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT col0 * - + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 + ( + col2 ) - 87 AS col0 FROM tab0
----
-164
-55
-85

query I rowsort
SELECT - 15 + - 68 FROM tab0
----
-83
-83
-83

query I rowsort
SELECT col0 + 13 AS col0 FROM tab2
----
59
77
88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT DISTINCT col1 DIV + - col0 * + ( - col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT col1 / + - col0 * + ( - col0 ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT - 13 DIV + 86 * + + ( + col0 ) * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT - 13 / + 86 * + + ( + col0 ) * - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * + 62 AS col1 FROM tab2
----
1426
2480
3596

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

query II rowsort
SELECT 83 AS col0, + col1 AS col2 FROM tab0
----
83
1
83
21
83
81

query I rowsort
SELECT + - col1 * - col0 + + col1 + + col1 + - col2 * + - 76 + - - col1 * + 52 * 91 FROM tab2 cor0
----
245528
326611
372486

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

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

query II rowsort
SELECT DISTINCT col0 + + 41, - 74 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - MAX( ALL 5 ) col0 FROM tab0
----
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT col2 DIV - col0 + - - 16 FROM tab1
----
15
16
16

skipif mysql # not compatible
query I rowsort label-5999
SELECT col2 / - col0 + - - 16 FROM tab1
----
15
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT 39 + + + CAST( + + col0 AS SIGNED ) FROM tab0
----
126
136
54

skipif mysql # not compatible
query I rowsort label-6000
SELECT 39 + + + CAST ( + + col0 AS INTEGER ) FROM tab0
----
126
136
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT DISTINCT - 9 * - 85 + - MAX( ( + 24 ) ) AS col1 FROM tab0
----
741

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT - 9 * - 85 + - MAX ( ( + 24 ) ) AS col1 FROM tab0
----
741

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) = col2 * - 83 OR NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) = col2 * - 83 OR NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL + col2 + + + col2 AS col0, + col1 AS col1 FROM tab1
----
118
5
136
47
192
14

query I rowsort
SELECT ALL - 90 * 11 FROM tab0
----
-990
-990
-990

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 <= NULL
----

query I rowsort
SELECT 18 + - 16 FROM tab0
----
2
2
2

query I rowsort
SELECT - col0 + col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 WHERE col0 * + col1 NOT BETWEEN NULL AND + col1 + - 30 / - col0 + + 46 / + 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 65 + 19 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL col0 - + - col2 AS col1 FROM tab2 cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6012
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

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

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

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

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

query II rowsort
SELECT + col0 * + + ( + ( + 31 ) ) + - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
2687
-10
2908
-99
418
-47

query III rowsort
SELECT * FROM tab0 WHERE - col0 + 69 > - 97 * - + 18
----

query I rowsort
SELECT + 25 * - + 83 FROM tab0
----
-2075
-2075
-2075

query I rowsort
SELECT ( - 37 ) FROM tab1
----
-37
-37
-37

query I rowsort
SELECT col0 * - + col0 * col1 AS col2 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL + col1 * + col0 * + + col1 AS col1 FROM tab0
----
38367
97
98415

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= + + col0 + + col2 * + + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6022
SELECT col1 DIV - + 75, col0 FROM tab0
----
-1
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-6022
SELECT col1 / - + 75, col0 FROM tab0
----
-1
15
0
87
0
97

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

skipif mysql # not compatible
query I rowsort label-6023
SELECT 58 * - COUNT ( * ) AS col1 FROM tab1
----
-174

query I rowsort
SELECT DISTINCT - + ( col2 ) * - + 94 AS col1 FROM tab1 AS cor0
----
5546
6392
9024

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

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

query I rowsort
SELECT ALL + 43 * + col1 AS col2 FROM tab0 AS cor0
----
3483
43
903

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 44 = 56
----

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

query I rowsort
SELECT DISTINCT 47 * - col2 + + + col1 FROM tab0
----
-2128
-449
-4652

query I rowsort
SELECT ALL - 63 + - + col2 AS col1 FROM tab0
----
-110
-162
-73

query I rowsort
SELECT DISTINCT + col0 + - + 18 FROM tab2
----
28
46
57

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

query I rowsort
SELECT ALL - col1 + + 37 FROM tab1
----
-10
23
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT - col2 FROM tab1 AS cor0 WHERE col0 * - + CAST( NULL AS SIGNED ) NOT IN ( + ( - col2 ), 93 + - + col1 * + col1, - col0 )
----

skipif mysql # not compatible
query I rowsort label-6037
SELECT - col2 FROM tab1 AS cor0 WHERE col0 * - + CAST ( NULL AS INTEGER ) NOT IN ( + ( - col2 ), 93 + - + col1 * + col1, - col0 )
----

query I rowsort
SELECT 48 * 61 + col1 * + 86 FROM tab1 AS cor0
----
3358
4132
6970

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

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

query I rowsort
SELECT ALL - col2 + + 90 FROM tab1 AS cor0
----
-6
22
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE - 43 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6041
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE - 43 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 24 >= col2
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT ALL CAST( - col2 AS SIGNED ) + - col0 + + + col1 + + + col1 AS col0 FROM tab0 AS cor0
----
-194
-55
100

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL CAST ( - col2 AS INTEGER ) + - col0 + + + col1 + + + col1 AS col0 FROM tab0 AS cor0
----
-194
-55
100

query I rowsort
SELECT col1 - - 1 FROM tab0 AS cor0
----
2
22
82

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + 56 AS col2, - col0 col2 FROM tab0 AS cor0
----
4872
-87
5432
-97
840
-15

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

query I rowsort
SELECT DISTINCT - + 95 * + 11 + + 51 FROM tab0 cor0
----
-994

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6050
SELECT ALL COUNT( - col1 ) * + 64 AS col2, - COUNT( 11 ) AS col2 FROM tab0
----
192
-3

skipif mysql # not compatible
query II rowsort label-6050
SELECT ALL COUNT ( - col1 ) * + 64 AS col2, - COUNT ( 11 ) AS col2 FROM tab0
----
192
-3

query I rowsort
SELECT DISTINCT col0 * + 71 AS col2 FROM tab2
----
3266
4544
5325

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT ( + - 73 ) <= NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT - - 75 * - 7 + CAST( - 5 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-530
-530
-530

skipif mysql # not compatible
query I rowsort label-6057
SELECT - - 75 * - 7 + CAST ( - 5 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-530
-530
-530

query I rowsort
SELECT DISTINCT + + 97 * - col1 AS col1 FROM tab2 AS cor0
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 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-6059
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT - COUNT( * ) * - 61 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
549

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - COUNT ( * ) * - 61 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
549

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6062
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST( NULL AS SIGNED ), + col1, + col0 )
----

skipif mysql # not compatible
query III rowsort label-6062
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( NULL AS INTEGER ), + col1, + col0 )
----

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

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

query I rowsort
SELECT DISTINCT + - 42 * + - col2 FROM tab1 cor0
----
2478
2856
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - COUNT( * ) * COUNT( * ) + + COUNT( * ) + - 51 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) + - 51 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT + col0 * - col0 <> + col2 * - 75
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col1 + - ( + col2 ) IN ( + 29 * ( col0 ) + 85, col2 * + col1, + 51 * col1, col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT 35 * - + COUNT( * ) + - 64 AS col0 FROM tab0
----
-169

skipif mysql # not compatible
query I rowsort label-6069
SELECT 35 * - + COUNT ( * ) + - 64 AS col0 FROM tab0
----
-169

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

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

query II rowsort
SELECT DISTINCT 95 * ( col0 ) * + col2 + - col1 AS col0, ( 80 ) FROM tab0
----
66894
80
82629
80
912284
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT 69 + + col1 DIV - col0 + - col2 col0 FROM tab1
----
-27
1
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6072
SELECT 69 + + col1 / - col0 + - col2 col0 FROM tab1
----
-27
1
10

query I rowsort
SELECT ( - + col1 ) * + - col0 + col2 FROM tab0
----
1262
1837
196

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

query I rowsort
SELECT DISTINCT - col0 * col0 + - col2 FROM tab1
----
-2697
-7284
-8349

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

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

query II rowsort
SELECT col2, 80 FROM tab2 AS cor0
----
23
80
40
80
58
80

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

query I rowsort
SELECT ALL - 8 * col1 AS col0 FROM tab2 AS cor0
----
-408
-536
-616

query I rowsort
SELECT DISTINCT 25 * + col0 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT ALL 43 * - col0 FROM tab1
----
-2193
-3655
-3913

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

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

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT - - SUM ( DISTINCT + - 96 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL - - MAX( DISTINCT col2 ) * + 69 FROM tab0 AS cor0
----
6831

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL - - MAX ( DISTINCT col2 ) * + 69 FROM tab0 AS cor0
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT + MIN( DISTINCT + 83 ) * + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6086
SELECT + MIN ( DISTINCT + 83 ) * + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT ( COUNT( * ) ) + 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT ( COUNT ( * ) ) + 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

query I rowsort
SELECT ALL + ( col1 ) FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL - + SUM( - col1 ) * + - 95 AS col0 FROM tab0 AS cor0
----
-9785

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL - + SUM ( - col1 ) * + - 95 AS col0 FROM tab0 AS cor0
----
-9785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col2 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col0 * + + col1 * - - 23 + - + 25 AS col2 FROM tab0 AS cor0
----
2206
27920
41996

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

skipif mysql # not compatible
query I rowsort label-6092
SELECT - ( COUNT ( * ) ) / + 55 * ( - + 78 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6093
SELECT 68 DIV - col2 + - - col1 col2, - col2 AS col1 FROM tab0 AS cor0
----
1
-99
15
-10
80
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6093
SELECT 68 / - col2 + - - col1 col2, - col2 AS col1 FROM tab0 AS cor0
----
1
-99
15
-10
80
-47

query I rowsort
SELECT - - col1 * + 46 + col2 AS col0 FROM tab2 cor0
----
2369
3140
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT + + MIN( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + + MIN ( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + col2 * + col2 * - 20 AS col0 FROM tab2
----
-10580
-32000
-67280

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - + col0 * - - col0
----

query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 AS col1 FROM tab2
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL + MAX( ALL 7 ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + MAX ( ALL 7 ) AS col1 FROM tab2
----
7

query I rowsort
SELECT ALL 50 + - col1 FROM tab1
----
3
36
45

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

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

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + CAST ( + col2 AS INTEGER ) + + col0 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT - - col2 + + ( + col0 ) + col2 AS col1 FROM tab2 AS cor0
----
144
191
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT - COUNT( * ) + + 7 AS col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6106
SELECT - COUNT ( * ) + + 7 AS col2 FROM tab1 AS cor0
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT col2 * CAST( + col0 AS SIGNED ) * col0 AS col1 FROM tab1
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-6108
SELECT col2 * CAST ( + col0 AS INTEGER ) * col0 AS col1 FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - 13 + - - ( + - 20 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
167

skipif mysql # not compatible
query I rowsort label-6109
SELECT - 13 + - - ( + - 20 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
167

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

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

query II rowsort
SELECT - 29, 72 AS col2 FROM tab0, tab1 AS cor0
----
18 values hashing to ea2f06beb58566844ba889701bfc8a8f

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * + + col2 col2 FROM tab1 cor0
----
-1888
-2176
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6115
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( ( 24 ), + col0, + - col0, - col1, + CAST( NULL AS SIGNED ) * 96 + col1 + - col2 + - - 72 * 99 )
----

skipif mysql # not compatible
query III rowsort label-6115
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( ( 24 ), + col0, + - col0, - col1, + CAST ( NULL AS INTEGER ) * 96 + col1 + - col2 + - - 72 * 99 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab1 WHERE NOT - 27 IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-6116
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 WHERE NOT - 27 IS NULL
----
-3
3

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

query II rowsort
SELECT ALL 37, col1 FROM tab1
----
37
14
37
47
37
5

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

query I rowsort
SELECT + col1 * - col1 * - 85 AS col0 FROM tab1
----
16660
187765
2125

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT + 61 DIV col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-6121
SELECT + 61 / col1 FROM tab1
----
1
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT + MIN( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL <= 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT + MIN ( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL <= 12
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col2, + 88 + 47 AS col1 FROM tab1 AS cor0
----
-59
135
-68
135
-96
135

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT - - MIN( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT - - MIN ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT 33 + col0 + + 13 * + - col1 - - col2 AS col1 FROM tab2
----
-561
-705
-864

query I rowsort
SELECT ALL col0 * - - ( - + 54 ) + + col2 FROM tab1
----
-2658
-4531
-4846

query I rowsort
SELECT DISTINCT + col2 - + col2 - + + col0 + 45 * - + col0 AS col0 FROM tab1
----
-2346
-3910
-4186

query I rowsort
SELECT + col2 * col0 * - - 97 FROM tab1
----
474912
486455
600236

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - COUNT( * ) * + 38 - COUNT( * ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6131
SELECT - COUNT ( * ) * + 38 - COUNT ( * ) FROM tab0 AS cor0
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + ( 24 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT + ( 83 ) * - SUM( + - 61 ) FROM tab0
----
15189

skipif mysql # not compatible
query I rowsort label-6134
SELECT + ( 83 ) * - SUM ( + - 61 ) FROM tab0
----
15189

query I rowsort
SELECT + + AVG ( + 84 ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6139
SELECT - 83 AS col1, - 58 * + col0 + col1 DIV - - 53 AS col1 FROM tab2 AS cor0
----
-83
-2668
-83
-3711
-83
-4349

skipif mysql # not compatible
query II rowsort label-6139
SELECT - 83 AS col1, - 58 * + col0 + col1 / - - 53 AS col1 FROM tab2 AS cor0
----
-83
-2668
-83
-3711
-83
-4349

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

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - 24 ) AS col2 FROM tab1 AS cor0 WHERE NULL <= 8
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE + ( - col1 ) * - col1 * col0 = NULL
----

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

query I rowsort
SELECT DISTINCT col2 - - col2 FROM tab0 WHERE NOT + col2 IN ( - 72 )
----
198
20
94

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL - COUNT( * ) + 92 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - COUNT ( * ) + 92 FROM tab1
----
89

query I rowsort
SELECT 33 * + col0 + + ( 45 ) * col1 FROM tab0
----
3246
3816
4140

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-29

query I rowsort
SELECT ALL col0 + - - 13 FROM tab2
----
59
77
88

query I rowsort
SELECT ALL - col1 + + + 41 AS col1 FROM tab0
----
-40
20
40

query I rowsort
SELECT - col1 + + 32 FROM tab2 WHERE NULL < NULL
----

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

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

query I rowsort
SELECT col0 * - + col2 * 28 AS col1 FROM tab1 AS cor0
----
-137088
-140420
-173264

query I rowsort
SELECT ALL - ( - + col2 ) - - col0 FROM tab2 AS cor0
----
104
133
69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT - 88 * + + col0 * 16 / - col1 - 3 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT - 88 * + + col0 * 16 / - col1 - 3 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 57 - + col0 + col0 * - + col0 AS col2 FROM tab2
----
-2105
-4103
-5643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT col0 - - 99 AS col0 FROM tab2 WHERE - CAST( + 65 AS SIGNED ) + + 41 <> ( col2 * - + col2 + - 94 )
----
145
163
174

skipif mysql # not compatible
query I rowsort label-6164
SELECT col0 - - 99 AS col0 FROM tab2 WHERE - CAST ( + 65 AS INTEGER ) + + 41 <> ( col2 * - + col2 + - 94 )
----
145
163
174

query II rowsort
SELECT DISTINCT + col2 * col0 AS col0, col1 AS col0 FROM tab0
----
705
81
870
21
9603
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT ( SUM( + ( + - 78 ) ) ) col2 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6168
SELECT DISTINCT ( SUM ( + ( + - 78 ) ) ) col2 FROM tab2 AS cor0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT DISTINCT + COUNT( * ) * 20 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT + COUNT ( * ) * 20 FROM tab2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT ALL ( + col2 ) DIV col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL ( + col2 ) / col0 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT + + 49 * + col2 * - col1 FROM tab2 AS cor0
----
-150920
-190414
-57477

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT - MAX( 98 ) * + COUNT( * ) FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6173
SELECT - MAX ( 98 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-294

query I rowsort
SELECT DISTINCT + - ( + - 69 ) AS col0 FROM tab2 AS cor0
----
69

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL - COUNT( * ) * 1 + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL - COUNT ( * ) * 1 + COUNT ( * ) FROM tab2 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT ALL CAST( 8 AS SIGNED ) FROM tab0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL CAST ( 8 AS INTEGER ) FROM tab0
----
8
8
8

query II rowsort
SELECT ALL + col1, 22 + 1 AS col2 FROM tab0
----
1
23
21
23
81
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6184
SELECT ALL - 56 DIV col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - 56 / col0 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT - col0 + - + CAST( + 33 AS SIGNED ) FROM tab2
----
-108
-79
-97

skipif mysql # not compatible
query I rowsort label-6185
SELECT - col0 + - + CAST ( + 33 AS INTEGER ) FROM tab2
----
-108
-79
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT - 42 * + + col2 DIV - col2 FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-6187
SELECT - 42 * + + col2 / - col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 22 + + ( + ( - col2 ) ) FROM tab2 AS cor0
----
-45
-62
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT DISTINCT 16 DIV - col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT 16 / - col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT SUM( ( + 94 ) ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-6190
SELECT SUM ( ( + 94 ) ) FROM tab0
----
282

query I rowsort
SELECT col2 + ( - - col0 ) AS col2 FROM tab1
----
144
147
159

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT + MAX( + col0 ) + + - COUNT( ALL + col1 ) * + MIN( - col1 ) * - - COUNT( * ) FROM tab2
----
768

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + MAX ( + col0 ) + + - COUNT ( ALL + col1 ) * + MIN ( - col1 ) * - - COUNT ( * ) FROM tab2
----
768

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

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

query I rowsort
SELECT DISTINCT 52 + + col0 FROM tab0
----
139
149
67

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 66 AS col2 FROM tab0 AS cor0
----
3102
6534
660

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT + MAX( 36 ) * ( 68 ) FROM tab2
----
2448

skipif mysql # not compatible
query I rowsort label-6203
SELECT + MAX ( 36 ) * ( 68 ) FROM tab2
----
2448

query I rowsort
SELECT DISTINCT - 36 FROM tab0 WHERE NOT ( NOT col1 * + col0 * - ( + col0 ) IS NOT NULL )
----
-36

query I rowsort
SELECT - 18 AS col1 FROM tab0 AS cor0 WHERE NOT col1 < + 32
----
-18

query I rowsort
SELECT DISTINCT + 23 * + 73 + + 9 FROM tab2 AS cor0
----
1688

query I rowsort
SELECT ALL 22 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
22
22
22

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL - AVG ( + - col0 ) - + COUNT( * ) FROM tab1 AS cor0 WHERE col2 * - col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - AVG ( + - col0 ) - + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * - col1 > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT - col2 DIV + ( + + col0 ) + + + col0 * + 16 FROM tab0 AS cor0
----
1392
1551
237

skipif mysql # not compatible
query I rowsort label-6211
SELECT - col2 / + ( + + col0 ) + + + col0 * + 16 FROM tab0 AS cor0
----
1392
1551
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT DISTINCT + AVG ( + 23 ) * + 28 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT + AVG ( + 23 ) * + 28 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT ALL col1 DIV + - 83 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL col1 / + - 83 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + + 4 + col0 + col1 * 53 FROM tab1
----
2677
439
848

onlyif mysql # aggregate syntax: 
query II rowsort label-6215
SELECT COUNT( * ) AS col0, + ( + + 74 ) * + 19 FROM tab2
----
3
1406

skipif mysql # not compatible
query II rowsort label-6215
SELECT COUNT ( * ) AS col0, + ( + + 74 ) * + 19 FROM tab2
----
3
1406

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

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

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT 98 + COUNT ( * ) FROM tab1
----
101

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6219
SELECT ALL SUM( ALL + + 74 ) + - 7 + - + ( - 18 ) / - + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL SUM ( ALL + + 74 ) + - 7 + - + ( - 18 ) / - + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT - - col1 * + col1 > + 62
----

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

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

query I rowsort
SELECT ALL 1 + - col2 AS col2 FROM tab0 AS cor0
----
-46
-9
-98

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

query I rowsort
SELECT ALL + + 35 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # DIV for integer division: 
query I rowsort label-6226
SELECT DISTINCT - col2 DIV + col2 - + 43 AS col2 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT - col2 / + col2 - + 43 AS col2 FROM tab1 AS cor0
----
-44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT DISTINCT - - col0 DIV + col0 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT - - col0 / + col0 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6229
SELECT - 39, 76 DIV COUNT( * ) DIV + ( + + 45 ) col2 FROM tab2 AS cor0
----
-39
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6229
SELECT - 39, 76 / COUNT ( * ) / + ( + + 45 ) col2 FROM tab2 AS cor0
----
-39
0

query I rowsort
SELECT + - col2 * - - col2 - + + 86 FROM tab0 AS cor0
----
-186
-2295
-9887

query I rowsort
SELECT ALL - 10 - 87 + - col0 FROM tab1 AS cor0
----
-148
-182
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT - col1 - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-6232
SELECT - col1 - col2 / - col1 AS col1 FROM tab1 AS cor0
----
-46
-8
6

query I rowsort
SELECT 56 - - + 17 * - col2 FROM tab0 AS cor0
----
-114
-1627
-743

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

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

query I rowsort
SELECT col2 * - 32 * + + col2 FROM tab1
----
-111392
-147968
-294912

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + SUM( - 94 ) col0 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6238
SELECT + SUM ( - 94 ) col0 FROM tab0 AS cor0
----
-282

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

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

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

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL 41 / - ( + + COUNT ( * ) ) - - - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT + SUM( - col2 ) * + SUM( + + col0 ) * + 78 + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6242
SELECT + SUM ( - col2 ) * + SUM ( + + col0 ) * + 78 + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

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

query I rowsort
SELECT col0 * - - 37 AS col2 FROM tab2 AS cor0
----
1702
2368
2775

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 84 / - col0 - 59 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT - SUM( DISTINCT 69 ) AS col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6246
SELECT - SUM ( DISTINCT 69 ) AS col2 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT DISTINCT + + ( - + col0 ) * + col0, + col1 AS col2 FROM tab2 AS cor0
----
-2116
51
-4096
77
-5625
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6248
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col1 - + CAST( + - col2 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-6248
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col1 - + CAST ( + - col2 AS REAL )
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 81 * 59 - + 35 col1 FROM tab2
----
4795
4811
4821

query I rowsort
SELECT + col1 * 38 * - 36 + - 51 FROM tab2
----
-105387
-69819
-91707

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6252
SELECT ALL - COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6253
SELECT CAST( col1 AS SIGNED ) * - - ( - ( col1 ) ) FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-6253
SELECT CAST ( col1 AS INTEGER ) * - - ( - ( col1 ) ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query II rowsort label-6254
SELECT + 89 * - - 70, COUNT( - col0 ) AS col0 FROM tab1
----
6230
3

skipif mysql # not compatible
query II rowsort label-6254
SELECT + 89 * - - 70, COUNT ( - col0 ) AS col0 FROM tab1
----
6230
3

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

query I rowsort
SELECT DISTINCT + col2 * col0 + + 64 AS col2 FROM tab1 cor0
----
4960
5079
6252

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT 1 >= - + col0
----

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

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

query I rowsort
SELECT DISTINCT ( - 1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT DISTINCT 78 * + - col1 + - - 64 AS col0 FROM tab2
----
-3914
-5162
-5942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab0 WHERE - 10 + + + col2 < - col0
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 WHERE - 10 + + + col2 < - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT COUNT( ALL - col0 ) + - 82 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-6262
SELECT COUNT ( ALL - col0 ) + - 82 FROM tab0
----
-79

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - 12 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
12
252
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 11 * + col1 col1 FROM tab2
----
23
561
40
847
58
737

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

query I rowsort
SELECT - col0 * 17 * - col0 AS col2 FROM tab0
----
128673
159953
3825

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

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

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 + + 4 BETWEEN - 55 + + 35 * + 83 AND + - 66
----
-10
-47
-99

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT ( NULL >= NULL )
----

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

query I rowsort
SELECT DISTINCT - 23 + col2 FROM tab2 WHERE + col1 / + 16 + - + col1 BETWEEN NULL AND col0 + - col2 - - col0 + - col2 OR NOT + col2 * + col2 * ( col1 ) IS NULL
----
0
17
35

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

skipif mysql # not compatible
query II rowsort label-6276
SELECT DISTINCT + 49 * - 78 / + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1274
3

query II rowsort
SELECT - 29 AS col1, - col0 FROM tab2
----
-29
-46
-29
-64
-29
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6278
SELECT ALL * FROM tab0 WHERE - 36 < CAST( NULL AS DECIMAL ) / + col2 * + 15
----

skipif mysql # not compatible
query III rowsort label-6278
SELECT ALL * FROM tab0 WHERE - 36 < CAST ( NULL AS REAL ) / + col2 * + 15
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * + col0 + col1 / col2 IS NULL
----

query I rowsort
SELECT ALL + col0 + - + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6281
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 50 * - + 62 + + COUNT( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 50 * - + 62 + + COUNT ( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - ( + - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 55 AND + col0
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 23 < + 24 + - 16
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col2 * col2 + 8 * 84 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT 19 * col1 FROM tab2 WHERE NOT NULL > CAST( 2 AS SIGNED ) * col2 + col2
----

skipif mysql # not compatible
query I rowsort label-6286
SELECT 19 * col1 FROM tab2 WHERE NOT NULL > CAST ( 2 AS INTEGER ) * col2 + col2
----

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

skipif mysql # not compatible
query I rowsort label-6287
SELECT ( col2 ) / 66 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6288
SELECT ALL * FROM tab0 WHERE ( + CAST( NULL AS DECIMAL ) * col1 + - col0 ) NOT BETWEEN 23 AND ( + ( col1 ) + + 30 )
----

skipif mysql # not compatible
query III rowsort label-6288
SELECT ALL * FROM tab0 WHERE ( + CAST ( NULL AS REAL ) * col1 + - col0 ) NOT BETWEEN 23 AND ( + ( col1 ) + + 30 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6289
SELECT col1 / - 98 col0 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6290
SELECT + col0 / - col1 col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6291
SELECT MIN( DISTINCT col1 ) DIV + 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6291
SELECT MIN ( DISTINCT col1 ) / + 99 FROM tab2
----
0

query I rowsort
SELECT col2 + + 20 * 33 AS col2 FROM tab0
----
670
707
759

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

query I rowsort
SELECT ALL 55 + + col0 AS col2 FROM tab0 WHERE col2 * ( + col0 ) + col1 IS NOT NULL
----
142
152
70

query I rowsort
SELECT ALL 45 + - 98 FROM tab1
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL COUNT( * ) FROM tab2 WHERE + col1 + col2 <= + col1 + col2 / col1
----
0

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL COUNT ( * ) FROM tab2 WHERE + col1 + col2 <= + col1 + col2 / col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT - COUNT( ALL 87 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT - COUNT ( ALL 87 ) AS col2 FROM tab2
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col0 FROM tab0 WHERE NOT + col2 IN ( col1 * col1 )
----
-89
-89
-89

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6303
SELECT ALL + ( + MAX ( ( CAST ( NULL AS INTEGER ) ) ) ) col0 FROM tab1 WHERE NOT - ( - col2 ) * - CAST ( - col1 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6304
SELECT ALL + 79 - - MIN( - ( - CAST( NULL AS SIGNED ) ) ) FROM tab2 WHERE NOT - col1 NOT BETWEEN + col1 AND col0 / 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + 79 - - MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 WHERE NOT - col1 NOT BETWEEN + col1 AND col0 / 70
----
NULL

query I rowsort
SELECT - 97 * col1 - + 85 AS col2 FROM tab0
----
-182
-2122
-7942

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT - COUNT( * ) + - 64 AS col0 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-6306
SELECT - COUNT ( * ) + - 64 AS col0 FROM tab1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 92 )
----

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 92 )
----

query I rowsort
SELECT - 42 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + col2 <= ( - col1 )
----
-42
-42
-42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
1

skipif mysql # not compatible
query I rowsort label-6310
SELECT COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-6313
SELECT 89 FROM tab1 WHERE NOT col1 + col0 BETWEEN ( NULL ) AND - col1 * - CAST ( - col1 AS INTEGER )
----
89
89
89

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

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

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

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

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL >= ( 73 )
----

query I rowsort
SELECT col1 * - col1 + + col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT + - COUNT( * ) + - 86 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6321
SELECT + - COUNT ( * ) + - 86 FROM tab0 AS cor0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6322
SELECT COUNT( * ) + + 2 - + SUM( + ( ( col2 ) ) ) DIV - COUNT( * ) AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-6322
SELECT COUNT ( * ) + + 2 - + SUM ( + ( ( col2 ) ) ) / - COUNT ( * ) AS col2 FROM tab2
----
45

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6324
SELECT * FROM tab1 WHERE 79 + CAST( - 4 AS SIGNED ) * - col1 NOT BETWEEN NULL AND 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6324
SELECT * FROM tab1 WHERE 79 + CAST ( - 4 AS INTEGER ) * - col1 NOT BETWEEN NULL AND 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT COUNT( * ) AS col2 FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6326
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL col2 + + col1 - 68 FROM tab0
----
-37
32
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL + MIN( + 12 ) * - 28 + COUNT( * ) FROM tab2
----
-333

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL + MIN ( + 12 ) * - 28 + COUNT ( * ) FROM tab2
----
-333

query I rowsort
SELECT DISTINCT - 46 * col2 FROM tab1 AS cor0 WHERE NOT ( col2 * + col0 ) IS NULL
----
-2714
-3128
-4416

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6331
SELECT + - 35 / col1 * CAST( NULL AS SIGNED ) - - col1 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT + - 35 / col1 * CAST ( NULL AS INTEGER ) - - col1 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE NULL <> col1
----

query I rowsort
SELECT ( + col2 ) + col0 AS col2 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 71 BETWEEN NULL AND ( + col1 )
----
46
51
23
75
67
58

query I rowsort
SELECT - 16 + 22 * - + col1 + + col2 FROM tab2
----
-1115
-1432
-1670

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT COUNT( * ) * 2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-6338
SELECT COUNT ( * ) * 2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1 + - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + ( - - 84 ) + 34 col0 FROM tab2
----
141
158
176

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT + - COUNT( 73 ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - COUNT( * ) * 16 FROM tab2 cor0 WHERE NOT + col1 IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT - COUNT ( * ) * 16 FROM tab2 cor0 WHERE NOT + col1 IN ( + col1 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6343
SELECT - 84 DIV + - COUNT( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-6343
SELECT - 84 / + - COUNT ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
28

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 14 * - col0 AS col0 FROM tab0 AS cor0
----
-1218
-1358
-210

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

query I rowsort
SELECT - 20 * + 84 AS col0 FROM tab2
----
-1680
-1680
-1680

query I rowsort
SELECT ALL col2 * 46 FROM tab2
----
1058
1840
2668

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + COUNT( * ) * + + 65 * - SUM( DISTINCT - - col2 ) * COUNT( * ) col1 FROM tab1
----
-130455

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6352
SELECT + COUNT ( * ) * + + 65 * - SUM ( DISTINCT - - col2 ) * COUNT ( * ) col1 FROM tab1
----
-130455

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= - col2
----

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT 19 * - col1 * - ( col1 ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT + + 28 / 71 + col0 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL + 98 FROM tab0 AS cor0 WHERE NOT 70 < col0
----
98

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

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

query I rowsort
SELECT DISTINCT col0 + - col2 + - col2 + - col0 AS col1 FROM tab1
----
-118
-136
-192

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

query I rowsort
SELECT DISTINCT - 49 + + ( + 13 ) FROM tab2 AS cor0
----
-36

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6365
SELECT COUNT ( - col1 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6366
SELECT - 22 DIV + CAST( - 3 AS SIGNED ) + + - COUNT( * ) + - CAST( - ( AVG ( 78 ) ) AS SIGNED ) DIV COUNT( * ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-6366
SELECT - 22 / + CAST ( - 3 AS INTEGER ) + + - COUNT ( * ) + - CAST ( - ( AVG ( 78 ) ) AS INTEGER ) / COUNT ( * ) FROM tab0 cor0
----
30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6369
SELECT 57 - COUNT( * ) + + COUNT( * ) DIV + MIN( DISTINCT + 93 ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6369
SELECT 57 - COUNT ( * ) + + COUNT ( * ) / + MIN ( DISTINCT + 93 ) AS col0 FROM tab0
----
54

query I rowsort
SELECT DISTINCT 40 + col1 AS col0 FROM tab2
----
107
117
91

query I rowsort
SELECT + col0 + + 18 FROM tab1 AS cor0
----
103
109
69

query I rowsort
SELECT + col0 * col0 + - col2 + - col0 FROM tab0 AS cor0
----
163
7472
9213

query I rowsort
SELECT + 55 * + col0 + - - col0 FROM tab0 AS cor0
----
4872
5432
840

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

query I rowsort
SELECT + - 51 + + ( 51 ) AS col1 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6376
SELECT + SUM ( ALL - col1 ) col2 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6377
SELECT * FROM tab2 AS cor0 WHERE - 59 + + 23 + + CAST( col1 AS SIGNED ) NOT BETWEEN ( - col0 - CAST( ( CAST( col2 AS DECIMAL ) ) AS DECIMAL ) ) AND ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6377
SELECT * FROM tab2 AS cor0 WHERE - 59 + + 23 + + CAST ( col1 AS INTEGER ) NOT BETWEEN ( - col0 - CAST ( ( CAST ( col2 AS REAL ) ) AS REAL ) ) AND ( col1 )
----

query II rowsort
SELECT ALL col2 * 58, ( - col1 ) AS col1 FROM tab1
----
3422
-5
3944
-47
5568
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 39 ) * + col0 col1 FROM tab1
----
-1989
-3315
-3549

query I rowsort
SELECT ALL + 54 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL > ( + 50 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT - + col0 DIV 76 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6382
SELECT - + col0 / 76 FROM tab0 cor0
----
-1
-1
0

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + + 46 + - col1
----

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

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

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

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

query I rowsort
SELECT DISTINCT + + 77 * col1 FROM tab0 AS cor0
----
1617
6237
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * - 87 col1 FROM tab0
----
-7569
-7569
-7569

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

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

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

query I rowsort
SELECT ALL 70 * - col2 AS col2 FROM tab2
----
-1610
-2800
-4060

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6393
SELECT CAST( NULL AS SIGNED ) * CAST( - + 91 AS SIGNED ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6393
SELECT CAST ( NULL AS INTEGER ) * CAST ( - + 91 AS INTEGER ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

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

skipif mysql # not compatible
query I rowsort label-6394
SELECT 35 * - COUNT ( * ) AS col1 FROM tab1
----
-105

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

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

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

query I rowsort
SELECT 23 * - 64 FROM tab1 AS cor0
----
-1472
-1472
-1472

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6399
SELECT ALL + 72 * SUM( - 12 ) * + 21 AS col1, + MIN( DISTINCT + col1 ) / - COUNT( * ) / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-54432
NULL

skipif mysql # not compatible
query II rowsort label-6399
SELECT ALL + 72 * SUM ( - 12 ) * + 21 AS col1, + MIN ( DISTINCT + col1 ) / - COUNT ( * ) / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-54432
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6401
SELECT ALL CAST( NULL AS DECIMAL ) * - - col2, ( + col1 ) AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6401
SELECT ALL CAST ( NULL AS REAL ) * - - col2, ( + col1 ) AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

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

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

query I rowsort
SELECT ALL + col1 + - + 91 + col1 - col0 - - - col0 AS col2 FROM tab0 AS cor0
----
-223
-283
41

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

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

query I rowsort
SELECT ALL + col2 + + ( + - col0 ) FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT DISTINCT + MAX( + col0 ) - - 50 AS col2 FROM tab2 cor0
----
125

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT + MAX ( + col0 ) - - 50 AS col2 FROM tab2 cor0
----
125

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

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

skipif mysql # not compatible
query I rowsort label-6408
SELECT - CAST ( + - 94 AS REAL ) FROM tab2 cor0 WHERE ( NULL ) NOT IN ( col1 * - col1 )
----

query I rowsort
SELECT - 0 * + col1 + + 68 - col0 AS col2 FROM tab1 AS cor0 WHERE ( + 44 * - + 49 ) IS NULL
----

query I rowsort
SELECT - col1 * + 20 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 + + - 16 AND ( + 69 ) + ( + - 97 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, - col1 + - - 83 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 34 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col2 AS col1, 39 FROM tab0
----
-10
39
-47
39
-99
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 * - + col2 col2 FROM tab1
----
-4800
-4956
-6120

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT - col0 DIV - col1 - - - col0 FROM tab1 AS cor0
----
-48
-68
-90

skipif mysql # not compatible
query I rowsort label-6422
SELECT - col0 / - col1 - - - col0 FROM tab1 AS cor0
----
-48
-68
-90

query II rowsort
SELECT - 16, + 73 + - col2 AS col1 FROM tab2 cor0
----
-16
15
-16
33
-16
50

query I rowsort
SELECT + col1 * + col1 * col2 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT DISTINCT + - col2 * 57 AS col1 FROM tab0 AS cor0
----
-2679
-5643
-570

onlyif mysql # aggregate syntax: 
query II rowsort label-6426
SELECT - 37, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-37
3

skipif mysql # not compatible
query II rowsort label-6426
SELECT - 37, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-37
3

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

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

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

query I rowsort
SELECT 7 * + col1 * - col0 * + col1 FROM tab1
----
-1407133
-14875
-69972

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6431
SELECT DISTINCT - CAST( 10 AS SIGNED ), COUNT( * ) AS col0 FROM tab0
----
-10
3

skipif mysql # not compatible
query II rowsort label-6431
SELECT DISTINCT - CAST ( 10 AS INTEGER ), COUNT ( * ) AS col0 FROM tab0
----
-10
3

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 = - 74
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col2 / col2 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT ALL 0 * MAX( - col1 ) DIV + ( COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL 0 * MAX ( - col1 ) / + ( COUNT ( * ) ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT ALL - ( + 23 ) DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - ( + 23 ) / + col0 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE 48 IN ( - 38 )
----
0

skipif mysql # not compatible
query I rowsort label-6439
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE 48 IN ( - 38 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6441
SELECT DISTINCT - CAST( - col1 AS SIGNED ) col2, col1 + - + ( + - 30 ) + - ( + 86 ) DIV col0 FROM tab0 AS cor0
----
1
31
21
51
81
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6441
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) col2, col1 + - + ( + - 30 ) + - ( + 86 ) / col0 FROM tab0 AS cor0
----
1
31
21
51
81
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT 31 * 86 * COUNT( DISTINCT - col0 ) + - + COUNT( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
7995

skipif mysql # not compatible
query I rowsort label-6442
SELECT 31 * 86 * COUNT ( DISTINCT - col0 ) + - + COUNT ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
7995

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6445
SELECT DISTINCT + col2 DIV + col0 + + CAST( 77 AS SIGNED ) * - 31 AS col1 FROM tab0 AS cor0
----
-2384
-2386
-2387

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT + col2 / + col0 + + CAST ( 77 AS INTEGER ) * - 31 AS col1 FROM tab0 AS cor0
----
-2384
-2386
-2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 * + ( 0 ) col0, 23 AS col2 FROM tab2 cor0
----
0
23
0
23
0
23

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 * - + 69 NOT BETWEEN + 91 AND NULL
----

query I rowsort
SELECT + 6 - + col0 FROM tab2 AS cor0
----
-40
-58
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL - - COUNT( ALL 26 ) col2 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT + col1 - - col2 * col2 AS col1 FROM tab0 AS cor0
----
121
2290
9802

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL - COUNT( ALL - 80 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - COUNT ( ALL - 80 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT + COUNT( * ) + + 88 AS col0 FROM tab2 WHERE + col0 >= NULL
----
88

skipif mysql # not compatible
query I rowsort label-6454
SELECT + COUNT ( * ) + + 88 AS col0 FROM tab2 WHERE + col0 >= NULL
----
88

query II rowsort
SELECT ALL col0 + + col2 AS col0, + col1 AS col2 FROM tab1
----
144
5
147
14
159
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) * col2 * 89 + 25 + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) * col2 * 89 + 25 + - col1 FROM tab1
----
NULL

query I rowsort
SELECT - 20 + + col1 AS col1 FROM tab0
----
-19
1
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT - 4 DIV ( - col1 ) col0 FROM tab0
----
0
0
4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + - 16 + 39 col1 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - - col0 * - col1 - - 75 AS col1 FROM tab2 AS cor0
----
-2271
-4853
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT ALL + + col0 DIV + col2 col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6462
SELECT ALL + + col0 / + col2 col2 FROM tab1 AS cor0
----
0
1
1

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

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

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

skipif mysql # not compatible
query II rowsort label-6464
SELECT - COUNT ( * ), ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
9

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

query I rowsort
SELECT DISTINCT + col1 * col2 + + 42 AS col0 FROM tab2 AS cor0
----
1215
3122
3928

onlyif mysql # DIV for integer division: 
query I rowsort label-6467
SELECT DISTINCT col2 * col2 DIV - col2 + + col1 + + col1 FROM tab1
----
-49
-68
26

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT col2 * col2 / - col2 + + col1 + + col1 FROM tab1
----
-49
-68
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT ALL col0 + + - 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-6468
SELECT ALL col0 + + - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 * + + 3 * + 54 FROM tab2
----
3777
6557
9463

query I rowsort
SELECT DISTINCT - - col0 * + + col1 AS col1 FROM tab2 WHERE + 54 IS NOT NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT - - 11 + COUNT( * ) + SUM( - ( col1 ) ) AS col1 FROM tab0 WHERE + 22 / col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT - - 11 + COUNT ( * ) + SUM ( - ( col1 ) ) AS col1 FROM tab0 WHERE + 22 / col0 IS NULL
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 88 ) BETWEEN + col2 AND 58 / + - col0 + + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE 42 * 89 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE 42 * 89 IS NULL
----
0

query II rowsort
SELECT ALL + - col1 AS col1, - 68 AS col0 FROM tab2 AS cor0
----
-51
-68
-67
-68
-77
-68

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

query II rowsort
SELECT DISTINCT 10 + + 69 AS col0, col2 FROM tab0
----
79
10
79
47
79
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT + 94 * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * col2 NOT BETWEEN - - 86 + - col0 / + 54 AND + - col2 + col1 + + 26
----
0

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT + 94 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * col2 NOT BETWEEN - - 86 + - col0 / + 54 AND + - col2 + col1 + + 26
----
0

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

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

query II rowsort
SELECT - - ( - + col1 ) AS col2, - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT + col2 * + col1 AS col1, + col2, + col0 FROM tab1 AS cor0
----
9 values hashing to 87e016ed96c76da881bbfe1ac2a795aa

query I rowsort
SELECT ALL col2 * + col0 - - ( + col0 ) + ( col1 ) + + col2 + + 51 + + col2 + - + col1 * + - col1 * col2 * + 27 FROM tab2
----
1616473
6406152
7034433

query I rowsort
SELECT DISTINCT ( - col0 ) * - ( + col2 ) AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-6487
SELECT ALL + 21 * - 60 * - - col2 AS col0, col1 + - - ( + - 88 ) DIV - - 72 + col2 AS col0 FROM tab0
----
-124740
99
-12600
30
-59220
127

skipif mysql # not compatible
query II rowsort label-6487
SELECT ALL + 21 * - 60 * - - col2 AS col0, col1 + - - ( + - 88 ) / - - 72 + col2 AS col0 FROM tab0
----
-124740
99
-12600
30
-59220
127

query I rowsort
SELECT - col0 * + - col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT - col2 DIV + - col0 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6489
SELECT - col2 / + - col0 AS col2 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT + ( + MIN( ALL - - CAST( + col1 AS SIGNED ) ) ) * 68 FROM tab2
----
3468

skipif mysql # not compatible
query I rowsort label-6490
SELECT + ( + MIN ( ALL - - CAST ( + col1 AS INTEGER ) ) ) * 68 FROM tab2
----
3468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 55 ) col0 FROM tab0
----
-55
-55
-55

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

query I rowsort
SELECT DISTINCT 65 FROM tab0 AS cor0 WHERE NULL >= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT ALL - - col0 DIV - col0 + + col2 * - + col0 FROM tab0 AS cor0
----
-706
-871
-9604

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - - col0 / - col0 + + col2 * - + col0 FROM tab0 AS cor0
----
-706
-871
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - MAX( DISTINCT col2 ) * - 36 FROM tab1 AS cor0
----
3456

skipif mysql # not compatible
query I rowsort label-6496
SELECT - MAX ( DISTINCT col2 ) * - 36 FROM tab1 AS cor0
----
3456

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

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT MAX ( DISTINCT - 80 ) FROM tab0 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6498
SELECT - col0 DIV col1 + + + col1 * + CAST( + 57 AS SIGNED ) FROM tab1 AS cor0
----
2678
268
795

skipif mysql # not compatible
query I rowsort label-6498
SELECT - col0 / col1 + + + col1 * + CAST ( + 57 AS INTEGER ) FROM tab1 AS cor0
----
2678
268
795

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT ( - - 78 ) DIV - col1 col1 FROM tab1 cor0
----
-1
-15
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6499
SELECT ( - - 78 ) / - col1 col1 FROM tab1 cor0
----
-1
-15
-5

query I rowsort
SELECT + 76 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-1586
-6109
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT ALL 28 DIV col2 + + col0 + + col0 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL 28 / col2 + + col0 + + col0 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL 20 + - col1 FROM tab2
----
-31
-47
-57

query I rowsort
SELECT DISTINCT + 19 + - ( - + col1 ) AS col1 FROM tab1
----
24
33
66

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

query I rowsort
SELECT ALL + 93 * + col0 * - 15 + - col0 AS col1 FROM tab0
----
-121452
-135412
-20940

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

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col0
----
2

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

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

query I rowsort
SELECT ( - col0 ) * ( + + 3 ) * col0 FROM tab1
----
-21675
-24843
-7803

query I rowsort
SELECT 11 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT MIN( DISTINCT 15 ) - - 96 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT MIN ( DISTINCT 15 ) - - 96 FROM tab0
----
111

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

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

query II rowsort
SELECT DISTINCT + 6 + + col0 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
103
-1
21
-81
93
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + MIN( DISTINCT 33 ) FROM tab1 AS cor0 WHERE - 3 + + + 50 IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-6515
SELECT + MIN ( DISTINCT 33 ) FROM tab1 AS cor0 WHERE - 3 + + + 50 IS NOT NULL
----
33

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

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

query I rowsort
SELECT DISTINCT 68 - col0 + col2 FROM tab1 AS cor0
----
113
42
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT - - col1 + col0 - + - 14 + - CAST( NULL AS SIGNED ) / 74 + 21 AS col1 FROM tab1 cor0 WHERE NULL <> col1
----

skipif mysql # not compatible
query I rowsort label-6518
SELECT - - col1 + col0 - + - 14 + - CAST ( NULL AS INTEGER ) / 74 + 21 AS col1 FROM tab1 cor0 WHERE NULL <> col1
----

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

query I rowsort
SELECT DISTINCT - col2 - + + 31 FROM tab2 AS cor0
----
-54
-71
-89

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + + ( - - col1 ) * - 2 + - col1 < + col0 / + + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query II rowsort label-6523
SELECT + - col0 AS col0, 68 * + CAST ( NULL AS INTEGER ) + - 37 AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT DISTINCT - 28 * - col0 AS col0 FROM tab2 AS cor0
----
1288
1792
2100

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6525
SELECT + col0 / - + col1 AS col1, col0 col2 FROM tab2
----
-1
75
0
46
0
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ( - 70 ) * COUNT( * ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-6526
SELECT ( - 70 ) * COUNT ( * ) FROM tab0
----
-210

query I rowsort
SELECT ALL + 86 * - + 73 FROM tab0
----
-6278
-6278
-6278

query I rowsort
SELECT ALL col2 * 66 FROM tab0
----
3102
6534
660

query III rowsort
SELECT * FROM tab2 WHERE NOT 79 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6530
SELECT - 9 DIV + - col0 AS col2, col0 * col2 FROM tab0 cor0
----
0
705
0
870
0
9603

skipif mysql # not compatible
query II rowsort label-6530
SELECT - 9 / + - col0 AS col2, col0 * col2 FROM tab0 cor0
----
0
705
0
870
0
9603

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 14 * - col0 AS col1 FROM tab1
----
1190
1274
714

query I rowsort
SELECT + 5 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + - COUNT( * ) * COUNT( * ) + ( + + 95 ) AS col1 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6537
SELECT + - COUNT ( * ) * COUNT ( * ) + ( + + 95 ) AS col1 FROM tab1 AS cor0
----
86

query I rowsort
SELECT + + col1 + - col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 < ( 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL - - COUNT( * ) * - 57 + - MAX( ALL col2 ) FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - - COUNT ( * ) * - 57 + - MAX ( ALL col2 ) FROM tab1 AS cor0
----
-267

query II rowsort
SELECT DISTINCT + - 39 AS col1, + 89 * 68 FROM tab2 AS cor0
----
-39
6052

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( + ( - col2 ) ) * - - col2 * + col1 - - 10 + 3 * + + col1 BETWEEN NULL AND ( + col0 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6544
SELECT ALL + col1 col2 FROM tab1 WHERE ( NOT - CAST ( + col2 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) = + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - - COUNT( ALL - - 81 ) FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6545
SELECT - - COUNT ( ALL - - 81 ) FROM tab2 WHERE + col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL col0 * - col1 * + col0 + + col1 FROM tab2
----
-107865
-315315
-376808

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

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

query I rowsort
SELECT ALL + 3 + + 85 AS col2 FROM tab1
----
88
88
88

query I rowsort
SELECT DISTINCT + col0 - - col0 + + + col1 * - col1 - - col2 AS col2 FROM tab0 AS cor0
----
-257
-6484
292

query I rowsort
SELECT ( 29 ) AS col0 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL 17 * + col0 - - + col2 * - col1 FROM tab2 AS cor0
----
-1992
-2611
-391

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6552
SELECT * FROM tab2 AS cor0 WHERE CAST( - col0 AS SIGNED ) BETWEEN NULL AND + col1 * - 10 / + ( - 81 )
----

skipif mysql # not compatible
query III rowsort label-6552
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col0 AS INTEGER ) BETWEEN NULL AND + col1 * - 10 / + ( - 81 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 71 + - col1 - - 44 + + + col1 + - col2 - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + - 14 FROM tab2 AS cor0
----
37
53
63

query II rowsort
SELECT - 34, - ( + - col1 ) * - - 39 AS col1 FROM tab0 AS cor0
----
-34
3159
-34
39
-34
819

query I rowsort
SELECT ALL + + 32 FROM tab0 AS cor0
----
32
32
32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * + - 11 col2 FROM tab2 cor0
----
-440
-440
-440

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - - - 10 NOT BETWEEN 57 + - col1 AND ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-6560
SELECT - MIN ( + + 31 ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT - 22 * + - col1 AS col2 FROM tab1 AS cor0
----
1034
110
308

query I rowsort
SELECT col2 * 69 AS col1 FROM tab1
----
4071
4692
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT + COUNT( * ) * + MAX( col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-6563
SELECT + COUNT ( * ) * + MAX ( col0 ) FROM tab1
----
273

query II rowsort
SELECT ALL + col2, 97 + + - col1 + 9 AS col0 FROM tab0
----
10
85
47
25
99
105

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

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

query II rowsort
SELECT - col0, + ( + col2 ) FROM tab2
----
-46
23
-64
40
-75
58

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

skipif mysql # not compatible
query II rowsort label-6568
SELECT ALL + col2, col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + col1 ) <= + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, - 90 AS col1 FROM tab2 AS cor0
----
23
-90
40
-90
58
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6571
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( col0 AS DECIMAL ) * + col1 NOT BETWEEN + - col2 AND - 31 * + col0 + - col1
----

skipif mysql # not compatible
query III rowsort label-6571
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( col0 AS REAL ) * + col1 NOT BETWEEN + - col2 AND - 31 * + col0 + - col1
----

query I rowsort
SELECT DISTINCT - col1 * - col1 - col0 FROM tab0 AS cor0
----
-96
354
6546

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL - - COUNT( * ) * 4 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL - - COUNT ( * ) * 4 FROM tab2 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-6574
SELECT DISTINCT col0 DIV + + col0, - col2 + - 50 col1 FROM tab1
----
1
-109
1
-118
1
-146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6574
SELECT DISTINCT col0 / + + col0, - col2 + - 50 col1 FROM tab1
----
1
-109
1
-118
1
-146

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

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

query I rowsort
SELECT ALL + 14 FROM tab1 AS cor0 WHERE - 69 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT ALL CAST( + col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL CAST ( + col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
100
2209
9801

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

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

query II rowsort
SELECT ALL + 6 * - col1, + 36 AS col2 FROM tab2 cor0
----
-306
36
-402
36
-462
36

query I rowsort
SELECT - 67 AS col1 FROM tab0 cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT + + COUNT( 2 ) col0, 26 FROM tab1 AS cor0
----
3
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6581
SELECT + + COUNT ( 2 ) col0, 26 FROM tab1 AS cor0
----
3
26

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6583
SELECT ALL + COUNT( * ) DIV COUNT( * ) * + SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + COUNT ( * ) / COUNT ( * ) * + SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - 69 + + + col2 FROM tab2
----
-11
-29
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + COUNT( * ) + 25 * ( - - 69 ) FROM tab0
----
1728

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + COUNT ( * ) + 25 * ( - - 69 ) FROM tab0
----
1728

query I rowsort
SELECT col0 + 3 * + col2 AS col2 FROM tab2 AS cor0
----
115
184
249

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

query I rowsort
SELECT DISTINCT + ( 38 ) - col0 FROM tab1 AS cor0
----
-13
-47
-53

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6589
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + CAST ( NULL AS INTEGER )
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL >= NULL
----

query II rowsort
SELECT ALL 49 AS col0, col2 + - col2 AS col2 FROM tab2
----
49
0
49
0
49
0

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6601
SELECT + ( + 71 ), + COUNT ( * ) col2 FROM tab2
----
71
3

query I rowsort
SELECT DISTINCT 52 * 67 FROM tab2
----
3484

query II rowsort
SELECT DISTINCT + 36, 29 * + 24 * - 44 AS col1 FROM tab0 AS cor0
----
36
-30624

query I rowsort
SELECT - - col1 + - + 77 FROM tab0 AS cor0
----
-56
-76
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT DISTINCT - col2 DIV - + 40 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT - col2 / - + 40 FROM tab0 AS cor0
----
0
1
2

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * + col2 * 62 + + col0 / - col0 * + - col2 * + - col1 >= col1
----

query I rowsort
SELECT + 24 * + 19 + + col1 FROM tab1 AS cor0
----
461
470
503

query I rowsort
SELECT ALL col2 * + col0 FROM tab1 AS cor0 WHERE NOT 15 <> + + col1 / col0 * - - col2 + + col1
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT + MAX( ALL - + 38 ) DIV + - COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6611
SELECT + MAX ( ALL - + 38 ) / + - COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT DISTINCT + 8 + + - 40 AS col2 FROM tab0
----
-32

query III rowsort
SELECT * FROM tab1 WHERE + - col1 <= + + 63 * - - ( - col0 )
----

query II rowsort
SELECT DISTINCT col0 + + 57, col0 FROM tab0
----
144
87
154
97
72
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 84 < NULL AND NOT ( NULL ) < + 41
----

query I rowsort
SELECT DISTINCT 22 * + + col0 FROM tab0
----
1914
2134
330

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + + MIN( - col1 ) FROM tab0 WHERE NOT 52 BETWEEN col2 AND + + 60
----
-1

skipif mysql # not compatible
query I rowsort label-6618
SELECT + + MIN ( - col1 ) FROM tab0 WHERE NOT 52 BETWEEN col2 AND + + 60
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL + 20 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL + 20 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1, 45 * - col2 + - col1 col0 FROM tab0 AS cor0
----
1
-4456
21
-471
81
-2196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + MAX( col0 ) col1 FROM tab0 cor0
----
97

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

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

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

skipif mysql # not compatible
query I rowsort label-6625
SELECT + MAX ( DISTINCT + col0 ) AS col2 FROM tab0
----
97

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

query I rowsort
SELECT DISTINCT + 4 * - 81 - 47 * + + 71 FROM tab2 AS cor0
----
-3661

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

skipif mysql # not compatible
query I rowsort label-6628
SELECT - 68 / + col2 FROM tab1 cor0
----
-1
-1
0

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

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

query I rowsort
SELECT col2 + + + col1 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6631
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + - ( + col1 ) AS col1, - col1 + - - col0 AS col1 FROM tab1
----
NULL
37
NULL
44
NULL
80

skipif mysql # not compatible
query II rowsort label-6631
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - ( + col1 ) AS col1, - col1 + - - col0 AS col1 FROM tab1
----
NULL
37
NULL
44
NULL
80

query I rowsort
SELECT + 55 FROM tab0, tab2 AS cor0 WHERE + 73 IS NOT NULL
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT + CAST( NULL AS SIGNED ) + - AVG ( - col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT + CAST ( NULL AS INTEGER ) + - AVG ( - col1 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 19 + - + 30 * + col0 FROM tab2
----
-1399
-1939
-2269

query I rowsort
SELECT DISTINCT - col2 * + ( + col0 ) + - col1 - + col1 * col1 FROM tab2
----
-3710
-8566
-8906

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col1 col0, col2 - - ( + col1 ) col2 FROM tab2
----
-2601
74
-4489
125
-5929
117

query I rowsort
SELECT - col0 * col2 + - col1 - col2 - + col2 * 39 FROM tab2 WHERE NOT ( + + col2 ) IS NULL
----
-2029
-4237
-6737

query I rowsort
SELECT 24 * - + col2 FROM tab0
----
-1128
-2376
-240

query II rowsort
SELECT + 44 * + 34, + 84 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT ALL col0 * - - 61 AS col0, - col2 FROM tab2 AS cor0
----
2806
-23
3904
-40
4575
-58

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

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

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT - 27 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + - 83 AS col1 FROM tab1
----
-36
-69
-78

query I rowsort
SELECT - 65 * col2 + + col1 FROM tab2
----
-1444
-2523
-3703

query I rowsort
SELECT - 92 + + - ( - col1 ) FROM tab2
----
-15
-25
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 71, + col0 col0 FROM tab1
----
71
51
71
85
71
91

query I rowsort
SELECT DISTINCT + 20 + + 93 + + - 37 AS col0 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT - COUNT( * ), MAX( - col2 ) AS col1 FROM tab1
----
-3
-59

skipif mysql # not compatible
query II rowsort label-6651
SELECT - COUNT ( * ), MAX ( - col2 ) AS col1 FROM tab1
----
-3
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 4 + + col1 * - col2 < + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT + + COUNT( * ) * + + 8 AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6653
SELECT + + COUNT ( * ) * + + 8 AS col2 FROM tab1 AS cor0
----
24

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

query II rowsort
SELECT 15 + col2, col0 FROM tab0
----
114
97
25
87
62
15

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT - + 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT - 25 + - COUNT( * ) + 32 AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6657
SELECT - 25 + - COUNT ( * ) + 32 AS col1 FROM tab2
----
4

query I rowsort
SELECT ALL col2 + - + col0 FROM tab0
----
-77
2
32

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

query I rowsort
SELECT ALL + + col1 - - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6661
SELECT DISTINCT - - col1 * + + col2 + col0 * - col1, + CAST( + + 44 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - 29 + + 51 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6661
SELECT DISTINCT - - col1 * + + col2 + col0 * - col1, + CAST ( + + 44 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - 29 + + 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6662
SELECT ALL + col1 + CAST( NULL AS SIGNED ) + + + 52 * - col2 * col1 col1, 50 FROM tab2
----
NULL
50
NULL
50
NULL
50

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

query I rowsort
SELECT + 64 * + col0 AS col1 FROM tab1
----
3264
5440
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - SUM( ALL - + col0 ) * - 21 FROM tab1
----
-4767

skipif mysql # not compatible
query I rowsort label-6664
SELECT - SUM ( ALL - + col0 ) * - 21 FROM tab1
----
-4767

query I rowsort
SELECT - col0 - - 19 AS col2 FROM tab1
----
-32
-66
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-6666
SELECT ALL + 42, - MIN( ALL - 39 ) AS col0 FROM tab0
----
42
39

skipif mysql # not compatible
query II rowsort label-6666
SELECT ALL + 42, - MIN ( ALL - 39 ) AS col0 FROM tab0
----
42
39

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

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

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

query I rowsort
SELECT DISTINCT - + 31 * + - 50 AS col2 FROM tab1 AS cor0
----
1550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NOT 79 NOT BETWEEN NULL AND - col2 * + + col0 * + + col1 * + + 56
----

query II rowsort
SELECT ALL + col1 AS col1, + 68 AS col2 FROM tab2 cor0
----
51
68
67
68
77
68

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

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

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

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

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

query I rowsort
SELECT ALL + 22 * + col0 AS col1 FROM tab2 AS cor0
----
1012
1408
1650

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

query I rowsort
SELECT ALL + 4 + + + col0 AS col0 FROM tab0
----
101
19
91

query I rowsort
SELECT - 83 AS col0 FROM tab0 WHERE ( NOT - ( + col2 ) IS NOT NULL )
----

query I rowsort
SELECT + 78 + - 1 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT ALL + - col2 * - 61 AS col1 FROM tab2 AS cor0
----
1403
2440
3538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6682
SELECT DISTINCT - CAST( - 56 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
-2632
-5544
-560

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT - CAST ( - 56 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
-2632
-5544
-560

query II rowsort
SELECT + 24 AS col2, 51 FROM tab1 AS cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT ALL + 52 * - - col2 FROM tab2 AS cor0
----
1196
2080
3016

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

query I rowsort
SELECT ALL + 48 + - + 19 + col2 * + col2 AS col0 FROM tab0
----
129
2238
9830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 13 AS col0, + 24 col1 FROM tab2 AS cor0
----
13
24
13
24
13
24

query I rowsort
SELECT DISTINCT + col0 - - col2 FROM tab1 cor0
----
144
147
159

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

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

query I rowsort
SELECT + + col2 - col1 * + 96 - + col1 + + col0 * + 5 FROM tab0 AS cor0
----
-1592
-7735
487

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL 28 - - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL 28 - - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 68 * col1 * 88 col0 FROM tab1 AS cor0
----
281295
29925
83790

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

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

query I rowsort
SELECT + - col2 - + + col1 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

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

query II rowsort
SELECT ALL + col1 + + - 45, col1 FROM tab0
----
-24
21
-44
1
36
81

query I rowsort
SELECT DISTINCT - - ( col2 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col1 * + 19 * + col0 AND + - 16 / + - col2 + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6698
SELECT col0, 71 - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6698
SELECT col0, 71 - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - - 86 AS col2 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT + 47 * + col0 FROM tab0
----
4089
4559
705

query I rowsort
SELECT ALL - 28 FROM tab0, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL - ( + 20 ) AS col0 FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - col0 + + col0 - - col2 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT DISTINCT + col1 DIV + 24 AS col2 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + col1 / + 24 AS col2 FROM tab2 AS cor0
----
2
3

query I rowsort
SELECT ALL - 99 * ( + col0 ) + col1 AS col0 FROM tab2 AS cor0
----
-4503
-6259
-7358

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

query I rowsort
SELECT DISTINCT col2 * - col0 * - + col2 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT - col1 * + col1 + + + col2 + 84 - 49 AS col1 FROM tab0
----
-396
-6479
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT DISTINCT - 43 DIV ( 56 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - 43 / ( 56 ) FROM tab0
----
0

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

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

query I rowsort
SELECT DISTINCT 32 + + col1 + - - 0 AS col0 FROM tab1
----
37
46
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * + 68 * 80 col2 FROM tab0
----
255680
538560
54400

query I rowsort
SELECT 59 * + - col2 FROM tab2
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT DISTINCT + 26 col0, MAX( 24 ) FROM tab2
----
26
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6714
SELECT DISTINCT + 26 col0, MAX ( 24 ) FROM tab2
----
26
24

query I rowsort
SELECT ALL col0 * + col0 * + ( 22 ) * + 40 FROM tab2
----
1862080
3604480
4950000

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= - - col2
----
15
81
47
97
1
99

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

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - col0 / - col0 AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT + MAX( DISTINCT - 41 ) + 32 * + 97 AS col1 FROM tab2
----
3063

skipif mysql # not compatible
query I rowsort label-6719
SELECT + MAX ( DISTINCT - 41 ) + 32 * + 97 AS col1 FROM tab2
----
3063

query I rowsort
SELECT - col1 + col0 * - + col0 * 85 FROM tab0
----
-19206
-643386
-799766

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT - + 77 * - + COUNT( * ) + + 93 - + MIN( - col0 ) FROM tab2 cor0
----
399

skipif mysql # not compatible
query I rowsort label-6721
SELECT - + 77 * - + COUNT ( * ) + + 93 - + MIN ( - col0 ) FROM tab2 cor0
----
399

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 71 + + col0 BETWEEN + + col2 AND + col0 * - 77
----

query I rowsort
SELECT - col2 + - 20 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-43
-60
-78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT + 78 * + COUNT( * ) * 41 FROM tab2 AS cor0
----
9594

skipif mysql # not compatible
query I rowsort label-6725
SELECT + 78 * + COUNT ( * ) * 41 FROM tab2 AS cor0
----
9594

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

query I rowsort
SELECT - 86 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
4482
7369
7894

query I rowsort
SELECT 43 * col0 AS col0 FROM tab1
----
2193
3655
3913

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6732
SELECT ALL - 27 AS col1, CAST( NULL AS SIGNED ) * ( + 21 ) / col0 + - + 88 + + + 83 + - - 83 * - col1 + - col0 * ( 77 ) FROM tab2 AS cor0
----
-27
NULL
-27
NULL
-27
NULL

skipif mysql # not compatible
query II rowsort label-6732
SELECT ALL - 27 AS col1, CAST ( NULL AS INTEGER ) * ( + 21 ) / col0 + - + 88 + + + 83 + - - 83 * - col1 + - col0 * ( 77 ) FROM tab2 AS cor0
----
-27
NULL
-27
NULL
-27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT col2 AS col0 FROM tab1 WHERE ( col2 * - 92 ) BETWEEN col2 + + col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6733
SELECT col2 AS col0 FROM tab1 WHERE ( col2 * - 92 ) BETWEEN col2 + + col2 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT ALL - CAST( + 85 AS SIGNED ) FROM tab0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - CAST ( + 85 AS INTEGER ) FROM tab0
----
-85
-85
-85

query I rowsort
SELECT ALL col2 * col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 / + col0 ) NOT IN ( col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6737
SELECT + MIN ( + 48 ) AS col1 FROM tab1
----
48

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) = + 28
----

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

query I rowsort
SELECT col1 - ( - col2 ) * col0 AS col1 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL SUM( DISTINCT - 5 ) AS col0 FROM tab1 WHERE NULL BETWEEN 96 AND col0 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL SUM ( DISTINCT - 5 ) AS col0 FROM tab1 WHERE NULL BETWEEN 96 AND col0 + - col2
----
NULL

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

query I rowsort
SELECT DISTINCT 72 + - 74 * + 26 FROM tab1 WHERE NOT col2 >= - col2
----

query I rowsort
SELECT ALL 0 * - 78 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 37 IS NOT NULL
----

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

query I rowsort
SELECT ALL col1 * 50 AS col1 FROM tab0
----
1050
4050
50

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT DISTINCT CAST( ( - 14 ) AS SIGNED ) * - 40 AS col1 FROM tab0
----
560

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT CAST ( ( - 14 ) AS INTEGER ) * - 40 AS col1 FROM tab0
----
560

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

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT + 56 + COUNT ( * ) FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT - COUNT( * ) * 91 AS col1 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - COUNT ( * ) * 91 AS col1 FROM tab2
----
-273

query I rowsort
SELECT 98 * - 99 AS col1 FROM tab2
----
-9702
-9702
-9702

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

query I rowsort
SELECT DISTINCT ( + 9 ) * + 98 FROM tab1
----
882

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

query I rowsort
SELECT DISTINCT - col2 + - 51 AS col0 FROM tab1
----
-110
-119
-147

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

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

query I rowsort
SELECT col0 * col2 FROM tab1 WHERE col1 * + col1 IS NOT NULL
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6761
SELECT DISTINCT * FROM tab1 WHERE - col1 > + CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-6761
SELECT DISTINCT * FROM tab1 WHERE - col1 > + CAST ( NULL AS INTEGER ) * - col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6763
SELECT ALL CAST( - 93 AS SIGNED ) + col2 col0 FROM tab0 AS cor0
----
-46
-83
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6763
SELECT ALL CAST ( - 93 AS INTEGER ) + col2 col0 FROM tab0 AS cor0
----
-46
-83
6

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

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

query I rowsort
SELECT DISTINCT - col2 - 27 AS col2 FROM tab2 AS cor0
----
-50
-67
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6766
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE 79 BETWEEN ( CAST( + 17 AS SIGNED ) * + col1 ) AND col0
----

skipif mysql # not compatible
query I rowsort label-6766
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE 79 BETWEEN ( CAST ( + 17 AS INTEGER ) * + col1 ) AND col0
----

query I rowsort
SELECT - col2 * - 79 + - col0 FROM tab0 cor0
----
3698
703
7724

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

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

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

query I rowsort
SELECT DISTINCT + 72 + - col1 FROM tab0
----
-9
51
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT + + CAST( - ( + 77 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-6772
SELECT + + CAST ( - ( + 77 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

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

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

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

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + col1 / + 84 AS col1 FROM tab0 AS cor0
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - COUNT ( * ) * + 87 AS col2 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT col0 * ( 78 ) FROM tab2 cor0
----
3588
4992
5850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - + 78 col2 FROM tab2
----
-936
-936
-936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) > ( 73 )
----

skipif mysql # not compatible
query I rowsort label-6779
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) > ( 73 )
----

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

query I rowsort
SELECT ALL 43 AS col2 FROM tab1 WHERE NOT - 52 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT - 34 DIV + col1 col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6782
SELECT - 34 / + col1 col1 FROM tab1
----
-2
-6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT + 82 DIV + - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6783
SELECT + 82 / + - col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT - COUNT( col1 ) * 53 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT - COUNT ( col1 ) * 53 FROM tab1
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT - - 89 DIV 48 + - col0 AS col0 FROM tab0 cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-6785
SELECT - - 89 / 48 + - col0 AS col0 FROM tab0 cor0
----
-14
-86
-96

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

query II rowsort
SELECT col2, col0 * 93 * 81 FROM tab1
----
59
640305
68
685503
96
384183

query I rowsort
SELECT ALL - 84 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT - COUNT( 25 ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 42 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - COUNT ( 25 ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 42 > NULL
----
0

query I rowsort
SELECT - + 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # DIV for integer division: 
query II rowsort label-6791
SELECT 60 AS col1, - col1 DIV + col1 AS col1 FROM tab0
----
60
-1
60
-1
60
-1

skipif mysql # not compatible
query II rowsort label-6791
SELECT 60 AS col1, - col1 / + col1 AS col1 FROM tab0
----
60
-1
60
-1
60
-1

query I rowsort
SELECT col0 * + 54 FROM tab2
----
2484
3456
4050

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( 73 )
----

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

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

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

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

query I rowsort
SELECT col1 + 60 AS col0 FROM tab1 AS cor0
----
107
65
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT DISTINCT + 87, + COUNT( * ) col2 FROM tab0 AS cor0
----
87
3

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 48 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT - 50 * - + SUM( DISTINCT + 50 ) AS col1 FROM tab2
----
2500

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - 50 * - + SUM ( DISTINCT + 50 ) AS col1 FROM tab2
----
2500

query I rowsort
SELECT DISTINCT + col2 + - - 76 FROM tab1
----
135
144
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT MIN( + + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6801
SELECT MIN ( + + col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT 50 * + 54 FROM tab0 WHERE NULL > ( + - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL COUNT( * ) + + 84 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL COUNT ( * ) + + 84 FROM tab0
----
87

query I rowsort
SELECT - 25 * - col1 FROM tab1 WHERE + ( + col1 ) + - col1 IS NOT NULL
----
1175
125
350

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 25 > ( col1 )
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL COUNT( * ) * + 18 FROM tab0 cor0
----
54

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL COUNT ( * ) * + 18 FROM tab0 cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 94, + col1 * - + 16 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6813
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - 63 > + 39 * 85
----

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - 63 > + 39 * 85
----

query I rowsort
SELECT - col1 * - - 77 AS col0 FROM tab1
----
-1078
-3619
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL - 15 * - COUNT( * ) col0 FROM tab1
----
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT DISTINCT col1 DIV - + col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT col1 / - + col1 FROM tab2
----
-1

query I rowsort
SELECT ALL col2 * + - 0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * 83 FROM tab1
----
4897
5644
7968

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

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL > ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6820
SELECT col0 AS col2, + col1 * - + CAST( + - col1 AS SIGNED ) * 5 col1 FROM tab0 AS cor0
----
15
32805
87
2205
97
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6820
SELECT col0 AS col2, + col1 * - + CAST ( + - col1 AS INTEGER ) * 5 col1 FROM tab0 AS cor0
----
15
32805
87
2205
97
5

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

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

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

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

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

query I rowsort
SELECT ALL col1 * col0 + + 64 AS col2 FROM tab1
----
4341
489
778

query I rowsort
SELECT DISTINCT + 12 + - col0 FROM tab0
----
-3
-75
-85

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6829
SELECT + + CAST ( - col1 AS INTEGER ) / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - 18 - + + COUNT( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6830
SELECT - 18 - + + COUNT ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-21

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

query I rowsort
SELECT + - 99 - col2 FROM tab1 cor0
----
-158
-167
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT DISTINCT - + 72 DIV 99 + - - col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - + 72 / 99 + - - col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE ( + 75 ) <= - 75
----

query I rowsort
SELECT + 83 - - - ( - 98 ) FROM tab1
----
181
181
181

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 + + col0 col1 FROM tab2
----
113
124
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6838
SELECT 87 * CAST( NULL AS SIGNED ) FROM tab0 WHERE - col0 NOT IN ( + col0 + - 78 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6838
SELECT 87 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col0 NOT IN ( + col0 + - 78 )
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - + col1 - - + col0 AND + ( 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - 92
----

query I rowsort
SELECT ALL - col1 - 76 AS col1 FROM tab0
----
-157
-77
-97

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col2 FROM tab0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT + MAX( ALL col2 ) + - - SUM( + col0 ) * - 91 AS col0 FROM tab0
----
-18010

skipif mysql # not compatible
query I rowsort label-6843
SELECT + MAX ( ALL col2 ) + - - SUM ( + col0 ) * - 91 AS col0 FROM tab0
----
-18010

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

query I rowsort
SELECT DISTINCT col0 - - - col2 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT col2 AS col1, 77 + - - col1 FROM tab0 AS cor0
----
10
98
47
158
99
78

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 80 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + 5 AS col1 FROM tab0 WHERE NOT NULL IN ( + 84 * - col0, - ( + 6 ) + - col2 + + 94 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6849
SELECT 15 DIV + + COUNT( col1 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-6849
SELECT 15 / + + COUNT ( col1 ) FROM tab2
----
5

query I rowsort
SELECT - 63 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT + MIN( ALL + col0 ) col2, - COUNT( * ) * + MAX( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
46
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6851
SELECT + MIN ( ALL + col0 ) col2, - COUNT ( * ) * + MAX ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
46
-231

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT DISTINCT - + col1 DIV + 20 AS col0 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT - + col1 / + 20 AS col0 FROM tab0 AS cor0
----
-1
-4
0

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

query II rowsort
SELECT ALL col2 * col2 * col2, + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col2 ) * + 89 col0, col0 AS col2 FROM tab2
----
-2047
46
-3560
64
-5162
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6859
SELECT + + 4 AS col1, COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
4
3

skipif mysql # not compatible
query II rowsort label-6859
SELECT + + 4 AS col1, COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
4
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT DISTINCT 55 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT 55 / col2 FROM tab1
----
0

query I rowsort
SELECT - 95 * col0 FROM tab1
----
-4845
-8075
-8645

query I rowsort
SELECT ALL - ( + 26 ) + - 78 + + - 17 + + col2 AS col2 FROM tab0
----
-111
-22
-74

query I rowsort
SELECT ALL - 0 * col2 * - col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT DISTINCT MIN( DISTINCT col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT col2 DIV + 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT col2 / + 93 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT + COUNT( * ) * + - ( + 35 ) * - COUNT( * ) AS col1 FROM tab2
----
315

skipif mysql # not compatible
query I rowsort label-6866
SELECT + COUNT ( * ) * + - ( + 35 ) * - COUNT ( * ) AS col1 FROM tab2
----
315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6867
SELECT + 59 DIV + COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6867
SELECT + 59 / + COUNT ( * ) FROM tab0 AS cor0
----
19

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6869
SELECT ( - + 23 ) * + + col1 + + 71 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT ( - + 23 ) * + + col1 + + 71 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 71 * + 48 + + + 83 - + - 76 FROM tab1 AS cor0
----
3567
3567
3567

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + 68 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6874
SELECT ALL + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 )
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * + - 1 col2 FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6877
SELECT ALL + 42 DIV + + MIN( + - col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + 42 / + + MIN ( + - col1 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT - MIN( DISTINCT + 41 ) col2 FROM tab1, tab0 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6878
SELECT - MIN ( DISTINCT + 41 ) col2 FROM tab1, tab0 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 col0, 86 AS col2 FROM tab1
----
4896
86
5015
86
6188
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT + COUNT( - col2 ) * + + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6880
SELECT + COUNT ( - col2 ) * + + COUNT ( * ) AS col0 FROM tab0
----
9

query II rowsort
SELECT - 13 - + col0, col1 * - col2 + + - ( 95 ) AS col1 FROM tab1
----
-104
-3291
-64
-1439
-98
-390

query I rowsort
SELECT ALL - col1 * - - col1 - - - col1 - + + 84 FROM tab0 cor0
----
-546
-6726
-86

query II rowsort
SELECT 83 - - - 99 AS col0, + col1 * + 46 AS col2 FROM tab2 cor0
----
-16
2346
-16
3082
-16
3542

query I rowsort
SELECT - col0 + + + col1 FROM tab0 AS cor0 WHERE + 92 > + col1 / - + col2
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6885
SELECT ALL COUNT( * ) - - COUNT( * ) AS col2, - MIN( col0 ) + + - 27 AS col0 FROM tab0 AS cor0
----
6
-42

skipif mysql # not compatible
query II rowsort label-6885
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col2, - MIN ( col0 ) + + - 27 AS col0 FROM tab0 AS cor0
----
6
-42

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT + 97 DIV + + 67 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6889
SELECT + 97 / + + 67 AS col1 FROM tab0
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL + MIN( DISTINCT ( 71 ) ) * + COUNT( * ) + + 36 AS col2 FROM tab1 cor0
----
249

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + MIN ( DISTINCT ( 71 ) ) * + COUNT ( * ) + + 36 AS col2 FROM tab1 cor0
----
249

query I rowsort
SELECT ALL - 92 * - col1 * - + col1 - + col2 FROM tab0 cor0
----
-191
-40582
-603659

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT col2 * - 38 + + ( + col2 ) < + + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT col2 * - 38 + + ( + col2 ) < + + CAST ( col1 AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - SUM( ALL + 79 ) FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-6897
SELECT - SUM ( ALL + 79 ) FROM tab1 AS cor0
----
-237

query II rowsort
SELECT col2, 75 AS col0 FROM tab1 AS cor0
----
59
75
68
75
96
75

query II rowsort
SELECT DISTINCT - col0 * - col1 * col0 AS col0, col1 FROM tab1 AS cor0
----
36125
5
36414
14
389207
47

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

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

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

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

query I rowsort
SELECT + col2 * - 86 AS col2 FROM tab1
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) + - SUM( ALL - - col0 ) - 13 AS col1 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) + - SUM ( ALL - - col0 ) - 13 AS col1 FROM tab1
----
-240

query I rowsort
SELECT ALL + + 52 + - + col2 AS col0 FROM tab0 WHERE NULL < col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL SUM( ALL + - col2 ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6905
SELECT ALL SUM ( ALL + - col2 ) col1 FROM tab1
----
-223

query I rowsort
SELECT DISTINCT col1 + - 33 FROM tab2
----
18
34
44

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab0 WHERE + 44 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + 70 col1 FROM tab1 AS cor0
----
23
56
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT - + SUM( + 95 ) - - + COUNT( * ) col2 FROM tab1 AS cor0
----
-282

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT - MIN( col0 ) - + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6911
SELECT - MIN ( col0 ) - + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT - 71 - col1 + - 3 + - + col2 DIV col0 DIV col2 FROM tab0 AS cor0
----
-155
-75
-95

skipif mysql # not compatible
query I rowsort label-6912
SELECT - 71 - col1 + - 3 + - + col2 / col0 / col2 FROM tab0 AS cor0
----
-155
-75
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND - col1 / 43
----

query I rowsort
SELECT + col0 - - ( - 85 ) AS col0 FROM tab1 AS cor0
----
-34
0
6

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 FROM tab2 AS cor0 WHERE - ( + - col0 ) NOT IN ( + 3 )
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6916
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - col1 * + col0 AS col0, 53 AS col1 FROM tab2 AS cor0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-6916
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - col1 * + col0 AS col0, 53 AS col1 FROM tab2 AS cor0
----
NULL
53

query I rowsort
SELECT ( + + col2 ) + col0 * - 2 FROM tab1 AS cor0
----
-111
-114
-6

query I rowsort
SELECT DISTINCT - 39 + - col2 AS col1 FROM tab1
----
-107
-135
-98

query II rowsort
SELECT ALL - 6 + - col0, + 86 + - col1 AS col0 FROM tab1
----
-57
72
-91
81
-97
39

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

query I rowsort
SELECT - - col2 AS col2 FROM tab1 WHERE NOT NULL <= NULL
----

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

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

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

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

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

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

query I rowsort
SELECT + + col1 * - - 40 - - col1 + - - col0 + - 91 + - - col1 * + + col2 * + 31 FROM tab1 AS cor0
----
101003
42198
9344

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT MIN( DISTINCT + 43 ) FROM tab0 AS cor0 WHERE 92 > - col2
----
43

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT MIN ( DISTINCT + 43 ) FROM tab0 AS cor0 WHERE 92 > - col2
----
43

query I rowsort
SELECT ALL 2 + 33 FROM tab1
----
35
35
35

query I rowsort
SELECT col0 + + 97 AS col1 FROM tab2
----
143
161
172

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT DISTINCT + 70 DIV - 41 + + ( 22 ) AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT + 70 / - 41 + + ( 22 ) AS col1 FROM tab0
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT - ( COUNT( * ) ) + + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT - ( COUNT ( * ) ) + + + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6934
SELECT DISTINCT CAST( NULL AS SIGNED ), - col0 * + ( - + col2 ) AS col2 FROM tab1
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
query II rowsort label-6934
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col0 * + ( - + col2 ) AS col2 FROM tab1
----
NULL
4896
NULL
5015
NULL
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT DISTINCT col1 DIV col2 + + 25 * - 16 FROM tab1
----
-400

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT col1 / col2 + + 25 * - 16 FROM tab1
----
-400

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

query II rowsort
SELECT + col1 AS col1, 95 * col1 * - 15 FROM tab0 AS cor0 WHERE + col1 >= NULL
----

query I rowsort
SELECT DISTINCT col0 + 46 AS col1 FROM tab0
----
133
143
61

query II rowsort
SELECT 80 + + - col1 AS col1, 86 + col0 FROM tab0
----
-1
101
59
173
79
183

query I rowsort
SELECT ALL + 1 - col2 * + - 28 AS col1 FROM tab2
----
1121
1625
645

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL COUNT( * ) + + - 34 AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL COUNT ( * ) + + - 34 AS col2 FROM tab2
----
-31

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

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

query I rowsort
SELECT ALL + AVG ( DISTINCT + ( 16 ) ) * - 67 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT DISTINCT - - AVG ( DISTINCT + col1 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - - AVG ( DISTINCT + col1 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 * - col0 IS NULL
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE ( 14 <> + col2 )
----
51
67
77

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

query II rowsort
SELECT DISTINCT - col0 * col2, - 17 FROM tab1 cor0 WHERE NOT 27 + + col2 + - - ( + col2 ) NOT BETWEEN + col1 AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6950
SELECT DISTINCT 20 * - CAST( NULL AS DECIMAL ) AS col2, - COUNT( * ) + + 6 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6950
SELECT DISTINCT 20 * - CAST ( NULL AS REAL ) AS col2, - COUNT ( * ) + + 6 FROM tab1 AS cor0
----
NULL
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6952
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 88 - + CAST( NULL AS SIGNED ) - + 23 / + + 86 AS col2 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6952
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 88 - + CAST ( NULL AS INTEGER ) - + 23 / + + 86 AS col2 FROM tab1
----
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL + 10 * - COUNT( * ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + 10 * - COUNT ( * ) AS col2 FROM tab2
----
-30

query II rowsort
SELECT DISTINCT - col2 * - + 64 * + col1 AS col1, - col0 * col0 AS col0 FROM tab2
----
197120
-4096
248704
-5625
75072
-2116

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 80 )
----

query I rowsort
SELECT 82 * + 16 AS col1 FROM tab1
----
1312
1312
1312

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

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

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

query I rowsort
SELECT + - ( 48 ) FROM tab2 cor0
----
-48
-48
-48

query II rowsort
SELECT DISTINCT + - 62 - - + col1, - col2 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col0 + + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT DISTINCT - SUM( + 36 ) - COUNT( ALL + 64 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT - SUM ( + 36 ) - COUNT ( ALL + 64 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < - - col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6967
SELECT - 44 DIV - - MIN( DISTINCT + - col2 ) FROM tab0 AS cor0
----
0

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

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

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

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

query I rowsort
SELECT ALL col1 + - 7 FROM tab2
----
44
60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL MAX( col2 ) + 30 + + COUNT( * ) AS col0 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL MAX ( col2 ) + 30 + + COUNT ( * ) AS col0 FROM tab0
----
132

query I rowsort
SELECT + - col1 + + col2 AS col1 FROM tab2 AS cor0 WHERE col0 BETWEEN + - 73 AND - + 35
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT - col0 * col2 * + 87 + col2 DIV + ( - col2 ) FROM tab0 cor0
----
-61336
-75691
-835462

skipif mysql # not compatible
query I rowsort label-6974
SELECT - col0 * col2 * + 87 + col2 / + ( - col2 ) FROM tab0 cor0
----
-61336
-75691
-835462

query I rowsort
SELECT DISTINCT col0 * + col0 * - - col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT + 78 - - - 30 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT 43 * COUNT( * ) AS col0 FROM tab1 cor0
----
129

skipif mysql # not compatible
query I rowsort label-6977
SELECT 43 * COUNT ( * ) AS col0 FROM tab1 cor0
----
129

query II rowsort
SELECT - ( - ( + 22 ) ) AS col2, - 40 * - + col1 FROM tab2 cor0
----
22
2040
22
2680
22
3080

query I rowsort
SELECT 67 - - col0 / 36 FROM tab1 AS cor0 WHERE NOT - col2 <= - col0 * + - 96 + col2 * + col0
----

query I rowsort
SELECT DISTINCT - 40 * + 45 AS col1 FROM tab0 AS cor0
----
-1800

onlyif mysql # aggregate syntax: 
query II rowsort label-6981
SELECT ALL - - 57, COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
57
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6981
SELECT ALL - - 57, COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
57
3

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

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

query I rowsort
SELECT ALL col0 * + - 28 AS col1 FROM tab1
----
-1428
-2380
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE NOT + - col1 + col2 + - col0 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + - col1 + col2 + - col0 IS NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT DISTINCT COUNT( - col0 ) * + 26 AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT COUNT ( - col0 ) * + 26 AS col0 FROM tab0
----
78

query I rowsort
SELECT - - col1 - + - col2 * 49 AS col1 FROM tab2 AS cor0 WHERE NOT + 74 IS NULL
----
1178
2037
2909

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6987
SELECT + 76 * + + 74, + col2 * - col2 * - + col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
5624
NULL
5624
NULL
5624
NULL

skipif mysql # not compatible
query II rowsort label-6987
SELECT + 76 * + + 74, + col2 * - col2 * - + col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
5624
NULL
5624
NULL
5624
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 48, + 33 + + col1, - 28 )
----

query II rowsort
SELECT DISTINCT + col1 * - 63 AS col2, + col1 + col1 AS col1 FROM tab0 AS cor0
----
-1323
42
-5103
162
-63
2

query I rowsort
SELECT - col2 * - + 70 FROM tab2
----
1610
2800
4060

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT + col1 DIV + + 30 + + col0 AS col2 FROM tab2 AS cor0
----
47
66
77

skipif mysql # not compatible
query I rowsort label-6992
SELECT + col1 / + + 30 + + col0 AS col2 FROM tab2 AS cor0
----
47
66
77

query I rowsort
SELECT - ( col2 ) + - ( + col2 ) FROM tab1 cor0
----
-118
-136
-192

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

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

query II rowsort
SELECT ALL - 50 / 12, col2 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 28 * 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6996
SELECT col1 * col0 DIV 42 + col0 AS col0 FROM tab0 cor0
----
130
43
99

skipif mysql # not compatible
query I rowsort label-6996
SELECT col1 * col0 / 42 + col0 AS col0 FROM tab0 cor0
----
130
43
99

query I rowsort
SELECT ALL + 42 * - col2 FROM tab2 cor0
----
-1680
-2436
-966

query I rowsort
SELECT DISTINCT - + 46 * + - col2 * - col1 FROM tab2 AS cor0
----
-141680
-178756
-53958

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

skipif mysql # not compatible
query I rowsort label-6999
SELECT MAX ( - - col0 ) AS col2 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT ALL 13 DIV - - 87 + - col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL 13 / - - 87 + - col0 AS col1 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT - col1 + + 79, - ( col1 ) / 9 + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 AS col0, col0 + + + 73 FROM tab1
----
-51
124
-85
158
-91
164

onlyif mysql # DIV for integer division: 
query II rowsort label-7003
SELECT DISTINCT - col1 AS col2, - col2 DIV + 72 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-7003
SELECT DISTINCT - col1 AS col2, - col2 / + 72 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT + col0 - + - col0 DIV - col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-7005
SELECT + col0 - + - col0 / - col0 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT ALL col1 - + 84 * col1 FROM tab1
----
-1162
-3901
-415

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT - MIN( DISTINCT - col1 ) * 31 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT - MIN ( DISTINCT - col1 ) * 31 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + - col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT DISTINCT ( COUNT( DISTINCT - col2 ) ) * - - 6 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT ( COUNT ( DISTINCT - col2 ) ) * - - 6 FROM tab2
----
18

query III rowsort
SELECT * FROM tab0 WHERE NOT 67 - - - col2 IS NOT NULL
----

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

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

query II rowsort
SELECT - 27 * + col0 * + col0 AS col1, - col0 FROM tab0
----
-204363
-87
-254043
-97
-6075
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL MIN( ALL col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL MIN ( ALL col1 ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT + - 67, - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-67
-1600
-67
-3364
-67
-529

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

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

query I rowsort
SELECT ( + 82 ) + - col1 * - - 13 FROM tab0
----
-191
-971
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + + 16 col0 FROM tab2
----
46
46
46

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

query I rowsort
SELECT - - col0 * 15 FROM tab1 WHERE - - col1 IS NOT NULL
----
1275
1365
765

query II rowsort
SELECT ALL - 87 * - - 81, - 94 AS col2 FROM tab0 cor0
----
-7047
-94
-7047
-94
-7047
-94

query I rowsort
SELECT ALL + - 2 + - + 39 AS col2 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT 5 * + + ( - + col0 ) FROM tab1 AS cor0
----
-255
-425
-455

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

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

query I rowsort
SELECT DISTINCT col0 * ( - 92 ) + + col2 FROM tab0 AS cor0
----
-1333
-7994
-8825

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 71 + - col2 = + + 46 - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + + col2 * 3
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7033
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE + CAST( + - 62 AS DECIMAL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE + CAST ( + - 62 AS REAL ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + col2 * - col2 > col0
----

query I rowsort
SELECT ALL 68 + - - col1 FROM tab2 cor0
----
119
135
145

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

query I rowsort
SELECT - ( 24 ) * + col2 - - - col2 FROM tab2 AS cor0
----
-1000
-1450
-575

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

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

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

query II rowsort
SELECT col1, col0 + + 11 * + col0 + col0 * + - col1 AS col1 FROM tab2 cor0
----
51
-1794
67
-4125
77
-4160

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

query I rowsort
SELECT DISTINCT - 73 * 0 FROM tab1
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <> col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT DISTINCT + - 19 * - 3 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
2622
3648
4275

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT + - 19 * - 3 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
2622
3648
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL + - COUNT( * ) * 37 FROM tab1 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL + - COUNT ( * ) * 37 FROM tab1 cor0
----
-111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT ALL + col1 + - col1 - 34 DIV - + col2 FROM tab1 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + col1 + - col1 - 34 / - + col2 FROM tab1 WHERE NULL IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2 + + col1 + - col0, col1 col0, + col2 FROM tab1
----
9 values hashing to 081b6d9e89f9929239a206a1f7a64ee5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + - col1 col1 FROM tab2 cor0
----
-146
-162
-172

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL MIN( + 36 ) FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL MIN ( + 36 ) FROM tab1 cor0
----
36

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT ALL - col0 DIV + + 32 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL - col0 / + + 32 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

query I rowsort
SELECT ( - ( + col2 ) ) * 72 AS col1 FROM tab1
----
-4248
-4896
-6912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7057
SELECT DISTINCT - CAST( NULL AS SIGNED ) + ( + 42 ) / - 41 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + ( + 42 ) / - 41 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 33 - + 73 FROM tab0
----
-106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7059
SELECT 83 * CAST( NULL AS DECIMAL ) * - col2 - + 68 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT 83 * CAST ( NULL AS REAL ) * - col2 - + 68 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 BETWEEN 34 AND - 25
----

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

query II rowsort
SELECT + col1 * + col0, col1 AS col1 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7064
SELECT ALL - 56 AS col0, CAST( NULL AS SIGNED ) * 63 * - - SUM( - col2 ) col0 FROM tab1 AS cor0
----
-56
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7064
SELECT ALL - 56 AS col0, CAST ( NULL AS INTEGER ) * 63 * - - SUM ( - col2 ) col0 FROM tab1 AS cor0
----
-56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT - - 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-7065
SELECT - - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7066
SELECT DISTINCT 36, - 88 - - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
36
-91

skipif mysql # not compatible
query II rowsort label-7066
SELECT DISTINCT 36, - 88 - - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
36
-91

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

query I rowsort
SELECT + ( - 99 ) FROM tab2
----
-99
-99
-99

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

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

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

query II rowsort
SELECT - col1 AS col0, + col2 * + - 70 * + + col0 FROM tab0
----
-1
-672210
-21
-60900
-81
-49350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + col2 * - + col0 * - col1 col2 FROM tab0 AS cor0
----
2398410
403326
767340

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

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

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

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

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

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

query I rowsort
SELECT 12 + - + col0 FROM tab2
----
-34
-52
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT + ( - 32 ) + - COUNT( * ) * 0 FROM tab0 WHERE NOT 37 / + + col1 * - - col0 < NULL
----
-32

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT + ( - 32 ) + - COUNT ( * ) * 0 FROM tab0 WHERE NOT 37 / + + col1 * - - col0 < NULL
----
-32

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

query I rowsort
SELECT 0 * + col2 * col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( + col2 ) >= + col2 * - CAST( NULL AS SIGNED )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT DISTINCT 57 * ( COUNT( * ) ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT 57 * ( COUNT ( * ) ) FROM tab1 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT + MIN( - + 45 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT + MIN ( - + 45 ) FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query III rowsort label-7083
SELECT * FROM tab1 WHERE + col1 DIV + col2 * - - col0 + - col0 NOT BETWEEN + - col2 AND 51 + + + col0
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-7083
SELECT * FROM tab1 WHERE + col1 / + col2 * - - col0 + - col0 NOT BETWEEN + - col2 AND 51 + + + col0
----
85
5
59
91
47
68

query I rowsort
SELECT ALL 26 - - col0 * + col1 FROM tab0
----
123
1241
1853

query I rowsort
SELECT 38 + + - 43 FROM tab1 WHERE NULL IS NULL
----
-5
-5
-5

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

skipif mysql # not compatible
query I rowsort label-7086
SELECT + col1 / - 96 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + 84 FROM tab0 AS cor0 WHERE NOT + 13 IS NOT NULL
----

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

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

query I rowsort
SELECT + - 40 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7091
SELECT ALL + 0 DIV - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + 0 / - COUNT ( * ) AS col0 FROM tab2
----
0

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

skipif mysql # not compatible
query I rowsort label-7092
SELECT 90 / col0 FROM tab2 AS cor0
----
1
1
1

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * 11 AS col0 FROM tab1
----
1056
649
748

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - 53 + - col2 + + - col1 * col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 NOT BETWEEN - - col0 AND + ( + + 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7100
SELECT ALL - COUNT( CAST( NULL AS DECIMAL ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - COUNT ( CAST ( NULL AS REAL ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT - 95 * - + COUNT( * ) + - + COUNT( * ) + - 68 * + + 62 FROM tab1
----
-3934

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT - 95 * - + COUNT ( * ) + - + COUNT ( * ) + - 68 * + + 62 FROM tab1
----
-3934

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

query I rowsort
SELECT DISTINCT 16 * col1 + + col0 FROM tab0
----
113
1311
423

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE ( col1 ) * col1 + - 59 + - + col0 NOT BETWEEN NULL AND - - col1 * + ( - col1 )
----
23
40
58

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE + 20 NOT BETWEEN col2 - - col0 AND NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT ALL 2 + MAX( DISTINCT 2 ) * COUNT( * ) col2 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7107
SELECT ALL 2 + MAX ( DISTINCT 2 ) * COUNT ( * ) col2 FROM tab1
----
8

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE col2 >= + ( + col0 )
----
14

query I rowsort
SELECT DISTINCT + col0 - + - ( col1 ) + col1 * col1 FROM tab2 cor0
----
2698
4631
6070

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * + ( - - col2 ) col0 FROM tab2 AS cor0
----
1392
552
960

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT DISTINCT - COUNT( * ), - COUNT( ALL col2 ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7112
SELECT DISTINCT - COUNT ( * ), - COUNT ( ALL col2 ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT - ( - 67 ) FROM tab0 AS cor0 WHERE + 88 BETWEEN + col0 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT SUM( 83 ) AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT SUM ( 83 ) AS col0 FROM tab2
----
249

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

query III rowsort
SELECT 67 * col0 AS col0, - col2 AS col1, - col2 FROM tab0
----
9 values hashing to fb3a7d5a1422607ad8f8c2064b6f27d5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL >= - col2
----

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL >= - col2
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * - col1 + + + 84 <= col2 * + + col2 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - 19 - - col2 NOT BETWEEN NULL AND + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7121
SELECT - 6 * - COUNT( * ) * - SUM( - - col2 ), + MAX( ALL col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7121
SELECT - 6 * - COUNT ( * ) * - SUM ( - - col2 ), + MAX ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7122
SELECT SUM( DISTINCT - col2 ) * + + 23 AS col2, + CAST( NULL AS SIGNED ) FROM tab0
----
-3588
NULL

skipif mysql # not compatible
query II rowsort label-7122
SELECT SUM ( DISTINCT - col2 ) * + + 23 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0
----
-3588
NULL

query I rowsort
SELECT 44 * + 14 AS col2 FROM tab1
----
616
616
616

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT - MIN( + + 50 ) AS col0 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT - MIN ( + + 50 ) AS col0 FROM tab0
----
-50

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

query II rowsort
SELECT ALL col0, + col1 FROM tab1 cor0
----
51
14
85
5
91
47

query II rowsort
SELECT + 72 AS col0, 90 FROM tab2 cor0
----
72
90
72
90
72
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7128
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) / col0 > NULL )
----

skipif mysql # not compatible
query III rowsort label-7128
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) / col0 > NULL )
----

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

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

query I rowsort
SELECT DISTINCT col1 * + col0 + + 23 + - col0 - col2 AS col1 FROM tab1 AS cor0
----
304
4141
590

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab0 WHERE NOT 57 BETWEEN - col1 AND 85
----

query I rowsort
SELECT + col0 + - 43 FROM tab2
----
21
3
32

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

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL ( ( COUNT ( * ) ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT + COUNT( - + col1 ) + 12 AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7135
SELECT + COUNT ( - + col1 ) + 12 AS col0 FROM tab2
----
15

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

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

query II rowsort
SELECT + col2 + col0 AS col1, - ( + col1 ) AS col1 FROM tab2 AS cor0
----
104
-77
133
-67
69
-51

query I rowsort
SELECT DISTINCT 0 + 13 * - col0 + + col1 AS col2 FROM tab1
----
-1100
-1136
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL - 74 + - 37 * - COUNT( ALL + col1 ) AS col0 FROM tab1 cor0
----
37

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL - 74 + - 37 * - COUNT ( ALL + col1 ) AS col0 FROM tab1 cor0
----
37

query I rowsort
SELECT DISTINCT 51 * + + 31 - + col0 FROM tab1 AS cor0
----
1490
1496
1530

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

skipif mysql # not compatible
query I rowsort label-7141
SELECT + + COUNT ( * ) - + + SUM ( + + col1 ) - + MIN ( DISTINCT - col2 ) * - COUNT ( * ) AS col2 FROM tab1 cor0
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + - 68
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7142
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + - 68
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - 79
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7144
SELECT DISTINCT - 7 / col2 + + col1 * + col2 + + + col2 + 3 AS col2 FROM tab1 AS cor0 WHERE NOT - 25 NOT BETWEEN - col0 - col0 AND ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - 7 / col2 + + col1 * + col2 + + + col2 + 3 AS col2 FROM tab1 AS cor0 WHERE NOT - 25 NOT BETWEEN - col0 - col0 AND ( + CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * col0 * col0 col0 FROM tab2
----
-27508
-53248
-73125

query I rowsort
SELECT DISTINCT ( col2 ) * col1 + + - col0 AS col1 FROM tab0
----
123
2
3792

query I rowsort
SELECT + ( + col2 ) + - col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT SUM( ALL 36 ) AS col1 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT SUM ( ALL 36 ) AS col1 FROM tab1
----
108

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL COUNT( - 51 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL COUNT ( - 51 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT ALL + + col1 - + 21 AS col1 FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) / - col1 < + col1
----

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + + col1 - + 21 AS col1 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) / - col1 < + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT + col2 DIV + col0 + 70 + col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
71
71
72

skipif mysql # not compatible
query I rowsort label-7154
SELECT + col2 / + col0 + 70 + col0 / + col2 AS col2 FROM tab2 AS cor0
----
71
71
72

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

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

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

query I rowsort
SELECT ALL col1 * - col2 * 13 FROM tab0 AS cor0
----
-1287
-2730
-49491

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT MIN( - + 19 ) * + 19 * COUNT( * ) FROM tab2
----
-1083

skipif mysql # not compatible
query I rowsort label-7160
SELECT MIN ( - + 19 ) * + 19 * COUNT ( * ) FROM tab2
----
-1083

query I rowsort
SELECT ALL + col0 + + col2 * + col2 FROM tab2
----
1664
3439
575

query I rowsort
SELECT - ( + ( - 78 ) ) FROM tab0
----
78
78
78

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL OR NOT + col1 NOT BETWEEN NULL AND col1 / + col2 + - 59 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT MIN( ALL - col2 ) * + + 42 FROM tab2 AS cor0
----
-2436

skipif mysql # not compatible
query I rowsort label-7164
SELECT MIN ( ALL - col2 ) * + + 42 FROM tab2 AS cor0
----
-2436

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT - col0 DIV - 9 col1 FROM tab1 AS cor0
----
10
5
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7165
SELECT - col0 / - 9 col1 FROM tab1 AS cor0
----
10
5
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
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-7166
SELECT - SUM ( - + ( + - col2 ) ) col2 FROM tab1 AS cor0
----
-223

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

query I rowsort
SELECT + - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

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

query I rowsort
SELECT DISTINCT 24 + + col0 AS col0 FROM tab2
----
70
88
99

query I rowsort
SELECT ALL col0 * + col0 * + - col2 * + col2 + + col1 FROM tab1
----
-23970802
-25150220
-38291297

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT DISTINCT ( - - col1 ) * - + col2 + col0 + - 27 DIV col2 AS col1 FROM tab0
----
-125
-2
-3792

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT ( - - col1 ) * - + col2 + col0 + - 27 / col2 AS col1 FROM tab0
----
-125
-2
-3792

query I rowsort
SELECT DISTINCT + + ( + 55 ) * - col2 AS col2 FROM tab1 AS cor0
----
-3245
-3740
-5280

query I rowsort
SELECT DISTINCT - 75 * 91 + + 59 + + col1 FROM tab1 AS cor0
----
-6719
-6752
-6761

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7177
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7177
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - COUNT( * ) * 22 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-7178
SELECT - COUNT ( * ) * 22 FROM tab2
----
-66

query I rowsort
SELECT - col1 * + 28 AS col1 FROM tab1
----
-1316
-140
-392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 49 ) * col2 col0 FROM tab2
----
-1127
-1960
-2842

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

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

query I rowsort
SELECT - 23 * - col1 - col2 FROM tab0
----
-76
1816
473

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

query I rowsort
SELECT ALL 38 * + col0 AS col1 FROM tab1
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT DISTINCT 94 * - COUNT( * ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT 94 * - COUNT ( * ) FROM tab1
----
-282

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7186
SELECT ( - col1 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE - col0 + 90 <> ( 49 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT ( - col1 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE - col0 + 90 <> ( 49 )
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT DISTINCT + 96 DIV - 99 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + 96 / - 99 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7188
SELECT DISTINCT 79 DIV col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT 79 / col2 FROM tab1
----
0
1

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( 29 )
----

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

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

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

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
10
47
99

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL NOT IN ( col1 * 46 + 52 )
----

query I rowsort
SELECT ALL col2 + + 95 * col2 AS col1 FROM tab1
----
5664
6528
9216

query I rowsort
SELECT DISTINCT - col2 - - 85 FROM tab1
----
-11
17
26

query III rowsort
SELECT ALL * FROM tab1 WHERE - 49 IN ( - col1 * col1 )
----

query I rowsort
SELECT DISTINCT col0 + 67 AS col2 FROM tab1
----
118
152
158

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

skipif mysql # not compatible
query I rowsort label-7200
SELECT - MAX ( col2 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-58

query I rowsort
SELECT ALL col0 * 93 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + col0 + - 97 AS col0 FROM tab2
----
-22
-33
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT - col2 + CAST( 8 AS SIGNED ) AS col2 FROM tab1 WHERE CAST( - col2 AS SIGNED ) < col0
----
-51
-60
-88

skipif mysql # not compatible
query I rowsort label-7203
SELECT - col2 + CAST ( 8 AS INTEGER ) AS col2 FROM tab1 WHERE CAST ( - col2 AS INTEGER ) < col0
----
-51
-60
-88

query I rowsort
SELECT + ( + 29 ) FROM tab2 WHERE NOT NULL = NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - 4 <> col2 * + 12 + - col2
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 * col2 ) <> + col1 / col0
----

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

query I rowsort
SELECT ALL col1 + - col2 FROM tab0 cor0 WHERE ( NULL ) = + col2
----

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

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

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

query I rowsort
SELECT + 77 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT col2 * - 61 FROM tab0 AS cor0
----
-2867
-6039
-610

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

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

query I rowsort
SELECT - 73 AS col0 FROM tab0 AS cor0 WHERE ( + col1 * + col0 ) = NULL
----

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

skipif mysql # not compatible
query I rowsort label-7217
SELECT + + ( col0 ) / - col0 FROM tab2 AS cor0
----
-1
-1
-1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT - SUM( ALL - 85 ) FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-7222
SELECT - SUM ( ALL - 85 ) FROM tab2 AS cor0
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT - + ( col0 ) DIV col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7223
SELECT - + ( col0 ) / col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT SUM( DISTINCT 23 ) * + COUNT( * ) AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL OR NOT ( col0 * - 63 ) NOT IN ( - col2 - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT SUM ( DISTINCT 23 ) * + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL OR NOT ( col0 * - 63 ) NOT IN ( - col2 - col1 )
----
NULL

query I rowsort
SELECT + col2 + - col1 + ( + col2 ) * col2 AS col2 FROM tab2
----
1563
3355
501

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - ( - MIN( + col2 ) ) + + 51 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-7226
SELECT - ( - MIN ( + col2 ) ) + + 51 FROM tab1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL + 34 + + - 36 + SUM( - col0 ) FROM tab2
----
-187

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + 34 + + - 36 + SUM ( - col0 ) FROM tab2
----
-187

query I rowsort
SELECT DISTINCT col1 * + 88 - + 8 AS col0 FROM tab0
----
1840
7120
80

query I rowsort
SELECT ALL col2 + - - col0 AS col0 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-7230
SELECT DISTINCT + ( + - 75 ) DIV col0 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + ( + - 75 ) / col0 AS col1 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab0 WHERE 72 / 99 NOT BETWEEN - col0 AND 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT 93 + + MAX( DISTINCT - 91 ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7232
SELECT 93 + + MAX ( DISTINCT - 91 ) AS col1 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( 11 ) >= + col2
----
-46
-64
-75

query I rowsort
SELECT 25 * + col1 + col0 FROM tab2 AS cor0
----
1321
1750
1989

query I rowsort
SELECT DISTINCT + 88 * ( 44 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3872

query I rowsort
SELECT + ( - 22 ) FROM tab0 cor0 WHERE ( - col0 ) IS NULL
----

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

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

query I rowsort
SELECT col1 * + col0 + 36 FROM tab0 AS cor0
----
1251
133
1863

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col1 FROM tab0 WHERE + - col0 / 31 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT COUNT( * ) FROM tab2, tab1 cor0 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-7241
SELECT COUNT ( * ) FROM tab2, tab1 cor0 WHERE ( NULL ) IS NULL
----
9

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

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

skipif mysql # not compatible
query I rowsort label-7244
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( 46 ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 AS col2, 71 col0 FROM tab0 cor0
----
9
71
9
71
9
71

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

query I rowsort
SELECT - col1 AS col1 FROM tab1 cor0 WHERE NOT + 27 NOT BETWEEN NULL AND + ( col1 ) * - 20
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7248
SELECT ALL - COUNT( * ) DIV + + ( - 6 ) * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - COUNT ( * ) / + + ( - 6 ) * + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT ALL - MAX( DISTINCT + 35 ) AS col0 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - MAX ( DISTINCT + 35 ) AS col0 FROM tab2 AS cor0
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-7250
SELECT + + col2, - col0 * + col0 + 36 DIV - ( 16 ) FROM tab0 AS cor0
----
10
-7571
47
-227
99
-9411

skipif mysql # not compatible
query II rowsort label-7250
SELECT + + col2, - col0 * + col0 + 36 / - ( 16 ) FROM tab0 AS cor0
----
10
-7571
47
-227
99
-9411

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7252
SELECT DISTINCT 72 col1, + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
72
NULL

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col2 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( ( col2 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( ( col2 ) )
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 + col0 ) = ( 71 ) OR ( col2 ) NOT BETWEEN NULL AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 / - 29 FROM tab2 WHERE NULL > ( - - 9 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( col0 - ( - col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7261
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab0 WHERE NOT ( + ( col2 ) ) = - col1 * + col0 + + col1 * 75
----
-1

skipif mysql # not compatible
query I rowsort label-7261
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab0 WHERE NOT ( + ( col2 ) ) = - col1 * + col0 + + col1 * 75
----
-1

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

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

query I rowsort
SELECT + 45 * - 79 * + + col2 FROM tab1
----
-209745
-241740
-341280

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL COUNT( - - 46 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL COUNT ( - - 46 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE col1 < ( 80 ) * + 21
----
-46
-64
-75

query II rowsort
SELECT + - ( - + col2 ) AS col2, - col1 * + col1 AS col1 FROM tab1 AS cor0
----
59
-25
68
-2209
96
-196

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

query I rowsort
SELECT ALL 93 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT - 36 + COUNT( * ) AS col0 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - 36 + COUNT ( * ) AS col0 FROM tab2
----
-33

query I rowsort
SELECT + 60 * - 28 AS col0 FROM tab1 WHERE - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * col0 * + col0 + col0 FROM tab0 AS cor0
----
10590
75777
931588

query II rowsort
SELECT ALL - col0 * 1 * - col0 AS col1, col2 FROM tab2 AS cor0
----
2116
23
4096
40
5625
58

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 33 ) <= NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT + col2 * - col2 * - 84 IS NOT NULL
----

query I rowsort
SELECT 15 FROM tab0 WHERE NULL <= + 35 / + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL - COUNT( * ) + + 14 * - + 25 FROM tab1
----
-353

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - COUNT ( * ) + + 14 * - + 25 FROM tab1
----
-353

onlyif mysql # DIV for integer division: 
query II rowsort label-7278
SELECT ALL + col1, + 25 DIV col0 AS col0 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-7278
SELECT ALL + col1, + 25 / col0 AS col0 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT 99 * MIN( DISTINCT - + col0 ) AS col0 FROM tab0
----
-9603

skipif mysql # not compatible
query I rowsort label-7279
SELECT 99 * MIN ( DISTINCT - + col0 ) AS col0 FROM tab0
----
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col1 ) col0, 9 AS col0 FROM tab1
----
14
9
47
9
5
9

query I rowsort
SELECT DISTINCT + ( - + col2 ) + + 94 + - col1 FROM tab1
----
-16
-21
30

query I rowsort
SELECT DISTINCT 98 - + + col0 * + col1 FROM tab1
----
-327
-4179
-616

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

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

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

query I rowsort
SELECT + - ( + col2 ) * - 39 + + + col1 + 45 FROM tab2 AS cor0
----
1682
2374
993

query I rowsort
SELECT + ( - col1 ) + - col2 * - - col2 FROM tab0 cor0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT - 17 + SUM( col2 ) + + 56 AS col2 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-7287
SELECT - 17 + SUM ( col2 ) + + 56 AS col2 FROM tab0
----
195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL COUNT( * ) * - - 68 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL COUNT ( * ) * - - 68 FROM tab2
----
204

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7290
SELECT ALL * FROM tab0 WHERE NOT ( - col0 - + + 79 * + - 44 - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7290
SELECT ALL * FROM tab0 WHERE NOT ( - col0 - + + 79 * + - 44 - CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col2 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - ( + col0 ) AS col1, + ( col2 ) AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT - 56 = NULL
----

query II rowsort
SELECT DISTINCT 50 * + + 70 * col2, + 38 AS col2 FROM tab0
----
164500
38
346500
38
35000
38

query I rowsort
SELECT DISTINCT + - 16 FROM tab0 WHERE NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + + 14 AS col0 FROM tab0
----
1218
1358
210

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT - - ( 43 ) + + ( 15 ) + - 45 * - col0 + - col0 > ( + 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT MAX( ALL 17 ) AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-7298
SELECT MAX ( ALL 17 ) AS col2 FROM tab1
----
17

query I rowsort
SELECT ALL - 10 FROM tab1 WHERE NOT + 58 <> ( + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( + col0 ) ) BETWEEN + col0 AND - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7302
SELECT + COUNT( * ) DIV 54 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7302
SELECT + COUNT ( * ) / 54 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7303
SELECT - 60 + col2 DIV + col0 AS col2, col1 * col0 AS col1 FROM tab0 AS cor0
----
-57
1215
-59
97
-60
1827

skipif mysql # not compatible
query II rowsort label-7303
SELECT - 60 + col2 / + col0 AS col2, col1 * col0 AS col1 FROM tab0 AS cor0
----
-57
1215
-59
97
-60
1827

query I rowsort
SELECT + 62 FROM tab0 AS cor0 WHERE + 54 - - 19 < + + col0
----
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7305
SELECT DISTINCT - col1 * 35 + - CAST( NULL AS SIGNED ) + - - col1 + + ( + 19 ) * + col0, col2 * 20 AS col2 FROM tab0
----
NULL
1980
NULL
200
NULL
940

skipif mysql # not compatible
query II rowsort label-7305
SELECT DISTINCT - col1 * 35 + - CAST ( NULL AS INTEGER ) + - - col1 + + ( + 19 ) * + col0, col2 * 20 AS col2 FROM tab0
----
NULL
1980
NULL
200
NULL
940

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL > - - col1
----
0

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL > - - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 80 col0 FROM tab2
----
-16
-34
-5

query I rowsort
SELECT + - 49 * + col1 AS col1 FROM tab0 cor0
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT - - COUNT( * ) * - - MAX( DISTINCT col1 ) - - 99 * - MIN( ALL + col2 ) FROM tab0 AS cor0
----
-747

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - - COUNT ( * ) * - - MAX ( DISTINCT col1 ) - - 99 * - MIN ( ALL + col2 ) FROM tab0 AS cor0
----
-747

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 91 * 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT - SUM( ALL + col0 ) * - 12 AS col1 FROM tab2 cor0
----
2220

skipif mysql # not compatible
query I rowsort label-7311
SELECT - SUM ( ALL + col0 ) * - 12 AS col1 FROM tab2 cor0
----
2220

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col1 FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT DISTINCT + + MAX( col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT + + MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT col1 + - - 35 FROM tab2
----
102
112
86

query I rowsort
SELECT + - col2 + col0 AS col1 FROM tab1 WHERE NULL <= - + 22
----

query II rowsort
SELECT ALL - col1 AS col0, 86 * ( col2 ) FROM tab2
----
-51
1978
-67
4988
-77
3440

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col2 IS NOT NULL AND NOT ( - 88 / - - col0 ) NOT IN ( - col0 + + - col1 * col0 * col2 * - + 85 )
----

query I rowsort
SELECT 3 FROM tab0 WHERE ( NULL ) IS NULL
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT ALL + 15 DIV + col0 + col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + 15 / + col0 + col0 AS col0 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7323
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - 32 - - col2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - 32 - - col2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 + col2 IS NOT NULL )
----

query I rowsort
SELECT - - 17 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT - col1, col0 + - col2 - + col0 AS col0 FROM tab0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT DISTINCT - ( + 73 ) * + col2 FROM tab1
----
-4307
-4964
-7008

onlyif mysql # aggregate syntax: 
query II rowsort label-7329
SELECT DISTINCT MIN( ALL - + col1 ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible
query II rowsort label-7329
SELECT DISTINCT MIN ( ALL - + col1 ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-81
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT - - COUNT( * ) col0, - ( 30 ) AS col1 FROM tab0 AS cor0
----
3
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7330
SELECT - - COUNT ( * ) col0, - ( 30 ) AS col1 FROM tab0 AS cor0
----
3
-30

query I rowsort
SELECT 80 * - col1 * + + col1 FROM tab2 AS cor0
----
-208080
-359120
-474320

query I rowsort
SELECT DISTINCT - col0 - + 90 AS col1 FROM tab1 cor0 WHERE NOT col0 IN ( 53 * 2 )
----
-141
-175
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT - + MIN( - + col0 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - + MIN ( - + col0 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL - CAST( NULL AS SIGNED ) * - + col2 * + + 71 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - CAST ( NULL AS INTEGER ) * - + col2 * + + 71 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + col2, - ( + col2 ) * + 23 * + 51 - col0 col0 FROM tab0 AS cor0
----
705
-55146
870
-11817
9603
-116224

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - - col0 NOT BETWEEN + + ( + - col0 ) * - 80 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL COUNT( * ) * - MAX( + + col2 ) * - - COUNT( * ) FROM tab2
----
-522

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL COUNT ( * ) * - MAX ( + + col2 ) * - - COUNT ( * ) FROM tab2
----
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT + COUNT( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + COUNT ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT COUNT( * ) * - + 90 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-7340
SELECT COUNT ( * ) * - + 90 FROM tab0
----
-270

query II rowsort
SELECT col2 * + col0 AS col0, 1 + - - 63 FROM tab1
----
4896
64
5015
64
6188
64

query I rowsort
SELECT ALL + ( - + 17 ) FROM tab2
----
-17
-17
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7343
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7344
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT 18 * - col0 AS col0 FROM tab0
----
-1566
-1746
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7346
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col0 + + + col0 AS col2 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT ALL - 91 + + MAX( + 78 ) DIV + 61 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - 91 + + MAX ( + 78 ) / + 61 FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT COUNT( * ) + - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-7349
SELECT COUNT ( * ) + - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT DISTINCT col0 * - CAST( - ( - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT col0 * - CAST ( - ( - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + 90 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + col1 ) / - + col0 - + - 44 + + - 12 * - - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - COUNT( ALL col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7354
SELECT - COUNT ( ALL col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL + 30 + - col1 + - col2 AS col1 FROM tab0
----
-1
-70
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT COUNT( * ) - - 93 AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7356
SELECT COUNT ( * ) - - 93 AS col0 FROM tab1
----
96

query II rowsort
SELECT ALL col0 * - col1, 9 AS col0 FROM tab2
----
-2346
9
-4928
9
-5025
9

query I rowsort
SELECT ALL col2 + - 42 FROM tab1
----
17
26
54

query I rowsort
SELECT ALL ( - col2 ) - - col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - col1 + + + 32 AS col0 FROM tab1
----
-15
18
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - + MAX( - ( col2 ) ) AS col1 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-7361
SELECT - + MAX ( - ( col2 ) ) AS col1 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - COUNT( * ) - - + ( COUNT( * ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7362
SELECT - COUNT ( * ) - - + ( COUNT ( * ) ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT DISTINCT 90 - - 31 DIV + + col2 FROM tab0
----
90
93

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT 90 - - 31 / + + col2 FROM tab0
----
90
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - + SUM( ALL col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7364
SELECT - + SUM ( ALL col2 ) FROM tab1 AS cor0
----
-223

query II rowsort
SELECT DISTINCT col1 * 69 AS col1, 23 * - + col1 AS col1 FROM tab1 AS cor0
----
3243
-1081
345
-115
966
-322

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT + ( COUNT( * ) ) FROM tab1 cor0 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) * + + 76 IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT + ( COUNT ( * ) ) FROM tab1 cor0 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) * + + 76 IN ( - col0 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + + col2 AND 57 / - ( + 3 ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT - MIN( DISTINCT - 60 ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7369
SELECT - MIN ( DISTINCT - 60 ) FROM tab2 AS cor0
----
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col0 * - col1 AND NULL
----

query II rowsort
SELECT ALL - - 88 * - col0 * - col2 * + 45 * + col2, col2 AS col1 FROM tab1 AS cor0
----
1171704600
59
1666304640
68
1861263360
96

query II rowsort
SELECT + col1 AS col2, 67 * - col2 AS col0 FROM tab2 cor0
----
51
-1541
67
-3886
77
-2680

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT DISTINCT ( + 87 ) DIV + 55 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT ( + 87 ) / + 55 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 97 + - - col2 AS col2 FROM tab2
----
120
137
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL - 29 + + - COUNT( - + col2 ) AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL - 29 + + - COUNT ( - + col2 ) AS col2 FROM tab0
----
-32

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL 81 * + - SUM( DISTINCT 76 ) FROM tab2
----
-6156

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL 81 * + - SUM ( DISTINCT 76 ) FROM tab2
----
-6156

query I rowsort
SELECT DISTINCT - + col2 * + col0 + 1 AS col1 FROM tab1 AS cor0
----
-4895
-5014
-6187

query I rowsort
SELECT DISTINCT + col1 + + - col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT col1 + col2 + col1 * + col1 FROM tab1 AS cor0
----
2324
306
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT - 5 + SUM( + - 83 ) FROM tab2 AS cor0
----
-254

skipif mysql # not compatible
query I rowsort label-7381
SELECT - 5 + SUM ( + - 83 ) FROM tab2 AS cor0
----
-254

query I rowsort
SELECT ALL - 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT + CAST( - ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7383
SELECT + CAST ( - ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 34 > NULL
----

query II rowsort
SELECT col2 - 53, col1 FROM tab0 AS cor0
----
-43
21
-6
81
46
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT CAST( 26 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
-21
12
21

skipif mysql # not compatible
query I rowsort label-7386
SELECT CAST ( 26 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
-21
12
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT ALL 38 DIV - - col0 + + col2 * + + 65 + col1 AS col2 FROM tab0 AS cor0
----
3138
6436
671

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL 38 / - - col0 + + col2 * + + 65 + col1 AS col2 FROM tab0 AS cor0
----
3138
6436
671

query II rowsort
SELECT + + col2 - + col0 AS col2, + ( + + col0 ) AS col2 FROM tab0 cor0
----
-77
87
2
97
32
15

query I rowsort
SELECT - + ( + 1 ) + - + 81 AS col2 FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + 61 FROM tab2, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL col1 + + + 57 * + col1 + + - 32 FROM tab1
----
258
2694
780

query I rowsort
SELECT DISTINCT + - 70 / + col0 * - col1 + + + col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - 86 * - + SUM( - - 12 ) FROM tab1
----
3096

skipif mysql # not compatible
query I rowsort label-7394
SELECT - 86 * - + SUM ( - - 12 ) FROM tab1
----
3096

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 31
----

query II rowsort
SELECT 1 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
1
-15
1
-87
1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT + MIN( - - col0 ) * + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7397
SELECT + MIN ( - - col0 ) * + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
138

query I rowsort
SELECT - + col2 * 77 AS col2 FROM tab1 AS cor0
----
-4543
-5236
-7392

onlyif mysql # DIV for integer division: 
query II rowsort label-7399
SELECT col2 DIV + 8, col0 FROM tab1 AS cor0
----
12
51
7
85
8
91

skipif mysql # not compatible
query II rowsort label-7399
SELECT col2 / + 8, col0 FROM tab1 AS cor0
----
12
51
7
85
8
91

query I rowsort
SELECT - 62 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT - 32 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 35 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-7401
SELECT - 32 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 35 IS NULL
----
96

query I rowsort
SELECT ALL 13 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL MAX( ALL - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL MAX ( ALL - col1 ) AS col0 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT col1 * - 15 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT col1 * - 15 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 41 FROM tab2
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7406
SELECT ALL COUNT( * ) DIV - 89 + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL COUNT ( * ) / - 89 + COUNT ( * ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 + + - col0 > ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL + ( + COUNT( ALL + - 47 ) ) + - ( - 60 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL + ( + COUNT ( ALL + - 47 ) ) + - ( - 60 ) FROM tab2
----
63

query I rowsort
SELECT DISTINCT col2 + 27 FROM tab1
----
123
86
95

query II rowsort
SELECT col2 AS col2, 29 FROM tab2
----
23
29
40
29
58
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT + COUNT( * ) * + - 72 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-7411
SELECT + COUNT ( * ) * + - 72 FROM tab1
----
-216

query I rowsort
SELECT ALL col0 * - + col2 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + col1 + + - col0 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT ALL 83 DIV - 72 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL 83 / - 72 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT DISTINCT ( - CAST( col1 AS SIGNED ) ) * + - 74 FROM tab1 AS cor0
----
1036
3478
370

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT ( - CAST ( col1 AS INTEGER ) ) * + - 74 FROM tab1 AS cor0
----
1036
3478
370

query I rowsort
SELECT + 99 * - 12 * - + col1 + - 31 - + + col0 AS col2 FROM tab2
----
60511
79490
91381

onlyif mysql # DIV for integer division: 
query II rowsort label-7417
SELECT DISTINCT - col1 + + - 69 * + col1 * - - col2, - col2 DIV + 55 col1 FROM tab1
----
-20360
-1
-220571
-1
-92750
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7417
SELECT DISTINCT - col1 + + - 69 * + col1 * - - col2, - col2 / + 55 col1 FROM tab1
----
-20360
-1
-220571
-1
-92750
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT - CAST( NULL AS SIGNED ) + - ( 11 ) * - col0 * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT - CAST ( NULL AS INTEGER ) + - ( 11 ) * - col0 * - - col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 + + col1 AS col2, col0 * + + 52 AS col1 FROM tab2 AS cor0
----
117
3328
125
3900
74
2392

query I rowsort
SELECT ALL - col0 - + - 38 AS col0 FROM tab0 AS cor0
----
-49
-59
23

query I rowsort
SELECT 12 + + col1 * col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
1356
307
3208

query II rowsort
SELECT + col1, col0 AS col0 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT COUNT( * ) * - 50 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-7423
SELECT COUNT ( * ) * - 50 FROM tab1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT + SUM( + 32 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7424
SELECT + SUM ( + 32 ) FROM tab0
----
96

query II rowsort
SELECT DISTINCT + col1 * 96 AS col1, + col2 AS col0 FROM tab1
----
1344
96
4512
68
480
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT col0 * col0 DIV col2 AS col1 FROM tab2
----
102
92
96

skipif mysql # not compatible
query I rowsort label-7426
SELECT col0 * col0 / col2 AS col1 FROM tab2
----
102
92
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7427
SELECT - 97 DIV COUNT( * ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-7427
SELECT - 97 / COUNT ( * ) FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT SUM( + + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7428
SELECT SUM ( + + col0 ) AS col1 FROM tab1
----
227

query II rowsort
SELECT 73 * + - col0 AS col0, - col1 * + ( - - 36 ) AS col1 FROM tab0
----
-1095
-2916
-6351
-756
-7081
-36

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN 45 AND ( + 50 )
----

query I rowsort
SELECT 24 - col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT DISTINCT - COUNT( * ), + COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-7432
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 AS col0, + col1 col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL - ( 10 ) FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT - - 87 * col1 AS col2 FROM tab0 cor0
----
1827
7047
87

query II rowsort
SELECT + col0, col0 + + - col2 AS col1 FROM tab2 AS cor0
----
46
23
64
24
75
17

query II rowsort
SELECT - col2 AS col1, col1 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-23
-2346
-40
-4928
-58
-5025

query I rowsort
SELECT DISTINCT - 79 + + + col0 AS col1 FROM tab2
----
-15
-33
-4

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7440
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - ( 72 ) + - ( 13 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT + CAST ( NULL AS REAL ) - ( 72 ) + - ( 13 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + ( + - col2 ) - col0 + - 2 AS col0 FROM tab0 AS cor0
----
-198
-64
-99

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + 59 + - - col1 + - col2 * - 41 + - col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 + 37 AS col2 FROM tab0 AS cor0 WHERE ( col1 + + col0 ) IS NOT NULL
----
118
38
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7444
SELECT DISTINCT 97 AS col1, col2 DIV + + CAST( - - 79 AS SIGNED ) FROM tab2 AS cor0
----
97
0

skipif mysql # not compatible
query II rowsort label-7444
SELECT DISTINCT 97 AS col1, col2 / + + CAST ( - - 79 AS INTEGER ) FROM tab2 AS cor0
----
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT - + MIN( ALL - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT - + MIN ( ALL - col0 ) FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * + col1 col1 FROM tab1 cor0
----
1302
4371
465

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 82 IN ( - col2, col0 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT DISTINCT 6 DIV - + 35 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT 6 / - + 35 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7449
SELECT - - CAST( NULL AS SIGNED ) * + - 37 + col2 FROM tab0 WHERE NOT + - col0 + 35 = NULL
----

skipif mysql # not compatible
query I rowsort label-7449
SELECT - - CAST ( NULL AS INTEGER ) * + - 37 + col2 FROM tab0 WHERE NOT + - col0 + 35 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT ALL col0 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL col0 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col2 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL - SUM( DISTINCT + - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - SUM ( DISTINCT + - col0 ) AS col1 FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col0 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 53 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 + - + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT + + 82 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7457
SELECT + + 82 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7458
SELECT ALL + ( - + 55 ), + 18 * + ( - col1 ) + + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-55
-1459
-55
-19
-55
-379

skipif mysql # not compatible
query II rowsort label-7458
SELECT ALL + ( - + 55 ), + 18 * + ( - col1 ) + + col2 / - col2 AS col1 FROM tab0 AS cor0
----
-55
-1459
-55
-19
-55
-379

query I rowsort
SELECT - - 91 * - 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col0 + + 9, col0 FROM tab2 AS cor0
----
-37
46
-55
64
-66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT - - 78 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7461
SELECT - - 78 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT ALL + 92 + - 9 DIV + col0 FROM tab2
----
92
92
92

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + 92 + - 9 / + col0 FROM tab2
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT MAX( - 36 ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-7463
SELECT MAX ( - 36 ) AS col2 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT - 42 AS col1, - COUNT( * ) * COUNT( * ) FROM tab0
----
-42
-9

skipif mysql # not compatible
query II rowsort label-7464
SELECT - 42 AS col1, - COUNT ( * ) * COUNT ( * ) FROM tab0
----
-42
-9

query I rowsort
SELECT ALL col0 + 60 FROM tab1
----
111
145
151

query I rowsort
SELECT DISTINCT - 18 - - - col2 FROM tab0
----
-117
-28
-65

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 WHERE + - 99 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - col1 + + + 86 FROM tab0
----
152
182
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col2 + + - ( + + 28 ) + + - 26
----

query I rowsort
SELECT ALL - - 24 + col2 AS col2 FROM tab1 AS cor0
----
120
83
92

query I rowsort
SELECT + col0 + - - col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT 60 * 9 + + col2 AS col0 FROM tab1
----
599
608
636

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - ( ( col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 / - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT - MAX( DISTINCT 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7475
SELECT - MAX ( DISTINCT 4 ) FROM tab2 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - - col1
----

query II rowsort
SELECT DISTINCT + col1, + col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT COUNT( * ) * + ( - 79 ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-7478
SELECT COUNT ( * ) * + ( - 79 ) FROM tab1
----
-237

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 * - col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 > 51
----
15
81
47

query I rowsort
SELECT DISTINCT 30 * 72 + - + col1 AS col1 FROM tab2 AS cor0
----
2083
2093
2109

query I rowsort
SELECT + + ( + col2 ) + col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL - col0 + 72 AS col1 FROM tab0
----
-15
-25
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7484
SELECT ALL ( + - col1 ) + col0 + + CAST( NULL AS DECIMAL ) + - col2 + - col1 * - - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL ( + - col1 ) + col0 + + CAST ( NULL AS REAL ) + - col2 + - col1 * - - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 36 + + col1 FROM tab2
----
15
31
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT ( + ( COUNT( * ) ) ) + + 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
107

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT ( + ( COUNT ( * ) ) ) + + 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
107

query I rowsort
SELECT ALL + ( 93 ) AS col1 FROM tab0
----
93
93
93

query II rowsort
SELECT ALL col0 AS col1, 82 * + - 82 FROM tab2 AS cor0
----
46
-6724
64
-6724
75
-6724

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - ( - col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7490
SELECT + 0 DIV 26 * 11 DIV - MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT + 0 / 26 * 11 / - MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL <> 68 + + + col0 )
----

query I rowsort
SELECT DISTINCT - ( - - col0 ) * - + 57 AS col0 FROM tab1 AS cor0
----
2907
4845
5187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT ALL 75 DIV + MIN( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL 75 / + MIN ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT - col1 DIV - 58 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7494
SELECT - col1 / - 58 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT - COUNT( * ) + + 80 AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT - COUNT ( * ) + + 80 AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT 13 / + + col2 FROM tab1 cor0 WHERE ( NOT ( - col1 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + MAX( ALL + - col2 ) - 10 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7497
SELECT + MAX ( ALL + - col2 ) - 10 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT ALL - 63 * - - col0 + + col1 AS col1 FROM tab1
----
-3199
-5350
-5686

query I rowsort
SELECT col1 * - 35 * - 39 + + 24 AS col2 FROM tab2
----
105129
69639
91479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * + + 76 + + 70 col0 FROM tab0
----
7214

query I rowsort
SELECT col1 * + + 93 + 31 FROM tab2
----
4774
6262
7192

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + 39 ) + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE + - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7504
SELECT COUNT( * ) + - CAST( - + AVG ( - - col2 ) AS SIGNED ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-7504
SELECT COUNT ( * ) + - CAST ( - + AVG ( - - col2 ) AS INTEGER ) FROM tab1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT DISTINCT col0 * - col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT col0 * - col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 WHERE col1 * + - col2 + col0 - - 11 + - col2 > + - 41 * + 17 * + ( - col0 ) * col2
----

skipif mysql # not compatible
query I rowsort label-7506
SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 WHERE col1 * + - col2 + col0 - - 11 + - col2 > + - 41 * + 17 * + ( - col0 ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL + 96 + + + ( COUNT( * ) ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL + 96 + + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL 81 - + col2 AS col0 FROM tab0
----
-18
34
71

query I rowsort
SELECT ALL - 16 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT + COUNT( * ) + - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT + COUNT ( * ) + - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * 85 / 4 >= + col0 + 92
----

query II rowsort
SELECT col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT + ( - - 65 ) AS col0 FROM tab1 AS cor0
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * - col1 * + 43 / - + col2 + - + col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col1 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7518
SELECT ALL 91, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
91
NULL
91
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7518
SELECT ALL 91, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
91
NULL
91
NULL
91
NULL

query II rowsort
SELECT - col2 AS col2, col1 AS col0 FROM tab0 cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT COUNT( 91 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7520
SELECT COUNT ( 91 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT ALL + 54 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL + 54 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL + COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 98 * col1 FROM tab1
----
-1372
-4606
-490

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT col2 + 34 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7526
SELECT ALL + CAST( - SUM( DISTINCT + col0 ) AS SIGNED ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + CAST ( - SUM ( DISTINCT + col0 ) AS INTEGER ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT SUM( DISTINCT + - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT SUM ( DISTINCT + - col2 ) AS col2 FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-7528
SELECT 1 DIV - - ( + 1 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7528
SELECT 1 / - - ( + 1 ) FROM tab2
----
1
1
1

query II rowsort
SELECT + col2 * 89 AS col0, - col1 AS col1 FROM tab0
----
4183
-81
8811
-1
890
-21

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + - col2 + 60 FROM tab0 AS cor0 WHERE NOT + col1 / - - 48 IS NULL
----
-39
13
50

query I rowsort
SELECT ALL ( + + col2 ) * + - 38 AS col2 FROM tab2 AS cor0
----
-1520
-2204
-874

query II rowsort
SELECT - - col2 * + - col1, + col2 + + col1 + + 58 AS col1 FROM tab1 AS cor0
----
-1344
168
-295
122
-3196
173

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 88 * - col2 + col2 + 77 IS NULL
----

query II rowsort
SELECT - col2, col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL + SUM( ALL + - 29 ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL + SUM ( ALL + - 29 ) AS col0 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT - COUNT( * ) + ( + 35 ) AS col1 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - COUNT ( * ) + ( + 35 ) AS col1 FROM tab0
----
32

query I rowsort
SELECT + col0 + + col1 + + + ( - - 0 ) FROM tab0
----
108
96
98

query II rowsort
SELECT DISTINCT col1 * + + col0, + 59 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
2346
59
4928
59
5025
59

query I rowsort
SELECT ALL - 58 + + - 96 * + col2 AS col0 FROM tab1 AS cor0
----
-5722
-6586
-9274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 57 + 38 AS col1, 98 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 44 AS col2 FROM tab1 cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT ALL - + 59 DIV - + col1 col0 FROM tab1 cor0
----
1
11
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7545
SELECT ALL - + 59 / - + col1 col0 FROM tab1 cor0
----
1
11
4

query I rowsort
SELECT col1 * + 95 FROM tab1 AS cor0
----
1330
4465
475

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE + 31 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT col2 * + 41 + + + 55 + ( - - 79 ) AS col0 FROM tab2
----
1077
1774
2512

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT DISTINCT + COUNT( * ) col0, + 3 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7549
SELECT DISTINCT + COUNT ( * ) col0, + 3 FROM tab2
----
3
3

query I rowsort
SELECT DISTINCT + 91 + + col2 * + ( col2 ) AS col1 FROM tab0
----
191
2300
9892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 - - 94 col2 FROM tab2
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT - 5 - + col2 DIV + 45 + - col2 + + col0 AS col0 FROM tab1
----
-52
17
20

skipif mysql # not compatible
query I rowsort label-7552
SELECT - 5 - + col2 / + 45 + - col2 + + col0 AS col0 FROM tab1
----
-52
17
20

query I rowsort
SELECT DISTINCT - 70 + 5 - + col1 AS col1 FROM tab0
----
-146
-66
-86

query I rowsort
SELECT 41 - col1 AS col1 FROM tab0
----
-40
20
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) / - - col1 + + ( 18 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7556
SELECT 61 * + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-7556
SELECT 61 * + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
183

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= + 16
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT + - 69 AS col0 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT - MIN( + ( - col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7561
SELECT - MIN ( + ( - col1 ) ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - SUM( ALL + + 50 ) col2 FROM tab1
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7562
SELECT - SUM ( ALL + + 50 ) col2 FROM tab1
----
-150

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7563
SELECT DISTINCT - col1 * - + col1 * + + col0 FROM tab2 WHERE NOT - + col0 - - - CAST( NULL AS DECIMAL ) NOT BETWEEN - col1 * 69 * 51 AND + col2 + - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - col1 * - + col1 * + + col0 FROM tab2 WHERE NOT - + col0 - - - CAST ( NULL AS REAL ) NOT BETWEEN - col1 * 69 * 51 AND + col2 + - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 * - 33 FROM tab1
----
-1683
-2805
-3003

query I rowsort
SELECT DISTINCT - 87 * col1 FROM tab1
----
-1218
-4089
-435

query I rowsort
SELECT + + col2 * + 84 + - 3 FROM tab1 AS cor0
----
4953
5709
8061

query I rowsort
SELECT DISTINCT 84 + + col0 - - col2 FROM tab1
----
228
231
243

query I rowsort
SELECT ALL ( + col1 ) + - col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + + COUNT( * ) col0 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-7569
SELECT + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 5 * col0 - - ( + 97 ) FROM tab2 AS cor0 WHERE - col2 / - col1 IS NULL
----

query I rowsort
SELECT ALL col2 - + 59 * + 21 FROM tab1 AS cor0
----
-1143
-1171
-1180

query I rowsort
SELECT DISTINCT col2 * - - col0 + 56 + + - ( + col2 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 32 * - + col1 - 69 FROM tab2 AS cor0
----
-1701
-2213
-2533

query II rowsort
SELECT DISTINCT col0 AS col1, + col1 AS col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL + col2 * + 22 + - 26 * - - 42 FROM tab2
----
-212
-586
184

query I rowsort
SELECT ALL 21 * - - 76 FROM tab0
----
1596
1596
1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT DISTINCT + 11 - col2 FROM tab1 WHERE + 42 / - CAST( NULL AS SIGNED ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT + 11 - col2 FROM tab1 WHERE + 42 / - CAST ( NULL AS INTEGER ) NOT IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - - col0 ) col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT - + MAX( DISTINCT col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7580
SELECT - + MAX ( DISTINCT col2 ) FROM tab0 cor0
----
-99

query I rowsort
SELECT 30 * - - col2 FROM tab2
----
1200
1740
690

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7582
SELECT DISTINCT - 25 DIV CAST( 88 AS SIGNED ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT - 25 / CAST ( 88 AS INTEGER ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7583
SELECT ALL col2 col2, CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7583
SELECT ALL col2 col2, CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) BETWEEN - col1 AND + 43
----

query II rowsort
SELECT + - col0 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT - + 57 AS col1 FROM tab2 cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + + col2 + + col0 * - + 35 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-1689
-2916
-3117

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + ( + MAX( ALL + + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7588
SELECT + ( + MAX ( ALL + + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1 AS col0, - col0 + + col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-17
77
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT ALL - col1, 28 AS col0 FROM tab2 AS cor0
----
-51
28
-67
28
-77
28

query I rowsort
SELECT - - 54 + ( - col2 ) * + - col0 FROM tab1 AS cor0
----
4950
5069
6242

query I rowsort
SELECT ALL 22 * - - col1 FROM tab0 AS cor0
----
1782
22
462

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT ( - 15 ) * - col2 + - col2 * - col0 FROM tab2
----
1403
3160
5220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - col1 col0 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT ALL + 35 + MIN( ALL - - col1 ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + 35 + MIN ( ALL - - col1 ) AS col0 FROM tab0
----
36

query I rowsort
SELECT col2 * col2 FROM tab1 WHERE + 55 IS NOT NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT SUM( DISTINCT + 39 ) * + SUM( - 39 ) FROM tab1
----
-4563

skipif mysql # not compatible
query I rowsort label-7600
SELECT SUM ( DISTINCT + 39 ) * + SUM ( - 39 ) FROM tab1
----
-4563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 col2 FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT + - COUNT( * ) FROM tab0 WHERE NULL >= 37 + col0
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT + - COUNT ( * ) FROM tab0 WHERE NULL >= 37 + col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT DISTINCT - COUNT( * ) AS col0, - 48 FROM tab1
----
-3
-48

skipif mysql # not compatible
query II rowsort label-7603
SELECT DISTINCT - COUNT ( * ) AS col0, - 48 FROM tab1
----
-3
-48

query I rowsort
SELECT DISTINCT - 18 + - + 72 AS col2 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - ( + + COUNT( DISTINCT - 44 ) ) + + COUNT( 60 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7605
SELECT - ( + + COUNT ( DISTINCT - 44 ) ) + + COUNT ( 60 ) FROM tab2
----
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col0 + col2 NOT BETWEEN + col0 * + - 61 AND + 23 )
----

query II rowsort
SELECT - + 19 AS col2, - col1 FROM tab0 AS cor0
----
-19
-1
-19
-21
-19
-81

query I rowsort
SELECT DISTINCT - - col1 - + - col2 AS col0 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL + - COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + - COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 * - col2 - + col2 AS col2 FROM tab1 AS cor0
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT SUM( DISTINCT + + 7 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT SUM ( DISTINCT + + 7 ) FROM tab2
----
7

query I rowsort
SELECT ALL + 20 * - ( - - col1 ) AS col2 FROM tab1
----
-100
-280
-940

query I rowsort
SELECT - col0 * - col1 - + 18 FROM tab0
----
1197
1809
79

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab2 WHERE NULL > ( - col0 ) / 85 + col2 - - 43
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT ALL - ( - 86 ) FROM tab0 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT + + SUM( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-7617
SELECT + + SUM ( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT + SUM( ALL col0 ) * 3 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT + SUM ( ALL col0 ) * 3 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT ( + 17 ) AS col1 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT 48 DIV - col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7620
SELECT 48 / - col2 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL MAX( DISTINCT - 32 ) AS col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL MAX ( DISTINCT - 32 ) AS col1 FROM tab0 AS cor0
----
-32

query II rowsort
SELECT DISTINCT - ( + 98 ) * - ( 91 ) + + + col1 AS col2, col2 AS col1 FROM tab0 AS cor0
----
8919
99
8939
10
8999
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 25 * + + col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 84 * - - 6 FROM tab2 cor0
----
504

query I rowsort
SELECT ALL - 97 + + 87 FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT MIN( + col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7626
SELECT MIN ( + col0 ) col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN NULL AND - col1 + + 11 ) ) OR NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7627
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN NULL AND - col1 + + 11 ) ) OR NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT - - col2 * + col2 NOT IN ( + col1 / + + col2 )
----

query I rowsort
SELECT ALL + + ( - col1 ) AS col0 FROM tab1 WHERE - - ( col2 ) IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT ALL col0 AS col0, - col1 AS col1 FROM tab1
----
51
-14
85
-5
91
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col2 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ALL + col1 * - 13 + - 62 AS col1 FROM tab2
----
-1063
-725
-933

query I rowsort
SELECT ALL + 18 + + - col0 FROM tab2
----
-28
-46
-57

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT + col2 * - col2 IS NOT NULL AND NOT - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT DISTINCT + 79 * + - ( COUNT( * ) ) + - + ( + + MAX( - col1 ) ) + + - 99 FROM tab1
----
-331

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT + 79 * + - ( COUNT ( * ) ) + - + ( + + MAX ( - col1 ) ) + + - 99 FROM tab1
----
-331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT COUNT( * ) DIV - - COUNT( ALL - 85 ) + 41 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7636
SELECT COUNT ( * ) / - - COUNT ( ALL - 85 ) + 41 FROM tab2 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7637
SELECT + + col0 DIV + + col1 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7637
SELECT + + col0 / + + col1 AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT ALL - col2 DIV - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL - col2 / - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7639
SELECT 67 AS col1, + col1 + col2 + - 87 DIV + col2 + + - 36 FROM tab2 AS cor0
----
67
35
67
79
67
88

skipif mysql # not compatible
query II rowsort label-7639
SELECT 67 AS col1, + col1 + col2 + - 87 / + col2 + + - 36 FROM tab2 AS cor0
----
67
35
67
79
67
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT MAX( DISTINCT + ( + + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7640
SELECT MAX ( DISTINCT + ( + + col1 ) ) FROM tab1
----
47

query III rowsort
SELECT * FROM tab0 WHERE + + col2 NOT BETWEEN + + col1 AND NULL
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + ( - col1 ) + + - col2 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT + col0 - - CAST( 81 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
127
145
156

skipif mysql # not compatible
query I rowsort label-7643
SELECT + col0 - - CAST ( 81 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
127
145
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * 32 * col1 <= col1
----

query I rowsort
SELECT + col0 - + ( - col1 ) + col2 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7646
SELECT * FROM tab2 AS cor0 WHERE 37 + CAST( NULL AS SIGNED ) >= 16 + + col1
----

skipif mysql # not compatible
query III rowsort label-7646
SELECT * FROM tab2 AS cor0 WHERE 37 + CAST ( NULL AS INTEGER ) >= 16 + + col1
----

query I rowsort
SELECT ALL col2 - + 2 FROM tab0 AS cor0
----
45
8
97

query I rowsort
SELECT DISTINCT 74 * + + ( + col0 ) - col0 * - col0 + col2 FROM tab0 AS cor0
----
1382
14017
16686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT DISTINCT + col1 - + CAST( NULL AS SIGNED ) + - 48 + + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) + - 48 + + col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7650
SELECT COUNT( * ) + - COUNT( * ) + + 28 DIV + - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7650
SELECT COUNT ( * ) + - COUNT ( * ) + + 28 / + - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT + 86 DIV - 87 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT + 86 / - 87 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 90 * + col1 - 89 FROM tab0 AS cor0
----
-179
-1979
-7379

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL + - MAX( col0 ) * - - COUNT( * ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL + - MAX ( col0 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-291

query I rowsort
SELECT DISTINCT col0 * + - 61 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7655
SELECT DISTINCT + 54 AS col1, + 54 DIV - SUM( ALL - col1 ) FROM tab2
----
54
0

skipif mysql # not compatible
query II rowsort label-7655
SELECT DISTINCT + 54 AS col1, + 54 / - SUM ( ALL - col1 ) FROM tab2
----
54
0

query I rowsort
SELECT col0 * - + 63 FROM tab0
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT - COUNT( * ) col0 FROM tab0 WHERE NOT ( ( NOT ( col1 < col2 ) ) )
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7657
SELECT - COUNT ( * ) col0 FROM tab0 WHERE NOT ( ( NOT ( col1 < col2 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT + MIN( ALL - col2 ) FROM tab1 WHERE NOT + 4 * - col1 + + col1 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + MIN ( ALL - col2 ) FROM tab1 WHERE NOT + 4 * - col1 + + col1 IS NULL
----
-96

query II rowsort
SELECT DISTINCT + 59, + col1 FROM tab1
----
59
14
59
47
59
5

query I rowsort
SELECT + - col1 + - 5 - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT - 64 * + col2 AS col1 FROM tab2 AS cor0
----
-1472
-2560
-3712

query I rowsort
SELECT DISTINCT + col0 * + col0 * - + 93 AS col2 FROM tab0 cor0
----
-20925
-703917
-875037

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT + + COUNT( + col1 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7663
SELECT + + COUNT ( + col1 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT + ( + - 74 ) AS col2 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT - MIN( DISTINCT 81 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT - MIN ( DISTINCT 81 ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT col0 * - col0 - 28 * + col1 FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT + ( + col2 ) IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 + - 47 * 87 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( - 93 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT - col1 - col0 DIV col0 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-7670
SELECT - col1 - col0 / col0 FROM tab1
----
-15
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT - 36 - SUM( ALL + col2 + col2 * - col0 ) col2 FROM tab0
----
10986

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7671
SELECT - 36 - SUM ( ALL + col2 + col2 * - col0 ) col2 FROM tab0
----
10986

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL - COUNT( * ) * + SUM( DISTINCT - ( 71 ) ) + 35 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT - ( 71 ) ) + 35 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT SUM( DISTINCT - ( + 65 ) ) AS col2 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-7673
SELECT SUM ( DISTINCT - ( + 65 ) ) AS col2 FROM tab1
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col1 FROM tab0
----
-61

query I rowsort
SELECT DISTINCT - 53 * col2 FROM tab0 WHERE NULL > - col0 - col0
----

query I rowsort
SELECT ALL col2 - - 90 AS col2 FROM tab0
----
100
137
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT 23 * MIN( ( col2 ) ) AS col1 FROM tab1
----
1357

skipif mysql # not compatible
query I rowsort label-7677
SELECT 23 * MIN ( ( col2 ) ) AS col1 FROM tab1
----
1357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT + ( ( - CAST( NULL AS SIGNED ) ) ) * 42 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT + ( ( - CAST ( NULL AS INTEGER ) ) ) * 42 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - 50 * MIN( DISTINCT - col0 ) FROM tab2
----
3750

skipif mysql # not compatible
query I rowsort label-7679
SELECT - 50 * MIN ( DISTINCT - col0 ) FROM tab2
----
3750

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab1 WHERE ( - col1 * col2 + col2 * col0 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < - ( - col1 ) + col2
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND + 88 + 82
----

query I rowsort
SELECT ALL 63 + + 68 AS col2 FROM tab1
----
131
131
131

query I rowsort
SELECT DISTINCT - 9 * - 87 AS col0 FROM tab1
----
783

query I rowsort
SELECT ( 79 ) FROM tab2 WHERE NOT NULL BETWEEN ( + 49 ) AND ( col1 / - col0 )
----

query I rowsort
SELECT 3 FROM tab0 WHERE col2 + col1 NOT IN ( - col0 * + col0 )
----
3
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * + col1 AND 39 * col2
----

query I rowsort
SELECT ALL 60 * - 36 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND + col2
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col2 + + 15 AND - col1 * - col0 - - 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + - col2 col0 FROM tab0
----
-109
-146
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT DISTINCT - 57 * - COUNT( * ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT - 57 * - COUNT ( * ) FROM tab2
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7692
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL IN ( + CAST( - ( + col0 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL IN ( + CAST ( - ( + col0 ) AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( col2 ) + col0 * 56 ) NOT IN ( 68 / + col0 - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7694
SELECT ALL + 80 DIV COUNT( * ) + ( + COUNT( * ) ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + 80 / COUNT ( * ) + ( + COUNT ( * ) ) AS col2 FROM tab1
----
29

query I rowsort
SELECT col1 * col0 + - col2 FROM tab2
----
2323
4888
4967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT DISTINCT 4 + + COUNT( * ) * + 9 FROM tab2 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IN ( col0 * col1 )
----
4

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT 4 + + COUNT ( * ) * + 9 FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IN ( col0 * col1 )
----
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 1 >= NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 FROM tab2 AS cor0 WHERE NOT ( - 54 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 47 * col2 AS col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 0 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 0 <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( + 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 59 * - col1 FROM tab1 AS cor0
----
2773
295
826

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( NULL ) OR NOT 10 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7704
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 7 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT MAX( col2 ) * + MAX( DISTINCT col0 * + 81 ) AS col0 FROM tab0
----
777843

skipif mysql # not compatible
query I rowsort label-7706
SELECT MAX ( col2 ) * + MAX ( DISTINCT col0 * + 81 ) AS col0 FROM tab0
----
777843

query I rowsort
SELECT + 28 FROM tab0 WHERE NOT ( col0 ) <= ( - 93 * 43 + col1 )
----
28
28
28

query I rowsort
SELECT ALL - col0 + + col0 * 91 AS col1 FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
4140
5760
6750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT DISTINCT ( - 37 ) AS col1 FROM tab1 WHERE NOT - col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
-37

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT ( - 37 ) AS col1 FROM tab1 WHERE NOT - col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-37

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 + col0 * 63 ) BETWEEN ( - col1 ) AND NULL OR col2 NOT BETWEEN NULL AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 66 * - - col0 + - col1 FROM tab2 cor0
----
-3087
-4301
-5017

query I rowsort
SELECT ALL - + 2 * - col1 - + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + ( col2 ) * + col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT DISTINCT - 63 * - COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT - 63 * - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( + - col1 ) AS col0 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL - MIN( - ( + 86 ) ) * COUNT( * ) FROM tab1 cor0
----
258

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - MIN ( - ( + 86 ) ) * COUNT ( * ) FROM tab1 cor0
----
258

query I rowsort
SELECT ALL - 35 AS col0 FROM tab2 AS cor0 WHERE NOT ( 11 ) BETWEEN 76 AND ( NULL ) OR ( 6 ) IS NOT NULL
----
-35
-35
-35

query I rowsort
SELECT - 38 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 + - 7 FROM tab1 cor0
----
44
78
84

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= + col1 + + col1 AND NOT NULL NOT BETWEEN + 91 AND col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + - 56 col2 FROM tab2
----
40
40
40

query I rowsort
SELECT - col1 + 1 FROM tab0
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL COUNT( * ) * - COUNT( + + col0 ) + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL COUNT ( * ) * - COUNT ( + + col0 ) + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL 23 + col0 FROM tab1
----
108
114
74

query I rowsort
SELECT + col1 + + ( col1 ) AS col2 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT ALL CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 9 * col1 col0 FROM tab0
----
108
199
776

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT COUNT( * ) - + + 23 - + COUNT( * ) col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7729
SELECT DISTINCT COUNT ( * ) - + + 23 - + COUNT ( * ) col1 FROM tab1 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 + + col1 + col0 / + col0 ) BETWEEN ( col1 ) AND ( - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL + COUNT( * ) * + 35 AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + COUNT ( * ) * + 35 AS col2 FROM tab1 AS cor0
----
105

query I rowsort
SELECT ALL - col1 * col2 + + 34 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - - col1 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT - 39, col0 AS col0 FROM tab1 AS cor0
----
-39
51
-39
85
-39
91

query I rowsort
SELECT DISTINCT + - 38 AS col1 FROM tab1 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 * + 61 + + 88 + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 * + 61 + + 88 + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7742
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT - 16 * + - 78 AS col0 FROM tab0 AS cor0
----
1248
1248
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL - COUNT( - + 54 ) * + - COUNT( * ) * + 8 AS col2 FROM tab2, tab0 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - COUNT ( - + 54 ) * + - COUNT ( * ) * + 8 AS col2 FROM tab2, tab0 AS cor0
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT ( 12 ) NOT IN ( 45 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( 12 ) NOT IN ( 45 + + col2 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7746
SELECT COUNT( * ) DIV - MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT COUNT ( * ) / - MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 67 + 32 AS col0 FROM tab1 WHERE NOT ( + 81 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 86 NOT BETWEEN NULL AND 90 + - - 38
----

query I rowsort
SELECT ( + + ( col2 ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT 34 * - + 98 * - 84 FROM tab1 AS cor0
----
279888
279888
279888

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + 94 + col1, - 74 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7752
SELECT CAST( + col1 AS SIGNED ) + + - col0 + + col0 + - 98 AS col0, - col0 + + 79 + - col2 * 93 FROM tab0
----
-17
-4307
-77
-938
-97
-9225

skipif mysql # not compatible
query II rowsort label-7752
SELECT CAST ( + col1 AS INTEGER ) + + - col0 + + col0 + - 98 AS col0, - col0 + + 79 + - col2 * 93 FROM tab0
----
-17
-4307
-77
-938
-97
-9225

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL - 67 * + + ( - COUNT( * ) ) + - + 20 AS col1 FROM tab1
----
181

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - 67 * + + ( - COUNT ( * ) ) + - + 20 AS col1 FROM tab1
----
181

query II rowsort
SELECT DISTINCT - col2 + col2, col1 AS col0 FROM tab0
----
0
1
0
21
0
81

query I rowsort
SELECT - col0 * 55 + - col1 AS col2 FROM tab2 cor0
----
-2581
-3597
-4192

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL MAX( DISTINCT + 8 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL MAX ( DISTINCT + 8 ) FROM tab1 AS cor0
----
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( 38 ) + - - ( + 1 ) IN ( + - col2 )
----

query I rowsort
SELECT DISTINCT - 71 * - - 74 + + col1 + - col2 FROM tab2 AS cor0
----
-5217
-5226
-5245

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT ALL + col0 DIV - - col2 AS col1 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + col0 / - - col2 AS col1 FROM tab1 cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7760
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND 1 + - + col0
----

skipif mysql # not compatible
query III rowsort label-7760
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND 1 + - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT - col1 AS col1, - ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL - COUNT( DISTINCT - 76 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - COUNT ( DISTINCT - 76 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 71 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 * + - 66 - + + 29 * - col0 col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT - CAST( NULL AS SIGNED ) * - + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT MIN( - + 68 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-7767
SELECT MIN ( - + 68 ) FROM tab0
----
-68

query I rowsort
SELECT ALL 20 + - 24 FROM tab2
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT COUNT( * ) + + - 47 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT COUNT ( * ) + + - 47 FROM tab2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT 7 - + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT 7 - + COUNT ( * ) FROM tab0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) * - MAX( - + col2 ) + + - 53 * + 13 - + + 63 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - MAX ( - + col2 ) + + - 53 * + 13 - + + 63 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL - COUNT( * ) * - - 70 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL - COUNT ( * ) * - - 70 FROM tab2 AS cor0
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT ALL + CAST( + MIN( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL + CAST ( + MIN ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT MIN( ALL - 12 ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT MIN ( ALL - 12 ) FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7775
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 < + col0 * + CAST( NULL AS SIGNED ) OR - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7775
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 < + col0 * + CAST ( NULL AS INTEGER ) OR - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7776
SELECT DISTINCT + ( + COUNT( * ) ) AS col1, MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7776
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1, MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - + 89 AS col1 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7779
SELECT + COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-7779
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT ALL ( + - 24 ) FROM tab2
----
-24
-24
-24

query III rowsort
SELECT * FROM tab2 WHERE NOT 82 NOT BETWEEN - col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - col0, - 9 )
----

query I rowsort
SELECT - 28 * + col0 FROM tab1
----
-1428
-2380
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL + 67 - - ( + MIN( col2 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + 67 - - ( + MIN ( col2 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT DISTINCT col1 DIV + ( + + 34 ) AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT col1 / + ( + + 34 ) AS col0 FROM tab0
----
0
2

query I rowsort
SELECT ALL ( - 35 ) FROM tab0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + - col0, - 13 col2 FROM tab2 WHERE NOT - col0 IS NULL
----
-141
-13
-142
-13
-97
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7788
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 - - CAST( NULL AS SIGNED ) - + CAST( - + col1 AS SIGNED ) * col2 NOT IN ( - col1 * - col1 + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7788
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 - - CAST ( NULL AS INTEGER ) - + CAST ( - + col1 AS INTEGER ) * col2 NOT IN ( - col1 * - col1 + col0 ) )
----

query I rowsort
SELECT 71 AS col2 FROM tab2 AS cor0 WHERE NOT 46 + col0 IS NOT NULL
----

query I rowsort
SELECT + 76 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT ALL - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT DISTINCT + 21 AS col2, + col0 AS col1 FROM tab0 AS cor0
----
21
15
21
87
21
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT + + 7 * - ( - + 86 ) * COUNT( * ) AS col2 FROM tab2 WHERE - col0 BETWEEN 11 + + 70 AND ( + col0 ) * - 20
----
0

skipif mysql # not compatible
query I rowsort label-7793
SELECT + + 7 * - ( - + 86 ) * COUNT ( * ) AS col2 FROM tab2 WHERE - col0 BETWEEN 11 + + 70 AND ( + col0 ) * - 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 28 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 28 + col1 IS NOT NULL
----
0

query I rowsort
SELECT - + AVG ( - 38 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT - - MAX( - + 41 ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - - MAX ( - + 41 ) FROM tab2 AS cor0
----
-41

query II rowsort
SELECT + col0 AS col0, col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT - col1 / col0 / - col1 + col1 - + CAST( NULL AS SIGNED ) - - - 2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT - col1 / col0 / - col1 + col1 - + CAST ( NULL AS INTEGER ) - - - 2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 45 AS col0, col0 AS col0 FROM tab1 AS cor0
----
-45
51
-45
85
-45
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT 50 + - MIN( DISTINCT + 28 ) AS col1 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7800
SELECT 50 + - MIN ( DISTINCT + 28 ) AS col1 FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT + 64 + - - col1 * col2 * col0 * col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT + 64 + - - col1 * col2 * col0 * col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE + + 16 + col2 + + col2 >= ( + col0 )
----
59
68
96

query II rowsort
SELECT DISTINCT + 49 + - col2, + 17 AS col1 FROM tab1
----
-10
17
-19
17
-47
17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - 47 - col2 AND + 28 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT COUNT( * ) + COUNT( ALL 17 ) + + COUNT( * ) - 48 AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL 17 ) + + COUNT ( * ) - 48 AS col1 FROM tab1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7806
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) * 79
----

skipif mysql # not compatible
query III rowsort label-7806
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) * 79
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col1 ) AS col2, - col2 col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT COUNT( + col2 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE + 5 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7808
SELECT COUNT ( + col2 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE + 5 + col1 IS NULL
----
0

query I rowsort
SELECT ALL 42 - + 82 AS col2 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT col2 * - col2 + + + col2 AS col1 FROM tab2 AS cor0
----
-1560
-3306
-506

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col1 <> - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7813
SELECT DISTINCT ( + ( + - col0 ) ) * + 36 / col0 * - - CAST( NULL AS SIGNED ), - 78 AS col0 FROM tab0
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-7813
SELECT DISTINCT ( + ( + - col0 ) ) * + 36 / col0 * - - CAST ( NULL AS INTEGER ), - 78 AS col0 FROM tab0
----
NULL
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7814
SELECT * FROM tab0 WHERE NOT - - ( + - CAST( NULL AS DECIMAL ) ) * - - col2 - - ( col2 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7814
SELECT * FROM tab0 WHERE NOT - - ( + - CAST ( NULL AS REAL ) ) * - - col2 - - ( col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL 91 * - SUM( + col1 ) AS col2 FROM tab2
----
-17745

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL 91 * - SUM ( + col1 ) AS col2 FROM tab2
----
-17745

query III rowsort
SELECT * FROM tab1 WHERE NOT 50 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query II rowsort
SELECT ALL + ( ( - 76 ) ) AS col2, + col1 * 85 FROM tab0 AS cor0
----
-76
1785
-76
6885
-76
85

query I rowsort
SELECT ALL + col2 - 26 AS col0 FROM tab1 AS cor0 WHERE col0 + - ( + col0 ) * + + 95 * - col2 / + 82 NOT BETWEEN ( - col1 - col2 ) AND + col2
----
33
42
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT DISTINCT - - MAX( + + 63 ) AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT - - MAX ( + + 63 ) AS col2 FROM tab2 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT DISTINCT - 85 AS col0 FROM tab2 AS cor0 WHERE NOT - ( - + col1 ) > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - 85 AS col0 FROM tab2 AS cor0 WHERE NOT - ( - + col1 ) > + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 * 87 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - col2
----

query I rowsort
SELECT - ( + ( + - col0 ) ) FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL + - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) < - col0
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < - col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7825
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * - 77 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 77 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * - - col1 * 24, col0 * - + col0 * 92 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + - 21 ) * - col0 - col2, - 13 * 7 col0 FROM tab2 AS cor0
----
1304
-91
1517
-91
943
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT DISTINCT col2 DIV + 57 col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7828
SELECT DISTINCT col2 / + 57 col2 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + 69 * - ( + COUNT( * ) ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-7829
SELECT + 69 * - ( + COUNT ( * ) ) FROM tab2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - MIN( ALL ( - + col0 ) ) AS col1 FROM tab1 WHERE NOT + 44 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT - MIN ( ALL ( - + col0 ) ) AS col1 FROM tab1 WHERE NOT + 44 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT ALL - col2 + - col0 DIV + 50 AS col2 FROM tab0
----
-100
-11
-47

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - col2 + - col0 / + 50 AS col2 FROM tab0
----
-100
-11
-47

query I rowsort
SELECT DISTINCT + col0 * + - col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT + ( COUNT( * ) ) + + - COUNT( ALL - - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + ( COUNT ( * ) ) + + - COUNT ( ALL - - col1 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7834
SELECT + CAST( NULL AS SIGNED ) * + 29, - 5 col2 FROM tab2
----
NULL
-5
NULL
-5
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7834
SELECT + CAST ( NULL AS INTEGER ) * + 29, - 5 col2 FROM tab2
----
NULL
-5
NULL
-5
NULL
-5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 34 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL + COUNT( + col1 ) + 14 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + COUNT ( + col1 ) + 14 FROM tab2
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 79 - col1 col2 FROM tab2
----
-79
-79
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7838
SELECT - CAST( NULL AS SIGNED ) + - 29 + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT - CAST ( NULL AS INTEGER ) + - 29 + + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7839
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col2 AS col0, + col2 + + 68 AS col1 FROM tab1 AS cor0
----
-59
127
-68
136
-96
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT + - col2 FROM tab2 WHERE ( + col2 * - 16 * + CAST( NULL AS SIGNED ) ) BETWEEN col2 AND + col2
----

skipif mysql # not compatible
query I rowsort label-7841
SELECT + - col2 FROM tab2 WHERE ( + col2 * - 16 * + CAST ( NULL AS INTEGER ) ) BETWEEN col2 AND + col2
----

query I rowsort
SELECT ALL - 88 * + - col1 FROM tab0
----
1848
7128
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7843
SELECT - + col2 DIV - 1 AS col2 FROM tab2 WHERE - col1 - + 45 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7843
SELECT - + col2 / - 1 AS col2 FROM tab2 WHERE - col1 - + 45 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 20 + - col2 FROM tab2
----
-20
-3
-38

query I rowsort
SELECT + col0 * col1 - + - 6 + col0 + col1 FROM tab2
----
2449
5075
5173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT - CAST( NULL AS SIGNED ) - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT - CAST ( NULL AS INTEGER ) - - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + - 91 ) FROM tab0
----
-91

query I rowsort
SELECT ALL ( ( - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT ALL + col0, + col2 FROM tab2 cor0
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 52 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + 1 * - MIN( ALL - 22 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 1 * - MIN ( ALL - 22 ) FROM tab2 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7853
SELECT col0 * + col2 DIV + - col2 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7853
SELECT col0 * + col2 / + - col2 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT + 81 DIV - + col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT + 81 / - + col0 AS col0 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + - - col0 col2 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col1 * + col0 + ( - - col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 * - col1 + col2 - col2 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-7860
SELECT + col0 * + col2 DIV + col2 AS col0, + 96 + + + col0 + - 30 FROM tab1 AS cor0
----
51
117
85
151
91
157

skipif mysql # not compatible
query II rowsort label-7860
SELECT + col0 * + col2 / + col2 AS col0, + 96 + + + col0 + - 30 FROM tab1 AS cor0
----
51
117
85
151
91
157

onlyif mysql # DIV for integer division: 
query II rowsort label-7861
SELECT DISTINCT col1 DIV + col1 AS col0, + 62 AS col1 FROM tab0 AS cor0
----
1
62

skipif mysql # not compatible
query II rowsort label-7861
SELECT DISTINCT col1 / + col1 AS col0, + 62 AS col1 FROM tab0 AS cor0
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - MAX( col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7862
SELECT - MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT 1 * - 79 FROM tab2
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + ( - 64 ) col2 FROM tab2
----
25
25
25

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT COUNT( * ) + + 51 AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7866
SELECT COUNT ( * ) + + 51 AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT 59 / + - col0 + 35 + + 49 > - - ( + - 43 )
----

query I rowsort
SELECT ALL - 8 * + 27 FROM tab0 AS cor0
----
-216
-216
-216

query I rowsort
SELECT + 0 * 10 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL - + 14 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL - + 14 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
42

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab0 cor1 ON ( NOT ( NULL IS NOT NULL ) )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL MIN( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL MIN ( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51

query I rowsort
SELECT + ( 77 ) + + 34 AS col0 FROM tab1 AS cor0
----
111
111
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL - COUNT( * ) - + 4 AS col0 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL - COUNT ( * ) - + 4 AS col0 FROM tab1 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT ALL - - col1 * - + CAST( NULL AS SIGNED ) + - col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL - - col1 * - + CAST ( NULL AS INTEGER ) + - col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL - MAX( - - ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - MAX ( - - ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
51

query II rowsort
SELECT ALL + 44 AS col2, - col1 * col1 FROM tab1
----
44
-196
44
-2209
44
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7878
SELECT ALL col0, col2 * - + CAST( NULL AS SIGNED ) * - ( + ( - 84 ) ) / col1 + col2 AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL col0, col2 * - + CAST ( NULL AS INTEGER ) * - ( + ( - 84 ) ) / col1 + col2 AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - 86 / - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT + MIN( DISTINCT - ( + - col0 ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT + MIN ( DISTINCT - ( + - col0 ) ) AS col0 FROM tab0
----
15

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT NULL < + 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT ( - - CAST( - col2 AS SIGNED ) ) * 19 FROM tab0 AS cor0
----
-1881
-190
-893

skipif mysql # not compatible
query I rowsort label-7882
SELECT ( - - CAST ( - col2 AS INTEGER ) ) * 19 FROM tab0 AS cor0
----
-1881
-190
-893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 91 col2, 73 AS col2 FROM tab1 AS cor0
----
91
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7884
SELECT ALL - + COUNT( * ) DIV + - 10 FROM tab2 WHERE + - 51 * + 19 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL - + COUNT ( * ) / + - 10 FROM tab2 WHERE + - 51 * + 19 = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7885
SELECT + 46 col2, - MAX( - - col2 ) - - 48 col1 FROM tab2
----
46
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7885
SELECT + 46 col2, - MAX ( - - col2 ) - - 48 col1 FROM tab2
----
46
-10

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - + col2 / col1 >= + 85
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT + 53, + COUNT( * ) AS col0 FROM tab0
----
53
3

skipif mysql # not compatible
query II rowsort label-7887
SELECT + 53, + COUNT ( * ) AS col0 FROM tab0
----
53
3

query II rowsort
SELECT DISTINCT 98, 95 AS col0 FROM tab0
----
98
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7889
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT BETWEEN CAST( NULL AS SIGNED ) * - col1 AND - + col1 * + col2 * + ( - 87 ) + + + ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-7889
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT BETWEEN CAST ( NULL AS INTEGER ) * - col1 AND - + col1 * + col2 * + ( - 87 ) + + + ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT + col2 * + col1 + 8 - + ( col1 ) DIV + 84 * - col1 * - + col2 * 55 col2 FROM tab0 AS cor0
----
107
218
3815

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7890
SELECT + col2 * + col1 + 8 - + ( col1 ) / + 84 * - col1 * - + col2 * 55 col2 FROM tab0 AS cor0
----
107
218
3815

query I rowsort
SELECT DISTINCT + + 57 AS col2 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + MAX( + ( - - 7 ) ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7892
SELECT + MAX ( + ( - - 7 ) ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL col1 * + 57 FROM tab1 AS cor0
----
2679
285
798

query I rowsort
SELECT + - col0 + - 61 FROM tab2 cor0
----
-107
-125
-136

query I rowsort
SELECT - 37 + - col0 * - + ( col1 ) AS col2 FROM tab0 AS cor0
----
1178
1790
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT - + SUM( ALL col1 ) + - - SUM( ALL 44 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7896
SELECT - + SUM ( ALL col1 ) + - - SUM ( ALL 44 ) FROM tab0 AS cor0
----
29

query II rowsort
SELECT DISTINCT - col2 * - col0, ( + col2 ) AS col2 FROM tab0 cor0
----
705
47
870
10
9603
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + col0 ) + + 2 <= + - col2 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT ALL + - col2 DIV + 21 - + 38 DIV - col2 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL + - col2 / + 21 - + 38 / - col2 AS col2 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7900
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + CAST( + 96 AS SIGNED ) AS SIGNED ) NOT BETWEEN NULL AND col0 + col0
----

skipif mysql # not compatible
query III rowsort label-7900
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + CAST ( + 96 AS INTEGER ) AS INTEGER ) NOT BETWEEN NULL AND col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT DISTINCT col0 + + CAST( + + 30 AS SIGNED ) + - 69 * - - 55 * - col0 FROM tab0
----
330282
368242
56970

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT col0 + + CAST ( + + 30 AS INTEGER ) + - 69 * - - 55 * - col0 FROM tab0
----
330282
368242
56970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT - ( col2 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT - ( col2 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - + col0 - col2
----

query I rowsort
SELECT ALL - 99 + - ( - col0 ) AS col0 FROM tab2
----
-24
-35
-53

query I rowsort
SELECT DISTINCT col0 * - + 99 * - 27 FROM tab0
----
232551
259281
40095

query II rowsort
SELECT ALL - 50 + + 84 AS col0, ( - 25 ) * + 52 FROM tab1
----
34
-1300
34
-1300
34
-1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7907
SELECT ALL - COUNT( * ) / + - CAST( NULL AS SIGNED ) AS col1, 91 * + COUNT( * ) - + COUNT( 71 ) FROM tab0
----
NULL
270

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL - COUNT ( * ) / + - CAST ( NULL AS INTEGER ) AS col1, 91 * + COUNT ( * ) - + COUNT ( 71 ) FROM tab0
----
NULL
270

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7908
SELECT - CAST( + ( - 53 ) AS SIGNED ) AS col2, 53 FROM tab2
----
53
53
53
53
53
53

skipif mysql # not compatible
query II rowsort label-7908
SELECT - CAST ( + ( - 53 ) AS INTEGER ) AS col2, 53 FROM tab2
----
53
53
53
53
53
53

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT NULL IN ( - col2, 68 - col0, - 24 )
----

query I rowsort
SELECT + 23 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL + 31 - + + col2 FROM tab0 cor0
----
-16
-68
21

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND - + ( - - col1 )
----
1
21
81

query I rowsort
SELECT DISTINCT + 81 + - 53 AS col0 FROM tab0 AS cor0
----
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 32 + col0 * + 59 col2 FROM tab2 cor0
----
2631
3667
4326

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL + COUNT( * ) - - 72 AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + COUNT ( * ) - - 72 AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7917
SELECT COUNT( * ) DIV + 53 * 65 * + ( - 50 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7917
SELECT COUNT ( * ) / + 53 * 65 * + ( - 50 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT 33 FROM tab0 AS cor0 WHERE + col1 - + + col1 + - col0 IS NULL
----

query I rowsort
SELECT + 60 * + + 38 AS col2 FROM tab2
----
2280
2280
2280

query I rowsort
SELECT ALL + 48 + + 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to abec6b3410aa771c209e22ecdf81edba

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + COUNT( * ) * + 20 AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7921
SELECT + COUNT ( * ) * + 20 AS col2 FROM tab0
----
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 13 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + 97 AS col2 FROM tab2 AS cor0
----
-4947
-6499
-7469

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 40 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7925
SELECT col0 DIV - + 24 AS col0 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-7925
SELECT col0 / - + 24 AS col0 FROM tab1 AS cor0
----
-2
-3
-3

query I rowsort
SELECT 79 * + + 41 AS col1 FROM tab0
----
3239
3239
3239

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT + 6 + + - 51 DIV + 36 AS col1 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-7927
SELECT + 6 + + - 51 / + 36 AS col1 FROM tab1
----
5
5
5

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT + col1 + + col2 / + - col2 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT col1 + - col0 - 69 AS col0 FROM tab0
----
-135
-165
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7930
SELECT ALL - COUNT( * ) DIV + 31 * + + COUNT( * ) AS col2 FROM tab2 WHERE - + col1 <> - + 25
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL - COUNT ( * ) / + 31 * + + COUNT ( * ) AS col2 FROM tab2 WHERE - + col1 <> - + 25
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT + 16 * - CAST( NULL AS SIGNED ) + + - CAST( - col1 AS SIGNED ) + + + col2 * + - col1 FROM tab1 WHERE col1 * + ( col1 ) / col0 * col1 - + 40 - - + 31 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7931
SELECT + 16 * - CAST ( NULL AS INTEGER ) + + - CAST ( - col1 AS INTEGER ) + + + col2 * + - col1 FROM tab1 WHERE col1 * + ( col1 ) / col0 * col1 - + 40 - - + 31 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7932
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + - COUNT( - 8 ) + - 18 + - - 55 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7932
SELECT DISTINCT CAST ( NULL AS REAL ) + + - COUNT ( - 8 ) + - 18 + - - 55 col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 88 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( + 47 ) AS col1 FROM tab2 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, 71 col1 FROM tab1 AS cor0
----
-14
71
-47
71
-5
71

query I rowsort
SELECT DISTINCT AVG ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 20 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL 87 + - + col1 FROM tab2 AS cor0
----
10
20
36

query I rowsort
SELECT DISTINCT + col0 * - 81 AS col1 FROM tab2 AS cor0
----
-3726
-5184
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT + + SUM( ALL col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-7940
SELECT + + SUM ( ALL col1 ) FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - - SUM( DISTINCT - - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7941
SELECT - - SUM ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT + + SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7942
SELECT + + SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - + ( - 93 ) AS col1 FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT - col0 / + - 76 + + + col1 FROM tab2 AS cor0 WHERE col1 - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 83 * col0 FROM tab1
----
-4233
-7055
-7553

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * col0 * col2 ) IN ( col1 + - 9, + col1 + + ( - + col2 ) + 23, + + col1 * - + col1 + + col0 + + 71, + ( col2 ) + - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + - col2 AS col0 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NOT ( NOT + 88 > - + 26 + 8 / + - col2 )
----

query I rowsort
SELECT + 84 * 46 AS col2 FROM tab2
----
3864
3864
3864

query II rowsort
SELECT DISTINCT + - 19 AS col0, - col1 FROM tab2 AS cor0
----
-19
-51
-19
-67
-19
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - 35 AS col2 FROM tab0
----
-20
52
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT + 75 * - - COUNT( * ) + COUNT( + 42 ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-7953
SELECT + 75 * - - COUNT ( * ) + COUNT ( + 42 ) FROM tab0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + SUM( ALL - - col0 ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7954
SELECT + SUM ( ALL - - col0 ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
185

query II rowsort
SELECT + col0 + - 5, - col2 AS col0 FROM tab0 AS cor0
----
10
-47
82
-10
92
-99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 + + ( + - 1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL CAST( + MIN( ALL - + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL CAST ( + MIN ( ALL - + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL + COUNT( * ) * + 97 AS col1 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + COUNT ( * ) * + 97 AS col1 FROM tab2 AS cor0
----
291

query I rowsort
SELECT - - 28 * col2 + col1 AS col2 FROM tab1 AS cor0
----
1657
1951
2702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 99 col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + + 21 + col1 AS col0 FROM tab0 AS cor0
----
102
22
42

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 > + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT - COUNT( * ) * + - SUM( DISTINCT - 76 ) + - AVG ( DISTINCT - 49 ) FROM tab0 AS cor0 WHERE NOT - 29 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT - COUNT ( * ) * + - SUM ( DISTINCT - 76 ) + - AVG ( DISTINCT - 49 ) FROM tab0 AS cor0 WHERE NOT - 29 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT CAST( + 94 AS SIGNED ) FROM tab2
----
94
94
94

skipif mysql # not compatible
query I rowsort label-7965
SELECT CAST ( + 94 AS INTEGER ) FROM tab2
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - col1 FROM tab1
----
NULL

query I rowsort
SELECT ( - 42 ) FROM tab2
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + SUM( - 92 ) AS col0 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-7968
SELECT + SUM ( - 92 ) AS col0 FROM tab0
----
-276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 AS cor0 WHERE NOT col1 < + col1 / col1 + + + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL + SUM( DISTINCT - 32 ) + + - 57 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + SUM ( DISTINCT - 32 ) + + - 57 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT + MIN( col0 ) AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT + MIN ( col0 ) AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 45 + + + col2 + - - col2 FROM tab0
----
139
243
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT ALL - 36 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-36
3

skipif mysql # not compatible
query II rowsort label-7974
SELECT ALL - 36 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL + MAX( DISTINCT 93 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 62 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + MAX ( DISTINCT 93 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 62 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7976
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) > + col0
----

skipif mysql # not compatible
query III rowsort label-7976
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > + col0
----

query II rowsort
SELECT - col2, ( 7 ) AS col2 FROM tab0 AS cor0
----
-10
7
-47
7
-99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL COUNT( * ) * - 39 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL COUNT ( * ) * - 39 FROM tab0 AS cor0
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, 69 - 90 col2 FROM tab0 AS cor0
----
10
-21
47
-21
99
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT ALL - + 50 DIV + 47 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - + 50 / + 47 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT MIN( ALL col2 ) * + COUNT( * ) * + 65 + 35 * + + CAST( - + COUNT( * ) AS SIGNED ) + + - 64 AS col1 FROM tab0
----
1781

skipif mysql # not compatible
query I rowsort label-7981
SELECT MIN ( ALL col2 ) * + COUNT ( * ) * + 65 + 35 * + + CAST ( - + COUNT ( * ) AS INTEGER ) + + - 64 AS col1 FROM tab0
----
1781

query I rowsort
SELECT 11 FROM tab0 WHERE NOT - - col0 NOT BETWEEN NULL AND + + col2
----

query I rowsort
SELECT DISTINCT + 48 * + col2 AS col2 FROM tab0
----
2256
4752
480

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT col1 * + col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT + - ( 70 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 27 * - ( + - ( + col0 ) ) FROM tab0
----
2349
2619
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col2 FROM tab2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7988
SELECT ALL COUNT( * ) DIV + 27 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7988
SELECT ALL COUNT ( * ) / + 27 col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT ALL - - COUNT( * ) * + 66 AS col1, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
198
3

skipif mysql # not compatible
query II rowsort label-7989
SELECT ALL - - COUNT ( * ) * + 66 AS col1, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
198
3

query I rowsort
SELECT DISTINCT + col0 + + 83 AS col1 FROM tab2
----
129
147
158

query II rowsort
SELECT ALL - col2 AS col0, 58 FROM tab0
----
-10
58
-47
58
-99
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7992
SELECT + - COUNT( * ) DIV + + 99 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7992
SELECT + - COUNT ( * ) / + + 99 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col0 FROM tab1 cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT ALL - + 10 + col0 - col1 DIV col0 - - - 36 col0 FROM tab1 AS cor0
----
39
45
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7994
SELECT ALL - + 10 + col0 - col1 / col0 - - - 36 col0 FROM tab1 AS cor0
----
39
45
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT + col2 + + col0 + - col1 DIV 99 * - - 6 AS col2 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-7995
SELECT + col2 + + col0 + - col1 / 99 * - - 6 AS col2 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT + COUNT( * ) + - 68 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT + COUNT ( * ) + - 68 FROM tab0
----
-65

query III rowsort
SELECT ALL * FROM tab2 WHERE + 37 - - ( - 95 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 86 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7999
SELECT + COUNT( * ) * - COUNT( * ) + + + COUNT( * ) + - CAST( NULL AS SIGNED ) * - ( - - CAST( NULL AS SIGNED ) ) * 41 * AVG ( DISTINCT + + col0 ) * - 91 AS col1, + MAX( DISTINCT col2 ) FROM tab1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-7999
SELECT + COUNT ( * ) * - COUNT ( * ) + + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - ( - - CAST ( NULL AS INTEGER ) ) * 41 * AVG ( DISTINCT + + col0 ) * - 91 AS col1, + MAX ( DISTINCT col2 ) FROM tab1
----
NULL
96

query I rowsort
SELECT ALL col2 - 87 AS col2 FROM tab1
----
-19
-28
9

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE ( 30 / + 36 ) > col2
----

query I rowsort
SELECT ALL 20 + - col1 FROM tab1
----
-27
15
6

query I rowsort
SELECT + - ( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + 56 AS col0 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT - 31 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + + 58 ) col1 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL + 89 / - col1 + + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * 11 * + col2 * + - 68 + + + ( + col2 ) = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2 * - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT - col0 * + + col1 + + col1 + CAST( NULL AS SIGNED ) * + col1 * col0 / 49 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT - col0 * + + col1 + + col1 + CAST ( NULL AS INTEGER ) * + col1 * col0 / 49 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 91 + col2 + 10 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col2 FROM tab0 AS cor0
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 86 < - col2
----

query II rowsort
SELECT ALL + 88 * col2 AS col2, col1 + - col0 + - - col2 AS col1 FROM tab0
----
4136
113
8712
3
880
-56

query I rowsort
SELECT col0 * + col0 * - 8 AS col0 FROM tab1
----
-20808
-57800
-66248

query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * col1 * + col1 <= - ( 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * - + col2 col1 FROM tab2
----
-1679
-2920
-4234

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col2 * - - col0 FROM tab0 cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + col0 col0 FROM tab2 AS cor0
----
118
136
147

query I rowsort
SELECT col2 * + 9 + + - 66 AS col2 FROM tab0
----
24
357
825

query I rowsort
SELECT - ( col0 ) + + + col2 * + col1 FROM tab1
----
1293
210
3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT + - 81 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT + - 81 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 + 10, col0 - col0 AS col1 FROM tab2 AS cor0
----
-13
0
-30
0
-48
0

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT + col0 NOT BETWEEN + col1 AND + col2 + - col1 )
----
99

query I rowsort
SELECT ALL col1 + + - col1 + col1 * + 0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT 15 + - SUM( + 44 ) - 40 + - 15 * COUNT( * ) AS col2 FROM tab2
----
-202

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT 15 + - SUM ( + 44 ) - 40 + - 15 * COUNT ( * ) AS col2 FROM tab2
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL + COUNT( * ) + - MIN( ( col0 ) ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + COUNT ( * ) + - MIN ( ( col0 ) ) AS col2 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8030
SELECT - 8, COUNT( * ) AS col1 FROM tab1
----
-8
3

skipif mysql # not compatible
query II rowsort label-8030
SELECT - 8, COUNT ( * ) AS col1 FROM tab1
----
-8
3

query I rowsort
SELECT + col1 FROM tab2 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL COUNT( * ) + + + 99 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL COUNT ( * ) + + + 99 FROM tab0
----
102

query I rowsort
SELECT ALL 37 * + col1 + col0 FROM tab0
----
134
3012
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT + ( + - col1 ) - col0 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8036
SELECT DISTINCT col0 + col2 - + col2 * + - col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
5043
NULL
5159
NULL
6347
NULL

skipif mysql # not compatible
query II rowsort label-8036
SELECT DISTINCT col0 + col2 - + col2 * + - col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
5043
NULL
5159
NULL
6347
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT DISTINCT - + col2 DIV col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - + col2 / col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + MAX( DISTINCT - 27 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + MAX ( DISTINCT - 27 ) FROM tab1 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 62 = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col2 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT DISTINCT SUM( DISTINCT + 7 ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT SUM ( DISTINCT + 7 ) FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + 76 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + 76 IS NULL
----
0

query II rowsort
SELECT col2 AS col1, col2 * 34 * + col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT + + MIN( ALL 3 ) / COUNT( * ) FROM tab0 WHERE - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT + + MIN ( ALL 3 ) / COUNT ( * ) FROM tab0 WHERE - col0 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8045
SELECT - col0 AS col0, - CAST( NULL AS SIGNED ) + - - col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8045
SELECT - col0 AS col0, - CAST ( NULL AS INTEGER ) + - - col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + 32 + + col1 * - - 83 + + col2 >= NULL
----

query II rowsort
SELECT DISTINCT - ( col0 ) + + + col1, + col1 + + col2 * + 15 + + - col1 AS col1 FROM tab2
----
-8
870
13
600
5
345

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL - COUNT( * ) * + ( + - COUNT( * ) ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - COUNT ( * ) * + ( + - COUNT ( * ) ) AS col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL MIN( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL MIN ( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL col2 * - + col2 + col1 AS col0 FROM tab2 AS cor0
----
-1523
-3297
-478

query I rowsort
SELECT - - col2 * - - col1 + col0 FROM tab0 AS cor0
----
196
297
3822

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 93 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8053
SELECT 0 DIV MIN( DISTINCT col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8053
SELECT 0 / MIN ( DISTINCT col2 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT ALL - 43 + col1 * - - ( + 11 ) * - + col0 * - col2 + 13 DIV - col0 * - ( - col0 ) FROM tab1
----
275782
3199153
753941

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - 43 + col1 * - - ( + 11 ) * - + col0 * - col2 + 13 / - col0 * - ( - col0 ) FROM tab1
----
275782
3199153
753941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT - - ( COUNT( * ) ) + - + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-85

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - - ( COUNT ( * ) ) + - + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-85

query I rowsort
SELECT DISTINCT col1 - - + col1 AS col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8058
SELECT DISTINCT + - col2 - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT + - col2 - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, ( - 50 ) + + col2 col2 FROM tab2 AS cor0
----
46
-27
64
-10
75
8

query I rowsort
SELECT - col1 + - col0 + - ( col1 ) * - col1 FROM tab2 AS cor0
----
2504
4347
5788

query I rowsort
SELECT - ( col0 ) * col2 + + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT + 92 + - SUM( + + 97 ) + - - MIN( - + col1 ) FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-8062
SELECT + 92 + - SUM ( + + 97 ) + - - MIN ( - + col1 ) FROM tab2 AS cor0
----
-276

query III rowsort
SELECT * FROM tab2 WHERE NULL = + - col0
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( - 38 IS NULL )
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE + + col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ( - ( COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8066
SELECT ( - ( COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8067
SELECT - ( - COUNT( * ) ), AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8067
SELECT - ( - COUNT ( * ) ), AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT - col2 >= col2 * + - col0 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 6 col1, col0 FROM tab0
----
-6
15
-6
87
-6
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 - - CAST( + ( 3 ) AS SIGNED ) + + - col1 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 - - CAST ( + ( 3 ) AS INTEGER ) + + - col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + 60 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
3106
4095
4684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8072
SELECT col2 / + + CAST( NULL AS SIGNED ) + 46 / - + 25 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT col2 / + + CAST ( NULL AS INTEGER ) + 46 / - + 25 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 18 + + col1 FROM tab1 AS cor0
----
23
32
65

query II rowsort
SELECT ALL + - col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT 54 + SUM( + - ( - col2 ) ) FROM tab0 cor0
----
210

skipif mysql # not compatible
query I rowsort label-8075
SELECT 54 + SUM ( + - ( - col2 ) ) FROM tab0 cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL + MAX( col2 ) col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8076
SELECT ALL + MAX ( col2 ) col2 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8077
SELECT * FROM tab2 WHERE NOT - 75 < + CAST( + col1 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-8077
SELECT * FROM tab2 WHERE NOT - 75 < + CAST ( + col1 AS INTEGER ) * col0
----

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT MIN( DISTINCT - 42 ) AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-8079
SELECT MIN ( DISTINCT - 42 ) AS col1 FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + - 69 * + COUNT( DISTINCT 76 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8080
SELECT + - 69 * + COUNT ( DISTINCT 76 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + COUNT( DISTINCT + - 42 ) * 96 AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8081
SELECT + COUNT ( DISTINCT + - 42 ) * 96 AS col2 FROM tab2
----
96

query I rowsort
SELECT - 30 * - + 60 * - col2 AS col1 FROM tab0
----
-178200
-18000
-84600

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( ( NOT ( NULL ) >= col1 ) ) )
----

query I rowsort
SELECT + col1 + + 21 FROM tab0
----
102
22
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8085
SELECT + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT - CAST( + AVG ( DISTINCT + col2 ) AS SIGNED ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-8086
SELECT - CAST ( + AVG ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab2
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + + col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 33 - + col2 FROM tab1 cor0
----
-26
-35
-63

query I rowsort
SELECT ALL - + ( + 98 ) * + 55 AS col0 FROM tab2 cor0
----
-5390
-5390
-5390

query III rowsort
SELECT * FROM tab0 WHERE NOT + 12 < - - col0
----

query I rowsort
SELECT ALL - 17 * 39 * - + 21 AS col1 FROM tab1
----
13923
13923
13923

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8092
SELECT ALL COUNT( * ) DIV 30 AS col0, + 40 FROM tab0
----
0
40

skipif mysql # not compatible
query II rowsort label-8092
SELECT ALL COUNT ( * ) / 30 AS col0, + 40 FROM tab0
----
0
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) * - + 29 col0 FROM tab1
----
-1363
-145
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT DISTINCT - col2 DIV 67 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - col2 / 67 AS col0 FROM tab0
----
-1
0

query II rowsort
SELECT col0, 84 - col2 * - col0 FROM tab2
----
46
1142
64
2644
75
4434

query III rowsort
SELECT * FROM tab0 WHERE NOT + 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COUNT( DISTINCT + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8097
SELECT COUNT ( DISTINCT + col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT - MAX( DISTINCT + - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8098
SELECT - MAX ( DISTINCT + - col0 ) FROM tab1
----
51

query II rowsort
SELECT DISTINCT - 81 AS col0, + 52 AS col0 FROM tab0
----
-81
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT ALL CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + 17 AS col1, - ( + col0 ) AS col2 FROM tab2 AS cor0
----
17
-46
17
-64
17
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT + + ( + - COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT + + ( + - COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8103
SELECT + 81, - CAST( + + col2 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
81
-210
81
-3807
81
-99

skipif mysql # not compatible
query II rowsort label-8103
SELECT + 81, - CAST ( + + col2 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
81
-210
81
-3807
81
-99

query I rowsort
SELECT DISTINCT 10 * + - col2 AS col0 FROM tab2
----
-230
-400
-580

query I rowsort
SELECT ALL + col1 * - col1 / - - col1 + 36 + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + - 56 * - + col1 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 < + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 22 AS col2 FROM tab2 WHERE 10 IS NOT NULL
----
-22
-22
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-8109
SELECT + col1 + - - col2 DIV - + col0 AS col0, - col1 FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-8109
SELECT + col1 + - - col2 / - + col0 AS col0, - col1 FROM tab2
----
51
-51
67
-67
77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT * FROM tab1 WHERE - - ( + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8112
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col2 + - 48 + 94 * ( + 68 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + CAST ( NULL AS REAL ) / col2 + - 48 + 94 * ( + 68 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - + COUNT( ALL col2 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8113
SELECT - + COUNT ( ALL col2 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT SUM( + 1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8114
SELECT SUM ( + 1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE + 57 NOT BETWEEN ( - 11 ) AND 34 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ALL - ( + SUM( ALL + col0 ) ) * + 20 FROM tab0
----
-3980

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - ( + SUM ( ALL + col0 ) ) * + 20 FROM tab0
----
-3980

onlyif mysql # DIV for integer division: 
query I rowsort label-8117
SELECT - 23 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8117
SELECT - 23 / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) AS col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL col1 FROM tab1 WHERE col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 78 BETWEEN - col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + 98 FROM tab1
----
157
166
194

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT - 13 DIV + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8122
SELECT - 13 / + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL SUM( - col0 ) FROM tab1 WHERE - col2 + col0 BETWEEN + 77 * 80 + 18 AND ( - col1 + - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL SUM ( - col0 ) FROM tab1 WHERE - col2 + col0 BETWEEN + 77 * 80 + 18 AND ( - col1 + - 90 )
----
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - 21 / col0 NOT BETWEEN NULL AND ( - 11 + 61 )
----

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND + 48
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE + 75 BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE NOT - 55 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8127
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE NOT - 55 IS NULL
----
3

query I rowsort
SELECT 72 * - ( col2 ) FROM tab1 WHERE NOT col2 IS NULL
----
-4248
-4896
-6912

query I rowsort
SELECT col1 + + 38 FROM tab1 WHERE NULL IS NULL
----
43
52
85

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 40 AS col0 FROM tab2 WHERE 49 <= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN ( - col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + MAX( 8 ) AS col2 FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-8134
SELECT + MAX ( 8 ) AS col2 FROM tab1 cor0
----
8

query I rowsort
SELECT - 41 * - col2 + - col0 FROM tab1 AS cor0 WHERE NOT col1 / + col2 <> ( 73 )
----

query I rowsort
SELECT DISTINCT 47 * - col2 AS col0 FROM tab1 AS cor0
----
-2773
-3196
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT COUNT( DISTINCT 98 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8137
SELECT COUNT ( DISTINCT 98 ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( + col2 ) + col1 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT - 45 FROM tab0 AS cor0 CROSS JOIN tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT - + 46 + 99 * COUNT( * ) col1 FROM tab1 AS cor0
----
251

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8140
SELECT - + 46 + 99 * COUNT ( * ) col1 FROM tab1 AS cor0
----
251

query I rowsort
SELECT + col2 + 91 * 49 AS col2 FROM tab2 AS cor0
----
4482
4499
4517

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL + 92 * COUNT( * ) col0 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8142
SELECT ALL + 92 * COUNT ( * ) col0 FROM tab1 AS cor0
----
276

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8143
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE col2 + - col1 >= CAST( - col0 AS DECIMAL ) * - 4 + col0
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE col2 + - col1 >= CAST ( - col0 AS REAL ) * - 4 + col0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / + col1 NOT IN ( ( - col1 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 + + col1 ) >= 23 * col2
----

query I rowsort
SELECT DISTINCT 60 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT DISTINCT + 46 FROM tab0 cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 19 * + col1 AS col0 FROM tab2 AS cor0
----
1273
1463
969

query I rowsort
SELECT DISTINCT col0 + + col0 - col0 * + 42 AS col1 FROM tab1
----
-2040
-3400
-3640

query I rowsort
SELECT DISTINCT col2 + 97 + col1 FROM tab0
----
128
197
225

query I rowsort
SELECT 74 * - ( col1 ) AS col2 FROM tab1
----
-1036
-3478
-370

query I rowsort
SELECT DISTINCT - col0 + - col0 * - col1 FROM tab0
----
0
1200
1740

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - COUNT( + col2 ) + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - COUNT ( + col2 ) + COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE + 68 * + 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8158
SELECT ALL * FROM tab2 WHERE 69 - col1 * + CAST( NULL AS SIGNED ) NOT BETWEEN 99 AND CAST( NULL AS SIGNED ) + + col1 * 73
----

skipif mysql # not compatible
query III rowsort label-8158
SELECT ALL * FROM tab2 WHERE 69 - col1 * + CAST ( NULL AS INTEGER ) NOT BETWEEN 99 AND CAST ( NULL AS INTEGER ) + + col1 * 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL - 23 + - SUM( + col0 ) + 17 FROM tab2
----
-191

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL - 23 + - SUM ( + col0 ) + 17 FROM tab2
----
-191

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 13 <= + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT - SUM( DISTINCT + + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8161
SELECT - SUM ( DISTINCT + + col1 ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT + col2 + 57 FROM tab1
----
116
125
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8163
SELECT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) * col0 + - col1 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8163
SELECT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) * col0 + - col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT 23 * - + COUNT( * ) AS col2 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8164
SELECT 23 * - + COUNT ( * ) AS col2 FROM tab2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT + 18 - - col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1191
3098
3904

skipif mysql # not compatible
query I rowsort label-8165
SELECT + 18 - - col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1191
3098
3904

query I rowsort
SELECT ALL - - 62 - - 17 FROM tab0 cor0
----
79
79
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8167
SELECT DISTINCT - COUNT( * ) DIV + 69 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT - COUNT ( * ) / + 69 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8169
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT + col2 + + CAST( - col2 AS SIGNED ) * + col0 FROM tab2
----
-1035
-2520
-4292

skipif mysql # not compatible
query I rowsort label-8170
SELECT + col2 + + CAST ( - col2 AS INTEGER ) * + col0 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT + col2 + + 84 + - col1 + col1 AS col0 FROM tab0
----
131
183
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL 96 + - - ( + COUNT( * ) ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL 96 + - - ( + COUNT ( * ) ) AS col1 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL - ( COUNT( * ) ) * - 27 * 12 + - COUNT( * ) col2 FROM tab0
----
969

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8173
SELECT ALL - ( COUNT ( * ) ) * - 27 * 12 + - COUNT ( * ) col2 FROM tab0
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + 29 AND NULL
----

query I rowsort
SELECT ALL + col0 + + + col0 * - 44 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col1 FROM tab2 AS cor0 WHERE 96 * + + col2 + col1 >= col1
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 43 NOT IN ( + - 74 * col2 )
----

query II rowsort
SELECT + 29 AS col0, + col1 AS col0 FROM tab1 AS cor0
----
29
14
29
47
29
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 47 * col1 col0 FROM tab2 AS cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT COUNT( DISTINCT - - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8181
SELECT COUNT ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( 41 ) * + - col1 AS col1 FROM tab0 cor0
----
3321
41
861

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 63 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8184
SELECT * FROM tab1 WHERE NOT + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8184
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL + 48 AS col0 FROM tab1
----
48
48
48

query I rowsort
SELECT + col0 * - - 27 FROM tab1
----
1377
2295
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT DISTINCT - SUM( - col2 ) * COUNT( * ) AS col0 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT - SUM ( - col2 ) * COUNT ( * ) AS col0 FROM tab0
----
468

query I rowsort
SELECT DISTINCT + - 51 / - col1 + + col0 FROM tab0 WHERE + + 23 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 + + - col0 + - 2 ) <> 62 * col1 + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT ( COUNT( * ) ) AS col0, + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8190
SELECT ( COUNT ( * ) ) AS col0, + COUNT ( * ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL 44 * + COUNT( * ) AS col2 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL 44 * + COUNT ( * ) AS col2 FROM tab0
----
132

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 27 ) < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT + ( COUNT( DISTINCT + ( + + ( + col0 ) ) ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + ( COUNT ( DISTINCT + ( + + ( + col0 ) ) ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL + COUNT( * ) + + 95 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + COUNT ( * ) + + 95 FROM tab0
----
98

query I rowsort
SELECT ALL + 77 + + - 85 FROM tab0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL 22 * - + COUNT( * ) * 68 AS col2 FROM tab1 AS cor0
----
-4488

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL 22 * - + COUNT ( * ) * 68 AS col2 FROM tab1 AS cor0
----
-4488

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 - - + 39 - + 3 * col1 <> NULL
----

query I rowsort
SELECT ALL + - 28 * + + 50 AS col0 FROM tab0 AS cor0
----
-1400
-1400
-1400

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8201
SELECT + col2 DIV col0 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT + col2 / col0 / + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT - 35 DIV 7 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT - 35 / 7 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL + ( + MAX( + 62 ) ) * - MIN( - col1 ) FROM tab2 AS cor0
----
4774

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + ( + MAX ( + 62 ) ) * - MIN ( - col1 ) FROM tab2 AS cor0
----
4774

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT col1 + - 21 DIV 21 col1 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8204
SELECT DISTINCT col1 + - 21 / 21 col1 FROM tab0 AS cor0
----
0
20
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT + col1 * - + CAST( NULL AS SIGNED ) + - + 51 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT + col1 * - + CAST ( NULL AS INTEGER ) + - + 51 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 IN ( - 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT ALL 14 + + 21 * + CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL 14 + + 21 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT ALL - CAST( NULL AS SIGNED ) + - ( + col0 ) + - + 1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8208
SELECT ALL - CAST ( NULL AS INTEGER ) + - ( + col0 ) + - + 1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT + + 88 * - COUNT( * ) AS col2 FROM tab2 WHERE 13 > + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8209
SELECT + + 88 * - COUNT ( * ) AS col2 FROM tab2 WHERE 13 > + CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + 81 FROM tab2
----
104
121
139

query I rowsort
SELECT - ( - 48 ) * 34 FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col1 / + - 12 / - 30 ) AND ( - 49 )
----

query II rowsort
SELECT col0 AS col1, col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT - CAST( + + MAX( + col2 ) AS SIGNED ) * - 32 FROM tab2 AS cor0
----
1856

skipif mysql # not compatible
query I rowsort label-8214
SELECT - CAST ( + + MAX ( + col2 ) AS INTEGER ) * - 32 FROM tab2 AS cor0
----
1856

onlyif mysql # DIV for integer division: 
query II rowsort label-8215
SELECT DISTINCT - col0, col0 DIV 46 col0 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8215
SELECT DISTINCT - col0, col0 / 46 col0 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 col1 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT - + COUNT( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8217
SELECT - + COUNT ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 72 * col2 )
----

query I rowsort
SELECT ALL - ( + + ( + 24 ) ) FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8220
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8220
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - ( + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 * - - col1 AS col2 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 WHERE NOT + 87 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL ( MIN( col1 ) ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL ( MIN ( col1 ) ) AS col2 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT 32 DIV 82 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8225
SELECT 32 / 82 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 35 col1 FROM tab0 cor0 WHERE NOT 54 + - ( col0 ) IS NULL
----
116
36
56

query II rowsort
SELECT ALL 29 AS col1, 29 FROM tab1 AS cor0
----
29
29
29
29
29
29

query I rowsort
SELECT DISTINCT col0 * + - ( 81 ) * + 38 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-156978
-261630
-280098

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL - ( - COUNT( * ) ) + 66 AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - ( - COUNT ( * ) ) + 66 AS col0 FROM tab0
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN + col0 * - - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT - CAST( NULL AS SIGNED ) + + col0 * + CAST( - 52 AS SIGNED ) * + - col1 - + + col2 * col0 / + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT - CAST ( NULL AS INTEGER ) + + col0 * + CAST ( - 52 AS INTEGER ) * + - col1 - + + col2 * col0 / + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT - CAST( NULL AS SIGNED ) + ( col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT - CAST ( NULL AS INTEGER ) + ( col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT 41 FROM tab1 AS cor0 WHERE ( + col2 * CAST( NULL AS SIGNED ) / - - col0 ) IS NULL
----
41
41
41

skipif mysql # not compatible
query I rowsort label-8234
SELECT 41 FROM tab1 AS cor0 WHERE ( + col2 * CAST ( NULL AS INTEGER ) / - - col0 ) IS NULL
----
41
41
41

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + col1 * col2 + col0 + - - 3 AS col1 FROM tab0 AS cor0
----
-18180
-57087
-9503

query I rowsort
SELECT DISTINCT - col2 * + col2 + - - col2 AS col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT SUM( DISTINCT - 90 ) AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT SUM ( DISTINCT - 90 ) AS col1 FROM tab2 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT col0 DIV 92 * - 79 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT col0 / 92 * - 79 * - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8240
SELECT 74 - + + CAST( + col2 AS SIGNED ), - col1 - col0 AS col1 FROM tab2
----
16
-142
34
-141
51
-97

skipif mysql # not compatible
query II rowsort label-8240
SELECT 74 - + + CAST ( + col2 AS INTEGER ), - col1 - col0 AS col1 FROM tab2
----
16
-142
34
-141
51
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT col1 - + col1 - + - 0 * - col1 + 36 DIV 75 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8241
SELECT col1 - + col1 - + - 0 * - col1 + 36 / 75 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 - - + 75 + - 54 FROM tab0
----
102
22
42

query I rowsort
SELECT - ( + col2 ) - + + 70 FROM tab1
----
-129
-138
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT - col1 - - - col2 DIV + + ( - + 19 ) AS col2 FROM tab2
----
-50
-64
-75

skipif mysql # not compatible
query I rowsort label-8244
SELECT - col1 - - - col2 / + + ( - + 19 ) AS col2 FROM tab2
----
-50
-64
-75

query I rowsort
SELECT 15 - col1 + + col1 AS col2 FROM tab2
----
15
15
15

query I rowsort
SELECT ( - + col0 ) - - col1 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8247
SELECT DISTINCT 57 AS col0, COUNT( * ) + + SUM( ALL ( CAST( + ( + - col1 ) AS SIGNED ) ) ) + - COUNT( * ) + + 31 FROM tab2 cor0
----
57
-164

skipif mysql # not compatible
query II rowsort label-8247
SELECT DISTINCT 57 AS col0, COUNT ( * ) + + SUM ( ALL ( CAST ( + ( + - col1 ) AS INTEGER ) ) ) + - COUNT ( * ) + + 31 FROM tab2 cor0
----
57
-164

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( 71 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * - 4 col2 FROM tab1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT MIN( ALL - 77 ) AS col0 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-8251
SELECT MIN ( ALL - 77 ) AS col0 FROM tab0
----
-77

query I rowsort
SELECT DISTINCT + 17 * - col2 FROM tab0
----
-1683
-170
-799

onlyif mysql # DIV for integer division: 
query II rowsort label-8253
SELECT - col0 DIV - + col2 AS col1, 16 FROM tab2
----
1
16
1
16
2
16

skipif mysql # not compatible
query II rowsort label-8253
SELECT - col0 / - + col2 AS col1, 16 FROM tab2
----
1
16
1
16
2
16

query II rowsort
SELECT col1, + 16 FROM tab1
----
14
16
47
16
5
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT DISTINCT - 27, + COUNT( * ) col2 FROM tab2
----
-27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8255
SELECT DISTINCT - 27, + COUNT ( * ) col2 FROM tab2
----
-27
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL - ( SUM( + + 3 ) ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - ( SUM ( + + 3 ) ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8257
SELECT ALL COUNT( * ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8257
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col0 * - ( - col2 ) + - - ( - - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT - + col2 DIV + 36 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8259
SELECT - + col2 / + 36 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + ( ( - 24 ) ) FROM tab2 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, 26 - + + 10 * col0 * - + col2 AS col0 FROM tab0 AS cor0
----
-15
7076
-87
8726
-97
96056

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 82 * - ( 47 ) + + 20 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8263
SELECT - col1 AS col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8263
SELECT - col1 AS col2, CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT COUNT( + - 25 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8264
SELECT COUNT ( + - 25 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + COUNT( ALL 73 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8265
SELECT + COUNT ( ALL 73 ) FROM tab0
----
3

query II rowsort
SELECT col1 + - - col0 * + - 14 AS col1, 99 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1197
99
-129
99
-1357
99

query II rowsort
SELECT ALL - + col0, 41 * 25 - - 21 * col2 AS col1 FROM tab2 WHERE NOT ( - col1 <> NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 - - + col0 * + - col2 NOT IN ( + 31, col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL + - COUNT( ALL + col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL + - COUNT ( ALL + col1 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + 75 + + - col0 * 51 AS col1 FROM tab1 AS cor0 WHERE NOT 69 * + + col2 / - col2 + - col1 IS NULL
----
-2526
-4260
-4566

query I rowsort
SELECT DISTINCT col2 + + - 93 * + col0 AS col2 FROM tab0
----
-1348
-8081
-8922

query I rowsort
SELECT DISTINCT col0 + + ( + 57 ) + + + col2 AS col0 FROM tab2
----
126
161
190

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT DISTINCT 7 DIV - 97 * - col1 + + 78 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT 7 / - 97 * - col1 + + 78 FROM tab1
----
78

query I rowsort
SELECT DISTINCT - + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT + col0 AS col2, 83 FROM tab0 AS cor0
----
15
83
87
83
97
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 - - col2 col1 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT - col0 + - + col0 AS col1 FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT + ( + + 69 ) + + col0 FROM tab2 AS cor0
----
115
133
144

query I rowsort
SELECT ALL - 69 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT DISTINCT - col1 DIV 20 + + + col0 AS col0 FROM tab1
----
51
85
89

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - col1 / 20 + + + col0 AS col0 FROM tab1
----
51
85
89

query I rowsort
SELECT DISTINCT + col1 * - col2 * - - ( col2 ) + - ( - 75 ) AS col0 FROM tab1
----
-128949
-17330
-217253

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL >= ( + col0 )
----

query I rowsort
SELECT col1 + + + 95 AS col2 FROM tab1
----
100
109
142

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT DISTINCT col2 DIV 67 - - 4 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT col2 / 67 - - 4 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT COUNT( * ) AS col1 FROM tab2 WHERE ( - + 91 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8285
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE ( - + 91 ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 52 + col2 IN ( + - ( ( col0 ) ), col1, col2 - + 6 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + ( col2 ) AS col2, 24 AS col2 FROM tab2 AS cor0 WHERE 18 * + col2 * - col2 * col0 * + - col0 / + col0 IS NOT NULL
----
23
24
40
24
58
24

query I rowsort
SELECT ALL + col0 * + + 45 + col1 AS col2 FROM tab2 AS cor0 WHERE NULL = - col1
----

query I rowsort
SELECT ALL col1 * col2 FROM tab1 cor0 WHERE NULL IS NULL
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8291
SELECT + MIN( ALL CAST( - col2 AS SIGNED ) ) col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8291
SELECT + MIN ( ALL CAST ( - col2 AS INTEGER ) ) col0 FROM tab2 cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8292
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 45 NOT IN ( - CAST( NULL AS SIGNED ) + + 55, - 51 )
----

skipif mysql # not compatible
query IIIIII rowsort label-8292
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 45 NOT IN ( - CAST ( NULL AS INTEGER ) + + 55, - 51 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + ( + col1 ) ) col2, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 59 * + col2 = NULL
----

query I rowsort
SELECT + col2 * + ( - + ( + + col2 ) ) AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT + ( 74 ) AS col1 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT + col2 * + - 39 * + 86 AS col1 FROM tab0 AS cor0
----
-157638
-332046
-33540

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 31 )
----

query II rowsort
SELECT ALL - - 77, col2 FROM tab0 AS cor0
----
77
10
77
47
77
99

query I rowsort
SELECT ALL - - 98 * col0 * + + 13 FROM tab2 AS cor0
----
58604
81536
95550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8302
SELECT DISTINCT + ( - - 21 ) * + + 65 - + col1 + col0 + + - col0 * + - col0 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
10871
1605
9021

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + ( - - 21 ) * + + 65 - + col1 + col0 + + - col0 * + - col0 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
10871
1605
9021

query I rowsort
SELECT DISTINCT col0 - - 16 + - - col1 / - col1 * + + col0 AS col2 FROM tab2 cor0 WHERE + col0 NOT BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT + 53 * + 26 + + + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT + 53 * + 26 + + + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - ( + + col1 ) ) FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - ( col2 ) ) + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 47 + - col2 AS col0 FROM tab0
----
-52
0
37

query III rowsort
SELECT * FROM tab1 WHERE NOT + 75 - - col1 - 50 * + col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - + 84 AS col0 FROM tab0
----
-1260
-7308
-8148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT - COUNT( * ) DIV 7 DIV + 40 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8310
SELECT - COUNT ( * ) / 7 / + 40 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 40 * col0 * + 57 <= - + col0 - - + 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 11 col0 FROM tab2 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL + + ( - CAST( - 34 AS SIGNED ) ) FROM tab2 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + + ( - CAST ( - 34 AS INTEGER ) ) FROM tab2 AS cor0
----
34
34
34

query II rowsort
SELECT DISTINCT + 5 AS col1, + col0 AS col1 FROM tab2 AS cor0
----
5
46
5
64
5
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8315
SELECT ALL + COUNT( * ) DIV - ( + + 9 ) FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + COUNT ( * ) / - ( + + 9 ) FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 WHERE - 7 * - 78 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - 7 * - 78 = NULL
----
0

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL MAX( ALL - col1 ) AS col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL MAX ( ALL - col1 ) AS col0 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= col2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + 88 + - - col1 IS NOT NULL
----

query I rowsort
SELECT + ( col1 ) - col2 * + col1 FROM tab2
----
-1122
-3003
-3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17 * - 22 - - 90 AS col1, col1 col0 FROM tab1
----
464
14
464
47
464
5

query III rowsort
SELECT * FROM tab1 WHERE ( col2 / - 9 < col0 + - + 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 21 * - 89 + - 23 AS col1 FROM tab1
----
-1892

query I rowsort
SELECT + col1 - + 57 FROM tab2
----
-6
10
20

query II rowsort
SELECT - 52 - + col2 * + col2 AS col0, - col0 FROM tab0
----
-152
-87
-2261
-15
-9853
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + MAX( DISTINCT + 43 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-8327
SELECT + MAX ( DISTINCT + 43 ) FROM tab0
----
43

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 68 NOT BETWEEN col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + ( + 28 ), + 23 col1 FROM tab0
----
-2268
23
-28
23
-588
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT + COUNT( * ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8330
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - COUNT( * ) * + ( + 7 ) AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-8331
SELECT - COUNT ( * ) * + ( + 7 ) AS col0 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - + COUNT( * ) FROM tab1 WHERE NOT - 9 / + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8332
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT - 9 / + + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL + COUNT( * ) col1 FROM tab0 AS cor0 WHERE ( + + col0 <> 59 + + col1 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8333
SELECT ALL + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( + + col0 <> 59 + + col1 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8334
SELECT ALL + 61 + - - COUNT( * ) AS col1, - 54 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8334
SELECT ALL + 61 + - - COUNT ( * ) AS col1, - 54 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
64
NULL

query I rowsort
SELECT DISTINCT - 11 * - ( - col0 ) * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-103402
-2460
-83172

query I rowsort
SELECT ( 62 ) * - - col0 FROM tab0 cor0
----
5394
6014
930

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT SUM( 49 ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-8337
SELECT SUM ( 49 ) FROM tab2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + COUNT( - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8338
SELECT + COUNT ( - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + col1 * + - 85 FROM tab2
----
-4335
-5695
-6545

query I rowsort
SELECT DISTINCT - 45 + + + col0 * + 89 + + + col2 FROM tab1
----
4590
7579
8122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8341
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( ALL col0 ) * - - AVG ( + 7 ) AS col2, + 70 FROM tab2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8341
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( ALL col0 ) * - - AVG ( + 7 ) AS col2, + 70 FROM tab2
----
NULL
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 + - 83 > - - 45
----

query I rowsort
SELECT DISTINCT - 62 * + + col1 FROM tab0
----
-1302
-5022
-62

query I rowsort
SELECT + 43 + col2 FROM tab2
----
101
66
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT - 18 + + MAX( ALL - - col1 ) AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - 18 + + MAX ( ALL - - col1 ) AS col2 FROM tab0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT DISTINCT col1 DIV - 98 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT col1 / - 98 + + col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - 20 ) * + col0 - col1 >= - + col2 * - 31
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 - - col2 NOT BETWEEN + + col0 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL + - 71 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL + - 71 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8350
SELECT CAST( NULL AS SIGNED ) * - 19 + + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8350
SELECT CAST ( NULL AS INTEGER ) * - 19 + + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8351
SELECT - - ( 69 ) DIV - - ( COUNT( * ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8351
SELECT - - ( 69 ) / - - ( COUNT ( * ) ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT col0 + - + col0 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( NOT 46 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( NOT 46 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL - MIN( DISTINCT + 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-34

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - MIN ( DISTINCT + 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-34

query I rowsort
SELECT DISTINCT + 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
40

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL > - col2 * + 66 * + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT - 71 DIV + MIN( DISTINCT + - 77 ) - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8357
SELECT - 71 / + MIN ( DISTINCT + - 77 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8358
SELECT - - col1 + - col0 * - CAST( NULL AS DECIMAL ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT - - col1 + - col0 * - CAST ( NULL AS REAL ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 37 + - - col2 - + col0 AS col1 FROM tab2 AS cor0
----
-54
-60
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT ALL col2 * 65 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL col2 * 65 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT + CAST( NULL AS SIGNED ) + - + col2 + 34 * + col2 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT + CAST ( NULL AS INTEGER ) + - + col2 + 34 * + col2 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT - + COUNT( * ) + - + 51 AS col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8362
SELECT - + COUNT ( * ) + - + 51 AS col2 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT + col0 - - - col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT - + 57 * col1 DIV + - 90 + - 23 AS col1 FROM tab2 AS cor0
----
19
25
9

skipif mysql # not compatible
query I rowsort label-8364
SELECT - + 57 * col1 / + - 90 + - 23 AS col1 FROM tab2 AS cor0
----
19
25
9

query I rowsort
SELECT DISTINCT - + 23 AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - - col2 * col1 - - - 35 AS col2 FROM tab2 AS cor0
----
1138
3045
3851

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL MAX( + 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL MAX ( + 25 ) FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT COUNT( ALL - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8368
SELECT COUNT ( ALL - col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT 7 * + + col1 FROM tab1
----
329
35
98

query I rowsort
SELECT - - col0 * - 50 + - 66 - + - 71 + - col1 AS col2 FROM tab1 AS cor0
----
-2559
-4250
-4592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col2 ) col2, + col2 * + + 82 FROM tab1 AS cor0
----
59
4838
68
5576
96
7872

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8372
SELECT CAST( NULL AS DECIMAL ) + + + col0 - + + CAST( NULL AS SIGNED ) + col1 * + 39 * + col0 FROM tab1 AS cor0 WHERE NOT NULL >= - col1 * 3
----

skipif mysql # not compatible
query I rowsort label-8372
SELECT CAST ( NULL AS REAL ) + + + col0 - + + CAST ( NULL AS INTEGER ) + col1 * + 39 * + col0 FROM tab1 AS cor0 WHERE NOT NULL >= - col1 * 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL - MIN( - col2 ) * + 43 col1 FROM tab1 AS cor0
----
4128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8373
SELECT ALL - MIN ( - col2 ) * + 43 col1 FROM tab1 AS cor0
----
4128

query I rowsort
SELECT DISTINCT + + col1 * - 78 AS col1 FROM tab0 AS cor0
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT + 89 * + + ( + COUNT( * ) ) + 37 AS col0 FROM tab0 cor0
----
304

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT + 89 * + + ( + COUNT ( * ) ) + 37 AS col0 FROM tab0 cor0
----
304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT CAST( col0 AS SIGNED ) FROM tab2 WHERE NOT - col0 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8376
SELECT CAST ( col0 AS INTEGER ) FROM tab2 WHERE NOT - col0 IS NULL
----
46
64
75

query I rowsort
SELECT + + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL + MIN( 38 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL + MIN ( 38 ) FROM tab2 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * col0 col2 FROM tab1 AS cor0
----
-3417
-5695
-6097

query I rowsort
SELECT DISTINCT - col0 * + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT ALL - 37 DIV col1 FROM tab0 AS cor0
----
-1
-37
0

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL - 37 / col1 FROM tab0 AS cor0
----
-1
-37
0

query I rowsort
SELECT DISTINCT col2 * - - col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT - SUM( DISTINCT + - col2 ) col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8383
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - - 83 + - col2 AS col2 FROM tab0 AS cor0
----
-16
36
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - ( - - col2 ) * - col2 col2, - col2, - col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 38b12a5e66c4d37407199fccf36f9ff1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT DISTINCT - AVG ( ALL - col2 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT - AVG ( ALL - col2 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 1 / - - col0 * 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT + + col2 FROM tab2 WHERE col1 < CAST( - - 85 AS SIGNED )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8388
SELECT + + col2 FROM tab2 WHERE col1 < CAST ( - - 85 AS INTEGER )
----
23
40
58

query II rowsort
SELECT ALL col0 * - col0 AS col2, - 90 AS col2 FROM tab1
----
-2601
-90
-7225
-90
-8281
-90

query II rowsort
SELECT - col0 * - col1 AS col0, 95 AS col0 FROM tab0
----
1215
95
1827
95
97
95

query I rowsort
SELECT DISTINCT 20 * - - col1 FROM tab2
----
1020
1340
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / 90 * + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / 90 * + col0 AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col2 AS col2, + 34 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT col1 + + + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT col1 + + + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 6 + - 87 FROM tab1
----
-93

query II rowsort
SELECT ALL - col2, col2 FROM tab2 WHERE + + 35 + - 13 IS NOT NULL
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE + - col2 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND col0 - + + 67
----

query I rowsort
SELECT ALL + col2 + col1 + + + col1 * + 65 AS col0 FROM tab0 AS cor0
----
1396
165
5393

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 99 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT ALL 82 DIV + col2 AS col0 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL 82 / + col2 AS col0 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - 70 * + + col1 AS col2 FROM tab0 AS cor0
----
-1470
-5670
-70

query II rowsort
SELECT DISTINCT + + col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8405
SELECT COUNT( * ) * + CAST( - MIN( + - col1 ) AS SIGNED ) * 73 FROM tab2
----
16863

skipif mysql # not compatible
query I rowsort label-8405
SELECT COUNT ( * ) * + CAST ( - MIN ( + - col1 ) AS INTEGER ) * 73 FROM tab2
----
16863

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT col2 DIV + - 9 AS col2 FROM tab1
----
-10
-6
-7

skipif mysql # not compatible
query I rowsort label-8406
SELECT col2 / + - 9 AS col2 FROM tab1
----
-10
-6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT 97 * COUNT( * ) * COUNT( * ) col1 FROM tab2
----
873

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8407
SELECT 97 * COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
873

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - 56 * + col1 * 13 FROM tab0
----
-15288
-58968
-728

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT col1, col1 * col2 + + - 82 + - + col2 + col0 FROM tab0
----
1
15
21
205
81
3693

query I rowsort
SELECT ALL + ( - ( + col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT ALL + CAST( + ( - 48 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + CAST ( + ( - 48 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL 41 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 7 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 47 * 44 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT - + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - ( 28 ) AS col2 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE col0 > - col0
----
10
47
99

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col1 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 57 + + + col1 + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
116
125
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8424
SELECT - - col2 + + - col0 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-77
NULL
2
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-8424
SELECT - - col2 + + - col0 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-77
NULL
2
NULL
32
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT DISTINCT 94 DIV - 10 + + + 10 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT 94 / - 10 + + + 10 AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col0 + - + 3 FROM tab1 AS cor0
----
48
82
88

query I rowsort
SELECT DISTINCT - + 72 FROM tab0 AS cor0 WHERE ( NOT col2 * + col0 IS NULL )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8428
SELECT ALL - CAST( NULL AS SIGNED ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8428
SELECT ALL - CAST ( NULL AS INTEGER ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8429
SELECT + ( 13 ) / CAST( NULL AS DECIMAL ) * - col1 * - - col1 * + col0 / + 72 * - col2 + - - 70 - - 22 * + col2 * - + col2 * CAST( + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT + ( 13 ) / CAST ( NULL AS REAL ) * - col1 * - - col1 * + col0 / + 72 * - col2 + - - 70 - - 22 * + col2 * - + col2 * CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT + 9 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT + 9 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT - 12 * col1 - - col2 + 92 - - 30 DIV - col0 FROM tab1 AS cor0
----
-404
20
91

skipif mysql # not compatible
query I rowsort label-8431
SELECT - 12 * col1 - - col2 + 92 - - 30 / - col0 FROM tab1 AS cor0
----
-404
20
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT 89 * + COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT 89 * + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT + - SUM( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL + 28 * - col0 / + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col0 FROM tab0 cor0 WHERE 23 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT - + COUNT( * ) col2 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8436
SELECT - + COUNT ( * ) col2 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-3

query I rowsort
SELECT col1 - + 31 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - + MAX( ALL - + 46 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8438
SELECT - + MAX ( ALL - + 46 ) AS col0 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - 72 * - ( + col0 ) AS col0 FROM tab0
----
1080
6264
6984

query I rowsort
SELECT DISTINCT + - 40 FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----

query II rowsort
SELECT ALL + 98 AS col1, - col1 * - col1 + - col1 FROM tab0 AS cor0
----
98
0
98
420
98
6480

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 * + 37 FROM tab2 AS cor0
----
113960
143782
43401

query I rowsort
SELECT ALL + 39 * - col1 + col0 * + ( 71 ) FROM tab1
----
3075
4628
5840

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + + + col2 ) > NULL
----

query I rowsort
SELECT + 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query III rowsort
SELECT - - 31 AS col2, - col2, + - 13 FROM tab0 WHERE NOT NULL <= + 31 * + 51 * - col2
----

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL >= + - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL COUNT( * ) * + + 29 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL COUNT ( * ) * + + 29 FROM tab1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT - CAST( - 0 AS SIGNED ) + - + MAX( - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8449
SELECT - CAST ( - 0 AS INTEGER ) + - + MAX ( - col0 ) FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT col1 + col2 + + col1 DIV - 45 AS col2 FROM tab1 AS cor0
----
110
114
64

skipif mysql # not compatible
query I rowsort label-8450
SELECT col1 + col2 + + col1 / - 45 AS col2 FROM tab1 AS cor0
----
110
114
64

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE col1 / col0 - CAST( NULL AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE col1 / col0 - CAST ( NULL AS INTEGER ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8453
SELECT * FROM tab0 AS cor0 WHERE ( col2 - + col1 - - + col0 + + CAST( NULL AS SIGNED ) - + 86 ) < - col2
----

skipif mysql # not compatible
query III rowsort label-8453
SELECT * FROM tab0 AS cor0 WHERE ( col2 - + col1 - - + col0 + + CAST ( NULL AS INTEGER ) - + 86 ) < - col2
----

query I rowsort
SELECT ( - col0 ) + 30 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 45
----

query I rowsort
SELECT - + col1 FROM tab1 WHERE - ( + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT DISTINCT + col2 + - 33 + + col2 DIV + + col1 FROM tab0
----
-23
14
165

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + col2 + - 33 + + col2 / + + col1 FROM tab0
----
-23
14
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT + MIN( DISTINCT 60 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT + MIN ( DISTINCT 60 ) FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT ALL col2 * + - col2 * CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE NULL >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8459
SELECT ALL col2 * + - col2 * CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE NULL >= ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - + 81 + + - col0 col1 FROM tab2
----
73
86
94

query I rowsort
SELECT ALL 0 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT 17 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col2 * 25 )
----

query I rowsort
SELECT ALL col2 - col1 * - col1 FROM tab1 AS cor0 WHERE NOT col2 * col2 < - col2
----
2277
292
84

query I rowsort
SELECT + - 18 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - + col0 AND col1
----

query I rowsort
SELECT ALL - 73 * - - col0 * - col0 FROM tab0
----
16425
552537
686857

query I rowsort
SELECT - col1 * + - 32 FROM tab0
----
2592
32
672

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT DISTINCT - COUNT( - ( + col2 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - COUNT ( - ( + col2 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT + col2 * + ( + - 65 ) AS col2 FROM tab2
----
-1495
-2600
-3770

query I rowsort
SELECT ALL col1 * col1 * 99 AS col2 FROM tab0
----
43659
649539
99

query I rowsort
SELECT + 2 + + 82 + + 9 FROM tab1 WHERE NOT + col1 * - 96 * + ( + 64 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT ALL + col2 DIV - ( + + col2 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + col2 / - ( + + col2 ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 * - - 59 AS col1 FROM tab0 AS cor0
----
-2773
-5841
-590

query I rowsort
SELECT DISTINCT + col2 * + + col2 * - 38 * - 67 AS col2 FROM tab0 AS cor0
----
24953346
254600
5624114

query I rowsort
SELECT ALL + 50 + + 27 + - col1 + - 1 AS col0 FROM tab1
----
29
62
71

query I rowsort
SELECT col0 - - + col0 FROM tab1 cor0
----
102
170
182

query I rowsort
SELECT col2 + + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT - 27 + + + col2 FROM tab2 AS cor0
----
-4
13
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT - MIN( ALL + 26 ) + 60 AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - MIN ( ALL + 26 ) + 60 AS col1 FROM tab0
----
34

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN + 45 AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8481
SELECT ALL 88 AS col0, + COUNT( * ) + - - 6 FROM tab0
----
88
9

skipif mysql # not compatible
query II rowsort label-8481
SELECT ALL 88 AS col0, + COUNT ( * ) + - - 6 FROM tab0
----
88
9

query I rowsort
SELECT ALL 4 * ( - col1 ) + 38 FROM tab2
----
-166
-230
-270

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 24 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT + - 97 DIV col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8484
SELECT + - 97 / col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8485
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - COUNT( * ) - - MIN( ALL - col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) - - MIN ( ALL - col2 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + + col0 * 29 FROM tab1
----
1530
2550
2730

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NULL ) IN ( 6 / + col0 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8488
SELECT DISTINCT - col1 * + 3 - CAST( NULL AS DECIMAL ) + - + 41 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT - col1 * + 3 - CAST ( NULL AS REAL ) + - + 41 * - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL COUNT( 35 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL COUNT ( 35 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8490
SELECT DISTINCT + - col2 + - + CAST( col0 AS SIGNED ), col2 * - col0 * + 62 + + + 86 * col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-196
-595300
-62
-36744
-97
-52134

skipif mysql # not compatible
query II rowsort label-8490
SELECT DISTINCT + - col2 + - + CAST ( col0 AS INTEGER ), col2 * - col0 * + 62 + + + 86 * col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-196
-595300
-62
-36744
-97
-52134

query I rowsort
SELECT 97 * + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + col1
----

query I rowsort
SELECT ALL + col0 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + col1 + - + ( - col2 ) FROM tab2 AS cor0 WHERE NOT - 75 + + col1 >= + col1 + - col2 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT ( + 80 ) AS col1, SUM( col1 ) FROM tab2 AS cor0
----
80
195

skipif mysql # not compatible
query II rowsort label-8494
SELECT ( + 80 ) AS col1, SUM ( col1 ) FROM tab2 AS cor0
----
80
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL - - SUM( ALL - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL - - SUM ( ALL - col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - col2 / - col1 IS NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 >= - 37
----

query II rowsort
SELECT DISTINCT + col2, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT 56 DIV + col2 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8499
SELECT 56 / + col2 AS col0 FROM tab2
----
0
1
2

query I rowsort
SELECT + col2 * ( - 34 ) FROM tab1
----
-2006
-2312
-3264

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 cor0 WHERE NOT - 45 + + 38 IS NOT NULL
----

query I rowsort
SELECT - - col2 * + + col1 + - col2 FROM tab2 AS cor0
----
1150
3040
3828

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 < + col1 - 26 / + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col2 ) col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT ALL - CAST( NULL AS SIGNED ) * - 18 + + - col1 + - 70 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL - CAST ( NULL AS INTEGER ) * - 18 + + - col1 + - 70 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 51 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-51

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN NULL AND col1 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT - col1 * col1 DIV - 69 FROM tab2 AS cor0
----
37
65
85

skipif mysql # not compatible
query I rowsort label-8508
SELECT - col1 * col1 / - 69 FROM tab2 AS cor0
----
37
65
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - - 50 IN ( col1 * - - 64, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - col1 * + - 4 AS col2, 36 FROM tab1 AS cor0
----
188
36
20
36
56
36

query I rowsort
SELECT + 45 * + + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = - col0 + + col1
----

query I rowsort
SELECT DISTINCT - 70 * - col2 + + col1 - + col1 * + col1 + - col1 FROM tab2 AS cor0
----
-3129
-429
-991

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT ALL - + col1 DIV - - 47 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - + col1 / - - 47 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8514
SELECT - col2 - - 9 + + - col2 + - + col0 * + - col0 / - col1 * - CAST( NULL AS SIGNED ) + + - col2, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8514
SELECT - col2 - - 9 + + - col2 + - + col0 * + - col0 / - col1 * - CAST ( NULL AS INTEGER ) + + - col2, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT 52 * 47 + - - COUNT( * ) FROM tab2
----
2447

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT 52 * 47 + - - COUNT ( * ) FROM tab2
----
2447

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL + COUNT( * ) + 27 AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + COUNT ( * ) + 27 AS col1 FROM tab0
----
30

query I rowsort
SELECT DISTINCT col0 + + 37 FROM tab2
----
101
112
83

query I rowsort
SELECT DISTINCT - 12 - + 89 AS col1 FROM tab1
----
-101

query I rowsort
SELECT ALL 35 - + col0 AS col1 FROM tab1
----
-16
-50
-56

query I rowsort
SELECT ALL + col2 + + + col0 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 14 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8522
SELECT - col1 AS col0, + 9 AS col0 FROM tab2 AS cor0 WHERE NOT + 88 NOT BETWEEN ( + - 40 / - ( CAST( NULL AS SIGNED ) ) + - col2 - 22 - + 79 ) AND col2
----

skipif mysql # not compatible
query II rowsort label-8522
SELECT - col1 AS col0, + 9 AS col0 FROM tab2 AS cor0 WHERE NOT + 88 NOT BETWEEN ( + - 40 / - ( CAST ( NULL AS INTEGER ) ) + - col2 - 22 - + 79 ) AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 = NULL
----

query I rowsort
SELECT DISTINCT - + ( - - 54 ) AS col2 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT MAX( ALL - ( 61 ) ) + + 57 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-8525
SELECT MAX ( ALL - ( 61 ) ) + + 57 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT - CAST( + + CAST( + col0 AS SIGNED ) AS SIGNED ) * + col1 * - + 71 FROM tab0 AS cor0
----
129717
6887
86265

skipif mysql # not compatible
query I rowsort label-8526
SELECT - CAST ( + + CAST ( + col0 AS INTEGER ) AS INTEGER ) * + col1 * - + 71 FROM tab0 AS cor0
----
129717
6887
86265

query II rowsort
SELECT col2 * - + col2 AS col1, - 20 FROM tab2
----
-1600
-20
-3364
-20
-529
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT DISTINCT + - MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT + - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL MAX( + - ( - 45 ) ) col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8529
SELECT ALL MAX ( + - ( - 45 ) ) col2 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8530
SELECT + + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8530
SELECT + + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8531
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-8531
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL COUNT( * ) FROM tab2 WHERE - + 9 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL COUNT ( * ) FROM tab2 WHERE - + 9 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NOT - col1 IN ( col2 + col0, 59, + col1, + + 35, 46 )
----
-3

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col1 IN ( col2 + col0, 59, + col1, + + 35, 46 )
----
-3

query II rowsort
SELECT ALL col0 + 81 AS col0, ( - + col2 ) * + 70 FROM tab2
----
127
-1610
145
-2800
156
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT - MIN( DISTINCT 96 ) + MAX( ALL - col0 ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-8535
SELECT - MIN ( DISTINCT 96 ) + MAX ( ALL - col0 ) FROM tab0
----
-111

query I rowsort
SELECT 64 + + col1 - 91 FROM tab2 AS cor0
----
24
40
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + MIN( ALL + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8537
SELECT + MIN ( ALL + - col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT - - ( + ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8538
SELECT - - ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col2 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + - col1 + + + 69 FROM tab1 cor0
----
22
55
64

query I rowsort
SELECT DISTINCT - col0 / + 37 * - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - - 82, col0 + + + col0 AS col2 FROM tab1 AS cor0
----
82
102
82
170
82
182

query I rowsort
SELECT DISTINCT + col2 - - + col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8544
SELECT + 96 + + CAST( + MIN( - 54 ) AS SIGNED ) DIV COUNT( * ) * - 23 AS col2 FROM tab1
----
510

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 96 + + CAST ( + MIN ( - 54 ) AS INTEGER ) / COUNT ( * ) * - 23 AS col2 FROM tab1
----
510

query I rowsort
SELECT ALL - 95 + - 68 FROM tab1
----
-163
-163
-163

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT DISTINCT CAST( - col0 AS SIGNED ) * 92 AS col1 FROM tab0
----
-1380
-8004
-8924

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * 92 AS col1 FROM tab0
----
-1380
-8004
-8924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8548
SELECT DISTINCT + MIN( col1 ) DIV + + COUNT( * ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT + MIN ( col1 ) / + + COUNT ( * ) AS col2 FROM tab2
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8549
SELECT DISTINCT col0 * ( - - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT col0 * ( - - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab2 AS cor0 WHERE 88 + - col2 IS NOT NULL
----
116
46
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8553
SELECT + + COUNT( * ) DIV - 41 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8553
SELECT + + COUNT ( * ) / - 41 col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT - - SUM( ALL - col2 ) * CAST( + 54 AS SIGNED ) FROM tab1 AS cor0
----
-12042

skipif mysql # not compatible
query I rowsort label-8554
SELECT - - SUM ( ALL - col2 ) * CAST ( + 54 AS INTEGER ) FROM tab1 AS cor0
----
-12042

query I rowsort
SELECT - 71 * - 24 + col1 FROM tab0 AS cor0
----
1705
1725
1785

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT - 3 AS col2, + COUNT( * ) FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8556
SELECT - 3 AS col2, + COUNT ( * ) FROM tab0 cor0
----
-3
3

query I rowsort
SELECT ALL + 70 + - 65 AS col1 FROM tab1
----
5
5
5

query I rowsort
SELECT - col1 + col1 FROM tab2 WHERE - 12 * col0 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 + - + 86 AS col0 FROM tab1
----
-18
-27
10

query II rowsort
SELECT col2, col0 * - - 59 FROM tab1
----
59
5015
68
5369
96
3009

query I rowsort
SELECT ( + 26 ) FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT col1 * col1 + + + 70 FROM tab2
----
2671
4559
5999

query II rowsort
SELECT ALL 97 AS col0, ( + - col0 ) AS col1 FROM tab2
----
97
-46
97
-64
97
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT DISTINCT - SUM( - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT - SUM ( - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT SUM( ALL ( + col1 ) ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8565
SELECT SUM ( ALL ( + col1 ) ) AS col1 FROM tab1
----
66

query I rowsort
SELECT - col0 FROM tab0 WHERE + col0 + + + 94 IN ( + 81 - + 28 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( + col1 ) / + - 33 + + ( + col0 ) AND - col1
----

query I rowsort
SELECT 69 * + ( + + 85 ) AS col2 FROM tab1 AS cor0
----
5865
5865
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - MAX( - + 81 ) * + - 73 col2 FROM tab1 AS cor0
----
-5913

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8569
SELECT - MAX ( - + 81 ) * + - 73 col2 FROM tab1 AS cor0
----
-5913

onlyif mysql # aggregate syntax: 
query II rowsort label-8570
SELECT ALL COUNT( * ) AS col2, 31 * - ( - 18 ) col1 FROM tab1 cor0
----
3
558

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8570
SELECT ALL COUNT ( * ) AS col2, 31 * - ( - 18 ) col1 FROM tab1 cor0
----
3
558

query I rowsort
SELECT + - 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT CAST( - 17 AS SIGNED ) FROM tab0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-8572
SELECT CAST ( - 17 AS INTEGER ) FROM tab0
----
-17
-17
-17

query I rowsort
SELECT ALL + col1 + + + 62 FROM tab2
----
113
129
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL + col1 * 41 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL + col1 * 41 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 25 ) AS col2 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT ALL + 65 + - ( col0 ) * - col2 * + col0 FROM tab2 cor0
----
163905
326315
48733

query I rowsort
SELECT DISTINCT - col2 - col0 * - + 29 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - - ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN + col1 AND - 11
----
-45
23
26

query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 AS cor0 WHERE NOT col1 + + - col2 + + col1 IS NOT NULL
----

query II rowsort
SELECT + - col1 * - + 56 - + + 38, ( + col1 ) FROM tab0 AS cor0
----
1138
21
18
1
4498
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT 83 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT 83 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 * - - col1 * - col2 * - col2 AS col0 FROM tab0
----
343035
6262515
73500

query II rowsort
SELECT + col0 * 2 * - col2 * + col1 AS col2, col2 * + col0 - + 38 + + col2 * col2 FROM tab0
----
-114210
2876
-19206
19366
-36540
932

query II rowsort
SELECT col2 AS col1, + 46 FROM tab1
----
59
46
68
46
96
46

query II rowsort
SELECT - 81 * - col1 * col1, + col0 FROM tab1
----
15876
51
178929
91
2025
85

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8587
SELECT ALL CAST( - ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8588
SELECT + col0, 98 DIV + col1 FROM tab1
----
51
7
85
19
91
2

skipif mysql # not compatible
query II rowsort label-8588
SELECT + col0, 98 / + col1 FROM tab1
----
51
7
85
19
91
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col1 FROM tab0 AS cor0
----
32

query I rowsort
SELECT 97 FROM tab0 AS cor0 WHERE NOT col1 + - 1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT col2 + 15 DIV col0 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-8591
SELECT col2 + 15 / col0 FROM tab0
----
10
48
99

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = ( col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT 89 * + SUM( 45 ) AS col2 FROM tab1 WHERE NOT + col2 * 15 NOT IN ( 3 * 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT 89 * + SUM ( 45 ) AS col2 FROM tab1 WHERE NOT + col2 * 15 NOT IN ( 3 * 91 )
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NULL IN ( 72 )
----

query I rowsort
SELECT DISTINCT - 67 + col0 AS col1 FROM tab1
----
-16
18
24

query III rowsort
SELECT * FROM tab1 WHERE + 37 / - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 / - col1 FROM tab2 WHERE - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT SUM( - 64 ) FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT SUM ( - 64 ) FROM tab0
----
-192

query I rowsort
SELECT col2 FROM tab1 WHERE col0 NOT IN ( 18 + - col2 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - MAX( ALL + ( col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8600
SELECT - MAX ( ALL + ( col2 ) ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT - col2 + - col1 * col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * col2 - - 32 IS NOT NULL
----
-100
-451
-6608

skipif mysql # not compatible
query I rowsort label-8601
SELECT - col2 + - col1 * col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 - - 32 IS NOT NULL
----
-100
-451
-6608

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT 89 + - COUNT( col0 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT 89 + - COUNT ( col0 ) FROM tab1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT col0 DIV col1 - - ( col2 - 7 ) AS col0 FROM tab2
----
16
33
52

skipif mysql # not compatible
query I rowsort label-8603
SELECT col0 / col1 - - ( col2 - 7 ) AS col0 FROM tab2
----
16
33
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT MIN( ALL + 40 ) * + 23 AS col2 FROM tab0
----
920

skipif mysql # not compatible
query I rowsort label-8604
SELECT MIN ( ALL + 40 ) * + 23 AS col2 FROM tab0
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT 69 * + COUNT( col0 ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-8605
SELECT 69 * + COUNT ( col0 ) FROM tab1
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8606
SELECT ALL - CAST( NULL AS SIGNED ) * ( COUNT( * ) * 96 ) + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8606
SELECT ALL - CAST ( NULL AS INTEGER ) * ( COUNT ( * ) * 96 ) + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT col2 * 21 AS col1 FROM tab0
----
2079
210
987

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) <> - 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + 6 / + col1 )
----

query I rowsort
SELECT 18 * 86 AS col2 FROM tab2
----
1548
1548
1548

query I rowsort
SELECT 7 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
7
7
7

query I rowsort
SELECT - 73 * col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1022
-3431
-365

query I rowsort
SELECT ALL + ( 38 ) + - 29 AS col0 FROM tab0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8614
SELECT col1 FROM tab0 WHERE ( col2 * ( CAST( NULL AS DECIMAL ) ) ) NOT IN ( + col1 + CAST( + col0 - col0 * 48 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8614
SELECT col1 FROM tab0 WHERE ( col2 * ( CAST ( NULL AS REAL ) ) ) NOT IN ( + col1 + CAST ( + col0 - col0 * 48 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT DISTINCT - COUNT( * ) * + 86 AS col1 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT - COUNT ( * ) * + 86 AS col1 FROM tab0
----
-258

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab2 AS cor0 WHERE ( col2 * 68 ) IS NOT NULL
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8617
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( 92 AS SIGNED ) * - CAST( 91 AS SIGNED ) - col2 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8617
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( 92 AS INTEGER ) * - CAST ( 91 AS INTEGER ) - col2 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 * - 20 ) AND ( - ( - CAST( col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-8618
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 * - 20 ) AND ( - ( - CAST ( col1 AS INTEGER ) ) )
----

query I rowsort
SELECT 66 * + col1 AS col1 FROM tab0 AS cor0
----
1386
5346
66

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL NOT IN ( - 55 )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL NOT IN ( + 23 * - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - col0 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 65 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + MIN( col1 ) FROM tab0 AS cor0 WHERE col0 >= ( + col1 + - 36 * col2 )
----
1

skipif mysql # not compatible
query I rowsort label-8624
SELECT + MIN ( col1 ) FROM tab0 AS cor0 WHERE col0 >= ( + col1 + - 36 * col2 )
----
1

query I rowsort
SELECT - - col1 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT - COUNT( * ) * 71 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT - COUNT ( * ) * 71 FROM tab1 AS cor0
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) * 23 col0 FROM tab0 AS cor0
----
1863
23
483

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT MAX( DISTINCT 66 ) + AVG ( ALL col2 ) / - 50 FROM tab1 cor0 WHERE NOT NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT MAX ( DISTINCT 66 ) + AVG ( ALL col2 ) / - 50 FROM tab1 cor0 WHERE NOT NULL < col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8629
SELECT + + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT + - COUNT( ALL + 31 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8630
SELECT + - COUNT ( ALL + 31 ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT + col1 * - ( col0 + col0 * + 43 ) AS col0 FROM tab1 AS cor0
----
-18700
-188188
-31416

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT + MAX( + ( + 5 ) ) * 42 AS col1 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-8632
SELECT + MAX ( + ( + 5 ) ) * 42 AS col1 FROM tab2 AS cor0
----
210

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) BETWEEN + col0 AND col0 * col0
----
-1
-441

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8634
SELECT * FROM tab1 WHERE NOT CAST( + col1 AS DECIMAL ) * - col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8634
SELECT * FROM tab1 WHERE NOT CAST ( + col1 AS REAL ) * - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col2 * ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT MAX( col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8636
SELECT MAX ( col2 ) col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT MAX( DISTINCT + + 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT MAX ( DISTINCT + + 92 ) FROM tab1
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col1 FROM tab1 AS cor0
----
82

query I rowsort
SELECT + col1 * + 47 * + 65 FROM tab1 AS cor0
----
143585
15275
42770

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + col0 ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-8641
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + col0 ) NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT IN ( + ( - col2 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col2 FROM tab2, tab1 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT ALL 46 DIV 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL 46 / 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col0 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT DISTINCT 26 * - ( + 0 ) + + ( ( - 40 ) ) FROM tab1 AS cor0
----
-40

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( + col0 ) >= NULL
----

query II rowsort
SELECT ALL col1, + 3 AS col1 FROM tab2 AS cor0
----
51
3
67
3
77
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 53 )
----

query I rowsort
SELECT DISTINCT - 6 FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 44 NOT BETWEEN ( - 81 + + col1 ) AND 43 * col1
----
15
81
47

query I rowsort
SELECT ALL ( - col2 ) FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 23 / - + 38 )
----

query I rowsort
SELECT ( - 78 ) FROM tab0 AS cor0 WHERE NULL <> + col2
----

query I rowsort
SELECT ALL - 31 * 99 + - 18 FROM tab0 AS cor0
----
-3087
-3087
-3087

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / - + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 55 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT COUNT( * ) col1 FROM tab2 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8659
SELECT COUNT ( * ) col1 FROM tab2 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( col1 ) * - + col0 - - col1 + 38 * 24 FROM tab1
----
-3318
212
492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( - + col0 AS SIGNED ) + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( - + col0 AS INTEGER ) + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - - 27 ) + 96 AS col2 FROM tab1
----
123

query I rowsort
SELECT + col0 + 1 FROM tab2 WHERE NULL >= + ( + 53 )
----

query I rowsort
SELECT - col1 - + col2 + col0 FROM tab1
----
-24
-59
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT DISTINCT 15 + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab1
----
-36
-70
-76

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT 15 + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1
----
-36
-70
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT + col0 DIV + 35 - + col0 + - 69 FROM tab0 AS cor0
----
-154
-164
-84

skipif mysql # not compatible
query I rowsort label-8666
SELECT + col0 / + 35 - + col0 + - 69 FROM tab0 AS cor0
----
-154
-164
-84

query II rowsort
SELECT DISTINCT + 20 - - col0 AS col2, col1 * col1 AS col2 FROM tab2 cor0
----
66
2601
84
5929
95
4489

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 8 NOT BETWEEN 70 + ( col0 ) - + col0 AND 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - - ( - COUNT( * ) ) + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8669
SELECT - - ( - COUNT ( * ) ) + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL col1 + + col1 * - col1 FROM tab1 AS cor0 WHERE NOT + 7 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL + COUNT( * ) - 40 col1 FROM tab2 cor0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8671
SELECT ALL + COUNT ( * ) - 40 col1 FROM tab2 cor0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE 49 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT + - MAX( ALL - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT + - MAX ( ALL - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
59

query II rowsort
SELECT + col2 AS col0, - col2 FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - MAX( ALL + + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8676
SELECT - MAX ( ALL + + col0 ) FROM tab0
----
-97

query II rowsort
SELECT col2, col0 + - col1 FROM tab2
----
23
-5
40
-13
58
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8678
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT COUNT( ALL col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT COUNT ( ALL col1 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col0 FROM tab2 WHERE NOT - - col2 + col2 + - 10 NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT DISTINCT ( + ( + + col1 ) ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col1 ) AND col0 + col0 - col2 + - col0 * ( + ( col2 ) )
----

query I rowsort
SELECT + col0 * 5 AS col2 FROM tab0 cor0
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL COUNT( * ) * COUNT( ALL ( col0 ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8684
SELECT ALL COUNT ( * ) * COUNT ( ALL ( col0 ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8685
SELECT - MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 + + 71 - + col1 + + 16 * + ( col2 + + col1 * col0 ) * col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * - col1 AS col2, col2 FROM tab1
----
-1344
96
-295
59
-3196
68

query III rowsort
SELECT * FROM tab0 WHERE NOT + 3 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 27 FROM tab0 WHERE NOT ( NOT ( - 24 ) BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT - ( + ( - 16 ) ) AS col2 FROM tab1
----
16

query I rowsort
SELECT DISTINCT 31 + 59 * + ( + col1 ) FROM tab2 WHERE ( NOT 17 IS NOT NULL )
----

query I rowsort
SELECT ALL - ( - col1 ) + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - 69 AS col1 FROM tab0 cor0 WHERE NOT NULL IN ( 24 / + - 99, 8 )
----

query I rowsort
SELECT 43 * - 39 * col1 FROM tab1 cor0
----
-23478
-78819
-8385

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT col1 * + ( 52 ) * col2 AS col0 FROM tab2
----
160160
202072
60996

query I rowsort
SELECT DISTINCT - + ( + ( col2 ) ) * - col2 AS col0 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT ALL - - col1 + col0 + - col1 * - - 34 + + 73 AS col1 FROM tab0 cor0
----
-2585
-533
137

query I rowsort
SELECT 93 * + - col2 * - + 97 AS col0 FROM tab2 AS cor0
----
207483
360840
523218

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 IN ( ( + col2 ) * - col2 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8701
SELECT * FROM tab0 AS cor0 WHERE + 36 BETWEEN NULL AND ( + + col0 * CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8701
SELECT * FROM tab0 AS cor0 WHERE + 36 BETWEEN NULL AND ( + + col0 * CAST ( + col0 AS INTEGER ) )
----

query II rowsort
SELECT + 9 + + ( + ( + + col2 ) ) * 23 AS col2, + ( col1 ) FROM tab2 AS cor0
----
1343
67
538
51
929
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT + col0 * - col0 + + 24 + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT + col0 * - col0 + + 24 + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 44 + + col1 AS col2 FROM tab0 cor0
----
125
45
65

query I rowsort
SELECT ALL + ( + + col1 ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT + col2 + + - 52 FROM tab0
----
-42
-5
47

query I rowsort
SELECT + col2 + - 73 * col2 FROM tab0
----
-3384
-7128
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT DISTINCT + COUNT( * ) + 31 * - 8 AS col2 FROM tab0
----
-245

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT + COUNT ( * ) + 31 * - 8 AS col2 FROM tab0
----
-245

query I rowsort
SELECT + 5 + 84 AS col0 FROM tab1
----
89
89
89

query I rowsort
SELECT ALL + 52 AS col0 FROM tab2 WHERE + - col1 NOT BETWEEN + col2 AND NULL
----
52
52
52

query I rowsort
SELECT + col1 * 54 AS col2 FROM tab1
----
2538
270
756

query I rowsort
SELECT ALL + col0 * 53 + - ( 90 ) AS col2 FROM tab2 AS cor0
----
2348
3302
3885

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT 46 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT - 93 * - + col2 <= col1
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ALL - COUNT( * ) * + 5 AS col2 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL - COUNT ( * ) * + 5 AS col2 FROM tab2
----
-15

query I rowsort
SELECT ALL + 63 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - + 68 FROM tab2 cor0 WHERE NOT + col2 NOT IN ( - col2, - col2, + col1 + - + ( - - col2 ) )
----

query I rowsort
SELECT + - col2 * + + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 * + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ), col2 + + - col1 )
----

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ), col2 + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - MAX( DISTINCT 73 ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8722
SELECT - MAX ( DISTINCT 73 ) FROM tab0 AS cor0
----
-73

query I rowsort
SELECT ALL 44 AS col0 FROM tab1 WHERE + ( col1 ) = NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + + col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT MAX( ALL - col0 ) col0 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8725
SELECT DISTINCT MAX ( ALL - col0 ) col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8726
SELECT DISTINCT CAST( NULL AS SIGNED ), - col0 - - - col1 AS col1, col0 FROM tab0
----
9 values hashing to 20418feee053b69982f4c4ff3d5a371f

skipif mysql # not compatible
query III rowsort label-8726
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col0 - - - col1 AS col1, col0 FROM tab0
----
9 values hashing to 20418feee053b69982f4c4ff3d5a371f

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL + MIN( ALL + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + MIN ( ALL + + col0 ) FROM tab2
----
46

query I rowsort
SELECT - col1 + - col2 - + col2 FROM tab0 WHERE NOT col2 * - col0 > - + 15
----
-175
-199
-41

query II rowsort
SELECT DISTINCT col1, 18 AS col1 FROM tab1
----
14
18
47
18
5
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT MAX( ALL 29 ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8730
SELECT MAX ( ALL 29 ) FROM tab1 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + - col2 + + 25 / 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - 48 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( + 63 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT col0 DIV 32 * + col0 * - - 39 FROM tab1 AS cor0
----
1989
6630
7098

skipif mysql # not compatible
query I rowsort label-8733
SELECT col0 / 32 * + col0 * - - 39 FROM tab1 AS cor0
----
1989
6630
7098

query II rowsort
SELECT col1 + col2 + - col1 + + + 76 AS col0, - col2 * - col0 FROM tab2
----
116
2560
134
4350
99
1058

query I rowsort
SELECT 36 + col0 AS col0 FROM tab2
----
100
111
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8736
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-8736
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8737
SELECT * FROM tab2 cor0 WHERE col1 + + CAST( + ( - 54 ) AS SIGNED ) IN ( + col1 / col0 )
----

skipif mysql # not compatible
query III rowsort label-8737
SELECT * FROM tab2 cor0 WHERE col1 + + CAST ( + ( - 54 ) AS INTEGER ) IN ( + col1 / col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8738
SELECT ALL + + 70 AS col2, - 56 DIV - 6 AS col1 FROM tab0 AS cor0
----
70
9
70
9
70
9

skipif mysql # not compatible
query II rowsort label-8738
SELECT ALL + + 70 AS col2, - 56 / - 6 AS col1 FROM tab0 AS cor0
----
70
9
70
9
70
9

query I rowsort
SELECT ALL + 2 FROM tab2 AS cor0 WHERE NOT + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + - MIN( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8740
SELECT + - MIN ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 81 IN ( - 17 + + 81, col1 + + col2 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 82 * + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 98 + - col0 AS col0 FROM tab0
----
1
11
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT + CAST( NULL AS SIGNED ) / + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT + CAST ( NULL AS INTEGER ) / + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 27 AND NULL
----

query I rowsort
SELECT DISTINCT - 30 + col1 AS col0 FROM tab1
----
-16
-25
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 + - col2 col0 FROM tab0
----
-44
-7
-96

query II rowsort
SELECT DISTINCT + 81 - - col2 AS col0, - 80 AS col1 FROM tab1 AS cor0
----
140
-80
149
-80
177
-80

query I rowsort
SELECT ALL - col0 * + 43 FROM tab1 AS cor0
----
-2193
-3655
-3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT + - CAST( + - 40 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif mysql # not compatible
query I rowsort label-8750
SELECT + - CAST ( + - 40 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT ALL - - col0 DIV - col1 col0 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8752
SELECT ALL - - col0 / - col1 col0 FROM tab0 cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8753
SELECT + COUNT( * ) AS col1, COUNT( * ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8753
SELECT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 < + + col1 * 24 + col0
----

query I rowsort
SELECT + 29 * + - col0 * col2 FROM tab0
----
-20445
-25230
-278487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) * + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT - 95 * col1 FROM tab0
----
-1995
-7695
-95

query I rowsort
SELECT 66 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + ( col2 ) + - col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT + 93 FROM tab0 WHERE NOT col2 * + col1 IS NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT + + COUNT( * ) * - - MAX( ALL + col0 ) FROM tab1 cor0
----
273

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + + COUNT ( * ) * - - MAX ( ALL + col0 ) FROM tab1 cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL - ( - 70 ) + - MAX( + col0 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - ( - 70 ) + - MAX ( + col0 ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT - - ( + + ( + - col1 ) ) AS col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT + 62 * + 51 FROM tab0
----
3162
3162
3162

query I rowsort
SELECT DISTINCT 46 + - col0 * + col0 * - - col2 FROM tab1
----
-249650
-426229
-563062

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + + 6 + + col2 + + + ( + + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - + 81
----

query I rowsort
SELECT + + col1 + - col0 - - - 81 * - col1 FROM tab2 cor0
----
4136
5419
6250

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + - COUNT( * ) - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT ALL 77 - + col0 - + - col1 DIV col1 FROM tab1 cor0
----
-13
-7
27

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL 77 - + col0 - + - col1 / col1 FROM tab1 cor0
----
-13
-7
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8771
SELECT - + col2 + + ( 12 ) AS col0, - ( - - CAST( - col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-35
81
-87
1
2
21

skipif mysql # not compatible
query II rowsort label-8771
SELECT - + col2 + + ( 12 ) AS col0, - ( - - CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-35
81
-87
1
2
21

query II rowsort
SELECT ( + - col1 ) + + + 22, 21 AS col2 FROM tab2 AS cor0
----
-29
21
-45
21
-55
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 + - col1 col2 FROM tab1 AS cor0
----
-34
-43
-76

query I rowsort
SELECT - 58 FROM tab2 WHERE - col1 NOT IN ( col2 )
----
-58
-58
-58

query II rowsort
SELECT ALL col0 + - - col0, 36 AS col0 FROM tab2
----
128
36
150
36
92
36

query I rowsort
SELECT ALL + 37 - - col2 * - col2 AS col2 FROM tab1
----
-3444
-4587
-9179

query I rowsort
SELECT DISTINCT 86 + - - 69 FROM tab1
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-8778
SELECT DISTINCT - 79, 68 * COUNT( ALL + + 20 ) AS col2 FROM tab1 AS cor0
----
-79
204

skipif mysql # not compatible
query II rowsort label-8778
SELECT DISTINCT - 79, 68 * COUNT ( ALL + + 20 ) AS col2 FROM tab1 AS cor0
----
-79
204

query I rowsort
SELECT + + ( + ( - 72 ) ) AS col0 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT ALL - + col2 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - + col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8781
SELECT - 65 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8781
SELECT - 65 + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + + 67 AS col0 FROM tab0 WHERE NOT NULL = + + 19
----

query I rowsort
SELECT + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 98 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8785
SELECT - COUNT( DISTINCT - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8785
SELECT - COUNT ( DISTINCT - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT + COUNT( * ) * - 62 AS col1, MAX( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
-186
-51

skipif mysql # not compatible
query II rowsort label-8786
SELECT + COUNT ( * ) * - 62 AS col1, MAX ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
-186
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT COUNT( + + 90 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8787
SELECT COUNT ( + + 90 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - 62 * + col0 + + 29 AS col2 FROM tab0 AS cor0
----
-5365
-5985
-901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 - + col1 col0 FROM tab0 WHERE NOT + 68 IN ( - col1, 29, - 59, - - col2 + + - col1, - col2 )
----
16
76
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT + COUNT( * ) + + 32 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + COUNT ( * ) + + 32 FROM tab2
----
35

query I rowsort
SELECT + + 57 + - - 12 AS col1 FROM tab1 WHERE NOT + col1 / col0 + - + col0 + - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 9 + - col2 AS col1 FROM tab1
----
-105
-68
-77

query I rowsort
SELECT + ( 79 ) * 54 FROM tab0
----
4266
4266
4266

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT col1 DIV col0 DIV + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT col1 / col0 / + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL + - COUNT( * ) * 63 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + - COUNT ( * ) * 63 FROM tab2 AS cor0
----
-189

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8796
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - - CAST( NULL AS DECIMAL ) + col2 NOT BETWEEN - + col2 AND 96
----

skipif mysql # not compatible
query III rowsort label-8796
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - - CAST ( NULL AS REAL ) + col2 NOT BETWEEN - + col2 AND 96
----

query I rowsort
SELECT DISTINCT + 40 * col1 AS col0 FROM tab1 AS cor0
----
1880
200
560

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT - MIN( DISTINCT - 42 ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8798
SELECT - MIN ( DISTINCT - 42 ) AS col1 FROM tab2 AS cor0
----
42

query I rowsort
SELECT + col0 + - + col2 AS col0 FROM tab1
----
-45
23
26

query II rowsort
SELECT DISTINCT + 13 + + col0 AS col2, - col1 AS col2 FROM tab0
----
100
-21
110
-1
28
-81

query II rowsort
SELECT + col2 + + col0 + + col2 + - + col0, - col0 AS col1 FROM tab0
----
198
-97
20
-87
94
-15

query I rowsort
SELECT ALL + 9 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT - SUM( col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT - SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT col2 / + - 80 * - ( + + 37 ) FROM tab0 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 91 - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
112
172
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col1 FROM tab1 AS cor0
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT ALL + 97 + + col2 + - + col2 * col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
117
191
295

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + 97 + + col2 + - + col2 * col1 / - col1 AS col2 FROM tab0 AS cor0
----
117
191
295

query I rowsort
SELECT 73 - col2 FROM tab0
----
-26
26
63

query I rowsort
SELECT - 66 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT ALL + 9 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + 9 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col1 FROM tab0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT DISTINCT 16 DIV col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT 16 / col0 FROM tab0
----
0
1

query III rowsort
SELECT + col2 + col1 * 4, + 60 AS col1, 64 + + + ( - - 23 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - + 47 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + MIN( - 54 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8815
SELECT + MIN ( - 54 ) FROM tab1 AS cor0
----
-54

query II rowsort
SELECT DISTINCT + 86 AS col0, ( + + col0 ) AS col2 FROM tab0 WHERE ( NOT - col1 + 35 + - - ( - - col1 ) > + col0 )
----
86
87
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - 27 * + + COUNT( * ) col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8817
SELECT - 27 * + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT ALL + 47 * + + 73 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + 47 * + + 73 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT + SUM( - col0 ) * - 51 - + SUM( 10 ) FROM tab2 AS cor0
----
9405

skipif mysql # not compatible
query I rowsort label-8819
SELECT + SUM ( - col0 ) * - 51 - + SUM ( 10 ) FROM tab2 AS cor0
----
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT ALL + 23 * - MIN( + 12 ) FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL + 23 * - MIN ( + 12 ) FROM tab0 AS cor0
----
-276

query I rowsort
SELECT DISTINCT + col0 * + 73 * - 62 + ( - 36 ) + col2 AS col0 FROM tab2 AS cor0
----
-208209
-289660
-339428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 56 col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 1 AND 90 + + + col0 * - 96
----

query II rowsort
SELECT DISTINCT + col2 * - - col0 AS col0, 84 FROM tab2
----
1058
84
2560
84
4350
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT + 70 + + COUNT( * ) * 44 FROM tab1
----
202

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + 70 + + COUNT ( * ) * 44 FROM tab1
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - ( - COUNT( * ) ) + + 82 + - COUNT( * ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8825
SELECT - ( - COUNT ( * ) ) + + 82 + - COUNT ( * ) FROM tab0
----
82

query I rowsort
SELECT DISTINCT col0 + - col1 + - col1 * - 33 + + - ( - 17 ) FROM tab0
----
146
2624
776

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND - + 64 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT 46 * - COUNT( * ) + COUNT( * ) col0 FROM tab2
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8828
SELECT 46 * - COUNT ( * ) + COUNT ( * ) col0 FROM tab2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + 62, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + 62, - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL MIN( - - col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL MIN ( - - col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL + MAX( col2 ) + + + COUNT( ALL - 60 ) AS col2 FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + MAX ( col2 ) + + + COUNT ( ALL - 60 ) AS col2 FROM tab1 cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT + - col0 DIV + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT + - col0 / + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT - + ( - 37 ) DIV ( - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT - + ( - 37 ) / ( - col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 * 51 * - col2 AS col1 FROM tab0 AS cor0
----
35955
44370
489753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT ALL ( - col1 ) + + + col1 - col2 + - 99 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL ( - col1 ) + + + col1 - col2 + - 99 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - 68 FROM tab1 AS cor0
----
-17
17
23

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 > + + col1
----

query I rowsort
SELECT DISTINCT - col1 - - 98 FROM tab1 cor0
----
51
84
93

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT ALL - + CAST( NULL AS SIGNED ) - - ( 5 ) + - - ( - SUM( - col0 ) ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL - + CAST ( NULL AS INTEGER ) - - ( 5 ) + - - ( - SUM ( - col0 ) ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 29 + - col1 FROM tab1 AS cor0
----
-34
-43
-76

query I rowsort
SELECT + 47 AS col0 FROM tab2 AS cor0 WHERE col0 >= - col2 - + - col2 / - - col0 * - col0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 41 col0 FROM tab0 AS cor0
----
-128
-138
-56

query I rowsort
SELECT ALL + ( + 69 ) FROM tab1 AS cor0
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT ( col2 ) DIV + 88 * - - col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8846
SELECT ( col2 ) / + 88 * - - col1 col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 47 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + - col2 * + col1 / - + col1 ) AND + col0 - - + col0
----
14
47
5

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + - COUNT( + - 12 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8850
SELECT + - COUNT ( + - 12 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT DISTINCT - + CAST( + ( + col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT - + CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + - COUNT( * ) * - 27 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + - COUNT ( * ) * - 27 FROM tab0 AS cor0
----
81

query I rowsort
SELECT col0 + - - col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + 6 * - + col2 AS col1 FROM tab2 AS cor0
----
-138
-240
-348

query I rowsort
SELECT ALL - + col2 + + - ( - col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1248
236
3128

query I rowsort
SELECT + col0 - - 65 + + + col1 / + ( + + col2 ) + 90 + - col1 * - ( + col0 ) * + + col2 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL ( - 91 ) + - col1 FROM tab1
----
-105
-138
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT CAST( + - COUNT( * ) AS SIGNED ) * 55 * - 82 + COUNT( * ) AS col2 FROM tab2
----
13533

skipif mysql # not compatible
query I rowsort label-8859
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * 55 * - 82 + COUNT ( * ) AS col2 FROM tab2
----
13533

query II rowsort
SELECT DISTINCT 12 * - 59 AS col0, - col1 FROM tab0
----
-708
-1
-708
-21
-708
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT + 14 + - 82 * COUNT( * ) FROM tab0
----
-232

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT + 14 + - 82 * COUNT ( * ) FROM tab0
----
-232

query I rowsort
SELECT ALL 12 FROM tab0 WHERE col0 IS NOT NULL
----
12
12
12

query I rowsort
SELECT 27 - - + col1 AS col2 FROM tab0 AS cor0
----
108
28
48

query I rowsort
SELECT - 12 * - - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1065
-1165
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL col2 + + col0 / + CAST( - 98 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL col2 + + col0 / + CAST ( - 98 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8868
SELECT DISTINCT col0 DIV + - col1 + CAST( - + CAST( - col2 AS SIGNED ) AS SIGNED ) DIV + 88 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT col0 / + - col1 + CAST ( - + CAST ( - col2 AS INTEGER ) AS INTEGER ) / + 88 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT ALL + col1 * + + col1 * + col1 + - col1 FROM tab1
----
103776
120
2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT DISTINCT SUM( - + 84 ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT SUM ( - + 84 ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL 93 - + - SUM( + 44 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL 93 - + - SUM ( + 44 ) FROM tab2 AS cor0
----
225

query II rowsort
SELECT DISTINCT - + col0 + - 51 AS col0, 44 * + + 14 AS col0 FROM tab0 AS cor0
----
-138
616
-148
616
-66
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8873
SELECT DISTINCT - ( COUNT( * ) ) - SUM( DISTINCT - CAST( - col1 AS SIGNED ) ) - 99 + 29 * 83 AS col0 FROM tab2 AS cor0
----
2110

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT - ( COUNT ( * ) ) - SUM ( DISTINCT - CAST ( - col1 AS INTEGER ) ) - 99 + 29 * 83 AS col0 FROM tab2 AS cor0
----
2110

onlyif mysql # DIV for integer division: 
query I rowsort label-8874
SELECT DISTINCT - 62 DIV col2 col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8874
SELECT DISTINCT - 62 / col2 col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - + col0, col1 - - - col0 )
----

query I rowsort
SELECT + 33 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 50 AS col2 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT ALL 49 * + - 24 FROM tab1
----
-1176
-1176
-1176

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT 63 DIV + - 65 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8880
SELECT 63 / + - 65 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT DISTINCT + 58 * COUNT( * ) AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT + 58 * COUNT ( * ) AS col2 FROM tab0
----
174

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 + 49 > ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - COUNT( * ) * + + 1 AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8883
SELECT - COUNT ( * ) * + + 1 AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT ALL - ( CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - ( CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT ALL - - 32 col0, - 28 * COUNT( * ) FROM tab1 cor0
----
32
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8885
SELECT ALL - - 32 col0, - 28 * COUNT ( * ) FROM tab1 cor0
----
32
-84

query II rowsort
SELECT DISTINCT - col2, 59 * col1 AS col2 FROM tab0 AS cor0
----
-10
1239
-47
4779
-99
59

query I rowsort
SELECT ALL - - 94 + 94 AS col1 FROM tab0 AS cor0
----
188
188
188

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT ( COUNT( + + col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT ( COUNT ( + + col2 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT + 21 * - + COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + 21 * - + COUNT ( * ) FROM tab0
----
-63

query I rowsort
SELECT ALL - col0 + 70 AS col1 FROM tab1
----
-15
-21
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + SUM( DISTINCT col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + SUM ( DISTINCT col1 ) AS col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT + - COUNT( * ) * - COUNT( * ) * + 57 FROM tab2 AS cor0
----
513

skipif mysql # not compatible
query I rowsort label-8892
SELECT + - COUNT ( * ) * - COUNT ( * ) * + 57 FROM tab2 AS cor0
----
513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT ALL + - 91 * - - 74 * + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + - 91 * - - 74 * + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + - 75 FROM tab0 cor0
----
1575
6075
75

query I rowsort
SELECT - - 65 + - + 99 AS col1 FROM tab2 AS cor0
----
-34
-34
-34

query II rowsort
SELECT + + 15 + - - col2 AS col1, 2 + + - 68 AS col0 FROM tab0 AS cor0
----
114
-66
25
-66
62
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + 43 ) <> 98 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT COUNT( * ) * - COUNT( * ) + - COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-12

query I rowsort
SELECT ALL 27 + 35 FROM tab0
----
62
62
62

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL - - COUNT( - - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - - COUNT ( - - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 + - col2 * - + col0 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT DISTINCT 27 + - + col2 FROM tab0
----
-20
-72
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 * - - col0 col2 FROM tab2
----
262144
421875
97336

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 AS cor0 WHERE col2 + 75 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT - + COUNT( ALL col1 ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8906
SELECT - + COUNT ( ALL col1 ) col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * 95 FROM tab2
----
4370
6080
7125

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + - 10
----

query I rowsort
SELECT ALL + 97 * col2 * - + 12 * col2 FROM tab2
----
-1862400
-3915696
-615756

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT ALL col0 DIV col0 * - 89 * + col0 AS col0 FROM tab1
----
-4539
-7565
-8099

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL col0 / col0 * - 89 * + col0 AS col0 FROM tab1
----
-4539
-7565
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <> - - col0
----
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <> - - col0
----
0

query I rowsort
SELECT - - 93 AS col1 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT COUNT( * ) + + - MAX( + col2 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT COUNT ( * ) + + - MAX ( + col2 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 89
----
NULL

query I rowsort
SELECT + col1 + + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col0 * + col1 ) IS NULL
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( col0 ) + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + 94 FROM tab2
----
17
27
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL 57 + + + COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL 57 + + + COUNT ( * ) FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8918
SELECT DISTINCT + + 65 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
65
-3

skipif mysql # not compatible
query II rowsort label-8918
SELECT DISTINCT + + 65 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
65
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL + MAX( - 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + MAX ( - 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
55

query I rowsort
SELECT - 41 * + + 47 AS col2 FROM tab0 AS cor0
----
-1927
-1927
-1927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT ( - ( - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + col2 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - col0
----

query I rowsort
SELECT + 58 * col1 FROM tab0
----
1218
4698
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) - 41 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8926
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) - 41 col2 FROM tab1
----
NULL

query I rowsort
SELECT + col1 - col1 * - col2 FROM tab2
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT DISTINCT COUNT( * ) - - ( - MAX( ALL + + 70 ) ) + + SUM( ALL - col1 ) AS col2 FROM tab2
----
-262

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT COUNT ( * ) - - ( - MAX ( ALL + + 70 ) ) + + SUM ( ALL - col1 ) AS col2 FROM tab2
----
-262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL + 69 + - + CAST( NULL AS SIGNED ) + - col2 + 24 * col2 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + 69 + - + CAST ( NULL AS INTEGER ) + - col2 + 24 * col2 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT - + 59 DIV - 11 + 60 FROM tab1 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-8930
SELECT - + 59 / - 11 + 60 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT col0 * - ( - + col0 ) AS col2 FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL 28 AS col0 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT SUM( - 15 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8933
SELECT SUM ( - 15 ) AS col2 FROM tab0
----
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = ( + col1 )
----

query I rowsort
SELECT ALL + 8 * - - col0 FROM tab0 cor0
----
120
696
776

query I rowsort
SELECT ALL - - 21 FROM tab0 AS cor0 WHERE - col2 * col0 + - + 33 IS NOT NULL
----
21
21
21

query I rowsort
SELECT DISTINCT 34 + + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
57
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL 10 * COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL 10 * COUNT ( * ) FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT ALL col2 DIV + 26 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL col2 / + 26 FROM tab0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT NULL IN ( col0 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 * + - 77 * 8 col1 FROM tab0
----
-17248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT ALL + COUNT( * ) DIV 37 * 61 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + COUNT ( * ) / 37 * 61 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT - col2 / col0 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT - col2 / col0 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8944
SELECT DISTINCT - 45 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-8944
SELECT DISTINCT - 45 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
-45
NULL

query I rowsort
SELECT DISTINCT - col1 + + + col1 + 34 AS col1 FROM tab2
----
34

query II rowsort
SELECT DISTINCT + col0, 50 AS col1 FROM tab0
----
15
50
87
50
97
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT COUNT( + col2 ) + SUM( DISTINCT + - col2 ), 73 AS col1 FROM tab1
----
-220
73

skipif mysql # not compatible
query II rowsort label-8947
SELECT COUNT ( + col2 ) + SUM ( DISTINCT + - col2 ), 73 AS col1 FROM tab1
----
-220
73

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 36 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT - MIN( + ( col1 ) ) + 17 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT - MIN ( + ( col1 ) ) + 17 FROM tab2 AS cor0
----
-34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 63 ) > NULL
----

query I rowsort
SELECT col0 * - - col2 + + col2 AS col2 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT NULL BETWEEN 61 AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8954
SELECT DISTINCT + COUNT( ALL col0 ) AS col0, COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-8954
SELECT DISTINCT + COUNT ( ALL col0 ) AS col0, COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 88 ) + - col0 col2 FROM tab1
----
-139
-173
-179

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8956
SELECT - CAST( NULL AS DECIMAL ) + + CAST( + col1 AS SIGNED ) AS col0, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8956
SELECT - CAST ( NULL AS REAL ) + + CAST ( + col1 AS INTEGER ) AS col0, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 10, - col2 col2 FROM tab2
----
10
-23
10
-40
10
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 54 / col1 * - 22 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT + COUNT( * ) + 83 AS col1 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + COUNT ( * ) + 83 AS col1 FROM tab0
----
86

query I rowsort
SELECT - 92 AS col2 FROM tab2 WHERE - col2 > - 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT ALL col2 - + 62 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL col2 - + 62 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 29 ) AS col0 FROM tab1
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-8965
SELECT ALL col1 * col2 DIV + ( 3 ), - 92 + - col2 col1 FROM tab2 AS cor0
----
1026
-132
1295
-150
391
-115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8965
SELECT ALL col1 * col2 / + ( 3 ), - 92 + - col2 col1 FROM tab2 AS cor0
----
1026
-132
1295
-150
391
-115

query II rowsort
SELECT ( - 0 ) AS col1, col0 * col2 FROM tab1 AS cor0
----
0
4896
0
5015
0
6188

query I rowsort
SELECT ALL + 16 * + + 13 FROM tab0 AS cor0
----
208
208
208

query I rowsort
SELECT DISTINCT + 67 * - 39 + - + 62 AS col2 FROM tab1 AS cor0
----
-2675

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT + - 58 * + COUNT( * ) AS col0 FROM tab0 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT + - 58 * + COUNT ( * ) AS col0 FROM tab0 cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8970
SELECT * FROM tab1 WHERE NOT CAST( - ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8970
SELECT * FROM tab1 WHERE NOT CAST ( - ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT 17 * + COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8971
SELECT 17 * + COUNT ( * ) FROM tab0
----
51

query I rowsort
SELECT DISTINCT + 44 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT 24 * + COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8973
SELECT 24 * + COUNT ( * ) FROM tab2
----
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + 92 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8975
SELECT * FROM tab2 AS cor0 WHERE ( CAST( - col1 AS SIGNED ) - - col2 + + 99 ) BETWEEN 24 * - 42 AND - col0
----

skipif mysql # not compatible
query III rowsort label-8975
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( - col1 AS INTEGER ) - - col2 + + 99 ) BETWEEN 24 * - 42 AND - col0
----

query I rowsort
SELECT DISTINCT - + 54 * - 3 AS col0 FROM tab2 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT + 57 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT + 57 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-171

query I rowsort
SELECT + col1 * - col2 * 39 + - + col1 AS col2 FROM tab2 AS cor0
----
-120197
-151621
-45798

query I rowsort
SELECT ALL - 5 * + col0 + + 14 AS col1 FROM tab1
----
-241
-411
-441

query I rowsort
SELECT 12 * - 72 FROM tab2 cor0
----
-864
-864
-864

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= col0 / - col1 / - + ( + col1 )
----

query II rowsort
SELECT + - col0 * col0 AS col1, - col2 * + + 88 FROM tab2 cor0
----
-2116
-2024
-4096
-3520
-5625
-5104

query II rowsort
SELECT ALL + col1 * col0 AS col2, - 46 * - col0 * - - col1 FROM tab0 AS cor0
----
1215
55890
1827
84042
97
4462

onlyif mysql # aggregate syntax: 
query II rowsort label-8984
SELECT - 81 * - + COUNT( * ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
243
-3

skipif mysql # not compatible
query II rowsort label-8984
SELECT - 81 * - + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
243
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT DISTINCT + col0 DIV + 31 - + 26 AS col2 FROM tab0 AS cor0
----
-23
-24
-26

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + col0 / + 31 - + 26 AS col2 FROM tab0 AS cor0
----
-23
-24
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT DISTINCT MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( + col0 / + col1 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( + col0 / + col1 ) >= NULL
----
NULL

query I rowsort
SELECT + 30 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT 8 - - + COUNT( * ) AS col2 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-8988
SELECT 8 - - + COUNT ( * ) AS col2 FROM tab0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 - + - 40 + - col0 col0 FROM tab0
----
1240
1780
40

query III rowsort
SELECT * FROM tab0 WHERE + 62 + 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + col2 + + ( col1 ) FROM tab2
----
157
183
97

query I rowsort
SELECT ALL col1 - - + 45 AS col2 FROM tab1
----
50
59
92

query I rowsort
SELECT - 85 AS col2 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT - - 59 * - COUNT( * ) col1 FROM tab1 cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8994
SELECT - - 59 * - COUNT ( * ) col1 FROM tab1 cor0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 col0 FROM tab1 AS cor0
----
-34
-34
-34

query II rowsort
SELECT ALL + col1 AS col0, 18 AS col2 FROM tab2
----
51
18
67
18
77
18

query I rowsort
SELECT DISTINCT - ( - - col2 ) FROM tab0 WHERE NOT - ( + col1 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT 44 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
44
44

query I rowsort
SELECT DISTINCT + + 87 AS col1 FROM tab1 cor0
----
87

query I rowsort
SELECT ALL col0 * + 62 * + col0 * - col0 + - col0 * + + col1 FROM tab2 AS cor0
----
-16257856
-26161275
-6037178

query I rowsort
SELECT ALL - col1 * + col1 FROM tab1 AS cor0 WHERE - col0 = - 49
----

query I rowsort
SELECT DISTINCT - col1 * col1 * col2 + + + col2 AS col0 FROM tab2
----
-237120
-260304
-59800

query I rowsort
SELECT DISTINCT col2 * + + ( 69 ) * col0 + col2 FROM tab2
----
176680
300208
73025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT ALL 50 + + col1 DIV + + 80 AS col0 FROM tab0
----
50
50
51

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL 50 + + col1 / + + 80 AS col0 FROM tab0
----
50
50
51

query III rowsort
SELECT * FROM tab0 WHERE 79 - 85 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT + + CAST( - col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-9008
SELECT + + CAST ( - col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT DISTINCT ( 69 ) FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9010
SELECT DISTINCT ( - - ( + CAST( NULL AS DECIMAL ) ) ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT ( - - ( + CAST ( NULL AS REAL ) ) ) FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 94 - + col1 + + col0 - + - col0 * col2 FROM tab0 AS cor0
----
1030
733
9793

query I rowsort
SELECT + 65 + + + col1 AS col0 FROM tab0 AS cor0
----
146
66
86

query I rowsort
SELECT - + col0 * + 3 * - + col0 + col0 AS col0 FROM tab0 AS cor0
----
22794
28324
690

query I rowsort
SELECT ALL - + AVG ( + 41 ) FROM tab2 cor0 WHERE - col2 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT + - COUNT( DISTINCT - col2 ) + - 52 AS col0 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9015
SELECT + - COUNT ( DISTINCT - col2 ) + - 52 AS col0 FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT + col2 * - CAST( NULL AS SIGNED ) * - + 65 + + - col2 + + 18 + - col1 + - 83 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT + col2 * - CAST ( NULL AS INTEGER ) * - + 65 + + - col2 + + 18 + - col1 + - 83 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9017
SELECT + 59 + 60 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9017
SELECT + 59 + 60 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL - ( + - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT col1 * col1 DIV - + col2 AS col2 FROM tab1
----
-2
-32
0

skipif mysql # not compatible
query I rowsort label-9019
SELECT col1 * col1 / - + col2 AS col2 FROM tab1
----
-2
-32
0

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9022
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL = NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 = 55 * 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 33 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL ( 72 ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL ( 72 ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - - MIN( + ( - 16 ) ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9026
SELECT - - MIN ( + ( - 16 ) ) FROM tab1 AS cor0
----
-16

query I rowsort
SELECT - 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT + + 85 + 89 + 73 FROM tab2 AS cor0
----
247
247
247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9029
SELECT AVG ( - + col0 ) / + - CAST( + 89 AS SIGNED ) * - CAST( NULL AS DECIMAL ) + + - 7 / - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT AVG ( - + col0 ) / + - CAST ( + 89 AS INTEGER ) * - CAST ( NULL AS REAL ) + + - 7 / - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL ( col2 ) AS col2, col0 * - col1 + - + col0 AS col2 FROM tab0 AS cor0
----
10
-1914
47
-1230
99
-194

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * col2 + ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT ALL - SUM( - 32 ) + - + MAX( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - SUM ( - 32 ) + - + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL + 26 + - COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL + 26 + - COUNT ( * ) FROM tab1
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + 8 - - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + 68 * 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 WHERE NOT ( col2 IN ( + 11 + - - 87, 62, - - col2, col0 + + 54 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT DISTINCT - - MAX( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT - - MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9040
SELECT - + CAST( - - 79 AS SIGNED ) AS col0, + col1 DIV + 52 - + - CAST( 93 AS SIGNED ) + 23 AS col0 FROM tab0 AS cor0 WHERE - col1 * - + 12 + 35 IS NOT NULL
----
-79
116
-79
116
-79
117

skipif mysql # not compatible
query II rowsort label-9040
SELECT - + CAST ( - - 79 AS INTEGER ) AS col0, + col1 / + 52 - + - CAST ( 93 AS INTEGER ) + 23 AS col0 FROM tab0 AS cor0 WHERE - col1 * - + 12 + 35 IS NOT NULL
----
-79
116
-79
116
-79
117

query I rowsort
SELECT ALL - col2 + - - 0 AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT MAX( ALL col2 ) + 60 AS col2 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-9042
SELECT MAX ( ALL col2 ) + 60 AS col2 FROM tab2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + 62 * + MAX( DISTINCT 31 ) FROM tab2
----
1922

skipif mysql # not compatible
query I rowsort label-9043
SELECT + 62 * + MAX ( DISTINCT 31 ) FROM tab2
----
1922

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT + col0 BETWEEN - 27 AND col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT COUNT( * ) - 75 AS col0 FROM tab0 WHERE + col2 * + col1 + + col1 <> NULL
----
-75

skipif mysql # not compatible
query I rowsort label-9045
SELECT COUNT ( * ) - 75 AS col0 FROM tab0 WHERE + col2 * + col1 + + col1 <> NULL
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL IN ( col2 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( col2 + col1 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN ( + col2 * - 93 ) AND col0 * col2 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 58 * - 34 AS col1 FROM tab0
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT SUM( - 89 ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-9049
SELECT SUM ( - 89 ) FROM tab2
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT - col2 + - CAST( + col0 AS SIGNED ) * - col0 FROM tab0
----
178
7559
9310

skipif mysql # not compatible
query I rowsort label-9050
SELECT - col2 + - CAST ( + col0 AS INTEGER ) * - col0 FROM tab0
----
178
7559
9310

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) >= ( ( col2 ) * - ( - col2 ) + + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT DISTINCT - 0 * - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT - 0 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT DISTINCT + COUNT( * ) DIV + MIN( - col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT + COUNT ( * ) / + MIN ( - col1 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT DISTINCT 93 DIV + 33 col1 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9054
SELECT DISTINCT 93 / + 33 col1 FROM tab1
----
2

query I rowsort
SELECT ALL col0 + - col0 FROM tab1 WHERE NOT NULL = col1 / - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9056
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9056
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT 33 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN NULL AND col0 * - 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT - CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT - CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 55 - 65 FROM tab0
----
-120
-120
-120

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE col2 IN ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9062
SELECT - MAX( ALL - col1 ) DIV + COUNT( * ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9062
SELECT - MAX ( ALL - col1 ) / + COUNT ( * ) AS col2 FROM tab2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT - col2 DIV + 75 col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9063
SELECT - col2 / + 75 col2 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT DISTINCT CAST( - MIN( col1 ) AS SIGNED ) col0 FROM tab1 WHERE 34 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9064
SELECT DISTINCT CAST ( - MIN ( col1 ) AS INTEGER ) col0 FROM tab1 WHERE 34 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL 27 AS col1 FROM tab0 WHERE + ( col1 ) + + col2 > ( CAST( - 73 AS SIGNED ) )
----
27
27
27

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL 27 AS col1 FROM tab0 WHERE + ( col1 ) + + col2 > ( CAST ( - 73 AS INTEGER ) )
----
27
27
27

query I rowsort
SELECT 68 FROM tab2 WHERE NOT - 19 * + col1 IS NULL
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT ALL col1 + col0 * CAST( - col1 AS SIGNED ) FROM tab0
----
-1134
-1806
-96

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL col1 + col0 * CAST ( - col1 AS INTEGER ) FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT + 2 FROM tab0 WHERE ( col2 / - 37 ) NOT BETWEEN col0 + + col0 AND + col1
----
2

query I rowsort
SELECT ALL col2 + - col2 * 30 FROM tab2 WHERE - col2 * - col0 BETWEEN - 54 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT ALL col0 DIV 56 + col1 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL col0 / 56 + col1 FROM tab1
----
14
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT ALL + CAST( 52 AS SIGNED ) FROM tab0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + CAST ( 52 AS INTEGER ) FROM tab0
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( + 54 * 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT MAX( ( + ( - col1 ) ) ) * 27 AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT MAX ( ( + ( - col1 ) ) ) * 27 AS col1 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ALL - col0 + + 5 FROM tab2 AS cor0 WHERE NOT 93 IS NULL
----
-41
-59
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL SUM( DISTINCT col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL SUM ( DISTINCT col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT 84 * col1 AS col2 FROM tab2
----
4284
5628
6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( - col2 / - col0 ) <> col0
----

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( - col2 / - col0 ) <> col0
----

query I rowsort
SELECT ALL col0 * ( 80 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 / col0 ) IS NULL
----
1200
6960
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * + col1 + + 71 * col0 col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
6275
9087
9278

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL ( COUNT( * ) ) + + 13 col1 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9080
SELECT ALL ( COUNT ( * ) ) + + 13 col1 FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9081
SELECT * FROM tab0 AS cor0 WHERE ( col1 * 61 + CAST( 0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9081
SELECT * FROM tab0 AS cor0 WHERE ( col1 * 61 + CAST ( 0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 23 AS col2 FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT 19 * + 12 FROM tab1 cor0
----
228

query I rowsort
SELECT - ( - ( + 92 ) ) * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-4209
-5848
-6842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 cor0 WHERE NOT ( + col1 ) >= 34
----
-51
-85

query I rowsort
SELECT DISTINCT - - ( 35 ) FROM tab1 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - 34 col1 FROM tab2
----
57
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT SUM( + - 80 ) + + 63 * + 9 AS col0 FROM tab2
----
327

skipif mysql # not compatible
query I rowsort label-9088
SELECT SUM ( + - 80 ) + + 63 * + 9 AS col0 FROM tab2
----
327

query I rowsort
SELECT DISTINCT ( + col0 ) + 44 AS col2 FROM tab1
----
129
135
95

query I rowsort
SELECT - 2 AS col1 FROM tab1 WHERE ( ( 31 ) - 11 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 91 + col0 * + 29 AS col2 FROM tab2
----
1425
1947
2266

query I rowsort
SELECT 70 + + col1 AS col1 FROM tab0
----
151
71
91

query I rowsort
SELECT + 57 + + col2 FROM tab2
----
115
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL COUNT( * ) + - 60 col2 FROM tab1
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT ALL COUNT ( * ) + - 60 col2 FROM tab1
----
-57

query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab1 WHERE col2 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 65 * col2 FROM tab0
----
-3102
-6534
-660

query I rowsort
SELECT + 75 + - ( col0 ) * col2 AS col2 FROM tab2
----
-2485
-4275
-983

query I rowsort
SELECT DISTINCT - 72 + + 29 FROM tab1
----
-43

query I rowsort
SELECT ALL + ( ( col1 ) ) + col2 AS col0 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( 36 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 * col0 ) > ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 = ( col1 * ( 57 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT - MIN( - + col1 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT - MIN ( - + col1 ) AS col1 FROM tab2 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT COUNT( * ) + COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
18

skipif mysql # not compatible
query I rowsort label-9106
SELECT COUNT ( * ) + COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
18

query I rowsort
SELECT DISTINCT + 90 + + col2 * - + col2 * - 69 FROM tab2 AS cor0
----
110490
232206
36591

query I rowsort
SELECT DISTINCT + 0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + 60 AS col2 FROM tab1 cor0
----
60

query II rowsort
SELECT - + col1, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT - col1 * CAST( NULL AS SIGNED ) + + + col1 + + 38 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT - col1 * CAST ( NULL AS INTEGER ) + + + col1 + + 38 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9113
SELECT DISTINCT MAX( + CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE NOT + 94 * + 24 - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT MAX ( + CAST ( NULL AS REAL ) ) FROM tab0 WHERE NOT + 94 * + 24 - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT COUNT( * ) * COUNT( * ) FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN - 5 AND col0
----
9

skipif mysql # not compatible
query I rowsort label-9114
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN - 5 AND col0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col0 ) >= - 73
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT ALL + MIN( ALL + CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + MIN ( ALL + CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT + SUM( 36 ) AS col1 FROM tab0 cor0
----
108

skipif mysql # not compatible
query I rowsort label-9118
SELECT + SUM ( 36 ) AS col1 FROM tab0 cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL + MIN( - 8 ) FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + MIN ( - 8 ) FROM tab0 cor0
----
-8

query I rowsort
SELECT + ( + 83 ) * + 82 AS col1 FROM tab2 cor0
----
6806
6806
6806

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT NULL < ( - 79 * col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT ALL + col0 DIV + 79 + col1 AS col2 FROM tab2 AS cor0 WHERE ( + 95 + 52 ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL + col0 / + 79 + col1 AS col2 FROM tab2 AS cor0 WHERE ( + 95 + 52 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col1 + + 50 * - ( + col0 ) FROM tab2
----
-2249
-3123
-3683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL - 15 * + - MIN( DISTINCT + - col2 ) * - 3 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - 15 * + - MIN ( DISTINCT + - col2 ) * - 3 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + + col2 * - + col0 col0 FROM tab0
----
-786
-891
-9604

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9127
SELECT + - COUNT( * ) + CAST( NULL AS DECIMAL ) + - MAX( - - 66 ) * + 72 + 33 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT + - COUNT ( * ) + CAST ( NULL AS REAL ) + - MAX ( - - 66 ) * + 72 + 33 AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + + + col0 col1 FROM tab2 AS cor0
----
-22
-33
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 57 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col2, col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT + col2 * - - 59 AS col2 FROM tab0 AS cor0
----
2773
5841
590

query I rowsort
SELECT ALL col1 * - - 2 AS col2 FROM tab2 cor0
----
102
134
154

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9134
SELECT DISTINCT + MIN( ALL - - col0 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <> + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT + MIN ( ALL - - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <> + 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT + col0 DIV - 11 AS col0 FROM tab2 AS cor0
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-9135
SELECT + col0 / - 11 AS col0 FROM tab2 AS cor0
----
-4
-5
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT DISTINCT + + 3 + + 10 + + ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT + + 3 + + 10 + + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 2 * + col2 AS col1 FROM tab0 WHERE ( 53 ) IS NOT NULL
----
-198
-420
-7614

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT - 74 DIV + - 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9138
SELECT - 74 / + - 96 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - - 67 / - col0 * 44 IS NULL
----

query I rowsort
SELECT + 37 AS col2 FROM tab0 WHERE NULL IS NULL
----
37
37
37

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + col1 * + ( - ( + 49 ) ) >= ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 + - ( col0 ) + - - col0 AS col1, - 43 + - - 92 AS col0 FROM tab0
----
1
49
21
49
81
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= - col0 * + 60 / + - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 25 + + 75 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + 9 / - ( + MAX( ALL + + 16 ) ) FROM tab1 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT + 9 / - ( + MAX ( ALL + + 16 ) ) FROM tab1 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT DISTINCT + ( COUNT( * ) ), COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9146
SELECT DISTINCT + ( COUNT ( * ) ), COUNT ( * ) AS col0 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT MAX( DISTINCT - - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9147
SELECT MAX ( DISTINCT - - col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT + 85 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL + 74 + MIN( DISTINCT - 68 + + col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 13 - + - 85 - - ( col2 ) ) AND ( 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + 74 + MIN ( DISTINCT - 68 + + col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 13 - + - 85 - - ( col2 ) ) AND ( 34 )
----
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( col1 + - + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT ALL - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9151
SELECT ALL - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 59 * + - col2 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT + 85 * - 67 + - COUNT( DISTINCT col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 87, - col2 )
----
-5695

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 85 * - 67 + - COUNT ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 87, - col2 )
----
-5695

query I rowsort
SELECT - col0 * col0 * - col0 FROM tab2
----
262144
421875
97336

query I rowsort
SELECT 4 AS col1 FROM tab2 WHERE NOT NULL BETWEEN + - col0 + 86 * - col1 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT ALL - col1 * + col0 FROM tab2 WHERE NOT col0 NOT BETWEEN CAST( col1 AS SIGNED ) AND col2
----

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - col1 * + col0 FROM tab2 WHERE NOT col0 NOT BETWEEN CAST ( col1 AS INTEGER ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 22 col0 FROM tab0 WHERE NOT - - 46 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT col0 DIV + ( - - col0 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9158
SELECT col0 / + ( - - col0 ) AS col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9159
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 * CAST( - col0 AS DECIMAL ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-9159
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 * CAST ( - col0 AS REAL ) + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT DISTINCT + + 69 DIV col2 AS col1 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT + + 69 / col2 AS col1 FROM tab2 AS cor0
----
1
3

query I rowsort
SELECT ALL col2 * - ( + + col1 ) + + col1 AS col0 FROM tab2 cor0
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9162
SELECT - CAST( SUM( - + ( + col1 ) ) AS SIGNED ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9162
SELECT - CAST ( SUM ( - + ( + col1 ) ) AS INTEGER ) FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 30
----

query I rowsort
SELECT DISTINCT + col1 * + 86 * col0 AS col0 FROM tab1 AS cor0
----
36550
367822
61404

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT ALL + - col0 DIV + 94 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + - col0 / + 94 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 8 + - col0 FROM tab0 AS cor0
----
-7
-79
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9167
SELECT ALL SUM( - col0 ) DIV COUNT( * ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL SUM ( - col0 ) / COUNT ( * ) FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT DISTINCT + COUNT( DISTINCT + col2 ) + + - 1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) + + - 1 FROM tab1
----
2

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + ( - 26 ) * + col2 + - 26 BETWEEN NULL AND 20 / - col2 + - + 15
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 67 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 67 AS col2 FROM tab0
----
NULL

query II rowsort
SELECT + col0 AS col0, col1 + + + 3 FROM tab0
----
15
84
87
24
97
4

query I rowsort
SELECT DISTINCT - 26 * col1 FROM tab1 WHERE ( col2 + - + 80 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 64 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 61 - + col1 AS col2 FROM tab2 AS cor0
----
-112
-128
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9176
SELECT + col2 * col2 * - col2 - + 66 + - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9176
SELECT + col2 * col2 * - col2 - + 66 + - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 47 AS col2, col1 col0 FROM tab2
----
-47
51
-47
67
-47
77

query II rowsort
SELECT 14, col2 FROM tab0 AS cor0
----
14
10
14
47
14
99

query I rowsort
SELECT + - col1 * col1 * + - col1 FROM tab1 AS cor0
----
103823
125
2744

query I rowsort
SELECT col0 + - col0 / 95 FROM tab0 AS cor0 WHERE NOT NULL > 17
----

query I rowsort
SELECT ALL - 63 AS col2 FROM tab0 cor0
----
-63
-63
-63

query II rowsort
SELECT ALL - col1, col0 * col1 + + 55 * - col2 AS col2 FROM tab1 AS cor0
----
-14
-4566
-47
537
-5
-2820

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - - col0 ) <> col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, - 41 AS col0 FROM tab2 AS cor0
----
-23
-41
-40
-41
-58
-41

query I rowsort
SELECT DISTINCT - ( 20 ) AS col1 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ( - MIN( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9186
SELECT ( - MIN ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9187
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( - ( - 27 ) AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9187
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( - ( - 27 ) AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT DISTINCT ( - 36 ) * + + CAST( - 26 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
936

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT ( - 36 ) * + + CAST ( - 26 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
936

query I rowsort
SELECT ALL - ( + - col1 ) * col2 - - 82 AS col2 FROM tab1 AS cor0
----
1426
3278
377

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL - COUNT( DISTINCT - col1 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9190
SELECT ALL - COUNT ( DISTINCT - col1 ) col0 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col1 ) col1 FROM tab0 WHERE NOT + ( col1 ) * + col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col2 + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9193
SELECT - 22 * ( - - CAST( + col2 AS SIGNED ) ) DIV + 81 AS col1 FROM tab2
----
-10
-15
-6

skipif mysql # not compatible
query I rowsort label-9193
SELECT - 22 * ( - - CAST ( + col2 AS INTEGER ) ) / + 81 AS col1 FROM tab2
----
-10
-15
-6

query I rowsort
SELECT DISTINCT - - 2 AS col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT + 61 + + - col2 FROM tab1
----
-35
-7
2

query I rowsort
SELECT ALL 81 * + 68 FROM tab1
----
5508
5508
5508

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9197
SELECT - col0 * + 95 * + - col1 - col2 FROM tab1 cor0 WHERE - 97 * col0 / CAST( NULL AS SIGNED ) * col1 * - CAST( NULL AS DECIMAL ) + - - col1 NOT BETWEEN ( - - 41 ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-9197
SELECT - col0 * + 95 * + - col1 - col2 FROM tab1 cor0 WHERE - 97 * col0 / CAST ( NULL AS INTEGER ) * col1 * - CAST ( NULL AS REAL ) + - - col1 NOT BETWEEN ( - - 41 ) AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 14 col0 FROM tab0 AS cor0
----
-1218
-1358
-210

query I rowsort
SELECT ALL 39 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-1975
-3310
-3502

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND ( NULL )
----

query II rowsort
SELECT ( - ( + 51 ) ) AS col0, 20 AS col0 FROM tab1 AS cor0
----
-51
20
-51
20
-51
20

query I rowsort
SELECT - col0 * - col1 * + - col2 FROM tab2 cor0
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT - 43 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NOT - col2 + - + 96 BETWEEN NULL AND ( - + 3 ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-9203
SELECT - 43 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NOT - col2 + - + 96 BETWEEN NULL AND ( - + 3 ) ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 / + + col2 IN ( + + 66, ( - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 57 + - + 40 FROM tab0 cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT COUNT( DISTINCT - col0 ) FROM tab0 cor0 WHERE ( + CAST( NULL AS SIGNED ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9206
SELECT COUNT ( DISTINCT - col0 ) FROM tab0 cor0 WHERE ( + CAST ( NULL AS INTEGER ) IS NULL )
----
3

query I rowsort
SELECT 98 - + col0 AS col1 FROM tab2
----
23
34
52

query II rowsort
SELECT DISTINCT 75, col2 AS col0 FROM tab1 WHERE 41 + - col0 IN ( - + col1 / + col0 + - + col2 - + 17 )
----

query I rowsort
SELECT DISTINCT + 33 * + 9 - + + 4 FROM tab0
----
293

query II rowsort
SELECT col0 + - col2, col1 AS col1 FROM tab1
----
-45
14
23
47
26
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - 26 + + SUM( - + 82 ) FROM tab0
----
-272

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 26 + + SUM ( - + 82 ) FROM tab0
----
-272

onlyif mysql # aggregate syntax: 
query II rowsort label-9212
SELECT - COUNT( * ) + + 77, - 85 * + 84 AS col0 FROM tab2
----
74
-7140

skipif mysql # not compatible
query II rowsort label-9212
SELECT - COUNT ( * ) + + 77, - 85 * + 84 AS col0 FROM tab2
----
74
-7140

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT DISTINCT 13 + - SUM( DISTINCT + - 51 ) AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT 13 + - SUM ( DISTINCT + - 51 ) AS col0 FROM tab0
----
64

query I rowsort
SELECT ALL 42 + + col0 AS col2 FROM tab2 AS cor0
----
106
117
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT - - SUM( DISTINCT - - 26 ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9217
SELECT - - SUM ( DISTINCT - - 26 ) AS col2 FROM tab0 AS cor0
----
26

query I rowsort
SELECT 75 * - 69 FROM tab0
----
-5175
-5175
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT COUNT( + + 47 ) * - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9219
SELECT COUNT ( + + 47 ) * - COUNT ( * ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL - 32 * - COUNT( * ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - 32 * - COUNT ( * ) AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT COUNT( 19 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT COUNT ( 19 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col0 * - - 61 * 62 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col1, - 73 FROM tab0
----
1
-73
21
-73
81
-73

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 33 ) > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT ( - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT ( - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

query II rowsort
SELECT col0 AS col1, + 74 AS col2 FROM tab1
----
51
74
85
74
91
74

query I rowsort
SELECT + col2 + 33 AS col0 FROM tab2
----
56
73
91

query I rowsort
SELECT col0 + + 81 AS col0 FROM tab1
----
132
166
172

query I rowsort
SELECT + 83 + + + col1 AS col1 FROM tab2
----
134
150
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL MAX( - col0 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL MAX ( - col0 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-46

query II rowsort
SELECT DISTINCT 65 AS col1, - 25 FROM tab0 cor0
----
65
-25

query I rowsort
SELECT ALL - ( + - 94 ) * 44 + + + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31e8d4cda82dfaa530d8a731f1a2d5ab

query I rowsort
SELECT ALL col0 - + + col1 + + col0 AS col0 FROM tab2
----
41
51
83

query II rowsort
SELECT col1 + - col2 AS col2, - col0 * - + col0 * + + 50 * col0 FROM tab0 AS cor0
----
-98
45633650
11
32925150
34
168750

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 80 IS NULL AND + col0 * + 37 < NULL
----

query I rowsort
SELECT 77 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT + col0 FROM tab2 AS cor0 WHERE NULL > 74 + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9237
SELECT + col0 FROM tab2 AS cor0 WHERE NULL > 74 + CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + AVG ( - 42 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * + 86 * col1 / + + ( + col0 )
----
NULL

query I rowsort
SELECT DISTINCT ( - + 72 ) + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1272
223
3124

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col1 + - - col1 AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + col2 * 9 * + + col2 AS col2 FROM tab1
----
31329
41616
82944

query I rowsort
SELECT DISTINCT 11 + - + 86 AS col0 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( ( NULL ) <> + col2 ) )
----

query I rowsort
SELECT ALL - 0 * col1 * - - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - - col0 * + col2 * + 15 FROM tab0 cor0
----
10575
13050
144045

query I rowsort
SELECT + - 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL NOT BETWEEN 35 AND NULL, tab2 AS cor2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT SUM( col1 ), 9 col0 FROM tab0 cor0
----
103
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9249
SELECT SUM ( col1 ), 9 col0 FROM tab0 cor0
----
103
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 83 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - - col1 ) ) IS NULL
----

query I rowsort
SELECT ALL + col2 * - + 99 AS col2 FROM tab2 AS cor0
----
-2277
-3960
-5742

query I rowsort
SELECT ALL + 64 + - col1 * + + col2 * col2 + col1 FROM tab0 cor0
----
-178784
-2015
-9736

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 <= col2
----
85
5
59

query II rowsort
SELECT DISTINCT + 7 AS col1, + 77 * + col1 * - col0 + 49 AS col2 FROM tab1
----
7
-32676
7
-329280
7
-54929

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT - COUNT( * ) + SUM( - 69 ) FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT - COUNT ( * ) + SUM ( - 69 ) FROM tab2
----
-210

query I rowsort
SELECT + col1 * + + 22 * 41 AS col0 FROM tab1
----
12628
42394
4510

query I rowsort
SELECT ALL ( + + 97 ) + + + col1 FROM tab1
----
102
111
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 21 + - col1 NOT IN ( col0, ( - col2 ), - col2 + - 78 )
----

query I rowsort
SELECT DISTINCT + 99 + + + col1 + - col2 AS col0 FROM tab0
----
1
110
133

query III rowsort
SELECT * FROM tab0 WHERE + col0 - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9262
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 36 <= - col0 * + + CAST( 69 AS DECIMAL ) + + + col2 + - col1 + + + col0 AND NULL IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9262
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 36 <= - col0 * + + CAST ( 69 AS REAL ) + + + col2 + - col1 + + + col0 AND NULL IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 0 * - + 97 - + 10, - col0 col1 FROM tab2 AS cor0
----
-10
-46
-10
-64
-10
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 * - col2 col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-205379
-314432
-884736

query I rowsort
SELECT - ( + ( col0 ) ) AS col1 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 - - 0 col1 FROM tab0 AS cor0
----
-83
-83
-83

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - - col1 - - col2 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 43 BETWEEN + ( + - 43 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0, + col0 col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL + col0 * - + 28 FROM tab2 AS cor0
----
-1288
-1792
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - 99 - - MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9272
SELECT - 99 - - MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT - 20 * ( - col1 ) AS col1 FROM tab2
----
1020
1340
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9274
SELECT - SUM( ALL - + col2 ) AS col0, + COUNT( * ) DIV COUNT( * ) FROM tab1
----
223
1

skipif mysql # not compatible
query II rowsort label-9274
SELECT - SUM ( ALL - + col2 ) AS col0, + COUNT ( * ) / COUNT ( * ) FROM tab1
----
223
1

query I rowsort
SELECT - ( - - col2 ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 * col2 * - col0 AS col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query II rowsort label-9277
SELECT DISTINCT - 8 AS col1, COUNT( * ) AS col1 FROM tab0
----
-8
3

skipif mysql # not compatible
query II rowsort label-9277
SELECT DISTINCT - 8 AS col1, COUNT ( * ) AS col1 FROM tab0
----
-8
3

query II rowsort
SELECT DISTINCT col0 AS col1, col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9279
SELECT ALL CAST( + + 32 AS SIGNED ) AS col1 FROM tab2 cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL CAST ( + + 32 AS INTEGER ) AS col1 FROM tab2 cor0
----
32
32
32

query I rowsort
SELECT ALL - 5 * + col2 + + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-380
-431
-531

query I rowsort
SELECT DISTINCT 81 * col0 FROM tab0 AS cor0
----
1215
7047
7857

query I rowsort
SELECT ALL + 96 + - + col1 AS col2 FROM tab2 AS cor0
----
19
29
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9283
SELECT CAST( - - MIN( ALL col2 ) AS SIGNED ) AS col0, + 71 * + 88 FROM tab0 AS cor0
----
10
6248

skipif mysql # not compatible
query II rowsort label-9283
SELECT CAST ( - - MIN ( ALL col2 ) AS INTEGER ) AS col0, + 71 * + 88 FROM tab0 AS cor0
----
10
6248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT ALL - - 37 * + + COUNT( * ) + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT ALL - - 37 * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + ( 91 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + + - col1 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT col1 * - CAST( NULL AS SIGNED ) / + ( - col2 ) + col1 * + col1 * - 82 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT col1 * - CAST ( NULL AS INTEGER ) / + ( - col2 ) + col1 * + col1 * - 82 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT DISTINCT + 76 DIV - col1 + - col1 FROM tab0
----
-24
-77
-81

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT + 76 / - col1 + - col1 FROM tab0
----
-24
-77
-81

query I rowsort
SELECT DISTINCT + 26 + 65 FROM tab2
----
91

query I rowsort
SELECT ALL 49 - - 65 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e2d56a39621064cf4b6c94794ecedaba

query I rowsort
SELECT DISTINCT - 50 * + - 86 FROM tab0
----
4300

query I rowsort
SELECT DISTINCT + + 49 FROM tab2 cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL + - MIN( col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL + - MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + - 18 * ( + col1 ) FROM tab2 AS cor0
----
-1206
-1386
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 14 * col2 - + + col1 col1 FROM tab2 AS cor0
----
-350
-597
-821

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9296
SELECT + - col0 / + col2 - - CAST( NULL AS DECIMAL ) * ( CAST( + col1 AS SIGNED ) ) + + 13 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT + - col0 / + col2 - - CAST ( NULL AS REAL ) * ( CAST ( + col1 AS INTEGER ) ) + + 13 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL + + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL + + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 <> - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT 76 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT 76 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT + col0 + - + col2 + - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-9302
SELECT + col0 + - + col2 + - col2 / - col1 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL + - 74 - + col2 * + ( + col0 ) FROM tab2 AS cor0
----
-1132
-2634
-4424

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * 99 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT ALL CAST( NULL AS SIGNED ) * - - col2 * + 69 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL CAST ( NULL AS INTEGER ) * - - col2 * + 69 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - - ( col0 ) ) FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col2 FROM tab0
----
-1

query I rowsort
SELECT ALL + ( - col1 ) * + 80 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1680
-6480
-80

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col0 * - 40 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

query II rowsort
SELECT + col2, + col0 * + col0 + + 97 FROM tab2 AS cor0
----
23
2213
40
4193
58
5722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col0 FROM tab2 cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT MIN( DISTINCT + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9313
SELECT MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, col2 col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL + col2 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
237160
260362
59823

query I rowsort
SELECT + 35 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT ALL + 95 + - 17 DIV + col0 FROM tab0
----
94
95
95

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + 95 + - 17 / + col0 FROM tab0
----
94
95
95

query I rowsort
SELECT DISTINCT + 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT DISTINCT - MAX( + col0 ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9319
SELECT DISTINCT - MAX ( + col0 ) col2 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - - col2 * + col1 * + + 68 * col1 col1, - col2 AS col1 FROM tab2 AS cor0
----
1032120320
-40
1327846200
-58
187126344
-23

query I rowsort
SELECT ALL - col2 * col2 - 24 FROM tab2 AS cor0
----
-1624
-3388
-553

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 = - 50
----

query I rowsort
SELECT + ( - - col0 ) * + 66 FROM tab2 AS cor0
----
3036
4224
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE 48 + + 94 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE 48 + + 94 IS NULL
----
0

query I rowsort
SELECT DISTINCT 87 * 77 FROM tab1 AS cor0
----
6699

query I rowsort
SELECT DISTINCT - col0 + - col1 * - 64 * col2 * col2 * - col0 FROM tab0 AS cor0
----
-11692887
-171771855
-60844705

query I rowsort
SELECT ALL col1 * + 22 + - col0 AS col0 FROM tab2 AS cor0
----
1076
1399
1630

query I rowsort
SELECT DISTINCT + 99 + col2 FROM tab2
----
122
139
157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 < NULL
----

query I rowsort
SELECT ALL 22 * + col0 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - 10 * COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9331
SELECT - 10 * COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
90

query I rowsort
SELECT - col2 + - 12 AS col2 FROM tab0
----
-111
-22
-59

query I rowsort
SELECT ALL - col0 + + 22 AS col2 FROM tab2 AS cor0
----
-24
-42
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT + COUNT( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE NOT ( 11 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + COUNT ( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE NOT ( 11 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 54 * - col1 * col2 AS col1 FROM tab2 AS cor0
----
166320
209844
63342

query I rowsort
SELECT DISTINCT + + ( + col1 ) * ( - - col0 ) FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9338
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - - 65 <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9338
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - - 65 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT col2 DIV 9 col1 FROM tab2
----
2
4
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9339
SELECT col2 / 9 col1 FROM tab2
----
2
4
6

query I rowsort
SELECT - col0 * 42 AS col0 FROM tab1
----
-2142
-3570
-3822

query I rowsort
SELECT + 30 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT ALL + col1 - + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + col1 - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9343
SELECT DISTINCT - CAST( NULL AS SIGNED ), col2 * - col1 * 91 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query II rowsort label-9343
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col2 * - col1 * 91 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT DISTINCT + MIN( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col2, - col2, + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT + MIN ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col2, - col2, + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9345
SELECT - 80 DIV + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9345
SELECT - 80 / + col0 FROM tab0
----
-5
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9346
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) * - MAX( DISTINCT + col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) * - MAX ( DISTINCT + col2 ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9347
SELECT SUM( DISTINCT CAST( NULL AS DECIMAL ) ) * - MAX( DISTINCT col2 ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT SUM ( DISTINCT CAST ( NULL AS REAL ) ) * - MAX ( DISTINCT col2 ) + - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT MIN( DISTINCT - 81 ) * - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
243
3

skipif mysql # not compatible
query II rowsort label-9348
SELECT MIN ( DISTINCT - 81 ) * - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
243
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT MIN( DISTINCT + + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 0 * col0 + - ( - col2 ) + + - col0 + - col0 * - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT MIN ( DISTINCT + + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 0 * col0 + - ( - col2 ) + + - col0 + - col0 * - + col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9351
SELECT ALL * FROM tab1 WHERE NOT + col0 + + - CAST( NULL AS DECIMAL ) * 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9351
SELECT ALL * FROM tab1 WHERE NOT + col0 + + - CAST ( NULL AS REAL ) * 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col2, col2 AS col1 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9353
SELECT * FROM tab1 WHERE NOT ( + - 91 + - + col0 + CAST( NULL AS SIGNED ) * + + 33 + col1 ) >= 30
----

skipif mysql # not compatible
query III rowsort label-9353
SELECT * FROM tab1 WHERE NOT ( + - 91 + - + col0 + CAST ( NULL AS INTEGER ) * + + 33 + col1 ) >= 30
----

query I rowsort
SELECT DISTINCT 32 + - col0 - + col0 FROM tab1
----
-138
-150
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ( + + COUNT( DISTINCT + + ( col0 ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9355
SELECT ( + + COUNT ( DISTINCT + + ( col0 ) ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 59 * + 56 FROM tab1 AS cor0
----
3304

query I rowsort
SELECT ALL - - col1 * + col0 + - col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT - col0 FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9358
SELECT - col0 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - + 11 + - 0 * 29 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT COUNT( col2 ) + + + 15 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9360
SELECT COUNT ( col2 ) + + + 15 FROM tab1 AS cor0
----
18

query I rowsort
SELECT + col0 FROM tab0 WHERE ( NOT NULL IS NULL ) OR NOT + - 64 IS NOT NULL
----

query I rowsort
SELECT col0 * - 82 + - col0 AS col1 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT - col1 + - ( + col0 ) AS col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT COUNT( * ) + 21 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT COUNT ( * ) + 21 FROM tab2
----
24

query III rowsort
SELECT * FROM tab2 WHERE - ( - - col0 ) >= ( - col0 / col1 - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 51 + col2 AS col2 FROM tab0
----
150
61
98

query I rowsort
SELECT ALL - col1 * col1 + + col2 AS col0 FROM tab1
----
-100
-2141
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT DISTINCT 19 * - - 65 - + COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
1235

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT 19 * - - 65 - + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT - COUNT( * ) + + - SUM( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT - COUNT ( * ) + + - SUM ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 11 ) col2 FROM tab1 cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col2 FROM tab0 WHERE + 81 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT ALL - - 9 DIV + 59 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9372
SELECT ALL - - 9 / + 59 col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - - col0 AS col1, 72 FROM tab0 cor0
----
15
72
87
72
97
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - COUNT( ALL + ( - col1 ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9374
SELECT - COUNT ( ALL + ( - col1 ) ) AS col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1 * - 84
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9376
SELECT DISTINCT - 54 AS col1, COUNT( * ) FROM tab1 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-9376
SELECT DISTINCT - 54 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-54
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9377
SELECT + - col1 col0, col1 - - + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-98
-21
11
-81
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9377
SELECT + - col1 col0, col1 - - + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-98
-21
11
-81
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL + - SUM( ALL 31 ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + - SUM ( ALL 31 ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT DISTINCT + 34, SUM( ALL - col1 ) * MAX( 62 ) + - - 53 AS col1 FROM tab0 AS cor0
----
34
-6333

skipif mysql # not compatible
query II rowsort label-9379
SELECT DISTINCT + 34, SUM ( ALL - col1 ) * MAX ( 62 ) + - - 53 AS col1 FROM tab0 AS cor0
----
34
-6333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 31 col2 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - col0 * + 97 FROM tab2
----
-4462
-6208
-7275

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 13 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT DISTINCT - 60 * - - COUNT( - col2 ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT - 60 * - - COUNT ( - col2 ) FROM tab0
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT - CAST( NULL AS SIGNED ) * - 80 - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT - CAST ( NULL AS INTEGER ) * - 80 - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab1 WHERE - 98 IN ( ( + 14 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col0 ) col0 FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + + col2 * + col0 * - - col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT + 13 * col2 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9389
SELECT DISTINCT MAX( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT MAX ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 + - + col0 AS col1 FROM tab1 cor0
----
-37
-44
-80

query II rowsort
SELECT DISTINCT - - 36, + col0 + - col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 25 + col1 FROM tab0
----
-121
-91
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9393
SELECT * FROM tab1 WHERE CAST( - + col2 AS SIGNED ) + + col1 / + col0 + + - col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-9393
SELECT * FROM tab1 WHERE CAST ( - + col2 AS INTEGER ) + + col1 / + col0 + + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT - COUNT( * ) - ( + SUM( - 71 ) ) * - 5 AS col1 FROM tab1
----
-1068

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - COUNT ( * ) - ( + SUM ( - 71 ) ) * - 5 AS col1 FROM tab1
----
-1068

query I rowsort
SELECT - ( + col1 ) + col2 FROM tab0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - + ( + - col1 ) col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL col0 - - + ( col0 ) AS col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9398
SELECT DISTINCT CAST( NULL AS SIGNED ), + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9398
SELECT DISTINCT CAST ( NULL AS INTEGER ), + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 23 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col1 AND + col2
----

query I rowsort
SELECT + col2 * - 55 AS col2 FROM tab1
----
-3245
-3740
-5280

query I rowsort
SELECT ALL - col2 * + - col1 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT + 0 * - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9403
SELECT + 0 * - + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9404
SELECT ALL col1 AS col1, + col0 * ( - CAST( - col1 AS SIGNED ) ) FROM tab0
----
1
97
21
1827
81
1215

skipif mysql # not compatible
query II rowsort label-9404
SELECT ALL col1 AS col1, + col0 * ( - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
1
97
21
1827
81
1215

query I rowsort
SELECT ALL + ( - 17 ) FROM tab1
----
-17
-17
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9406
SELECT ALL - SUM( DISTINCT + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) / MIN( ALL - 70 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - SUM ( DISTINCT + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) / MIN ( ALL - 70 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( + ( - - col1 ) ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT - - CAST( + 72 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-9408
SELECT - - CAST ( + 72 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9409
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9409
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col1 * + - col0 + - 43 FROM tab2 WHERE NULL IS NULL
----
-2389
-4971
-5068

query I rowsort
SELECT ALL col1 * - ( col2 ) AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT 15 + COUNT( * ) AS col0 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-9412
SELECT 15 + COUNT ( * ) AS col0 FROM tab1 cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT ALL + MIN( - CAST( + ( col2 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL + MIN ( - CAST ( + ( col2 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - 85 + 71 * + ( + col2 ) + col1 FROM tab1 AS cor0
----
4109
4790
6745

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - - ( + COUNT( * ) ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9415
SELECT - - ( + COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL - MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL - MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT + col0 + + - col2 AS col2 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT 2 + - col0 + - col1 - - - 25 AS col2 FROM tab0 AS cor0
----
-119
-121
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT DISTINCT - 21 DIV + col2 + + col0 + + - ( ( - + 35 ) ) - col2 AS col0 FROM tab2
----
52
58
59

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT - 21 / + col2 + + col0 + + - ( ( - + 35 ) ) - col2 AS col0 FROM tab2
----
52
58
59

query I rowsort
SELECT ( - + 93 ) AS col0 FROM tab2
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE - - 48 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 88 col0 FROM tab1
----
-3
-37
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9424
SELECT ALL COUNT( DISTINCT - col2 ) DIV + - 63 FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL COUNT ( DISTINCT - col2 ) / + - 63 FROM tab1 WHERE NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN 57 * - col2 + + - col0 AND NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL = + col2 * 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - 99 FROM tab0 AS cor0
----
15
-99
87
-99
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT - CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) * + col1 * 57 * - col1 FROM tab0 AS cor0
----
17576919
251370
5643

skipif mysql # not compatible
query I rowsort label-9428
SELECT - CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) * + col1 * 57 * - col1 FROM tab0 AS cor0
----
17576919
251370
5643

query I rowsort
SELECT 70 * 9 + - col0 AS col0 FROM tab1 AS cor0
----
539
545
579

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT + ( - col1 ) DIV - ( - - col0 ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9430
SELECT + ( - col1 ) / - ( - - col0 ) FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - 10 * COUNT( col0 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9431
SELECT - 10 * COUNT ( col0 ) FROM tab0
----
-30

query I rowsort
SELECT + 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9433
SELECT ALL - + COUNT( * ) DIV - 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - + COUNT ( * ) / - 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 39 IS NOT NULL
----

query I rowsort
SELECT + 26 * + col1 FROM tab1 cor0
----
1222
130
364

query II rowsort
SELECT + col2 AS col0, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT DISTINCT - col0 * 41 AS col1 FROM tab2 AS cor0
----
-1886
-2624
-3075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9439
SELECT MAX( + CAST( col1 AS SIGNED ) ) + - SUM( 52 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT MAX ( + CAST ( col1 AS INTEGER ) ) + - SUM ( 52 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
51
85
91

query I rowsort
SELECT 81 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT ALL col1 DIV - col0 + col0 FROM tab0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL col1 / - col0 + col0 FROM tab0
----
10
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 6 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT DISTINCT - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * SUM( ALL - 72 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * SUM ( ALL - 72 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 / 83 AND + - col0 * - ( - + 37 )
----

query I rowsort
SELECT - 92 * + 27 FROM tab1 AS cor0
----
-2484
-2484
-2484

onlyif mysql # DIV for integer division: 
query II rowsort label-9447
SELECT DISTINCT - col0 DIV - ( - col0 ) AS col1, 81 FROM tab0 AS cor0
----
-1
81

skipif mysql # not compatible
query II rowsort label-9447
SELECT DISTINCT - col0 / - ( - col0 ) AS col1, 81 FROM tab0 AS cor0
----
-1
81

query II rowsort
SELECT - col1 - + col1 + - - col0, col1 FROM tab2 AS cor0
----
-56
51
-59
67
-90
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND 72
----
97
1
99

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE ( ( 64 ) IS NOT NULL )
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND 70
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT - 4 DIV 38 - + 72 AS col1 FROM tab0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-9452
SELECT - 4 / 38 - + 72 AS col1 FROM tab0
----
-72
-72
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 33 * - col2 FROM tab0 WHERE ( - col1 + - - col1 ) IS NOT NULL
----
-1551
-3267
-330

query I rowsort
SELECT DISTINCT ( 47 ) + + col2 FROM tab2
----
105
70
87

query I rowsort
SELECT - col0 * 4 * col1 * - col1 * + - 38 + + 58 AS col2 FROM tab0
----
-14686
-14959022
-5831726

query I rowsort
SELECT + 54 + - - ( col1 ) AS col1 FROM tab1
----
101
59
68

query I rowsort
SELECT ALL col0 + + col2 + col1 + + 35 * + col1 AS col0 FROM tab1
----
1851
324
651

query I rowsort
SELECT ALL - 39 * col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1989
-3315
-3549

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 NOT BETWEEN 12 AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT DISTINCT + CAST( + 0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL - COUNT( * ) + - - COUNT( * ) * 53 AS col0 FROM tab1 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) * 53 AS col0 FROM tab1 cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT - col1 DIV 23 FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-9463
SELECT - col1 / 23 FROM tab2 AS cor0
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL 94 * + COUNT( * ) AS col1 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL 94 * + COUNT ( * ) AS col1 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ( - COUNT( * ) ) + - - 22 col2 FROM tab2
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9467
SELECT ( - COUNT ( * ) ) + - - 22 col2 FROM tab2
----
19

query I rowsort
SELECT ALL - 18 * - + col1 FROM tab2
----
1206
1386
918

query I rowsort
SELECT col1 * col0 + - - ( + - col2 ) FROM tab1 AS cor0 WHERE ( NOT 82 IS NOT NULL )
----

query I rowsort
SELECT ALL + col0 * + 39 FROM tab1 AS cor0
----
1989
3315
3549

query I rowsort
SELECT DISTINCT + + ( + col1 ) FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9472
SELECT DISTINCT 27, + col2 + + col0 + - ( CAST( + col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
27
46
27
64
27
75

skipif mysql # not compatible
query II rowsort label-9472
SELECT DISTINCT 27, + col2 + + col0 + - ( CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
27
46
27
64
27
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND ( + 81 * - - 63 ) IN ( col0 + - 52 + + + col0, + 65, + ( col2 ), - 38, - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT DISTINCT ( + + col1 ) DIV + 75 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT ( + + col1 ) / + 75 FROM tab2 cor0
----
0
1

query I rowsort
SELECT + col0 + col1 - + + col1 * - col2 AS col1 FROM tab2 AS cor0
----
1270
3221
4028

query I rowsort
SELECT ALL col1 * col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + + col0 * + 52 AS col2 FROM tab0 AS cor0
----
-11700
-393588
-489268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT CAST( - - 19 AS SIGNED ) * 61 * - COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3480

skipif mysql # not compatible
query I rowsort label-9478
SELECT CAST ( - - 19 AS INTEGER ) * 61 * - COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3480

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT + 32 DIV col2 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9479
SELECT + 32 / col2 AS col1 FROM tab2 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT 66, col0 * + ( + + col2 ) AS col2 FROM tab2
----
66
1058
66
2560
66
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - - COUNT( * ) * + 48 AS col0 FROM tab2 WHERE NOT + 46 * col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9481
SELECT - - COUNT ( * ) * + 48 AS col0 FROM tab2 WHERE NOT + 46 * col0 = NULL
----
0

query II rowsort
SELECT ALL col1 AS col1, - col0 - col1 FROM tab1
----
14
-65
47
-138
5
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT ALL - 83 DIV - + 49 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL - 83 / - + 49 AS col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL - COUNT( + - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL - COUNT ( + - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9485
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - CAST( - col1 AS SIGNED ), - CAST( + - col2 AS SIGNED ) + + 95 )
----

skipif mysql # not compatible
query III rowsort label-9485
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - CAST ( - col1 AS INTEGER ), - CAST ( + - col2 AS INTEGER ) + + 95 )
----

query II rowsort
SELECT ALL + 47, col0 AS col2 FROM tab2 AS cor0
----
47
46
47
64
47
75

query I rowsort
SELECT + - 99 * - col1 AS col0 FROM tab2 AS cor0
----
5049
6633
7623

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9488
SELECT ALL + 19, COUNT( * ) DIV - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
19
-1

skipif mysql # not compatible
query II rowsort label-9488
SELECT ALL + 19, COUNT ( * ) / - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
19
-1

query I rowsort
SELECT 29 * - col0 + 94 FROM tab1
----
-1385
-2371
-2545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 WHERE NOT ( NULL ) <= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - COUNT( * ) + + 65 col0 FROM tab2
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9491
SELECT - COUNT ( * ) + + 65 col0 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL 9 + + ( 70 ) * COUNT( * ) FROM tab1 WHERE NOT NULL > col1
----
9

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL 9 + + ( 70 ) * COUNT ( * ) FROM tab1 WHERE NOT NULL > col1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT 45 * col1 + 35 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT COUNT( * ) * + COUNT( DISTINCT + 86 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9494
SELECT COUNT ( * ) * + COUNT ( DISTINCT + 86 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 69 * + 54 AS col2 FROM tab2
----
3726
3726
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT 6 * COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9496
SELECT 6 * COUNT ( * ) FROM tab1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT col2 DIV + col0 + col0 AS col0 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-9497
SELECT col2 / + col0 + col0 AS col0 FROM tab1
----
52
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL + SUM( DISTINCT - 93 ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL + SUM ( DISTINCT - 93 ) AS col1 FROM tab1
----
-93

query III rowsort
SELECT * FROM tab1 WHERE 37 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 = 76
----

query I rowsort
SELECT ALL 69 + + col0 * + 22 FROM tab0
----
1983
2203
399

query I rowsort
SELECT ALL 25 * - 5 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 26 + - 60 FROM tab0
----
-86
-86
-86

query I rowsort
SELECT ALL + col2 * 78 FROM tab2
----
1794
3120
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL - 16 * MIN( - col2 ) FROM tab1
----
1536

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - 16 * MIN ( - col2 ) FROM tab1
----
1536

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - SUM( 30 ) AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-9507
SELECT - SUM ( 30 ) AS col0 FROM tab2
----
-90

query I rowsort
SELECT ALL 77 * + col1 FROM tab1
----
1078
3619
385

query I rowsort
SELECT + 21 - 26 * - 98 FROM tab2
----
2569
2569
2569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 * col2 col2 FROM tab0
----
-2679
-5643
-570

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( + col2 ) BETWEEN ( - col1 ) AND ( 45 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL - 64 * COUNT( * ) AS col1 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - 64 * COUNT ( * ) AS col1 FROM tab2
----
-192

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( + 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( - 37 + 75 * 30 ) AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 75 col1 FROM tab1
----
-3825
-6375
-6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + col1 * 63 col2 FROM tab2 WHERE NOT 6 IS NULL
----
3230
4238
4868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col0 FROM tab2 WHERE col1 NOT BETWEEN - col0 + + 4 * 13 AND 54
----
-17
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT + col2 + col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-9519
SELECT + col2 + col1 / - col2 AS col1 FROM tab2 AS cor0
----
21
39
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 42 * + col0 ) BETWEEN - 20 AND col2
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE ( col1 + + col0 ) IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 37 + + col1 * 25 AS col1 FROM tab2 AS cor0
----
1238
1638
1888

query I rowsort
SELECT ALL col0 + + 21 AS col2 FROM tab2 AS cor0
----
67
85
96

query I rowsort
SELECT AVG ( ALL 57 ) FROM tab2 AS cor0 WHERE ( + col0 ) * - 5 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT + SUM( DISTINCT col1 ) * COUNT( * ) + 50 AS col2 FROM tab1 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-9526
SELECT + SUM ( DISTINCT col1 ) * COUNT ( * ) + 50 AS col2 FROM tab1 AS cor0
----
248

query I rowsort
SELECT DISTINCT + 85 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col0 * - 8 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + 85 = ( - col0 / - col0 - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT ALL + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 38 + - 95 FROM tab1
----
-57

query I rowsort
SELECT DISTINCT col0 + + col0 * 47 AS col0 FROM tab2
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT - COUNT( * ) - 38 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT - COUNT ( * ) - 38 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT - col1 + col1 * col2 FROM tab0 cor0 WHERE - col2 NOT IN ( col1 )
----
189
3726
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT COUNT( * ) * 57 - + COUNT( * ) DIV 26 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9534
SELECT COUNT ( * ) * 57 - + COUNT ( * ) / 26 FROM tab1 AS cor0
----
171

query I rowsort
SELECT ALL col0 + 53 * - col1 FROM tab2 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT DISTINCT 3 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + 99 / col0 AND ( + 6 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL ( - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL ( - COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT DISTINCT - col1 * + 58 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT - col1 * + 58 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 48 * col2 FROM tab1
----
2832
3264
4608

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 29 * + 33 + - col1 * 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT ALL + COUNT( * ) * - - 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL + COUNT ( * ) * - - 42 FROM tab2
----
126

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 31 / 46 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT MIN( DISTINCT - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9543
SELECT MIN ( DISTINCT - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT DISTINCT - MAX( ALL + col1 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT - MAX ( ALL + col1 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
102
134
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9546
SELECT + SUM( - col1 ) DIV - 95 AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9546
SELECT + SUM ( - col1 ) / - 95 AS col0 FROM tab2
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col2 - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + ( + COUNT( * ) ) + - - 99 AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + ( + COUNT ( * ) ) + - - 99 AS col2 FROM tab0
----
102

query I rowsort
SELECT DISTINCT 31 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
31

query I rowsort
SELECT ALL - 22 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 65 >= 92
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND ( col2 * - ( col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL - + CAST( 70 AS SIGNED ) col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9553
SELECT ALL - + CAST ( 70 AS INTEGER ) col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query II rowsort
SELECT ALL - + 26 AS col1, 35 FROM tab0 AS cor0
----
-26
35
-26
35
-26
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9555
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( 15 AS SIGNED ) / + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9555
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( 15 AS INTEGER ) / + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9556
SELECT - 12, + 98 DIV - MAX( col2 ) AS col2 FROM tab0 AS cor0
----
-12
0

skipif mysql # not compatible
query II rowsort label-9556
SELECT - 12, + 98 / - MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
-12
0

query I rowsort
SELECT DISTINCT + + 37 * + - col0 AS col1 FROM tab1 AS cor0
----
-1887
-3145
-3367

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 55 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 73 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + col0 - - 1 AND + 71 * 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 = 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL SUM( DISTINCT - 15 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( + - 35 * - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL SUM ( DISTINCT - 15 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( + - 35 * - col1 )
----
NULL

query I rowsort
SELECT ALL 92 + - col1 + - + col0 FROM tab2 AS cor0
----
-49
-5
-50

query I rowsort
SELECT 74 + + ( + col2 ) + + col1 FROM tab1 AS cor0
----
138
184
189

query I rowsort
SELECT 75 + - col1 AS col2 FROM tab0 AS cor0
----
-6
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT 36 + - COUNT( * ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9566
SELECT 36 + - COUNT ( * ) AS col2 FROM tab2
----
33

query I rowsort
SELECT + 76 AS col0 FROM tab2 WHERE ( NULL ) >= - col1
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT DISTINCT + ( + col2 ) + - 63 * + - 70 + col0 DIV + 61 FROM tab0
----
4421
4457
4510

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT + ( + col2 ) + - 63 * + - 70 + col0 / + 61 FROM tab0
----
4421
4457
4510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT DISTINCT - 31 * + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + 35 + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT - 31 * + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + 35 + + col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 45 IS NULL
----

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab0 WHERE - - 9 NOT BETWEEN - col2 AND col0 - col0
----
-5

query I rowsort
SELECT - 47 + + + col1 AS col2 FROM tab2
----
20
30
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT - - MIN( + 19 ) AS col0 FROM tab1 WHERE - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT - - MIN ( + 19 ) AS col0 FROM tab1 WHERE - + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 5 * col1 + 32 AS col1 FROM tab2
----
287
367
417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT ALL col1 * col2 + - + col0 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL col1 * col2 + - + col0 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT 95 * 69 FROM tab2 AS cor0
----
6555
6555
6555

query I rowsort
SELECT + ( - col1 ) * + - 28 - - + 81 FROM tab2 AS cor0
----
1509
1957
2237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT + - COUNT( * ) - ( - + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT + - COUNT ( * ) - ( - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9580
SELECT + col1 - - col1 AS col0, col0 * - col2 DIV + col2 FROM tab2 AS cor0
----
102
-46
134
-75
154
-64

skipif mysql # not compatible
query II rowsort label-9580
SELECT + col1 - - col1 AS col0, col0 * - col2 / + col2 FROM tab2 AS cor0
----
102
-46
134
-75
154
-64

query I rowsort
SELECT DISTINCT - + ( - - 21 ) AS col1 FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT + COUNT( ALL ( - + col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT + COUNT ( ALL ( - + col1 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col0 * col1 * + col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query II rowsort
SELECT - col0 AS col1, + col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 54 * - 96 AS col1 FROM tab2 AS cor0
----
-5184
-5184
-5184

query I rowsort
SELECT DISTINCT - - 16 * col1 FROM tab2 AS cor0
----
1072
1232
816

query I rowsort
SELECT + col1 + col0 FROM tab1 AS cor0 WHERE NOT 17 NOT BETWEEN col0 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - + col1 col2 FROM tab0 AS cor0
----
-2079
-8019
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 0 * - + col0 + + 33 AS col1, col2 FROM tab1 AS cor0
----
33
59
33
68
33
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT - 50 + - - COUNT( - 25 ) AS col1 FROM tab1 WHERE NOT ( 11 IS NOT NULL )
----
-50

skipif mysql # not compatible
query I rowsort label-9591
SELECT - 50 + - - COUNT ( - 25 ) AS col1 FROM tab1 WHERE NOT ( 11 IS NOT NULL )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT ALL - 41 DIV - col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL - 41 / - col0 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT - col0 * + 25 * - + col1 AS col1 FROM tab0
----
2425
30375
45675

query I rowsort
SELECT DISTINCT ( - col2 ) * - 27 AS col1 FROM tab2
----
1080
1566
621

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-9595
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1
----
3
-3

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - 78 NOT IN ( + - 87 )
----
1
21
81

query II rowsort
SELECT + 57, - col0 + - + 78 AS col2 FROM tab2
----
57
-124
57
-142
57
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT + - ( + col2 ) DIV - col0 AS col1 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9598
SELECT + - ( + col2 ) / - col0 AS col1 FROM tab0 cor0
----
0
1
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 62 * - - col2 IS NULL
----

query I rowsort
SELECT - ( + + ( - - col1 ) ) AS col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT + 67 AS col2 FROM tab1 cor0 WHERE ( NULL IS NULL )
----
67
67
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col0 / + 61 / col1 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9603
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 98 <> + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9603
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 98 <> + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9604
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN CAST( + 51 AS SIGNED ) + + ( - col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9604
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN CAST ( + 51 AS INTEGER ) + + ( - col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT ALL - 66 + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-61
-66
-66

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - 66 + col1 / + col0 AS col1 FROM tab0 AS cor0
----
-61
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT MIN( DISTINCT + ( 60 ) ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT MIN ( DISTINCT + ( 60 ) ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT - col0 + + 73 + - CAST( NULL AS SIGNED ) * col2 FROM tab0 WHERE + ( col2 ) * col1 / 47 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT - col0 + + 73 + - CAST ( NULL AS INTEGER ) * col2 FROM tab0 WHERE + ( col2 ) * col1 / 47 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9608
SELECT DISTINCT * FROM tab1 WHERE - col0 + + col0 * col2 IN ( ( - CAST( - - col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9608
SELECT DISTINCT * FROM tab1 WHERE - col0 + + col0 * col2 IN ( ( - CAST ( - - col0 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT 1 * - + 44 - + 69 - - + 76 * + + COUNT( * ) AS col0 FROM tab2
----
115

skipif mysql # not compatible
query I rowsort label-9609
SELECT 1 * - + 44 - + 69 - - + 76 * + + COUNT ( * ) AS col0 FROM tab2
----
115

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 99, - col2 + - 90 * + 46 * + - col0 )
----

query I rowsort
SELECT - - col2 * + - ( - col0 ) + 97 AS col1 FROM tab1 AS cor0
----
4993
5112
6285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 30 col2, col1 FROM tab1 AS cor0
----
30
14
30
47
30
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT + - col0 + - - col0 + - 58 * - 17 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT + - col0 + - - col0 + - 58 * - 17 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 71 + - 32 NOT BETWEEN - col2 AND + col0
----

query I rowsort
SELECT - col2 FROM tab1 WHERE ( NOT + 2 + + - col2 * - + col2 * col0 >= NULL )
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL = ( - 19 * 94 * - 77 )
----

query I rowsort
SELECT DISTINCT + 85 + + col1 FROM tab0
----
106
166
86

query I rowsort
SELECT ( 92 ) AS col0 FROM tab2 AS cor0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 83 <= NULL
----

query I rowsort
SELECT DISTINCT ( + - ( + 2 ) ) AS col2 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL - COUNT( * ) * - 58 AS col0 FROM tab1 cor0
----
174

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - COUNT ( * ) * - 58 AS col0 FROM tab1 cor0
----
174

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT CAST( - 22 AS SIGNED ) col1 FROM tab0
----
-22
-22
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9623
SELECT CAST ( - 22 AS INTEGER ) col1 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT col2 * - 95 AS col1 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT DISTINCT ( + col1 ) * 86 + + col2 AS col0 FROM tab1
----
1300
4110
489

query I rowsort
SELECT + 21 AS col0 FROM tab0 WHERE NOT 67 * 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT MAX( + + 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-9627
SELECT MAX ( + + 95 ) FROM tab0
----
95

query I rowsort
SELECT - col0 - + col0 AS col1 FROM tab2 WHERE NOT 40 IN ( col0 - + - col1 )
----
-128
-150
-92

query III rowsort
SELECT * FROM tab1 WHERE NOT - 23 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT - MIN( + + col0 ) * + ( + 26 ) + 59 + - COUNT( + col0 ) FROM tab2
----
-1140

skipif mysql # not compatible
query I rowsort label-9630
SELECT - MIN ( + + col0 ) * + ( + 26 ) + 59 + - COUNT ( + col0 ) FROM tab2
----
-1140

query I rowsort
SELECT ALL + 80 * - 47 FROM tab1
----
-3760
-3760
-3760

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT - - 2 DIV - 81 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT - - 2 / - 81 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( - - col2 ) * + 24 + - 50 FROM tab0 AS cor0 WHERE NOT ( NOT col2 + - + col1 > 43 )
----
2326

query I rowsort
SELECT ALL + + 97 + + + 59 FROM tab1 AS cor0
----
156
156
156

query I rowsort
SELECT + ( 20 ) FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT ALL ( + - 12 ) * + 87 AS col1 FROM tab0
----
-1044
-1044
-1044

query II rowsort
SELECT ALL col2 AS col0, + col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT col0 * + 80 AS col1 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE - col0 * + + col2 NOT BETWEEN + col1 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9639
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - col0 * + + col2 NOT BETWEEN + col1 AND NULL
----
-3

query I rowsort
SELECT ALL + col2 * + 49 AS col1 FROM tab1 AS cor0
----
2891
3332
4704

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9641
SELECT * FROM tab2 cor0 WHERE CAST( 52 AS SIGNED ) * + col1 * ( - col1 ) BETWEEN + - col1 + CAST( - + 80 AS DECIMAL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9641
SELECT * FROM tab2 cor0 WHERE CAST ( 52 AS INTEGER ) * + col1 * ( - col1 ) BETWEEN + - col1 + CAST ( - + 80 AS REAL ) AND ( NULL )
----

query I rowsort
SELECT + 81 + col2 * - + 41 AS col2 FROM tab0 cor0
----
-1846
-329
-3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - col2 ) + + col2 AS col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ALL 61 * + + 46 + - col0 AS col1 FROM tab2 AS cor0
----
2731
2742
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT COUNT( * ) * - 11 + + - 34 AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-9647
SELECT COUNT ( * ) * - 11 + + - 34 AS col2 FROM tab1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT DISTINCT - - ( CAST( - COUNT( + - 73 ) AS SIGNED ) ) + 51 + - 13 + - 62 AS col2 FROM tab0 WHERE + - ( col0 ) IS NOT NULL
----
-27

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT - - ( CAST ( - COUNT ( + - 73 ) AS INTEGER ) ) + 51 + - 13 + - 62 AS col2 FROM tab0 WHERE + - ( col0 ) IS NOT NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NULL >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NULL >= - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 14 * 80 IS NULL
----

query I rowsort
SELECT ALL 8 + + 0 FROM tab2
----
8
8
8

query III rowsort
SELECT ALL * FROM tab1 WHERE 93 * ( - col1 ) + 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + SUM( + + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9653
SELECT + SUM ( + + col1 ) AS col0 FROM tab1
----
66

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - 96 * + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 21 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > ( + col2 * - - col0 + + ( + col0 ) )
----

query I rowsort
SELECT col1 - - col2 + - col2 AS col0 FROM tab2 cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL COUNT( ALL + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL COUNT ( ALL + col2 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT + col1, + col1 * col1 AS col2 FROM tab1 AS cor0
----
14
196
47
2209
5
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= ( - 3 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9661
SELECT - COUNT( * ) AS col0, + 74 AS col0 FROM tab2 AS cor0
----
-3
74

skipif mysql # not compatible
query II rowsort label-9661
SELECT - COUNT ( * ) AS col0, + 74 AS col0 FROM tab2 AS cor0
----
-3
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9662
SELECT - COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT - COUNT( * ) * - - 49 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT - COUNT ( * ) * - - 49 FROM tab0 AS cor0
----
-147

query II rowsort
SELECT + - col0, 16 AS col2 FROM tab2 AS cor0
----
-46
16
-64
16
-75
16

query II rowsort
SELECT DISTINCT 53, col0 AS col2 FROM tab1 AS cor0
----
53
51
53
85
53
91

query I rowsort
SELECT + ( + 86 ) FROM tab0 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + 65 * + COUNT( * ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9667
SELECT + 65 * + COUNT ( * ) FROM tab0 AS cor0
----
195

query II rowsort
SELECT col2, col1 / + + 62 AS col1 FROM tab0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT - CAST( NULL AS SIGNED ) * + 86 * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT - CAST ( NULL AS INTEGER ) * + 86 * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 54 + - col1 + - + col1 AS col2, 27 col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 + - 81 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9671
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 + - 81 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 30 - 25 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT - - COUNT( * ) + + 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
93

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - - COUNT ( * ) + + 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
93

query I rowsort
SELECT ALL - 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT - 81 AS col0 FROM tab1 cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT SUM( ALL + col2 ) col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9677
SELECT SUM ( ALL + col2 ) col2 FROM tab2 cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT DISTINCT + 81 DIV col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT + 81 / col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 + 60, + 51 * - - col1 )
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 16 * + 61 FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT ALL ( + col1 ) * + + 28 FROM tab1 AS cor0
----
1316
140
392

query II rowsort
SELECT ALL + 37 * ( 97 ) AS col2, + 90 * - - col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col0 / col2 AND + col0 + 12 AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT - ( + - CAST( - 76 AS SIGNED ) ) * - + col2 - - 4 AS col0 FROM tab1
----
4488
5172
7300

skipif mysql # not compatible
query I rowsort label-9684
SELECT - ( + - CAST ( - 76 AS INTEGER ) ) * - + col2 - - 4 AS col0 FROM tab1
----
4488
5172
7300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9685
SELECT ALL * FROM tab0 WHERE col1 IS NOT NULL AND NULL = CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9685
SELECT ALL * FROM tab0 WHERE col1 IS NOT NULL AND NULL = CAST ( - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT CAST( NULL AS SIGNED ) + - - 82 AS col0 FROM tab0 WHERE NULL = + - col2 * + ( col0 )
----

skipif mysql # not compatible
query I rowsort label-9686
SELECT CAST ( NULL AS INTEGER ) + - - 82 AS col0 FROM tab0 WHERE NULL = + - col2 * + ( col0 )
----

query I rowsort
SELECT col0 + + + 92 FROM tab0
----
107
179
189

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT ALL - 42 DIV + col0 + + ( - col1 ) - 52 FROM tab0
----
-135
-53
-73

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL - 42 / + col0 + + ( - col1 ) - 52 FROM tab0
----
-135
-53
-73

query I rowsort
SELECT 72 AS col0 FROM tab1 WHERE - + col0 >= ( NULL )
----

query I rowsort
SELECT DISTINCT + 36 - col0 + - col1 FROM tab2
----
-105
-106
-61

query II rowsort
SELECT + col2 + col1 AS col1, + 74 FROM tab1
----
110
74
115
74
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT 37 + - - MAX( - col2 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT 37 + - - MAX ( - col2 ) FROM tab2
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + col0 * col0 col0 FROM tab1
----
2550
7140
8190

query I rowsort
SELECT + - 14 AS col1 FROM tab2 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 34 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT + MAX( ALL 76 ) AS col1 FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-9696
SELECT + MAX ( ALL 76 ) AS col1 FROM tab1 cor0
----
76

query I rowsort
SELECT ALL - col1 * - ( - - col1 ) FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9698
SELECT ALL + col0 col0, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9698
SELECT ALL + col0 col0, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9700
SELECT DISTINCT 89 AS col2, + col1 DIV + - 22 AS col1 FROM tab0 AS cor0
----
89
-3
89
0

skipif mysql # not compatible
query II rowsort label-9700
SELECT DISTINCT 89 AS col2, + col1 / + - 22 AS col1 FROM tab0 AS cor0
----
89
-3
89
0

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE 56 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT + - ( - 1 ) AS col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT + col1 AS col2, - col1 - + col1 AS col1 FROM tab2
----
51
-102
67
-134
77
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT ALL col2 DIV - 40 + - + 51 AS col1 FROM tab0
----
-51
-52
-53

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL col2 / - 40 + - + 51 AS col1 FROM tab0
----
-51
-52
-53

query I rowsort
SELECT DISTINCT ( - - 26 ) AS col2 FROM tab0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 7 + + - col1 col0, + 51 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL CAST( + 40 AS SIGNED ) * + COUNT( * ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL CAST ( + 40 AS INTEGER ) * + COUNT ( * ) FROM tab2
----
120

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 21 + + + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL <= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 > - - col1 / - col1 - + 43
----
75
67
58

onlyif mysql # DIV for integer division: 
query II rowsort label-9714
SELECT + - 53 AS col0, + 21 * 25 DIV 2 AS col0 FROM tab1 AS cor0
----
-53
262
-53
262
-53
262

skipif mysql # not compatible
query II rowsort label-9714
SELECT + - 53 AS col0, + 21 * 25 / 2 AS col0 FROM tab1 AS cor0
----
-53
262
-53
262
-53
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col2 FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT COUNT( + - 16 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9716
SELECT COUNT ( + - 16 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - - COUNT( * ) + COUNT( * ) * + 11 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
108

skipif mysql # not compatible
query I rowsort label-9717
SELECT - - COUNT ( * ) + COUNT ( * ) * + 11 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
108

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 32 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 8 + + col1 FROM tab2 cor0
----
43
59
69

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 41 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9721
SELECT DISTINCT + + MAX( col1 ) AS col0, + 26 - - 40 FROM tab1 AS cor0
----
47
66

skipif mysql # not compatible
query II rowsort label-9721
SELECT DISTINCT + + MAX ( col1 ) AS col0, + 26 - - 40 FROM tab1 AS cor0
----
47
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT + ( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT + MIN( ALL col1 ) * + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT + MIN ( ALL col1 ) * + + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT ALL col0 + + col1 - + 57 + col2 * - col1 AS col1 FROM tab1
----
-1336
-262
-3115

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL - 25 + - SUM( ALL col2 ) AS col1 FROM tab2
----
-146

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - 25 + - SUM ( ALL col2 ) AS col1 FROM tab2
----
-146

query I rowsort
SELECT ALL - 90 * + col1 FROM tab1
----
-1260
-4230
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL COUNT( * ) * - - 68 AS col1 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL COUNT ( * ) * - - 68 AS col1 FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT + 80 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + 80 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
240

query I rowsort
SELECT - + ( 37 ) FROM tab1 cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col2 FROM tab2 AS cor0 WHERE + col2 / + + col1 > + 12
----

query I rowsort
SELECT ALL 1 * ( - 98 ) FROM tab0
----
-98
-98
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT ( + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9732
SELECT ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - ( - 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT MIN( DISTINCT - + 40 ) AS col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT MIN ( DISTINCT - + 40 ) AS col2 FROM tab2 AS cor0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT + - col1 DIV + col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9735
SELECT + - col1 / + col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT - + 71 AS col0 FROM tab2 cor0
----
-71
-71
-71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + + 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9738
SELECT DISTINCT + + CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9738
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT ( + 15 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + 69 + ( + col1 ) AS col0 FROM tab2
----
120
136
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 29 ) col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL + COUNT( * ) + + + COUNT( * ) * 78 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) * 78 FROM tab2
----
237

query I rowsort
SELECT ALL col1 + - col0 + - + col0 + - col0 AS col0 FROM tab2
----
-115
-158
-87

query III rowsort
SELECT * FROM tab1 WHERE + col2 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9745
SELECT DISTINCT - 87 * - col1 + - CAST( - col0 AS SIGNED ) + + - col1 + 24 + - col0 AS col1 FROM tab1
----
1228
4066
454

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT - 87 * - col1 + - CAST ( - col0 AS INTEGER ) + + - col1 + 24 + - col0 AS col1 FROM tab1
----
1228
4066
454

query I rowsort
SELECT col1 + + 31 AS col1 FROM tab1 cor0
----
36
45
78

query II rowsort
SELECT DISTINCT - - 64, + col0 FROM tab1 AS cor0 WHERE NOT col2 / + ( + 8 ) >= NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col1 / - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + + 44 AS col2 FROM tab2 AS cor0
----
44

query I rowsort
SELECT ALL + col0 + - + 23 + + col1 * - col1 FROM tab0 AS cor0
----
-377
-6569
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT - MAX( + - CAST( + 8 AS SIGNED ) ) FROM tab0 WHERE - ( + 7 ) BETWEEN col2 * + col1 AND ( - col0 ) - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT - MAX ( + - CAST ( + 8 AS INTEGER ) ) FROM tab0 WHERE - ( + 7 ) BETWEEN col2 * + col1 AND ( - col0 ) - + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL + ( - + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + ( - + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL - MIN( ALL - col0 ) + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - MIN ( ALL - col0 ) + COUNT ( * ) FROM tab1
----
94

query I rowsort
SELECT - 12 * - 67 AS col0 FROM tab1
----
804
804
804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 13, + col2 + col2 col2 FROM tab1
----
-13
118
-13
136
-13
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + SUM( - - ( - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9757
SELECT + SUM ( - - ( - col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT ALL - + col0 - - - col0 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

query II rowsort
SELECT DISTINCT col1 AS col0, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL col0 * + - col0 + col2 - + - col1 + + col0 * + + col2 + + 5 - 76 * 75 * - col2 AS col0 FROM tab1 AS cor0
----
334159
385627
549610

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL + 63 * - COUNT( * ) FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL + 63 * - COUNT ( * ) FROM tab2 AS cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - COUNT( * ) FROM tab0 WHERE NOT + + ( + - col1 ) + - + ( - + col0 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + + ( + - col1 ) + - + ( - + col0 ) >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 78 col0 FROM tab0
----
3666
7722
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT CAST( NULL AS SIGNED ) / - 56 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT CAST ( NULL AS INTEGER ) / - 56 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - - ( - 75 ) col1 FROM tab2
----
3300
3300
3300

query I rowsort
SELECT ALL + ( ( + - 55 ) ) FROM tab1
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + col1 * - + col1 AS col2 FROM tab2
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - ( col0 ) ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT + COUNT( DISTINCT 78 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT + COUNT ( DISTINCT 78 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 12 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
12

query I rowsort
SELECT ALL col2 * + - 57 FROM tab2
----
-1311
-2280
-3306

query I rowsort
SELECT + + col2 + - 43 AS col2 FROM tab0 WHERE NOT + - col1 IS NULL
----
-33
4
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT + 20 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9775
SELECT + 20 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9776
SELECT + - ( 13 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9776
SELECT + - ( 13 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + - col2 * + 14 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> + 38 / + col0 * col2 * + + col2 + + 7 + + col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL + + COUNT( ALL + 6 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9779
SELECT ALL + + COUNT ( ALL + 6 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - - col1 + - - col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 46 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * 77 AS col0 FROM tab1
----
-4543
-5236
-7392

query I rowsort
SELECT ALL col0 + + col2 + col2 FROM tab2
----
144
191
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9785
SELECT - col0 AS col0, 68 * - 40 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9785
SELECT - col0 AS col0, 68 * - 40 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 75 + - col1 AS col2 FROM tab2
----
-2
24
8

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col1 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT - 31 * - + 13 * + 93 + - 83 FROM tab2 AS cor0
----
37396
37396
37396

query I rowsort
SELECT DISTINCT + + col1 * - + 87 + - - col1 FROM tab0 cor0
----
-1806
-6966
-86

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + 70 FROM tab0
----
-29
23
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + - col1 AS col1 FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + - col1 AS col1 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9793
SELECT ALL col0 + col2, + CAST( NULL AS SIGNED ) * col0 + col2 AS col2 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
query II rowsort label-9793
SELECT ALL col0 + col2, + CAST ( NULL AS INTEGER ) * col0 + col2 AS col2 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

query II rowsort
SELECT DISTINCT + 54 - + 8, col0 * - col0 - + 16 * + col2 AS col1 FROM tab0 AS cor0
----
46
-10993
46
-7729
46
-977

query II rowsort
SELECT + 72 + col0 AS col1, 42 AS col2 FROM tab0 AS cor0
----
159
42
169
42
87
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT + 81 * + + MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
7371

skipif mysql # not compatible
query I rowsort label-9796
SELECT + 81 * + + MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + + COUNT( * ) * - - 95 AS col2 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + + COUNT ( * ) * - - 95 AS col2 FROM tab1 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT + SUM( ( + col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9798
SELECT + SUM ( ( + col2 ) ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 60 + + 84 <> - + col0 + col1
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col0 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9802
SELECT col2, + col0 - + CAST( + + col2 AS SIGNED ) AS col1 FROM tab1
----
59
26
68
23
96
-45

skipif mysql # not compatible
query II rowsort label-9802
SELECT col2, + col0 - + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1
----
59
26
68
23
96
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT DISTINCT - col1 DIV - 3 + 85 + + + 30 * + + 25 AS col0 FROM tab2 WHERE NOT 53 * + col2 BETWEEN 10 AND + - 2 - col1
----
852
857
860

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT - col1 / - 3 + 85 + + + 30 * + + 25 AS col0 FROM tab2 WHERE NOT 53 * + col2 BETWEEN 10 AND + - 2 - col1
----
852
857
860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9804
SELECT ALL 71 AS col2, 39 * - + CAST( 38 AS SIGNED ) FROM tab1
----
71
-1482
71
-1482
71
-1482

skipif mysql # not compatible
query II rowsort label-9804
SELECT ALL 71 AS col2, 39 * - + CAST ( 38 AS INTEGER ) FROM tab1
----
71
-1482
71
-1482
71
-1482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, 68 AS col2 FROM tab2
----
51
68
67
68
77
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL + col2 * + - ( - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + col2 * + - ( - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - 51 * col2 AS col2 FROM tab2 AS cor0
----
-1173
-2040
-2958

query I rowsort
SELECT + + 6 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT DISTINCT - - SUM( + col1 ) * + - 38 AS col1 FROM tab2 AS cor0
----
-7410

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT - - SUM ( + col1 ) * + - 38 AS col1 FROM tab2 AS cor0
----
-7410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT DISTINCT CAST( + col2 AS SIGNED ) * + 67 AS col1 FROM tab2 AS cor0
----
1541
2680
3886

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * + 67 AS col1 FROM tab2 AS cor0
----
1541
2680
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - - 0, - 68 - 67 col0 FROM tab0 AS cor0
----
0
-135
0
-135
0
-135

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <= ( + col0 ) * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT - COUNT( * ) + COUNT( * ) col0 FROM tab0 AS cor0 WHERE 91 + - + 88 + col2 * - col0 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9813
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE 91 + - + 88 + col2 * - col0 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT 54 * + COUNT( * ) + + MAX( DISTINCT 69 ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT 54 * + COUNT ( * ) + + MAX ( DISTINCT 69 ) FROM tab0 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL - SUM( - col0 ) * 35 FROM tab0 cor0
----
6965

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - SUM ( - col0 ) * 35 FROM tab0 cor0
----
6965

query I rowsort
SELECT DISTINCT 61 * + - col2 AS col0 FROM tab2 AS cor0
----
-1403
-2440
-3538

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL - + 68 + + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL - + 68 + + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-68

query III rowsort
SELECT * FROM tab2 WHERE - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE + 80 + - col0 BETWEEN NULL AND + col2 * + ( + ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + 80 + - col0 BETWEEN NULL AND + col2 * + ( + ( col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL + 79 - + + COUNT( * ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL + 79 - + + COUNT ( * ) FROM tab1
----
76

query I rowsort
SELECT - 10 + + col2 AS col1 FROM tab2 AS cor0
----
13
30
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9825
SELECT ALL + - 60 DIV - COUNT( * ) col0 FROM tab1 cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9825
SELECT ALL + - 60 / - COUNT ( * ) col0 FROM tab1 cor0
----
20

query I rowsort
SELECT ALL - + col2 + 13 FROM tab0 AS cor0
----
-34
-86
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL CAST( - col2 AS SIGNED ) + - - col1 * + - CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL CAST ( - col2 AS INTEGER ) + - - col1 * + - CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - ( + 88 ) ) FROM tab1 AS cor0
----
-88
-88
-88

query II rowsort
SELECT DISTINCT col2, + 5 FROM tab1 AS cor0
----
59
5
68
5
96
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT ALL + CAST( + 25 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + CAST ( + 25 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT + + col0 - - col0 + 44 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
136
172
194

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT ALL 20 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 20 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <= col1
----
75
67
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col0, col0 / + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT DISTINCT ( - col1 ) FROM tab1 AS cor0 WHERE NOT CAST( + + col0 AS SIGNED ) >= col1 + - 23
----

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT ( - col1 ) FROM tab1 AS cor0 WHERE NOT CAST ( + + col0 AS INTEGER ) >= col1 + - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT 43 * - - ( - + SUM( ALL + col1 ) ) * + COUNT( * ) AS col1 FROM tab0 WHERE NOT - - col0 - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT 43 * - - ( - + SUM ( ALL + col1 ) ) * + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - col0 - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + 70 * + 50 AS col0 FROM tab0
----
3500
3500
3500

onlyif mysql # aggregate syntax: 
query II rowsort label-9839
SELECT - COUNT( * ) * - - 82 AS col0, - 80 * + 43 AS col0 FROM tab0
----
-246
-3440

skipif mysql # not compatible
query II rowsort label-9839
SELECT - COUNT ( * ) * - - 82 AS col0, - 80 * + 43 AS col0 FROM tab0
----
-246
-3440

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT col0 BETWEEN NULL AND + col1
----
2

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT col0 BETWEEN NULL AND + col1
----
2

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab2 cor0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9842
SELECT - + MAX( - 57 ) FROM tab2 AS cor0 WHERE NOT - col2 * - + CAST( NULL AS SIGNED ) IS NULL AND NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT - + MAX ( - 57 ) FROM tab2 AS cor0 WHERE NOT - col2 * - + CAST ( NULL AS INTEGER ) IS NULL AND NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT ALL - + 28 * - + col0 - + + 9 FROM tab1 AS cor0
----
1419
2371
2539

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT ALL - 0 * + + 27 DIV 54 + + 34 + - col1 FROM tab2 AS cor0
----
-17
-33
-43

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - 0 * + + 27 / 54 + + 34 + - col1 FROM tab2 AS cor0
----
-17
-33
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9845
SELECT DISTINCT CAST( NULL AS SIGNED ), + 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-9845
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT + CAST( - col0 AS SIGNED ) * - col2 AS col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-9846
SELECT + CAST ( - col0 AS INTEGER ) * - col2 AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT col1 * - col1 + - - col1 + col1 FROM tab0
----
-399
-6399
1

query I rowsort
SELECT ALL 64 * - 39 AS col0 FROM tab1 cor0
----
-2496
-2496
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL MAX( - 56 ) AS col0 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL MAX ( - 56 ) AS col0 FROM tab0 AS cor0
----
-56

query II rowsort
SELECT ALL - 40 * - 76 * + col1, + col1 FROM tab2 AS cor0
----
155040
51
203680
67
234080
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + + 90 * - COUNT( * ) + - 54 FROM tab0 AS cor0
----
-324

skipif mysql # not compatible
query I rowsort label-9851
SELECT + + 90 * - COUNT ( * ) + - 54 FROM tab0 AS cor0
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT - MIN( DISTINCT + 6 ) + + - 49 AS col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9852
SELECT - MIN ( DISTINCT + 6 ) + + - 49 AS col2 FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT COUNT( * ) + + 17 col0 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9853
SELECT DISTINCT COUNT ( * ) + + 17 col0 FROM tab0
----
20

query II rowsort
SELECT 19 + - col1 * + ( + + col0 ), - ( + - col1 ) AS col1 FROM tab1
----
-406
5
-4258
47
-695
14

query I rowsort
SELECT ALL col0 + - - col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ALL - SUM( DISTINCT + 20 ) + + 86 AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL - SUM ( DISTINCT + 20 ) + + 86 AS col2 FROM tab1
----
66

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9858
SELECT DISTINCT + ( - COUNT( * ) ) - + COUNT( * ) DIV + - CAST( - 61 AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT + ( - COUNT ( * ) ) - + COUNT ( * ) / + - CAST ( - 61 AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT - COUNT( * ) FROM tab2 WHERE - - col0 <= + 10 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT - COUNT ( * ) FROM tab2 WHERE - - col0 <= + 10 * - col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * col1 = - ( + 39 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9861
SELECT DISTINCT 47 DIV COUNT( * ) * 76 + + + 75 + + CAST( - + 4 AS SIGNED ) AS col2 FROM tab0
----
1211

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT 47 / COUNT ( * ) * 76 + + + 75 + + CAST ( - + 4 AS INTEGER ) AS col2 FROM tab0
----
1211

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT DISTINCT + COUNT( * ) - COUNT( - col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT + COUNT ( * ) - COUNT ( - col1 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 55 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9864
SELECT + + col1 * col2 - - - ( 48 ), - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
162
10
3759
47
51
99

skipif mysql # not compatible
query II rowsort label-9864
SELECT + + col1 * col2 - - - ( 48 ), - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
162
10
3759
47
51
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT + 47 DIV + col1 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9865
SELECT + 47 / + col1 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL ( - ( + col0 ) ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - + 55 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 48 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + col1 AND NULL
----

query II rowsort
SELECT + + 27 AS col0, - col2 * + - ( - - 50 ) AS col1 FROM tab0 AS cor0
----
27
2350
27
4950
27
500

query I rowsort
SELECT DISTINCT 40 FROM tab1 AS cor0 WHERE col1 + 7 IS NOT NULL
----
40

query II rowsort
SELECT + + col1, 76 AS col2 FROM tab0 cor0
----
1
76
21
76
81
76

query I rowsort
SELECT 43 * - 31 AS col0 FROM tab2 AS cor0
----
-1333
-1333
-1333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9875
SELECT + - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9876
SELECT - CAST( + 57 AS SIGNED ), col0 FROM tab1
----
-57
51
-57
85
-57
91

skipif mysql # not compatible
query II rowsort label-9876
SELECT - CAST ( + 57 AS INTEGER ), col0 FROM tab1
----
-57
51
-57
85
-57
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT DISTINCT - SUM( ALL - 56 ) AS col0 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT - SUM ( ALL - 56 ) AS col0 FROM tab2
----
168

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9879
SELECT * FROM tab0 WHERE NOT + ( + + col0 ) BETWEEN - 86 * - 26 * + + col0 AND + 15 / + col1 * - - CAST( NULL AS SIGNED ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9879
SELECT * FROM tab0 WHERE NOT + ( + + col0 ) BETWEEN - 86 * - 26 * + + col0 AND + 15 / + col1 * - - CAST ( NULL AS INTEGER ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT 15 * 74 FROM tab0
----
1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT ALL - COUNT( * ) * - 31 * - + MAX( 22 ) * - COUNT( * ) / 4 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL - COUNT ( * ) * - 31 * - + MAX ( 22 ) * - COUNT ( * ) / 4 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ( 57 ) AS col0 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9885
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 83 + col2 + - + CAST( - 9 AS SIGNED ) FROM tab1 AS cor0
----
NULL
151
NULL
160
NULL
188

skipif mysql # not compatible
query II rowsort label-9885
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 83 + col2 + - + CAST ( - 9 AS INTEGER ) FROM tab1 AS cor0
----
NULL
151
NULL
160
NULL
188

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL - COUNT( * ) + + COUNT( * ) * + 50 AS col1 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * + 50 AS col1 FROM tab2
----
147

query I rowsort
SELECT ALL 48 + + col0 AS col2 FROM tab2
----
112
123
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT DISTINCT - ( - col0 ) + + CAST( + - col0 AS SIGNED ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9888
SELECT DISTINCT - ( - col0 ) + + CAST ( + - col0 AS INTEGER ) col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - - col2 + - 98 FROM tab2 AS cor0
----
-40
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT + + col0 * - - col0 + + col1 * + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
2405
6072
7200

skipif mysql # not compatible
query I rowsort label-9890
SELECT + + col0 * - - col0 + + col1 * + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
2405
6072
7200

query I rowsort
SELECT ALL - 39 AS col1 FROM tab0 AS cor0 WHERE NOT 89 IS NULL
----
-39
-39
-39

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE ( - - col0 IS NOT NULL )
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 60 + - col1 = NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9894
SELECT ALL col1 + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL col1 + + - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 + + col2 col2 FROM tab2
----
29
46
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT 4 * - - CAST( NULL AS SIGNED ) - - 67 + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT 4 * - - CAST ( NULL AS INTEGER ) - - 67 + + col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 + 32 - col1 AS col0 FROM tab0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT DISTINCT - 10 * + + ( + 87 ) * + - 10 - - col0 + col0 + - 36 + - ( col0 ) * col2 DIV - ( + + col0 ) + - col1 AS col2 FROM tab0
----
8660
8827
8956

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT - 10 * + + ( + 87 ) * + - 10 - - col0 + col0 + - 36 + - ( col0 ) * col2 / - ( + + col0 ) + - col1 AS col2 FROM tab0
----
8660
8827
8956

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT DISTINCT + col2 DIV - 88 + + 35 FROM tab1
----
34
35

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT + col2 / - 88 + + 35 FROM tab1
----
34
35

query I rowsort
SELECT col0 + + - col2 AS col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9901
SELECT + CAST( NULL AS DECIMAL ) * col2 * - col1 + + col0 + - 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT + CAST ( NULL AS REAL ) * col2 * - col1 + + col0 + - 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 - 54, 26 * - 96 AS col2 FROM tab1 AS cor0 WHERE 66 * + - 78 - - col2 IS NULL
----

query I rowsort
SELECT col2 * + + 36 AS col2 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT col1 DIV - + 47 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9904
SELECT col1 / - + 47 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 IN ( - 64, - col1, col2, - + col1 )
----

query I rowsort
SELECT ALL + - 95 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT - + 10 FROM tab2 cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 61 + 98 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9909
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-9909
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL + 19 * - col0 * + 91 AS col0 FROM tab1 AS cor0
----
-146965
-157339
-88179

query I rowsort
SELECT DISTINCT col2 * - 69 * + - col0 FROM tab2
----
176640
300150
73002

query I rowsort
SELECT 79 * + - col2 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT DISTINCT col0 + - - 50 AS col2 FROM tab1
----
101
135
141

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT ALL + col1 DIV + col2 * col1 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + col1 / + col2 * col1 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ( - 83 ) * - 1 + - - 91 AS col2 FROM tab1
----
174
174
174

query I rowsort
SELECT DISTINCT + - col0 * + - 81 * - 88 AS col0 FROM tab0 AS cor0
----
-106920
-620136
-691416

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE + 97 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9918
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9919
SELECT + ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - col1 + - + 92 + col2 * + 36 FROM tab2 AS cor0
----
1271
1929
685

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9921
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > - - col2
----

skipif mysql # not compatible
query III rowsort label-9921
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + MIN( - col2 ) + + MIN( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9922
SELECT + MIN ( - col2 ) + + MIN ( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - - COUNT( - col1 ) + 32 + + COUNT( * ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9923
SELECT - - COUNT ( - col1 ) + 32 + + COUNT ( * ) FROM tab0 AS cor0
----
38

query II rowsort
SELECT DISTINCT + + 63, col0 AS col0 FROM tab0 AS cor0
----
63
15
63
87
63
97

query I rowsort
SELECT DISTINCT 57 + - ( - - col2 ) * + col1 FROM tab2 AS cor0 WHERE 28 + + col0 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT DISTINCT + col2 FROM tab1 WHERE + - col0 + - col2 + + + 72 * col1 * - CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT + col2 FROM tab1 WHERE + - col0 + - col2 + + + 72 * col1 * - CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----

query II rowsort
SELECT - col2 * - 2, 14 * + 88 * - 97 AS col0 FROM tab2
----
116
-119504
46
-119504
80
-119504

query II rowsort
SELECT ALL col0 + col2, + col2 + + + 27 AS col0 FROM tab0
----
196
126
62
74
97
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL + COUNT( * ) - + - 71 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL + COUNT ( * ) - + - 71 FROM tab2
----
74

query II rowsort
SELECT ALL 48 - + + col1 AS col1, - col2 * + col1 * - col1 AS col0 FROM tab2
----
-19
260362
-29
237160
-3
59823

query I rowsort
SELECT DISTINCT + + ( 56 ) AS col1 FROM tab1 AS cor0
----
56

query II rowsort
SELECT DISTINCT + - col2 * + 48, + 55 AS col2 FROM tab0 AS cor0
----
-2256
55
-4752
55
-480
55

query I rowsort
SELECT DISTINCT col0 * - 43 AS col0 FROM tab0
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT DISTINCT MAX( ALL - ( - ( + - col2 ) ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT MAX ( ALL - ( - ( + - col2 ) ) ) FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - col1 col2 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query II rowsort
SELECT - col1, 92 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT CAST( - - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9937
SELECT CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9938
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 / + + CAST( NULL AS SIGNED ) + + 71 - - 1 >= - + col0 )
----

skipif mysql # not compatible
query III rowsort label-9938
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 / + + CAST ( NULL AS INTEGER ) + + 71 - - 1 >= - + col0 )
----

query I rowsort
SELECT ALL col0 + - 41 - + + col2 FROM tab0 WHERE NOT ( 9 ) IS NULL
----
-43
-73
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT + col1 * col1 DIV 3 AS col0 FROM tab2
----
1496
1976
867

skipif mysql # not compatible
query I rowsort label-9940
SELECT + col1 * col1 / 3 AS col0 FROM tab2
----
1496
1976
867

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / col2 + + 90 + - col2 * + + 44 >= NULL
----

query I rowsort
SELECT 96 * 75 + + col1 FROM tab0 AS cor0
----
7201
7221
7281

query I rowsort
SELECT ALL + + 45 * + col0 * - 33 AS col0 FROM tab1 AS cor0
----
-126225
-135135
-75735

query II rowsort
SELECT - col2 + - col0 AS col1, + 41 FROM tab1 AS cor0
----
-144
41
-147
41
-159
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT ALL - - col1 + + CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - - col1 + + CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( - 67 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
67

query II rowsort
SELECT ALL - col1 AS col0, 37 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + + 29 ) + - col0 FROM tab0
----
-58
-68
14

query II rowsort
SELECT - col2 AS col1, 91 FROM tab1 AS cor0
----
-59
91
-68
91
-96
91

query I rowsort
SELECT ALL 75 - - col1 * col2 FROM tab0 AS cor0
----
174
285
3882

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col0 <> - 36
----

query I rowsort
SELECT ALL + col0 * - - col1 + + col0 AS col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT - col2 * + 94 + col0 - + 66 + 66 + - - col1 * + + 1 + - col0 FROM tab2
----
-2111
-3683
-5385

query II rowsort
SELECT ALL col2 AS col2, 33 FROM tab2
----
23
33
40
33
58
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9955
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( * ) DIV + - 49 AS col1 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-9955
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) / + - 49 AS col1 FROM tab1
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT - CAST( - 90 AS SIGNED ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT - CAST ( - 90 AS INTEGER ) AS col2 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + SUM( ALL - - ( + 74 ) ) AS col2 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-9957
SELECT + SUM ( ALL - - ( + 74 ) ) AS col2 FROM tab0
----
222

query I rowsort
SELECT 48 AS col0 FROM tab1 WHERE NOT col1 * + + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT + 2 * - col1 + - col1 - - - col0 - 27 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) / + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9959
SELECT + 2 * - col1 + - col1 - - - col0 - 27 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) / + + col2 AND NULL
----

query I rowsort
SELECT ALL - - 9 FROM tab0 cor0
----
9
9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT - 18 DIV + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9961
SELECT - 18 / + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL - 88 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-88
-88
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) * 71 NOT IN ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9965
SELECT SUM( - col1 ) AS col2, COUNT( * ) AS col2 FROM tab1 cor0
----
-66
3

skipif mysql # not compatible
query II rowsort label-9965
SELECT SUM ( - col1 ) AS col2, COUNT ( * ) AS col2 FROM tab1 cor0
----
-66
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + + col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + - col2 + - col1 AS col1 FROM tab2
----
-120
-181
-200

query III rowsort
SELECT * FROM tab2 WHERE NOT 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * + - col0 * 25 + - + col1 col1 FROM tab0
----
167454
186724
28794

query I rowsort
SELECT DISTINCT col0 * 77 AS col1 FROM tab0
----
1155
6699
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + 88 ) AS col0 FROM tab2 WHERE NOT - col2 + + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 88 ) AS col0 FROM tab2 WHERE NOT - col2 + + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 82 + + 31 FROM tab0
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - COUNT( * ) * - 60 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-9973
SELECT - COUNT ( * ) * - 60 FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-9974
SELECT + COUNT( * ), ( COUNT( * ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9974
SELECT + COUNT ( * ), ( COUNT ( * ) ) FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 48 col1 FROM tab1 cor0
----
-2448
-4080
-4368

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 28 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 IS NULL OR NOT NULL = + + 85
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT + CAST( - + col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9979
SELECT + CAST ( - + col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT 90 AS col2 FROM tab0 WHERE ( + 57 ) < + ( 39 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - 42 IS NULL
----

query I rowsort
SELECT + 26 * col2 FROM tab0
----
1222
2574
260

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + ( + col1 ) / - 82 )
----

query I rowsort
SELECT DISTINCT 15 * + 77 FROM tab1
----
1155

query I rowsort
SELECT - 26 + - col0 FROM tab0
----
-113
-123
-41

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + col1 NOT BETWEEN + col2 + - 25 AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE 29 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE 29 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT SUM( DISTINCT - col2 ) - 78 AS col1 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-9988
SELECT SUM ( DISTINCT - col2 ) - 78 AS col1 FROM tab0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT - CAST( NULL AS SIGNED ) * 65 + - 3 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT - CAST ( NULL AS INTEGER ) * 65 + - 3 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT CAST( - col0 AS SIGNED ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT CAST ( - col0 AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT 4 * COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9991
SELECT 4 * COUNT ( * ) AS col2 FROM tab1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT DISTINCT + 19 DIV COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT + 19 / COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE ( col0 ) / col0 IN ( - col1 / 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT DISTINCT - ( - col1 ) DIV 19 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - ( - col1 ) / 19 FROM tab1
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + SUM( ALL - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9995
SELECT + SUM ( ALL - col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT + col1 = ( - col0 * col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col1 = ( - col0 * col1 )
----
3

query I rowsort
SELECT 1 * col2 - + col0 * + col2 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) + - 74 * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 7 * + col1 + + 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

